@nldd/design-system 0.26.1 → 0.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/custom-elements.json +4559 -1176
  2. package/dist/cdn/autoloader.js +141 -141
  3. package/dist/cdn/chunks/{accordion-DA4IlxS5.js → accordion-CCuKxlsg.js} +6 -6
  4. package/dist/cdn/chunks/{accordion-item-Ca1o93cq.js → accordion-item-Cn1UDWtD.js} +7 -7
  5. package/dist/cdn/chunks/{activity-indicator-Cj4H0Mbz.js → activity-indicator-BM_atCTY.js} +13 -13
  6. package/dist/cdn/chunks/{admonition-CdZSoO8O.js → admonition-CqDce27_.js} +11 -11
  7. package/dist/cdn/chunks/{avatar-Dhqn-Dmv.js → avatar-Dl2tOfc2.js} +18 -18
  8. package/dist/cdn/chunks/{avatar-group-B017eF-u.js → avatar-group-Br3qBaow.js} +42 -40
  9. package/dist/cdn/chunks/{badge-Bep5B0_g.js → badge-DjjAl4mn.js} +15 -15
  10. package/dist/cdn/chunks/{banner-DGpIXuE2.js → banner-s5xMqoEU.js} +16 -16
  11. package/dist/cdn/chunks/{bar-split-view-CKwJxd3e.js → bar-split-view-B6Mv_cw-.js} +8 -8
  12. package/dist/cdn/chunks/{blockquote-ChMgaOuI.js → blockquote-CRFPXI9u.js} +8 -8
  13. package/dist/cdn/chunks/{box-BRmziG-6.js → box-CSZyj31o.js} +5 -5
  14. package/dist/cdn/chunks/{breadcrumbs-BeVO8bkQ.js → breadcrumbs-DzjbOB7o.js} +13 -13
  15. package/dist/cdn/chunks/{button-cHBkq_s7.js → button-B7OGt_dX.js} +53 -54
  16. package/dist/cdn/chunks/{button-bar-CLxOdalJ.js → button-bar-CvDkir22.js} +8 -8
  17. package/dist/cdn/chunks/{button-group-BIvKtEIX.js → button-group-Bi3dr9Go.js} +6 -6
  18. package/dist/cdn/chunks/{card-B5gp9Zly.js → card-DceO3pMp.js} +10 -10
  19. package/dist/cdn/chunks/{cell-D4Nrd5Z9.js → cell-Bgp9n0yQ.js} +13 -13
  20. package/dist/cdn/chunks/{checkbox-CeLTJhAc.js → checkbox-C1F0Q3g8.js} +26 -43
  21. package/dist/cdn/chunks/{checkbox-field-C8cU8fuf.js → checkbox-field-DGKc530M.js} +35 -43
  22. package/dist/cdn/chunks/checkbox-group-x9Ua2a06.js +91 -0
  23. package/dist/cdn/chunks/choice-group-AZsqoheP.js +64 -0
  24. package/dist/cdn/chunks/{class-map-xzscTu4B.js → class-map-CAVKoa31.js} +1 -1
  25. package/dist/cdn/chunks/{code-editor-BNhlXTSl.js → code-editor-C0U5qVW2.js} +11 -11
  26. package/dist/cdn/chunks/{code-viewer-D_JwouYO.js → code-viewer-C_DzKPSv.js} +17 -17
  27. package/dist/cdn/chunks/{codemirror-input-DJ0wgYrc.js → codemirror-input-BmIE22aU.js} +5 -5
  28. package/dist/cdn/chunks/{collection-BXvz_OtU.js → collection-BZK9NzrQ.js} +19 -19
  29. package/dist/cdn/chunks/{combo-box-8kbmoStb.js → combo-box-DJrQ-2Wr.js} +69 -87
  30. package/dist/cdn/chunks/{container-Dq-2uHd5.js → container-BT96Wlz6.js} +48 -48
  31. package/dist/cdn/chunks/{custom-element-DeaCQ2NP.js → custom-element-D5bstafw.js} +2 -2
  32. package/dist/cdn/chunks/{date-field-CQg1_73u.js → date-field-B8GcDwkD.js} +33 -40
  33. package/dist/cdn/chunks/{date-picker-CTMxGOiA.js → date-picker-Byi-fA0A.js} +17 -17
  34. package/dist/cdn/chunks/{decorate-CCYde2ES.js → decorate-Cjb3GqlZ.js} +1 -1
  35. package/dist/cdn/chunks/deep-active-element-DgiHjYGG.js +7 -0
  36. package/dist/cdn/chunks/{described-by-mixin-BYFim7aO.js → described-by-mixin-ZWpyWEyB.js} +2 -2
  37. package/dist/cdn/chunks/{description-cell-GcVeCz2_.js → description-cell-DRXRiZGw.js} +12 -12
  38. package/dist/cdn/chunks/{dev-checks-CSlbfDuF.js → dev-checks-BYWMWeug.js} +931 -931
  39. package/dist/cdn/chunks/{directive-helpers-DgaADFyY.js → directive-helpers-mh9SNf0j.js} +1 -1
  40. package/dist/cdn/chunks/{dist-5vPsM2aV.js → dist-1yCEk2Pe.js} +1 -1
  41. package/dist/cdn/chunks/{dist-1OQdP4ho.js → dist-BBtyEGZQ.js} +3 -3
  42. package/dist/cdn/chunks/{dist-Da_liXcd.js → dist-BIhRNYZs.js} +3 -3
  43. package/dist/cdn/chunks/{dist-B23jHvJ5.js → dist-BfJ8w6Dz.js} +1 -1
  44. package/dist/cdn/chunks/{dist-CcpLhc4y.js → dist-BlHWe6Ns.js} +1 -1
  45. package/dist/cdn/chunks/{dist-VCymi0hs.js → dist-C4o16iKF.js} +1 -1
  46. package/dist/cdn/chunks/{dist-CyDpBAaD.js → dist-CKGgPGjj.js} +2 -2
  47. package/dist/cdn/chunks/{dist-CNy2sPTt.js → dist-CT0CdAxb.js} +2 -2
  48. package/dist/cdn/chunks/{dist-D4SViUJx.js → dist-DCzCfm9V.js} +1 -1
  49. package/dist/cdn/chunks/{dist-DLtwMUDc.js → dist-iYv1GHSb.js} +2 -2
  50. package/dist/cdn/chunks/{dist-DBxjWahH.js → dist-jyyZH0d2.js} +1 -1
  51. package/dist/cdn/chunks/{divider-8XD3xTbl.js → divider-CeAw8gBP.js} +2 -2
  52. package/dist/cdn/chunks/{document-tab-bar-RBAmckHS.js → document-tab-bar-rIsC6EZp.js} +32 -46
  53. package/dist/cdn/chunks/{dropdown-DVlxPcjr.js → dropdown-MEzKo0TQ.js} +14 -14
  54. package/dist/cdn/chunks/{file-field-BrHnFplX.js → file-field--wivtgZv.js} +42 -40
  55. package/dist/cdn/chunks/{form-DGHeGEIr.js → form-ByjlUZuR.js} +1 -1
  56. package/dist/cdn/chunks/{form-actions-CHwWKfMM.js → form-actions-YK7n_jse.js} +4 -4
  57. package/dist/cdn/chunks/form-associated-mixin-BCzChLUO.js +123 -0
  58. package/dist/cdn/chunks/{form-field-CdTSI-8h.js → form-field-y-h-k8x5.js} +11 -11
  59. package/dist/cdn/chunks/{form-section-CjECOIiZ.js → form-section-jWj88aQa.js} +1 -1
  60. package/dist/cdn/chunks/{full-bleed-section-CQgq4iGQ.js → full-bleed-section-h6CrFe8F.js} +5 -5
  61. package/dist/cdn/chunks/{hero-DhdcYt2N.js → hero-Dy1tW9gU.js} +19 -19
  62. package/dist/cdn/chunks/{icon-button-DT_Bi4Ac.js → icon-button-B0Lb2ccT.js} +37 -38
  63. package/dist/cdn/chunks/{icon-cell-C-qrZAlN.js → icon-cell-byBTzcEn.js} +10 -10
  64. package/dist/cdn/chunks/{icon-qpmEfU9B.js → icon-m8JXbN5F.js} +8 -8
  65. package/dist/cdn/chunks/{identity-DFmvuPkl.js → identity-BpUMGka9.js} +12 -12
  66. package/dist/cdn/chunks/{if-defined-BINBE69I.js → if-defined-Duzrh8bb.js} +1 -1
  67. package/dist/cdn/chunks/{image-B4M3h1xJ.js → image-DfpFBPj1.js} +21 -21
  68. package/dist/cdn/chunks/{inline-dialog-L-NvjANF.js → inline-dialog-D6CMJnYk.js} +16 -16
  69. package/dist/cdn/chunks/interest-intent-Bk3i_upv.js +63 -0
  70. package/dist/cdn/chunks/{interest-controller-Ban-3NrX.js → interest-invoker-BY95Duqo.js} +28 -38
  71. package/dist/cdn/chunks/{just-in-time-education-CWplH4r9.js → just-in-time-education-_1kTZuGb.js} +13 -13
  72. package/dist/cdn/chunks/{kanban-B6Wa-2aM.js → kanban-DFGaEwfP.js} +25 -29
  73. package/dist/cdn/chunks/{kanban-column-D2-Xq79_.js → kanban-column-Cs47JSUO.js} +10 -10
  74. package/dist/cdn/chunks/{keyboard-shortcut-Ci95olxF.js → keyboard-shortcut-4DPqQovv.js} +13 -13
  75. package/dist/cdn/chunks/{languages-C9AGuuSS.js → languages-D-97TsxL.js} +12 -12
  76. package/dist/cdn/chunks/{link-BJB2a_fG.js → link-6T0VtDWt.js} +18 -18
  77. package/dist/cdn/chunks/{link-group-aNoedLZo.js → link-group-ymcl82Ua.js} +7 -7
  78. package/dist/cdn/chunks/{list-CZWX62tH.js → list-BXpR0UzC.js} +110 -95
  79. package/dist/cdn/chunks/{list-item-DHzsbK_S.js → list-item-CyZ6uPGG.js} +50 -29
  80. package/dist/cdn/chunks/{list-item-segment-CHLlU9Gg.js → list-item-segment-BUtAy96X.js} +23 -20
  81. package/dist/cdn/chunks/{menu-bar-CJazkmY7.js → menu-bar-Cn1Nb2ir.js} +59 -60
  82. package/dist/cdn/chunks/{menu-bar-item-CSqXWNKE.js → menu-bar-item-CZR2qAzA.js} +35 -35
  83. package/dist/cdn/chunks/{menu-divider-Cn1hTpcM.js → menu-divider-dF1NvFJO.js} +3 -3
  84. package/dist/cdn/chunks/{menu-group-C71K1Vmv.js → menu-group-DW3so0Dn.js} +4 -4
  85. package/dist/cdn/chunks/{menu-item-TqBlQfI2.js → menu-item-7kb18Ypf.js} +4 -4
  86. package/dist/cdn/chunks/{menu-NGpB1SKq.js → menu-kSZLzjet.js} +101 -93
  87. package/dist/cdn/chunks/{menu.template-DthELYky.js → menu.template-cgua9dKM.js} +4 -4
  88. package/dist/cdn/chunks/{modal-dialog-0V2HsrJC.js → modal-dialog-DfKbcw9T.js} +28 -78
  89. package/dist/cdn/chunks/modal-overlay-Bx0bYzF3.js +95 -0
  90. package/dist/cdn/chunks/{multi-line-text-field-BV4uUDoK.js → multi-line-text-field-AV-vID1z.js} +28 -45
  91. package/dist/cdn/chunks/{navigation-split-view-tPhkxEVD.js → navigation-split-view-UwlSFPDE.js} +10 -10
  92. package/dist/cdn/chunks/{notification-CZccv6qx.js → notification-e5uGGh0b.js} +12 -12
  93. package/dist/cdn/chunks/{number-field-4R2blHda.js → number-field-COUmvl_s.js} +26 -32
  94. package/dist/cdn/chunks/{one-half-one-half-section-h2fLPQfP.js → one-half-one-half-section-C-AgSdm9.js} +6 -6
  95. package/dist/cdn/chunks/{one-third-two-thirds-section-mqUAH5lK.js → one-third-two-thirds-section-D1kq4IEc.js} +6 -6
  96. package/dist/cdn/chunks/{one-time-code-field-Bf_qymKd.js → one-time-code-field-BDQctC8H.js} +25 -38
  97. package/dist/cdn/chunks/overflow-menu-C67lAkP8.js +83 -0
  98. package/dist/cdn/chunks/overlay-invoker-CQpe-JGA.js +95 -0
  99. package/dist/cdn/chunks/{page-Kipfvmi6.js → page-DXEaFsfo.js} +11 -11
  100. package/dist/cdn/chunks/{page-footer-DxE966Oe.js → page-footer-DFaIlgHs.js} +13 -13
  101. package/dist/cdn/chunks/{page-section-mixin-DpF9JDpd.js → page-section-mixin-3XhS4f5q.js} +21 -21
  102. package/dist/cdn/chunks/{pagination-DUFFhaU8.js → pagination-BE3ERBNx.js} +13 -13
  103. package/dist/cdn/chunks/{password-field-DdYAVmF3.js → password-field-DjRp78HI.js} +28 -45
  104. package/dist/cdn/chunks/{popover-CRHxyhGx.js → popover-C3j0KtFh.js} +55 -64
  105. package/dist/cdn/chunks/{progress-bar-BuYsjmSo.js → progress-bar-iWFq6KS1.js} +26 -26
  106. package/dist/cdn/chunks/{progress-circle-Cvu1bfNG.js → progress-circle-BPFzTlhn.js} +24 -24
  107. package/dist/cdn/chunks/{radio-button-B_4AxWDx.js → radio-button-BMVBbe3-.js} +17 -26
  108. package/dist/cdn/chunks/{radio-button-field-D7jIg6Oi.js → radio-button-field-BqSd0JMd.js} +29 -37
  109. package/dist/cdn/chunks/radio-button-group-DZTPflZ3.js +112 -0
  110. package/dist/cdn/chunks/{render-marked-CIuiSS_8.js → render-marked-1xftlCd8.js} +1 -1
  111. package/dist/cdn/chunks/{reorder-handle-cell-DNPaZjSC.js → reorder-handle-cell-loSG6GRY.js} +7 -7
  112. package/dist/cdn/chunks/{reorder-handle-mixin-CgvWq4fF.js → reorder-handle-mixin-cLWXCdFC.js} +2 -2
  113. package/dist/cdn/chunks/{repeat-DfVuWl6o.js → repeat-CWsNVfra.js} +2 -2
  114. package/dist/cdn/chunks/{return-focus-D0fF2hjd.js → return-focus-CpwHVxYU.js} +10 -14
  115. package/dist/cdn/chunks/{rich-text-CVHlMQY6.js → rich-text-DSvI9u6v.js} +3 -3
  116. package/dist/cdn/chunks/{row-header-mixin-B25JK2B3.js → row-header-mixin-vwABKkTO.js} +2 -2
  117. package/dist/cdn/chunks/{scroll-fade-Dv57rTww.js → scroll-fade-ZNdnDF4p.js} +4 -4
  118. package/dist/cdn/chunks/{search-field-hmD_DXbG.js → search-field-CBTir8Wu.js} +33 -58
  119. package/dist/cdn/chunks/{segmented-control-e8e-jYSw.js → segmented-control-hvWn3L0J.js} +92 -103
  120. package/dist/cdn/chunks/{shadow-resets-CRdvf-Ei.js → shadow-resets-JiVlctXb.js} +2 -2
  121. package/dist/cdn/chunks/{sheet-D09y3J45.js → sheet-CnbdONF9.js} +39 -90
  122. package/dist/cdn/chunks/{shell-CV3gooGg.js → shell-BAH9okPd.js} +5 -5
  123. package/dist/cdn/chunks/{side-by-side-split-view-Ckz1C9zk.js → side-by-side-split-view-D07iBCFK.js} +8 -8
  124. package/dist/cdn/chunks/{sidebar-section-CdyD-x4t.js → sidebar-section-DAE2lrdn.js} +14 -14
  125. package/dist/cdn/chunks/{simple-section-CEf38rBZ.js → simple-section-DQZpG3nQ.js} +7 -7
  126. package/dist/cdn/chunks/{skip-link-DMRhATWw.js → skip-link-D0yYukhb.js} +7 -7
  127. package/dist/cdn/chunks/{slider-Db3FPiP6.js → slider-C-a97cAu.js} +30 -37
  128. package/dist/cdn/chunks/{spacer-BPFIYueo.js → spacer-C19W6HrX.js} +8 -8
  129. package/dist/cdn/chunks/{spacer-cell-kITa3CDV.js → spacer-cell-lRxkFSnp.js} +6 -6
  130. package/dist/cdn/chunks/{split-button-CJs9-Nha.js → split-button-38xSIAVk.js} +21 -21
  131. package/dist/cdn/chunks/{split-view-divider-lHlM1Ss8.js → split-view-divider-CViSo7s7.js} +5 -5
  132. package/dist/cdn/chunks/{split-view-pane-DlsbZtyo.js → split-view-pane-Bb1RFCNJ.js} +7 -7
  133. package/dist/cdn/chunks/{stacked-split-view-uRSVhrMd.js → stacked-split-view-Bnw5hQ5A.js} +8 -8
  134. package/dist/cdn/chunks/{static-html-BahSPV_4.js → static-html-7PckS8pf.js} +1 -1
  135. package/dist/cdn/chunks/{status-bar-DCJLVpsW.js → status-bar-D57SEB_4.js} +8 -8
  136. package/dist/cdn/chunks/{step-bar-CRR2jiyo.js → step-bar-Q_wc0vqp.js} +18 -18
  137. package/dist/cdn/chunks/{step-cell-CbtKxJNJ.js → step-cell-DU6sNjnm.js} +15 -15
  138. package/dist/cdn/chunks/{stepper-Con1_CnB.js → stepper-BM1dp44g.js} +16 -26
  139. package/dist/cdn/chunks/{style-map-uOwLerwV.js → style-map-BRs_xiW6.js} +1 -1
  140. package/dist/cdn/chunks/{swatch-picker-Bqn0eaC9.js → swatch-picker-BcRbPWVv.js} +63 -69
  141. package/dist/cdn/chunks/{switch-CMQcLEBJ.js → switch-7BZAufN0.js} +25 -42
  142. package/dist/cdn/chunks/{switch-field-D9kWq4Kw.js → switch-field-gjPTIapp.js} +19 -32
  143. package/dist/cdn/chunks/{tab-bar-DXzyZI3V.js → tab-bar-BKzbb7TE.js} +34 -29
  144. package/dist/cdn/chunks/{table-CWACLpHx.js → table-CmkkY3M1.js} +15 -15
  145. package/dist/cdn/chunks/{tag-Bo4yJbtF.js → tag-B4VfItSH.js} +11 -11
  146. package/dist/cdn/chunks/{term-CQ379ZbN.js → term-C0aNyYXz.js} +42 -39
  147. package/dist/cdn/chunks/{text-D-dFoj6N.js → text-CLuHOFQt.js} +29 -29
  148. package/dist/cdn/chunks/{text-cell-Be1hStxp.js → text-cell-Dvujh580.js} +23 -23
  149. package/dist/cdn/chunks/{text-editor-BjzQEBWm.js → text-editor-0_ZoELkA.js} +12 -12
  150. package/dist/cdn/chunks/{text-field-DA8nirp6.js → text-field-CrRBrXx0.js} +28 -45
  151. package/dist/cdn/chunks/{time-field-Dd_TxJuf.js → time-field-DUt1zvLw.js} +66 -148
  152. package/dist/cdn/chunks/{time-picker-B0-rv1qp.js → time-picker-CDzillxF.js} +119 -40
  153. package/dist/cdn/chunks/{title-DOoPdG_i.js → title-DQXyEqFW.js} +12 -12
  154. package/dist/cdn/chunks/{title-cell-BzCNOMGr.js → title-cell-CoUK6h-F.js} +23 -23
  155. package/dist/cdn/chunks/{toggle-button-9PbDHviQ.js → toggle-button-BhU5vLF8.js} +41 -54
  156. package/dist/cdn/chunks/{toggle-button-group-C-H-xp0M.js → toggle-button-group-B-0r4xZZ.js} +40 -54
  157. package/dist/cdn/chunks/{token-CMKFC3gz.js → token-CELUzY2p.js} +31 -34
  158. package/dist/cdn/chunks/{token-field-D4-XHfnG.js → token-field-C8ynyISX.js} +67 -57
  159. package/dist/cdn/chunks/{toolbar-z9OhEE5l.js → toolbar--QBCm9qO.js} +34 -78
  160. package/dist/cdn/chunks/{toolbar-item-ZYoyKOyy.js → toolbar-item-BoRhKFDR.js} +3 -3
  161. package/dist/cdn/chunks/{toolbar-title-FKtQ8ZC4.js → toolbar-title-CciXdTJR.js} +4 -4
  162. package/dist/cdn/chunks/{toolbar.styles-DDjpdCHV.js → toolbar.styles-B6kTrAfC.js} +3 -3
  163. package/dist/cdn/chunks/{tooltip-BvRNYRo3.js → tooltip-CkLC4ooQ.js} +43 -41
  164. package/dist/cdn/chunks/{top-navigation-bar-BHPQntER.js → top-navigation-bar-CGu2pn4Z.js} +29 -29
  165. package/dist/cdn/chunks/{top-title-bar-BVjegLlh.js → top-title-bar-2b-XHftB.js} +15 -15
  166. package/dist/cdn/chunks/{translations-cJjO6nQV.js → translations-D0cgmONm.js} +1 -1
  167. package/dist/cdn/chunks/{two-thirds-one-third-section-BdBHQuXc.js → two-thirds-one-third-section-CEfd273Z.js} +6 -6
  168. package/dist/cdn/chunks/{validation-list-5E3-3_95.js → validation-list-DIFEVSIk.js} +12 -12
  169. package/dist/cdn/chunks/{visibility-mixin-DvRe3O8t.js → visibility-mixin-OjALtpXa.js} +14 -14
  170. package/dist/cdn/chunks/{visually-hidden-F85D_HcR.js → visually-hidden-DcpY5lun.js} +2 -2
  171. package/dist/cdn/chunks/{window-CabW35M1.js → window-BGZCu06O.js} +44 -80
  172. package/dist/cdn/chunks/{with-translations-BHDG37HJ.js → with-translations-DkNkjQym.js} +3 -3
  173. package/dist/components/actions/button/button.d.ts +4 -4
  174. package/dist/components/actions/button/button.d.ts.map +1 -1
  175. package/dist/components/actions/button/button.js +4 -5
  176. package/dist/components/actions/button/button.js.map +1 -1
  177. package/dist/components/actions/button/button.template.js +1 -1
  178. package/dist/components/actions/button/button.template.js.map +1 -1
  179. package/dist/components/actions/icon-button/icon-button.d.ts +4 -4
  180. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  181. package/dist/components/actions/icon-button/icon-button.js +4 -5
  182. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  183. package/dist/components/actions/icon-button/icon-button.template.js +1 -1
  184. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  185. package/dist/components/actions/menu/menu.d.ts +22 -6
  186. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  187. package/dist/components/actions/menu/menu.js +50 -70
  188. package/dist/components/actions/menu/menu.js.map +1 -1
  189. package/dist/components/actions/split-button/split-button.js +1 -1
  190. package/dist/components/actions/split-button/split-button.js.map +1 -1
  191. package/dist/components/actions/toolbar/toolbar.d.ts +3 -3
  192. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  193. package/dist/components/actions/toolbar/toolbar.js +4 -4
  194. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  195. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  196. package/dist/components/actions/toolbar/toolbar.template.js +5 -9
  197. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  198. package/dist/components/content/avatar-group/avatar-group.d.ts +7 -1
  199. package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
  200. package/dist/components/content/avatar-group/avatar-group.js +9 -9
  201. package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
  202. package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
  203. package/dist/components/content/avatar-group/avatar-group.template.js +0 -1
  204. package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
  205. package/dist/components/content/term/term.d.ts +5 -5
  206. package/dist/components/content/term/term.d.ts.map +1 -1
  207. package/dist/components/content/term/term.js +22 -23
  208. package/dist/components/content/term/term.js.map +1 -1
  209. package/dist/components/content/term/term.template.js +1 -1
  210. package/dist/components/content/term/term.template.js.map +1 -1
  211. package/dist/components/content/token/token.d.ts +3 -5
  212. package/dist/components/content/token/token.d.ts.map +1 -1
  213. package/dist/components/content/token/token.js +23 -33
  214. package/dist/components/content/token/token.js.map +1 -1
  215. package/dist/components/content/tooltip/tooltip.d.ts +3 -5
  216. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  217. package/dist/components/content/tooltip/tooltip.js +34 -119
  218. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  219. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  220. package/dist/components/forms/form-field/form-field.js +4 -1
  221. package/dist/components/forms/form-field/form-field.js.map +1 -1
  222. package/dist/components/inputs/checkbox/checkbox.d.ts +1 -4
  223. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  224. package/dist/components/inputs/checkbox/checkbox.js +3 -23
  225. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  226. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +1 -5
  227. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  228. package/dist/components/inputs/checkbox-field/checkbox-field.js +8 -17
  229. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  230. package/dist/components/inputs/checkbox-group/checkbox-group.d.ts +1 -9
  231. package/dist/components/inputs/checkbox-group/checkbox-group.d.ts.map +1 -1
  232. package/dist/components/inputs/checkbox-group/checkbox-group.js +18 -59
  233. package/dist/components/inputs/checkbox-group/checkbox-group.js.map +1 -1
  234. package/dist/components/inputs/combo-box/combo-box.d.ts +6 -7
  235. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  236. package/dist/components/inputs/combo-box/combo-box.js +25 -58
  237. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  238. package/dist/components/inputs/date-field/date-field.d.ts +1 -2
  239. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  240. package/dist/components/inputs/date-field/date-field.js +4 -14
  241. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  242. package/dist/components/inputs/file-field/file-field.d.ts +6 -3
  243. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  244. package/dist/components/inputs/file-field/file-field.js +15 -18
  245. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  246. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +1 -4
  247. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
  248. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +3 -23
  249. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
  250. package/dist/components/inputs/number-field/number-field.d.ts +4 -3
  251. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  252. package/dist/components/inputs/number-field/number-field.js +12 -16
  253. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  254. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +1 -4
  255. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  256. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +2 -17
  257. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  258. package/dist/components/inputs/password-field/password-field.d.ts +1 -4
  259. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  260. package/dist/components/inputs/password-field/password-field.js +3 -23
  261. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  262. package/dist/components/inputs/radio-button/radio-button.d.ts +1 -4
  263. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  264. package/dist/components/inputs/radio-button/radio-button.js +1 -10
  265. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  266. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -6
  267. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
  268. package/dist/components/inputs/radio-button-field/radio-button-field.js +6 -14
  269. package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
  270. package/dist/components/inputs/radio-button-group/radio-button-group.d.ts +1 -10
  271. package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
  272. package/dist/components/inputs/radio-button-group/radio-button-group.js +17 -74
  273. package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
  274. package/dist/components/inputs/search-field/search-field.d.ts +1 -4
  275. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  276. package/dist/components/inputs/search-field/search-field.js +5 -35
  277. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  278. package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -3
  279. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  280. package/dist/components/inputs/segmented-control/segmented-control.js +6 -41
  281. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  282. package/dist/components/inputs/slider/slider.d.ts +1 -4
  283. package/dist/components/inputs/slider/slider.d.ts.map +1 -1
  284. package/dist/components/inputs/slider/slider.js +1 -14
  285. package/dist/components/inputs/slider/slider.js.map +1 -1
  286. package/dist/components/inputs/stepper/stepper.d.ts +1 -3
  287. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  288. package/dist/components/inputs/stepper/stepper.js +2 -13
  289. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  290. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +1 -3
  291. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -1
  292. package/dist/components/inputs/swatch-picker/swatch-picker.js +5 -28
  293. package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -1
  294. package/dist/components/inputs/switch/switch.d.ts +1 -4
  295. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  296. package/dist/components/inputs/switch/switch.js +3 -22
  297. package/dist/components/inputs/switch/switch.js.map +1 -1
  298. package/dist/components/inputs/switch-field/switch-field.d.ts +1 -4
  299. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  300. package/dist/components/inputs/switch-field/switch-field.js +2 -16
  301. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  302. package/dist/components/inputs/text-field/text-field.d.ts +1 -4
  303. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  304. package/dist/components/inputs/text-field/text-field.js +3 -23
  305. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  306. package/dist/components/inputs/time-field/time-field.d.ts +8 -2
  307. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  308. package/dist/components/inputs/time-field/time-field.js +23 -14
  309. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  310. package/dist/components/inputs/time-picker/time-picker.d.ts +11 -7
  311. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  312. package/dist/components/inputs/time-picker/time-picker.js +19 -14
  313. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  314. package/dist/components/inputs/toggle-button/toggle-button.d.ts +3 -6
  315. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  316. package/dist/components/inputs/toggle-button/toggle-button.js +6 -20
  317. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  318. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts +2 -11
  319. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
  320. package/dist/components/inputs/toggle-button-group/toggle-button-group.js +23 -78
  321. package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
  322. package/dist/components/inputs/token-field/token-field.d.ts +12 -10
  323. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
  324. package/dist/components/inputs/token-field/token-field.js +33 -35
  325. package/dist/components/inputs/token-field/token-field.js.map +1 -1
  326. package/dist/components/layout/kanban/kanban.d.ts +0 -1
  327. package/dist/components/layout/kanban/kanban.d.ts.map +1 -1
  328. package/dist/components/layout/kanban/kanban.js +2 -7
  329. package/dist/components/layout/kanban/kanban.js.map +1 -1
  330. package/dist/components/layout/popover/popover.d.ts +17 -3
  331. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  332. package/dist/components/layout/popover/popover.js +34 -126
  333. package/dist/components/layout/popover/popover.js.map +1 -1
  334. package/dist/components/layout/sheet/sheet.d.ts +2 -33
  335. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  336. package/dist/components/layout/sheet/sheet.js +8 -169
  337. package/dist/components/layout/sheet/sheet.js.map +1 -1
  338. package/dist/components/layout/sheet/sheet.template.js +5 -5
  339. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  340. package/dist/components/layout/window/window.d.ts +2 -30
  341. package/dist/components/layout/window/window.d.ts.map +1 -1
  342. package/dist/components/layout/window/window.js +12 -139
  343. package/dist/components/layout/window/window.js.map +1 -1
  344. package/dist/components/layout/window/window.template.d.ts.map +1 -1
  345. package/dist/components/layout/window/window.template.js +5 -4
  346. package/dist/components/layout/window/window.template.js.map +1 -1
  347. package/dist/components/lists-and-tables/list/list.d.ts +8 -32
  348. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  349. package/dist/components/lists-and-tables/list/list.js +37 -136
  350. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  351. package/dist/components/lists-and-tables/list/list.roving.d.ts +79 -0
  352. package/dist/components/lists-and-tables/list/list.roving.d.ts.map +1 -0
  353. package/dist/components/lists-and-tables/list/list.roving.js +122 -0
  354. package/dist/components/lists-and-tables/list/list.roving.js.map +1 -0
  355. package/dist/components/lists-and-tables/list-item/list-item.d.ts +32 -17
  356. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  357. package/dist/components/lists-and-tables/list-item/list-item.js +49 -36
  358. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  359. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +3 -2
  360. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  361. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +5 -5
  362. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  363. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +4 -5
  364. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  365. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +12 -63
  366. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  367. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
  368. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +5 -7
  369. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
  370. package/dist/components/navigation/link/link.d.ts +2 -2
  371. package/dist/components/navigation/link/link.d.ts.map +1 -1
  372. package/dist/components/navigation/link/link.js +2 -2
  373. package/dist/components/navigation/link/link.js.map +1 -1
  374. package/dist/components/navigation/menu-bar/menu-bar.d.ts +11 -17
  375. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  376. package/dist/components/navigation/menu-bar/menu-bar.js +44 -71
  377. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  378. package/dist/components/navigation/menu-bar/menu-bar.template.js +2 -2
  379. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +2 -3
  380. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  381. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +14 -30
  382. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  383. package/dist/components/navigation/tab-bar/tab-bar.d.ts +8 -2
  384. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  385. package/dist/components/navigation/tab-bar/tab-bar.js +18 -4
  386. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  387. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  388. package/dist/components/navigation/tab-bar/tab-bar.template.js +4 -2
  389. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  390. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +2 -22
  391. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  392. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +4 -124
  393. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  394. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
  395. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +5 -3
  396. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
  397. package/dist/nldd.min.js +855 -851
  398. package/dist/types/react.d.ts +96 -6
  399. package/dist/types/vue.d.ts +182 -9
  400. package/dist/utilities/choice-group.d.ts +91 -0
  401. package/dist/utilities/choice-group.d.ts.map +1 -0
  402. package/dist/utilities/choice-group.js +135 -0
  403. package/dist/utilities/choice-group.js.map +1 -0
  404. package/dist/utilities/deep-active-element.d.ts +6 -0
  405. package/dist/utilities/deep-active-element.d.ts.map +1 -0
  406. package/dist/utilities/deep-active-element.js +11 -0
  407. package/dist/utilities/deep-active-element.js.map +1 -0
  408. package/dist/utilities/dev-rules.generated.js +931 -931
  409. package/dist/utilities/dev-rules.generated.js.map +1 -1
  410. package/dist/utilities/form-associated-mixin.d.ts +21 -5
  411. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  412. package/dist/utilities/form-associated-mixin.js +86 -5
  413. package/dist/utilities/form-associated-mixin.js.map +1 -1
  414. package/dist/utilities/interest-intent.d.ts +63 -0
  415. package/dist/utilities/interest-intent.d.ts.map +1 -0
  416. package/dist/utilities/interest-intent.js +139 -0
  417. package/dist/utilities/interest-intent.js.map +1 -0
  418. package/dist/utilities/{interest-controller.d.ts → interest-invoker.d.ts} +5 -14
  419. package/dist/utilities/interest-invoker.d.ts.map +1 -0
  420. package/dist/utilities/{interest-controller.js → interest-invoker.js} +39 -97
  421. package/dist/utilities/interest-invoker.js.map +1 -0
  422. package/dist/utilities/modal-overlay.d.ts +73 -0
  423. package/dist/utilities/modal-overlay.d.ts.map +1 -0
  424. package/dist/utilities/modal-overlay.js +219 -0
  425. package/dist/utilities/modal-overlay.js.map +1 -0
  426. package/dist/utilities/overflow-menu.d.ts +97 -0
  427. package/dist/utilities/overflow-menu.d.ts.map +1 -0
  428. package/dist/utilities/overflow-menu.js +209 -0
  429. package/dist/utilities/overflow-menu.js.map +1 -0
  430. package/dist/utilities/overlay-invoker.d.ts +185 -0
  431. package/dist/utilities/overlay-invoker.d.ts.map +1 -0
  432. package/dist/utilities/overlay-invoker.js +326 -0
  433. package/dist/utilities/overlay-invoker.js.map +1 -0
  434. package/dist/utilities/page-section-mixin.d.ts +11 -0
  435. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  436. package/dist/utilities/page-section-mixin.js +11 -0
  437. package/dist/utilities/page-section-mixin.js.map +1 -1
  438. package/dist/utilities/return-focus.d.ts +0 -2
  439. package/dist/utilities/return-focus.d.ts.map +1 -1
  440. package/dist/utilities/return-focus.js +1 -7
  441. package/dist/utilities/return-focus.js.map +1 -1
  442. package/dist/utilities/with-translations.d.ts +3 -0
  443. package/dist/utilities/with-translations.d.ts.map +1 -1
  444. package/dist/utilities/with-translations.js +3 -0
  445. package/dist/utilities/with-translations.js.map +1 -1
  446. package/lint/data.generated.json +1 -1
  447. package/lint/engine.js +4 -114
  448. package/lint/fix.js +53 -136
  449. package/lint/frontends.js +68 -6
  450. package/lint/linter.js +1 -0
  451. package/lint/main.js +21 -123
  452. package/lint/project.js +31 -0
  453. package/lint/rule-compiler.js +289 -0
  454. package/lint/session.js +127 -0
  455. package/lint/tree.js +46 -0
  456. package/package.json +3 -1
  457. package/dist/cdn/chunks/checkbox-group-CC72cq-P.js +0 -103
  458. package/dist/cdn/chunks/form-associated-mixin-BtStDDYA.js +0 -73
  459. package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +0 -20
  460. package/dist/cdn/chunks/popover-target-B25dxnmt.js +0 -10
  461. package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +0 -30
  462. package/dist/cdn/chunks/radio-button-group-D_OezDhB.js +0 -124
  463. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +0 -52
  464. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +0 -1
  465. package/dist/components/actions/toolbar/toolbar.overflow-menu.js +0 -105
  466. package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +0 -1
  467. package/dist/utilities/interest-controller.d.ts.map +0 -1
  468. package/dist/utilities/interest-controller.js.map +0 -1
  469. package/dist/utilities/open-when-rendered.d.ts +0 -21
  470. package/dist/utilities/open-when-rendered.d.ts.map +0 -1
  471. package/dist/utilities/open-when-rendered.js +0 -30
  472. package/dist/utilities/open-when-rendered.js.map +0 -1
  473. package/dist/utilities/popover-target.d.ts +0 -25
  474. package/dist/utilities/popover-target.d.ts.map +0 -1
  475. package/dist/utilities/popover-target.js +0 -48
  476. package/dist/utilities/popover-target.js.map +0 -1
  477. package/dist/utilities/popup-anchor-controller.d.ts +0 -63
  478. package/dist/utilities/popup-anchor-controller.d.ts.map +0 -1
  479. package/dist/utilities/popup-anchor-controller.js +0 -72
  480. package/dist/utilities/popup-anchor-controller.js.map +0 -1
