@spectrum-web-components/textfield 0.35.0 → 0.35.1-rc.24

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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/custom-elements.json +0 -1361
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/textfield",
3
- "version": "0.35.0",
3
+ "version": "0.35.1-rc.24+e3649e123",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,12 +57,12 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.35.0",
61
- "@spectrum-web-components/help-text": "^0.35.0",
62
- "@spectrum-web-components/icon": "^0.35.0",
63
- "@spectrum-web-components/icons-ui": "^0.35.0",
64
- "@spectrum-web-components/icons-workflow": "^0.35.0",
65
- "@spectrum-web-components/shared": "^0.35.0"
60
+ "@spectrum-web-components/base": "^0.35.1-rc.24+e3649e123",
61
+ "@spectrum-web-components/help-text": "^0.35.1-rc.24+e3649e123",
62
+ "@spectrum-web-components/icon": "^0.35.1-rc.24+e3649e123",
63
+ "@spectrum-web-components/icons-ui": "^0.35.1-rc.24+e3649e123",
64
+ "@spectrum-web-components/icons-workflow": "^0.35.1-rc.24+e3649e123",
65
+ "@spectrum-web-components/shared": "^0.35.1-rc.24+e3649e123"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@spectrum-css/textfield": "^6.0.7"
@@ -73,5 +73,5 @@
73
73
  "./sp-*.js",
74
74
  "./**/*.dev.js"
75
75
  ],
76
- "gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
76
+ "gitHead": "e3649e1230ed727048988a452969c38ced5467ac"
77
77
  }
