@spectrum-web-components/number-field 0.5.11-react.48 → 0.5.11-react.50

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