timered-counter 1.0.0 → 1.1.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/custom-elements.json +252 -102
- package/dist/custom-elements.json +252 -102
- package/dist/decimal-js-number-adapter.esm-browser.js +9 -0
- package/dist/decimal-js-number-adapter.esm-browser.js.map +1 -0
- package/dist/decimal-js-number-adapter.global.js +10 -0
- package/dist/decimal-js-number-adapter.global.js.map +1 -0
- package/dist/grapheme-splitter-string-adapter.esm-browser.js +2 -0
- package/dist/grapheme-splitter-string-adapter.esm-browser.js.map +1 -0
- package/dist/grapheme-splitter-string-adapter.global.js +2 -0
- package/dist/grapheme-splitter-string-adapter.global.js.map +1 -0
- package/dist/src/index.d.ts +1 -5
- package/dist/src/index.js +1 -7
- package/dist/src/index.js.map +1 -1
- package/dist/src/mixins/counter-base.js +9 -9
- package/dist/src/mixins/counter-base.js.map +1 -1
- package/dist/src/number-adapter/decimal-js.d.ts +8 -1
- package/dist/src/number-adapter/decimal-js.js +7 -0
- package/dist/src/number-adapter/decimal-js.js.map +1 -1
- package/dist/src/number-adapter/index.d.ts +6 -4
- package/dist/src/number-adapter/index.js +7 -4
- package/dist/src/number-adapter/index.js.map +1 -1
- package/dist/src/string-adapter/grapheme-splitter.d.ts +7 -0
- package/dist/src/string-adapter/grapheme-splitter.js +7 -0
- package/dist/src/string-adapter/grapheme-splitter.js.map +1 -1
- package/dist/src/string-adapter/index.d.ts +6 -4
- package/dist/src/string-adapter/index.js +7 -4
- package/dist/src/string-adapter/index.js.map +1 -1
- package/dist/src/timered-counter-adapter.d.ts +65 -0
- package/dist/src/timered-counter-adapter.js +120 -0
- package/dist/src/timered-counter-adapter.js.map +1 -0
- package/dist/stories/timered-counter/decimaljs.stories.js +4 -2
- package/dist/stories/timered-counter/decimaljs.stories.js.map +1 -1
- package/dist/stories/timered-counter-number/decimaljs.stories.js +4 -2
- package/dist/stories/timered-counter-number/decimaljs.stories.js.map +1 -1
- package/dist/stories/timered-counter-string/decimaljs.stories.js +4 -2
- package/dist/stories/timered-counter-string/decimaljs.stories.js.map +1 -1
- package/dist/stories/timered-counter-string/grapheme-splitter.stories.js +7 -3
- package/dist/stories/timered-counter-string/grapheme-splitter.stories.js.map +1 -1
- package/dist/stories/timered-counter-string/intl-segmenter.stories.js +5 -3
- package/dist/stories/timered-counter-string/intl-segmenter.stories.js.map +1 -1
- package/dist/timered-counter.esm-browser.js +54 -61
- package/dist/timered-counter.esm-browser.js.map +1 -1
- package/dist/timered-counter.global.js +51 -58
- package/dist/timered-counter.global.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/counter-adapter.d.ts +0 -38
- package/dist/src/counter-adapter.js +0 -71
- package/dist/src/counter-adapter.js.map +0 -1
package/custom-elements.json
CHANGED
@@ -4,13 +4,94 @@
|
|
4
4
|
"modules": [
|
5
5
|
{
|
6
6
|
"kind": "javascript-module",
|
7
|
-
"path": "src/
|
7
|
+
"path": "src/index.ts",
|
8
|
+
"declarations": [],
|
9
|
+
"exports": [
|
10
|
+
{
|
11
|
+
"kind": "js",
|
12
|
+
"name": "TimeredCounter",
|
13
|
+
"declaration": {
|
14
|
+
"name": "TimeredCounter",
|
15
|
+
"module": "src/index.ts"
|
16
|
+
}
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"kind": "js",
|
20
|
+
"name": "TimeredCounterDatetimeDuration",
|
21
|
+
"declaration": {
|
22
|
+
"name": "TimeredCounterDatetimeDuration",
|
23
|
+
"module": "src/index.ts"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"kind": "js",
|
28
|
+
"name": "TimeredCounterNumber",
|
29
|
+
"declaration": {
|
30
|
+
"name": "TimeredCounterNumber",
|
31
|
+
"module": "src/index.ts"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"kind": "js",
|
36
|
+
"name": "TimeredCounterString",
|
37
|
+
"declaration": {
|
38
|
+
"name": "TimeredCounterString",
|
39
|
+
"module": "src/index.ts"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"kind": "js",
|
44
|
+
"name": "*",
|
45
|
+
"declaration": {
|
46
|
+
"name": "*",
|
47
|
+
"package": "./easing/index.js"
|
48
|
+
}
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"kind": "js",
|
52
|
+
"name": "*",
|
53
|
+
"declaration": {
|
54
|
+
"name": "*",
|
55
|
+
"package": "./types/index.js"
|
56
|
+
}
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"kind": "js",
|
60
|
+
"name": "*",
|
61
|
+
"declaration": {
|
62
|
+
"name": "*",
|
63
|
+
"package": "./timered-counter-adapter.js"
|
64
|
+
}
|
65
|
+
}
|
66
|
+
]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"kind": "javascript-module",
|
70
|
+
"path": "src/timered-counter-adapter.ts",
|
8
71
|
"declarations": [
|
9
72
|
{
|
10
73
|
"kind": "class",
|
11
74
|
"description": "",
|
12
|
-
"name": "
|
75
|
+
"name": "TimeredCounterAdapter",
|
13
76
|
"members": [
|
77
|
+
{
|
78
|
+
"kind": "field",
|
79
|
+
"name": "AVAILABLE_NUMBER_ADAPTERS",
|
80
|
+
"type": {
|
81
|
+
"text": "Map<string[], () => NumberAdapter>"
|
82
|
+
},
|
83
|
+
"static": true,
|
84
|
+
"default": "new Map([ [['number'], BuildInNumberAdapter], // [['decimal.js', 'decimaljs'], DecimalJsAdapter()], ])"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"kind": "field",
|
88
|
+
"name": "AVAILABLE_STRING_ADAPTERS",
|
89
|
+
"type": {
|
90
|
+
"text": "Map<string[], () => StringAdapter>"
|
91
|
+
},
|
92
|
+
"static": true,
|
93
|
+
"default": "new Map([ [['string'], BuildInStringAdapter], [['intl-segmenter'], BuildInIntlSegmenterAdapter], // [['grapheme-splitter'], GraphemeSplitterAdapter()], ])"
|
94
|
+
},
|
14
95
|
{
|
15
96
|
"kind": "field",
|
16
97
|
"name": "NUMBER_ADAPTER",
|
@@ -38,7 +119,7 @@
|
|
38
119
|
"text": "object"
|
39
120
|
},
|
40
121
|
"static": true,
|
41
|
-
"default": "{ fromAttribute(value: string | null) { return value; }, toAttribute(value: unknown) { return isNullish(value) ? value :
|
122
|
+
"default": "{ fromAttribute(value: string | null) { return value; }, toAttribute(value: unknown) { return isNullish(value) ? value : TimeredCounterAdapter.NUMBER_ADAPTER.toString(value); }, }",
|
42
123
|
"description": "将 value 及其相关的属性, 在 attribute 和 property 上的互相转换.",
|
43
124
|
"privacy": "protected"
|
44
125
|
},
|
@@ -50,76 +131,124 @@
|
|
50
131
|
{
|
51
132
|
"name": "adapterOrType",
|
52
133
|
"type": {
|
53
|
-
"text": "NumberAdapter | 'number' |
|
134
|
+
"text": "NumberAdapter | 'number' | string"
|
135
|
+
}
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"description": "设置要使用的数字适配器. 仅对设置完之后的 TimeredCounter 实例生效.\n\n接受的关键字除了内置的 `number` 以外, 还可以通过 registerNumberAdapter 注册的 `keyword`."
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"kind": "method",
|
142
|
+
"name": "setStringAdapter",
|
143
|
+
"static": true,
|
144
|
+
"parameters": [
|
145
|
+
{
|
146
|
+
"name": "adapterOrType",
|
147
|
+
"type": {
|
148
|
+
"text": "StringAdapter | 'string' | 'intl-segmenter' | string"
|
149
|
+
}
|
150
|
+
}
|
151
|
+
],
|
152
|
+
"description": "与 setNumberAdapter 类似, 用于设置字符串适配器."
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"kind": "method",
|
156
|
+
"name": "registerNumberAdapter",
|
157
|
+
"static": true,
|
158
|
+
"parameters": [
|
159
|
+
{
|
160
|
+
"name": "keyword",
|
161
|
+
"type": {
|
162
|
+
"text": "string[]"
|
54
163
|
}
|
55
164
|
},
|
56
165
|
{
|
57
|
-
"name": "
|
58
|
-
"optional": true,
|
166
|
+
"name": "adapter",
|
59
167
|
"type": {
|
60
|
-
"text": "
|
168
|
+
"text": "() => NumberAdapter"
|
61
169
|
}
|
62
170
|
}
|
63
171
|
]
|
64
172
|
},
|
65
173
|
{
|
66
174
|
"kind": "method",
|
67
|
-
"name": "
|
175
|
+
"name": "registerStringAdapter",
|
68
176
|
"static": true,
|
69
177
|
"parameters": [
|
70
178
|
{
|
71
|
-
"name": "
|
179
|
+
"name": "keyword",
|
72
180
|
"type": {
|
73
|
-
"text": "
|
181
|
+
"text": "string[]"
|
182
|
+
}
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"name": "adapter",
|
186
|
+
"type": {
|
187
|
+
"text": "() => StringAdapter"
|
74
188
|
}
|
75
189
|
}
|
76
190
|
]
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"kind": "method",
|
194
|
+
"name": "registryAdapter",
|
195
|
+
"static": true,
|
196
|
+
"parameters": [
|
197
|
+
{
|
198
|
+
"name": "adapter",
|
199
|
+
"type": {
|
200
|
+
"text": "{\n register: (counterAdapter: typeof TimeredCounterAdapter) => void;\n }"
|
201
|
+
}
|
202
|
+
}
|
203
|
+
],
|
204
|
+
"description": "可以直接使用 adapter 文件的导出进行注册.\n\nadapter 文件需要导出一个名为 register 的函数, 该函数接受一个 TimeredCounterAdapter 类型的参数.\n\n具体示例请查看 GraphemeSplitterAdapter or DecimalJsAdapter."
|
77
205
|
}
|
78
206
|
]
|
79
|
-
}
|
80
|
-
],
|
81
|
-
"exports": [
|
82
|
-
{
|
83
|
-
"kind": "js",
|
84
|
-
"name": "CounterAdapter",
|
85
|
-
"declaration": {
|
86
|
-
"name": "CounterAdapter",
|
87
|
-
"module": "src/counter-adapter.ts"
|
88
|
-
}
|
89
|
-
}
|
90
|
-
]
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"kind": "javascript-module",
|
94
|
-
"path": "src/index.ts",
|
95
|
-
"declarations": [
|
207
|
+
},
|
96
208
|
{
|
97
209
|
"kind": "function",
|
98
210
|
"name": "setNumberAdapter",
|
99
211
|
"parameters": [
|
100
212
|
{
|
101
|
-
"name": "
|
213
|
+
"name": "args",
|
102
214
|
"type": {
|
103
|
-
"text": "
|
215
|
+
"text": "Parameters<(typeof TimeredCounterAdapter)['setNumberAdapter']>"
|
104
216
|
}
|
105
|
-
}
|
217
|
+
}
|
218
|
+
]
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"kind": "function",
|
222
|
+
"name": "setStringAdapter",
|
223
|
+
"parameters": [
|
106
224
|
{
|
107
|
-
"name": "
|
108
|
-
"optional": true,
|
225
|
+
"name": "args",
|
109
226
|
"type": {
|
110
|
-
"text": "
|
227
|
+
"text": "Parameters<(typeof TimeredCounterAdapter)['setStringAdapter']>"
|
111
228
|
}
|
112
229
|
}
|
113
230
|
]
|
114
231
|
},
|
115
232
|
{
|
116
233
|
"kind": "function",
|
117
|
-
"name": "
|
234
|
+
"name": "registerNumberAdapter",
|
118
235
|
"parameters": [
|
119
236
|
{
|
120
|
-
"name": "
|
237
|
+
"name": "args",
|
121
238
|
"type": {
|
122
|
-
"text": "
|
239
|
+
"text": "Parameters<(typeof TimeredCounterAdapter)['registerNumberAdapter']>"
|
240
|
+
}
|
241
|
+
}
|
242
|
+
]
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"kind": "function",
|
246
|
+
"name": "registerStringAdapter",
|
247
|
+
"parameters": [
|
248
|
+
{
|
249
|
+
"name": "args",
|
250
|
+
"type": {
|
251
|
+
"text": "Parameters<(typeof TimeredCounterAdapter)['registerStringAdapter']>"
|
123
252
|
}
|
124
253
|
}
|
125
254
|
]
|
@@ -128,66 +257,42 @@
|
|
128
257
|
"exports": [
|
129
258
|
{
|
130
259
|
"kind": "js",
|
131
|
-
"name": "
|
132
|
-
"declaration": {
|
133
|
-
"name": "setNumberAdapter",
|
134
|
-
"module": "src/index.ts"
|
135
|
-
}
|
136
|
-
},
|
137
|
-
{
|
138
|
-
"kind": "js",
|
139
|
-
"name": "setStringAdapter",
|
260
|
+
"name": "TimeredCounterAdapter",
|
140
261
|
"declaration": {
|
141
|
-
"name": "
|
142
|
-
"module": "src/
|
262
|
+
"name": "TimeredCounterAdapter",
|
263
|
+
"module": "src/timered-counter-adapter.ts"
|
143
264
|
}
|
144
265
|
},
|
145
266
|
{
|
146
267
|
"kind": "js",
|
147
|
-
"name": "
|
148
|
-
"declaration": {
|
149
|
-
"name": "TimeredCounter",
|
150
|
-
"module": "src/index.ts"
|
151
|
-
}
|
152
|
-
},
|
153
|
-
{
|
154
|
-
"kind": "js",
|
155
|
-
"name": "TimeredCounterDatetimeDuration",
|
156
|
-
"declaration": {
|
157
|
-
"name": "TimeredCounterDatetimeDuration",
|
158
|
-
"module": "src/index.ts"
|
159
|
-
}
|
160
|
-
},
|
161
|
-
{
|
162
|
-
"kind": "js",
|
163
|
-
"name": "TimeredCounterNumber",
|
268
|
+
"name": "setNumberAdapter",
|
164
269
|
"declaration": {
|
165
|
-
"name": "
|
166
|
-
"module": "src/
|
270
|
+
"name": "setNumberAdapter",
|
271
|
+
"module": "src/timered-counter-adapter.ts"
|
167
272
|
}
|
168
273
|
},
|
169
274
|
{
|
170
275
|
"kind": "js",
|
171
|
-
"name": "
|
276
|
+
"name": "setStringAdapter",
|
172
277
|
"declaration": {
|
173
|
-
"name": "
|
174
|
-
"module": "src/
|
278
|
+
"name": "setStringAdapter",
|
279
|
+
"module": "src/timered-counter-adapter.ts"
|
175
280
|
}
|
176
281
|
},
|
177
282
|
{
|
178
283
|
"kind": "js",
|
179
|
-
"name": "
|
284
|
+
"name": "registerNumberAdapter",
|
180
285
|
"declaration": {
|
181
|
-
"name": "
|
182
|
-
"
|
286
|
+
"name": "registerNumberAdapter",
|
287
|
+
"module": "src/timered-counter-adapter.ts"
|
183
288
|
}
|
184
289
|
},
|
185
290
|
{
|
186
291
|
"kind": "js",
|
187
|
-
"name": "
|
292
|
+
"name": "registerStringAdapter",
|
188
293
|
"declaration": {
|
189
|
-
"name": "
|
190
|
-
"
|
294
|
+
"name": "registerStringAdapter",
|
295
|
+
"module": "src/timered-counter-adapter.ts"
|
191
296
|
}
|
192
297
|
}
|
193
298
|
]
|
@@ -5454,9 +5559,36 @@
|
|
5454
5559
|
"default": "{ precision: 1e3 }"
|
5455
5560
|
}
|
5456
5561
|
]
|
5562
|
+
},
|
5563
|
+
{
|
5564
|
+
"kind": "function",
|
5565
|
+
"name": "register",
|
5566
|
+
"parameters": [
|
5567
|
+
{
|
5568
|
+
"name": "counterAdapter",
|
5569
|
+
"type": {
|
5570
|
+
"text": "typeof TimeredCounterAdapter"
|
5571
|
+
}
|
5572
|
+
},
|
5573
|
+
{
|
5574
|
+
"name": "config",
|
5575
|
+
"optional": true,
|
5576
|
+
"type": {
|
5577
|
+
"text": "Decimal.Config"
|
5578
|
+
}
|
5579
|
+
}
|
5580
|
+
]
|
5457
5581
|
}
|
5458
5582
|
],
|
5459
5583
|
"exports": [
|
5584
|
+
{
|
5585
|
+
"kind": "js",
|
5586
|
+
"name": "register",
|
5587
|
+
"declaration": {
|
5588
|
+
"name": "register",
|
5589
|
+
"module": "src/number-adapter/decimal-js.ts"
|
5590
|
+
}
|
5591
|
+
},
|
5460
5592
|
{
|
5461
5593
|
"kind": "js",
|
5462
5594
|
"name": "DecimalJsAdapter",
|
@@ -5464,6 +5596,13 @@
|
|
5464
5596
|
"name": "DecimalJsAdapter",
|
5465
5597
|
"module": "src/number-adapter/decimal-js.ts"
|
5466
5598
|
}
|
5599
|
+
},
|
5600
|
+
{
|
5601
|
+
"kind": "js",
|
5602
|
+
"name": "default",
|
5603
|
+
"declaration": {
|
5604
|
+
"module": "src/number-adapter/decimal-js.ts"
|
5605
|
+
}
|
5467
5606
|
}
|
5468
5607
|
]
|
5469
5608
|
},
|
@@ -5477,7 +5616,7 @@
|
|
5477
5616
|
"name": "*",
|
5478
5617
|
"declaration": {
|
5479
5618
|
"name": "*",
|
5480
|
-
"package": "
|
5619
|
+
"package": "./types.js"
|
5481
5620
|
}
|
5482
5621
|
},
|
5483
5622
|
{
|
@@ -5485,7 +5624,7 @@
|
|
5485
5624
|
"name": "*",
|
5486
5625
|
"declaration": {
|
5487
5626
|
"name": "*",
|
5488
|
-
"package": "
|
5627
|
+
"package": "./build-in-number.js"
|
5489
5628
|
}
|
5490
5629
|
},
|
5491
5630
|
{
|
@@ -5493,15 +5632,7 @@
|
|
5493
5632
|
"name": "*",
|
5494
5633
|
"declaration": {
|
5495
5634
|
"name": "*",
|
5496
|
-
"package": "
|
5497
|
-
}
|
5498
|
-
},
|
5499
|
-
{
|
5500
|
-
"kind": "js",
|
5501
|
-
"name": "*",
|
5502
|
-
"declaration": {
|
5503
|
-
"name": "*",
|
5504
|
-
"package": "\"./decimal-js.js\""
|
5635
|
+
"package": "./build-in-bigint.js"
|
5505
5636
|
}
|
5506
5637
|
}
|
5507
5638
|
]
|
@@ -5568,9 +5699,29 @@
|
|
5568
5699
|
"kind": "function",
|
5569
5700
|
"name": "GraphemeSplitterAdapter",
|
5570
5701
|
"description": "使用 `grapheme-splitter` 库的字符串适配器. 该适配器使用 `grapheme-splitter` 库将字符串转换为字符数组.\n\n要使用 GraphemeSplitterAdapter 需要安装 `grapheme-splitter`."
|
5702
|
+
},
|
5703
|
+
{
|
5704
|
+
"kind": "function",
|
5705
|
+
"name": "register",
|
5706
|
+
"parameters": [
|
5707
|
+
{
|
5708
|
+
"name": "counterAdapter",
|
5709
|
+
"type": {
|
5710
|
+
"text": "typeof TimeredCounterAdapter"
|
5711
|
+
}
|
5712
|
+
}
|
5713
|
+
]
|
5571
5714
|
}
|
5572
5715
|
],
|
5573
5716
|
"exports": [
|
5717
|
+
{
|
5718
|
+
"kind": "js",
|
5719
|
+
"name": "register",
|
5720
|
+
"declaration": {
|
5721
|
+
"name": "register",
|
5722
|
+
"module": "src/string-adapter/grapheme-splitter.ts"
|
5723
|
+
}
|
5724
|
+
},
|
5574
5725
|
{
|
5575
5726
|
"kind": "js",
|
5576
5727
|
"name": "GraphemeSplitterAdapter",
|
@@ -5578,6 +5729,13 @@
|
|
5578
5729
|
"name": "GraphemeSplitterAdapter",
|
5579
5730
|
"module": "src/string-adapter/grapheme-splitter.ts"
|
5580
5731
|
}
|
5732
|
+
},
|
5733
|
+
{
|
5734
|
+
"kind": "js",
|
5735
|
+
"name": "default",
|
5736
|
+
"declaration": {
|
5737
|
+
"module": "src/string-adapter/grapheme-splitter.ts"
|
5738
|
+
}
|
5581
5739
|
}
|
5582
5740
|
]
|
5583
5741
|
},
|
@@ -5591,15 +5749,7 @@
|
|
5591
5749
|
"name": "*",
|
5592
5750
|
"declaration": {
|
5593
5751
|
"name": "*",
|
5594
|
-
"package": "
|
5595
|
-
}
|
5596
|
-
},
|
5597
|
-
{
|
5598
|
-
"kind": "js",
|
5599
|
-
"name": "*",
|
5600
|
-
"declaration": {
|
5601
|
-
"name": "*",
|
5602
|
-
"package": "\"./build-in-string.js\""
|
5752
|
+
"package": "./types.js"
|
5603
5753
|
}
|
5604
5754
|
},
|
5605
5755
|
{
|
@@ -5607,7 +5757,7 @@
|
|
5607
5757
|
"name": "*",
|
5608
5758
|
"declaration": {
|
5609
5759
|
"name": "*",
|
5610
|
-
"package": "
|
5760
|
+
"package": "./build-in-string.js"
|
5611
5761
|
}
|
5612
5762
|
},
|
5613
5763
|
{
|
@@ -5615,7 +5765,7 @@
|
|
5615
5765
|
"name": "*",
|
5616
5766
|
"declaration": {
|
5617
5767
|
"name": "*",
|
5618
|
-
"package": "
|
5768
|
+
"package": "./build-in-intl-segmenter.js"
|
5619
5769
|
}
|
5620
5770
|
}
|
5621
5771
|
]
|
@@ -6862,7 +7012,7 @@
|
|
6862
7012
|
"type": {
|
6863
7013
|
"text": "Meta"
|
6864
7014
|
},
|
6865
|
-
"default": "{ title: 'TimeredCounter/with decimal.js', component: 'timered-counter', tags: ['autodocs', 'timered-counter'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('decimal.js'); }, }"
|
7015
|
+
"default": "{ title: 'TimeredCounter/with decimal.js', component: 'timered-counter', tags: ['autodocs', 'timered-counter'], parameters: { controls: { expanded: true }, }, beforeEach: () => { TimeredCounterAdapter.registryAdapter(DecimalJsNumberAdapter); TimeredCounterAdapter.setNumberAdapter('decimal.js'); }, }"
|
6866
7016
|
},
|
6867
7017
|
{
|
6868
7018
|
"kind": "variable",
|
@@ -7118,7 +7268,7 @@
|
|
7118
7268
|
"type": {
|
7119
7269
|
"text": "Meta"
|
7120
7270
|
},
|
7121
|
-
"default": "{ title: 'TimeredCounterNumber/with decimal.js', component: 'timered-counter-number', tags: ['autodocs', 'timered-counter-number'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('decimal.js'); }, }"
|
7271
|
+
"default": "{ title: 'TimeredCounterNumber/with decimal.js', component: 'timered-counter-number', tags: ['autodocs', 'timered-counter-number'], parameters: { controls: { expanded: true }, }, beforeEach: () => { TimeredCounterAdapter.registryAdapter(DecimalJsNumberAdapter); TimeredCounterAdapter.setNumberAdapter('decimal.js'); }, }"
|
7122
7272
|
},
|
7123
7273
|
{
|
7124
7274
|
"kind": "variable",
|
@@ -7302,7 +7452,7 @@
|
|
7302
7452
|
"type": {
|
7303
7453
|
"text": "Meta"
|
7304
7454
|
},
|
7305
|
-
"default": "{ title: 'TimeredCounterString/with decimal.js', component: 'timered-counter-string', tags: ['autodocs', 'timered-counter-string'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('decimal.js'); }, }"
|
7455
|
+
"default": "{ title: 'TimeredCounterString/with decimal.js', component: 'timered-counter-string', tags: ['autodocs', 'timered-counter-string'], parameters: { controls: { expanded: true }, }, beforeEach: () => { TimeredCounterAdapter.registryAdapter(DecimalJsNumberAdapter); TimeredCounterAdapter.setNumberAdapter('decimal.js'); }, }"
|
7306
7456
|
},
|
7307
7457
|
{
|
7308
7458
|
"kind": "variable",
|
@@ -7390,7 +7540,7 @@
|
|
7390
7540
|
"type": {
|
7391
7541
|
"text": "Meta"
|
7392
7542
|
},
|
7393
|
-
"default": "{ title: 'TimeredCounterString/with grapheme-splitter', component: 'timered-counter-string', tags: ['autodocs', 'timered-counter-string'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('decimal.js'); setStringAdapter('grapheme-splitter'); }, }"
|
7543
|
+
"default": "{ title: 'TimeredCounterString/with grapheme-splitter', component: 'timered-counter-string', tags: ['autodocs', 'timered-counter-string'], parameters: { controls: { expanded: true }, }, beforeEach: () => { TimeredCounterAdapter.registryAdapter(DecimalJsNumberAdapter); TimeredCounterAdapter.registryAdapter(GraphemeSplitterStringAdapter); TimeredCounterAdapter.setNumberAdapter('decimal.js'); TimeredCounterAdapter.setStringAdapter('grapheme-splitter'); }, }"
|
7394
7544
|
},
|
7395
7545
|
{
|
7396
7546
|
"kind": "variable",
|
@@ -7582,7 +7732,7 @@
|
|
7582
7732
|
"type": {
|
7583
7733
|
"text": "Meta"
|
7584
7734
|
},
|
7585
|
-
"default": "{ title: 'TimeredCounterString/with Intl Segmenter', component: 'timered-counter-string', tags: ['autodocs', 'timered-counter-string'], parameters: { controls: { expanded: true }, }, beforeEach: () => { setNumberAdapter('decimal.js'); setStringAdapter('intl-segmenter'); }, }"
|
7735
|
+
"default": "{ title: 'TimeredCounterString/with Intl Segmenter', component: 'timered-counter-string', tags: ['autodocs', 'timered-counter-string'], parameters: { controls: { expanded: true }, }, beforeEach: () => { TimeredCounterAdapter.registryAdapter(DecimalJsNumberAdapter); TimeredCounterAdapter.setNumberAdapter('decimal.js'); TimeredCounterAdapter.setStringAdapter('intl-segmenter'); }, }"
|
7586
7736
|
},
|
7587
7737
|
{
|
7588
7738
|
"kind": "variable",
|