@@ -1,1361 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-textfield.js",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-textfield",
13
- "declaration": {
14
- "name": "Textfield",
15
- "module": "/src/Textfield.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/Textfield.js",
23
- "declarations": [
24
- {
25
- "kind": "class",
26
- "description": "",
27
- "name": "TextfieldBase",
28
- "members": [
29
- {
30
- "kind": "field",
31
- "name": "appliedLabel",
32
- "type": {
33
- "text": "string | undefined"
34
- }
35
- },
36
- {
37
- "kind": "field",
38
- "name": "allowedKeys",
39
- "type": {
40
- "text": "string"
41
- },
42
- "default": "''",
43
- "attribute": "allowed-keys"
44
- },
45
- {
46
- "kind": "field",
47
- "name": "focused",
48
- "type": {
49
- "text": "boolean"
50
- },
51
- "privacy": "public",
52
- "default": "false",
53
- "attribute": "focused",
54
- "reflects": true
55
- },
56
- {
57
- "kind": "field",
58
- "name": "inputElement",
59
- "type": {
60
- "text": "HTMLInputElement | HTMLTextAreaElement"
61
- },
62
- "privacy": "protected"
63
- },
64
- {
65
- "kind": "field",
66
- "name": "invalid",
67
- "type": {
68
- "text": "boolean"
69
- },
70
- "privacy": "public",
71
- "default": "false",
72
- "attribute": "invalid",
73
- "reflects": true
74
- },
75
- {
76
- "kind": "field",
77
- "name": "label",
78
- "type": {
79
- "text": "string"
80
- },
81
- "privacy": "public",
82
- "default": "''",
83
- "attribute": "label"
84
- },
85
- {
86
- "kind": "field",
87
- "name": "placeholder",
88
- "type": {
89
- "text": "string"
90
- },
91
- "privacy": "public",
92
- "default": "''",
93
- "attribute": "placeholder"
94
- },
95
- {
96
- "kind": "field",
97
- "name": "_type",
98
- "type": {
99
- "text": "TextfieldType"
100
- },
101
- "privacy": "private",
102
- "default": "'text'",
103
- "attribute": "type",
104
- "reflects": true
105
- },
106
- {
107
- "kind": "field",
108
- "name": "type",
109
- "type": {
110
- "text": "TextfieldType"
111
- }
112
- },
113
- {
114
- "kind": "field",
115
- "name": "pattern",
116
- "type": {
117
- "text": "string | undefined"
118
- },
119
- "privacy": "public",
120
- "attribute": "pattern"
121
- },
122
- {
123
- "kind": "field",
124
- "name": "grows",
125
- "type": {
126
- "text": "boolean"
127
- },
128
- "privacy": "public",
129
- "default": "false",
130
- "attribute": "grows",
131
- "reflects": true
132
- },
133
- {
134
- "kind": "field",
135
- "name": "maxlength",
136
- "type": {
137
- "text": "number"
138
- },
139
- "privacy": "public",
140
- "default": "-1",
141
- "attribute": "maxlength"
142
- },
143
- {
144
- "kind": "field",
145
- "name": "minlength",
146
- "type": {
147
- "text": "number"
148
- },
149
- "privacy": "public",
150
- "default": "-1",
151
- "attribute": "minlength"
152
- },
153
- {
154
- "kind": "field",
155
- "name": "multiline",
156
- "type": {
157
- "text": "boolean"
158
- },
159
- "privacy": "public",
160
- "default": "false",
161
- "attribute": "multiline",
162
- "reflects": true
163
- },
164
- {
165
- "kind": "field",
166
- "name": "readonly",
167
- "type": {
168
- "text": "boolean"
169
- },
170
- "privacy": "public",
171
- "default": "false",
172
- "attribute": "readonly",
173
- "reflects": true
174
- },
175
- {
176
- "kind": "field",
177
- "name": "rows",
178
- "type": {
179
- "text": "number"
180
- },
181
- "privacy": "public",
182
- "default": "-1",
183
- "attribute": "rows"
184
- },
185
- {
186
- "kind": "field",
187
- "name": "valid",
188
- "type": {
189
- "text": "boolean"
190
- },
191
- "privacy": "public",
192
- "default": "false",
193
- "attribute": "valid",
194
- "reflects": true
195
- },
196
- {
197
- "kind": "field",
198
- "name": "value",
199
- "privacy": "public",
200
- "type": {
201
- "text": "string | number"
202
- },
203
- "attribute": "value"
204
- },
205
- {
206
- "kind": "field",
207
- "name": "_value",
208
- "type": {
209
- "text": "string | number"
210
- },
211
- "privacy": "protected",
212
- "default": "''"
213
- },
214
- {
215
- "kind": "field",
216
- "name": "quiet",
217
- "type": {
218
- "text": "boolean"
219
- },
220
- "privacy": "public",
221
- "default": "false",
222
- "attribute": "quiet",
223
- "reflects": true
224
- },
225
- {
226
- "kind": "field",
227
- "name": "required",
228
- "type": {
229
- "text": "boolean"
230
- },
231
- "privacy": "public",
232
- "default": "false",
233
- "attribute": "required",
234
- "reflects": true
235
- },
236
- {
237
- "kind": "field",
238
- "name": "autocomplete",
239
- "type": {
240
- "text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
241
- },
242
- "privacy": "public",
243
- "attribute": "autocomplete",
244
- "reflects": true
245
- },
246
- {
247
- "kind": "field",
248
- "name": "focusElement",
249
- "type": {
250
- "text": "HTMLInputElement | HTMLTextAreaElement"
251
- },
252
- "privacy": "public",
253
- "readonly": true
254
- },
255
- {
256
- "kind": "method",
257
- "name": "setSelectionRange",
258
- "privacy": "public",
259
- "return": {
260
- "type": {
261
- "text": "void"
262
- }
263
- },
264
- "parameters": [
265
- {
266
- "name": "selectionStart",
267
- "type": {
268
- "text": "number"
269
- },
270
- "description": "The 0-based index of the first selected character. An index greater than the length of the\nelement's value is treated as pointing to the end of the value."
271
- },
272
- {
273
- "name": "selectionEnd",
274
- "type": {
275
- "text": "number"
276
- },
277
- "description": "The 0-based index of the character after the last selected character. An index greater than\nthe length of the element's value is treated as pointing to the end of the value."
278
- },
279
- {
280
- "name": "selectionDirection",
281
- "default": "'none'",
282
- "type": {
283
- "text": "'forward' | 'backward' | 'none'"
284
- },
285
- "description": "A string indicating the direction in which the selection is considered to\nhave been performed.",
286
- "optional": true
287
- }
288
- ],
289
- "description": "Sets the start and end positions of the current selection."
290
- },
291
- {
292
- "kind": "method",
293
- "name": "select",
294
- "privacy": "public",
295
- "return": {
296
- "type": {
297
- "text": "void"
298
- }
299
- },
300
- "description": "Selects all the text."
301
- },
302
- {
303
- "kind": "method",
304
- "name": "handleInput",
305
- "privacy": "protected",
306
- "return": {
307
- "type": {
308
- "text": "void"
309
- }
310
- }
311
- },
312
- {
313
- "kind": "method",
314
- "name": "handleChange",
315
- "privacy": "protected",
316
- "return": {
317
- "type": {
318
- "text": "void"
319
- }
320
- }
321
- },
322
- {
323
- "kind": "method",
324
- "name": "onFocus",
325
- "privacy": "protected",
326
- "return": {
327
- "type": {
328
- "text": "void"
329
- }
330
- }
331
- },
332
- {
333
- "kind": "method",
334
- "name": "onBlur",
335
- "privacy": "protected",
336
- "return": {
337
- "type": {
338
- "text": "void"
339
- }
340
- }
341
- },
342
- {
343
- "kind": "method",
344
- "name": "renderStateIcons",
345
- "privacy": "protected",
346
- "return": {
347
- "type": {
348
- "text": "TemplateResult | typeof nothing"
349
- }
350
- }
351
- },
352
- {
353
- "kind": "field",
354
- "name": "displayValue",
355
- "type": {
356
- "text": "string"
357
- },
358
- "privacy": "protected",
359
- "readonly": true
360
- },
361
- {
362
- "kind": "field",
363
- "name": "renderMultiline",
364
- "type": {
365
- "text": "TemplateResult"
366
- },
367
- "privacy": "private",
368
- "readonly": true
369
- },
370
- {
371
- "kind": "field",
372
- "name": "renderInput",
373
- "type": {
374
- "text": "TemplateResult"
375
- },
376
- "privacy": "private",
377
- "readonly": true
378
- },
379
- {
380
- "kind": "method",
381
- "name": "renderField",
382
- "privacy": "protected",
383
- "return": {
384
- "type": {
385
- "text": "TemplateResult"
386
- }
387
- }
388
- },
389
- {
390
- "kind": "method",
391
- "name": "checkValidity",
392
- "privacy": "public",
393
- "return": {
394
- "type": {
395
- "text": "boolean"
396
- }
397
- }
398
- }
399
- ],
400
- "events": [
401
- {
402
- "name": "change",
403
- "type": {
404
- "text": "Event"
405
- },
406
- "description": "An alteration to the value of the element has been committed by the user."
407
- },
408
- {
409
- "description": "The value of the element has changed.",
410
- "name": "input"
411
- }
412
- ],
413
- "attributes": [
414
- {
415
- "name": "allowed-keys",
416
- "type": {
417
- "text": "string"
418
- },
419
- "default": "''",
420
- "fieldName": "allowedKeys"
421
- },
422
- {
423
- "name": "focused",
424
- "type": {
425
- "text": "boolean"
426
- },
427
- "default": "false",
428
- "fieldName": "focused"
429
- },
430
- {
431
- "name": "invalid",
432
- "type": {
433
- "text": "boolean"
434
- },
435
- "default": "false",
436
- "fieldName": "invalid"
437
- },
438
- {
439
- "name": "label",
440
- "type": {
441
- "text": "string"
442
- },
443
- "default": "''",
444
- "fieldName": "label"
445
- },
446
- {
447
- "name": "placeholder",
448
- "type": {
449
- "text": "string"
450
- },
451
- "default": "''",
452
- "fieldName": "placeholder"
453
- },
454
- {
455
- "name": "type",
456
- "type": {
457
- "text": "TextfieldType"
458
- },
459
- "default": "'text'",
460
- "fieldName": "_type"
461
- },
462
- {
463
- "name": "pattern",
464
- "type": {
465
- "text": "string | undefined"
466
- },
467
- "fieldName": "pattern"
468
- },
469
- {
470
- "name": "grows",
471
- "type": {
472
- "text": "boolean"
473
- },
474
- "default": "false",
475
- "fieldName": "grows"
476
- },
477
- {
478
- "name": "maxlength",
479
- "type": {
480
- "text": "number"
481
- },
482
- "default": "-1",
483
- "fieldName": "maxlength"
484
- },
485
- {
486
- "name": "minlength",
487
- "type": {
488
- "text": "number"
489
- },
490
- "default": "-1",
491
- "fieldName": "minlength"
492
- },
493
- {
494
- "name": "multiline",
495
- "type": {
496
- "text": "boolean"
497
- },
498
- "default": "false",
499
- "fieldName": "multiline"
500
- },
501
- {
502
- "name": "readonly",
503
- "type": {
504
- "text": "boolean"
505
- },
506
- "default": "false",
507
- "fieldName": "readonly"
508
- },
509
- {
510
- "name": "rows",
511
- "type": {
512
- "text": "number"
513
- },
514
- "default": "-1",
515
- "fieldName": "rows"
516
- },
517
- {
518
- "name": "valid",
519
- "type": {
520
- "text": "boolean"
521
- },
522
- "default": "false",
523
- "fieldName": "valid"
524
- },
525
- {
526
- "name": "value",
527
- "type": {
528
- "text": "string | number"
529
- },
530
- "fieldName": "value"
531
- },
532
- {
533
- "name": "quiet",
534
- "type": {
535
- "text": "boolean"
536
- },
537
- "default": "false",
538
- "fieldName": "quiet"
539
- },
540
- {
541
- "name": "required",
542
- "type": {
543
- "text": "boolean"
544
- },
545
- "default": "false",
546
- "fieldName": "required"
547
- },
548
- {
549
- "name": "autocomplete",
550
- "type": {
551
- "text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
552
- },
553
- "fieldName": "autocomplete"
554
- }
555
- ],
556
- "mixins": [
557
- {
558
- "name": "ManageHelpText",
559
- "package": "@spectrum-web-components/help-text/src/manage-help-text.js"
560
- },
561
- {
562
- "name": "SizedMixin",
563
- "package": "@spectrum-web-components/base"
564
- }
565
- ],
566
- "superclass": {
567
- "name": "Focusable",
568
- "package": "@spectrum-web-components/shared/src/focusable.js"
569
- }
570
- },
571
- {
572
- "kind": "class",
573
- "description": "",
574
- "name": "Textfield",
575
- "slots": [
576
- {
577
- "description": "default or non-negative help text to associate to your form element",
578
- "name": "help-text"
579
- },
580
- {
581
- "description": "negative help text to associate to your form element when `invalid`",
582
- "name": "negative-help-text"
583
- }
584
- ],
585
- "members": [
586
- {
587
- "kind": "field",
588
- "name": "value",
589
- "privacy": "public",
590
- "type": {
591
- "text": "string | number"
592
- },
593
- "attribute": "value",
594
- "inheritedFrom": {
595
- "name": "TextfieldBase",
596
- "module": "src/Textfield.js"
597
- }
598
- },
599
- {
600
- "kind": "field",
601
- "name": "_value",
602
- "type": {
603
- "text": "string | number"
604
- },
605
- "privacy": "protected",
606
- "default": "''",
607
- "inheritedFrom": {
608
- "name": "TextfieldBase",
609
- "module": "src/Textfield.js"
610
- }
611
- },
612
- {
613
- "kind": "field",
614
- "name": "appliedLabel",
615
- "type": {
616
- "text": "string | undefined"
617
- },
618
- "inheritedFrom": {
619
- "name": "TextfieldBase",
620
- "module": "src/Textfield.js"
621
- }
622
- },
623
- {
624
- "kind": "field",
625
- "name": "allowedKeys",
626
- "type": {
627
- "text": "string"
628
- },
629
- "default": "''",
630
- "attribute": "allowed-keys",
631
- "inheritedFrom": {
632
- "name": "TextfieldBase",
633
- "module": "src/Textfield.js"
634
- }
635
- },
636
- {
637
- "kind": "field",
638
- "name": "focused",
639
- "type": {
640
- "text": "boolean"
641
- },
642
- "privacy": "public",
643
- "default": "false",
644
- "attribute": "focused",
645
- "reflects": true,
646
- "inheritedFrom": {
647
- "name": "TextfieldBase",
648
- "module": "src/Textfield.js"
649
- }
650
- },
651
- {
652
- "kind": "field",
653
- "name": "inputElement",
654
- "type": {
655
- "text": "HTMLInputElement | HTMLTextAreaElement"
656
- },
657
- "privacy": "protected",
658
- "inheritedFrom": {
659
- "name": "TextfieldBase",
660
- "module": "src/Textfield.js"
661
- }
662
- },
663
- {
664
- "kind": "field",
665
- "name": "invalid",
666
- "type": {
667
- "text": "boolean"
668
- },
669
- "privacy": "public",
670
- "default": "false",
671
- "attribute": "invalid",
672
- "reflects": true,
673
- "inheritedFrom": {
674
- "name": "TextfieldBase",
675
- "module": "src/Textfield.js"
676
- }
677
- },
678
- {
679
- "kind": "field",
680
- "name": "label",
681
- "type": {
682
- "text": "string"
683
- },
684
- "privacy": "public",
685
- "default": "''",
686
- "attribute": "label",
687
- "inheritedFrom": {
688
- "name": "TextfieldBase",
689
- "module": "src/Textfield.js"
690
- }
691
- },
692
- {
693
- "kind": "field",
694
- "name": "placeholder",
695
- "type": {
696
- "text": "string"
697
- },
698
- "privacy": "public",
699
- "default": "''",
700
- "attribute": "placeholder",
701
- "inheritedFrom": {
702
- "name": "TextfieldBase",
703
- "module": "src/Textfield.js"
704
- }
705
- },
706
- {
707
- "kind": "field",
708
- "name": "_type",
709
- "type": {
710
- "text": "TextfieldType"
711
- },
712
- "privacy": "private",
713
- "default": "'text'",
714
- "attribute": "type",
715
- "reflects": true,
716
- "inheritedFrom": {
717
- "name": "TextfieldBase",
718
- "module": "src/Textfield.js"
719
- }
720
- },
721
- {
722
- "kind": "field",
723
- "name": "type",
724
- "type": {
725
- "text": "TextfieldType"
726
- },
727
- "inheritedFrom": {
728
- "name": "TextfieldBase",
729
- "module": "src/Textfield.js"
730
- }
731
- },
732
- {
733
- "kind": "field",
734
- "name": "pattern",
735
- "type": {
736
- "text": "string | undefined"
737
- },
738
- "privacy": "public",
739
- "attribute": "pattern",
740
- "inheritedFrom": {
741
- "name": "TextfieldBase",
742
- "module": "src/Textfield.js"
743
- }
744
- },
745
- {
746
- "kind": "field",
747
- "name": "grows",
748
- "type": {
749
- "text": "boolean"
750
- },
751
- "privacy": "public",
752
- "default": "false",
753
- "attribute": "grows",
754
- "reflects": true,
755
- "inheritedFrom": {
756
- "name": "TextfieldBase",
757
- "module": "src/Textfield.js"
758
- }
759
- },
760
- {
761
- "kind": "field",
762
- "name": "maxlength",
763
- "type": {
764
- "text": "number"
765
- },
766
- "privacy": "public",
767
- "default": "-1",
768
- "attribute": "maxlength",
769
- "inheritedFrom": {
770
- "name": "TextfieldBase",
771
- "module": "src/Textfield.js"
772
- }
773
- },
774
- {
775
- "kind": "field",
776
- "name": "minlength",
777
- "type": {
778
- "text": "number"
779
- },
780
- "privacy": "public",
781
- "default": "-1",
782
- "attribute": "minlength",
783
- "inheritedFrom": {
784
- "name": "TextfieldBase",
785
- "module": "src/Textfield.js"
786
- }
787
- },
788
- {
789
- "kind": "field",
790
- "name": "multiline",
791
- "type": {
792
- "text": "boolean"
793
- },
794
- "privacy": "public",
795
- "default": "false",
796
- "attribute": "multiline",
797
- "reflects": true,
798
- "inheritedFrom": {
799
- "name": "TextfieldBase",
800
- "module": "src/Textfield.js"
801
- }
802
- },
803
- {
804
- "kind": "field",
805
- "name": "readonly",
806
- "type": {
807
- "text": "boolean"
808
- },
809
- "privacy": "public",
810
- "default": "false",
811
- "attribute": "readonly",
812
- "reflects": true,
813
- "inheritedFrom": {
814
- "name": "TextfieldBase",
815
- "module": "src/Textfield.js"
816
- }
817
- },
818
- {
819
- "kind": "field",
820
- "name": "rows",
821
- "type": {
822
- "text": "number"
823
- },
824
- "privacy": "public",
825
- "default": "-1",
826
- "attribute": "rows",
827
- "inheritedFrom": {
828
- "name": "TextfieldBase",
829
- "module": "src/Textfield.js"
830
- }
831
- },
832
- {
833
- "kind": "field",
834
- "name": "valid",
835
- "type": {
836
- "text": "boolean"
837
- },
838
- "privacy": "public",
839
- "default": "false",
840
- "attribute": "valid",
841
- "reflects": true,
842
- "inheritedFrom": {
843
- "name": "TextfieldBase",
844
- "module": "src/Textfield.js"
845
- }
846
- },
847
- {
848
- "kind": "field",
849
- "name": "quiet",
850
- "type": {
851
- "text": "boolean"
852
- },
853
- "privacy": "public",
854
- "default": "false",
855
- "attribute": "quiet",
856
- "reflects": true,
857
- "inheritedFrom": {
858
- "name": "TextfieldBase",
859
- "module": "src/Textfield.js"
860
- }
861
- },
862
- {
863
- "kind": "field",
864
- "name": "required",
865
- "type": {
866
- "text": "boolean"
867
- },
868
- "privacy": "public",
869
- "default": "false",
870
- "attribute": "required",
871
- "reflects": true,
872
- "inheritedFrom": {
873
- "name": "TextfieldBase",
874
- "module": "src/Textfield.js"
875
- }
876
- },
877
- {
878
- "kind": "field",
879
- "name": "autocomplete",
880
- "type": {
881
- "text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
882
- },
883
- "privacy": "public",
884
- "attribute": "autocomplete",
885
- "reflects": true,
886
- "inheritedFrom": {
887
- "name": "TextfieldBase",
888
- "module": "src/Textfield.js"
889
- }
890
- },
891
- {
892
- "kind": "field",
893
- "name": "focusElement",
894
- "type": {
895
- "text": "HTMLInputElement | HTMLTextAreaElement"
896
- },
897
- "privacy": "public",
898
- "readonly": true,
899
- "inheritedFrom": {
900
- "name": "TextfieldBase",
901
- "module": "src/Textfield.js"
902
- }
903
- },
904
- {
905
- "kind": "method",
906
- "name": "setSelectionRange",
907
- "privacy": "public",
908
- "return": {
909
- "type": {
910
- "text": "void"
911
- }
912
- },
913
- "parameters": [
914
- {
915
- "name": "selectionStart",
916
- "type": {
917
- "text": "number"
918
- },
919
- "description": "The 0-based index of the first selected character. An index greater than the length of the\nelement's value is treated as pointing to the end of the value."
920
- },
921
- {
922
- "name": "selectionEnd",
923
- "type": {
924
- "text": "number"
925
- },
926
- "description": "The 0-based index of the character after the last selected character. An index greater than\nthe length of the element's value is treated as pointing to the end of the value."
927
- },
928
- {
929
- "name": "selectionDirection",
930
- "default": "'none'",
931
- "type": {
932
- "text": "'forward' | 'backward' | 'none'"
933
- },
934
- "description": "A string indicating the direction in which the selection is considered to\nhave been performed.",
935
- "optional": true
936
- }
937
- ],
938
- "description": "Sets the start and end positions of the current selection.",
939
- "inheritedFrom": {
940
- "name": "TextfieldBase",
941
- "module": "src/Textfield.js"
942
- }
943
- },
944
- {
945
- "kind": "method",
946
- "name": "select",
947
- "privacy": "public",
948
- "return": {
949
- "type": {
950
- "text": "void"
951
- }
952
- },
953
- "description": "Selects all the text.",
954
- "inheritedFrom": {
955
- "name": "TextfieldBase",
956
- "module": "src/Textfield.js"
957
- }
958
- },
959
- {
960
- "kind": "method",
961
- "name": "handleInput",
962
- "privacy": "protected",
963
- "return": {
964
- "type": {
965
- "text": "void"
966
- }
967
- },
968
- "inheritedFrom": {
969
- "name": "TextfieldBase",
970
- "module": "src/Textfield.js"
971
- }
972
- },
973
- {
974
- "kind": "method",
975
- "name": "handleChange",
976
- "privacy": "protected",
977
- "return": {
978
- "type": {
979
- "text": "void"
980
- }
981
- },
982
- "inheritedFrom": {
983
- "name": "TextfieldBase",
984
- "module": "src/Textfield.js"
985
- }
986
- },
987
- {
988
- "kind": "method",
989
- "name": "onFocus",
990
- "privacy": "protected",
991
- "return": {
992
- "type": {
993
- "text": "void"
994
- }
995
- },
996
- "inheritedFrom": {
997
- "name": "TextfieldBase",
998
- "module": "src/Textfield.js"
999
- }
1000
- },
1001
- {
1002
- "kind": "method",
1003
- "name": "onBlur",
1004
- "privacy": "protected",
1005
- "return": {
1006
- "type": {
1007
- "text": "void"
1008
- }
1009
- },
1010
- "inheritedFrom": {
1011
- "name": "TextfieldBase",
1012
- "module": "src/Textfield.js"
1013
- }
1014
- },
1015
- {
1016
- "kind": "method",
1017
- "name": "renderStateIcons",
1018
- "privacy": "protected",
1019
- "return": {
1020
- "type": {
1021
- "text": "TemplateResult | typeof nothing"
1022
- }
1023
- },
1024
- "inheritedFrom": {
1025
- "name": "TextfieldBase",
1026
- "module": "src/Textfield.js"
1027
- }
1028
- },
1029
- {
1030
- "kind": "field",
1031
- "name": "displayValue",
1032
- "type": {
1033
- "text": "string"
1034
- },
1035
- "privacy": "protected",
1036
- "readonly": true,
1037
- "inheritedFrom": {
1038
- "name": "TextfieldBase",
1039
- "module": "src/Textfield.js"
1040
- }
1041
- },
1042
- {
1043
- "kind": "field",
1044
- "name": "renderMultiline",
1045
- "type": {
1046
- "text": "TemplateResult"
1047
- },
1048
- "privacy": "private",
1049
- "readonly": true,
1050
- "inheritedFrom": {
1051
- "name": "TextfieldBase",
1052
- "module": "src/Textfield.js"
1053
- }
1054
- },
1055
- {
1056
- "kind": "field",
1057
- "name": "renderInput",
1058
- "type": {
1059
- "text": "TemplateResult"
1060
- },
1061
- "privacy": "private",
1062
- "readonly": true,
1063
- "inheritedFrom": {
1064
- "name": "TextfieldBase",
1065
- "module": "src/Textfield.js"
1066
- }
1067
- },
1068
- {
1069
- "kind": "method",
1070
- "name": "renderField",
1071
- "privacy": "protected",
1072
- "return": {
1073
- "type": {
1074
- "text": "TemplateResult"
1075
- }
1076
- },
1077
- "inheritedFrom": {
1078
- "name": "TextfieldBase",
1079
- "module": "src/Textfield.js"
1080
- }
1081
- },
1082
- {
1083
- "kind": "method",
1084
- "name": "checkValidity",
1085
- "privacy": "public",
1086
- "return": {
1087
- "type": {
1088
- "text": "boolean"
1089
- }
1090
- },
1091
- "inheritedFrom": {
1092
- "name": "TextfieldBase",
1093
- "module": "src/Textfield.js"
1094
- }
1095
- }
1096
- ],
1097
- "attributes": [
1098
- {
1099
- "name": "value",
1100
- "type": {
1101
- "text": "string | number"
1102
- },
1103
- "fieldName": "value",
1104
- "inheritedFrom": {
1105
- "name": "TextfieldBase",
1106
- "module": "src/Textfield.ts"
1107
- }
1108
- },
1109
- {
1110
- "name": "allowed-keys",
1111
- "type": {
1112
- "text": "string"
1113
- },
1114
- "default": "''",
1115
- "fieldName": "allowedKeys",
1116
- "inheritedFrom": {
1117
- "name": "TextfieldBase",
1118
- "module": "src/Textfield.ts"
1119
- }
1120
- },
1121
- {
1122
- "name": "focused",
1123
- "type": {
1124
- "text": "boolean"
1125
- },
1126
- "default": "false",
1127
- "fieldName": "focused",
1128
- "inheritedFrom": {
1129
- "name": "TextfieldBase",
1130
- "module": "src/Textfield.ts"
1131
- }
1132
- },
1133
- {
1134
- "name": "invalid",
1135
- "type": {
1136
- "text": "boolean"
1137
- },
1138
- "default": "false",
1139
- "fieldName": "invalid",
1140
- "inheritedFrom": {
1141
- "name": "TextfieldBase",
1142
- "module": "src/Textfield.ts"
1143
- }
1144
- },
1145
- {
1146
- "name": "label",
1147
- "type": {
1148
- "text": "string"
1149
- },
1150
- "default": "''",
1151
- "fieldName": "label",
1152
- "inheritedFrom": {
1153
- "name": "TextfieldBase",
1154
- "module": "src/Textfield.ts"
1155
- }
1156
- },
1157
- {
1158
- "name": "placeholder",
1159
- "type": {
1160
- "text": "string"
1161
- },
1162
- "default": "''",
1163
- "fieldName": "placeholder",
1164
- "inheritedFrom": {
1165
- "name": "TextfieldBase",
1166
- "module": "src/Textfield.ts"
1167
- }
1168
- },
1169
- {
1170
- "name": "type",
1171
- "type": {
1172
- "text": "TextfieldType"
1173
- },
1174
- "default": "'text'",
1175
- "fieldName": "_type",
1176
- "inheritedFrom": {
1177
- "name": "TextfieldBase",
1178
- "module": "src/Textfield.ts"
1179
- }
1180
- },
1181
- {
1182
- "name": "pattern",
1183
- "type": {
1184
- "text": "string | undefined"
1185
- },
1186
- "fieldName": "pattern",
1187
- "inheritedFrom": {
1188
- "name": "TextfieldBase",
1189
- "module": "src/Textfield.ts"
1190
- }
1191
- },
1192
- {
1193
- "name": "grows",
1194
- "type": {
1195
- "text": "boolean"
1196
- },
1197
- "default": "false",
1198
- "fieldName": "grows",
1199
- "inheritedFrom": {
1200
- "name": "TextfieldBase",
1201
- "module": "src/Textfield.ts"
1202
- }
1203
- },
1204
- {
1205
- "name": "maxlength",
1206
- "type": {
1207
- "text": "number"
1208
- },
1209
- "default": "-1",
1210
- "fieldName": "maxlength",
1211
- "inheritedFrom": {
1212
- "name": "TextfieldBase",
1213
- "module": "src/Textfield.ts"
1214
- }
1215
- },
1216
- {
1217
- "name": "minlength",
1218
- "type": {
1219
- "text": "number"
1220
- },
1221
- "default": "-1",
1222
- "fieldName": "minlength",
1223
- "inheritedFrom": {
1224
- "name": "TextfieldBase",
1225
- "module": "src/Textfield.ts"
1226
- }
1227
- },
1228
- {
1229
- "name": "multiline",
1230
- "type": {
1231
- "text": "boolean"
1232
- },
1233
- "default": "false",
1234
- "fieldName": "multiline",
1235
- "inheritedFrom": {
1236
- "name": "TextfieldBase",
1237
- "module": "src/Textfield.ts"
1238
- }
1239
- },
1240
- {
1241
- "name": "readonly",
1242
- "type": {
1243
- "text": "boolean"
1244
- },
1245
- "default": "false",
1246
- "fieldName": "readonly",
1247
- "inheritedFrom": {
1248
- "name": "TextfieldBase",
1249
- "module": "src/Textfield.ts"
1250
- }
1251
- },
1252
- {
1253
- "name": "rows",
1254
- "type": {
1255
- "text": "number"
1256
- },
1257
- "default": "-1",
1258
- "fieldName": "rows",
1259
- "inheritedFrom": {
1260
- "name": "TextfieldBase",
1261
- "module": "src/Textfield.ts"
1262
- }
1263
- },
1264
- {
1265
- "name": "valid",
1266
- "type": {
1267
- "text": "boolean"
1268
- },
1269
- "default": "false",
1270
- "fieldName": "valid",
1271
- "inheritedFrom": {
1272
- "name": "TextfieldBase",
1273
- "module": "src/Textfield.ts"
1274
- }
1275
- },
1276
- {
1277
- "name": "quiet",
1278
- "type": {
1279
- "text": "boolean"
1280
- },
1281
- "default": "false",
1282
- "fieldName": "quiet",
1283
- "inheritedFrom": {
1284
- "name": "TextfieldBase",
1285
- "module": "src/Textfield.ts"
1286
- }
1287
- },
1288
- {
1289
- "name": "required",
1290
- "type": {
1291
- "text": "boolean"
1292
- },
1293
- "default": "false",
1294
- "fieldName": "required",
1295
- "inheritedFrom": {
1296
- "name": "TextfieldBase",
1297
- "module": "src/Textfield.ts"
1298
- }
1299
- },
1300
- {
1301
- "name": "autocomplete",
1302
- "type": {
1303
- "text": "| HTMLInputElement['autocomplete']\n | HTMLTextAreaElement['autocomplete'] | undefined"
1304
- },
1305
- "fieldName": "autocomplete",
1306
- "inheritedFrom": {
1307
- "name": "TextfieldBase",
1308
- "module": "src/Textfield.ts"
1309
- }
1310
- }
1311
- ],
1312
- "superclass": {
1313
- "name": "TextfieldBase",
1314
- "module": "src/Textfield.ts"
1315
- },
1316
- "tagName": "sp-textfield",
1317
- "customElement": true,
1318
- "events": [
1319
- {
1320
- "name": "change",
1321
- "type": {
1322
- "text": "Event"
1323
- },
1324
- "description": "An alteration to the value of the element has been committed by the user.",
1325
- "inheritedFrom": {
1326
- "name": "TextfieldBase",
1327
- "module": "src/Textfield.ts"
1328
- }
1329
- },
1330
- {
1331
- "description": "The value of the element has changed.",
1332
- "name": "input",
1333
- "inheritedFrom": {
1334
- "name": "TextfieldBase",
1335
- "module": "src/Textfield.ts"
1336
- }
1337
- }
1338
- ]
1339
- }
1340
- ],
1341
- "exports": [
1342
- {
1343
- "kind": "js",
1344
- "name": "TextfieldBase",
1345
- "declaration": {
1346
- "name": "TextfieldBase",
1347
- "module": "src/Textfield.js"
1348
- }
1349
- },
1350
- {
1351
- "kind": "js",
1352
- "name": "Textfield",
1353
- "declaration": {
1354
- "name": "Textfield",
1355
- "module": "src/Textfield.js"
1356
- }
1357
- }
1358
- ]
1359
- }
1360
- ]
1361
- }