@spectrum-web-components/number-field 0.6.3-overlay.17 → 0.30.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.
@@ -0,0 +1,825 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-number-field.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
11
+ {
12
+ "kind": "javascript-module",
13
+ "path": "src/NumberField.js",
14
+ "declarations": [
15
+ {
16
+ "kind": "variable",
17
+ "name": "FRAMES_PER_CHANGE",
18
+ "type": {
19
+ "text": "number"
20
+ },
21
+ "default": "5"
22
+ },
23
+ {
24
+ "kind": "variable",
25
+ "name": "CHANGE_DEBOUNCE_MS",
26
+ "type": {
27
+ "text": "number"
28
+ },
29
+ "default": "100"
30
+ },
31
+ {
32
+ "kind": "variable",
33
+ "name": "indeterminatePlaceholder",
34
+ "type": {
35
+ "text": "string"
36
+ },
37
+ "default": "'-'"
38
+ },
39
+ {
40
+ "kind": "variable",
41
+ "name": "remapMultiByteCharacters",
42
+ "type": {
43
+ "text": "Record<string, string>"
44
+ },
45
+ "default": "{\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n '0': '0',\n '、': ',',\n ',': ',',\n '。': '.',\n '.': '.',\n '%': '%',\n '+': '+',\n ー: '-',\n}"
46
+ },
47
+ {
48
+ "kind": "class",
49
+ "description": "",
50
+ "name": "NumberField",
51
+ "slots": [
52
+ {
53
+ "description": "default or non-negative help text to associate to your form element",
54
+ "name": "help-text"
55
+ },
56
+ {
57
+ "description": "negative help text to associate to your form element when `invalid`",
58
+ "name": "negative-help-text"
59
+ }
60
+ ],
61
+ "members": [
62
+ {
63
+ "kind": "field",
64
+ "name": "buttons",
65
+ "type": {
66
+ "text": "HTMLDivElement"
67
+ },
68
+ "privacy": "private"
69
+ },
70
+ {
71
+ "kind": "field",
72
+ "name": "focused",
73
+ "type": {
74
+ "text": "boolean"
75
+ },
76
+ "privacy": "public",
77
+ "default": "false",
78
+ "attribute": "focused",
79
+ "reflects": true
80
+ },
81
+ {
82
+ "kind": "field",
83
+ "name": "_forcedUnit",
84
+ "type": {
85
+ "text": "string"
86
+ },
87
+ "default": "''"
88
+ },
89
+ {
90
+ "kind": "field",
91
+ "name": "formatOptions",
92
+ "type": {
93
+ "text": "Intl.NumberFormatOptions"
94
+ },
95
+ "privacy": "public",
96
+ "default": "{}",
97
+ "description": "An `&lt;sp-number-field&gt;` element will process its numeric value with\n`new Intl.NumberFormat(this.resolvedLanguage, this.formatOptions).format(this.valueAsNumber)`\nin order to prepare it for visual delivery in the input. In order to customize this\nprocessing supply your own `Intl.NumberFormatOptions` object here.\n\nSee: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat",
98
+ "attribute": "format-options"
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "hideStepper",
103
+ "type": {
104
+ "text": "boolean"
105
+ },
106
+ "privacy": "public",
107
+ "default": "false",
108
+ "description": "Whether the stepper UI is hidden or not.",
109
+ "attribute": "hide-stepper",
110
+ "reflects": true
111
+ },
112
+ {
113
+ "kind": "field",
114
+ "name": "indeterminate",
115
+ "type": {
116
+ "text": "boolean"
117
+ },
118
+ "privacy": "public",
119
+ "default": "false",
120
+ "attribute": "indeterminate",
121
+ "reflects": true
122
+ },
123
+ {
124
+ "kind": "field",
125
+ "name": "keyboardFocused",
126
+ "type": {
127
+ "text": "boolean"
128
+ },
129
+ "privacy": "public",
130
+ "default": "false",
131
+ "attribute": "keyboard-focused",
132
+ "reflects": true
133
+ },
134
+ {
135
+ "kind": "field",
136
+ "name": "max",
137
+ "type": {
138
+ "text": "number | undefined"
139
+ },
140
+ "privacy": "public",
141
+ "attribute": "max"
142
+ },
143
+ {
144
+ "kind": "field",
145
+ "name": "min",
146
+ "type": {
147
+ "text": "number | undefined"
148
+ },
149
+ "privacy": "public",
150
+ "attribute": "min"
151
+ },
152
+ {
153
+ "kind": "field",
154
+ "name": "step",
155
+ "type": {
156
+ "text": "number | undefined"
157
+ },
158
+ "privacy": "public",
159
+ "description": "The distance by which to alter the value of the element when taking a \"step\".\n\nWhen `this.formatOptions.style === 'percentage'` the default step will be\nset to 0.01 unless otherwise supplied to the element.",
160
+ "attribute": "step"
161
+ },
162
+ {
163
+ "kind": "field",
164
+ "name": "managedInput",
165
+ "type": {
166
+ "text": "boolean"
167
+ },
168
+ "privacy": "public",
169
+ "default": "false"
170
+ },
171
+ {
172
+ "kind": "field",
173
+ "name": "stepModifier",
174
+ "type": {
175
+ "text": "number"
176
+ },
177
+ "privacy": "public",
178
+ "default": "10",
179
+ "attribute": "step-modifier",
180
+ "reflects": true
181
+ },
182
+ {
183
+ "kind": "field",
184
+ "name": "value",
185
+ "privacy": "public",
186
+ "type": {
187
+ "text": "number"
188
+ },
189
+ "attribute": "value"
190
+ },
191
+ {
192
+ "kind": "field",
193
+ "name": "inputValue",
194
+ "type": {
195
+ "text": "string"
196
+ },
197
+ "privacy": "private"
198
+ },
199
+ {
200
+ "kind": "field",
201
+ "name": "_value",
202
+ "privacy": "public",
203
+ "default": "NaN"
204
+ },
205
+ {
206
+ "kind": "field",
207
+ "name": "_trackingValue",
208
+ "type": {
209
+ "text": "string"
210
+ },
211
+ "privacy": "private",
212
+ "default": "''"
213
+ },
214
+ {
215
+ "kind": "field",
216
+ "name": "valueAsString",
217
+ "type": {
218
+ "text": "string"
219
+ },
220
+ "privacy": "public",
221
+ "description": "Retreive the value of the element parsed to a Number."
222
+ },
223
+ {
224
+ "kind": "field",
225
+ "name": "formattedValue",
226
+ "type": {
227
+ "text": "string"
228
+ },
229
+ "privacy": "public"
230
+ },
231
+ {
232
+ "kind": "method",
233
+ "name": "convertValueToNumber",
234
+ "privacy": "private",
235
+ "return": {
236
+ "type": {
237
+ "text": "number"
238
+ }
239
+ },
240
+ "parameters": [
241
+ {
242
+ "name": "value",
243
+ "type": {
244
+ "text": "string"
245
+ }
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "kind": "field",
251
+ "name": "_step",
252
+ "type": {
253
+ "text": "number"
254
+ },
255
+ "privacy": "private"
256
+ },
257
+ {
258
+ "kind": "field",
259
+ "name": "nextChange",
260
+ "type": {
261
+ "text": "number"
262
+ },
263
+ "privacy": "private"
264
+ },
265
+ {
266
+ "kind": "field",
267
+ "name": "changeCount",
268
+ "type": {
269
+ "text": "number"
270
+ },
271
+ "privacy": "private",
272
+ "default": "0"
273
+ },
274
+ {
275
+ "kind": "field",
276
+ "name": "findChange",
277
+ "type": {
278
+ "text": "(event: PointerEvent) => void"
279
+ },
280
+ "privacy": "private"
281
+ },
282
+ {
283
+ "kind": "field",
284
+ "name": "change",
285
+ "type": {
286
+ "text": "(event: PointerEvent) => void"
287
+ },
288
+ "privacy": "private"
289
+ },
290
+ {
291
+ "kind": "field",
292
+ "name": "safty",
293
+ "type": {
294
+ "text": "number"
295
+ },
296
+ "privacy": "private"
297
+ },
298
+ {
299
+ "kind": "field",
300
+ "name": "languageResolver",
301
+ "privacy": "private",
302
+ "default": "new LanguageResolutionController(this)"
303
+ },
304
+ {
305
+ "kind": "method",
306
+ "name": "handlePointerdown",
307
+ "privacy": "private",
308
+ "return": {
309
+ "type": {
310
+ "text": "void"
311
+ }
312
+ },
313
+ "parameters": [
314
+ {
315
+ "name": "event",
316
+ "type": {
317
+ "text": "PointerEvent"
318
+ }
319
+ }
320
+ ]
321
+ },
322
+ {
323
+ "kind": "method",
324
+ "name": "startChange",
325
+ "privacy": "private",
326
+ "return": {
327
+ "type": {
328
+ "text": "void"
329
+ }
330
+ },
331
+ "parameters": [
332
+ {
333
+ "name": "event",
334
+ "type": {
335
+ "text": "PointerEvent"
336
+ }
337
+ }
338
+ ]
339
+ },
340
+ {
341
+ "kind": "method",
342
+ "name": "doChange",
343
+ "privacy": "private",
344
+ "return": {
345
+ "type": {
346
+ "text": "void"
347
+ }
348
+ },
349
+ "parameters": [
350
+ {
351
+ "name": "event",
352
+ "type": {
353
+ "text": "PointerEvent"
354
+ }
355
+ }
356
+ ]
357
+ },
358
+ {
359
+ "kind": "method",
360
+ "name": "handlePointermove",
361
+ "privacy": "private",
362
+ "return": {
363
+ "type": {
364
+ "text": "void"
365
+ }
366
+ },
367
+ "parameters": [
368
+ {
369
+ "name": "event",
370
+ "type": {
371
+ "text": "PointerEvent"
372
+ }
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ "kind": "method",
378
+ "name": "handlePointerup",
379
+ "privacy": "private",
380
+ "return": {
381
+ "type": {
382
+ "text": "void"
383
+ }
384
+ },
385
+ "parameters": [
386
+ {
387
+ "name": "event",
388
+ "type": {
389
+ "text": "PointerEvent"
390
+ }
391
+ }
392
+ ]
393
+ },
394
+ {
395
+ "kind": "method",
396
+ "name": "doNextChange",
397
+ "privacy": "private",
398
+ "return": {
399
+ "type": {
400
+ "text": "number"
401
+ }
402
+ },
403
+ "parameters": [
404
+ {
405
+ "name": "event",
406
+ "type": {
407
+ "text": "PointerEvent"
408
+ }
409
+ }
410
+ ]
411
+ },
412
+ {
413
+ "kind": "method",
414
+ "name": "stepBy",
415
+ "privacy": "private",
416
+ "return": {
417
+ "type": {
418
+ "text": "void"
419
+ }
420
+ },
421
+ "parameters": [
422
+ {
423
+ "name": "count",
424
+ "type": {
425
+ "text": "number"
426
+ }
427
+ }
428
+ ]
429
+ },
430
+ {
431
+ "kind": "method",
432
+ "name": "increment",
433
+ "privacy": "private",
434
+ "return": {
435
+ "type": {
436
+ "text": "void"
437
+ }
438
+ },
439
+ "parameters": [
440
+ {
441
+ "name": "factor",
442
+ "default": "1"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "kind": "method",
448
+ "name": "decrement",
449
+ "privacy": "private",
450
+ "return": {
451
+ "type": {
452
+ "text": "void"
453
+ }
454
+ },
455
+ "parameters": [
456
+ {
457
+ "name": "factor",
458
+ "default": "1"
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "kind": "method",
464
+ "name": "handleKeydown",
465
+ "privacy": "private",
466
+ "return": {
467
+ "type": {
468
+ "text": "void"
469
+ }
470
+ },
471
+ "parameters": [
472
+ {
473
+ "name": "event",
474
+ "type": {
475
+ "text": "KeyboardEvent"
476
+ }
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "kind": "field",
482
+ "name": "queuedChangeEvent",
483
+ "type": {
484
+ "text": "number"
485
+ },
486
+ "privacy": "private"
487
+ },
488
+ {
489
+ "kind": "method",
490
+ "name": "onScroll",
491
+ "privacy": "protected",
492
+ "return": {
493
+ "type": {
494
+ "text": "void"
495
+ }
496
+ },
497
+ "parameters": [
498
+ {
499
+ "name": "event",
500
+ "type": {
501
+ "text": "WheelEvent"
502
+ }
503
+ }
504
+ ]
505
+ },
506
+ {
507
+ "kind": "method",
508
+ "name": "onFocus",
509
+ "privacy": "protected",
510
+ "return": {
511
+ "type": {
512
+ "text": "void"
513
+ }
514
+ }
515
+ },
516
+ {
517
+ "kind": "method",
518
+ "name": "onBlur",
519
+ "privacy": "protected",
520
+ "return": {
521
+ "type": {
522
+ "text": "void"
523
+ }
524
+ }
525
+ },
526
+ {
527
+ "kind": "method",
528
+ "name": "handleFocusin",
529
+ "privacy": "private",
530
+ "return": {
531
+ "type": {
532
+ "text": "void"
533
+ }
534
+ }
535
+ },
536
+ {
537
+ "kind": "method",
538
+ "name": "handleFocusout",
539
+ "privacy": "private",
540
+ "return": {
541
+ "type": {
542
+ "text": "void"
543
+ }
544
+ }
545
+ },
546
+ {
547
+ "kind": "field",
548
+ "name": "wasIndeterminate",
549
+ "type": {
550
+ "text": "boolean"
551
+ },
552
+ "privacy": "private",
553
+ "default": "false"
554
+ },
555
+ {
556
+ "kind": "field",
557
+ "name": "indeterminateValue",
558
+ "type": {
559
+ "text": "number | undefined"
560
+ },
561
+ "privacy": "private"
562
+ },
563
+ {
564
+ "kind": "method",
565
+ "name": "handleChange",
566
+ "privacy": "protected",
567
+ "return": {
568
+ "type": {
569
+ "text": "void"
570
+ }
571
+ }
572
+ },
573
+ {
574
+ "kind": "method",
575
+ "name": "handleInput",
576
+ "privacy": "protected",
577
+ "return": {
578
+ "type": {
579
+ "text": "void"
580
+ }
581
+ }
582
+ },
583
+ {
584
+ "kind": "method",
585
+ "name": "validateInput",
586
+ "privacy": "private",
587
+ "return": {
588
+ "type": {
589
+ "text": "number"
590
+ }
591
+ },
592
+ "parameters": [
593
+ {
594
+ "name": "value",
595
+ "type": {
596
+ "text": "number"
597
+ }
598
+ }
599
+ ]
600
+ },
601
+ {
602
+ "kind": "field",
603
+ "name": "displayValue",
604
+ "type": {
605
+ "text": "string"
606
+ },
607
+ "privacy": "protected"
608
+ },
609
+ {
610
+ "kind": "method",
611
+ "name": "clearNumberFormatterCache",
612
+ "privacy": "protected",
613
+ "return": {
614
+ "type": {
615
+ "text": "void"
616
+ }
617
+ }
618
+ },
619
+ {
620
+ "kind": "field",
621
+ "name": "numberFormatter",
622
+ "type": {
623
+ "text": "NumberFormatter"
624
+ },
625
+ "privacy": "protected"
626
+ },
627
+ {
628
+ "kind": "field",
629
+ "name": "_numberFormatter",
630
+ "type": {
631
+ "text": "NumberFormatter | undefined"
632
+ },
633
+ "privacy": "private"
634
+ },
635
+ {
636
+ "kind": "field",
637
+ "name": "_numberFormatterFocused",
638
+ "type": {
639
+ "text": "NumberFormatter | undefined"
640
+ },
641
+ "privacy": "private"
642
+ },
643
+ {
644
+ "kind": "field",
645
+ "name": "numberParser",
646
+ "type": {
647
+ "text": "NumberParser"
648
+ },
649
+ "privacy": "protected"
650
+ },
651
+ {
652
+ "kind": "field",
653
+ "name": "_numberParser",
654
+ "type": {
655
+ "text": "NumberParser | undefined"
656
+ },
657
+ "privacy": "private"
658
+ },
659
+ {
660
+ "kind": "field",
661
+ "name": "_numberParserFocused",
662
+ "type": {
663
+ "text": "NumberParser | undefined"
664
+ },
665
+ "privacy": "private"
666
+ },
667
+ {
668
+ "kind": "method",
669
+ "name": "renderField",
670
+ "privacy": "protected",
671
+ "return": {
672
+ "type": {
673
+ "text": "TemplateResult"
674
+ }
675
+ }
676
+ }
677
+ ],
678
+ "events": [
679
+ {
680
+ "name": "change",
681
+ "type": {
682
+ "text": "Event"
683
+ }
684
+ },
685
+ {
686
+ "name": "input",
687
+ "type": {
688
+ "text": "Event"
689
+ }
690
+ }
691
+ ],
692
+ "attributes": [
693
+ {
694
+ "name": "focused",
695
+ "type": {
696
+ "text": "boolean"
697
+ },
698
+ "default": "false",
699
+ "fieldName": "focused"
700
+ },
701
+ {
702
+ "name": "format-options",
703
+ "type": {
704
+ "text": "Intl.NumberFormatOptions"
705
+ },
706
+ "default": "{}",
707
+ "description": "An `&lt;sp-number-field&gt;` element will process its numeric value with\n`new Intl.NumberFormat(this.resolvedLanguage, this.formatOptions).format(this.valueAsNumber)`\nin order to prepare it for visual delivery in the input. In order to customize this\nprocessing supply your own `Intl.NumberFormatOptions` object here.\n\nSee: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat",
708
+ "fieldName": "formatOptions"
709
+ },
710
+ {
711
+ "name": "hide-stepper",
712
+ "type": {
713
+ "text": "boolean"
714
+ },
715
+ "default": "false",
716
+ "description": "Whether the stepper UI is hidden or not.",
717
+ "fieldName": "hideStepper"
718
+ },
719
+ {
720
+ "name": "indeterminate",
721
+ "type": {
722
+ "text": "boolean"
723
+ },
724
+ "default": "false",
725
+ "fieldName": "indeterminate"
726
+ },
727
+ {
728
+ "name": "keyboard-focused",
729
+ "type": {
730
+ "text": "boolean"
731
+ },
732
+ "default": "false",
733
+ "fieldName": "keyboardFocused"
734
+ },
735
+ {
736
+ "name": "max",
737
+ "type": {
738
+ "text": "number | undefined"
739
+ },
740
+ "fieldName": "max"
741
+ },
742
+ {
743
+ "name": "min",
744
+ "type": {
745
+ "text": "number | undefined"
746
+ },
747
+ "fieldName": "min"
748
+ },
749
+ {
750
+ "name": "step",
751
+ "type": {
752
+ "text": "number | undefined"
753
+ },
754
+ "description": "The distance by which to alter the value of the element when taking a \"step\".\n\nWhen `this.formatOptions.style === 'percentage'` the default step will be\nset to 0.01 unless otherwise supplied to the element.",
755
+ "fieldName": "step"
756
+ },
757
+ {
758
+ "name": "step-modifier",
759
+ "type": {
760
+ "text": "number"
761
+ },
762
+ "default": "10",
763
+ "fieldName": "stepModifier"
764
+ },
765
+ {
766
+ "name": "value",
767
+ "type": {
768
+ "text": "number"
769
+ },
770
+ "fieldName": "value"
771
+ }
772
+ ],
773
+ "superclass": {
774
+ "name": "TextfieldBase",
775
+ "package": "@spectrum-web-components/textfield"
776
+ },
777
+ "tagName": "sp-number-field",
778
+ "customElement": true
779
+ }
780
+ ],
781
+ "exports": [
782
+ {
783
+ "kind": "js",
784
+ "name": "FRAMES_PER_CHANGE",
785
+ "declaration": {
786
+ "name": "FRAMES_PER_CHANGE",
787
+ "module": "src/NumberField.js"
788
+ }
789
+ },
790
+ {
791
+ "kind": "js",
792
+ "name": "CHANGE_DEBOUNCE_MS",
793
+ "declaration": {
794
+ "name": "CHANGE_DEBOUNCE_MS",
795
+ "module": "src/NumberField.js"
796
+ }
797
+ },
798
+ {
799
+ "kind": "js",
800
+ "name": "indeterminatePlaceholder",
801
+ "declaration": {
802
+ "name": "indeterminatePlaceholder",
803
+ "module": "src/NumberField.js"
804
+ }
805
+ },
806
+ {
807
+ "kind": "js",
808
+ "name": "remapMultiByteCharacters",
809
+ "declaration": {
810
+ "name": "remapMultiByteCharacters",
811
+ "module": "src/NumberField.js"
812
+ }
813
+ },
814
+ {
815
+ "kind": "js",
816
+ "name": "NumberField",
817
+ "declaration": {
818
+ "name": "NumberField",
819
+ "module": "src/NumberField.js"
820
+ }
821
+ }
822
+ ]
823
+ }
824
+ ]
825
+ }