@italia/checkbox 1.0.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1362 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "ItCheckbox",
13
+ "declaration": {
14
+ "name": "ItCheckbox",
15
+ "module": "./it-checkbox.js"
16
+ }
17
+ },
18
+ {
19
+ "kind": "js",
20
+ "name": "ItCheckboxGroup",
21
+ "declaration": {
22
+ "name": "ItCheckboxGroup",
23
+ "module": "./it-checkbox-group.js"
24
+ }
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ "kind": "javascript-module",
30
+ "path": "src/it-checkbox-base.ts",
31
+ "declarations": [
32
+ {
33
+ "kind": "class",
34
+ "description": "",
35
+ "name": "ItCheckboxBase",
36
+ "members": [
37
+ {
38
+ "kind": "field",
39
+ "name": "formControlController",
40
+ "type": {
41
+ "text": "FormControlController"
42
+ },
43
+ "privacy": "protected",
44
+ "readonly": true,
45
+ "default": "new FormControlController(this, { value: (control: FormControl) => (control as ItCheckboxBase).checked ? (control as ItCheckboxBase).value || 'true' : undefined, setValue: (control: FormControl, value: unknown) => { const checkbox = control as ItCheckboxBase; checkbox.checked = Boolean(value); }, })"
46
+ },
47
+ {
48
+ "kind": "field",
49
+ "name": "type",
50
+ "type": {
51
+ "text": "string"
52
+ },
53
+ "default": "'checkbox'",
54
+ "description": "The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\nto `text`."
55
+ },
56
+ {
57
+ "kind": "field",
58
+ "name": "checked",
59
+ "type": {
60
+ "text": "boolean"
61
+ },
62
+ "default": "false",
63
+ "description": "Draws the checkbox in a checked state.",
64
+ "attribute": "checked",
65
+ "reflects": true
66
+ },
67
+ {
68
+ "kind": "field",
69
+ "name": "inline",
70
+ "type": {
71
+ "text": "boolean"
72
+ },
73
+ "default": "false",
74
+ "description": "Draws checkboxes inline, side by side.",
75
+ "attribute": "inline",
76
+ "reflects": true
77
+ },
78
+ {
79
+ "kind": "field",
80
+ "name": "group",
81
+ "type": {
82
+ "text": "boolean"
83
+ },
84
+ "default": "false",
85
+ "description": "Draws checkboxes in groups.",
86
+ "attribute": "group",
87
+ "reflects": true
88
+ },
89
+ {
90
+ "kind": "field",
91
+ "name": "indeterminate",
92
+ "type": {
93
+ "text": "boolean"
94
+ },
95
+ "default": "false",
96
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
97
+ "attribute": "indeterminate",
98
+ "reflects": true
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "labelElements",
103
+ "type": {
104
+ "text": "HTMLElement[]"
105
+ }
106
+ },
107
+ {
108
+ "kind": "field",
109
+ "name": "label",
110
+ "type": {
111
+ "text": "string"
112
+ },
113
+ "readonly": true
114
+ },
115
+ {
116
+ "kind": "field",
117
+ "name": "supportText",
118
+ "type": {
119
+ "text": "string"
120
+ },
121
+ "default": "''",
122
+ "description": "The input's help text.",
123
+ "attribute": "support-text"
124
+ },
125
+ {
126
+ "kind": "method",
127
+ "name": "click",
128
+ "description": "Simulates a click on the checkbox."
129
+ },
130
+ {
131
+ "kind": "method",
132
+ "name": "_handleClick",
133
+ "privacy": "protected",
134
+ "return": {
135
+ "type": {
136
+ "text": "void"
137
+ }
138
+ },
139
+ "parameters": [
140
+ {
141
+ "name": "e",
142
+ "type": {
143
+ "text": "Event"
144
+ }
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "kind": "method",
150
+ "name": "_renderInput",
151
+ "privacy": "protected",
152
+ "parameters": [
153
+ {
154
+ "name": "supportTextId",
155
+ "type": {
156
+ "text": "string"
157
+ }
158
+ },
159
+ {
160
+ "name": "invalid",
161
+ "type": {
162
+ "text": "boolean"
163
+ }
164
+ },
165
+ {
166
+ "name": "validityMessage",
167
+ "type": {
168
+ "text": "string"
169
+ }
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "kind": "method",
175
+ "name": "getWrapperClasses",
176
+ "privacy": "protected"
177
+ },
178
+ {
179
+ "kind": "method",
180
+ "name": "getSupportTextRender",
181
+ "privacy": "protected",
182
+ "parameters": [
183
+ {
184
+ "name": "supportTextId",
185
+ "type": {
186
+ "text": "string"
187
+ }
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "kind": "method",
193
+ "name": "getValidityMessageRender",
194
+ "privacy": "protected",
195
+ "parameters": [
196
+ {
197
+ "name": "validityMessage",
198
+ "type": {
199
+ "text": "string"
200
+ }
201
+ }
202
+ ]
203
+ }
204
+ ],
205
+ "events": [
206
+ {
207
+ "name": "change",
208
+ "type": {
209
+ "text": "Event"
210
+ }
211
+ }
212
+ ],
213
+ "attributes": [
214
+ {
215
+ "name": "checked",
216
+ "type": {
217
+ "text": "boolean"
218
+ },
219
+ "default": "false",
220
+ "description": "Draws the checkbox in a checked state.",
221
+ "fieldName": "checked"
222
+ },
223
+ {
224
+ "name": "inline",
225
+ "type": {
226
+ "text": "boolean"
227
+ },
228
+ "default": "false",
229
+ "description": "Draws checkboxes inline, side by side.",
230
+ "fieldName": "inline"
231
+ },
232
+ {
233
+ "name": "group",
234
+ "type": {
235
+ "text": "boolean"
236
+ },
237
+ "default": "false",
238
+ "description": "Draws checkboxes in groups.",
239
+ "fieldName": "group"
240
+ },
241
+ {
242
+ "name": "indeterminate",
243
+ "type": {
244
+ "text": "boolean"
245
+ },
246
+ "default": "false",
247
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
248
+ "fieldName": "indeterminate"
249
+ },
250
+ {
251
+ "name": "support-text",
252
+ "type": {
253
+ "text": "string"
254
+ },
255
+ "default": "''",
256
+ "description": "The input's help text.",
257
+ "fieldName": "supportText"
258
+ }
259
+ ],
260
+ "superclass": {
261
+ "name": "FormControl",
262
+ "package": "@italia/globals"
263
+ }
264
+ }
265
+ ],
266
+ "exports": [
267
+ {
268
+ "kind": "js",
269
+ "name": "ItCheckboxBase",
270
+ "declaration": {
271
+ "name": "ItCheckboxBase",
272
+ "module": "src/it-checkbox-base.ts"
273
+ }
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "kind": "javascript-module",
279
+ "path": "src/it-checkbox-group-base.ts",
280
+ "declarations": [
281
+ {
282
+ "kind": "class",
283
+ "description": "",
284
+ "name": "ItCheckboxGroupBase",
285
+ "members": [
286
+ {
287
+ "kind": "field",
288
+ "name": "required",
289
+ "type": {
290
+ "text": "boolean"
291
+ },
292
+ "default": "false",
293
+ "attribute": "required",
294
+ "reflects": true
295
+ },
296
+ {
297
+ "kind": "field",
298
+ "name": "inline",
299
+ "type": {
300
+ "text": "boolean"
301
+ },
302
+ "default": "false",
303
+ "description": "Draws checkboxes inline, side by side.",
304
+ "attribute": "inline",
305
+ "reflects": true
306
+ },
307
+ {
308
+ "kind": "field",
309
+ "name": "group",
310
+ "type": {
311
+ "text": "boolean"
312
+ },
313
+ "default": "false",
314
+ "description": "Draws checkboxes in groups.",
315
+ "attribute": "group",
316
+ "reflects": true
317
+ },
318
+ {
319
+ "kind": "field",
320
+ "name": "name",
321
+ "type": {
322
+ "text": "string"
323
+ },
324
+ "default": "''",
325
+ "attribute": "name",
326
+ "reflects": true
327
+ },
328
+ {
329
+ "kind": "field",
330
+ "name": "checkboxes",
331
+ "type": {
332
+ "text": "ItCheckboxBase[]"
333
+ }
334
+ },
335
+ {
336
+ "kind": "field",
337
+ "name": "_label",
338
+ "type": {
339
+ "text": "HTMLElement[]"
340
+ },
341
+ "privacy": "private"
342
+ },
343
+ {
344
+ "kind": "field",
345
+ "name": "formControlController",
346
+ "type": {
347
+ "text": "FormControlController"
348
+ },
349
+ "privacy": "protected",
350
+ "readonly": true,
351
+ "default": "new FormControlController(this, { // Il valore è un array dei valori delle checkbox selezionate value: (control: FormControl) => (control as ItCheckboxGroupBase).checkboxes.filter((cb) => cb.checked).map((cb) => cb.value || 'true'), // Il name è quello del gruppo name: (control: FormControl) => (control as ItCheckboxGroupBase).name, // La validità è gestita da noi con checkValidity di gruppo checkValidity: (control: FormControl) => (control as ItCheckboxGroupBase).checkValidity(), reportValidity: (control: FormControl) => (control as ItCheckboxGroupBase).reportValidity(), // Non implementiamo setValue qui, gestito dalle singole checkbox setValue: () => {}, // Ascoltiamo l'input su tutti i cambi di stato delle checkbox assumeInteractionOn: ['it-change'], })"
352
+ },
353
+ {
354
+ "kind": "field",
355
+ "name": "_groupValid",
356
+ "type": {
357
+ "text": "boolean"
358
+ },
359
+ "privacy": "private",
360
+ "default": "true"
361
+ },
362
+ {
363
+ "kind": "field",
364
+ "name": "selectedValues",
365
+ "type": {
366
+ "text": "string[]"
367
+ }
368
+ },
369
+ {
370
+ "kind": "method",
371
+ "name": "has",
372
+ "privacy": "public",
373
+ "parameters": [
374
+ {
375
+ "name": "v",
376
+ "type": {
377
+ "text": "string"
378
+ }
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "kind": "field",
384
+ "name": "validity",
385
+ "type": {
386
+ "text": "ValidityState"
387
+ },
388
+ "description": "Override: Custom validity check for radio group",
389
+ "readonly": true
390
+ },
391
+ {
392
+ "kind": "method",
393
+ "name": "_handleGroupChange",
394
+ "privacy": "private"
395
+ },
396
+ {
397
+ "kind": "method",
398
+ "name": "checkValidity",
399
+ "return": {
400
+ "type": {
401
+ "text": "boolean"
402
+ }
403
+ },
404
+ "description": "Override di checkValidity per la logica di gruppo."
405
+ },
406
+ {
407
+ "kind": "method",
408
+ "name": "reportValidity",
409
+ "return": {
410
+ "type": {
411
+ "text": "boolean"
412
+ }
413
+ },
414
+ "description": "Override di reportValidity per mostrare l'errore a livello di gruppo."
415
+ },
416
+ {
417
+ "kind": "method",
418
+ "name": "handleValidationMessages",
419
+ "privacy": "protected",
420
+ "description": "Il tuo FormControl ha già un handleValidationMessages che\nsetta this.validationMessage. Aggiorniamolo per la logica di gruppo."
421
+ },
422
+ {
423
+ "kind": "method",
424
+ "name": "_syncGroupStateToChildren",
425
+ "privacy": "private",
426
+ "description": "Sync group state (name, grouped, inline, required, disabled, checked) to child checkboxes\nThis replaces the need for requestUpdate() calls"
427
+ },
428
+ {
429
+ "kind": "method",
430
+ "name": "setCustomValidity",
431
+ "privacy": "public",
432
+ "parameters": [
433
+ {
434
+ "name": "message",
435
+ "type": {
436
+ "text": "string"
437
+ }
438
+ }
439
+ ]
440
+ },
441
+ {
442
+ "kind": "method",
443
+ "name": "_handleSlotChange",
444
+ "privacy": "private"
445
+ }
446
+ ],
447
+ "attributes": [
448
+ {
449
+ "name": "required",
450
+ "type": {
451
+ "text": "boolean"
452
+ },
453
+ "default": "false",
454
+ "fieldName": "required"
455
+ },
456
+ {
457
+ "name": "inline",
458
+ "type": {
459
+ "text": "boolean"
460
+ },
461
+ "default": "false",
462
+ "description": "Draws checkboxes inline, side by side.",
463
+ "fieldName": "inline"
464
+ },
465
+ {
466
+ "name": "group",
467
+ "type": {
468
+ "text": "boolean"
469
+ },
470
+ "default": "false",
471
+ "description": "Draws checkboxes in groups.",
472
+ "fieldName": "group"
473
+ },
474
+ {
475
+ "name": "name",
476
+ "type": {
477
+ "text": "string"
478
+ },
479
+ "default": "''",
480
+ "fieldName": "name"
481
+ }
482
+ ],
483
+ "superclass": {
484
+ "name": "FormControl",
485
+ "package": "@italia/globals"
486
+ }
487
+ }
488
+ ],
489
+ "exports": [
490
+ {
491
+ "kind": "js",
492
+ "name": "ItCheckboxGroupBase",
493
+ "declaration": {
494
+ "name": "ItCheckboxGroupBase",
495
+ "module": "src/it-checkbox-group-base.ts"
496
+ }
497
+ }
498
+ ]
499
+ },
500
+ {
501
+ "kind": "javascript-module",
502
+ "path": "src/it-checkbox-group.ts",
503
+ "declarations": [
504
+ {
505
+ "kind": "class",
506
+ "description": "",
507
+ "name": "ItCheckboxGroup",
508
+ "superclass": {
509
+ "name": "ItCheckboxGroupBase",
510
+ "module": "/src/it-checkbox-group-base.js"
511
+ },
512
+ "tagName": "it-checkbox-group",
513
+ "customElement": true,
514
+ "attributes": [
515
+ {
516
+ "name": "required",
517
+ "type": {
518
+ "text": "boolean"
519
+ },
520
+ "default": "false",
521
+ "fieldName": "required",
522
+ "inheritedFrom": {
523
+ "name": "ItCheckboxGroupBase",
524
+ "module": "src/it-checkbox-group-base.ts"
525
+ }
526
+ },
527
+ {
528
+ "name": "inline",
529
+ "type": {
530
+ "text": "boolean"
531
+ },
532
+ "default": "false",
533
+ "description": "Draws checkboxes inline, side by side.",
534
+ "fieldName": "inline",
535
+ "inheritedFrom": {
536
+ "name": "ItCheckboxGroupBase",
537
+ "module": "src/it-checkbox-group-base.ts"
538
+ }
539
+ },
540
+ {
541
+ "name": "group",
542
+ "type": {
543
+ "text": "boolean"
544
+ },
545
+ "default": "false",
546
+ "description": "Draws checkboxes in groups.",
547
+ "fieldName": "group",
548
+ "inheritedFrom": {
549
+ "name": "ItCheckboxGroupBase",
550
+ "module": "src/it-checkbox-group-base.ts"
551
+ }
552
+ },
553
+ {
554
+ "name": "name",
555
+ "type": {
556
+ "text": "string"
557
+ },
558
+ "default": "''",
559
+ "fieldName": "name",
560
+ "inheritedFrom": {
561
+ "name": "ItCheckboxGroupBase",
562
+ "module": "src/it-checkbox-group-base.ts"
563
+ }
564
+ }
565
+ ],
566
+ "members": [
567
+ {
568
+ "kind": "field",
569
+ "name": "required",
570
+ "type": {
571
+ "text": "boolean"
572
+ },
573
+ "default": "false",
574
+ "attribute": "required",
575
+ "reflects": true,
576
+ "inheritedFrom": {
577
+ "name": "ItCheckboxGroupBase",
578
+ "module": "src/it-checkbox-group-base.ts"
579
+ }
580
+ },
581
+ {
582
+ "kind": "field",
583
+ "name": "inline",
584
+ "type": {
585
+ "text": "boolean"
586
+ },
587
+ "default": "false",
588
+ "description": "Draws checkboxes inline, side by side.",
589
+ "attribute": "inline",
590
+ "reflects": true,
591
+ "inheritedFrom": {
592
+ "name": "ItCheckboxGroupBase",
593
+ "module": "src/it-checkbox-group-base.ts"
594
+ }
595
+ },
596
+ {
597
+ "kind": "field",
598
+ "name": "group",
599
+ "type": {
600
+ "text": "boolean"
601
+ },
602
+ "default": "false",
603
+ "description": "Draws checkboxes in groups.",
604
+ "attribute": "group",
605
+ "reflects": true,
606
+ "inheritedFrom": {
607
+ "name": "ItCheckboxGroupBase",
608
+ "module": "src/it-checkbox-group-base.ts"
609
+ }
610
+ },
611
+ {
612
+ "kind": "field",
613
+ "name": "name",
614
+ "type": {
615
+ "text": "string"
616
+ },
617
+ "default": "''",
618
+ "attribute": "name",
619
+ "reflects": true,
620
+ "inheritedFrom": {
621
+ "name": "ItCheckboxGroupBase",
622
+ "module": "src/it-checkbox-group-base.ts"
623
+ }
624
+ },
625
+ {
626
+ "kind": "field",
627
+ "name": "checkboxes",
628
+ "type": {
629
+ "text": "ItCheckboxBase[]"
630
+ },
631
+ "inheritedFrom": {
632
+ "name": "ItCheckboxGroupBase",
633
+ "module": "src/it-checkbox-group-base.ts"
634
+ }
635
+ },
636
+ {
637
+ "kind": "field",
638
+ "name": "_label",
639
+ "type": {
640
+ "text": "HTMLElement[]"
641
+ },
642
+ "privacy": "private",
643
+ "inheritedFrom": {
644
+ "name": "ItCheckboxGroupBase",
645
+ "module": "src/it-checkbox-group-base.ts"
646
+ }
647
+ },
648
+ {
649
+ "kind": "field",
650
+ "name": "formControlController",
651
+ "type": {
652
+ "text": "FormControlController"
653
+ },
654
+ "privacy": "protected",
655
+ "readonly": true,
656
+ "default": "new FormControlController(this, { // Il valore è un array dei valori delle checkbox selezionate value: (control: FormControl) => (control as ItCheckboxGroupBase).checkboxes.filter((cb) => cb.checked).map((cb) => cb.value || 'true'), // Il name è quello del gruppo name: (control: FormControl) => (control as ItCheckboxGroupBase).name, // La validità è gestita da noi con checkValidity di gruppo checkValidity: (control: FormControl) => (control as ItCheckboxGroupBase).checkValidity(), reportValidity: (control: FormControl) => (control as ItCheckboxGroupBase).reportValidity(), // Non implementiamo setValue qui, gestito dalle singole checkbox setValue: () => {}, // Ascoltiamo l'input su tutti i cambi di stato delle checkbox assumeInteractionOn: ['it-change'], })",
657
+ "inheritedFrom": {
658
+ "name": "ItCheckboxGroupBase",
659
+ "module": "src/it-checkbox-group-base.ts"
660
+ }
661
+ },
662
+ {
663
+ "kind": "field",
664
+ "name": "_groupValid",
665
+ "type": {
666
+ "text": "boolean"
667
+ },
668
+ "privacy": "private",
669
+ "default": "true",
670
+ "inheritedFrom": {
671
+ "name": "ItCheckboxGroupBase",
672
+ "module": "src/it-checkbox-group-base.ts"
673
+ }
674
+ },
675
+ {
676
+ "kind": "field",
677
+ "name": "selectedValues",
678
+ "type": {
679
+ "text": "string[]"
680
+ },
681
+ "inheritedFrom": {
682
+ "name": "ItCheckboxGroupBase",
683
+ "module": "src/it-checkbox-group-base.ts"
684
+ }
685
+ },
686
+ {
687
+ "kind": "method",
688
+ "name": "has",
689
+ "privacy": "public",
690
+ "parameters": [
691
+ {
692
+ "name": "v",
693
+ "type": {
694
+ "text": "string"
695
+ }
696
+ }
697
+ ],
698
+ "inheritedFrom": {
699
+ "name": "ItCheckboxGroupBase",
700
+ "module": "src/it-checkbox-group-base.ts"
701
+ }
702
+ },
703
+ {
704
+ "kind": "field",
705
+ "name": "validity",
706
+ "type": {
707
+ "text": "ValidityState"
708
+ },
709
+ "description": "Override: Custom validity check for radio group",
710
+ "readonly": true,
711
+ "inheritedFrom": {
712
+ "name": "ItCheckboxGroupBase",
713
+ "module": "src/it-checkbox-group-base.ts"
714
+ }
715
+ },
716
+ {
717
+ "kind": "method",
718
+ "name": "_handleGroupChange",
719
+ "privacy": "private",
720
+ "inheritedFrom": {
721
+ "name": "ItCheckboxGroupBase",
722
+ "module": "src/it-checkbox-group-base.ts"
723
+ }
724
+ },
725
+ {
726
+ "kind": "method",
727
+ "name": "checkValidity",
728
+ "return": {
729
+ "type": {
730
+ "text": "boolean"
731
+ }
732
+ },
733
+ "description": "Override di checkValidity per la logica di gruppo.",
734
+ "inheritedFrom": {
735
+ "name": "ItCheckboxGroupBase",
736
+ "module": "src/it-checkbox-group-base.ts"
737
+ }
738
+ },
739
+ {
740
+ "kind": "method",
741
+ "name": "reportValidity",
742
+ "return": {
743
+ "type": {
744
+ "text": "boolean"
745
+ }
746
+ },
747
+ "description": "Override di reportValidity per mostrare l'errore a livello di gruppo.",
748
+ "inheritedFrom": {
749
+ "name": "ItCheckboxGroupBase",
750
+ "module": "src/it-checkbox-group-base.ts"
751
+ }
752
+ },
753
+ {
754
+ "kind": "method",
755
+ "name": "handleValidationMessages",
756
+ "privacy": "protected",
757
+ "description": "Il tuo FormControl ha già un handleValidationMessages che\nsetta this.validationMessage. Aggiorniamolo per la logica di gruppo.",
758
+ "inheritedFrom": {
759
+ "name": "ItCheckboxGroupBase",
760
+ "module": "src/it-checkbox-group-base.ts"
761
+ }
762
+ },
763
+ {
764
+ "kind": "method",
765
+ "name": "_syncGroupStateToChildren",
766
+ "privacy": "private",
767
+ "description": "Sync group state (name, grouped, inline, required, disabled, checked) to child checkboxes\nThis replaces the need for requestUpdate() calls",
768
+ "inheritedFrom": {
769
+ "name": "ItCheckboxGroupBase",
770
+ "module": "src/it-checkbox-group-base.ts"
771
+ }
772
+ },
773
+ {
774
+ "kind": "method",
775
+ "name": "setCustomValidity",
776
+ "privacy": "public",
777
+ "parameters": [
778
+ {
779
+ "name": "message",
780
+ "type": {
781
+ "text": "string"
782
+ }
783
+ }
784
+ ],
785
+ "inheritedFrom": {
786
+ "name": "ItCheckboxGroupBase",
787
+ "module": "src/it-checkbox-group-base.ts"
788
+ }
789
+ },
790
+ {
791
+ "kind": "method",
792
+ "name": "_handleSlotChange",
793
+ "privacy": "private",
794
+ "inheritedFrom": {
795
+ "name": "ItCheckboxGroupBase",
796
+ "module": "src/it-checkbox-group-base.ts"
797
+ }
798
+ }
799
+ ]
800
+ }
801
+ ],
802
+ "exports": [
803
+ {
804
+ "kind": "js",
805
+ "name": "ItCheckboxGroup",
806
+ "declaration": {
807
+ "name": "ItCheckboxGroup",
808
+ "module": "src/it-checkbox-group.ts"
809
+ }
810
+ },
811
+ {
812
+ "kind": "custom-element-definition",
813
+ "name": "it-checkbox-group",
814
+ "declaration": {
815
+ "name": "ItCheckboxGroup",
816
+ "module": "src/it-checkbox-group.ts"
817
+ }
818
+ }
819
+ ]
820
+ },
821
+ {
822
+ "kind": "javascript-module",
823
+ "path": "src/it-checkbox.ts",
824
+ "declarations": [
825
+ {
826
+ "kind": "class",
827
+ "description": "",
828
+ "name": "ItCheckbox",
829
+ "superclass": {
830
+ "name": "ItCheckboxBase",
831
+ "module": "/src/it-checkbox-base.js"
832
+ },
833
+ "tagName": "it-checkbox",
834
+ "customElement": true,
835
+ "attributes": [
836
+ {
837
+ "name": "checked",
838
+ "type": {
839
+ "text": "boolean"
840
+ },
841
+ "default": "false",
842
+ "description": "Draws the checkbox in a checked state.",
843
+ "fieldName": "checked",
844
+ "inheritedFrom": {
845
+ "name": "ItCheckboxBase",
846
+ "module": "src/it-checkbox-base.ts"
847
+ }
848
+ },
849
+ {
850
+ "name": "inline",
851
+ "type": {
852
+ "text": "boolean"
853
+ },
854
+ "default": "false",
855
+ "description": "Draws checkboxes inline, side by side.",
856
+ "fieldName": "inline",
857
+ "inheritedFrom": {
858
+ "name": "ItCheckboxBase",
859
+ "module": "src/it-checkbox-base.ts"
860
+ }
861
+ },
862
+ {
863
+ "name": "group",
864
+ "type": {
865
+ "text": "boolean"
866
+ },
867
+ "default": "false",
868
+ "description": "Draws checkboxes in groups.",
869
+ "fieldName": "group",
870
+ "inheritedFrom": {
871
+ "name": "ItCheckboxBase",
872
+ "module": "src/it-checkbox-base.ts"
873
+ }
874
+ },
875
+ {
876
+ "name": "indeterminate",
877
+ "type": {
878
+ "text": "boolean"
879
+ },
880
+ "default": "false",
881
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
882
+ "fieldName": "indeterminate",
883
+ "inheritedFrom": {
884
+ "name": "ItCheckboxBase",
885
+ "module": "src/it-checkbox-base.ts"
886
+ }
887
+ },
888
+ {
889
+ "name": "support-text",
890
+ "type": {
891
+ "text": "string"
892
+ },
893
+ "default": "''",
894
+ "description": "The input's help text.",
895
+ "fieldName": "supportText",
896
+ "inheritedFrom": {
897
+ "name": "ItCheckboxBase",
898
+ "module": "src/it-checkbox-base.ts"
899
+ }
900
+ }
901
+ ],
902
+ "members": [
903
+ {
904
+ "kind": "field",
905
+ "name": "formControlController",
906
+ "type": {
907
+ "text": "FormControlController"
908
+ },
909
+ "privacy": "protected",
910
+ "readonly": true,
911
+ "default": "new FormControlController(this, { value: (control: FormControl) => (control as ItCheckboxBase).checked ? (control as ItCheckboxBase).value || 'true' : undefined, setValue: (control: FormControl, value: unknown) => { const checkbox = control as ItCheckboxBase; checkbox.checked = Boolean(value); }, })",
912
+ "inheritedFrom": {
913
+ "name": "ItCheckboxBase",
914
+ "module": "src/it-checkbox-base.ts"
915
+ }
916
+ },
917
+ {
918
+ "kind": "field",
919
+ "name": "type",
920
+ "type": {
921
+ "text": "string"
922
+ },
923
+ "default": "'checkbox'",
924
+ "description": "The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults\nto `text`.",
925
+ "inheritedFrom": {
926
+ "name": "ItCheckboxBase",
927
+ "module": "src/it-checkbox-base.ts"
928
+ }
929
+ },
930
+ {
931
+ "kind": "field",
932
+ "name": "checked",
933
+ "type": {
934
+ "text": "boolean"
935
+ },
936
+ "default": "false",
937
+ "description": "Draws the checkbox in a checked state.",
938
+ "attribute": "checked",
939
+ "reflects": true,
940
+ "inheritedFrom": {
941
+ "name": "ItCheckboxBase",
942
+ "module": "src/it-checkbox-base.ts"
943
+ }
944
+ },
945
+ {
946
+ "kind": "field",
947
+ "name": "inline",
948
+ "type": {
949
+ "text": "boolean"
950
+ },
951
+ "default": "false",
952
+ "description": "Draws checkboxes inline, side by side.",
953
+ "attribute": "inline",
954
+ "reflects": true,
955
+ "inheritedFrom": {
956
+ "name": "ItCheckboxBase",
957
+ "module": "src/it-checkbox-base.ts"
958
+ }
959
+ },
960
+ {
961
+ "kind": "field",
962
+ "name": "group",
963
+ "type": {
964
+ "text": "boolean"
965
+ },
966
+ "default": "false",
967
+ "description": "Draws checkboxes in groups.",
968
+ "attribute": "group",
969
+ "reflects": true,
970
+ "inheritedFrom": {
971
+ "name": "ItCheckboxBase",
972
+ "module": "src/it-checkbox-base.ts"
973
+ }
974
+ },
975
+ {
976
+ "kind": "field",
977
+ "name": "indeterminate",
978
+ "type": {
979
+ "text": "boolean"
980
+ },
981
+ "default": "false",
982
+ "description": "Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a \"select\nall/none\" behavior when associated checkboxes have a mix of checked and unchecked states.",
983
+ "attribute": "indeterminate",
984
+ "reflects": true,
985
+ "inheritedFrom": {
986
+ "name": "ItCheckboxBase",
987
+ "module": "src/it-checkbox-base.ts"
988
+ }
989
+ },
990
+ {
991
+ "kind": "field",
992
+ "name": "labelElements",
993
+ "type": {
994
+ "text": "HTMLElement[]"
995
+ },
996
+ "inheritedFrom": {
997
+ "name": "ItCheckboxBase",
998
+ "module": "src/it-checkbox-base.ts"
999
+ }
1000
+ },
1001
+ {
1002
+ "kind": "field",
1003
+ "name": "label",
1004
+ "type": {
1005
+ "text": "string"
1006
+ },
1007
+ "readonly": true,
1008
+ "inheritedFrom": {
1009
+ "name": "ItCheckboxBase",
1010
+ "module": "src/it-checkbox-base.ts"
1011
+ }
1012
+ },
1013
+ {
1014
+ "kind": "field",
1015
+ "name": "supportText",
1016
+ "type": {
1017
+ "text": "string"
1018
+ },
1019
+ "default": "''",
1020
+ "description": "The input's help text.",
1021
+ "attribute": "support-text",
1022
+ "inheritedFrom": {
1023
+ "name": "ItCheckboxBase",
1024
+ "module": "src/it-checkbox-base.ts"
1025
+ }
1026
+ },
1027
+ {
1028
+ "kind": "method",
1029
+ "name": "click",
1030
+ "description": "Simulates a click on the checkbox.",
1031
+ "inheritedFrom": {
1032
+ "name": "ItCheckboxBase",
1033
+ "module": "src/it-checkbox-base.ts"
1034
+ }
1035
+ },
1036
+ {
1037
+ "kind": "method",
1038
+ "name": "_handleClick",
1039
+ "privacy": "protected",
1040
+ "return": {
1041
+ "type": {
1042
+ "text": "void"
1043
+ }
1044
+ },
1045
+ "parameters": [
1046
+ {
1047
+ "name": "e",
1048
+ "type": {
1049
+ "text": "Event"
1050
+ }
1051
+ }
1052
+ ],
1053
+ "inheritedFrom": {
1054
+ "name": "ItCheckboxBase",
1055
+ "module": "src/it-checkbox-base.ts"
1056
+ }
1057
+ },
1058
+ {
1059
+ "kind": "method",
1060
+ "name": "_renderInput",
1061
+ "privacy": "protected",
1062
+ "parameters": [
1063
+ {
1064
+ "name": "supportTextId",
1065
+ "type": {
1066
+ "text": "string"
1067
+ }
1068
+ },
1069
+ {
1070
+ "name": "invalid",
1071
+ "type": {
1072
+ "text": "boolean"
1073
+ }
1074
+ },
1075
+ {
1076
+ "name": "validityMessage",
1077
+ "type": {
1078
+ "text": "string"
1079
+ }
1080
+ }
1081
+ ],
1082
+ "inheritedFrom": {
1083
+ "name": "ItCheckboxBase",
1084
+ "module": "src/it-checkbox-base.ts"
1085
+ }
1086
+ },
1087
+ {
1088
+ "kind": "method",
1089
+ "name": "getWrapperClasses",
1090
+ "privacy": "protected",
1091
+ "inheritedFrom": {
1092
+ "name": "ItCheckboxBase",
1093
+ "module": "src/it-checkbox-base.ts"
1094
+ }
1095
+ },
1096
+ {
1097
+ "kind": "method",
1098
+ "name": "getSupportTextRender",
1099
+ "privacy": "protected",
1100
+ "parameters": [
1101
+ {
1102
+ "name": "supportTextId",
1103
+ "type": {
1104
+ "text": "string"
1105
+ }
1106
+ }
1107
+ ],
1108
+ "inheritedFrom": {
1109
+ "name": "ItCheckboxBase",
1110
+ "module": "src/it-checkbox-base.ts"
1111
+ }
1112
+ },
1113
+ {
1114
+ "kind": "method",
1115
+ "name": "getValidityMessageRender",
1116
+ "privacy": "protected",
1117
+ "parameters": [
1118
+ {
1119
+ "name": "validityMessage",
1120
+ "type": {
1121
+ "text": "string"
1122
+ }
1123
+ }
1124
+ ],
1125
+ "inheritedFrom": {
1126
+ "name": "ItCheckboxBase",
1127
+ "module": "src/it-checkbox-base.ts"
1128
+ }
1129
+ }
1130
+ ],
1131
+ "events": [
1132
+ {
1133
+ "name": "change",
1134
+ "type": {
1135
+ "text": "Event"
1136
+ },
1137
+ "inheritedFrom": {
1138
+ "name": "ItCheckboxBase",
1139
+ "module": "src/it-checkbox-base.ts"
1140
+ }
1141
+ }
1142
+ ]
1143
+ }
1144
+ ],
1145
+ "exports": [
1146
+ {
1147
+ "kind": "js",
1148
+ "name": "ItCheckbox",
1149
+ "declaration": {
1150
+ "name": "ItCheckbox",
1151
+ "module": "src/it-checkbox.ts"
1152
+ }
1153
+ },
1154
+ {
1155
+ "kind": "custom-element-definition",
1156
+ "name": "it-checkbox",
1157
+ "declaration": {
1158
+ "name": "ItCheckbox",
1159
+ "module": "src/it-checkbox.ts"
1160
+ }
1161
+ }
1162
+ ]
1163
+ },
1164
+ {
1165
+ "kind": "javascript-module",
1166
+ "path": "stories/it-checkbox.stories.ts",
1167
+ "declarations": [
1168
+ {
1169
+ "kind": "variable",
1170
+ "name": "meta",
1171
+ "default": "{ title: 'Componenti/Form/Checkbox', tags: ['a11y-ok', 'web-component'], component: 'it-checkbox', args: { id: '', label: 'Checkbox di esempio', name: 'esempio', value: undefined, checked: false, indeterminate: false, disabled: false, form: undefined, customValidation: false, validityMessage: '', required: false, inline: false, group: false, supportText: '', }, argTypes: { id: { control: 'text', description: 'ID del campo', type: 'string', }, label: { control: 'text', description: 'Etichetta del campo', type: 'string', }, name: { control: 'text', type: 'string', }, value: { control: 'text', description: 'Valore del campo', type: 'string', }, checked: { control: 'boolean', type: 'boolean', table: { defaultValue: { summary: 'false' } }, }, indeterminate: { control: 'boolean', type: 'boolean', table: { defaultValue: { summary: 'false' } }, }, disabled: { control: 'boolean', type: 'boolean', table: { defaultValue: { summary: 'false' } }, }, form: { control: 'text', type: 'string', description: \"ID html del form a cui è associato il campo, se il campo non si trova all'interno di una form \", }, customValidation: { name: 'custom-validation', control: 'boolean', type: 'boolean', table: { defaultValue: { summary: 'false' } }, description: 'Se la validazione del campo è fatta esternamente (lato server o con plugin js - validazione custom), impostare questo attributo a `true`.', }, validityMessage: { name: 'validity-message', control: 'text', type: 'string', description: \"Messaggio da mostrare quando il campo è invalido nel caso di validazione esterna (validazione custom). Se impostato a '' (stringa vuota) il campo viene considerato valido.\", }, required: { control: 'boolean', type: 'boolean', table: { defaultValue: { summary: 'false' } }, }, inline: { control: 'boolean', type: 'boolean', description: 'Se si vogliono mostrare più checkbox affiancate orizzontalmente', table: { defaultValue: { summary: 'false' } }, }, group: { control: 'boolean', type: 'boolean', description: 'Se si vogliono mostrare più checkbox raggruppate visivamente', table: { defaultValue: { summary: 'false' } }, }, supportText: { name: 'support-text', control: 'text', description: 'Testo di supporto', type: 'string', }, }, } satisfies Meta<CheckboxProps>"
1172
+ },
1173
+ {
1174
+ "kind": "variable",
1175
+ "name": "EsempioInterattivo",
1176
+ "type": {
1177
+ "text": "Story"
1178
+ },
1179
+ "default": "{ ...meta, name: 'Esempio interattivo', tags: ['!dev'], parameters: { docs: { canvas: { sourceState: 'shown', }, }, }, render: (params) => html`${renderComponent({ ...params, })} `, }"
1180
+ },
1181
+ {
1182
+ "kind": "variable",
1183
+ "name": "Disabilitato",
1184
+ "type": {
1185
+ "text": "Story"
1186
+ },
1187
+ "default": "{ ...meta, // name: 'Disabilitato', args: { disabled: true }, render: (params) => html` <it-checkbox-group name=${params.name} ?required=${params.required} ?disabled=${params.disabled}> <span slot=\"legend\">Gruppo di checkbox</span> ${renderComponent({ ...params, required: undefined, disabled: undefined, label: 'Checkbox non selezionato', className: 'mb-2', })} ${renderComponent({ ...params, required: undefined, disabled: undefined, label: 'Checkbox selezionato', checked: true, })} </it-checkbox-group> `, }"
1188
+ },
1189
+ {
1190
+ "kind": "variable",
1191
+ "name": "Indeterminate",
1192
+ "type": {
1193
+ "text": "Story"
1194
+ },
1195
+ "default": "{ ...meta, name: 'Indeterminato (mixed)', args: { indeterminate: true }, render: (params) => html` ${renderComponent({ ...params, label: 'Checkbox indeterminato', })} `, }"
1196
+ },
1197
+ {
1198
+ "kind": "variable",
1199
+ "name": "Inline",
1200
+ "type": {
1201
+ "text": "Story"
1202
+ },
1203
+ "default": "{ ...meta, // name: 'Inline', args: { inline: true }, argTypes: { ...Object.fromEntries( Object.entries(meta.argTypes).map(([key, value]) => key !== 'inline' ? [key, { ...value, table: { ...value.table, disable: true } }] : [key, { ...value }], ), ), }, render: (params) => html` <it-checkbox-group name=${params.name} ?required=${params.required} ?group=${params.group} ?inline=${params.inline}> <span slot=\"legend\">Gruppo di checkbox</span> ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, label: 'Checkbox non selezionato', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, label: 'Checkbox selezionato', checked: true, })} </it-checkbox-group> `, }"
1204
+ },
1205
+ {
1206
+ "kind": "variable",
1207
+ "name": "Group",
1208
+ "type": {
1209
+ "text": "Story"
1210
+ },
1211
+ "default": "{ ...meta, name: 'Gruppo di checkbox', args: { group: true }, render: (params) => html` <div class=\"row\"> <it-checkbox-group name=${params.name} ?required=${params.required} ?group=${params.group} ?inline=${params.inline} ?disabled=${params.disabled} class=\"col-12 col-md-6\" > <span slot=\"legend\">Gruppo di checkbox</span> ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, label: 'Checkbox selezionato', checked: true, })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, label: 'Checkbox non selezionato', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: true, label: 'Checkbox disabilitato non selezionato', })} </it-checkbox-group> <it-checkbox-group name=${`${params.name}-1`} ?required=${params.required} ?group=${params.group} ?inline=${params.inline} ?disabled=${params.disabled} class=\"col-12 col-md-6\" > <span slot=\"legend\">Gruppo di checkbox</span> ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, label: 'Checkbox selezionato', checked: true, supportText: \"Testo descrittivo di supporto per l'opzione selezionabile\", })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, label: 'Checkbox non selezionato', supportText: \"Testo descrittivo di supporto per l'opzione selezionabile\", })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: true, label: 'Checkbox disabilitato non selezionato', supportText: \"Testo descrittivo di supporto per l'opzione selezionabile\", })} </it-checkbox-group> </div> `, }"
1212
+ },
1213
+ {
1214
+ "kind": "variable",
1215
+ "name": "GroupInitValue",
1216
+ "type": {
1217
+ "text": "Story"
1218
+ },
1219
+ "default": "{ ...meta, name: 'Valore iniziale del gruppo', args: { group: true, name: 'checkboxgroup' }, render: (params) => html` <it-checkbox-group name=${params.name} ?required=${params.required} ?group=${params.group} ?inline=${params.inline} ?disabled=${params.disabled} value='[\"opt_1\",\"opt_3\"]' > <span slot=\"legend\">Gruppo di checkbox</span> ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, label: 'Opzione numero 1', value: 'opt_1', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, label: 'Opzione numero 2', value: 'opt_2', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, label: 'Opzione numero 3', value: 'opt_3', })} </it-checkbox-group> `, }"
1220
+ },
1221
+ {
1222
+ "kind": "variable",
1223
+ "name": "SupportText",
1224
+ "type": {
1225
+ "text": "Story"
1226
+ },
1227
+ "default": "{ ...meta, name: 'Testo di supporto', args: { supportText: \"Testo descrittivo di supporto per l'opzione selezionabile\" }, render: (params) => html` ${renderComponent({ ...params, label: 'Checkbox con testo di supporto selezionato', })} `, }"
1228
+ },
1229
+ {
1230
+ "kind": "variable",
1231
+ "name": "ValidazioneNativa",
1232
+ "type": {
1233
+ "text": "Story"
1234
+ },
1235
+ "default": "{ ...meta, name: 'Validazione nativa', args: { required: true }, render: (params) => html` <form> <div class=\"row mb-4\"> <div class=\"col-md-6 d-flex align-items-center\"> ${renderComponent({ ...params, label: 'Checkbox singola obbligatoria', name: 'single-required-example', id: 'single-required-example', })} </div> <div class=\"col-md-6\"> <it-checkbox-group name=\"multiple-required-example\" ?required=${params.required} ?group=${params.group} ?inline=${params.inline} ?disabled=${params.disabled} > <span slot=\"legend\">Gruppo di checkbox obbligatorio</span> ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, label: 'Valore 1', value: 'valore_1', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, label: 'Valore 2', value: 'valore_2', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, label: 'Valore 3', value: 'valore_3', })} </it-checkbox-group> </div> </div> <div class=\"text-center\"> <it-button type=\"submit\" variant=\"primary\">Invia</it-button> </div> </form> `, }"
1236
+ },
1237
+ {
1238
+ "kind": "variable",
1239
+ "name": "ValidazioneCustom",
1240
+ "type": {
1241
+ "text": "Story"
1242
+ },
1243
+ "default": "{ ...meta, name: 'Validazione custom', args: { customValidation: true, validityMessage: 'Questo campo è obbligatorio!!!' }, render: (params) => html` <form> <div class=\"row\"> <div class=\"col-md-6 d-flex align-items-center\"> ${renderComponent({ ...params, required: undefined, label: 'Checkbox singola obbligatoria', name: 'external-validation-single-example', id: 'external-validation-single-example', })} </div> <div class=\"col-md-6\"> <it-checkbox-group name=\"external-validation-multiple-example\" ?group=${params.group} ?inline=${params.inline} ?disabled=${params.disabled} ?custom-validation=${params.customValidation} validity-message=\"${ifDefined(params.validityMessage || undefined)}\" > <span slot=\"legend\">Gruppo di checkbox obbligatorio</span> ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, customValidation: undefined, validityMessage: undefined, label: 'Valore 1', value: 'valore_1', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, customValidation: undefined, validityMessage: undefined, label: 'Valore 2', value: 'valore_2', })} ${renderComponent({ ...params, required: undefined, name: undefined, group: undefined, inline: undefined, disabled: undefined, customValidation: undefined, validityMessage: undefined, label: 'Valore 3', value: 'valore_3', })} </it-checkbox-group> </div> </div> </form> `, }"
1244
+ },
1245
+ {
1246
+ "kind": "variable",
1247
+ "name": "GestioneEventi",
1248
+ "type": {
1249
+ "text": "Story"
1250
+ },
1251
+ "default": "{ ...meta, name: 'Gestione degli eventi', parameters: { docs: { description: { story: `È possibile gestire gli eventi di \\`it-input\\`, \\`it-blur\\`, \\`it-change\\`, \\`it-focus\\`, \\`it-click\\` per effettuare operazioni personalizzate, come la validazione esterna o l'aggiornamento di altri campi. <br/><br/> È sufficiente aggiungere un event listener al componente \\`<it-checkbox>\\` o al componente \\`<it-checkbox-group>\\` per intercettare gli eventi desiderati. Ad esempio, per gestire l'evento di change, è possibile utilizzare il seguente codice: \\`\\`\\`js document.querySelector('it-checkbox#event-checkbox-example').addEventListener('it-change', (event) => { console.log('Checkbox event:', event); alert('Checkbox event'); }); \\`\\`\\` Il componente, emette anche un evento di tipo \\`it-input-ready\\` quando l'input è pronto e caricato nel DOM: \\`\\`\\`js document.querySelector('it-checkbox#event-checkbox-example').addEventListener('it-input-ready', (event) => { console.log('Checkbox ready:', event); }); \\`\\`\\` `, }, }, }, args: { type: 'text', label: 'Prova evento di change', name: 'event-checkbox-example', id: 'event-checkbox-example', }, render: (params) => html` <script> document.querySelector('it-checkbox#event-checkbox-example').addEventListener('it-change', (event) => { console.log('Checkbox event:', event); alert('Checkbox event'); }); document.querySelector('it-checkbox#event-checkbox-example').addEventListener('it-input-ready', (event) => { console.log('Checkbox ready:', event); }); </script> ${renderComponent({ ...params, })} `, }"
1252
+ },
1253
+ {
1254
+ "kind": "variable",
1255
+ "name": "MetodiEPropPubblici",
1256
+ "type": {
1257
+ "text": "Story"
1258
+ },
1259
+ "default": "{ ...StoryFormControlMethodAndProps({ componentName: 'it-checkbox', otherMethods: `|\\`click()\\`| Triggera l'evento di click sull'input reale | - |`, }), tags: ['!dev'], }"
1260
+ }
1261
+ ],
1262
+ "exports": [
1263
+ {
1264
+ "kind": "js",
1265
+ "name": "default",
1266
+ "declaration": {
1267
+ "name": "meta",
1268
+ "module": "stories/it-checkbox.stories.ts"
1269
+ }
1270
+ },
1271
+ {
1272
+ "kind": "js",
1273
+ "name": "EsempioInterattivo",
1274
+ "declaration": {
1275
+ "name": "EsempioInterattivo",
1276
+ "module": "stories/it-checkbox.stories.ts"
1277
+ }
1278
+ },
1279
+ {
1280
+ "kind": "js",
1281
+ "name": "Disabilitato",
1282
+ "declaration": {
1283
+ "name": "Disabilitato",
1284
+ "module": "stories/it-checkbox.stories.ts"
1285
+ }
1286
+ },
1287
+ {
1288
+ "kind": "js",
1289
+ "name": "Indeterminate",
1290
+ "declaration": {
1291
+ "name": "Indeterminate",
1292
+ "module": "stories/it-checkbox.stories.ts"
1293
+ }
1294
+ },
1295
+ {
1296
+ "kind": "js",
1297
+ "name": "Inline",
1298
+ "declaration": {
1299
+ "name": "Inline",
1300
+ "module": "stories/it-checkbox.stories.ts"
1301
+ }
1302
+ },
1303
+ {
1304
+ "kind": "js",
1305
+ "name": "Group",
1306
+ "declaration": {
1307
+ "name": "Group",
1308
+ "module": "stories/it-checkbox.stories.ts"
1309
+ }
1310
+ },
1311
+ {
1312
+ "kind": "js",
1313
+ "name": "GroupInitValue",
1314
+ "declaration": {
1315
+ "name": "GroupInitValue",
1316
+ "module": "stories/it-checkbox.stories.ts"
1317
+ }
1318
+ },
1319
+ {
1320
+ "kind": "js",
1321
+ "name": "SupportText",
1322
+ "declaration": {
1323
+ "name": "SupportText",
1324
+ "module": "stories/it-checkbox.stories.ts"
1325
+ }
1326
+ },
1327
+ {
1328
+ "kind": "js",
1329
+ "name": "ValidazioneNativa",
1330
+ "declaration": {
1331
+ "name": "ValidazioneNativa",
1332
+ "module": "stories/it-checkbox.stories.ts"
1333
+ }
1334
+ },
1335
+ {
1336
+ "kind": "js",
1337
+ "name": "ValidazioneCustom",
1338
+ "declaration": {
1339
+ "name": "ValidazioneCustom",
1340
+ "module": "stories/it-checkbox.stories.ts"
1341
+ }
1342
+ },
1343
+ {
1344
+ "kind": "js",
1345
+ "name": "GestioneEventi",
1346
+ "declaration": {
1347
+ "name": "GestioneEventi",
1348
+ "module": "stories/it-checkbox.stories.ts"
1349
+ }
1350
+ },
1351
+ {
1352
+ "kind": "js",
1353
+ "name": "MetodiEPropPubblici",
1354
+ "declaration": {
1355
+ "name": "MetodiEPropPubblici",
1356
+ "module": "stories/it-checkbox.stories.ts"
1357
+ }
1358
+ }
1359
+ ]
1360
+ }
1361
+ ]
1362
+ }