@italia/globals 0.1.0-alpha.2 → 1.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +680 -166
- package/dist/src/base-component/base-component.d.ts +19 -7
- package/dist/src/base-component/base-component.d.ts.map +1 -1
- package/dist/src/controllers/focus-trap-controller.d.ts +92 -0
- package/dist/src/controllers/focus-trap-controller.d.ts.map +1 -0
- package/dist/src/controllers/focus-trap-controller.js +497 -0
- package/dist/src/controllers/focus-trap-controller.js.map +1 -0
- package/dist/src/controllers/roving-tabindex-controller.d.ts +9 -2
- package/dist/src/controllers/roving-tabindex-controller.d.ts.map +1 -1
- package/dist/src/controllers/roving-tabindex-controller.js +11 -5
- package/dist/src/controllers/roving-tabindex-controller.js.map +1 -1
- package/dist/src/form/form-control.d.ts +2 -1
- package/dist/src/form/form-control.d.ts.map +1 -1
- package/dist/src/form/form-control.js +15 -7
- package/dist/src/form/form-control.js.map +1 -1
- package/dist/src/form/form-controller.d.ts +2 -0
- package/dist/src/form/form-controller.d.ts.map +1 -1
- package/dist/src/form/form-controller.js +45 -1
- package/dist/src/form/form-controller.js.map +1 -1
- package/dist/src/form/locales/it.d.ts.map +1 -1
- package/dist/src/form/locales/it.js +1 -0
- package/dist/src/form/locales/it.js.map +1 -1
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/mixins/validity.d.ts +18 -6
- package/dist/src/mixins/validity.d.ts.map +1 -1
- package/dist/src/stories/formControlReusableStories.d.ts.map +1 -1
- package/dist/src/stories/formControlReusableStories.js +5 -4
- package/dist/src/stories/formControlReusableStories.js.map +1 -1
- package/dist/src/window-manager.d.ts +13 -0
- package/dist/src/window-manager.d.ts.map +1 -1
- package/dist/src/window-manager.js +31 -0
- package/dist/src/window-manager.js.map +1 -1
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -111,6 +111,22 @@
|
|
|
111
111
|
"module": "./controllers/collapse-controller.js"
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
|
+
{
|
|
115
|
+
"kind": "js",
|
|
116
|
+
"name": "FocusTrapController",
|
|
117
|
+
"declaration": {
|
|
118
|
+
"name": "FocusTrapController",
|
|
119
|
+
"module": "./controllers/focus-trap-controller.js"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"kind": "js",
|
|
124
|
+
"name": "FocusTrapConfig",
|
|
125
|
+
"declaration": {
|
|
126
|
+
"name": "FocusTrapConfig",
|
|
127
|
+
"module": "./controllers/focus-trap-controller.js"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
114
130
|
{
|
|
115
131
|
"kind": "js",
|
|
116
132
|
"name": "FormControl",
|
|
@@ -251,6 +267,26 @@
|
|
|
251
267
|
"static": true,
|
|
252
268
|
"default": "false"
|
|
253
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"kind": "field",
|
|
272
|
+
"name": "scrollLockCount",
|
|
273
|
+
"type": {
|
|
274
|
+
"text": "number"
|
|
275
|
+
},
|
|
276
|
+
"privacy": "private",
|
|
277
|
+
"static": true,
|
|
278
|
+
"default": "0"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"kind": "field",
|
|
282
|
+
"name": "scrollbarWidth",
|
|
283
|
+
"type": {
|
|
284
|
+
"text": "number"
|
|
285
|
+
},
|
|
286
|
+
"privacy": "private",
|
|
287
|
+
"static": true,
|
|
288
|
+
"default": "0"
|
|
289
|
+
},
|
|
254
290
|
{
|
|
255
291
|
"kind": "method",
|
|
256
292
|
"name": "init",
|
|
@@ -307,6 +343,39 @@
|
|
|
307
343
|
}
|
|
308
344
|
}
|
|
309
345
|
]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"kind": "method",
|
|
349
|
+
"name": "lockBodyScroll",
|
|
350
|
+
"static": true,
|
|
351
|
+
"return": {
|
|
352
|
+
"type": {
|
|
353
|
+
"text": "void"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"description": "Blocca lo scroll del body. Usa ref counting per gestire modal nested.\nChiamare unlockBodyScroll() per ogni lockBodyScroll()."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"kind": "method",
|
|
360
|
+
"name": "unlockBodyScroll",
|
|
361
|
+
"static": true,
|
|
362
|
+
"return": {
|
|
363
|
+
"type": {
|
|
364
|
+
"text": "void"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"description": "Sblocca lo scroll del body. Rimuove il lock solo quando tutti i consumer hanno chiamato unlock."
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"kind": "method",
|
|
371
|
+
"name": "getScrollbarWidth",
|
|
372
|
+
"static": true,
|
|
373
|
+
"return": {
|
|
374
|
+
"type": {
|
|
375
|
+
"text": "number"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"description": "Ritorna la larghezza della scrollbar (utile per compensazioni)"
|
|
310
379
|
}
|
|
311
380
|
]
|
|
312
381
|
}
|
|
@@ -324,135 +393,90 @@
|
|
|
324
393
|
},
|
|
325
394
|
{
|
|
326
395
|
"kind": "javascript-module",
|
|
327
|
-
"path": "src/
|
|
396
|
+
"path": "src/controllers/aria-keyboard-accordion-controller.ts",
|
|
328
397
|
"declarations": [
|
|
329
398
|
{
|
|
330
399
|
"kind": "class",
|
|
331
|
-
"description": "
|
|
332
|
-
"name": "
|
|
400
|
+
"description": "",
|
|
401
|
+
"name": "AriaKeyboardAccordionController",
|
|
333
402
|
"members": [
|
|
334
403
|
{
|
|
335
404
|
"kind": "field",
|
|
336
|
-
"name": "
|
|
337
|
-
"type": {
|
|
338
|
-
"text": "Logger"
|
|
339
|
-
},
|
|
340
|
-
"privacy": "protected",
|
|
341
|
-
"default": "new Logger(this.tagName.toLowerCase())"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"kind": "field",
|
|
345
|
-
"name": "composeClass",
|
|
346
|
-
"privacy": "protected",
|
|
347
|
-
"default": "clsx"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"kind": "field",
|
|
351
|
-
"name": "_id",
|
|
405
|
+
"name": "host",
|
|
352
406
|
"type": {
|
|
353
|
-
"text": "
|
|
407
|
+
"text": "ReactiveControllerHost"
|
|
354
408
|
},
|
|
355
|
-
"privacy": "
|
|
409
|
+
"privacy": "private",
|
|
410
|
+
"default": "host"
|
|
356
411
|
},
|
|
357
412
|
{
|
|
358
413
|
"kind": "field",
|
|
359
|
-
"name": "
|
|
414
|
+
"name": "config",
|
|
360
415
|
"type": {
|
|
361
|
-
"text": "
|
|
416
|
+
"text": "AriaKeyboardAccordionConfig"
|
|
362
417
|
},
|
|
363
|
-
"privacy": "
|
|
364
|
-
"readonly": true
|
|
418
|
+
"privacy": "private"
|
|
365
419
|
},
|
|
366
420
|
{
|
|
367
421
|
"kind": "method",
|
|
368
|
-
"name": "
|
|
422
|
+
"name": "setConfig",
|
|
369
423
|
"parameters": [
|
|
370
424
|
{
|
|
371
|
-
"name": "
|
|
425
|
+
"name": "config",
|
|
372
426
|
"type": {
|
|
373
|
-
"text": "
|
|
427
|
+
"text": "AriaKeyboardAccordionConfig"
|
|
374
428
|
}
|
|
375
429
|
}
|
|
376
430
|
]
|
|
377
431
|
},
|
|
378
432
|
{
|
|
379
433
|
"kind": "method",
|
|
380
|
-
"name": "
|
|
381
|
-
"parameters": [
|
|
382
|
-
{
|
|
383
|
-
"name": "element",
|
|
384
|
-
"type": {
|
|
385
|
-
"text": "HTMLElement"
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
]
|
|
434
|
+
"name": "hostDisconnected"
|
|
389
435
|
},
|
|
390
436
|
{
|
|
391
437
|
"kind": "method",
|
|
392
438
|
"name": "getActiveElement",
|
|
393
|
-
"privacy": "
|
|
439
|
+
"privacy": "private",
|
|
394
440
|
"return": {
|
|
395
441
|
"type": {
|
|
396
|
-
"text": "
|
|
442
|
+
"text": "HTMLElement | null"
|
|
397
443
|
}
|
|
398
444
|
}
|
|
399
445
|
},
|
|
400
446
|
{
|
|
401
|
-
"kind": "
|
|
402
|
-
"name": "
|
|
403
|
-
"
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
"type": {
|
|
412
|
-
"text": "boolean"
|
|
413
|
-
},
|
|
414
|
-
"privacy": "protected",
|
|
415
|
-
"readonly": true
|
|
447
|
+
"kind": "method",
|
|
448
|
+
"name": "handleKeyDown",
|
|
449
|
+
"parameters": [
|
|
450
|
+
{
|
|
451
|
+
"name": "event",
|
|
452
|
+
"type": {
|
|
453
|
+
"text": "KeyboardEvent"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
]
|
|
416
457
|
}
|
|
417
|
-
]
|
|
418
|
-
"superclass": {
|
|
419
|
-
"name": "LitElement",
|
|
420
|
-
"package": "lit"
|
|
421
|
-
},
|
|
422
|
-
"customElement": true
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"kind": "variable",
|
|
426
|
-
"name": "BaseLocalizedComponent"
|
|
458
|
+
]
|
|
427
459
|
}
|
|
428
460
|
],
|
|
429
461
|
"exports": [
|
|
430
462
|
{
|
|
431
463
|
"kind": "js",
|
|
432
|
-
"name": "
|
|
433
|
-
"declaration": {
|
|
434
|
-
"name": "BaseComponent",
|
|
435
|
-
"module": "src/base-component/base-component.ts"
|
|
436
|
-
}
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"kind": "js",
|
|
440
|
-
"name": "BaseLocalizedComponent",
|
|
464
|
+
"name": "AriaKeyboardAccordionController",
|
|
441
465
|
"declaration": {
|
|
442
|
-
"name": "
|
|
443
|
-
"module": "src/
|
|
466
|
+
"name": "AriaKeyboardAccordionController",
|
|
467
|
+
"module": "src/controllers/aria-keyboard-accordion-controller.ts"
|
|
444
468
|
}
|
|
445
469
|
}
|
|
446
470
|
]
|
|
447
471
|
},
|
|
448
472
|
{
|
|
449
473
|
"kind": "javascript-module",
|
|
450
|
-
"path": "src/controllers/aria-keyboard-
|
|
474
|
+
"path": "src/controllers/aria-keyboard-list-controller.ts",
|
|
451
475
|
"declarations": [
|
|
452
476
|
{
|
|
453
477
|
"kind": "class",
|
|
454
478
|
"description": "",
|
|
455
|
-
"name": "
|
|
479
|
+
"name": "AriaKeyboardListController",
|
|
456
480
|
"members": [
|
|
457
481
|
{
|
|
458
482
|
"kind": "field",
|
|
@@ -467,7 +491,7 @@
|
|
|
467
491
|
"kind": "field",
|
|
468
492
|
"name": "config",
|
|
469
493
|
"type": {
|
|
470
|
-
"text": "
|
|
494
|
+
"text": "AriaKeyboardConfig"
|
|
471
495
|
},
|
|
472
496
|
"privacy": "private"
|
|
473
497
|
},
|
|
@@ -478,7 +502,7 @@
|
|
|
478
502
|
{
|
|
479
503
|
"name": "config",
|
|
480
504
|
"type": {
|
|
481
|
-
"text": "
|
|
505
|
+
"text": "AriaKeyboardConfig"
|
|
482
506
|
}
|
|
483
507
|
}
|
|
484
508
|
]
|
|
@@ -515,22 +539,22 @@
|
|
|
515
539
|
"exports": [
|
|
516
540
|
{
|
|
517
541
|
"kind": "js",
|
|
518
|
-
"name": "
|
|
542
|
+
"name": "default",
|
|
519
543
|
"declaration": {
|
|
520
|
-
"name": "
|
|
521
|
-
"module": "src/controllers/aria-keyboard-
|
|
544
|
+
"name": "AriaKeyboardListController",
|
|
545
|
+
"module": "src/controllers/aria-keyboard-list-controller.ts"
|
|
522
546
|
}
|
|
523
547
|
}
|
|
524
548
|
]
|
|
525
549
|
},
|
|
526
550
|
{
|
|
527
551
|
"kind": "javascript-module",
|
|
528
|
-
"path": "src/controllers/
|
|
552
|
+
"path": "src/controllers/collapse-controller.ts",
|
|
529
553
|
"declarations": [
|
|
530
554
|
{
|
|
531
555
|
"kind": "class",
|
|
532
556
|
"description": "",
|
|
533
|
-
"name": "
|
|
557
|
+
"name": "CollapseAnimationController",
|
|
534
558
|
"members": [
|
|
535
559
|
{
|
|
536
560
|
"kind": "field",
|
|
@@ -543,46 +567,102 @@
|
|
|
543
567
|
},
|
|
544
568
|
{
|
|
545
569
|
"kind": "field",
|
|
546
|
-
"name": "
|
|
570
|
+
"name": "animating",
|
|
547
571
|
"type": {
|
|
548
|
-
"text": "
|
|
572
|
+
"text": "WeakSet<HTMLElement>"
|
|
549
573
|
},
|
|
550
|
-
"privacy": "private"
|
|
574
|
+
"privacy": "private",
|
|
575
|
+
"default": "new WeakSet()"
|
|
551
576
|
},
|
|
552
577
|
{
|
|
553
578
|
"kind": "method",
|
|
554
|
-
"name": "
|
|
579
|
+
"name": "hostDisconnected"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"kind": "method",
|
|
583
|
+
"name": "toggle",
|
|
584
|
+
"return": {
|
|
585
|
+
"type": {
|
|
586
|
+
"text": "void"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
555
589
|
"parameters": [
|
|
556
590
|
{
|
|
557
|
-
"name": "
|
|
591
|
+
"name": "element",
|
|
558
592
|
"type": {
|
|
559
|
-
"text": "
|
|
593
|
+
"text": "HTMLElement"
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "triggerElement",
|
|
598
|
+
"optional": true,
|
|
599
|
+
"type": {
|
|
600
|
+
"text": "HTMLElement"
|
|
560
601
|
}
|
|
561
602
|
}
|
|
562
603
|
]
|
|
563
604
|
},
|
|
564
605
|
{
|
|
565
606
|
"kind": "method",
|
|
566
|
-
"name": "
|
|
607
|
+
"name": "show",
|
|
608
|
+
"return": {
|
|
609
|
+
"type": {
|
|
610
|
+
"text": "void"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"parameters": [
|
|
614
|
+
{
|
|
615
|
+
"name": "element",
|
|
616
|
+
"type": {
|
|
617
|
+
"text": "HTMLElement"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "triggerElement",
|
|
622
|
+
"optional": true,
|
|
623
|
+
"type": {
|
|
624
|
+
"text": "HTMLElement"
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
]
|
|
567
628
|
},
|
|
568
629
|
{
|
|
569
630
|
"kind": "method",
|
|
570
|
-
"name": "
|
|
571
|
-
"privacy": "private",
|
|
631
|
+
"name": "hide",
|
|
572
632
|
"return": {
|
|
573
633
|
"type": {
|
|
574
|
-
"text": "
|
|
634
|
+
"text": "void"
|
|
575
635
|
}
|
|
576
|
-
}
|
|
636
|
+
},
|
|
637
|
+
"parameters": [
|
|
638
|
+
{
|
|
639
|
+
"name": "element",
|
|
640
|
+
"type": {
|
|
641
|
+
"text": "HTMLElement"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "triggerElement",
|
|
646
|
+
"optional": true,
|
|
647
|
+
"type": {
|
|
648
|
+
"text": "HTMLElement"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
]
|
|
577
652
|
},
|
|
578
653
|
{
|
|
579
654
|
"kind": "method",
|
|
580
|
-
"name": "
|
|
655
|
+
"name": "isOpen",
|
|
656
|
+
"return": {
|
|
657
|
+
"type": {
|
|
658
|
+
"text": "boolean"
|
|
659
|
+
}
|
|
660
|
+
},
|
|
581
661
|
"parameters": [
|
|
582
662
|
{
|
|
583
|
-
"name": "
|
|
663
|
+
"name": "element",
|
|
584
664
|
"type": {
|
|
585
|
-
"text": "
|
|
665
|
+
"text": "HTMLElement"
|
|
586
666
|
}
|
|
587
667
|
}
|
|
588
668
|
]
|
|
@@ -593,48 +673,321 @@
|
|
|
593
673
|
"exports": [
|
|
594
674
|
{
|
|
595
675
|
"kind": "js",
|
|
596
|
-
"name": "
|
|
676
|
+
"name": "CollapseAnimationController",
|
|
597
677
|
"declaration": {
|
|
598
|
-
"name": "
|
|
599
|
-
"module": "src/controllers/
|
|
678
|
+
"name": "CollapseAnimationController",
|
|
679
|
+
"module": "src/controllers/collapse-controller.ts"
|
|
600
680
|
}
|
|
601
681
|
}
|
|
602
682
|
]
|
|
603
683
|
},
|
|
604
684
|
{
|
|
605
685
|
"kind": "javascript-module",
|
|
606
|
-
"path": "src/controllers/
|
|
686
|
+
"path": "src/controllers/focus-trap-controller.ts",
|
|
607
687
|
"declarations": [
|
|
608
688
|
{
|
|
609
689
|
"kind": "class",
|
|
610
|
-
"description": "",
|
|
611
|
-
"name": "
|
|
690
|
+
"description": "Safari/VoiceOver iOS workarounds catalogue — why timers exist here:\n\n1. `activate()` rAF + setTimeout(50): Safari does not reliably update the VoiceOver\n accessibility tree synchronously. rAF ensures the element is painted before we\n attempt to focus it. setTimeout(50) yields 50ms so VoiceOver can settle its\n accessibility tree before announcing the newly focused element.\n Empirically, VoiceOver iOS needs 100–300ms; the animated path in it-modal already\n provides ~316ms naturally via animation.finished, so the 50ms here only truly\n matters for the no-animation / prefers-reduced-motion path.\n\n2. `_restoreFocus()` setTimeout(0): Same settle reason on close. The caller\n (it-modal finishHide) adds a belt-and-suspenders 20ms setTimeout; _restoreFocus\n is skipped via { skipFocusRestore: true } in that case to avoid double-focus.\n\n3. `activate()` iOS body-focus fallback: On iOS Safari, tapping a button does not\n reliably move document.activeElement away from body. We fall back to getTrigger()\n so _previousActiveElement is always a real DOM element to restore focus to on close.\n\nThere is no WebKit/Safari API to detect when VoiceOver has settled its accessibility\ntree. setTimeout-based workarounds are the same pattern used by Bootstrap 5, the\nfocus-trap npm package, and a11y-dialog.",
|
|
691
|
+
"name": "FocusTrapController",
|
|
612
692
|
"members": [
|
|
613
693
|
{
|
|
614
694
|
"kind": "field",
|
|
615
695
|
"name": "host",
|
|
616
696
|
"type": {
|
|
617
|
-
"text": "ReactiveControllerHost"
|
|
697
|
+
"text": "ReactiveControllerHost & HTMLElement"
|
|
618
698
|
},
|
|
619
699
|
"privacy": "private",
|
|
620
700
|
"default": "host"
|
|
621
701
|
},
|
|
622
702
|
{
|
|
623
703
|
"kind": "field",
|
|
624
|
-
"name": "
|
|
704
|
+
"name": "config",
|
|
625
705
|
"type": {
|
|
626
|
-
"text": "
|
|
706
|
+
"text": "FocusTrapConfig"
|
|
707
|
+
},
|
|
708
|
+
"privacy": "private",
|
|
709
|
+
"default": "config"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"kind": "field",
|
|
713
|
+
"name": "observer",
|
|
714
|
+
"type": {
|
|
715
|
+
"text": "MutationObserver | null"
|
|
716
|
+
},
|
|
717
|
+
"privacy": "private",
|
|
718
|
+
"default": "null"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"kind": "field",
|
|
722
|
+
"name": "_isActive",
|
|
723
|
+
"type": {
|
|
724
|
+
"text": "boolean"
|
|
725
|
+
},
|
|
726
|
+
"privacy": "private",
|
|
727
|
+
"default": "false"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"kind": "field",
|
|
731
|
+
"name": "_previousActiveElement",
|
|
732
|
+
"type": {
|
|
733
|
+
"text": "HTMLElement | null"
|
|
734
|
+
},
|
|
735
|
+
"privacy": "private",
|
|
736
|
+
"default": "null"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"kind": "field",
|
|
740
|
+
"name": "_focusableElements",
|
|
741
|
+
"type": {
|
|
742
|
+
"text": "HTMLElement[]"
|
|
743
|
+
},
|
|
744
|
+
"privacy": "private",
|
|
745
|
+
"default": "[]"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"kind": "field",
|
|
749
|
+
"name": "_first",
|
|
750
|
+
"type": {
|
|
751
|
+
"text": "HTMLElement | undefined"
|
|
752
|
+
},
|
|
753
|
+
"privacy": "private"
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
"kind": "field",
|
|
757
|
+
"name": "_last",
|
|
758
|
+
"type": {
|
|
759
|
+
"text": "HTMLElement | undefined"
|
|
760
|
+
},
|
|
761
|
+
"privacy": "private"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"kind": "field",
|
|
765
|
+
"name": "_lastKnownFocusIndex",
|
|
766
|
+
"type": {
|
|
767
|
+
"text": "number"
|
|
768
|
+
},
|
|
769
|
+
"privacy": "private",
|
|
770
|
+
"default": "-1",
|
|
771
|
+
"description": "Last known index resolved from real focusin events inside the trap.\nUsed as a fallback when assistive tech retargeting makes activeElement\ntemporarily unmappable during Tab navigation."
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"kind": "field",
|
|
775
|
+
"name": "_pendingFocusTimer",
|
|
776
|
+
"type": {
|
|
777
|
+
"text": "ReturnType<typeof setTimeout> | null"
|
|
778
|
+
},
|
|
779
|
+
"privacy": "private",
|
|
780
|
+
"default": "null",
|
|
781
|
+
"description": "Timer ID for the focus call scheduled inside activate(). Cancelled by deactivate()\nto prevent focus firing after the trap has been torn down (fast open/close, unmount)."
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"kind": "field",
|
|
785
|
+
"name": "FOCUSABLE_SELECTORS",
|
|
786
|
+
"privacy": "private",
|
|
787
|
+
"static": true,
|
|
788
|
+
"readonly": true
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"kind": "field",
|
|
792
|
+
"name": "NATIVE_FOCUSABLE_SELECTORS",
|
|
793
|
+
"privacy": "private",
|
|
794
|
+
"static": true,
|
|
795
|
+
"readonly": true
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"kind": "field",
|
|
799
|
+
"name": "MANAGED_HOST_SELECTORS",
|
|
800
|
+
"privacy": "private",
|
|
801
|
+
"static": true,
|
|
802
|
+
"readonly": true
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"kind": "field",
|
|
806
|
+
"name": "MANAGED_MENU_HOST_SELECTORS",
|
|
807
|
+
"privacy": "private",
|
|
808
|
+
"static": true,
|
|
809
|
+
"readonly": true
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"kind": "method",
|
|
813
|
+
"name": "getManagedHostAncestor",
|
|
814
|
+
"privacy": "private",
|
|
815
|
+
"static": true,
|
|
816
|
+
"return": {
|
|
817
|
+
"type": {
|
|
818
|
+
"text": "HTMLElement | null"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"parameters": [
|
|
822
|
+
{
|
|
823
|
+
"name": "element",
|
|
824
|
+
"type": {
|
|
825
|
+
"text": "HTMLElement"
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"kind": "method",
|
|
832
|
+
"name": "isInsideManagedHost",
|
|
833
|
+
"privacy": "private",
|
|
834
|
+
"static": true,
|
|
835
|
+
"return": {
|
|
836
|
+
"type": {
|
|
837
|
+
"text": "boolean"
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"parameters": [
|
|
841
|
+
{
|
|
842
|
+
"name": "element",
|
|
843
|
+
"type": {
|
|
844
|
+
"text": "HTMLElement"
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
]
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"kind": "method",
|
|
851
|
+
"name": "getManagedMenuHostAncestor",
|
|
852
|
+
"privacy": "private",
|
|
853
|
+
"static": true,
|
|
854
|
+
"return": {
|
|
855
|
+
"type": {
|
|
856
|
+
"text": "HTMLElement | null"
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"parameters": [
|
|
860
|
+
{
|
|
861
|
+
"name": "element",
|
|
862
|
+
"type": {
|
|
863
|
+
"text": "HTMLElement"
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
]
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"kind": "method",
|
|
870
|
+
"name": "collectFocusableCandidates",
|
|
871
|
+
"privacy": "private",
|
|
872
|
+
"static": true,
|
|
873
|
+
"return": {
|
|
874
|
+
"type": {
|
|
875
|
+
"text": "void"
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"parameters": [
|
|
879
|
+
{
|
|
880
|
+
"name": "root",
|
|
881
|
+
"type": {
|
|
882
|
+
"text": "ParentNode"
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"name": "candidates",
|
|
887
|
+
"type": {
|
|
888
|
+
"text": "HTMLElement[]"
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "trigger",
|
|
893
|
+
"type": {
|
|
894
|
+
"text": "HTMLElement | ShadowRoot | null"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"name": "visited",
|
|
899
|
+
"type": {
|
|
900
|
+
"text": "Set<Node>"
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
]
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "method",
|
|
907
|
+
"name": "getFirstFocusableInShadow",
|
|
908
|
+
"privacy": "private",
|
|
909
|
+
"static": true,
|
|
910
|
+
"return": {
|
|
911
|
+
"type": {
|
|
912
|
+
"text": "HTMLElement | null"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"parameters": [
|
|
916
|
+
{
|
|
917
|
+
"name": "host",
|
|
918
|
+
"type": {
|
|
919
|
+
"text": "HTMLElement"
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
]
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"kind": "method",
|
|
926
|
+
"name": "focusCandidate",
|
|
927
|
+
"privacy": "private",
|
|
928
|
+
"static": true,
|
|
929
|
+
"return": {
|
|
930
|
+
"type": {
|
|
931
|
+
"text": "void"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"parameters": [
|
|
935
|
+
{
|
|
936
|
+
"name": "target",
|
|
937
|
+
"type": {
|
|
938
|
+
"text": "HTMLElement | undefined"
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
]
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"kind": "method",
|
|
945
|
+
"name": "isFocusable",
|
|
946
|
+
"privacy": "private",
|
|
947
|
+
"static": true,
|
|
948
|
+
"return": {
|
|
949
|
+
"type": {
|
|
950
|
+
"text": "boolean"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
"parameters": [
|
|
954
|
+
{
|
|
955
|
+
"name": "el",
|
|
956
|
+
"type": {
|
|
957
|
+
"text": "HTMLElement"
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
],
|
|
961
|
+
"description": "Verifica se un elemento è effettivamente focusabile e tabbabile.\nElementi con tabindex=\"-1\" sono focusabili programmaticamente ma non tabbabili."
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"kind": "method",
|
|
965
|
+
"name": "hostConnected"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"kind": "method",
|
|
969
|
+
"name": "hostDisconnected"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"kind": "field",
|
|
973
|
+
"name": "isActive",
|
|
974
|
+
"type": {
|
|
975
|
+
"text": "boolean"
|
|
627
976
|
},
|
|
628
|
-
"
|
|
629
|
-
"default": "new WeakSet()"
|
|
977
|
+
"readonly": true
|
|
630
978
|
},
|
|
631
979
|
{
|
|
632
980
|
"kind": "method",
|
|
633
|
-
"name": "
|
|
981
|
+
"name": "activate",
|
|
982
|
+
"return": {
|
|
983
|
+
"type": {
|
|
984
|
+
"text": "void"
|
|
985
|
+
}
|
|
986
|
+
}
|
|
634
987
|
},
|
|
635
988
|
{
|
|
636
989
|
"kind": "method",
|
|
637
|
-
"name": "
|
|
990
|
+
"name": "deactivate",
|
|
638
991
|
"return": {
|
|
639
992
|
"type": {
|
|
640
993
|
"text": "void"
|
|
@@ -642,84 +995,92 @@
|
|
|
642
995
|
},
|
|
643
996
|
"parameters": [
|
|
644
997
|
{
|
|
645
|
-
"name": "
|
|
646
|
-
"type": {
|
|
647
|
-
"text": "HTMLElement"
|
|
648
|
-
}
|
|
649
|
-
},
|
|
650
|
-
{
|
|
651
|
-
"name": "triggerElement",
|
|
998
|
+
"name": "options",
|
|
652
999
|
"optional": true,
|
|
653
1000
|
"type": {
|
|
654
|
-
"text": "
|
|
1001
|
+
"text": "{ skipFocusRestore?: boolean }"
|
|
655
1002
|
}
|
|
656
1003
|
}
|
|
657
1004
|
]
|
|
658
1005
|
},
|
|
659
1006
|
{
|
|
660
1007
|
"kind": "method",
|
|
661
|
-
"name": "
|
|
1008
|
+
"name": "updateFocusableElements",
|
|
662
1009
|
"return": {
|
|
663
1010
|
"type": {
|
|
664
1011
|
"text": "void"
|
|
665
1012
|
}
|
|
666
1013
|
},
|
|
667
|
-
"
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
"name": "triggerElement",
|
|
676
|
-
"optional": true,
|
|
677
|
-
"type": {
|
|
678
|
-
"text": "HTMLElement"
|
|
679
|
-
}
|
|
1014
|
+
"description": "Aggiorna la lista degli elementi focusabili.\nChiamare dopo modifiche al DOM."
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"kind": "method",
|
|
1018
|
+
"name": "focusFirst",
|
|
1019
|
+
"return": {
|
|
1020
|
+
"type": {
|
|
1021
|
+
"text": "void"
|
|
680
1022
|
}
|
|
681
|
-
|
|
1023
|
+
},
|
|
1024
|
+
"description": "Sposta il focus sul primo elemento focusabile"
|
|
682
1025
|
},
|
|
683
1026
|
{
|
|
684
1027
|
"kind": "method",
|
|
685
|
-
"name": "
|
|
1028
|
+
"name": "focusLast",
|
|
686
1029
|
"return": {
|
|
687
1030
|
"type": {
|
|
688
1031
|
"text": "void"
|
|
689
1032
|
}
|
|
690
1033
|
},
|
|
691
|
-
"
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
{
|
|
699
|
-
"
|
|
700
|
-
"optional": true,
|
|
701
|
-
"type": {
|
|
702
|
-
"text": "HTMLElement"
|
|
703
|
-
}
|
|
1034
|
+
"description": "Sposta il focus sull'ultimo elemento focusabile"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "method",
|
|
1038
|
+
"name": "getActiveElement",
|
|
1039
|
+
"static": true,
|
|
1040
|
+
"return": {
|
|
1041
|
+
"type": {
|
|
1042
|
+
"text": "HTMLElement | null"
|
|
704
1043
|
}
|
|
705
|
-
|
|
1044
|
+
},
|
|
1045
|
+
"description": "Ritorna l'elemento attivo corrente, attraversando shadow DOM e slot"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"kind": "field",
|
|
1049
|
+
"name": "_handleKeyDown",
|
|
1050
|
+
"privacy": "private"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "field",
|
|
1054
|
+
"name": "_handleFocusIn",
|
|
1055
|
+
"privacy": "private"
|
|
706
1056
|
},
|
|
707
1057
|
{
|
|
708
1058
|
"kind": "method",
|
|
709
|
-
"name": "
|
|
1059
|
+
"name": "_handleTab",
|
|
1060
|
+
"privacy": "private",
|
|
710
1061
|
"return": {
|
|
711
1062
|
"type": {
|
|
712
|
-
"text": "
|
|
1063
|
+
"text": "void"
|
|
713
1064
|
}
|
|
714
1065
|
},
|
|
715
1066
|
"parameters": [
|
|
716
1067
|
{
|
|
717
|
-
"name": "
|
|
1068
|
+
"name": "event",
|
|
718
1069
|
"type": {
|
|
719
|
-
"text": "
|
|
1070
|
+
"text": "KeyboardEvent"
|
|
720
1071
|
}
|
|
721
1072
|
}
|
|
722
1073
|
]
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"kind": "method",
|
|
1077
|
+
"name": "_restoreFocus",
|
|
1078
|
+
"privacy": "private",
|
|
1079
|
+
"return": {
|
|
1080
|
+
"type": {
|
|
1081
|
+
"text": "void"
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
723
1084
|
}
|
|
724
1085
|
]
|
|
725
1086
|
}
|
|
@@ -727,10 +1088,10 @@
|
|
|
727
1088
|
"exports": [
|
|
728
1089
|
{
|
|
729
1090
|
"kind": "js",
|
|
730
|
-
"name": "
|
|
1091
|
+
"name": "FocusTrapController",
|
|
731
1092
|
"declaration": {
|
|
732
|
-
"name": "
|
|
733
|
-
"module": "src/controllers/
|
|
1093
|
+
"name": "FocusTrapController",
|
|
1094
|
+
"module": "src/controllers/focus-trap-controller.ts"
|
|
734
1095
|
}
|
|
735
1096
|
}
|
|
736
1097
|
]
|
|
@@ -757,10 +1118,10 @@
|
|
|
757
1118
|
"kind": "field",
|
|
758
1119
|
"name": "config",
|
|
759
1120
|
"type": {
|
|
760
|
-
"text": "RovingTabindexConfig<T> & {\n wrap: boolean;\n direction: 'horizontal' | 'vertical' | 'both';\n selectOnFocus: boolean;\n skipItem: (item: T) => boolean;\n }"
|
|
1121
|
+
"text": "RovingTabindexConfig<T> & {\n wrap: boolean;\n direction: 'horizontal' | 'vertical' | 'both' | (() => 'horizontal' | 'vertical' | 'both');\n selectOnFocus: boolean;\n selectOnHomeEnd: boolean;\n skipItem: (item: T) => boolean;\n }"
|
|
761
1122
|
},
|
|
762
1123
|
"privacy": "private",
|
|
763
|
-
"default": "{ wrap: true, direction: 'both', selectOnFocus: false, skipItem: (item) => item.hasAttribute('disabled') || (item as any).disabled === true, ...config, }"
|
|
1124
|
+
"default": "{ wrap: true, direction: 'both', selectOnFocus: false, selectOnHomeEnd: false, skipItem: (item) => item.hasAttribute('disabled') || (item as any).disabled === true, ...config, }"
|
|
764
1125
|
},
|
|
765
1126
|
{
|
|
766
1127
|
"kind": "method",
|
|
@@ -940,6 +1301,129 @@
|
|
|
940
1301
|
}
|
|
941
1302
|
]
|
|
942
1303
|
},
|
|
1304
|
+
{
|
|
1305
|
+
"kind": "javascript-module",
|
|
1306
|
+
"path": "src/base-component/base-component.ts",
|
|
1307
|
+
"declarations": [
|
|
1308
|
+
{
|
|
1309
|
+
"kind": "class",
|
|
1310
|
+
"description": "Factory function per creare una base class estendibile\ncon stili personalizzati.",
|
|
1311
|
+
"name": "BaseComponent",
|
|
1312
|
+
"members": [
|
|
1313
|
+
{
|
|
1314
|
+
"kind": "field",
|
|
1315
|
+
"name": "logger",
|
|
1316
|
+
"type": {
|
|
1317
|
+
"text": "Logger"
|
|
1318
|
+
},
|
|
1319
|
+
"privacy": "protected",
|
|
1320
|
+
"default": "new Logger(this.tagName.toLowerCase())"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"kind": "field",
|
|
1324
|
+
"name": "composeClass",
|
|
1325
|
+
"privacy": "protected",
|
|
1326
|
+
"default": "clsx"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"kind": "field",
|
|
1330
|
+
"name": "_id",
|
|
1331
|
+
"type": {
|
|
1332
|
+
"text": "string | undefined"
|
|
1333
|
+
},
|
|
1334
|
+
"privacy": "protected"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"kind": "field",
|
|
1338
|
+
"name": "_ariaAttributes",
|
|
1339
|
+
"type": {
|
|
1340
|
+
"text": "Record<string, string>"
|
|
1341
|
+
},
|
|
1342
|
+
"privacy": "protected",
|
|
1343
|
+
"readonly": true
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"kind": "method",
|
|
1347
|
+
"name": "generateId",
|
|
1348
|
+
"parameters": [
|
|
1349
|
+
{
|
|
1350
|
+
"name": "prefix",
|
|
1351
|
+
"type": {
|
|
1352
|
+
"text": "string"
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"kind": "method",
|
|
1359
|
+
"name": "addFocus",
|
|
1360
|
+
"parameters": [
|
|
1361
|
+
{
|
|
1362
|
+
"name": "element",
|
|
1363
|
+
"type": {
|
|
1364
|
+
"text": "HTMLElement"
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
]
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"kind": "method",
|
|
1371
|
+
"name": "getActiveElement",
|
|
1372
|
+
"privacy": "protected",
|
|
1373
|
+
"return": {
|
|
1374
|
+
"type": {
|
|
1375
|
+
"text": "T | null"
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"kind": "field",
|
|
1381
|
+
"name": "focusElement",
|
|
1382
|
+
"type": {
|
|
1383
|
+
"text": "HTMLElement | null"
|
|
1384
|
+
},
|
|
1385
|
+
"readonly": true
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"kind": "field",
|
|
1389
|
+
"name": "prefersReducedMotion",
|
|
1390
|
+
"type": {
|
|
1391
|
+
"text": "boolean"
|
|
1392
|
+
},
|
|
1393
|
+
"privacy": "protected",
|
|
1394
|
+
"readonly": true
|
|
1395
|
+
}
|
|
1396
|
+
],
|
|
1397
|
+
"superclass": {
|
|
1398
|
+
"name": "LitElement",
|
|
1399
|
+
"package": "lit"
|
|
1400
|
+
},
|
|
1401
|
+
"customElement": true
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"kind": "variable",
|
|
1405
|
+
"name": "BaseLocalizedComponent"
|
|
1406
|
+
}
|
|
1407
|
+
],
|
|
1408
|
+
"exports": [
|
|
1409
|
+
{
|
|
1410
|
+
"kind": "js",
|
|
1411
|
+
"name": "BaseComponent",
|
|
1412
|
+
"declaration": {
|
|
1413
|
+
"name": "BaseComponent",
|
|
1414
|
+
"module": "src/base-component/base-component.ts"
|
|
1415
|
+
}
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"kind": "js",
|
|
1419
|
+
"name": "BaseLocalizedComponent",
|
|
1420
|
+
"declaration": {
|
|
1421
|
+
"name": "BaseLocalizedComponent",
|
|
1422
|
+
"module": "src/base-component/base-component.ts"
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
]
|
|
1426
|
+
},
|
|
943
1427
|
{
|
|
944
1428
|
"kind": "javascript-module",
|
|
945
1429
|
"path": "src/directives/setAttributes.ts",
|
|
@@ -1125,6 +1609,16 @@
|
|
|
1125
1609
|
"attribute": "required",
|
|
1126
1610
|
"reflects": true
|
|
1127
1611
|
},
|
|
1612
|
+
{
|
|
1613
|
+
"kind": "field",
|
|
1614
|
+
"name": "isInGroup",
|
|
1615
|
+
"type": {
|
|
1616
|
+
"text": "boolean"
|
|
1617
|
+
},
|
|
1618
|
+
"privacy": "protected",
|
|
1619
|
+
"default": "false",
|
|
1620
|
+
"attribute": "isInGroup"
|
|
1621
|
+
},
|
|
1128
1622
|
{
|
|
1129
1623
|
"kind": "field",
|
|
1130
1624
|
"name": "validity",
|
|
@@ -1146,24 +1640,24 @@
|
|
|
1146
1640
|
},
|
|
1147
1641
|
{
|
|
1148
1642
|
"kind": "method",
|
|
1149
|
-
"name": "
|
|
1643
|
+
"name": "getForm",
|
|
1150
1644
|
"privacy": "public",
|
|
1151
1645
|
"return": {
|
|
1152
1646
|
"type": {
|
|
1153
|
-
"text": "
|
|
1647
|
+
"text": "HTMLFormElement | null"
|
|
1154
1648
|
}
|
|
1155
|
-
}
|
|
1649
|
+
},
|
|
1650
|
+
"description": "Gets the associated form, if one exists."
|
|
1156
1651
|
},
|
|
1157
1652
|
{
|
|
1158
1653
|
"kind": "method",
|
|
1159
|
-
"name": "
|
|
1654
|
+
"name": "checkValidity",
|
|
1160
1655
|
"privacy": "public",
|
|
1161
1656
|
"return": {
|
|
1162
1657
|
"type": {
|
|
1163
|
-
"text": "
|
|
1658
|
+
"text": "boolean"
|
|
1164
1659
|
}
|
|
1165
|
-
}
|
|
1166
|
-
"description": "Gets the associated form, if one exists."
|
|
1660
|
+
}
|
|
1167
1661
|
},
|
|
1168
1662
|
{
|
|
1169
1663
|
"kind": "method",
|
|
@@ -1426,6 +1920,14 @@
|
|
|
1426
1920
|
"default": "false",
|
|
1427
1921
|
"description": "If the input is required.",
|
|
1428
1922
|
"fieldName": "required"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"name": "isInGroup",
|
|
1926
|
+
"type": {
|
|
1927
|
+
"text": "boolean"
|
|
1928
|
+
},
|
|
1929
|
+
"default": "false",
|
|
1930
|
+
"fieldName": "isInGroup"
|
|
1429
1931
|
}
|
|
1430
1932
|
],
|
|
1431
1933
|
"superclass": {
|
|
@@ -1484,6 +1986,14 @@
|
|
|
1484
1986
|
},
|
|
1485
1987
|
"default": "{ form: (input) => { // If there's a form attribute, use it to find the target form by id // Controls may not always reflect the 'form' property. For example, `<it-button>` doesn't reflect. const formId = input.form; if (formId) { const root = input.getRootNode() as Document | ShadowRoot | HTMLElement; const form = root.querySelector(`#${formId}`); if (form) { return form as HTMLFormElement; } } return input.closest('form'); }, name: (input) => input.name, value: (input) => input.value, disabled: (input) => input.disabled ?? false, reportValidity: (input: FormControl) => typeof input.reportValidity === 'function' ? input.reportValidity() : true, checkValidity: (input: FormControl) => (typeof input.checkValidity === 'function' ? input.checkValidity() : true), setValue: (input, value) => { // eslint-disable-next-line no-param-reassign input.value = value as string; }, assumeInteractionOn: ['it-input'], ...options, }"
|
|
1486
1988
|
},
|
|
1989
|
+
{
|
|
1990
|
+
"kind": "field",
|
|
1991
|
+
"name": "submittedOnce",
|
|
1992
|
+
"type": {
|
|
1993
|
+
"text": "boolean"
|
|
1994
|
+
},
|
|
1995
|
+
"default": "false"
|
|
1996
|
+
},
|
|
1487
1997
|
{
|
|
1488
1998
|
"kind": "method",
|
|
1489
1999
|
"name": "hostConnected"
|
|
@@ -1630,6 +2140,10 @@
|
|
|
1630
2140
|
],
|
|
1631
2141
|
"description": "Synchronously sets the form control's validity. Call this when you know the future validity but need to update\nthe host element immediately, i.e. before Lit updates the component in the next update."
|
|
1632
2142
|
},
|
|
2143
|
+
{
|
|
2144
|
+
"kind": "method",
|
|
2145
|
+
"name": "userInteracted"
|
|
2146
|
+
},
|
|
1633
2147
|
{
|
|
1634
2148
|
"kind": "method",
|
|
1635
2149
|
"name": "updateValidity",
|
|
@@ -2070,7 +2584,7 @@
|
|
|
2070
2584
|
"type": {
|
|
2071
2585
|
"text": "DefaultTranslation"
|
|
2072
2586
|
},
|
|
2073
|
-
"default": "{ $code: 'it', $name: 'Italiano', $dir: 'ltr', validityRequired: 'Questo campo è obbligatorio.', validityPattern: 'Il valore non corrisponde al formato richiesto.', validityMinlength: 'Il valore deve essere lungo almeno {minlength} caratteri.', validityMaxlength: 'Il valore deve essere lungo al massimo {maxlength} caratteri.', }"
|
|
2587
|
+
"default": "{ $code: 'it', $name: 'Italiano', $dir: 'ltr', validityRequired: 'Questo campo è obbligatorio.', validityGroupRequired: \"Scegli almeno un'opzione\", validityPattern: 'Il valore non corrisponde al formato richiesto.', validityMinlength: 'Il valore deve essere lungo almeno {minlength} caratteri.', validityMaxlength: 'Il valore deve essere lungo al massimo {maxlength} caratteri.', }"
|
|
2074
2588
|
}
|
|
2075
2589
|
],
|
|
2076
2590
|
"exports": [
|