@spectrum-web-components/textfield 0.40.3 → 0.40.5
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 +103 -17
- package/package.json +9 -9
- package/src/Textfield.d.ts +62 -4
- package/src/Textfield.dev.js +8 -8
- package/src/Textfield.dev.js.map +2 -2
- package/src/Textfield.js +2 -2
- package/src/Textfield.js.map +3 -3
- package/src/spectrum-textfield.css.dev.js +78 -46
- package/src/spectrum-textfield.css.dev.js.map +2 -2
- package/src/spectrum-textfield.css.js +78 -46
- package/src/spectrum-textfield.css.js.map +2 -2
- package/src/textfield.css.dev.js +79 -47
- package/src/textfield.css.dev.js.map +2 -2
- package/src/textfield.css.js +79 -47
- package/src/textfield.css.js.map +2 -2
package/custom-elements.json
CHANGED
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"name": "appliedLabel",
|
|
32
32
|
"type": {
|
|
33
33
|
"text": "string | undefined"
|
|
34
|
-
}
|
|
34
|
+
},
|
|
35
|
+
"privacy": "protected"
|
|
35
36
|
},
|
|
36
37
|
{
|
|
37
38
|
"kind": "field",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"text": "string"
|
|
41
42
|
},
|
|
42
43
|
"default": "''",
|
|
44
|
+
"description": "A regular expression outlining the keys that will be allowed to update the value of the form control.",
|
|
43
45
|
"attribute": "allowed-keys"
|
|
44
46
|
},
|
|
45
47
|
{
|
|
@@ -48,7 +50,7 @@
|
|
|
48
50
|
"type": {
|
|
49
51
|
"text": "boolean"
|
|
50
52
|
},
|
|
51
|
-
"privacy": "
|
|
53
|
+
"privacy": "private",
|
|
52
54
|
"default": "false",
|
|
53
55
|
"attribute": "focused",
|
|
54
56
|
"reflects": true
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
},
|
|
70
72
|
"privacy": "public",
|
|
71
73
|
"default": "false",
|
|
74
|
+
"description": "Whether the `value` held by the form control is invalid.",
|
|
72
75
|
"attribute": "invalid",
|
|
73
76
|
"reflects": true
|
|
74
77
|
},
|
|
@@ -80,6 +83,7 @@
|
|
|
80
83
|
},
|
|
81
84
|
"privacy": "public",
|
|
82
85
|
"default": "''",
|
|
86
|
+
"description": "A string applied via `aria-label` to the form control when a user visible label is not provided.",
|
|
83
87
|
"attribute": "label"
|
|
84
88
|
},
|
|
85
89
|
{
|
|
@@ -89,6 +93,7 @@
|
|
|
89
93
|
"text": "string | undefined"
|
|
90
94
|
},
|
|
91
95
|
"privacy": "public",
|
|
96
|
+
"description": "Name of the form control.",
|
|
92
97
|
"attribute": "name",
|
|
93
98
|
"reflects": true
|
|
94
99
|
},
|
|
@@ -100,8 +105,16 @@
|
|
|
100
105
|
},
|
|
101
106
|
"privacy": "public",
|
|
102
107
|
"default": "''",
|
|
108
|
+
"description": "Text that appears in the form control when it has no value set",
|
|
103
109
|
"attribute": "placeholder"
|
|
104
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"kind": "field",
|
|
113
|
+
"name": "type",
|
|
114
|
+
"type": {
|
|
115
|
+
"text": "TextfieldType"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
105
118
|
{
|
|
106
119
|
"kind": "field",
|
|
107
120
|
"name": "_type",
|
|
@@ -113,13 +126,6 @@
|
|
|
113
126
|
"attribute": "type",
|
|
114
127
|
"reflects": true
|
|
115
128
|
},
|
|
116
|
-
{
|
|
117
|
-
"kind": "field",
|
|
118
|
-
"name": "type",
|
|
119
|
-
"type": {
|
|
120
|
-
"text": "TextfieldType"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
129
|
{
|
|
124
130
|
"kind": "field",
|
|
125
131
|
"name": "pattern",
|
|
@@ -127,6 +133,7 @@
|
|
|
127
133
|
"text": "string | undefined"
|
|
128
134
|
},
|
|
129
135
|
"privacy": "public",
|
|
136
|
+
"description": "Pattern the `value` must match to be valid",
|
|
130
137
|
"attribute": "pattern"
|
|
131
138
|
},
|
|
132
139
|
{
|
|
@@ -137,6 +144,7 @@
|
|
|
137
144
|
},
|
|
138
145
|
"privacy": "public",
|
|
139
146
|
"default": "false",
|
|
147
|
+
"description": "Whether a form control delivered with the `multiline` attribute will change size to accomodate longer input",
|
|
140
148
|
"attribute": "grows",
|
|
141
149
|
"reflects": true
|
|
142
150
|
},
|
|
@@ -148,6 +156,7 @@
|
|
|
148
156
|
},
|
|
149
157
|
"privacy": "public",
|
|
150
158
|
"default": "-1",
|
|
159
|
+
"description": "Defines the maximum string length that the user can enter",
|
|
151
160
|
"attribute": "maxlength"
|
|
152
161
|
},
|
|
153
162
|
{
|
|
@@ -158,6 +167,7 @@
|
|
|
158
167
|
},
|
|
159
168
|
"privacy": "public",
|
|
160
169
|
"default": "-1",
|
|
170
|
+
"description": "Defines the minimum string length that the user can enter",
|
|
161
171
|
"attribute": "minlength"
|
|
162
172
|
},
|
|
163
173
|
{
|
|
@@ -168,6 +178,7 @@
|
|
|
168
178
|
},
|
|
169
179
|
"privacy": "public",
|
|
170
180
|
"default": "false",
|
|
181
|
+
"description": "Whether the form control should accept a value longer than one line",
|
|
171
182
|
"attribute": "multiline",
|
|
172
183
|
"reflects": true
|
|
173
184
|
},
|
|
@@ -179,6 +190,7 @@
|
|
|
179
190
|
},
|
|
180
191
|
"privacy": "public",
|
|
181
192
|
"default": "false",
|
|
193
|
+
"description": "Whether a user can interact with the value of the form control",
|
|
182
194
|
"attribute": "readonly",
|
|
183
195
|
"reflects": true
|
|
184
196
|
},
|
|
@@ -190,6 +202,7 @@
|
|
|
190
202
|
},
|
|
191
203
|
"privacy": "public",
|
|
192
204
|
"default": "-1",
|
|
205
|
+
"description": "The specific number of rows the form control should provide in the user interface",
|
|
193
206
|
"attribute": "rows"
|
|
194
207
|
},
|
|
195
208
|
{
|
|
@@ -200,6 +213,7 @@
|
|
|
200
213
|
},
|
|
201
214
|
"privacy": "public",
|
|
202
215
|
"default": "false",
|
|
216
|
+
"description": "Whether the `value` held by the form control is valid.",
|
|
203
217
|
"attribute": "valid",
|
|
204
218
|
"reflects": true
|
|
205
219
|
},
|
|
@@ -207,6 +221,7 @@
|
|
|
207
221
|
"kind": "field",
|
|
208
222
|
"name": "value",
|
|
209
223
|
"privacy": "public",
|
|
224
|
+
"description": "The value held by the form control",
|
|
210
225
|
"type": {
|
|
211
226
|
"text": "string | number"
|
|
212
227
|
},
|
|
@@ -229,6 +244,7 @@
|
|
|
229
244
|
},
|
|
230
245
|
"privacy": "public",
|
|
231
246
|
"default": "false",
|
|
247
|
+
"description": "Whether to display the form control with no visible background",
|
|
232
248
|
"attribute": "quiet",
|
|
233
249
|
"reflects": true
|
|
234
250
|
},
|
|
@@ -240,6 +256,7 @@
|
|
|
240
256
|
},
|
|
241
257
|
"privacy": "public",
|
|
242
258
|
"default": "false",
|
|
259
|
+
"description": "Whether the form control will be found to be invalid when it holds no `value`",
|
|
243
260
|
"attribute": "required",
|
|
244
261
|
"reflects": true
|
|
245
262
|
},
|
|
@@ -250,6 +267,7 @@
|
|
|
250
267
|
"text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
|
|
251
268
|
},
|
|
252
269
|
"privacy": "public",
|
|
270
|
+
"description": "What form of assistance should be provided when attempting to supply a value to the form control",
|
|
253
271
|
"attribute": "autocomplete",
|
|
254
272
|
"reflects": true
|
|
255
273
|
},
|
|
@@ -355,7 +373,15 @@
|
|
|
355
373
|
"type": {
|
|
356
374
|
"text": "void"
|
|
357
375
|
}
|
|
358
|
-
}
|
|
376
|
+
},
|
|
377
|
+
"parameters": [
|
|
378
|
+
{
|
|
379
|
+
"name": "_event",
|
|
380
|
+
"type": {
|
|
381
|
+
"text": "FocusEvent"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
]
|
|
359
385
|
},
|
|
360
386
|
{
|
|
361
387
|
"kind": "method",
|
|
@@ -435,6 +461,7 @@
|
|
|
435
461
|
"text": "string"
|
|
436
462
|
},
|
|
437
463
|
"default": "''",
|
|
464
|
+
"description": "A regular expression outlining the keys that will be allowed to update the value of the form control.",
|
|
438
465
|
"fieldName": "allowedKeys"
|
|
439
466
|
},
|
|
440
467
|
{
|
|
@@ -451,6 +478,7 @@
|
|
|
451
478
|
"text": "boolean"
|
|
452
479
|
},
|
|
453
480
|
"default": "false",
|
|
481
|
+
"description": "Whether the `value` held by the form control is invalid.",
|
|
454
482
|
"fieldName": "invalid"
|
|
455
483
|
},
|
|
456
484
|
{
|
|
@@ -459,6 +487,7 @@
|
|
|
459
487
|
"text": "string"
|
|
460
488
|
},
|
|
461
489
|
"default": "''",
|
|
490
|
+
"description": "A string applied via `aria-label` to the form control when a user visible label is not provided.",
|
|
462
491
|
"fieldName": "label"
|
|
463
492
|
},
|
|
464
493
|
{
|
|
@@ -466,6 +495,7 @@
|
|
|
466
495
|
"type": {
|
|
467
496
|
"text": "string | undefined"
|
|
468
497
|
},
|
|
498
|
+
"description": "Name of the form control.",
|
|
469
499
|
"fieldName": "name"
|
|
470
500
|
},
|
|
471
501
|
{
|
|
@@ -474,6 +504,7 @@
|
|
|
474
504
|
"text": "string"
|
|
475
505
|
},
|
|
476
506
|
"default": "''",
|
|
507
|
+
"description": "Text that appears in the form control when it has no value set",
|
|
477
508
|
"fieldName": "placeholder"
|
|
478
509
|
},
|
|
479
510
|
{
|
|
@@ -489,6 +520,7 @@
|
|
|
489
520
|
"type": {
|
|
490
521
|
"text": "string | undefined"
|
|
491
522
|
},
|
|
523
|
+
"description": "Pattern the `value` must match to be valid",
|
|
492
524
|
"fieldName": "pattern"
|
|
493
525
|
},
|
|
494
526
|
{
|
|
@@ -497,6 +529,7 @@
|
|
|
497
529
|
"text": "boolean"
|
|
498
530
|
},
|
|
499
531
|
"default": "false",
|
|
532
|
+
"description": "Whether a form control delivered with the `multiline` attribute will change size to accomodate longer input",
|
|
500
533
|
"fieldName": "grows"
|
|
501
534
|
},
|
|
502
535
|
{
|
|
@@ -505,6 +538,7 @@
|
|
|
505
538
|
"text": "number"
|
|
506
539
|
},
|
|
507
540
|
"default": "-1",
|
|
541
|
+
"description": "Defines the maximum string length that the user can enter",
|
|
508
542
|
"fieldName": "maxlength"
|
|
509
543
|
},
|
|
510
544
|
{
|
|
@@ -513,6 +547,7 @@
|
|
|
513
547
|
"text": "number"
|
|
514
548
|
},
|
|
515
549
|
"default": "-1",
|
|
550
|
+
"description": "Defines the minimum string length that the user can enter",
|
|
516
551
|
"fieldName": "minlength"
|
|
517
552
|
},
|
|
518
553
|
{
|
|
@@ -521,6 +556,7 @@
|
|
|
521
556
|
"text": "boolean"
|
|
522
557
|
},
|
|
523
558
|
"default": "false",
|
|
559
|
+
"description": "Whether the form control should accept a value longer than one line",
|
|
524
560
|
"fieldName": "multiline"
|
|
525
561
|
},
|
|
526
562
|
{
|
|
@@ -529,6 +565,7 @@
|
|
|
529
565
|
"text": "boolean"
|
|
530
566
|
},
|
|
531
567
|
"default": "false",
|
|
568
|
+
"description": "Whether a user can interact with the value of the form control",
|
|
532
569
|
"fieldName": "readonly"
|
|
533
570
|
},
|
|
534
571
|
{
|
|
@@ -537,6 +574,7 @@
|
|
|
537
574
|
"text": "number"
|
|
538
575
|
},
|
|
539
576
|
"default": "-1",
|
|
577
|
+
"description": "The specific number of rows the form control should provide in the user interface",
|
|
540
578
|
"fieldName": "rows"
|
|
541
579
|
},
|
|
542
580
|
{
|
|
@@ -545,10 +583,12 @@
|
|
|
545
583
|
"text": "boolean"
|
|
546
584
|
},
|
|
547
585
|
"default": "false",
|
|
586
|
+
"description": "Whether the `value` held by the form control is valid.",
|
|
548
587
|
"fieldName": "valid"
|
|
549
588
|
},
|
|
550
589
|
{
|
|
551
590
|
"name": "value",
|
|
591
|
+
"description": "The value held by the form control",
|
|
552
592
|
"type": {
|
|
553
593
|
"text": "string | number"
|
|
554
594
|
},
|
|
@@ -560,6 +600,7 @@
|
|
|
560
600
|
"text": "boolean"
|
|
561
601
|
},
|
|
562
602
|
"default": "false",
|
|
603
|
+
"description": "Whether to display the form control with no visible background",
|
|
563
604
|
"fieldName": "quiet"
|
|
564
605
|
},
|
|
565
606
|
{
|
|
@@ -568,6 +609,7 @@
|
|
|
568
609
|
"text": "boolean"
|
|
569
610
|
},
|
|
570
611
|
"default": "false",
|
|
612
|
+
"description": "Whether the form control will be found to be invalid when it holds no `value`",
|
|
571
613
|
"fieldName": "required"
|
|
572
614
|
},
|
|
573
615
|
{
|
|
@@ -575,6 +617,7 @@
|
|
|
575
617
|
"type": {
|
|
576
618
|
"text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
|
|
577
619
|
},
|
|
620
|
+
"description": "What form of assistance should be provided when attempting to supply a value to the form control",
|
|
578
621
|
"fieldName": "autocomplete"
|
|
579
622
|
}
|
|
580
623
|
],
|
|
@@ -612,6 +655,7 @@
|
|
|
612
655
|
"kind": "field",
|
|
613
656
|
"name": "value",
|
|
614
657
|
"privacy": "public",
|
|
658
|
+
"description": "The value held by the form control",
|
|
615
659
|
"type": {
|
|
616
660
|
"text": "string | number"
|
|
617
661
|
},
|
|
@@ -640,6 +684,7 @@
|
|
|
640
684
|
"type": {
|
|
641
685
|
"text": "string | undefined"
|
|
642
686
|
},
|
|
687
|
+
"privacy": "protected",
|
|
643
688
|
"inheritedFrom": {
|
|
644
689
|
"name": "TextfieldBase",
|
|
645
690
|
"module": "src/Textfield.js"
|
|
@@ -652,6 +697,7 @@
|
|
|
652
697
|
"text": "string"
|
|
653
698
|
},
|
|
654
699
|
"default": "''",
|
|
700
|
+
"description": "A regular expression outlining the keys that will be allowed to update the value of the form control.",
|
|
655
701
|
"attribute": "allowed-keys",
|
|
656
702
|
"inheritedFrom": {
|
|
657
703
|
"name": "TextfieldBase",
|
|
@@ -664,7 +710,7 @@
|
|
|
664
710
|
"type": {
|
|
665
711
|
"text": "boolean"
|
|
666
712
|
},
|
|
667
|
-
"privacy": "
|
|
713
|
+
"privacy": "private",
|
|
668
714
|
"default": "false",
|
|
669
715
|
"attribute": "focused",
|
|
670
716
|
"reflects": true,
|
|
@@ -693,6 +739,7 @@
|
|
|
693
739
|
},
|
|
694
740
|
"privacy": "public",
|
|
695
741
|
"default": "false",
|
|
742
|
+
"description": "Whether the `value` held by the form control is invalid.",
|
|
696
743
|
"attribute": "invalid",
|
|
697
744
|
"reflects": true,
|
|
698
745
|
"inheritedFrom": {
|
|
@@ -708,6 +755,7 @@
|
|
|
708
755
|
},
|
|
709
756
|
"privacy": "public",
|
|
710
757
|
"default": "''",
|
|
758
|
+
"description": "A string applied via `aria-label` to the form control when a user visible label is not provided.",
|
|
711
759
|
"attribute": "label",
|
|
712
760
|
"inheritedFrom": {
|
|
713
761
|
"name": "TextfieldBase",
|
|
@@ -721,6 +769,7 @@
|
|
|
721
769
|
"text": "string | undefined"
|
|
722
770
|
},
|
|
723
771
|
"privacy": "public",
|
|
772
|
+
"description": "Name of the form control.",
|
|
724
773
|
"attribute": "name",
|
|
725
774
|
"reflects": true,
|
|
726
775
|
"inheritedFrom": {
|
|
@@ -736,6 +785,7 @@
|
|
|
736
785
|
},
|
|
737
786
|
"privacy": "public",
|
|
738
787
|
"default": "''",
|
|
788
|
+
"description": "Text that appears in the form control when it has no value set",
|
|
739
789
|
"attribute": "placeholder",
|
|
740
790
|
"inheritedFrom": {
|
|
741
791
|
"name": "TextfieldBase",
|
|
@@ -744,14 +794,10 @@
|
|
|
744
794
|
},
|
|
745
795
|
{
|
|
746
796
|
"kind": "field",
|
|
747
|
-
"name": "
|
|
797
|
+
"name": "type",
|
|
748
798
|
"type": {
|
|
749
799
|
"text": "TextfieldType"
|
|
750
800
|
},
|
|
751
|
-
"privacy": "private",
|
|
752
|
-
"default": "'text'",
|
|
753
|
-
"attribute": "type",
|
|
754
|
-
"reflects": true,
|
|
755
801
|
"inheritedFrom": {
|
|
756
802
|
"name": "TextfieldBase",
|
|
757
803
|
"module": "src/Textfield.js"
|
|
@@ -759,10 +805,14 @@
|
|
|
759
805
|
},
|
|
760
806
|
{
|
|
761
807
|
"kind": "field",
|
|
762
|
-
"name": "
|
|
808
|
+
"name": "_type",
|
|
763
809
|
"type": {
|
|
764
810
|
"text": "TextfieldType"
|
|
765
811
|
},
|
|
812
|
+
"privacy": "private",
|
|
813
|
+
"default": "'text'",
|
|
814
|
+
"attribute": "type",
|
|
815
|
+
"reflects": true,
|
|
766
816
|
"inheritedFrom": {
|
|
767
817
|
"name": "TextfieldBase",
|
|
768
818
|
"module": "src/Textfield.js"
|
|
@@ -775,6 +825,7 @@
|
|
|
775
825
|
"text": "string | undefined"
|
|
776
826
|
},
|
|
777
827
|
"privacy": "public",
|
|
828
|
+
"description": "Pattern the `value` must match to be valid",
|
|
778
829
|
"attribute": "pattern",
|
|
779
830
|
"inheritedFrom": {
|
|
780
831
|
"name": "TextfieldBase",
|
|
@@ -789,6 +840,7 @@
|
|
|
789
840
|
},
|
|
790
841
|
"privacy": "public",
|
|
791
842
|
"default": "false",
|
|
843
|
+
"description": "Whether a form control delivered with the `multiline` attribute will change size to accomodate longer input",
|
|
792
844
|
"attribute": "grows",
|
|
793
845
|
"reflects": true,
|
|
794
846
|
"inheritedFrom": {
|
|
@@ -804,6 +856,7 @@
|
|
|
804
856
|
},
|
|
805
857
|
"privacy": "public",
|
|
806
858
|
"default": "-1",
|
|
859
|
+
"description": "Defines the maximum string length that the user can enter",
|
|
807
860
|
"attribute": "maxlength",
|
|
808
861
|
"inheritedFrom": {
|
|
809
862
|
"name": "TextfieldBase",
|
|
@@ -818,6 +871,7 @@
|
|
|
818
871
|
},
|
|
819
872
|
"privacy": "public",
|
|
820
873
|
"default": "-1",
|
|
874
|
+
"description": "Defines the minimum string length that the user can enter",
|
|
821
875
|
"attribute": "minlength",
|
|
822
876
|
"inheritedFrom": {
|
|
823
877
|
"name": "TextfieldBase",
|
|
@@ -832,6 +886,7 @@
|
|
|
832
886
|
},
|
|
833
887
|
"privacy": "public",
|
|
834
888
|
"default": "false",
|
|
889
|
+
"description": "Whether the form control should accept a value longer than one line",
|
|
835
890
|
"attribute": "multiline",
|
|
836
891
|
"reflects": true,
|
|
837
892
|
"inheritedFrom": {
|
|
@@ -847,6 +902,7 @@
|
|
|
847
902
|
},
|
|
848
903
|
"privacy": "public",
|
|
849
904
|
"default": "false",
|
|
905
|
+
"description": "Whether a user can interact with the value of the form control",
|
|
850
906
|
"attribute": "readonly",
|
|
851
907
|
"reflects": true,
|
|
852
908
|
"inheritedFrom": {
|
|
@@ -862,6 +918,7 @@
|
|
|
862
918
|
},
|
|
863
919
|
"privacy": "public",
|
|
864
920
|
"default": "-1",
|
|
921
|
+
"description": "The specific number of rows the form control should provide in the user interface",
|
|
865
922
|
"attribute": "rows",
|
|
866
923
|
"inheritedFrom": {
|
|
867
924
|
"name": "TextfieldBase",
|
|
@@ -876,6 +933,7 @@
|
|
|
876
933
|
},
|
|
877
934
|
"privacy": "public",
|
|
878
935
|
"default": "false",
|
|
936
|
+
"description": "Whether the `value` held by the form control is valid.",
|
|
879
937
|
"attribute": "valid",
|
|
880
938
|
"reflects": true,
|
|
881
939
|
"inheritedFrom": {
|
|
@@ -891,6 +949,7 @@
|
|
|
891
949
|
},
|
|
892
950
|
"privacy": "public",
|
|
893
951
|
"default": "false",
|
|
952
|
+
"description": "Whether to display the form control with no visible background",
|
|
894
953
|
"attribute": "quiet",
|
|
895
954
|
"reflects": true,
|
|
896
955
|
"inheritedFrom": {
|
|
@@ -906,6 +965,7 @@
|
|
|
906
965
|
},
|
|
907
966
|
"privacy": "public",
|
|
908
967
|
"default": "false",
|
|
968
|
+
"description": "Whether the form control will be found to be invalid when it holds no `value`",
|
|
909
969
|
"attribute": "required",
|
|
910
970
|
"reflects": true,
|
|
911
971
|
"inheritedFrom": {
|
|
@@ -920,6 +980,7 @@
|
|
|
920
980
|
"text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
|
|
921
981
|
},
|
|
922
982
|
"privacy": "public",
|
|
983
|
+
"description": "What form of assistance should be provided when attempting to supply a value to the form control",
|
|
923
984
|
"attribute": "autocomplete",
|
|
924
985
|
"reflects": true,
|
|
925
986
|
"inheritedFrom": {
|
|
@@ -1054,6 +1115,14 @@
|
|
|
1054
1115
|
"text": "void"
|
|
1055
1116
|
}
|
|
1056
1117
|
},
|
|
1118
|
+
"parameters": [
|
|
1119
|
+
{
|
|
1120
|
+
"name": "_event",
|
|
1121
|
+
"type": {
|
|
1122
|
+
"text": "FocusEvent"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1057
1126
|
"inheritedFrom": {
|
|
1058
1127
|
"name": "TextfieldBase",
|
|
1059
1128
|
"module": "src/Textfield.js"
|
|
@@ -1144,6 +1213,7 @@
|
|
|
1144
1213
|
"attributes": [
|
|
1145
1214
|
{
|
|
1146
1215
|
"name": "value",
|
|
1216
|
+
"description": "The value held by the form control",
|
|
1147
1217
|
"type": {
|
|
1148
1218
|
"text": "string | number"
|
|
1149
1219
|
},
|
|
@@ -1159,6 +1229,7 @@
|
|
|
1159
1229
|
"text": "string"
|
|
1160
1230
|
},
|
|
1161
1231
|
"default": "''",
|
|
1232
|
+
"description": "A regular expression outlining the keys that will be allowed to update the value of the form control.",
|
|
1162
1233
|
"fieldName": "allowedKeys",
|
|
1163
1234
|
"inheritedFrom": {
|
|
1164
1235
|
"name": "TextfieldBase",
|
|
@@ -1183,6 +1254,7 @@
|
|
|
1183
1254
|
"text": "boolean"
|
|
1184
1255
|
},
|
|
1185
1256
|
"default": "false",
|
|
1257
|
+
"description": "Whether the `value` held by the form control is invalid.",
|
|
1186
1258
|
"fieldName": "invalid",
|
|
1187
1259
|
"inheritedFrom": {
|
|
1188
1260
|
"name": "TextfieldBase",
|
|
@@ -1195,6 +1267,7 @@
|
|
|
1195
1267
|
"text": "string"
|
|
1196
1268
|
},
|
|
1197
1269
|
"default": "''",
|
|
1270
|
+
"description": "A string applied via `aria-label` to the form control when a user visible label is not provided.",
|
|
1198
1271
|
"fieldName": "label",
|
|
1199
1272
|
"inheritedFrom": {
|
|
1200
1273
|
"name": "TextfieldBase",
|
|
@@ -1206,6 +1279,7 @@
|
|
|
1206
1279
|
"type": {
|
|
1207
1280
|
"text": "string | undefined"
|
|
1208
1281
|
},
|
|
1282
|
+
"description": "Name of the form control.",
|
|
1209
1283
|
"fieldName": "name",
|
|
1210
1284
|
"inheritedFrom": {
|
|
1211
1285
|
"name": "TextfieldBase",
|
|
@@ -1218,6 +1292,7 @@
|
|
|
1218
1292
|
"text": "string"
|
|
1219
1293
|
},
|
|
1220
1294
|
"default": "''",
|
|
1295
|
+
"description": "Text that appears in the form control when it has no value set",
|
|
1221
1296
|
"fieldName": "placeholder",
|
|
1222
1297
|
"inheritedFrom": {
|
|
1223
1298
|
"name": "TextfieldBase",
|
|
@@ -1241,6 +1316,7 @@
|
|
|
1241
1316
|
"type": {
|
|
1242
1317
|
"text": "string | undefined"
|
|
1243
1318
|
},
|
|
1319
|
+
"description": "Pattern the `value` must match to be valid",
|
|
1244
1320
|
"fieldName": "pattern",
|
|
1245
1321
|
"inheritedFrom": {
|
|
1246
1322
|
"name": "TextfieldBase",
|
|
@@ -1253,6 +1329,7 @@
|
|
|
1253
1329
|
"text": "boolean"
|
|
1254
1330
|
},
|
|
1255
1331
|
"default": "false",
|
|
1332
|
+
"description": "Whether a form control delivered with the `multiline` attribute will change size to accomodate longer input",
|
|
1256
1333
|
"fieldName": "grows",
|
|
1257
1334
|
"inheritedFrom": {
|
|
1258
1335
|
"name": "TextfieldBase",
|
|
@@ -1265,6 +1342,7 @@
|
|
|
1265
1342
|
"text": "number"
|
|
1266
1343
|
},
|
|
1267
1344
|
"default": "-1",
|
|
1345
|
+
"description": "Defines the maximum string length that the user can enter",
|
|
1268
1346
|
"fieldName": "maxlength",
|
|
1269
1347
|
"inheritedFrom": {
|
|
1270
1348
|
"name": "TextfieldBase",
|
|
@@ -1277,6 +1355,7 @@
|
|
|
1277
1355
|
"text": "number"
|
|
1278
1356
|
},
|
|
1279
1357
|
"default": "-1",
|
|
1358
|
+
"description": "Defines the minimum string length that the user can enter",
|
|
1280
1359
|
"fieldName": "minlength",
|
|
1281
1360
|
"inheritedFrom": {
|
|
1282
1361
|
"name": "TextfieldBase",
|
|
@@ -1289,6 +1368,7 @@
|
|
|
1289
1368
|
"text": "boolean"
|
|
1290
1369
|
},
|
|
1291
1370
|
"default": "false",
|
|
1371
|
+
"description": "Whether the form control should accept a value longer than one line",
|
|
1292
1372
|
"fieldName": "multiline",
|
|
1293
1373
|
"inheritedFrom": {
|
|
1294
1374
|
"name": "TextfieldBase",
|
|
@@ -1301,6 +1381,7 @@
|
|
|
1301
1381
|
"text": "boolean"
|
|
1302
1382
|
},
|
|
1303
1383
|
"default": "false",
|
|
1384
|
+
"description": "Whether a user can interact with the value of the form control",
|
|
1304
1385
|
"fieldName": "readonly",
|
|
1305
1386
|
"inheritedFrom": {
|
|
1306
1387
|
"name": "TextfieldBase",
|
|
@@ -1313,6 +1394,7 @@
|
|
|
1313
1394
|
"text": "number"
|
|
1314
1395
|
},
|
|
1315
1396
|
"default": "-1",
|
|
1397
|
+
"description": "The specific number of rows the form control should provide in the user interface",
|
|
1316
1398
|
"fieldName": "rows",
|
|
1317
1399
|
"inheritedFrom": {
|
|
1318
1400
|
"name": "TextfieldBase",
|
|
@@ -1325,6 +1407,7 @@
|
|
|
1325
1407
|
"text": "boolean"
|
|
1326
1408
|
},
|
|
1327
1409
|
"default": "false",
|
|
1410
|
+
"description": "Whether the `value` held by the form control is valid.",
|
|
1328
1411
|
"fieldName": "valid",
|
|
1329
1412
|
"inheritedFrom": {
|
|
1330
1413
|
"name": "TextfieldBase",
|
|
@@ -1337,6 +1420,7 @@
|
|
|
1337
1420
|
"text": "boolean"
|
|
1338
1421
|
},
|
|
1339
1422
|
"default": "false",
|
|
1423
|
+
"description": "Whether to display the form control with no visible background",
|
|
1340
1424
|
"fieldName": "quiet",
|
|
1341
1425
|
"inheritedFrom": {
|
|
1342
1426
|
"name": "TextfieldBase",
|
|
@@ -1349,6 +1433,7 @@
|
|
|
1349
1433
|
"text": "boolean"
|
|
1350
1434
|
},
|
|
1351
1435
|
"default": "false",
|
|
1436
|
+
"description": "Whether the form control will be found to be invalid when it holds no `value`",
|
|
1352
1437
|
"fieldName": "required",
|
|
1353
1438
|
"inheritedFrom": {
|
|
1354
1439
|
"name": "TextfieldBase",
|
|
@@ -1360,6 +1445,7 @@
|
|
|
1360
1445
|
"type": {
|
|
1361
1446
|
"text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
|
|
1362
1447
|
},
|
|
1448
|
+
"description": "What form of assistance should be provided when attempting to supply a value to the form control",
|
|
1363
1449
|
"fieldName": "autocomplete",
|
|
1364
1450
|
"inheritedFrom": {
|
|
1365
1451
|
"name": "TextfieldBase",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/textfield",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"lit-html"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@spectrum-web-components/base": "^0.40.
|
|
61
|
-
"@spectrum-web-components/help-text": "^0.40.
|
|
62
|
-
"@spectrum-web-components/icon": "^0.40.
|
|
63
|
-
"@spectrum-web-components/icons-ui": "^0.40.
|
|
64
|
-
"@spectrum-web-components/icons-workflow": "^0.40.
|
|
65
|
-
"@spectrum-web-components/shared": "^0.40.
|
|
60
|
+
"@spectrum-web-components/base": "^0.40.5",
|
|
61
|
+
"@spectrum-web-components/help-text": "^0.40.5",
|
|
62
|
+
"@spectrum-web-components/icon": "^0.40.5",
|
|
63
|
+
"@spectrum-web-components/icons-ui": "^0.40.5",
|
|
64
|
+
"@spectrum-web-components/icons-workflow": "^0.40.5",
|
|
65
|
+
"@spectrum-web-components/shared": "^0.40.5"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@spectrum-css/textfield": "^6.0
|
|
68
|
+
"@spectrum-css/textfield": "^6.1.0"
|
|
69
69
|
},
|
|
70
70
|
"types": "./src/index.d.ts",
|
|
71
71
|
"customElements": "custom-elements.json",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"./sp-*.js",
|
|
74
74
|
"./**/*.dev.js"
|
|
75
75
|
],
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "2e0006478841b07af63c19a0167a136bf724d064"
|
|
77
77
|
}
|