@@ -0,0 +1,91 @@
1
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import { type RadioPosition } from './radio-position.js';
3
+ /**
4
+ * A group of options that answer one question: nldd-radio-button-group,
5
+ * nldd-checkbox-group and nldd-toggle-button-group.
6
+ *
7
+ * Each option renders its input in a shadow root of its own, so the browser
8
+ * sees every option as a group of one. The group knows better and hands each
9
+ * option what it cannot work out alone: the name, `required`, `disabled`,
10
+ * whether anything in the group is chosen (what `required` asks of a group),
11
+ * and for single choice its place in the set and the one stop for Tab.
12
+ *
13
+ * An option tells its group when it changed, whoever changed it (the user,
14
+ * the app, a form reset), through `ChoiceGroup.of(option)`: the group has no
15
+ * way to see a property change on an option, and the option does not reach
16
+ * into its parent.
17
+ *
18
+ * The keyboard stays with each group: the arrows in a radio group and in a
19
+ * toggle group differ on where they go when nothing is chosen yet.
20
+ */
21
+ /** What a group asks of its options. */
22
+ export interface ChoiceOption extends HTMLElement {
23
+ disabled: boolean;
24
+ name: string;
25
+ required: boolean;
26
+ _groupHasSelection: boolean;
27
+ _groupPosition?: RadioPosition | null;
28
+ commitFormValue?(): void;
29
+ }
30
+ export interface ChoiceGroupOptions<T extends ChoiceOption> {
31
+ /** The options in DOM order, nested ones included where they belong to the group. */
32
+ options: () => T[];
33
+ isSelected: (option: T) => boolean;
34
+ /** Deselects an option because another one was chosen. */
35
+ deselect: (option: T) => void;
36
+ /** One choice: choosing one deselects the others, and the group is one stop for Tab. */
37
+ single: () => boolean;
38
+ /** The name handed to each option; null leaves the name it has. */
39
+ name: () => string | null;
40
+ /** What `required` each option gets. */
41
+ required: () => boolean;
42
+ /** Whatever else this group hands its options (type, appearance, size). */
43
+ forward?: (option: T) => void;
44
+ }
45
+ /**
46
+ * Disables an option for its group, and enables only what the group disabled:
47
+ * an option that is disabled of its own stays so when the group is enabled again.
48
+ */
49
+ export declare function setGroupDisabled(option: HTMLElement & {
50
+ disabled: boolean;
51
+ }, disabled: boolean): void;
52
+ /**
53
+ * What a group announces on itself. Announced, not drawn: what is wrong goes in
54
+ * an nldd-validation-list, in words. Leave `required` out where the role has
55
+ * no `aria-required`, as `group` has not.
56
+ */
57
+ export declare function announceGroupState(host: HTMLElement, state: {
58
+ required?: boolean;
59
+ invalid: boolean;
60
+ }): void;
61
+ export declare class ChoiceGroup<T extends ChoiceOption> implements ReactiveController {
62
+ private readonly host;
63
+ private readonly options;
64
+ private _settleQueued;
65
+ constructor(host: ReactiveControllerHost & HTMLElement & {
66
+ disabled: boolean;
67
+ }, options: ChoiceGroupOptions<T>);
68
+ /** The group an option belongs to, or null for one that stands alone. */
69
+ static of(option: Element): ChoiceGroup<ChoiceOption> | null;
70
+ hostConnected(): void;
71
+ hostDisconnected(): void;
72
+ /** Whether anything in the group is chosen. */
73
+ get answered(): boolean;
74
+ /** Hands every option what the group decides, then settles what follows from the choice. */
75
+ sync(): void;
76
+ /**
77
+ * Whether anything is chosen, on every option, and for single choice each
78
+ * option's place and the stop for Tab. Committed at once: a listener on
79
+ * `change` reads the validity this just changed.
80
+ */
81
+ settle(): void;
82
+ /** An option's choice or `disabled` changed, whoever changed it. */
83
+ optionChanged(option: Element): void;
84
+ /** Bind to the group's `change`: what the user chose. */
85
+ handleChange: (event: Event) => void;
86
+ /** Deselects every other option, as a radio group does. */
87
+ selectOnly(chosen: T): void;
88
+ /** Focus on the first chosen option, or else the first enabled one, as Tab lands. */
89
+ focus(focusOptions?: FocusOptions): void;
90
+ }
91
+ //# sourceMappingURL=choice-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice-group.d.ts","sourceRoot":"","sources":["../../src/utilities/choice-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AACtE,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzE;;;;;;;;;;;;;;;;;GAiBG;AAEH,wCAAwC;AACxC,MAAM,WAAW,YAAa,SAAQ,WAAW;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC,eAAe,CAAC,IAAI,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,YAAY;IACzD,qFAAqF;IACrF,OAAO,EAAE,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AI,OAAO,CAEtB;IAED,4FAA4F;IAC5F,IAAI,IAAI,IAAI;IAYZ;;;;OAIG;IACH,MAAM,IAAI,IAAI;IAad,oEAAoE;IACpE,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAgBpC,yDAAyD;IACzD,YAAY,GAAI,OAAO,KAAK,KAAG,IAAI,CAOjC;IAEF,2DAA2D;IAC3D,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI;IAU3B,qFAAqF;IACrF,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI;CAIxC"}
@@ -0,0 +1,135 @@
1
+ import { radioPositions } from './radio-position.js';
2
+ /** The group each host speaks for, so an option can find it without its tag. */
3
+ const groups = new WeakMap();
4
+ /**
5
+ * Disables an option for its group, and enables only what the group disabled:
6
+ * an option that is disabled of its own stays so when the group is enabled again.
7
+ */
8
+ export function setGroupDisabled(option, disabled) {
9
+ if (disabled) {
10
+ if (option.hasAttribute('disabled'))
11
+ return;
12
+ option.setAttribute('group-disabled', '');
13
+ option.disabled = true;
14
+ }
15
+ else if (option.hasAttribute('group-disabled')) {
16
+ option.removeAttribute('group-disabled');
17
+ option.disabled = false;
18
+ }
19
+ }
20
+ /**
21
+ * What a group announces on itself. Announced, not drawn: what is wrong goes in
22
+ * an nldd-validation-list, in words. Leave `required` out where the role has
23
+ * no `aria-required`, as `group` has not.
24
+ */
25
+ export function announceGroupState(host, state) {
26
+ if (state.required !== undefined)
27
+ host.toggleAttribute('aria-required', state.required);
28
+ if (state.invalid)
29
+ host.setAttribute('aria-invalid', 'true');
30
+ else
31
+ host.removeAttribute('aria-invalid');
32
+ }
33
+ export class ChoiceGroup {
34
+ constructor(host, options) {
35
+ this.host = host;
36
+ this.options = options;
37
+ this._settleQueued = false;
38
+ /** Bind to the group's `change`: what the user chose. */
39
+ this.handleChange = (event) => {
40
+ const option = event.target;
41
+ if (this.options.single()) {
42
+ if (!this.options.isSelected(option))
43
+ return;
44
+ this.selectOnly(option);
45
+ }
46
+ this.settle();
47
+ };
48
+ host.addController(this);
49
+ }
50
+ /** The group an option belongs to, or null for one that stands alone. */
51
+ static of(option) {
52
+ for (let el = option.parentElement; el; el = el.parentElement) {
53
+ const group = groups.get(el);
54
+ if (group)
55
+ return group;
56
+ }
57
+ return null;
58
+ }
59
+ hostConnected() {
60
+ groups.set(this.host, this);
61
+ }
62
+ hostDisconnected() {
63
+ groups.delete(this.host);
64
+ }
65
+ /** Whether anything in the group is chosen. */
66
+ get answered() {
67
+ return this.options.options().some(this.options.isSelected);
68
+ }
69
+ /** Hands every option what the group decides, then settles what follows from the choice. */
70
+ sync() {
71
+ const name = this.options.name();
72
+ const required = this.options.required();
73
+ for (const option of this.options.options()) {
74
+ if (name !== null)
75
+ option.name = name;
76
+ option.required = required;
77
+ setGroupDisabled(option, this.host.disabled);
78
+ this.options.forward?.(option);
79
+ }
80
+ this.settle();
81
+ }
82
+ /**
83
+ * Whether anything is chosen, on every option, and for single choice each
84
+ * option's place and the stop for Tab. Committed at once: a listener on
85
+ * `change` reads the validity this just changed.
86
+ */
87
+ settle() {
88
+ const options = this.options.options();
89
+ const answered = options.some(this.options.isSelected);
90
+ const positions = this.options.single()
91
+ ? radioPositions(options, this.options.isSelected, (option) => option.disabled)
92
+ : null;
93
+ options.forEach((option, index) => {
94
+ option._groupHasSelection = answered;
95
+ if ('_groupPosition' in option)
96
+ option._groupPosition = positions?.[index] ?? null;
97
+ option.commitFormValue?.();
98
+ });
99
+ }
100
+ /** An option's choice or `disabled` changed, whoever changed it. */
101
+ optionChanged(option) {
102
+ if (this.options.single()) {
103
+ if (this.options.isSelected(option))
104
+ this.selectOnly(option);
105
+ this.settle();
106
+ return;
107
+ }
108
+ // Once for all of them: checking an option with others under it changes
109
+ // every one of those, each of which reports here.
110
+ if (this._settleQueued)
111
+ return;
112
+ this._settleQueued = true;
113
+ queueMicrotask(() => {
114
+ this._settleQueued = false;
115
+ this.settle();
116
+ });
117
+ }
118
+ /** Deselects every other option, as a radio group does. */
119
+ selectOnly(chosen) {
120
+ for (const option of this.options.options()) {
121
+ if (option === chosen)
122
+ continue;
123
+ this.options.deselect(option);
124
+ // At once, not in the option's own update: the change event is still on
125
+ // its way, and a listener serializing the form would see the old value.
126
+ option.commitFormValue?.();
127
+ }
128
+ }
129
+ /** Focus on the first chosen option, or else the first enabled one, as Tab lands. */
130
+ focus(focusOptions) {
131
+ const enabled = this.options.options().filter((option) => !option.disabled);
132
+ (enabled.find(this.options.isSelected) ?? enabled[0])?.focus(focusOptions);
133
+ }
134
+ }
135
+ //# sourceMappingURL=choice-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice-group.js","sourceRoot":"","sources":["../../src/utilities/choice-group.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAsB,MAAM,qBAAqB,CAAC;AA+CzE,gFAAgF;AAChF,MAAM,MAAM,GAAG,IAAI,OAAO,EAAsC,CAAC;AAEjE;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAA2C,EAAE,QAAiB;IAC9F,IAAI,QAAQ,EAAE,CAAC;QACd,IAAI,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC;YAAE,OAAO;QAC5C,MAAM,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;QAC1C,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxB,CAAC;SAAM,IAAI,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAClD,MAAM,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;QACzC,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC;IACzB,CAAC;AACF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAiB,EAAE,KAA+C;IACpG,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS;QAAE,IAAI,CAAC,eAAe,CAAC,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxF,I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CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC5E,CAAC;CACD"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The element that really holds focus, inside any shadow roots.
3
+ * `document.activeElement` only names the outermost shadow host.
4
+ */
5
+ export declare function deepActiveElement(): HTMLElement | null;
6
+ //# sourceMappingURL=deep-active-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deep-active-element.d.ts","sourceRoot":"","sources":["../../src/utilities/deep-active-element.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,GAAG,IAAI,CAItD"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The element that really holds focus, inside any shadow roots.
3
+ * `document.activeElement` only names the outermost shadow host.
4
+ */
5
+ export function deepActiveElement() {
6
+ let el = document.activeElement;
7
+ while (el?.shadowRoot?.activeElement)
8
+ el = el.shadowRoot.activeElement;
9
+ return el;
10
+ }
11
+ //# sourceMappingURL=deep-active-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deep-active-element.js","sourceRoot":"","sources":["../../src/utilities/deep-active-element.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,iBAAiB;IAChC,IAAI,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC;IAChC,OAAO,EAAE,EAAE,UAAU,EAAE,aAAa;QAAE,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC;IACvE,OAAO,EAAwB,CAAC;AACjC,CAAC"}