@openelement/ui 1.0.0-alpha.6 → 1.0.0-alpha.7

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/src/open-input.js CHANGED
@@ -1,1982 +1,1732 @@
1
- // <auto-generated by open:compiled-element; part-program format 1 / module ABI 1 - do not edit>
2
- import { computed, OpenElement } from '@openelement/element';
3
- import { controlRecipe, nextInstanceId, recipe, syncDisabledState } from './component-recipes.js';
1
+ import { controlRecipe, nextInstanceId, recipe, syncDisabledState } from "./component-recipes.js";
2
+ import { OpenElement, computed } from "@openelement/element";
3
+ //#region src/open-input.tsx
4
4
  const __partProgram = {
5
- "version": 1,
6
- "tag": "open-input",
7
- "root": {
8
- "id": "root",
9
- "kind": "shadow-open",
10
- "nodes": [
11
- "e0"
12
- ]
13
- },
14
- "template": [
15
- {
16
- "k": "el",
17
- "id": "e0",
18
- "tag": "div",
19
- "attrs": [
20
- [
21
- "class",
22
- "input-wrapper"
23
- ],
24
- [
25
- "part",
26
- "wrapper"
27
- ]
28
- ],
29
- "children": [
30
- {
31
- "k": "el",
32
- "id": "e1",
33
- "tag": "label",
34
- "attrs": [
35
- [
36
- "part",
37
- "label"
38
- ]
39
- ],
40
- "children": [
41
- {
42
- "k": "part",
43
- "id": "p2",
44
- "index": 2
45
- },
46
- {
47
- "k": "el",
48
- "id": "e2",
49
- "tag": "span",
50
- "attrs": [
51
- [
52
- "class",
53
- "req"
54
- ]
55
- ],
56
- "children": [
57
- {
58
- "k": "part",
59
- "id": "p3",
60
- "index": 3
61
- }
62
- ]
63
- }
64
- ]
65
- },
66
- {
67
- "k": "el",
68
- "id": "e3",
69
- "tag": "input",
70
- "attrs": [
71
- [
72
- "part",
73
- "control"
74
- ]
75
- ],
76
- "children": []
77
- },
78
- {
79
- "k": "el",
80
- "id": "e4",
81
- "tag": "small",
82
- "attrs": [
83
- [
84
- "role",
85
- "alert"
86
- ],
87
- [
88
- "class",
89
- "error-message"
90
- ],
91
- [
92
- "part",
93
- "error"
94
- ]
95
- ],
96
- "children": [
97
- {
98
- "k": "part",
99
- "id": "p21",
100
- "index": 21
101
- }
102
- ]
103
- }
104
- ]
105
- }
106
- ],
107
- "parts": [
108
- {
109
- "k": "attr",
110
- "signal": "idAttr",
111
- "name": "for",
112
- "path": [
113
- 0,
114
- 0
115
- ],
116
- "index": 0,
117
- "location": {
118
- "id": "p0",
119
- "kind": "sink",
120
- "path": [
121
- 0,
122
- 0
123
- ],
124
- "node": "e1"
125
- }
126
- },
127
- {
128
- "k": "bool",
129
- "signal": "noLabel",
130
- "name": "hidden",
131
- "path": [
132
- 0,
133
- 0
134
- ],
135
- "index": 1,
136
- "location": {
137
- "id": "p1",
138
- "kind": "sink",
139
- "path": [
140
- 0,
141
- 0
142
- ],
143
- "node": "e1"
144
- }
145
- },
146
- {
147
- "k": "text",
148
- "signal": "label",
149
- "index": 2,
150
- "location": {
151
- "id": "p2",
152
- "kind": "anchor",
153
- "path": [
154
- 0,
155
- 0,
156
- 0
157
- ]
158
- }
159
- },
160
- {
161
- "k": "text",
162
- "signal": "requiredMark",
163
- "index": 3,
164
- "location": {
165
- "id": "p3",
166
- "kind": "anchor",
167
- "path": [
168
- 0,
169
- 0,
170
- 1,
171
- 0
172
- ]
173
- }
174
- },
175
- {
176
- "k": "attr",
177
- "signal": "idAttr",
178
- "name": "id",
179
- "path": [
180
- 0,
181
- 1
182
- ],
183
- "index": 4,
184
- "location": {
185
- "id": "p4",
186
- "kind": "sink",
187
- "path": [
188
- 0,
189
- 1
190
- ],
191
- "node": "e3"
192
- }
193
- },
194
- {
195
- "k": "class",
196
- "signal": "inputClass",
197
- "path": [
198
- 0,
199
- 1
200
- ],
201
- "index": 5,
202
- "location": {
203
- "id": "p5",
204
- "kind": "sink",
205
- "path": [
206
- 0,
207
- 1
208
- ],
209
- "node": "e3"
210
- }
211
- },
212
- {
213
- "k": "attr",
214
- "signal": "type",
215
- "name": "type",
216
- "path": [
217
- 0,
218
- 1
219
- ],
220
- "index": 6,
221
- "location": {
222
- "id": "p6",
223
- "kind": "sink",
224
- "path": [
225
- 0,
226
- 1
227
- ],
228
- "node": "e3"
229
- }
230
- },
231
- {
232
- "k": "attr",
233
- "signal": "placeholder",
234
- "name": "placeholder",
235
- "path": [
236
- 0,
237
- 1
238
- ],
239
- "index": 7,
240
- "location": {
241
- "id": "p7",
242
- "kind": "sink",
243
- "path": [
244
- 0,
245
- 1
246
- ],
247
- "node": "e3"
248
- }
249
- },
250
- {
251
- "k": "prop",
252
- "signal": "value",
253
- "name": "value",
254
- "path": [
255
- 0,
256
- 1
257
- ],
258
- "index": 8,
259
- "location": {
260
- "id": "p8",
261
- "kind": "sink",
262
- "path": [
263
- 0,
264
- 1
265
- ],
266
- "node": "e3"
267
- }
268
- },
269
- {
270
- "k": "attr",
271
- "signal": "name",
272
- "name": "name",
273
- "path": [
274
- 0,
275
- 1
276
- ],
277
- "index": 9,
278
- "location": {
279
- "id": "p9",
280
- "kind": "sink",
281
- "path": [
282
- 0,
283
- 1
284
- ],
285
- "node": "e3"
286
- }
287
- },
288
- {
289
- "k": "bool",
290
- "signal": "disabled",
291
- "name": "disabled",
292
- "path": [
293
- 0,
294
- 1
295
- ],
296
- "index": 10,
297
- "location": {
298
- "id": "p10",
299
- "kind": "sink",
300
- "path": [
301
- 0,
302
- 1
303
- ],
304
- "node": "e3"
305
- }
306
- },
307
- {
308
- "k": "bool",
309
- "signal": "required",
310
- "name": "required",
311
- "path": [
312
- 0,
313
- 1
314
- ],
315
- "index": 11,
316
- "location": {
317
- "id": "p11",
318
- "kind": "sink",
319
- "path": [
320
- 0,
321
- 1
322
- ],
323
- "node": "e3"
324
- }
325
- },
326
- {
327
- "k": "attr",
328
- "signal": "ariaInvalidAttr",
329
- "name": "aria-invalid",
330
- "path": [
331
- 0,
332
- 1
333
- ],
334
- "index": 12,
335
- "location": {
336
- "id": "p12",
337
- "kind": "sink",
338
- "path": [
339
- 0,
340
- 1
341
- ],
342
- "node": "e3"
343
- }
344
- },
345
- {
346
- "k": "attr",
347
- "signal": "describedByAttr",
348
- "name": "aria-describedby",
349
- "path": [
350
- 0,
351
- 1
352
- ],
353
- "index": 13,
354
- "location": {
355
- "id": "p13",
356
- "kind": "sink",
357
- "path": [
358
- 0,
359
- 1
360
- ],
361
- "node": "e3"
362
- }
363
- },
364
- {
365
- "k": "attr",
366
- "signal": "describedByAttr",
367
- "name": "aria-errormessage",
368
- "path": [
369
- 0,
370
- 1
371
- ],
372
- "index": 14,
373
- "location": {
374
- "id": "p14",
375
- "kind": "sink",
376
- "path": [
377
- 0,
378
- 1
379
- ],
380
- "node": "e3"
381
- }
382
- },
383
- {
384
- "k": "event",
385
- "event": "input",
386
- "handler": "handleInput",
387
- "action": {
388
- "kind": "method",
389
- "name": "handleInput"
390
- },
391
- "path": [
392
- 0,
393
- 1
394
- ],
395
- "index": 15,
396
- "location": {
397
- "id": "p15",
398
- "kind": "sink",
399
- "path": [
400
- 0,
401
- 1
402
- ],
403
- "node": "e3"
404
- }
405
- },
406
- {
407
- "k": "event",
408
- "event": "change",
409
- "handler": "handleChange",
410
- "action": {
411
- "kind": "method",
412
- "name": "handleChange"
413
- },
414
- "path": [
415
- 0,
416
- 1
417
- ],
418
- "index": 16,
419
- "location": {
420
- "id": "p16",
421
- "kind": "sink",
422
- "path": [
423
- 0,
424
- 1
425
- ],
426
- "node": "e3"
427
- }
428
- },
429
- {
430
- "k": "event",
431
- "event": "focus",
432
- "handler": "handleFocus",
433
- "action": {
434
- "kind": "method",
435
- "name": "handleFocus"
436
- },
437
- "path": [
438
- 0,
439
- 1
440
- ],
441
- "index": 17,
442
- "location": {
443
- "id": "p17",
444
- "kind": "sink",
445
- "path": [
446
- 0,
447
- 1
448
- ],
449
- "node": "e3"
450
- }
451
- },
452
- {
453
- "k": "event",
454
- "event": "blur",
455
- "handler": "handleBlur",
456
- "action": {
457
- "kind": "method",
458
- "name": "handleBlur"
459
- },
460
- "path": [
461
- 0,
462
- 1
463
- ],
464
- "index": 18,
465
- "location": {
466
- "id": "p18",
467
- "kind": "sink",
468
- "path": [
469
- 0,
470
- 1
471
- ],
472
- "node": "e3"
473
- }
474
- },
475
- {
476
- "k": "attr",
477
- "signal": "errorIdAttr",
478
- "name": "id",
479
- "path": [
480
- 0,
481
- 2
482
- ],
483
- "index": 19,
484
- "location": {
485
- "id": "p19",
486
- "kind": "sink",
487
- "path": [
488
- 0,
489
- 2
490
- ],
491
- "node": "e4"
492
- }
493
- },
494
- {
495
- "k": "bool",
496
- "signal": "noError",
497
- "name": "hidden",
498
- "path": [
499
- 0,
500
- 2
501
- ],
502
- "index": 20,
503
- "location": {
504
- "id": "p20",
505
- "kind": "sink",
506
- "path": [
507
- 0,
508
- 2
509
- ],
510
- "node": "e4"
511
- }
512
- },
513
- {
514
- "k": "text",
515
- "signal": "error",
516
- "index": 21,
517
- "location": {
518
- "id": "p21",
519
- "kind": "anchor",
520
- "path": [
521
- 0,
522
- 2,
523
- 0
524
- ]
525
- }
526
- }
527
- ],
528
- "regions": [],
529
- "dependencies": [
530
- {
531
- "signal": "idAttr",
532
- "owner": {
533
- "kind": "part",
534
- "index": 0
535
- },
536
- "location": "p0"
537
- },
538
- {
539
- "signal": "noLabel",
540
- "owner": {
541
- "kind": "part",
542
- "index": 1
543
- },
544
- "location": "p1"
545
- },
546
- {
547
- "signal": "label",
548
- "owner": {
549
- "kind": "part",
550
- "index": 2
551
- },
552
- "location": "p2"
553
- },
554
- {
555
- "signal": "requiredMark",
556
- "owner": {
557
- "kind": "part",
558
- "index": 3
559
- },
560
- "location": "p3"
561
- },
562
- {
563
- "signal": "idAttr",
564
- "owner": {
565
- "kind": "part",
566
- "index": 4
567
- },
568
- "location": "p4"
569
- },
570
- {
571
- "signal": "inputClass",
572
- "owner": {
573
- "kind": "part",
574
- "index": 5
575
- },
576
- "location": "p5"
577
- },
578
- {
579
- "signal": "type",
580
- "owner": {
581
- "kind": "part",
582
- "index": 6
583
- },
584
- "location": "p6"
585
- },
586
- {
587
- "signal": "placeholder",
588
- "owner": {
589
- "kind": "part",
590
- "index": 7
591
- },
592
- "location": "p7"
593
- },
594
- {
595
- "signal": "value",
596
- "owner": {
597
- "kind": "part",
598
- "index": 8
599
- },
600
- "location": "p8"
601
- },
602
- {
603
- "signal": "name",
604
- "owner": {
605
- "kind": "part",
606
- "index": 9
607
- },
608
- "location": "p9"
609
- },
610
- {
611
- "signal": "disabled",
612
- "owner": {
613
- "kind": "part",
614
- "index": 10
615
- },
616
- "location": "p10"
617
- },
618
- {
619
- "signal": "required",
620
- "owner": {
621
- "kind": "part",
622
- "index": 11
623
- },
624
- "location": "p11"
625
- },
626
- {
627
- "signal": "ariaInvalidAttr",
628
- "owner": {
629
- "kind": "part",
630
- "index": 12
631
- },
632
- "location": "p12"
633
- },
634
- {
635
- "signal": "describedByAttr",
636
- "owner": {
637
- "kind": "part",
638
- "index": 13
639
- },
640
- "location": "p13"
641
- },
642
- {
643
- "signal": "describedByAttr",
644
- "owner": {
645
- "kind": "part",
646
- "index": 14
647
- },
648
- "location": "p14"
649
- },
650
- {
651
- "signal": "errorIdAttr",
652
- "owner": {
653
- "kind": "part",
654
- "index": 19
655
- },
656
- "location": "p19"
657
- },
658
- {
659
- "signal": "noError",
660
- "owner": {
661
- "kind": "part",
662
- "index": 20
663
- },
664
- "location": "p20"
665
- },
666
- {
667
- "signal": "error",
668
- "owner": {
669
- "kind": "part",
670
- "index": 21
671
- },
672
- "location": "p21"
673
- }
674
- ],
675
- "locations": [
676
- {
677
- "id": "e0",
678
- "kind": "element",
679
- "tag": "div",
680
- "path": [
681
- 0
682
- ]
683
- },
684
- {
685
- "id": "e1",
686
- "kind": "element",
687
- "tag": "label",
688
- "path": [
689
- 0,
690
- 0
691
- ]
692
- },
693
- {
694
- "id": "p0",
695
- "kind": "sink",
696
- "part": 0,
697
- "node": "e1",
698
- "path": [
699
- 0,
700
- 0
701
- ]
702
- },
703
- {
704
- "id": "p1",
705
- "kind": "sink",
706
- "part": 1,
707
- "node": "e1",
708
- "path": [
709
- 0,
710
- 0
711
- ]
712
- },
713
- {
714
- "id": "p2",
715
- "kind": "anchor",
716
- "part": 2,
717
- "path": [
718
- 0,
719
- 0,
720
- 0
721
- ]
722
- },
723
- {
724
- "id": "e2",
725
- "kind": "element",
726
- "tag": "span",
727
- "path": [
728
- 0,
729
- 0,
730
- 1
731
- ]
732
- },
733
- {
734
- "id": "p3",
735
- "kind": "anchor",
736
- "part": 3,
737
- "path": [
738
- 0,
739
- 0,
740
- 1,
741
- 0
742
- ]
743
- },
744
- {
745
- "id": "e3",
746
- "kind": "element",
747
- "tag": "input",
748
- "path": [
749
- 0,
750
- 1
751
- ]
752
- },
753
- {
754
- "id": "p4",
755
- "kind": "sink",
756
- "part": 4,
757
- "node": "e3",
758
- "path": [
759
- 0,
760
- 1
761
- ]
762
- },
763
- {
764
- "id": "p5",
765
- "kind": "sink",
766
- "part": 5,
767
- "node": "e3",
768
- "path": [
769
- 0,
770
- 1
771
- ]
772
- },
773
- {
774
- "id": "p6",
775
- "kind": "sink",
776
- "part": 6,
777
- "node": "e3",
778
- "path": [
779
- 0,
780
- 1
781
- ]
782
- },
783
- {
784
- "id": "p7",
785
- "kind": "sink",
786
- "part": 7,
787
- "node": "e3",
788
- "path": [
789
- 0,
790
- 1
791
- ]
792
- },
793
- {
794
- "id": "p8",
795
- "kind": "sink",
796
- "part": 8,
797
- "node": "e3",
798
- "path": [
799
- 0,
800
- 1
801
- ]
802
- },
803
- {
804
- "id": "p9",
805
- "kind": "sink",
806
- "part": 9,
807
- "node": "e3",
808
- "path": [
809
- 0,
810
- 1
811
- ]
812
- },
813
- {
814
- "id": "p10",
815
- "kind": "sink",
816
- "part": 10,
817
- "node": "e3",
818
- "path": [
819
- 0,
820
- 1
821
- ]
822
- },
823
- {
824
- "id": "p11",
825
- "kind": "sink",
826
- "part": 11,
827
- "node": "e3",
828
- "path": [
829
- 0,
830
- 1
831
- ]
832
- },
833
- {
834
- "id": "p12",
835
- "kind": "sink",
836
- "part": 12,
837
- "node": "e3",
838
- "path": [
839
- 0,
840
- 1
841
- ]
842
- },
843
- {
844
- "id": "p13",
845
- "kind": "sink",
846
- "part": 13,
847
- "node": "e3",
848
- "path": [
849
- 0,
850
- 1
851
- ]
852
- },
853
- {
854
- "id": "p14",
855
- "kind": "sink",
856
- "part": 14,
857
- "node": "e3",
858
- "path": [
859
- 0,
860
- 1
861
- ]
862
- },
863
- {
864
- "id": "p15",
865
- "kind": "sink",
866
- "part": 15,
867
- "node": "e3",
868
- "path": [
869
- 0,
870
- 1
871
- ]
872
- },
873
- {
874
- "id": "p16",
875
- "kind": "sink",
876
- "part": 16,
877
- "node": "e3",
878
- "path": [
879
- 0,
880
- 1
881
- ]
882
- },
883
- {
884
- "id": "p17",
885
- "kind": "sink",
886
- "part": 17,
887
- "node": "e3",
888
- "path": [
889
- 0,
890
- 1
891
- ]
892
- },
893
- {
894
- "id": "p18",
895
- "kind": "sink",
896
- "part": 18,
897
- "node": "e3",
898
- "path": [
899
- 0,
900
- 1
901
- ]
902
- },
903
- {
904
- "id": "e4",
905
- "kind": "element",
906
- "tag": "small",
907
- "path": [
908
- 0,
909
- 2
910
- ]
911
- },
912
- {
913
- "id": "p19",
914
- "kind": "sink",
915
- "part": 19,
916
- "node": "e4",
917
- "path": [
918
- 0,
919
- 2
920
- ]
921
- },
922
- {
923
- "id": "p20",
924
- "kind": "sink",
925
- "part": 20,
926
- "node": "e4",
927
- "path": [
928
- 0,
929
- 2
930
- ]
931
- },
932
- {
933
- "id": "p21",
934
- "kind": "anchor",
935
- "part": 21,
936
- "path": [
937
- 0,
938
- 2,
939
- 0
940
- ]
941
- }
942
- ],
943
- "metadata": {
944
- "tag": "open-input",
945
- "className": "OpenInput",
946
- "sourceFile": "open-input.tsx",
947
- "properties": [
948
- {
949
- "name": "type",
950
- "attribute": "type",
951
- "type": "string",
952
- "converter": "string",
953
- "reflect": false,
954
- "default": "text"
955
- },
956
- {
957
- "name": "placeholder",
958
- "attribute": "placeholder",
959
- "type": "string",
960
- "converter": "string",
961
- "reflect": false,
962
- "default": ""
963
- },
964
- {
965
- "name": "label",
966
- "attribute": "label",
967
- "type": "string",
968
- "converter": "string",
969
- "reflect": false,
970
- "default": ""
971
- },
972
- {
973
- "name": "name",
974
- "attribute": "name",
975
- "type": "string",
976
- "converter": "string",
977
- "reflect": false,
978
- "default": ""
979
- },
980
- {
981
- "name": "value",
982
- "attribute": "value",
983
- "type": "string",
984
- "converter": "string",
985
- "reflect": false,
986
- "default": ""
987
- },
988
- {
989
- "name": "disabled",
990
- "attribute": "disabled",
991
- "type": "boolean",
992
- "converter": "boolean",
993
- "reflect": false,
994
- "default": false
995
- },
996
- {
997
- "name": "required",
998
- "attribute": "required",
999
- "type": "boolean",
1000
- "converter": "boolean",
1001
- "reflect": false,
1002
- "default": false
1003
- },
1004
- {
1005
- "name": "error",
1006
- "attribute": "error",
1007
- "type": "string",
1008
- "converter": "string",
1009
- "reflect": false,
1010
- "default": ""
1011
- },
1012
- {
1013
- "name": "inputId",
1014
- "attribute": null,
1015
- "type": "string",
1016
- "converter": "string",
1017
- "reflect": false,
1018
- "default": ""
1019
- },
1020
- {
1021
- "name": "noLabel",
1022
- "attribute": null,
1023
- "type": "boolean",
1024
- "converter": "boolean",
1025
- "reflect": false,
1026
- "default": null,
1027
- "computed": true,
1028
- "deps": [
1029
- "label"
1030
- ]
1031
- },
1032
- {
1033
- "name": "noError",
1034
- "attribute": null,
1035
- "type": "boolean",
1036
- "converter": "boolean",
1037
- "reflect": false,
1038
- "default": null,
1039
- "computed": true,
1040
- "deps": [
1041
- "error"
1042
- ]
1043
- },
1044
- {
1045
- "name": "inputClass",
1046
- "attribute": null,
1047
- "type": "string",
1048
- "converter": "string",
1049
- "reflect": false,
1050
- "default": null,
1051
- "computed": true,
1052
- "deps": [
1053
- "error"
1054
- ]
1055
- },
1056
- {
1057
- "name": "idAttr",
1058
- "attribute": null,
1059
- "type": "string",
1060
- "converter": "string",
1061
- "reflect": false,
1062
- "default": null,
1063
- "computed": true,
1064
- "deps": [
1065
- "inputId"
1066
- ]
1067
- },
1068
- {
1069
- "name": "errorIdAttr",
1070
- "attribute": null,
1071
- "type": "string",
1072
- "converter": "string",
1073
- "reflect": false,
1074
- "default": null,
1075
- "computed": true,
1076
- "deps": [
1077
- "inputId"
1078
- ]
1079
- },
1080
- {
1081
- "name": "ariaInvalidAttr",
1082
- "attribute": null,
1083
- "type": "string",
1084
- "converter": "string",
1085
- "reflect": false,
1086
- "default": null,
1087
- "computed": true,
1088
- "deps": [
1089
- "error"
1090
- ]
1091
- },
1092
- {
1093
- "name": "requiredMark",
1094
- "attribute": null,
1095
- "type": "string",
1096
- "converter": "string",
1097
- "reflect": false,
1098
- "default": null,
1099
- "computed": true,
1100
- "deps": [
1101
- "required"
1102
- ]
1103
- },
1104
- {
1105
- "name": "describedByAttr",
1106
- "attribute": null,
1107
- "type": "string",
1108
- "converter": "string",
1109
- "reflect": false,
1110
- "default": null,
1111
- "computed": true,
1112
- "deps": [
1113
- "error",
1114
- "inputId"
1115
- ]
1116
- }
1117
- ],
1118
- "observedAttributes": [
1119
- "type",
1120
- "placeholder",
1121
- "label",
1122
- "name",
1123
- "value",
1124
- "disabled",
1125
- "required",
1126
- "error"
1127
- ],
1128
- "cem": {
1129
- "tagName": "open-input",
1130
- "className": "OpenInput",
1131
- "declaration": {
1132
- "name": "OpenInput",
1133
- "module": "open-input.tsx"
1134
- },
1135
- "attributes": [
1136
- {
1137
- "name": "type",
1138
- "fieldName": "type",
1139
- "type": "string",
1140
- "reflect": false
1141
- },
1142
- {
1143
- "name": "placeholder",
1144
- "fieldName": "placeholder",
1145
- "type": "string",
1146
- "reflect": false
1147
- },
1148
- {
1149
- "name": "label",
1150
- "fieldName": "label",
1151
- "type": "string",
1152
- "reflect": false
1153
- },
1154
- {
1155
- "name": "name",
1156
- "fieldName": "name",
1157
- "type": "string",
1158
- "reflect": false
1159
- },
1160
- {
1161
- "name": "value",
1162
- "fieldName": "value",
1163
- "type": "string",
1164
- "reflect": false
1165
- },
1166
- {
1167
- "name": "disabled",
1168
- "fieldName": "disabled",
1169
- "type": "boolean",
1170
- "reflect": false
1171
- },
1172
- {
1173
- "name": "required",
1174
- "fieldName": "required",
1175
- "type": "boolean",
1176
- "reflect": false
1177
- },
1178
- {
1179
- "name": "error",
1180
- "fieldName": "error",
1181
- "type": "string",
1182
- "reflect": false
1183
- }
1184
- ],
1185
- "members": [
1186
- {
1187
- "name": "type",
1188
- "fieldName": "type",
1189
- "type": "string",
1190
- "attribute": "type",
1191
- "reflect": false
1192
- },
1193
- {
1194
- "name": "placeholder",
1195
- "fieldName": "placeholder",
1196
- "type": "string",
1197
- "attribute": "placeholder",
1198
- "reflect": false
1199
- },
1200
- {
1201
- "name": "label",
1202
- "fieldName": "label",
1203
- "type": "string",
1204
- "attribute": "label",
1205
- "reflect": false
1206
- },
1207
- {
1208
- "name": "name",
1209
- "fieldName": "name",
1210
- "type": "string",
1211
- "attribute": "name",
1212
- "reflect": false
1213
- },
1214
- {
1215
- "name": "value",
1216
- "fieldName": "value",
1217
- "type": "string",
1218
- "attribute": "value",
1219
- "reflect": false
1220
- },
1221
- {
1222
- "name": "disabled",
1223
- "fieldName": "disabled",
1224
- "type": "boolean",
1225
- "attribute": "disabled",
1226
- "reflect": false
1227
- },
1228
- {
1229
- "name": "required",
1230
- "fieldName": "required",
1231
- "type": "boolean",
1232
- "attribute": "required",
1233
- "reflect": false
1234
- },
1235
- {
1236
- "name": "error",
1237
- "fieldName": "error",
1238
- "type": "string",
1239
- "attribute": "error",
1240
- "reflect": false
1241
- },
1242
- {
1243
- "name": "inputId",
1244
- "fieldName": "inputId",
1245
- "type": "string",
1246
- "attribute": null,
1247
- "reflect": false
1248
- },
1249
- {
1250
- "name": "noLabel",
1251
- "fieldName": "noLabel",
1252
- "type": "boolean",
1253
- "attribute": null,
1254
- "reflect": false
1255
- },
1256
- {
1257
- "name": "noError",
1258
- "fieldName": "noError",
1259
- "type": "boolean",
1260
- "attribute": null,
1261
- "reflect": false
1262
- },
1263
- {
1264
- "name": "inputClass",
1265
- "fieldName": "inputClass",
1266
- "type": "string",
1267
- "attribute": null,
1268
- "reflect": false
1269
- },
1270
- {
1271
- "name": "idAttr",
1272
- "fieldName": "idAttr",
1273
- "type": "string",
1274
- "attribute": null,
1275
- "reflect": false
1276
- },
1277
- {
1278
- "name": "errorIdAttr",
1279
- "fieldName": "errorIdAttr",
1280
- "type": "string",
1281
- "attribute": null,
1282
- "reflect": false
1283
- },
1284
- {
1285
- "name": "ariaInvalidAttr",
1286
- "fieldName": "ariaInvalidAttr",
1287
- "type": "string",
1288
- "attribute": null,
1289
- "reflect": false
1290
- },
1291
- {
1292
- "name": "requiredMark",
1293
- "fieldName": "requiredMark",
1294
- "type": "string",
1295
- "attribute": null,
1296
- "reflect": false
1297
- },
1298
- {
1299
- "name": "describedByAttr",
1300
- "fieldName": "describedByAttr",
1301
- "type": "string",
1302
- "attribute": null,
1303
- "reflect": false
1304
- }
1305
- ]
1306
- }
1307
- }
5
+ "version": 1,
6
+ "tag": "open-input",
7
+ "root": {
8
+ "id": "root",
9
+ "kind": "shadow-open",
10
+ "nodes": ["e0"]
11
+ },
12
+ "template": [{
13
+ "k": "el",
14
+ "id": "e0",
15
+ "tag": "div",
16
+ "attrs": [["class", "input-wrapper"], ["part", "wrapper"]],
17
+ "children": [
18
+ {
19
+ "k": "el",
20
+ "id": "e1",
21
+ "tag": "label",
22
+ "attrs": [["part", "label"]],
23
+ "children": [{
24
+ "k": "part",
25
+ "id": "p2",
26
+ "index": 2
27
+ }, {
28
+ "k": "el",
29
+ "id": "e2",
30
+ "tag": "span",
31
+ "attrs": [["class", "req"]],
32
+ "children": [{
33
+ "k": "part",
34
+ "id": "p3",
35
+ "index": 3
36
+ }]
37
+ }]
38
+ },
39
+ {
40
+ "k": "el",
41
+ "id": "e3",
42
+ "tag": "input",
43
+ "attrs": [["part", "control"]],
44
+ "children": []
45
+ },
46
+ {
47
+ "k": "el",
48
+ "id": "e4",
49
+ "tag": "small",
50
+ "attrs": [
51
+ ["role", "alert"],
52
+ ["class", "error-message"],
53
+ ["part", "error"]
54
+ ],
55
+ "children": [{
56
+ "k": "part",
57
+ "id": "p21",
58
+ "index": 21
59
+ }]
60
+ }
61
+ ]
62
+ }],
63
+ "parts": [
64
+ {
65
+ "k": "attr",
66
+ "signal": "idAttr",
67
+ "name": "for",
68
+ "path": [0, 0],
69
+ "index": 0,
70
+ "location": {
71
+ "id": "p0",
72
+ "kind": "sink",
73
+ "path": [0, 0],
74
+ "node": "e1"
75
+ }
76
+ },
77
+ {
78
+ "k": "bool",
79
+ "signal": "noLabel",
80
+ "name": "hidden",
81
+ "path": [0, 0],
82
+ "index": 1,
83
+ "location": {
84
+ "id": "p1",
85
+ "kind": "sink",
86
+ "path": [0, 0],
87
+ "node": "e1"
88
+ }
89
+ },
90
+ {
91
+ "k": "text",
92
+ "signal": "label",
93
+ "index": 2,
94
+ "location": {
95
+ "id": "p2",
96
+ "kind": "anchor",
97
+ "path": [
98
+ 0,
99
+ 0,
100
+ 0
101
+ ]
102
+ }
103
+ },
104
+ {
105
+ "k": "text",
106
+ "signal": "requiredMark",
107
+ "index": 3,
108
+ "location": {
109
+ "id": "p3",
110
+ "kind": "anchor",
111
+ "path": [
112
+ 0,
113
+ 0,
114
+ 1,
115
+ 0
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ "k": "attr",
121
+ "signal": "idAttr",
122
+ "name": "id",
123
+ "path": [0, 1],
124
+ "index": 4,
125
+ "location": {
126
+ "id": "p4",
127
+ "kind": "sink",
128
+ "path": [0, 1],
129
+ "node": "e3"
130
+ }
131
+ },
132
+ {
133
+ "k": "class",
134
+ "signal": "inputClass",
135
+ "path": [0, 1],
136
+ "index": 5,
137
+ "location": {
138
+ "id": "p5",
139
+ "kind": "sink",
140
+ "path": [0, 1],
141
+ "node": "e3"
142
+ }
143
+ },
144
+ {
145
+ "k": "attr",
146
+ "signal": "type",
147
+ "name": "type",
148
+ "path": [0, 1],
149
+ "index": 6,
150
+ "location": {
151
+ "id": "p6",
152
+ "kind": "sink",
153
+ "path": [0, 1],
154
+ "node": "e3"
155
+ }
156
+ },
157
+ {
158
+ "k": "attr",
159
+ "signal": "placeholder",
160
+ "name": "placeholder",
161
+ "path": [0, 1],
162
+ "index": 7,
163
+ "location": {
164
+ "id": "p7",
165
+ "kind": "sink",
166
+ "path": [0, 1],
167
+ "node": "e3"
168
+ }
169
+ },
170
+ {
171
+ "k": "prop",
172
+ "signal": "value",
173
+ "name": "value",
174
+ "path": [0, 1],
175
+ "index": 8,
176
+ "location": {
177
+ "id": "p8",
178
+ "kind": "sink",
179
+ "path": [0, 1],
180
+ "node": "e3"
181
+ }
182
+ },
183
+ {
184
+ "k": "attr",
185
+ "signal": "name",
186
+ "name": "name",
187
+ "path": [0, 1],
188
+ "index": 9,
189
+ "location": {
190
+ "id": "p9",
191
+ "kind": "sink",
192
+ "path": [0, 1],
193
+ "node": "e3"
194
+ }
195
+ },
196
+ {
197
+ "k": "bool",
198
+ "signal": "disabled",
199
+ "name": "disabled",
200
+ "path": [0, 1],
201
+ "index": 10,
202
+ "location": {
203
+ "id": "p10",
204
+ "kind": "sink",
205
+ "path": [0, 1],
206
+ "node": "e3"
207
+ }
208
+ },
209
+ {
210
+ "k": "bool",
211
+ "signal": "required",
212
+ "name": "required",
213
+ "path": [0, 1],
214
+ "index": 11,
215
+ "location": {
216
+ "id": "p11",
217
+ "kind": "sink",
218
+ "path": [0, 1],
219
+ "node": "e3"
220
+ }
221
+ },
222
+ {
223
+ "k": "attr",
224
+ "signal": "ariaInvalidAttr",
225
+ "name": "aria-invalid",
226
+ "path": [0, 1],
227
+ "index": 12,
228
+ "location": {
229
+ "id": "p12",
230
+ "kind": "sink",
231
+ "path": [0, 1],
232
+ "node": "e3"
233
+ }
234
+ },
235
+ {
236
+ "k": "attr",
237
+ "signal": "describedByAttr",
238
+ "name": "aria-describedby",
239
+ "path": [0, 1],
240
+ "index": 13,
241
+ "location": {
242
+ "id": "p13",
243
+ "kind": "sink",
244
+ "path": [0, 1],
245
+ "node": "e3"
246
+ }
247
+ },
248
+ {
249
+ "k": "attr",
250
+ "signal": "describedByAttr",
251
+ "name": "aria-errormessage",
252
+ "path": [0, 1],
253
+ "index": 14,
254
+ "location": {
255
+ "id": "p14",
256
+ "kind": "sink",
257
+ "path": [0, 1],
258
+ "node": "e3"
259
+ }
260
+ },
261
+ {
262
+ "k": "event",
263
+ "event": "input",
264
+ "handler": "handleInput",
265
+ "action": {
266
+ "kind": "method",
267
+ "name": "handleInput"
268
+ },
269
+ "path": [0, 1],
270
+ "index": 15,
271
+ "location": {
272
+ "id": "p15",
273
+ "kind": "sink",
274
+ "path": [0, 1],
275
+ "node": "e3"
276
+ }
277
+ },
278
+ {
279
+ "k": "event",
280
+ "event": "change",
281
+ "handler": "handleChange",
282
+ "action": {
283
+ "kind": "method",
284
+ "name": "handleChange"
285
+ },
286
+ "path": [0, 1],
287
+ "index": 16,
288
+ "location": {
289
+ "id": "p16",
290
+ "kind": "sink",
291
+ "path": [0, 1],
292
+ "node": "e3"
293
+ }
294
+ },
295
+ {
296
+ "k": "event",
297
+ "event": "focus",
298
+ "handler": "handleFocus",
299
+ "action": {
300
+ "kind": "method",
301
+ "name": "handleFocus"
302
+ },
303
+ "path": [0, 1],
304
+ "index": 17,
305
+ "location": {
306
+ "id": "p17",
307
+ "kind": "sink",
308
+ "path": [0, 1],
309
+ "node": "e3"
310
+ }
311
+ },
312
+ {
313
+ "k": "event",
314
+ "event": "blur",
315
+ "handler": "handleBlur",
316
+ "action": {
317
+ "kind": "method",
318
+ "name": "handleBlur"
319
+ },
320
+ "path": [0, 1],
321
+ "index": 18,
322
+ "location": {
323
+ "id": "p18",
324
+ "kind": "sink",
325
+ "path": [0, 1],
326
+ "node": "e3"
327
+ }
328
+ },
329
+ {
330
+ "k": "attr",
331
+ "signal": "errorIdAttr",
332
+ "name": "id",
333
+ "path": [0, 2],
334
+ "index": 19,
335
+ "location": {
336
+ "id": "p19",
337
+ "kind": "sink",
338
+ "path": [0, 2],
339
+ "node": "e4"
340
+ }
341
+ },
342
+ {
343
+ "k": "bool",
344
+ "signal": "noError",
345
+ "name": "hidden",
346
+ "path": [0, 2],
347
+ "index": 20,
348
+ "location": {
349
+ "id": "p20",
350
+ "kind": "sink",
351
+ "path": [0, 2],
352
+ "node": "e4"
353
+ }
354
+ },
355
+ {
356
+ "k": "text",
357
+ "signal": "error",
358
+ "index": 21,
359
+ "location": {
360
+ "id": "p21",
361
+ "kind": "anchor",
362
+ "path": [
363
+ 0,
364
+ 2,
365
+ 0
366
+ ]
367
+ }
368
+ }
369
+ ],
370
+ "regions": [],
371
+ "dependencies": [
372
+ {
373
+ "signal": "idAttr",
374
+ "owner": {
375
+ "kind": "part",
376
+ "index": 0
377
+ },
378
+ "location": "p0"
379
+ },
380
+ {
381
+ "signal": "noLabel",
382
+ "owner": {
383
+ "kind": "part",
384
+ "index": 1
385
+ },
386
+ "location": "p1"
387
+ },
388
+ {
389
+ "signal": "label",
390
+ "owner": {
391
+ "kind": "part",
392
+ "index": 2
393
+ },
394
+ "location": "p2"
395
+ },
396
+ {
397
+ "signal": "requiredMark",
398
+ "owner": {
399
+ "kind": "part",
400
+ "index": 3
401
+ },
402
+ "location": "p3"
403
+ },
404
+ {
405
+ "signal": "idAttr",
406
+ "owner": {
407
+ "kind": "part",
408
+ "index": 4
409
+ },
410
+ "location": "p4"
411
+ },
412
+ {
413
+ "signal": "inputClass",
414
+ "owner": {
415
+ "kind": "part",
416
+ "index": 5
417
+ },
418
+ "location": "p5"
419
+ },
420
+ {
421
+ "signal": "type",
422
+ "owner": {
423
+ "kind": "part",
424
+ "index": 6
425
+ },
426
+ "location": "p6"
427
+ },
428
+ {
429
+ "signal": "placeholder",
430
+ "owner": {
431
+ "kind": "part",
432
+ "index": 7
433
+ },
434
+ "location": "p7"
435
+ },
436
+ {
437
+ "signal": "value",
438
+ "owner": {
439
+ "kind": "part",
440
+ "index": 8
441
+ },
442
+ "location": "p8"
443
+ },
444
+ {
445
+ "signal": "name",
446
+ "owner": {
447
+ "kind": "part",
448
+ "index": 9
449
+ },
450
+ "location": "p9"
451
+ },
452
+ {
453
+ "signal": "disabled",
454
+ "owner": {
455
+ "kind": "part",
456
+ "index": 10
457
+ },
458
+ "location": "p10"
459
+ },
460
+ {
461
+ "signal": "required",
462
+ "owner": {
463
+ "kind": "part",
464
+ "index": 11
465
+ },
466
+ "location": "p11"
467
+ },
468
+ {
469
+ "signal": "ariaInvalidAttr",
470
+ "owner": {
471
+ "kind": "part",
472
+ "index": 12
473
+ },
474
+ "location": "p12"
475
+ },
476
+ {
477
+ "signal": "describedByAttr",
478
+ "owner": {
479
+ "kind": "part",
480
+ "index": 13
481
+ },
482
+ "location": "p13"
483
+ },
484
+ {
485
+ "signal": "describedByAttr",
486
+ "owner": {
487
+ "kind": "part",
488
+ "index": 14
489
+ },
490
+ "location": "p14"
491
+ },
492
+ {
493
+ "signal": "errorIdAttr",
494
+ "owner": {
495
+ "kind": "part",
496
+ "index": 19
497
+ },
498
+ "location": "p19"
499
+ },
500
+ {
501
+ "signal": "noError",
502
+ "owner": {
503
+ "kind": "part",
504
+ "index": 20
505
+ },
506
+ "location": "p20"
507
+ },
508
+ {
509
+ "signal": "error",
510
+ "owner": {
511
+ "kind": "part",
512
+ "index": 21
513
+ },
514
+ "location": "p21"
515
+ }
516
+ ],
517
+ "locations": [
518
+ {
519
+ "id": "e0",
520
+ "kind": "element",
521
+ "tag": "div",
522
+ "path": [0]
523
+ },
524
+ {
525
+ "id": "e1",
526
+ "kind": "element",
527
+ "tag": "label",
528
+ "path": [0, 0]
529
+ },
530
+ {
531
+ "id": "p0",
532
+ "kind": "sink",
533
+ "part": 0,
534
+ "node": "e1",
535
+ "path": [0, 0]
536
+ },
537
+ {
538
+ "id": "p1",
539
+ "kind": "sink",
540
+ "part": 1,
541
+ "node": "e1",
542
+ "path": [0, 0]
543
+ },
544
+ {
545
+ "id": "p2",
546
+ "kind": "anchor",
547
+ "part": 2,
548
+ "path": [
549
+ 0,
550
+ 0,
551
+ 0
552
+ ]
553
+ },
554
+ {
555
+ "id": "e2",
556
+ "kind": "element",
557
+ "tag": "span",
558
+ "path": [
559
+ 0,
560
+ 0,
561
+ 1
562
+ ]
563
+ },
564
+ {
565
+ "id": "p3",
566
+ "kind": "anchor",
567
+ "part": 3,
568
+ "path": [
569
+ 0,
570
+ 0,
571
+ 1,
572
+ 0
573
+ ]
574
+ },
575
+ {
576
+ "id": "e3",
577
+ "kind": "element",
578
+ "tag": "input",
579
+ "path": [0, 1]
580
+ },
581
+ {
582
+ "id": "p4",
583
+ "kind": "sink",
584
+ "part": 4,
585
+ "node": "e3",
586
+ "path": [0, 1]
587
+ },
588
+ {
589
+ "id": "p5",
590
+ "kind": "sink",
591
+ "part": 5,
592
+ "node": "e3",
593
+ "path": [0, 1]
594
+ },
595
+ {
596
+ "id": "p6",
597
+ "kind": "sink",
598
+ "part": 6,
599
+ "node": "e3",
600
+ "path": [0, 1]
601
+ },
602
+ {
603
+ "id": "p7",
604
+ "kind": "sink",
605
+ "part": 7,
606
+ "node": "e3",
607
+ "path": [0, 1]
608
+ },
609
+ {
610
+ "id": "p8",
611
+ "kind": "sink",
612
+ "part": 8,
613
+ "node": "e3",
614
+ "path": [0, 1]
615
+ },
616
+ {
617
+ "id": "p9",
618
+ "kind": "sink",
619
+ "part": 9,
620
+ "node": "e3",
621
+ "path": [0, 1]
622
+ },
623
+ {
624
+ "id": "p10",
625
+ "kind": "sink",
626
+ "part": 10,
627
+ "node": "e3",
628
+ "path": [0, 1]
629
+ },
630
+ {
631
+ "id": "p11",
632
+ "kind": "sink",
633
+ "part": 11,
634
+ "node": "e3",
635
+ "path": [0, 1]
636
+ },
637
+ {
638
+ "id": "p12",
639
+ "kind": "sink",
640
+ "part": 12,
641
+ "node": "e3",
642
+ "path": [0, 1]
643
+ },
644
+ {
645
+ "id": "p13",
646
+ "kind": "sink",
647
+ "part": 13,
648
+ "node": "e3",
649
+ "path": [0, 1]
650
+ },
651
+ {
652
+ "id": "p14",
653
+ "kind": "sink",
654
+ "part": 14,
655
+ "node": "e3",
656
+ "path": [0, 1]
657
+ },
658
+ {
659
+ "id": "p15",
660
+ "kind": "sink",
661
+ "part": 15,
662
+ "node": "e3",
663
+ "path": [0, 1]
664
+ },
665
+ {
666
+ "id": "p16",
667
+ "kind": "sink",
668
+ "part": 16,
669
+ "node": "e3",
670
+ "path": [0, 1]
671
+ },
672
+ {
673
+ "id": "p17",
674
+ "kind": "sink",
675
+ "part": 17,
676
+ "node": "e3",
677
+ "path": [0, 1]
678
+ },
679
+ {
680
+ "id": "p18",
681
+ "kind": "sink",
682
+ "part": 18,
683
+ "node": "e3",
684
+ "path": [0, 1]
685
+ },
686
+ {
687
+ "id": "e4",
688
+ "kind": "element",
689
+ "tag": "small",
690
+ "path": [0, 2]
691
+ },
692
+ {
693
+ "id": "p19",
694
+ "kind": "sink",
695
+ "part": 19,
696
+ "node": "e4",
697
+ "path": [0, 2]
698
+ },
699
+ {
700
+ "id": "p20",
701
+ "kind": "sink",
702
+ "part": 20,
703
+ "node": "e4",
704
+ "path": [0, 2]
705
+ },
706
+ {
707
+ "id": "p21",
708
+ "kind": "anchor",
709
+ "part": 21,
710
+ "path": [
711
+ 0,
712
+ 2,
713
+ 0
714
+ ]
715
+ }
716
+ ],
717
+ "metadata": {
718
+ "tag": "open-input",
719
+ "className": "OpenInput",
720
+ "sourceFile": "open-input.tsx",
721
+ "properties": [
722
+ {
723
+ "name": "type",
724
+ "attribute": "type",
725
+ "type": "string",
726
+ "converter": "string",
727
+ "reflect": false,
728
+ "default": "text"
729
+ },
730
+ {
731
+ "name": "placeholder",
732
+ "attribute": "placeholder",
733
+ "type": "string",
734
+ "converter": "string",
735
+ "reflect": false,
736
+ "default": ""
737
+ },
738
+ {
739
+ "name": "label",
740
+ "attribute": "label",
741
+ "type": "string",
742
+ "converter": "string",
743
+ "reflect": false,
744
+ "default": ""
745
+ },
746
+ {
747
+ "name": "name",
748
+ "attribute": "name",
749
+ "type": "string",
750
+ "converter": "string",
751
+ "reflect": false,
752
+ "default": ""
753
+ },
754
+ {
755
+ "name": "value",
756
+ "attribute": "value",
757
+ "type": "string",
758
+ "converter": "string",
759
+ "reflect": false,
760
+ "default": ""
761
+ },
762
+ {
763
+ "name": "disabled",
764
+ "attribute": "disabled",
765
+ "type": "boolean",
766
+ "converter": "boolean",
767
+ "reflect": false,
768
+ "default": false
769
+ },
770
+ {
771
+ "name": "required",
772
+ "attribute": "required",
773
+ "type": "boolean",
774
+ "converter": "boolean",
775
+ "reflect": false,
776
+ "default": false
777
+ },
778
+ {
779
+ "name": "error",
780
+ "attribute": "error",
781
+ "type": "string",
782
+ "converter": "string",
783
+ "reflect": false,
784
+ "default": ""
785
+ },
786
+ {
787
+ "name": "inputId",
788
+ "attribute": null,
789
+ "type": "string",
790
+ "converter": "string",
791
+ "reflect": false,
792
+ "default": ""
793
+ },
794
+ {
795
+ "name": "noLabel",
796
+ "attribute": null,
797
+ "type": "boolean",
798
+ "converter": "boolean",
799
+ "reflect": false,
800
+ "default": null,
801
+ "computed": true,
802
+ "deps": ["label"]
803
+ },
804
+ {
805
+ "name": "noError",
806
+ "attribute": null,
807
+ "type": "boolean",
808
+ "converter": "boolean",
809
+ "reflect": false,
810
+ "default": null,
811
+ "computed": true,
812
+ "deps": ["error"]
813
+ },
814
+ {
815
+ "name": "inputClass",
816
+ "attribute": null,
817
+ "type": "string",
818
+ "converter": "string",
819
+ "reflect": false,
820
+ "default": null,
821
+ "computed": true,
822
+ "deps": ["error"]
823
+ },
824
+ {
825
+ "name": "idAttr",
826
+ "attribute": null,
827
+ "type": "string",
828
+ "converter": "string",
829
+ "reflect": false,
830
+ "default": null,
831
+ "computed": true,
832
+ "deps": ["inputId"]
833
+ },
834
+ {
835
+ "name": "errorIdAttr",
836
+ "attribute": null,
837
+ "type": "string",
838
+ "converter": "string",
839
+ "reflect": false,
840
+ "default": null,
841
+ "computed": true,
842
+ "deps": ["inputId"]
843
+ },
844
+ {
845
+ "name": "ariaInvalidAttr",
846
+ "attribute": null,
847
+ "type": "string",
848
+ "converter": "string",
849
+ "reflect": false,
850
+ "default": null,
851
+ "computed": true,
852
+ "deps": ["error"]
853
+ },
854
+ {
855
+ "name": "requiredMark",
856
+ "attribute": null,
857
+ "type": "string",
858
+ "converter": "string",
859
+ "reflect": false,
860
+ "default": null,
861
+ "computed": true,
862
+ "deps": ["required"]
863
+ },
864
+ {
865
+ "name": "describedByAttr",
866
+ "attribute": null,
867
+ "type": "string",
868
+ "converter": "string",
869
+ "reflect": false,
870
+ "default": null,
871
+ "computed": true,
872
+ "deps": ["error", "inputId"]
873
+ }
874
+ ],
875
+ "observedAttributes": [
876
+ "type",
877
+ "placeholder",
878
+ "label",
879
+ "name",
880
+ "value",
881
+ "disabled",
882
+ "required",
883
+ "error"
884
+ ],
885
+ "cem": {
886
+ "tagName": "open-input",
887
+ "className": "OpenInput",
888
+ "declaration": {
889
+ "name": "OpenInput",
890
+ "module": "open-input.tsx"
891
+ },
892
+ "attributes": [
893
+ {
894
+ "name": "type",
895
+ "fieldName": "type",
896
+ "type": "string",
897
+ "reflect": false
898
+ },
899
+ {
900
+ "name": "placeholder",
901
+ "fieldName": "placeholder",
902
+ "type": "string",
903
+ "reflect": false
904
+ },
905
+ {
906
+ "name": "label",
907
+ "fieldName": "label",
908
+ "type": "string",
909
+ "reflect": false
910
+ },
911
+ {
912
+ "name": "name",
913
+ "fieldName": "name",
914
+ "type": "string",
915
+ "reflect": false
916
+ },
917
+ {
918
+ "name": "value",
919
+ "fieldName": "value",
920
+ "type": "string",
921
+ "reflect": false
922
+ },
923
+ {
924
+ "name": "disabled",
925
+ "fieldName": "disabled",
926
+ "type": "boolean",
927
+ "reflect": false
928
+ },
929
+ {
930
+ "name": "required",
931
+ "fieldName": "required",
932
+ "type": "boolean",
933
+ "reflect": false
934
+ },
935
+ {
936
+ "name": "error",
937
+ "fieldName": "error",
938
+ "type": "string",
939
+ "reflect": false
940
+ }
941
+ ],
942
+ "members": [
943
+ {
944
+ "name": "type",
945
+ "fieldName": "type",
946
+ "type": "string",
947
+ "attribute": "type",
948
+ "reflect": false
949
+ },
950
+ {
951
+ "name": "placeholder",
952
+ "fieldName": "placeholder",
953
+ "type": "string",
954
+ "attribute": "placeholder",
955
+ "reflect": false
956
+ },
957
+ {
958
+ "name": "label",
959
+ "fieldName": "label",
960
+ "type": "string",
961
+ "attribute": "label",
962
+ "reflect": false
963
+ },
964
+ {
965
+ "name": "name",
966
+ "fieldName": "name",
967
+ "type": "string",
968
+ "attribute": "name",
969
+ "reflect": false
970
+ },
971
+ {
972
+ "name": "value",
973
+ "fieldName": "value",
974
+ "type": "string",
975
+ "attribute": "value",
976
+ "reflect": false
977
+ },
978
+ {
979
+ "name": "disabled",
980
+ "fieldName": "disabled",
981
+ "type": "boolean",
982
+ "attribute": "disabled",
983
+ "reflect": false
984
+ },
985
+ {
986
+ "name": "required",
987
+ "fieldName": "required",
988
+ "type": "boolean",
989
+ "attribute": "required",
990
+ "reflect": false
991
+ },
992
+ {
993
+ "name": "error",
994
+ "fieldName": "error",
995
+ "type": "string",
996
+ "attribute": "error",
997
+ "reflect": false
998
+ },
999
+ {
1000
+ "name": "inputId",
1001
+ "fieldName": "inputId",
1002
+ "type": "string",
1003
+ "attribute": null,
1004
+ "reflect": false
1005
+ },
1006
+ {
1007
+ "name": "noLabel",
1008
+ "fieldName": "noLabel",
1009
+ "type": "boolean",
1010
+ "attribute": null,
1011
+ "reflect": false
1012
+ },
1013
+ {
1014
+ "name": "noError",
1015
+ "fieldName": "noError",
1016
+ "type": "boolean",
1017
+ "attribute": null,
1018
+ "reflect": false
1019
+ },
1020
+ {
1021
+ "name": "inputClass",
1022
+ "fieldName": "inputClass",
1023
+ "type": "string",
1024
+ "attribute": null,
1025
+ "reflect": false
1026
+ },
1027
+ {
1028
+ "name": "idAttr",
1029
+ "fieldName": "idAttr",
1030
+ "type": "string",
1031
+ "attribute": null,
1032
+ "reflect": false
1033
+ },
1034
+ {
1035
+ "name": "errorIdAttr",
1036
+ "fieldName": "errorIdAttr",
1037
+ "type": "string",
1038
+ "attribute": null,
1039
+ "reflect": false
1040
+ },
1041
+ {
1042
+ "name": "ariaInvalidAttr",
1043
+ "fieldName": "ariaInvalidAttr",
1044
+ "type": "string",
1045
+ "attribute": null,
1046
+ "reflect": false
1047
+ },
1048
+ {
1049
+ "name": "requiredMark",
1050
+ "fieldName": "requiredMark",
1051
+ "type": "string",
1052
+ "attribute": null,
1053
+ "reflect": false
1054
+ },
1055
+ {
1056
+ "name": "describedByAttr",
1057
+ "fieldName": "describedByAttr",
1058
+ "type": "string",
1059
+ "attribute": null,
1060
+ "reflect": false
1061
+ }
1062
+ ]
1063
+ }
1064
+ }
1308
1065
  };
1309
1066
  const __compiledProperties = [
1310
- {
1311
- "name": "type",
1312
- "attribute": "type",
1313
- "type": "string",
1314
- "converter": "string",
1315
- "reflect": false,
1316
- "default": "text"
1317
- },
1318
- {
1319
- "name": "placeholder",
1320
- "attribute": "placeholder",
1321
- "type": "string",
1322
- "converter": "string",
1323
- "reflect": false,
1324
- "default": ""
1325
- },
1326
- {
1327
- "name": "label",
1328
- "attribute": "label",
1329
- "type": "string",
1330
- "converter": "string",
1331
- "reflect": false,
1332
- "default": ""
1333
- },
1334
- {
1335
- "name": "name",
1336
- "attribute": "name",
1337
- "type": "string",
1338
- "converter": "string",
1339
- "reflect": false,
1340
- "default": ""
1341
- },
1342
- {
1343
- "name": "value",
1344
- "attribute": "value",
1345
- "type": "string",
1346
- "converter": "string",
1347
- "reflect": false,
1348
- "default": ""
1349
- },
1350
- {
1351
- "name": "disabled",
1352
- "attribute": "disabled",
1353
- "type": "boolean",
1354
- "converter": "boolean",
1355
- "reflect": false,
1356
- "default": false
1357
- },
1358
- {
1359
- "name": "required",
1360
- "attribute": "required",
1361
- "type": "boolean",
1362
- "converter": "boolean",
1363
- "reflect": false,
1364
- "default": false
1365
- },
1366
- {
1367
- "name": "error",
1368
- "attribute": "error",
1369
- "type": "string",
1370
- "converter": "string",
1371
- "reflect": false,
1372
- "default": ""
1373
- },
1374
- {
1375
- "name": "inputId",
1376
- "attribute": null,
1377
- "type": "string",
1378
- "converter": "string",
1379
- "reflect": false,
1380
- "default": ""
1381
- },
1382
- {
1383
- "name": "noLabel",
1384
- "attribute": null,
1385
- "type": "boolean",
1386
- "converter": "boolean",
1387
- "reflect": false,
1388
- "default": null,
1389
- "computed": true,
1390
- "deps": [
1391
- "label"
1392
- ]
1393
- },
1394
- {
1395
- "name": "noError",
1396
- "attribute": null,
1397
- "type": "boolean",
1398
- "converter": "boolean",
1399
- "reflect": false,
1400
- "default": null,
1401
- "computed": true,
1402
- "deps": [
1403
- "error"
1404
- ]
1405
- },
1406
- {
1407
- "name": "inputClass",
1408
- "attribute": null,
1409
- "type": "string",
1410
- "converter": "string",
1411
- "reflect": false,
1412
- "default": null,
1413
- "computed": true,
1414
- "deps": [
1415
- "error"
1416
- ]
1417
- },
1418
- {
1419
- "name": "idAttr",
1420
- "attribute": null,
1421
- "type": "string",
1422
- "converter": "string",
1423
- "reflect": false,
1424
- "default": null,
1425
- "computed": true,
1426
- "deps": [
1427
- "inputId"
1428
- ]
1429
- },
1430
- {
1431
- "name": "errorIdAttr",
1432
- "attribute": null,
1433
- "type": "string",
1434
- "converter": "string",
1435
- "reflect": false,
1436
- "default": null,
1437
- "computed": true,
1438
- "deps": [
1439
- "inputId"
1440
- ]
1441
- },
1442
- {
1443
- "name": "ariaInvalidAttr",
1444
- "attribute": null,
1445
- "type": "string",
1446
- "converter": "string",
1447
- "reflect": false,
1448
- "default": null,
1449
- "computed": true,
1450
- "deps": [
1451
- "error"
1452
- ]
1453
- },
1454
- {
1455
- "name": "requiredMark",
1456
- "attribute": null,
1457
- "type": "string",
1458
- "converter": "string",
1459
- "reflect": false,
1460
- "default": null,
1461
- "computed": true,
1462
- "deps": [
1463
- "required"
1464
- ]
1465
- },
1466
- {
1467
- "name": "describedByAttr",
1468
- "attribute": null,
1469
- "type": "string",
1470
- "converter": "string",
1471
- "reflect": false,
1472
- "default": null,
1473
- "computed": true,
1474
- "deps": [
1475
- "error",
1476
- "inputId"
1477
- ]
1478
- }
1067
+ {
1068
+ "name": "type",
1069
+ "attribute": "type",
1070
+ "type": "string",
1071
+ "converter": "string",
1072
+ "reflect": false,
1073
+ "default": "text"
1074
+ },
1075
+ {
1076
+ "name": "placeholder",
1077
+ "attribute": "placeholder",
1078
+ "type": "string",
1079
+ "converter": "string",
1080
+ "reflect": false,
1081
+ "default": ""
1082
+ },
1083
+ {
1084
+ "name": "label",
1085
+ "attribute": "label",
1086
+ "type": "string",
1087
+ "converter": "string",
1088
+ "reflect": false,
1089
+ "default": ""
1090
+ },
1091
+ {
1092
+ "name": "name",
1093
+ "attribute": "name",
1094
+ "type": "string",
1095
+ "converter": "string",
1096
+ "reflect": false,
1097
+ "default": ""
1098
+ },
1099
+ {
1100
+ "name": "value",
1101
+ "attribute": "value",
1102
+ "type": "string",
1103
+ "converter": "string",
1104
+ "reflect": false,
1105
+ "default": ""
1106
+ },
1107
+ {
1108
+ "name": "disabled",
1109
+ "attribute": "disabled",
1110
+ "type": "boolean",
1111
+ "converter": "boolean",
1112
+ "reflect": false,
1113
+ "default": false
1114
+ },
1115
+ {
1116
+ "name": "required",
1117
+ "attribute": "required",
1118
+ "type": "boolean",
1119
+ "converter": "boolean",
1120
+ "reflect": false,
1121
+ "default": false
1122
+ },
1123
+ {
1124
+ "name": "error",
1125
+ "attribute": "error",
1126
+ "type": "string",
1127
+ "converter": "string",
1128
+ "reflect": false,
1129
+ "default": ""
1130
+ },
1131
+ {
1132
+ "name": "inputId",
1133
+ "attribute": null,
1134
+ "type": "string",
1135
+ "converter": "string",
1136
+ "reflect": false,
1137
+ "default": ""
1138
+ },
1139
+ {
1140
+ "name": "noLabel",
1141
+ "attribute": null,
1142
+ "type": "boolean",
1143
+ "converter": "boolean",
1144
+ "reflect": false,
1145
+ "default": null,
1146
+ "computed": true,
1147
+ "deps": ["label"]
1148
+ },
1149
+ {
1150
+ "name": "noError",
1151
+ "attribute": null,
1152
+ "type": "boolean",
1153
+ "converter": "boolean",
1154
+ "reflect": false,
1155
+ "default": null,
1156
+ "computed": true,
1157
+ "deps": ["error"]
1158
+ },
1159
+ {
1160
+ "name": "inputClass",
1161
+ "attribute": null,
1162
+ "type": "string",
1163
+ "converter": "string",
1164
+ "reflect": false,
1165
+ "default": null,
1166
+ "computed": true,
1167
+ "deps": ["error"]
1168
+ },
1169
+ {
1170
+ "name": "idAttr",
1171
+ "attribute": null,
1172
+ "type": "string",
1173
+ "converter": "string",
1174
+ "reflect": false,
1175
+ "default": null,
1176
+ "computed": true,
1177
+ "deps": ["inputId"]
1178
+ },
1179
+ {
1180
+ "name": "errorIdAttr",
1181
+ "attribute": null,
1182
+ "type": "string",
1183
+ "converter": "string",
1184
+ "reflect": false,
1185
+ "default": null,
1186
+ "computed": true,
1187
+ "deps": ["inputId"]
1188
+ },
1189
+ {
1190
+ "name": "ariaInvalidAttr",
1191
+ "attribute": null,
1192
+ "type": "string",
1193
+ "converter": "string",
1194
+ "reflect": false,
1195
+ "default": null,
1196
+ "computed": true,
1197
+ "deps": ["error"]
1198
+ },
1199
+ {
1200
+ "name": "requiredMark",
1201
+ "attribute": null,
1202
+ "type": "string",
1203
+ "converter": "string",
1204
+ "reflect": false,
1205
+ "default": null,
1206
+ "computed": true,
1207
+ "deps": ["required"]
1208
+ },
1209
+ {
1210
+ "name": "describedByAttr",
1211
+ "attribute": null,
1212
+ "type": "string",
1213
+ "converter": "string",
1214
+ "reflect": false,
1215
+ "default": null,
1216
+ "computed": true,
1217
+ "deps": ["error", "inputId"]
1218
+ }
1479
1219
  ];
1480
1220
  const __elementMetadata = {
1481
- "tag": "open-input",
1482
- "className": "OpenInput",
1483
- "sourceFile": "open-input.tsx",
1484
- "properties": [
1485
- {
1486
- "name": "type",
1487
- "attribute": "type",
1488
- "type": "string",
1489
- "converter": "string",
1490
- "reflect": false,
1491
- "default": "text"
1492
- },
1493
- {
1494
- "name": "placeholder",
1495
- "attribute": "placeholder",
1496
- "type": "string",
1497
- "converter": "string",
1498
- "reflect": false,
1499
- "default": ""
1500
- },
1501
- {
1502
- "name": "label",
1503
- "attribute": "label",
1504
- "type": "string",
1505
- "converter": "string",
1506
- "reflect": false,
1507
- "default": ""
1508
- },
1509
- {
1510
- "name": "name",
1511
- "attribute": "name",
1512
- "type": "string",
1513
- "converter": "string",
1514
- "reflect": false,
1515
- "default": ""
1516
- },
1517
- {
1518
- "name": "value",
1519
- "attribute": "value",
1520
- "type": "string",
1521
- "converter": "string",
1522
- "reflect": false,
1523
- "default": ""
1524
- },
1525
- {
1526
- "name": "disabled",
1527
- "attribute": "disabled",
1528
- "type": "boolean",
1529
- "converter": "boolean",
1530
- "reflect": false,
1531
- "default": false
1532
- },
1533
- {
1534
- "name": "required",
1535
- "attribute": "required",
1536
- "type": "boolean",
1537
- "converter": "boolean",
1538
- "reflect": false,
1539
- "default": false
1540
- },
1541
- {
1542
- "name": "error",
1543
- "attribute": "error",
1544
- "type": "string",
1545
- "converter": "string",
1546
- "reflect": false,
1547
- "default": ""
1548
- },
1549
- {
1550
- "name": "inputId",
1551
- "attribute": null,
1552
- "type": "string",
1553
- "converter": "string",
1554
- "reflect": false,
1555
- "default": ""
1556
- },
1557
- {
1558
- "name": "noLabel",
1559
- "attribute": null,
1560
- "type": "boolean",
1561
- "converter": "boolean",
1562
- "reflect": false,
1563
- "default": null,
1564
- "computed": true,
1565
- "deps": [
1566
- "label"
1567
- ]
1568
- },
1569
- {
1570
- "name": "noError",
1571
- "attribute": null,
1572
- "type": "boolean",
1573
- "converter": "boolean",
1574
- "reflect": false,
1575
- "default": null,
1576
- "computed": true,
1577
- "deps": [
1578
- "error"
1579
- ]
1580
- },
1581
- {
1582
- "name": "inputClass",
1583
- "attribute": null,
1584
- "type": "string",
1585
- "converter": "string",
1586
- "reflect": false,
1587
- "default": null,
1588
- "computed": true,
1589
- "deps": [
1590
- "error"
1591
- ]
1592
- },
1593
- {
1594
- "name": "idAttr",
1595
- "attribute": null,
1596
- "type": "string",
1597
- "converter": "string",
1598
- "reflect": false,
1599
- "default": null,
1600
- "computed": true,
1601
- "deps": [
1602
- "inputId"
1603
- ]
1604
- },
1605
- {
1606
- "name": "errorIdAttr",
1607
- "attribute": null,
1608
- "type": "string",
1609
- "converter": "string",
1610
- "reflect": false,
1611
- "default": null,
1612
- "computed": true,
1613
- "deps": [
1614
- "inputId"
1615
- ]
1616
- },
1617
- {
1618
- "name": "ariaInvalidAttr",
1619
- "attribute": null,
1620
- "type": "string",
1621
- "converter": "string",
1622
- "reflect": false,
1623
- "default": null,
1624
- "computed": true,
1625
- "deps": [
1626
- "error"
1627
- ]
1628
- },
1629
- {
1630
- "name": "requiredMark",
1631
- "attribute": null,
1632
- "type": "string",
1633
- "converter": "string",
1634
- "reflect": false,
1635
- "default": null,
1636
- "computed": true,
1637
- "deps": [
1638
- "required"
1639
- ]
1640
- },
1641
- {
1642
- "name": "describedByAttr",
1643
- "attribute": null,
1644
- "type": "string",
1645
- "converter": "string",
1646
- "reflect": false,
1647
- "default": null,
1648
- "computed": true,
1649
- "deps": [
1650
- "error",
1651
- "inputId"
1652
- ]
1653
- }
1654
- ],
1655
- "observedAttributes": [
1656
- "type",
1657
- "placeholder",
1658
- "label",
1659
- "name",
1660
- "value",
1661
- "disabled",
1662
- "required",
1663
- "error"
1664
- ],
1665
- "cem": {
1666
- "tagName": "open-input",
1667
- "className": "OpenInput",
1668
- "declaration": {
1669
- "name": "OpenInput",
1670
- "module": "open-input.tsx"
1671
- },
1672
- "attributes": [
1673
- {
1674
- "name": "type",
1675
- "fieldName": "type",
1676
- "type": "string",
1677
- "reflect": false
1678
- },
1679
- {
1680
- "name": "placeholder",
1681
- "fieldName": "placeholder",
1682
- "type": "string",
1683
- "reflect": false
1684
- },
1685
- {
1686
- "name": "label",
1687
- "fieldName": "label",
1688
- "type": "string",
1689
- "reflect": false
1690
- },
1691
- {
1692
- "name": "name",
1693
- "fieldName": "name",
1694
- "type": "string",
1695
- "reflect": false
1696
- },
1697
- {
1698
- "name": "value",
1699
- "fieldName": "value",
1700
- "type": "string",
1701
- "reflect": false
1702
- },
1703
- {
1704
- "name": "disabled",
1705
- "fieldName": "disabled",
1706
- "type": "boolean",
1707
- "reflect": false
1708
- },
1709
- {
1710
- "name": "required",
1711
- "fieldName": "required",
1712
- "type": "boolean",
1713
- "reflect": false
1714
- },
1715
- {
1716
- "name": "error",
1717
- "fieldName": "error",
1718
- "type": "string",
1719
- "reflect": false
1720
- }
1721
- ],
1722
- "members": [
1723
- {
1724
- "name": "type",
1725
- "fieldName": "type",
1726
- "type": "string",
1727
- "attribute": "type",
1728
- "reflect": false
1729
- },
1730
- {
1731
- "name": "placeholder",
1732
- "fieldName": "placeholder",
1733
- "type": "string",
1734
- "attribute": "placeholder",
1735
- "reflect": false
1736
- },
1737
- {
1738
- "name": "label",
1739
- "fieldName": "label",
1740
- "type": "string",
1741
- "attribute": "label",
1742
- "reflect": false
1743
- },
1744
- {
1745
- "name": "name",
1746
- "fieldName": "name",
1747
- "type": "string",
1748
- "attribute": "name",
1749
- "reflect": false
1750
- },
1751
- {
1752
- "name": "value",
1753
- "fieldName": "value",
1754
- "type": "string",
1755
- "attribute": "value",
1756
- "reflect": false
1757
- },
1758
- {
1759
- "name": "disabled",
1760
- "fieldName": "disabled",
1761
- "type": "boolean",
1762
- "attribute": "disabled",
1763
- "reflect": false
1764
- },
1765
- {
1766
- "name": "required",
1767
- "fieldName": "required",
1768
- "type": "boolean",
1769
- "attribute": "required",
1770
- "reflect": false
1771
- },
1772
- {
1773
- "name": "error",
1774
- "fieldName": "error",
1775
- "type": "string",
1776
- "attribute": "error",
1777
- "reflect": false
1778
- },
1779
- {
1780
- "name": "inputId",
1781
- "fieldName": "inputId",
1782
- "type": "string",
1783
- "attribute": null,
1784
- "reflect": false
1785
- },
1786
- {
1787
- "name": "noLabel",
1788
- "fieldName": "noLabel",
1789
- "type": "boolean",
1790
- "attribute": null,
1791
- "reflect": false
1792
- },
1793
- {
1794
- "name": "noError",
1795
- "fieldName": "noError",
1796
- "type": "boolean",
1797
- "attribute": null,
1798
- "reflect": false
1799
- },
1800
- {
1801
- "name": "inputClass",
1802
- "fieldName": "inputClass",
1803
- "type": "string",
1804
- "attribute": null,
1805
- "reflect": false
1806
- },
1807
- {
1808
- "name": "idAttr",
1809
- "fieldName": "idAttr",
1810
- "type": "string",
1811
- "attribute": null,
1812
- "reflect": false
1813
- },
1814
- {
1815
- "name": "errorIdAttr",
1816
- "fieldName": "errorIdAttr",
1817
- "type": "string",
1818
- "attribute": null,
1819
- "reflect": false
1820
- },
1821
- {
1822
- "name": "ariaInvalidAttr",
1823
- "fieldName": "ariaInvalidAttr",
1824
- "type": "string",
1825
- "attribute": null,
1826
- "reflect": false
1827
- },
1828
- {
1829
- "name": "requiredMark",
1830
- "fieldName": "requiredMark",
1831
- "type": "string",
1832
- "attribute": null,
1833
- "reflect": false
1834
- },
1835
- {
1836
- "name": "describedByAttr",
1837
- "fieldName": "describedByAttr",
1838
- "type": "string",
1839
- "attribute": null,
1840
- "reflect": false
1841
- }
1842
- ]
1843
- }
1221
+ "tag": "open-input",
1222
+ "className": "OpenInput",
1223
+ "sourceFile": "open-input.tsx",
1224
+ "properties": [
1225
+ {
1226
+ "name": "type",
1227
+ "attribute": "type",
1228
+ "type": "string",
1229
+ "converter": "string",
1230
+ "reflect": false,
1231
+ "default": "text"
1232
+ },
1233
+ {
1234
+ "name": "placeholder",
1235
+ "attribute": "placeholder",
1236
+ "type": "string",
1237
+ "converter": "string",
1238
+ "reflect": false,
1239
+ "default": ""
1240
+ },
1241
+ {
1242
+ "name": "label",
1243
+ "attribute": "label",
1244
+ "type": "string",
1245
+ "converter": "string",
1246
+ "reflect": false,
1247
+ "default": ""
1248
+ },
1249
+ {
1250
+ "name": "name",
1251
+ "attribute": "name",
1252
+ "type": "string",
1253
+ "converter": "string",
1254
+ "reflect": false,
1255
+ "default": ""
1256
+ },
1257
+ {
1258
+ "name": "value",
1259
+ "attribute": "value",
1260
+ "type": "string",
1261
+ "converter": "string",
1262
+ "reflect": false,
1263
+ "default": ""
1264
+ },
1265
+ {
1266
+ "name": "disabled",
1267
+ "attribute": "disabled",
1268
+ "type": "boolean",
1269
+ "converter": "boolean",
1270
+ "reflect": false,
1271
+ "default": false
1272
+ },
1273
+ {
1274
+ "name": "required",
1275
+ "attribute": "required",
1276
+ "type": "boolean",
1277
+ "converter": "boolean",
1278
+ "reflect": false,
1279
+ "default": false
1280
+ },
1281
+ {
1282
+ "name": "error",
1283
+ "attribute": "error",
1284
+ "type": "string",
1285
+ "converter": "string",
1286
+ "reflect": false,
1287
+ "default": ""
1288
+ },
1289
+ {
1290
+ "name": "inputId",
1291
+ "attribute": null,
1292
+ "type": "string",
1293
+ "converter": "string",
1294
+ "reflect": false,
1295
+ "default": ""
1296
+ },
1297
+ {
1298
+ "name": "noLabel",
1299
+ "attribute": null,
1300
+ "type": "boolean",
1301
+ "converter": "boolean",
1302
+ "reflect": false,
1303
+ "default": null,
1304
+ "computed": true,
1305
+ "deps": ["label"]
1306
+ },
1307
+ {
1308
+ "name": "noError",
1309
+ "attribute": null,
1310
+ "type": "boolean",
1311
+ "converter": "boolean",
1312
+ "reflect": false,
1313
+ "default": null,
1314
+ "computed": true,
1315
+ "deps": ["error"]
1316
+ },
1317
+ {
1318
+ "name": "inputClass",
1319
+ "attribute": null,
1320
+ "type": "string",
1321
+ "converter": "string",
1322
+ "reflect": false,
1323
+ "default": null,
1324
+ "computed": true,
1325
+ "deps": ["error"]
1326
+ },
1327
+ {
1328
+ "name": "idAttr",
1329
+ "attribute": null,
1330
+ "type": "string",
1331
+ "converter": "string",
1332
+ "reflect": false,
1333
+ "default": null,
1334
+ "computed": true,
1335
+ "deps": ["inputId"]
1336
+ },
1337
+ {
1338
+ "name": "errorIdAttr",
1339
+ "attribute": null,
1340
+ "type": "string",
1341
+ "converter": "string",
1342
+ "reflect": false,
1343
+ "default": null,
1344
+ "computed": true,
1345
+ "deps": ["inputId"]
1346
+ },
1347
+ {
1348
+ "name": "ariaInvalidAttr",
1349
+ "attribute": null,
1350
+ "type": "string",
1351
+ "converter": "string",
1352
+ "reflect": false,
1353
+ "default": null,
1354
+ "computed": true,
1355
+ "deps": ["error"]
1356
+ },
1357
+ {
1358
+ "name": "requiredMark",
1359
+ "attribute": null,
1360
+ "type": "string",
1361
+ "converter": "string",
1362
+ "reflect": false,
1363
+ "default": null,
1364
+ "computed": true,
1365
+ "deps": ["required"]
1366
+ },
1367
+ {
1368
+ "name": "describedByAttr",
1369
+ "attribute": null,
1370
+ "type": "string",
1371
+ "converter": "string",
1372
+ "reflect": false,
1373
+ "default": null,
1374
+ "computed": true,
1375
+ "deps": ["error", "inputId"]
1376
+ }
1377
+ ],
1378
+ "observedAttributes": [
1379
+ "type",
1380
+ "placeholder",
1381
+ "label",
1382
+ "name",
1383
+ "value",
1384
+ "disabled",
1385
+ "required",
1386
+ "error"
1387
+ ],
1388
+ "cem": {
1389
+ "tagName": "open-input",
1390
+ "className": "OpenInput",
1391
+ "declaration": {
1392
+ "name": "OpenInput",
1393
+ "module": "open-input.tsx"
1394
+ },
1395
+ "attributes": [
1396
+ {
1397
+ "name": "type",
1398
+ "fieldName": "type",
1399
+ "type": "string",
1400
+ "reflect": false
1401
+ },
1402
+ {
1403
+ "name": "placeholder",
1404
+ "fieldName": "placeholder",
1405
+ "type": "string",
1406
+ "reflect": false
1407
+ },
1408
+ {
1409
+ "name": "label",
1410
+ "fieldName": "label",
1411
+ "type": "string",
1412
+ "reflect": false
1413
+ },
1414
+ {
1415
+ "name": "name",
1416
+ "fieldName": "name",
1417
+ "type": "string",
1418
+ "reflect": false
1419
+ },
1420
+ {
1421
+ "name": "value",
1422
+ "fieldName": "value",
1423
+ "type": "string",
1424
+ "reflect": false
1425
+ },
1426
+ {
1427
+ "name": "disabled",
1428
+ "fieldName": "disabled",
1429
+ "type": "boolean",
1430
+ "reflect": false
1431
+ },
1432
+ {
1433
+ "name": "required",
1434
+ "fieldName": "required",
1435
+ "type": "boolean",
1436
+ "reflect": false
1437
+ },
1438
+ {
1439
+ "name": "error",
1440
+ "fieldName": "error",
1441
+ "type": "string",
1442
+ "reflect": false
1443
+ }
1444
+ ],
1445
+ "members": [
1446
+ {
1447
+ "name": "type",
1448
+ "fieldName": "type",
1449
+ "type": "string",
1450
+ "attribute": "type",
1451
+ "reflect": false
1452
+ },
1453
+ {
1454
+ "name": "placeholder",
1455
+ "fieldName": "placeholder",
1456
+ "type": "string",
1457
+ "attribute": "placeholder",
1458
+ "reflect": false
1459
+ },
1460
+ {
1461
+ "name": "label",
1462
+ "fieldName": "label",
1463
+ "type": "string",
1464
+ "attribute": "label",
1465
+ "reflect": false
1466
+ },
1467
+ {
1468
+ "name": "name",
1469
+ "fieldName": "name",
1470
+ "type": "string",
1471
+ "attribute": "name",
1472
+ "reflect": false
1473
+ },
1474
+ {
1475
+ "name": "value",
1476
+ "fieldName": "value",
1477
+ "type": "string",
1478
+ "attribute": "value",
1479
+ "reflect": false
1480
+ },
1481
+ {
1482
+ "name": "disabled",
1483
+ "fieldName": "disabled",
1484
+ "type": "boolean",
1485
+ "attribute": "disabled",
1486
+ "reflect": false
1487
+ },
1488
+ {
1489
+ "name": "required",
1490
+ "fieldName": "required",
1491
+ "type": "boolean",
1492
+ "attribute": "required",
1493
+ "reflect": false
1494
+ },
1495
+ {
1496
+ "name": "error",
1497
+ "fieldName": "error",
1498
+ "type": "string",
1499
+ "attribute": "error",
1500
+ "reflect": false
1501
+ },
1502
+ {
1503
+ "name": "inputId",
1504
+ "fieldName": "inputId",
1505
+ "type": "string",
1506
+ "attribute": null,
1507
+ "reflect": false
1508
+ },
1509
+ {
1510
+ "name": "noLabel",
1511
+ "fieldName": "noLabel",
1512
+ "type": "boolean",
1513
+ "attribute": null,
1514
+ "reflect": false
1515
+ },
1516
+ {
1517
+ "name": "noError",
1518
+ "fieldName": "noError",
1519
+ "type": "boolean",
1520
+ "attribute": null,
1521
+ "reflect": false
1522
+ },
1523
+ {
1524
+ "name": "inputClass",
1525
+ "fieldName": "inputClass",
1526
+ "type": "string",
1527
+ "attribute": null,
1528
+ "reflect": false
1529
+ },
1530
+ {
1531
+ "name": "idAttr",
1532
+ "fieldName": "idAttr",
1533
+ "type": "string",
1534
+ "attribute": null,
1535
+ "reflect": false
1536
+ },
1537
+ {
1538
+ "name": "errorIdAttr",
1539
+ "fieldName": "errorIdAttr",
1540
+ "type": "string",
1541
+ "attribute": null,
1542
+ "reflect": false
1543
+ },
1544
+ {
1545
+ "name": "ariaInvalidAttr",
1546
+ "fieldName": "ariaInvalidAttr",
1547
+ "type": "string",
1548
+ "attribute": null,
1549
+ "reflect": false
1550
+ },
1551
+ {
1552
+ "name": "requiredMark",
1553
+ "fieldName": "requiredMark",
1554
+ "type": "string",
1555
+ "attribute": null,
1556
+ "reflect": false
1557
+ },
1558
+ {
1559
+ "name": "describedByAttr",
1560
+ "fieldName": "describedByAttr",
1561
+ "type": "string",
1562
+ "attribute": null,
1563
+ "reflect": false
1564
+ }
1565
+ ]
1566
+ }
1844
1567
  };
1845
1568
  const __observedAttributes = [
1846
- "type",
1847
- "placeholder",
1848
- "label",
1849
- "name",
1850
- "value",
1851
- "disabled",
1852
- "required",
1853
- "error"
1569
+ "type",
1570
+ "placeholder",
1571
+ "label",
1572
+ "name",
1573
+ "value",
1574
+ "disabled",
1575
+ "required",
1576
+ "error"
1854
1577
  ];
1855
1578
  const __compiledProps = {
1856
- type: {
1857
- type: String,
1858
- default: 'text',
1859
- reflect: false,
1860
- attribute: "type"
1861
- },
1862
- placeholder: {
1863
- type: String,
1864
- default: '',
1865
- reflect: false,
1866
- attribute: "placeholder"
1867
- },
1868
- label: {
1869
- type: String,
1870
- default: '',
1871
- reflect: false,
1872
- attribute: "label"
1873
- },
1874
- name: {
1875
- type: String,
1876
- default: '',
1877
- reflect: false,
1878
- attribute: "name"
1879
- },
1880
- value: {
1881
- type: String,
1882
- default: '',
1883
- reflect: false,
1884
- attribute: "value"
1885
- },
1886
- disabled: {
1887
- type: Boolean,
1888
- default: false,
1889
- reflect: false,
1890
- attribute: "disabled"
1891
- },
1892
- required: {
1893
- type: Boolean,
1894
- default: false,
1895
- reflect: false,
1896
- attribute: "required"
1897
- },
1898
- error: {
1899
- type: String,
1900
- default: '',
1901
- reflect: false,
1902
- attribute: "error"
1903
- },
1904
- inputId: {
1905
- type: String,
1906
- default: '',
1907
- reflect: false,
1908
- attribute: false
1909
- },
1910
- noLabel: {
1911
- type: Object,
1912
- default: undefined,
1913
- reflect: false,
1914
- attribute: false
1915
- },
1916
- noError: {
1917
- type: Object,
1918
- default: undefined,
1919
- reflect: false,
1920
- attribute: false
1921
- },
1922
- inputClass: {
1923
- type: Object,
1924
- default: undefined,
1925
- reflect: false,
1926
- attribute: false
1927
- },
1928
- idAttr: {
1929
- type: Object,
1930
- default: undefined,
1931
- reflect: false,
1932
- attribute: false
1933
- },
1934
- errorIdAttr: {
1935
- type: Object,
1936
- default: undefined,
1937
- reflect: false,
1938
- attribute: false
1939
- },
1940
- ariaInvalidAttr: {
1941
- type: Object,
1942
- default: undefined,
1943
- reflect: false,
1944
- attribute: false
1945
- },
1946
- requiredMark: {
1947
- type: Object,
1948
- default: undefined,
1949
- reflect: false,
1950
- attribute: false
1951
- },
1952
- describedByAttr: {
1953
- type: Object,
1954
- default: undefined,
1955
- reflect: false,
1956
- attribute: false
1957
- }
1579
+ type: {
1580
+ type: String,
1581
+ default: "text",
1582
+ reflect: false,
1583
+ attribute: "type"
1584
+ },
1585
+ placeholder: {
1586
+ type: String,
1587
+ default: "",
1588
+ reflect: false,
1589
+ attribute: "placeholder"
1590
+ },
1591
+ label: {
1592
+ type: String,
1593
+ default: "",
1594
+ reflect: false,
1595
+ attribute: "label"
1596
+ },
1597
+ name: {
1598
+ type: String,
1599
+ default: "",
1600
+ reflect: false,
1601
+ attribute: "name"
1602
+ },
1603
+ value: {
1604
+ type: String,
1605
+ default: "",
1606
+ reflect: false,
1607
+ attribute: "value"
1608
+ },
1609
+ disabled: {
1610
+ type: Boolean,
1611
+ default: false,
1612
+ reflect: false,
1613
+ attribute: "disabled"
1614
+ },
1615
+ required: {
1616
+ type: Boolean,
1617
+ default: false,
1618
+ reflect: false,
1619
+ attribute: "required"
1620
+ },
1621
+ error: {
1622
+ type: String,
1623
+ default: "",
1624
+ reflect: false,
1625
+ attribute: "error"
1626
+ },
1627
+ inputId: {
1628
+ type: String,
1629
+ default: "",
1630
+ reflect: false,
1631
+ attribute: false
1632
+ },
1633
+ noLabel: {
1634
+ type: Object,
1635
+ default: void 0,
1636
+ reflect: false,
1637
+ attribute: false
1638
+ },
1639
+ noError: {
1640
+ type: Object,
1641
+ default: void 0,
1642
+ reflect: false,
1643
+ attribute: false
1644
+ },
1645
+ inputClass: {
1646
+ type: Object,
1647
+ default: void 0,
1648
+ reflect: false,
1649
+ attribute: false
1650
+ },
1651
+ idAttr: {
1652
+ type: Object,
1653
+ default: void 0,
1654
+ reflect: false,
1655
+ attribute: false
1656
+ },
1657
+ errorIdAttr: {
1658
+ type: Object,
1659
+ default: void 0,
1660
+ reflect: false,
1661
+ attribute: false
1662
+ },
1663
+ ariaInvalidAttr: {
1664
+ type: Object,
1665
+ default: void 0,
1666
+ reflect: false,
1667
+ attribute: false
1668
+ },
1669
+ requiredMark: {
1670
+ type: Object,
1671
+ default: void 0,
1672
+ reflect: false,
1673
+ attribute: false
1674
+ },
1675
+ describedByAttr: {
1676
+ type: Object,
1677
+ default: void 0,
1678
+ reflect: false,
1679
+ attribute: false
1680
+ }
1958
1681
  };
1959
- export class OpenInput extends OpenElement {
1960
- static __partProgram = __partProgram;
1961
- static __compiledProperties = __compiledProperties;
1962
- static __elementMetadata = __elementMetadata;
1963
- static props = __compiledProps;
1964
- static observedAttributes = __observedAttributes;
1965
- static delegatesFocus = true;
1966
- static formAssociated = true;
1967
- static __computedFields = {
1968
- noLabel: (__s)=>computed(()=>__s.label.value === ''),
1969
- noError: (__s)=>computed(()=>__s.error.value === ''),
1970
- inputClass: (__s)=>computed(()=>__s.error.value === '' ? 'control input' : 'control input input--error'),
1971
- idAttr: (__s)=>computed(()=>__s.inputId.value === '' ? null : __s.inputId.value),
1972
- errorIdAttr: (__s)=>computed(()=>__s.inputId.value === '' ? null : `${__s.inputId.value}-error`),
1973
- ariaInvalidAttr: (__s)=>computed(()=>__s.error.value === '' ? null : 'true'),
1974
- requiredMark: (__s)=>computed(()=>__s.required.value ? ' *' : ''),
1975
- describedByAttr: (__s)=>computed(()=>__s.error.value === '' || __s.inputId.value === '' ? null : `${__s.inputId.value}-error`)
1976
- };
1977
- static styles = [
1978
- controlRecipe,
1979
- recipe(`
1682
+ var OpenInput = class extends OpenElement {
1683
+ constructor(..._args) {
1684
+ super(..._args);
1685
+ this.type = "text";
1686
+ this.placeholder = "";
1687
+ this.label = "";
1688
+ this.name = "";
1689
+ this.value = "";
1690
+ this.disabled = false;
1691
+ this.required = false;
1692
+ this.error = "";
1693
+ this.inputId = "";
1694
+ }
1695
+ static {
1696
+ this.__partProgram = __partProgram;
1697
+ }
1698
+ static {
1699
+ this.__compiledProperties = __compiledProperties;
1700
+ }
1701
+ static {
1702
+ this.__elementMetadata = __elementMetadata;
1703
+ }
1704
+ static {
1705
+ this.props = __compiledProps;
1706
+ }
1707
+ static {
1708
+ this.observedAttributes = __observedAttributes;
1709
+ }
1710
+ static {
1711
+ this.delegatesFocus = true;
1712
+ }
1713
+ static {
1714
+ this.formAssociated = true;
1715
+ }
1716
+ static {
1717
+ this.__computedFields = {
1718
+ noLabel: (__s) => computed(() => __s.label.value === ""),
1719
+ noError: (__s) => computed(() => __s.error.value === ""),
1720
+ inputClass: (__s) => computed(() => __s.error.value === "" ? "control input" : "control input input--error"),
1721
+ idAttr: (__s) => computed(() => __s.inputId.value === "" ? null : __s.inputId.value),
1722
+ errorIdAttr: (__s) => computed(() => __s.inputId.value === "" ? null : `${__s.inputId.value}-error`),
1723
+ ariaInvalidAttr: (__s) => computed(() => __s.error.value === "" ? null : "true"),
1724
+ requiredMark: (__s) => computed(() => __s.required.value ? " *" : ""),
1725
+ describedByAttr: (__s) => computed(() => __s.error.value === "" || __s.inputId.value === "" ? null : `${__s.inputId.value}-error`)
1726
+ };
1727
+ }
1728
+ static {
1729
+ this.styles = [controlRecipe, recipe(`
1980
1730
  :host {
1981
1731
  display: block;
1982
1732
  }
@@ -2052,129 +1802,93 @@ export class OpenInput extends OpenElement {
2052
1802
  .error-message[hidden] {
2053
1803
  display: none;
2054
1804
  }
2055
- `)
2056
- ];
2057
- type = 'text';
2058
- placeholder = '';
2059
- label = '';
2060
- name = '';
2061
- value = '';
2062
- disabled = false;
2063
- required = false;
2064
- error = '';
2065
- inputId = '';
2066
- onDsdHydrated() {
2067
- this.activate();
2068
- }
2069
- onCsrRendered() {
2070
- this.activate();
2071
- }
2072
- activate() {
2073
- if (this.inputId === '') this.inputId = `input-${nextInstanceId()}`;
2074
- // The initial `value` arrives before connect (parser attributes), so the
2075
- // form value and validity sync here rather than in attributeChangedCallback.
2076
- this.syncFormValue();
2077
- this.syncValidity();
2078
- this.updateStates();
2079
- }
2080
- attributeChangedCallback(name, old, val) {
2081
- super.attributeChangedCallback(name, old, val);
2082
- if (old === val) return;
2083
- if (name === 'value') {
2084
- // The compiled prop sink writes the live input value in place — no
2085
- // re-render, so a focused <input> is never replaced mid-typing (#770).
2086
- this.syncFormValue();
2087
- this.syncValidity();
2088
- return;
2089
- }
2090
- if (name === 'disabled' || name === 'error') {
2091
- this.updateStates();
2092
- }
2093
- if (name === 'required') {
2094
- this.syncValidity();
2095
- }
2096
- }
2097
- updateStates() {
2098
- if (!this._internals?.states) return;
2099
- syncDisabledState(this._internals, this.disabled);
2100
- if (this.error !== '') {
2101
- this._internals.states.add('invalid');
2102
- } else {
2103
- this._internals.states.delete('invalid');
2104
- }
2105
- }
2106
- syncFormValue() {
2107
- this._internals?.setFormValue(this.value);
2108
- }
2109
- syncValidity() {
2110
- const internals = this._internals;
2111
- // Feature-checked: test stubs and older engines may lack setValidity.
2112
- if (!internals || typeof internals.setValidity !== 'function') return;
2113
- if (this.required && this.value === '') {
2114
- // No anchor: bubble placement is UA-dependent. Reuse the inner input's
2115
- // localized message when present.
2116
- const inner = this.shadowRoot?.querySelector('input');
2117
- internals.setValidity({
2118
- valueMissing: true
2119
- }, inner?.validationMessage || 'Please fill out this field.');
2120
- } else {
2121
- internals.setValidity({});
2122
- }
2123
- }
2124
- handleInput(e) {
2125
- const input = e.target;
2126
- // The value attribute is the authoritative channel (legacy parity):
2127
- // attribute -> compiled signal -> sinks, and the morph surface stays true.
2128
- this.setAttribute('value', input.value);
2129
- this.syncFormValue();
2130
- this.syncValidity();
2131
- this.dispatchEvent(new CustomEvent('open-input', {
2132
- detail: {
2133
- value: input.value
2134
- },
2135
- bubbles: true,
2136
- composed: true
2137
- }));
2138
- }
2139
- handleChange(e) {
2140
- const input = e.target;
2141
- this.dispatchEvent(new CustomEvent('open-change', {
2142
- detail: {
2143
- value: input.value
2144
- },
2145
- bubbles: true,
2146
- composed: true
2147
- }));
2148
- }
2149
- handleFocus() {
2150
- this.dispatchEvent(new CustomEvent('open-focus', {
2151
- bubbles: true,
2152
- composed: true
2153
- }));
2154
- }
2155
- handleBlur() {
2156
- this.dispatchEvent(new CustomEvent('open-blur', {
2157
- bubbles: true,
2158
- composed: true
2159
- }));
2160
- }
2161
- formResetCallback() {
2162
- super.formResetCallback();
2163
- this.setAttribute('value', '');
2164
- this.removeAttribute('error');
2165
- this.syncFormValue();
2166
- this.syncValidity();
2167
- }
2168
- formDisabledCallback(disabled) {
2169
- // Mirror onto the property (reflect: false), not the host attribute: the
2170
- // platform counts a form-associated custom element's own `disabled`
2171
- // attribute toward its disabledness, so writing it here would make the
2172
- // fieldset-driven state irreversible (#1226).
2173
- this.disabled = disabled;
2174
- this.updateStates();
2175
- }
2176
- render() {
2177
- throw new Error('[open:compiled-element] open-input is compiled to a Part Program; the runtime JSX render path is not available.');
2178
- }
2179
- }
2180
- export { __partProgram, __elementMetadata };
1805
+ `)];
1806
+ }
1807
+ onDsdHydrated() {
1808
+ this.activate();
1809
+ }
1810
+ onCsrRendered() {
1811
+ this.activate();
1812
+ }
1813
+ activate() {
1814
+ if (this.inputId === "") this.inputId = `input-${nextInstanceId()}`;
1815
+ this.syncFormValue();
1816
+ this.syncValidity();
1817
+ this.updateStates();
1818
+ }
1819
+ attributeChangedCallback(name, old, val) {
1820
+ super.attributeChangedCallback(name, old, val);
1821
+ if (old === val) return;
1822
+ if (name === "value") {
1823
+ this.syncFormValue();
1824
+ this.syncValidity();
1825
+ return;
1826
+ }
1827
+ if (name === "disabled" || name === "error") this.updateStates();
1828
+ if (name === "required") this.syncValidity();
1829
+ }
1830
+ updateStates() {
1831
+ if (!this._internals?.states) return;
1832
+ syncDisabledState(this._internals, this.disabled);
1833
+ if (this.error !== "") this._internals.states.add("invalid");
1834
+ else this._internals.states.delete("invalid");
1835
+ }
1836
+ syncFormValue() {
1837
+ this._internals?.setFormValue(this.value);
1838
+ }
1839
+ syncValidity() {
1840
+ const internals = this._internals;
1841
+ if (!internals || typeof internals.setValidity !== "function") return;
1842
+ if (this.required && this.value === "") {
1843
+ const inner = this.shadowRoot?.querySelector("input");
1844
+ internals.setValidity({ valueMissing: true }, inner?.validationMessage || "Please fill out this field.");
1845
+ } else internals.setValidity({});
1846
+ }
1847
+ handleInput(e) {
1848
+ const input = e.target;
1849
+ this.setAttribute("value", input.value);
1850
+ this.syncFormValue();
1851
+ this.syncValidity();
1852
+ this.dispatchEvent(new CustomEvent("open-input", {
1853
+ detail: { value: input.value },
1854
+ bubbles: true,
1855
+ composed: true
1856
+ }));
1857
+ }
1858
+ handleChange(e) {
1859
+ const input = e.target;
1860
+ this.dispatchEvent(new CustomEvent("open-change", {
1861
+ detail: { value: input.value },
1862
+ bubbles: true,
1863
+ composed: true
1864
+ }));
1865
+ }
1866
+ handleFocus() {
1867
+ this.dispatchEvent(new CustomEvent("open-focus", {
1868
+ bubbles: true,
1869
+ composed: true
1870
+ }));
1871
+ }
1872
+ handleBlur() {
1873
+ this.dispatchEvent(new CustomEvent("open-blur", {
1874
+ bubbles: true,
1875
+ composed: true
1876
+ }));
1877
+ }
1878
+ formResetCallback() {
1879
+ super.formResetCallback();
1880
+ this.setAttribute("value", "");
1881
+ this.removeAttribute("error");
1882
+ this.syncFormValue();
1883
+ this.syncValidity();
1884
+ }
1885
+ formDisabledCallback(disabled) {
1886
+ this.disabled = disabled;
1887
+ this.updateStates();
1888
+ }
1889
+ render() {
1890
+ throw new Error("[open:compiled-element] open-input is compiled to a Part Program; the runtime JSX render path is not available.");
1891
+ }
1892
+ };
1893
+ //#endregion
1894
+ export { OpenInput, __elementMetadata, __partProgram };