From b03ea086737a778f778d6a47b4ce7900240b4f07 Mon Sep 17 00:00:00 2001 From: "S. MohammadMahdi Zamanian" Date: Fri, 25 Oct 2024 13:57:32 -0400 Subject: [PATCH] . --- demo/package.json | 6 +- demo/snack-bar/scripts.ts | 4 +- packages/components/package.json | 8 +- packages/components/src/list/item.ts | 4 +- packages/i18n/package.json | 6 +- packages/lit-helper/package.json | 8 +- .../lit-helper/src/utilities/map-filter.ts | 2 +- .../lit-helper/src/utilities/map-object.ts | 4 +- .../lit-helper/src/utilities/map-search.ts | 2 +- packages/lit-helper/src/utilities/map.ts | 2 +- packages/mixins/package.json | 8 +- yarn.lock | 78 +++++++++---------- 12 files changed, 66 insertions(+), 66 deletions(-) diff --git a/demo/package.json b/demo/package.json index 43b5a1b..5217955 100644 --- a/demo/package.json +++ b/demo/package.json @@ -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", @@ -30,6 +30,6 @@ "vite-tsconfig-paths": "^4.3.2" }, "dependencies": { - "@gecut/utilities": "^7.0.2" + "@gecut/utilities": "^7.0.3" } } diff --git a/demo/snack-bar/scripts.ts b/demo/snack-bar/scripts.ts index e2a72b5..d4071df 100644 --- a/demo/snack-bar/scripts.ts +++ b/demo/snack-bar/scripts.ts @@ -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({ @@ -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: diff --git a/packages/components/package.json b/packages/components/package.json index 334f61c..6adc18b 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -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" } diff --git a/packages/components/src/list/item.ts b/packages/components/src/list/item.ts index 53b7a93..6a81526 100644 --- a/packages/components/src/list/item.ts +++ b/packages/components/src/list/item.ts @@ -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'; @@ -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); diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 0ed7a31..ed6be6f 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -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" } } diff --git a/packages/lit-helper/package.json b/packages/lit-helper/package.json index 396e36d..7131faa 100644 --- a/packages/lit-helper/package.json +++ b/packages/lit-helper/package.json @@ -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", diff --git a/packages/lit-helper/src/utilities/map-filter.ts b/packages/lit-helper/src/utilities/map-filter.ts index 147e272..9212209 100644 --- a/packages/lit-helper/src/utilities/map-filter.ts +++ b/packages/lit-helper/src/utilities/map-filter.ts @@ -7,7 +7,7 @@ export async function* mapFilter( filter: (item: T) => MaybePromise, f: (value: T) => RenderResult, loading?: RenderResult, -): AsyncGenerator { +): AsyncGenerator { if (items == null) { return loading; } diff --git a/packages/lit-helper/src/utilities/map-object.ts b/packages/lit-helper/src/utilities/map-object.ts index f0d857f..8237770 100644 --- a/packages/lit-helper/src/utilities/map-object.ts +++ b/packages/lit-helper/src/utilities/map-object.ts @@ -1,4 +1,4 @@ -import type {RenderResult} from '@gecut/types'; +import type { RenderResult } from "@gecut/types"; // eslint-disable-next-line consistent-return export function* mapObject( @@ -6,7 +6,7 @@ export function* mapObject( items: Record | undefined | null, f: (value: T, key: string) => RenderResult, loading?: RenderResult, -): Generator { +): Generator { if (items == null) { return loading; } diff --git a/packages/lit-helper/src/utilities/map-search.ts b/packages/lit-helper/src/utilities/map-search.ts index a848f27..8613e7e 100644 --- a/packages/lit-helper/src/utilities/map-search.ts +++ b/packages/lit-helper/src/utilities/map-search.ts @@ -12,7 +12,7 @@ export async function* mapSearch( f: (value: T) => RenderResult, notFound?: () => RenderResult, loading?: RenderResult, -): AsyncGenerator { +): AsyncGenerator { if (items == null) { return loading; } diff --git a/packages/lit-helper/src/utilities/map.ts b/packages/lit-helper/src/utilities/map.ts index 91f8c76..1c353f6 100644 --- a/packages/lit-helper/src/utilities/map.ts +++ b/packages/lit-helper/src/utilities/map.ts @@ -6,7 +6,7 @@ export function* map( items: T[] | undefined | null, f: (value: T) => RenderResult, loading?: RenderResult, -): Generator { +): Generator { if (items == null) { return loading; } diff --git a/packages/mixins/package.json b/packages/mixins/package.json index b532afe..9e37a1f 100644 --- a/packages/mixins/package.json +++ b/packages/mixins/package.json @@ -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" } } diff --git a/yarn.lock b/yarn.lock index b8a1477..7f0a79a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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 @@ -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 @@ -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" @@ -322,12 +322,12 @@ __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 @@ -335,23 +335,23 @@ __metadata: 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 @@ -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 @@ -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 @@ -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"