Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
MM25Zamanian committed Oct 25, 2024
1 parent 2ac2cb9 commit b03ea08
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 66 deletions.
6 changes: 3 additions & 3 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"@gecut/components": "workspace:^",
"@gecut/i18n": "workspace:^",
"@gecut/lit-helper": "workspace:^",
"@gecut/signal": "^7.0.2",
"@gecut/signal": "^7.0.3",
"@gecut/styles": "workspace:^",
"@gecut/types": "^7.0.2",
"@gecut/types": "^7.0.3",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e",
"@types/node": "^20.11.30",
Expand All @@ -30,6 +30,6 @@
"vite-tsconfig-paths": "^4.3.2"
},
"dependencies": {
"@gecut/utilities": "^7.0.2"
"@gecut/utilities": "^7.0.3"
}
}
4 changes: 2 additions & 2 deletions demo/snack-bar/scripts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {SnackBarManager, gecutButton} from '@gecut/components';
import {numberUtils} from '@gecut/utilities/data-types/number.js';
import {randomNumber} from '@gecut/utilities/data-types/number.js';
import {render, html} from 'lit/html.js';

const manager = new SnackBarManager({
Expand All @@ -20,7 +20,7 @@ manager.connect('hello', {
for (let index = 0; index < 3; index++) {
manager.notify({
message: 'Fuck you ' + index,
close: numberUtils.random.number(1, 0) > 0,
close: randomNumber(1, 0) > 0,
});
manager.notify({
message:
Expand Down
8 changes: 4 additions & 4 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
],
"dependencies": {
"@gecut/lit-helper": "workspace:^",
"@gecut/logger": "^7.0.2",
"@gecut/signal": "^7.0.2",
"@gecut/types": "^7.0.2",
"@gecut/utilities": "^7.0.2",
"@gecut/logger": "^7.0.3",
"@gecut/signal": "^7.0.3",
"@gecut/types": "^7.0.3",
"@gecut/utilities": "^7.0.3",
"@types/node": "^20.11.30",
"lit": "^3.1.3"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/list/item.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable max-len */
import {GecutDirective} from '@gecut/lit-helper/directives/directive.js';
import {numberUtils} from '@gecut/utilities/data-types/number.js';
import {isNumber} from '@gecut/utilities/data-types/number.js';
import {directive, type PartInfo} from 'lit/directive.js';
import {classMap} from 'lit/directives/class-map.js';
import {ifDefined} from 'lit/directives/if-defined.js';
Expand Down Expand Up @@ -193,7 +193,7 @@ export class GecutItemDirective extends GecutDirective {
case 'string':
return this.content.trailingSupportingText.value;
case 'number': {
if (!numberUtils.is(this.content.trailingSupportingText.value))
if (!isNumber(this.content.trailingSupportingText.value))
return this.content.trailingSupportingText.value;

const valueAsNumber = Number(this.content.trailingSupportingText.value);
Expand Down
6 changes: 3 additions & 3 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"url": "https://github.com/gecut/hybrid-ui/issues"
},
"dependencies": {
"@gecut/logger": "^7.0.2",
"@gecut/signal": "^7.0.2",
"@gecut/types": "^7.0.2",
"@gecut/logger": "^7.0.3",
"@gecut/signal": "^7.0.3",
"@gecut/types": "^7.0.3",
"type-fest": "^4.13.0"
}
}
8 changes: 4 additions & 4 deletions packages/lit-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
},
"dependencies": {
"@gecut/data-manager": "^1.2.3",
"@gecut/logger": "^7.0.2",
"@gecut/logger": "^7.0.3",
"@gecut/mixins": "workspace:^",
"@gecut/signal": "^7.0.2",
"@gecut/types": "^7.0.2",
"@gecut/utilities": "^7.0.2",
"@gecut/signal": "^7.0.3",
"@gecut/types": "^7.0.3",
"@gecut/utilities": "^7.0.3",
"@material/web": "^1.4.1",
"@vaadin/router": "^1.7.5",
"lit": "^3.1.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-helper/src/utilities/map-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function* mapFilter<T>(
filter: (item: T) => MaybePromise<boolean>,
f: (value: T) => RenderResult,
loading?: RenderResult,
): AsyncGenerator<RenderResult, RenderResult, RenderResult> {
): AsyncGenerator<RenderResult, any, RenderResult> {

Check failure on line 10 in packages/lit-helper/src/utilities/map-filter.ts

View workflow job for this annotation

GitHub Actions / Build & Lint Typescript

Unexpected any. Specify a different type
if (items == null) {
return loading;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/lit-helper/src/utilities/map-object.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type {RenderResult} from '@gecut/types';
import type { RenderResult } from "@gecut/types";

// eslint-disable-next-line consistent-return
export function* mapObject<T>(
_this: unknown,
items: Record<string, T> | undefined | null,
f: (value: T, key: string) => RenderResult,
loading?: RenderResult,
): Generator<RenderResult, RenderResult, RenderResult> {
): Generator<RenderResult, any, RenderResult> {

Check failure on line 9 in packages/lit-helper/src/utilities/map-object.ts

View workflow job for this annotation

GitHub Actions / Build & Lint Typescript

Unexpected any. Specify a different type
if (items == null) {
return loading;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-helper/src/utilities/map-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function* mapSearch<T extends UnknownRecord>(
f: (value: T) => RenderResult,
notFound?: () => RenderResult,
loading?: RenderResult,
): AsyncGenerator<RenderResult, RenderResult, RenderResult> {
): AsyncGenerator<RenderResult, any, RenderResult> {

Check failure on line 15 in packages/lit-helper/src/utilities/map-search.ts

View workflow job for this annotation

GitHub Actions / Build & Lint Typescript

Unexpected any. Specify a different type
if (items == null) {
return loading;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-helper/src/utilities/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export function* map<T>(
items: T[] | undefined | null,
f: (value: T) => RenderResult,
loading?: RenderResult,
): Generator<RenderResult, RenderResult, RenderResult> {
): Generator<RenderResult, any, RenderResult> {

Check failure on line 9 in packages/lit-helper/src/utilities/map.ts

View workflow job for this annotation

GitHub Actions / Build & Lint Typescript

Unexpected any. Specify a different type
if (items == null) {
return loading;
}
Expand Down
8 changes: 4 additions & 4 deletions packages/mixins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
"directory": "packages/mixins"
},
"dependencies": {
"@gecut/logger": "^7.0.2",
"@gecut/signal": "^7.0.2",
"@gecut/types": "^7.0.2",
"@gecut/utilities": "^7.0.2",
"@gecut/logger": "^7.0.3",
"@gecut/signal": "^7.0.3",
"@gecut/types": "^7.0.3",
"@gecut/utilities": "^7.0.3",
"lit": "^3.1.3"
}
}
78 changes: 39 additions & 39 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ __metadata:
resolution: "@gecut/components@workspace:packages/components"
dependencies:
"@gecut/lit-helper": "workspace:^"
"@gecut/logger": "npm:^7.0.2"
"@gecut/signal": "npm:^7.0.2"
"@gecut/types": "npm:^7.0.2"
"@gecut/utilities": "npm:^7.0.2"
"@gecut/logger": "npm:^7.0.3"
"@gecut/signal": "npm:^7.0.3"
"@gecut/types": "npm:^7.0.3"
"@gecut/utilities": "npm:^7.0.3"
"@types/node": "npm:^20.11.30"
lit: "npm:^3.1.3"
languageName: unknown
Expand All @@ -287,9 +287,9 @@ __metadata:
version: 0.0.0-use.local
resolution: "@gecut/i18n@workspace:packages/i18n"
dependencies:
"@gecut/logger": "npm:^7.0.2"
"@gecut/signal": "npm:^7.0.2"
"@gecut/types": "npm:^7.0.2"
"@gecut/logger": "npm:^7.0.3"
"@gecut/signal": "npm:^7.0.3"
"@gecut/types": "npm:^7.0.3"
type-fest: "npm:^4.13.0"
languageName: unknown
linkType: soft
Expand All @@ -299,11 +299,11 @@ __metadata:
resolution: "@gecut/lit-helper@workspace:packages/lit-helper"
dependencies:
"@gecut/data-manager": "npm:^1.2.3"
"@gecut/logger": "npm:^7.0.2"
"@gecut/logger": "npm:^7.0.3"
"@gecut/mixins": "workspace:^"
"@gecut/signal": "npm:^7.0.2"
"@gecut/types": "npm:^7.0.2"
"@gecut/utilities": "npm:^7.0.2"
"@gecut/signal": "npm:^7.0.3"
"@gecut/types": "npm:^7.0.3"
"@gecut/utilities": "npm:^7.0.3"
"@material/web": "npm:^1.4.1"
"@vaadin/router": "npm:^1.7.5"
lit: "npm:^3.1.3"
Expand All @@ -322,36 +322,36 @@ __metadata:
languageName: node
linkType: hard

"@gecut/logger@npm:^7.0.2":
version: 7.0.2
resolution: "@gecut/logger@npm:7.0.2"
"@gecut/logger@npm:^7.0.3":
version: 7.0.3
resolution: "@gecut/logger@npm:7.0.3"
dependencies:
"@gecut/utilities": "npm:^7.0.2"
checksum: 10c0/22d4126e124d510f504ad513376d6b10825c9a52b065272a98ef968b87ab0542163b5cfef32fe4dac216a388f4ca441106b819d5a6d177e63c57bc35d507f44d
"@gecut/utilities": "npm:^7.0.3"
checksum: 10c0/06e0f6e7f334cd6cc0a72669472ba5ad87d90a9092d3831b685c456a50f9b591da34b860122623c428aa4affe441d1ab7323ff34adabcb117e09f619ac1c05fe
languageName: node
linkType: hard

"@gecut/mixins@workspace:^, @gecut/mixins@workspace:packages/mixins":
version: 0.0.0-use.local
resolution: "@gecut/mixins@workspace:packages/mixins"
dependencies:
"@gecut/logger": "npm:^7.0.2"
"@gecut/signal": "npm:^7.0.2"
"@gecut/types": "npm:^7.0.2"
"@gecut/utilities": "npm:^7.0.2"
"@gecut/logger": "npm:^7.0.3"
"@gecut/signal": "npm:^7.0.3"
"@gecut/types": "npm:^7.0.3"
"@gecut/utilities": "npm:^7.0.3"
lit: "npm:^3.1.3"
languageName: unknown
linkType: soft

"@gecut/signal@npm:^7.0.2":
version: 7.0.2
resolution: "@gecut/signal@npm:7.0.2"
"@gecut/signal@npm:^7.0.3":
version: 7.0.3
resolution: "@gecut/signal@npm:7.0.3"
dependencies:
"@gecut/logger": "npm:^7.0.2"
"@gecut/types": "npm:^7.0.2"
"@gecut/utilities": "npm:^7.0.2"
"@gecut/logger": "npm:^7.0.3"
"@gecut/types": "npm:^7.0.3"
"@gecut/utilities": "npm:^7.0.3"
ky: "npm:^1.7.2"
checksum: 10c0/0387e0fabb627a0acec9599e3ef4cc517e14b9a0e83a0b2314309e1d18cf06e5fffbe6e2770487a15649dc1f714d6d5e4bd71d5b3340206a1615b99f6fed92fb
checksum: 10c0/903db24da0708e7f9399412ded8aa1b16ddbed6de6c851e0117c4fe89e9106b6889c77a7182c0d3e1a24bc2cc0ef071764efb242a4b357f198e3af25e09c8bcf
languageName: node
linkType: hard

Expand All @@ -373,14 +373,14 @@ __metadata:
languageName: node
linkType: hard

"@gecut/types@npm:^7.0.2":
version: 7.0.2
resolution: "@gecut/types@npm:7.0.2"
"@gecut/types@npm:^7.0.3":
version: 7.0.3
resolution: "@gecut/types@npm:7.0.3"
dependencies:
"@types/node": "npm:^22.5.4"
lit: "npm:^3.2.0"
type-fest: "npm:^4.26.1"
checksum: 10c0/899a4aa8c1bce59fa1028502e63b469780889d4d6564ef58b6c231b9ceda0f2fb899d722a5ba07859c944c686562e9a6056e057b30c284e218cb439c5a978082
checksum: 10c0/bea9788e0cf059e0e4daa3209dfff4da90f527886ae7c0bfae09fa8e9e743d891369c4e755d6073b4f68dd2b9e78495e11ef46f0318732af90779fd375f53f7b
languageName: node
linkType: hard

Expand All @@ -393,13 +393,13 @@ __metadata:
languageName: node
linkType: hard

"@gecut/utilities@npm:^7.0.2":
version: 7.0.2
resolution: "@gecut/utilities@npm:7.0.2"
"@gecut/utilities@npm:^7.0.3":
version: 7.0.3
resolution: "@gecut/utilities@npm:7.0.3"
dependencies:
"@gecut/types": "npm:^7.0.2"
"@gecut/types": "npm:^7.0.3"
change-case: "npm:^5.4.4"
checksum: 10c0/c1a43d337e83944261ecc1fcffae40c68c924aa684cec83d573919de20eb5d6857eebcb37d52fec0e4c9636615ea9c86a4151475f05d397660f67e8aa04029d6
checksum: 10c0/460c220b978ae3588f169301ecb9c1aa4f0cb82b2dddb463dfe91eb47e2b8f21f993ea9d98b29eede787820ef5c0093855f53d7e5a2b30e7d31908691f0247ac
languageName: node
linkType: hard

Expand Down Expand Up @@ -3370,10 +3370,10 @@ __metadata:
"@gecut/components": "workspace:^"
"@gecut/i18n": "workspace:^"
"@gecut/lit-helper": "workspace:^"
"@gecut/signal": "npm:^7.0.2"
"@gecut/signal": "npm:^7.0.3"
"@gecut/styles": "workspace:^"
"@gecut/types": "npm:^7.0.2"
"@gecut/utilities": "npm:^7.0.2"
"@gecut/types": "npm:^7.0.3"
"@gecut/utilities": "npm:^7.0.3"
"@tailwindcss/aspect-ratio": "npm:^0.4.2"
"@tailwindcss/nesting": "npm:^0.0.0-insiders.565cd3e"
"@types/node": "npm:^20.11.30"
Expand Down

0 comments on commit b03ea08

Please sign in to comment.