timered-counter 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +76 -0
- package/dist/custom-elements.json +8484 -0
- package/dist/src/counter-adapter.d.ts +38 -0
- package/dist/src/counter-adapter.js +69 -0
- package/dist/src/counter-adapter.js.map +1 -0
- package/dist/src/easing/cubic-bezier.d.ts +5 -0
- package/dist/src/easing/cubic-bezier.js +35 -0
- package/dist/src/easing/cubic-bezier.js.map +1 -0
- package/dist/src/easing/easing-functions.d.ts +1 -0
- package/dist/src/easing/easing-functions.js +10 -0
- package/dist/src/easing/easing-functions.js.map +1 -0
- package/dist/src/easing/index.d.ts +2 -0
- package/dist/src/easing/index.js +3 -0
- package/dist/src/easing/index.js.map +1 -0
- package/dist/src/easing/penner-easing-functions.d.ts +33 -0
- package/dist/src/easing/penner-easing-functions.js +82 -0
- package/dist/src/easing/penner-easing-functions.js.map +1 -0
- package/dist/src/index.d.ts +18 -0
- package/dist/src/index.js +13 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mixins/counter-aira.d.ts +9 -0
- package/dist/src/mixins/counter-aira.js +41 -0
- package/dist/src/mixins/counter-aira.js.map +1 -0
- package/dist/src/mixins/counter-animation.d.ts +13 -0
- package/dist/src/mixins/counter-animation.js +55 -0
- package/dist/src/mixins/counter-animation.js.map +1 -0
- package/dist/src/mixins/counter-base.d.ts +21 -0
- package/dist/src/mixins/counter-base.js +152 -0
- package/dist/src/mixins/counter-base.js.map +1 -0
- package/dist/src/mixins/counter-parts.d.ts +42 -0
- package/dist/src/mixins/counter-parts.js +180 -0
- package/dist/src/mixins/counter-parts.js.map +1 -0
- package/dist/src/mixins/counter-styles.d.ts +17 -0
- package/dist/src/mixins/counter-styles.js +93 -0
- package/dist/src/mixins/counter-styles.js.map +1 -0
- package/dist/src/number-adapter/build-in-bigint.d.ts +6 -0
- package/dist/src/number-adapter/build-in-bigint.js +92 -0
- package/dist/src/number-adapter/build-in-bigint.js.map +1 -0
- package/dist/src/number-adapter/build-in-number.d.ts +3 -0
- package/dist/src/number-adapter/build-in-number.js +84 -0
- package/dist/src/number-adapter/build-in-number.js.map +1 -0
- package/dist/src/number-adapter/decimal-js.d.ts +4 -0
- package/dist/src/number-adapter/decimal-js.js +87 -0
- package/dist/src/number-adapter/decimal-js.js.map +1 -0
- package/dist/src/number-adapter/index.d.ts +4 -0
- package/dist/src/number-adapter/index.js +5 -0
- package/dist/src/number-adapter/index.js.map +1 -0
- package/dist/src/number-adapter/types.d.ts +34 -0
- package/dist/src/number-adapter/types.js +2 -0
- package/dist/src/number-adapter/types.js.map +1 -0
- package/dist/src/string-adapter/build-in-intl-segmenter.d.ts +10 -0
- package/dist/src/string-adapter/build-in-intl-segmenter.js +18 -0
- package/dist/src/string-adapter/build-in-intl-segmenter.js.map +1 -0
- package/dist/src/string-adapter/build-in-string.d.ts +12 -0
- package/dist/src/string-adapter/build-in-string.js +16 -0
- package/dist/src/string-adapter/build-in-string.js.map +1 -0
- package/dist/src/string-adapter/grapheme-splitter.d.ts +8 -0
- package/dist/src/string-adapter/grapheme-splitter.js +16 -0
- package/dist/src/string-adapter/grapheme-splitter.js.map +1 -0
- package/dist/src/string-adapter/index.d.ts +4 -0
- package/dist/src/string-adapter/index.js +5 -0
- package/dist/src/string-adapter/index.js.map +1 -0
- package/dist/src/string-adapter/types.d.ts +19 -0
- package/dist/src/string-adapter/types.js +2 -0
- package/dist/src/string-adapter/types.js.map +1 -0
- package/dist/src/styles/timered-counter-datetime-styles.d.ts +1 -0
- package/dist/src/styles/timered-counter-datetime-styles.js +8 -0
- package/dist/src/styles/timered-counter-datetime-styles.js.map +1 -0
- package/dist/src/styles/timered-counter-number-styles.d.ts +1 -0
- package/dist/src/styles/timered-counter-number-styles.js +3 -0
- package/dist/src/styles/timered-counter-number-styles.js.map +1 -0
- package/dist/src/styles/timered-counter-string-styles.d.ts +1 -0
- package/dist/src/styles/timered-counter-string-styles.js +3 -0
- package/dist/src/styles/timered-counter-string-styles.js.map +1 -0
- package/dist/src/styles/timered-counter-styles.d.ts +1 -0
- package/dist/src/styles/timered-counter-styles.js +25 -0
- package/dist/src/styles/timered-counter-styles.js.map +1 -0
- package/dist/src/timered-counter-datetime-duration.d.ts +37 -0
- package/dist/src/timered-counter-datetime-duration.js +186 -0
- package/dist/src/timered-counter-datetime-duration.js.map +1 -0
- package/dist/src/timered-counter-number.d.ts +23 -0
- package/dist/src/timered-counter-number.js +114 -0
- package/dist/src/timered-counter-number.js.map +1 -0
- package/dist/src/timered-counter-string.d.ts +30 -0
- package/dist/src/timered-counter-string.js +138 -0
- package/dist/src/timered-counter-string.js.map +1 -0
- package/dist/src/timered-counter.d.ts +15 -0
- package/dist/src/timered-counter.js +80 -0
- package/dist/src/timered-counter.js.map +1 -0
- package/dist/src/transitions/roller/index.d.ts +1 -0
- package/dist/src/transitions/roller/index.js +2 -0
- package/dist/src/transitions/roller/index.js.map +1 -0
- package/dist/src/transitions/roller/roller-digit.d.ts +28 -0
- package/dist/src/transitions/roller/roller-digit.js +259 -0
- package/dist/src/transitions/roller/roller-digit.js.map +1 -0
- package/dist/src/transitions/roller/roller.d.ts +42 -0
- package/dist/src/transitions/roller/roller.js +235 -0
- package/dist/src/transitions/roller/roller.js.map +1 -0
- package/dist/src/transitions/roller/styles.d.ts +2 -0
- package/dist/src/transitions/roller/styles.js +77 -0
- package/dist/src/transitions/roller/styles.js.map +1 -0
- package/dist/src/types/duration.d.ts +33 -0
- package/dist/src/types/duration.js +35 -0
- package/dist/src/types/duration.js.map +1 -0
- package/dist/src/types/group.d.ts +67 -0
- package/dist/src/types/group.js +2 -0
- package/dist/src/types/group.js.map +1 -0
- package/dist/src/utils/any-base.d.ts +6 -0
- package/dist/src/utils/any-base.js +56 -0
- package/dist/src/utils/any-base.js.map +1 -0
- package/dist/src/utils/duration.d.ts +15 -0
- package/dist/src/utils/duration.js +66 -0
- package/dist/src/utils/duration.js.map +1 -0
- package/dist/src/utils/extract-group-option.d.ts +9 -0
- package/dist/src/utils/extract-group-option.js +81 -0
- package/dist/src/utils/extract-group-option.js.map +1 -0
- package/dist/src/utils/iso8601-duration.d.ts +4 -0
- package/dist/src/utils/iso8601-duration.js +32 -0
- package/dist/src/utils/iso8601-duration.js.map +1 -0
- package/dist/src/utils/localized-date-time-fields.d.ts +2 -0
- package/dist/src/utils/localized-date-time-fields.js +24 -0
- package/dist/src/utils/localized-date-time-fields.js.map +1 -0
- package/dist/src/utils/parse-json-string.d.ts +1 -0
- package/dist/src/utils/parse-json-string.js +9 -0
- package/dist/src/utils/parse-json-string.js.map +1 -0
- package/dist/src/utils/polyfill-keyframes.d.ts +1 -0
- package/dist/src/utils/polyfill-keyframes.js +19 -0
- package/dist/src/utils/polyfill-keyframes.js.map +1 -0
- package/dist/src/utils/preprocess-part-data.d.ts +25 -0
- package/dist/src/utils/preprocess-part-data.js +59 -0
- package/dist/src/utils/preprocess-part-data.js.map +1 -0
- package/dist/src/utils/transition-digit.d.ts +2 -0
- package/dist/src/utils/transition-digit.js +51 -0
- package/dist/src/utils/transition-digit.js.map +1 -0
- package/dist/src/utils/uuid.d.ts +1 -0
- package/dist/src/utils/uuid.js +7 -0
- package/dist/src/utils/uuid.js.map +1 -0
- package/dist/stories/story-parts/animation-events.d.ts +9 -0
- package/dist/stories/story-parts/animation-events.js +35 -0
- package/dist/stories/story-parts/animation-events.js.map +1 -0
- package/dist/stories/story-parts/animation-options.d.ts +8 -0
- package/dist/stories/story-parts/animation-options.js +25 -0
- package/dist/stories/story-parts/animation-options.js.map +1 -0
- package/dist/stories/story-parts/big-number.d.ts +8 -0
- package/dist/stories/story-parts/big-number.js +25 -0
- package/dist/stories/story-parts/big-number.js.map +1 -0
- package/dist/stories/story-parts/datetime-locale.d.ts +8 -0
- package/dist/stories/story-parts/datetime-locale.js +30 -0
- package/dist/stories/story-parts/datetime-locale.js.map +1 -0
- package/dist/stories/story-parts/datetime-precision.d.ts +8 -0
- package/dist/stories/story-parts/datetime-precision.js +82 -0
- package/dist/stories/story-parts/datetime-precision.js.map +1 -0
- package/dist/stories/story-parts/edge-case.d.ts +8 -0
- package/dist/stories/story-parts/edge-case.js +12 -0
- package/dist/stories/story-parts/edge-case.js.map +1 -0
- package/dist/stories/story-parts/emoji.d.ts +9 -0
- package/dist/stories/story-parts/emoji.js +20 -0
- package/dist/stories/story-parts/emoji.js.map +1 -0
- package/dist/stories/story-parts/locale-number.d.ts +7 -0
- package/dist/stories/story-parts/locale-number.js +23 -0
- package/dist/stories/story-parts/locale-number.js.map +1 -0
- package/dist/stories/story-parts/slots.d.ts +10 -0
- package/dist/stories/story-parts/slots.js +29 -0
- package/dist/stories/story-parts/slots.js.map +1 -0
- package/dist/stories/story-parts/styles.d.ts +7 -0
- package/dist/stories/story-parts/styles.js +34 -0
- package/dist/stories/story-parts/styles.js.map +1 -0
- package/dist/stories/story-parts/value-change.d.ts +9 -0
- package/dist/stories/story-parts/value-change.js +20 -0
- package/dist/stories/story-parts/value-change.js.map +1 -0
- package/dist/stories/timered-counter/decimaljs.stories.d.ts +6 -0
- package/dist/stories/timered-counter/decimaljs.stories.js +34 -0
- package/dist/stories/timered-counter/decimaljs.stories.js.map +1 -0
- package/dist/stories/timered-counter/index.stories.d.ts +9 -0
- package/dist/stories/timered-counter/index.stories.js +180 -0
- package/dist/stories/timered-counter/index.stories.js.map +1 -0
- package/dist/stories/timered-counter-datetime-duration/index.stories.d.ts +7 -0
- package/dist/stories/timered-counter-datetime-duration/index.stories.js +95 -0
- package/dist/stories/timered-counter-datetime-duration/index.stories.js.map +1 -0
- package/dist/stories/timered-counter-number/decimaljs.stories.d.ts +6 -0
- package/dist/stories/timered-counter-number/decimaljs.stories.js +34 -0
- package/dist/stories/timered-counter-number/decimaljs.stories.js.map +1 -0
- package/dist/stories/timered-counter-number/index.stories.d.ts +9 -0
- package/dist/stories/timered-counter-number/index.stories.js +188 -0
- package/dist/stories/timered-counter-number/index.stories.js.map +1 -0
- package/dist/stories/timered-counter-string/decimaljs.stories.d.ts +7 -0
- package/dist/stories/timered-counter-string/decimaljs.stories.js +55 -0
- package/dist/stories/timered-counter-string/decimaljs.stories.js.map +1 -0
- package/dist/stories/timered-counter-string/grapheme-splitter.stories.d.ts +7 -0
- package/dist/stories/timered-counter-string/grapheme-splitter.stories.js +56 -0
- package/dist/stories/timered-counter-string/grapheme-splitter.stories.js.map +1 -0
- package/dist/stories/timered-counter-string/index.stories.d.ts +9 -0
- package/dist/stories/timered-counter-string/index.stories.js +126 -0
- package/dist/stories/timered-counter-string/index.stories.js.map +1 -0
- package/dist/stories/timered-counter-string/intl-segmenter.stories.d.ts +7 -0
- package/dist/stories/timered-counter-string/intl-segmenter.stories.js +56 -0
- package/dist/stories/timered-counter-string/intl-segmenter.stories.js.map +1 -0
- package/dist/stories/utils/index.d.ts +8 -0
- package/dist/stories/utils/index.js +20 -0
- package/dist/stories/utils/index.js.map +1 -0
- package/dist/test/td-counter.test.d.ts +1 -0
- package/dist/test/td-counter.test.js +25 -0
- package/dist/test/td-counter.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +128 -0
package/package.json
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
{
|
2
|
+
"name": "timered-counter",
|
3
|
+
"description": "Webcomponent timered-counter following open-wc recommendations",
|
4
|
+
"license": "MIT",
|
5
|
+
"author": "timered-counter",
|
6
|
+
"version": "0.0.0",
|
7
|
+
"type": "module",
|
8
|
+
"main": "dist/src/index.js",
|
9
|
+
"module": "dist/src/index.js",
|
10
|
+
"exports": {
|
11
|
+
".": "./dist/src/index.js",
|
12
|
+
"./timered-counter.js": "./dist/src/timered-counter.js",
|
13
|
+
"./timered-counter-datetime-duration": "./dist/src/timered-counter-datetime-duration.js",
|
14
|
+
"./timered-counter-datetime-duration.js": "./dist/src/timered-counter-datetime-duration.js",
|
15
|
+
"./timered-counter-string": "./dist/src/timered-counter-string.js",
|
16
|
+
"./timered-counter-string.js": "./dist/src/timered-counter-string.js",
|
17
|
+
"./timered-counter-number": "./dist/src/timered-counter-number.js",
|
18
|
+
"./timered-counter-number.js": "./dist/src/timered-counter-number.js"
|
19
|
+
},
|
20
|
+
"files": [
|
21
|
+
"dist"
|
22
|
+
],
|
23
|
+
"types": "dist/src/index.d.ts",
|
24
|
+
"scripts": {
|
25
|
+
"analyze": "cem analyze --litelement",
|
26
|
+
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"web-dev-server\"",
|
27
|
+
"build": "tsc && npm run analyze -- --exclude dist",
|
28
|
+
"prepublish": "tsc && npm run analyze -- --exclude dist",
|
29
|
+
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
30
|
+
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
31
|
+
"prepare": "husky",
|
32
|
+
"test": "tsc && wtr --coverage",
|
33
|
+
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\"",
|
34
|
+
"storybook": "tsc && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"storybook dev -p 8080\"",
|
35
|
+
"storybook:build": "tsc && npm run analyze -- --exclude dist && storybook build",
|
36
|
+
"test-storybook": "test-storybook --verbose --maxWorkers=1 --coverage --url http://127.0.0.1:8080"
|
37
|
+
},
|
38
|
+
"dependencies": {
|
39
|
+
"@lit/context": "^1.1.3",
|
40
|
+
"d3-array": "^3.2.4",
|
41
|
+
"date-fns": "^4.1.0",
|
42
|
+
"lit": "^3.1.4",
|
43
|
+
"remeda": "^2.19.0"
|
44
|
+
},
|
45
|
+
"devDependencies": {
|
46
|
+
"@chromatic-com/storybook": "^3.2.4",
|
47
|
+
"@custom-elements-manifest/analyzer": "^0.10.3",
|
48
|
+
"@faker-js/faker": "^9.5.0",
|
49
|
+
"@open-wc/eslint-config": "^12.0.3",
|
50
|
+
"@open-wc/testing": "^4.0.0",
|
51
|
+
"@storybook/addon-a11y": "^8.5.0",
|
52
|
+
"@storybook/addon-coverage": "^1.0.5",
|
53
|
+
"@storybook/addon-essentials": "^8.5.0",
|
54
|
+
"@storybook/addon-interactions": "^8.5.0",
|
55
|
+
"@storybook/addon-links": "^8.5.0",
|
56
|
+
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
|
57
|
+
"@storybook/test": "^8.5.0",
|
58
|
+
"@storybook/test-runner": "^0.21.0",
|
59
|
+
"@storybook/web-components": "^8.5.0",
|
60
|
+
"@storybook/web-components-webpack5": "^8.5.0",
|
61
|
+
"@types/d3": "^7.4.3",
|
62
|
+
"@types/mocha": "^10.0.7",
|
63
|
+
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
64
|
+
"@typescript-eslint/parser": "^7.16.0",
|
65
|
+
"@web/dev-server": "^0.4.6",
|
66
|
+
"@web/storybook-builder": "^0.1.21",
|
67
|
+
"@web/storybook-framework-web-components": "^0.1.2",
|
68
|
+
"@web/test-runner": "^0.18.2",
|
69
|
+
"concurrently": "^8.2.2",
|
70
|
+
"eslint": "^8.57.0",
|
71
|
+
"eslint-config-prettier": "^9.1.0",
|
72
|
+
"husky": "^9.0.11",
|
73
|
+
"lint-staged": "^15.2.7",
|
74
|
+
"prettier": "^3.3.2",
|
75
|
+
"storybook": "^8.5.0",
|
76
|
+
"tslib": "^2.6.3",
|
77
|
+
"type-fest": "^4.32.0",
|
78
|
+
"typescript": "^5.5.3"
|
79
|
+
},
|
80
|
+
"customElements": "custom-elements.json",
|
81
|
+
"eslintConfig": {
|
82
|
+
"parser": "@typescript-eslint/parser",
|
83
|
+
"extends": [
|
84
|
+
"@open-wc",
|
85
|
+
"prettier"
|
86
|
+
],
|
87
|
+
"plugins": [
|
88
|
+
"@typescript-eslint"
|
89
|
+
],
|
90
|
+
"rules": {
|
91
|
+
"no-unused-vars": "off",
|
92
|
+
"@typescript-eslint/no-unused-vars": [
|
93
|
+
"error"
|
94
|
+
],
|
95
|
+
"import/no-unresolved": "off",
|
96
|
+
"import/extensions": [
|
97
|
+
"error",
|
98
|
+
"always",
|
99
|
+
{
|
100
|
+
"ignorePackages": true
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"no-undef": "off",
|
104
|
+
"no-plusplus": "off",
|
105
|
+
"no-param-reassign": "off",
|
106
|
+
"max-classes-per-file": "off",
|
107
|
+
"wc/guard-super-call": "off",
|
108
|
+
"no-shadow": "off",
|
109
|
+
"@typescript-eslint/no-shadow": [
|
110
|
+
"error"
|
111
|
+
]
|
112
|
+
}
|
113
|
+
},
|
114
|
+
"prettier": {
|
115
|
+
"singleQuote": true,
|
116
|
+
"arrowParens": "avoid"
|
117
|
+
},
|
118
|
+
"lint-staged": {
|
119
|
+
"*.ts": [
|
120
|
+
"eslint --fix",
|
121
|
+
"prettier --write"
|
122
|
+
]
|
123
|
+
},
|
124
|
+
"optionalDependencies": {
|
125
|
+
"decimal.js": "^10.4.3",
|
126
|
+
"grapheme-splitter": "^1.0.4"
|
127
|
+
}
|
128
|
+
}
|