@nldd/design-system 0.21.0 → 0.22.0

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 (452) hide show
  1. package/custom-elements.json +864 -232
  2. package/dist/cdn/autoloader.js +136 -136
  3. package/dist/cdn/chunks/{activity-indicator-JglZJ8dh.js → activity-indicator-BTnpfsIt.js} +22 -22
  4. package/dist/cdn/chunks/{avatar-ASqePVhU.js → avatar--5c37XVW.js} +44 -43
  5. package/dist/cdn/chunks/{avatar-group-rknt4FBO.js → avatar-group-BNfmY5CU.js} +41 -41
  6. package/dist/cdn/chunks/{badge-Cc2Nufoc.js → badge-YAvIVoRy.js} +28 -28
  7. package/dist/cdn/chunks/{banner-BLVKM07M.js → banner-BpCK57yd.js} +41 -37
  8. package/dist/cdn/chunks/{bar-split-view-Clbg-p9H.js → bar-split-view-BgYo4YJw.js} +27 -27
  9. package/dist/cdn/chunks/blockquote-BOu-31f3.js +240 -0
  10. package/dist/cdn/chunks/{box-WkhyjQVy.js → box-YipFNjJh.js} +7 -7
  11. package/dist/cdn/chunks/{breadcrumbs-D9YxZzRj.js → breadcrumbs-DSVAVozW.js} +33 -33
  12. package/dist/cdn/chunks/{button-DO90Lo6q.js → button-XtEOeBEq.js} +101 -100
  13. package/dist/cdn/chunks/{button-bar-Bxgdbyh3.js → button-bar-D1i71rRQ.js} +13 -13
  14. package/dist/cdn/chunks/{button-group-BYGPPLmZ.js → button-group-un5QDbqK.js} +10 -10
  15. package/dist/cdn/chunks/{card-BP0jfOkS.js → card-D5yTAdts.js} +22 -22
  16. package/dist/cdn/chunks/{cell-BRD2ilQh.js → cell-BbtB9C2Z.js} +24 -23
  17. package/dist/cdn/chunks/{checkbox-field-DDZ-B6vH.js → checkbox-field-Cmc6Aagc.js} +33 -30
  18. package/dist/cdn/chunks/{checkbox-Cazx8CQn.js → checkbox-oYX8b8iy.js} +28 -27
  19. package/dist/cdn/chunks/{class-map-CXSdNjt8.js → class-map-DKd4N9Wz.js} +1 -1
  20. package/dist/cdn/chunks/{code-editor-D6Q55oaY.js → code-editor-BZwpTu4O.js} +55 -57
  21. package/dist/cdn/chunks/{code-viewer-DspLH2T1.js → code-viewer-C4XDF03i.js} +75 -75
  22. package/dist/cdn/chunks/{codemirror-input-Db65x22n.js → codemirror-input-Sen5OmAF.js} +5 -5
  23. package/dist/cdn/chunks/{collection-NVtkvDls.js → collection-BnZstW7U.js} +36 -36
  24. package/dist/cdn/chunks/{combo-box-DyBQSaQl.js → combo-box-BpaGeypm.js} +68 -68
  25. package/dist/cdn/chunks/{container-rrbwk0z4.js → container-DuV5d7Eb.js} +51 -51
  26. package/dist/cdn/chunks/{custom-element-q6NzoL5b.js → custom-element-DsfOrnOD.js} +1 -1
  27. package/dist/cdn/chunks/{date-field-Clti_wKN.js → date-field-FactdbhC.js} +125 -117
  28. package/dist/cdn/chunks/{date-picker-2TCQLd5D.js → date-picker-BtlBTKvh.js} +78 -78
  29. package/dist/cdn/chunks/{decorate-TduJMFD_.js → decorate-CJCfz_g6.js} +2 -2
  30. package/dist/cdn/chunks/{described-by-mixin-daRE7orX.js → described-by-mixin-CPultP0p.js} +2 -2
  31. package/dist/cdn/chunks/{description-cell-CQwOj_rN.js → description-cell-DFc0_dWI.js} +24 -23
  32. package/dist/cdn/chunks/{dev-checks-zW_W-hnh.js → dev-checks-DGwOQoR3.js} +76 -26
  33. package/dist/cdn/chunks/{dist-EgIBI-FG.js → dist-6xUfJUfa.js} +26 -26
  34. package/dist/cdn/chunks/{dist-A7_1pHX0.js → dist-AQ1Gehx3.js} +25 -25
  35. package/dist/cdn/chunks/{dist-DPUBF0MZ.js → dist-BUqkX3a-.js} +362 -371
  36. package/dist/cdn/chunks/{dist-Rm6FvrSR.js → dist-BWSiWu4t.js} +55 -55
  37. package/dist/cdn/chunks/{dist-CP3G1pSK.js → dist-Bmb_H8Sp.js} +1 -1
  38. package/dist/cdn/chunks/{dist-DrTzvgE7.js → dist-BuquxOFD.js} +178 -188
  39. package/dist/cdn/chunks/{dist-EM4MWLQq.js → dist-CM5DHMaz.js} +120 -125
  40. package/dist/cdn/chunks/{dist-C_dGY6zR.js → dist-ClsiJytN.js} +43 -43
  41. package/dist/cdn/chunks/{dist-D2qap2OY.js → dist-CtdONv3x.js} +13 -13
  42. package/dist/cdn/chunks/{dist-ChmCRv39.js → dist-CxdoWiwX.js} +50 -50
  43. package/dist/cdn/chunks/{dist-BEfLdOvy.js → dist-D-9cbJjq.js} +190 -196
  44. package/dist/cdn/chunks/{divider-CCNbnplA.js → divider-CZ8Hn1om.js} +6 -6
  45. package/dist/cdn/chunks/{document-tab-bar-CUc4WWY3.js → document-tab-bar-BBnyyiEA.js} +56 -56
  46. package/dist/cdn/chunks/{dropdown-DZTZtkm5.js → dropdown-Bbbgy8mT.js} +31 -31
  47. package/dist/cdn/chunks/{file-field-Bff6_1pp.js → file-field-CddG_e0F.js} +116 -116
  48. package/dist/cdn/chunks/{form-hXLgy_tY.js → form-DIIMIq0q.js} +23 -9
  49. package/dist/cdn/chunks/{form-actions-C_7hINq-.js → form-actions-BICy0Sgp.js} +7 -7
  50. package/dist/cdn/chunks/{form-associated-mixin--GIbl98p.js → form-associated-mixin-BtStDDYA.js} +14 -3
  51. package/dist/cdn/chunks/{form-field--4nWJ_DK.js → form-field-Bnei2EQO.js} +36 -36
  52. package/dist/cdn/chunks/{form-section-By-D4un0.js → form-section-Cv0tr0pm.js} +1 -1
  53. package/dist/cdn/chunks/{full-bleed-section-Dg4sIJG1.js → full-bleed-section-LOfo_1Aj.js} +10 -10
  54. package/dist/cdn/chunks/{hero-CQQMNCT_.js → hero-BABWpYs5.js} +48 -48
  55. package/dist/cdn/chunks/{icon-BORlalt0.js → icon-D5dJm51v.js} +41 -47
  56. package/dist/cdn/chunks/{icon-button-rKiIHs7A.js → icon-button-DtxIRaQy.js} +80 -79
  57. package/dist/cdn/chunks/{icon-cell-rk4NQid2.js → icon-cell-Be5awZV7.js} +26 -24
  58. package/dist/cdn/chunks/{identity-Cg1l0HhB.js → identity-B4KtbT8h.js} +26 -26
  59. package/dist/cdn/chunks/{if-defined-CaKKERku.js → if-defined-BirFs11D.js} +1 -1
  60. package/dist/cdn/chunks/{image-DZMW6JgL.js → image-BpVEir6U.js} +66 -61
  61. package/dist/cdn/chunks/{inline-dialog-WlqtPBPJ.js → inline-dialog-B627fZmT.js} +29 -28
  62. package/dist/cdn/chunks/{just-in-time-education-DRcb5g7x.js → just-in-time-education-Nw5ido3N.js} +44 -48
  63. package/dist/cdn/chunks/{kanban-Ca_mfqsA.js → kanban-9HGexCJx.js} +24 -24
  64. package/dist/cdn/chunks/{kanban-column-fgIMc7pw.js → kanban-column-v5rfv8fN.js} +13 -13
  65. package/dist/cdn/chunks/{keyboard-shortcut-EknnW7Ub.js → keyboard-shortcut-CVNilmgr.js} +20 -20
  66. package/dist/cdn/chunks/{languages-yKikVFv_.js → languages-Ce4h7R1-.js} +12 -12
  67. package/dist/cdn/chunks/{link-FBSAJ3UC.js → link-BQQwp17j.js} +36 -36
  68. package/dist/cdn/chunks/{link-group-90qVfKa0.js → link-group-CQhEcQIV.js} +11 -11
  69. package/dist/cdn/chunks/{list-CaWl3q0Z.js → list-DDxjOe38.js} +41 -39
  70. package/dist/cdn/chunks/{list-item-Cagnf6eG.js → list-item-Da6-fFDs.js} +131 -77
  71. package/dist/cdn/chunks/{list-item-segment-BRzBF1y_.js → list-item-segment-CnGHU6G-.js} +44 -44
  72. package/dist/cdn/chunks/{menu-bar-0NFXvq-v.js → menu-bar-MPNB2ovW.js} +21 -21
  73. package/dist/cdn/chunks/{menu-bar-item-DGSC_ETi.js → menu-bar-item-BuZ-VvnR.js} +34 -34
  74. package/dist/cdn/chunks/{menu-divider-CLLRgMll.js → menu-divider-CcOTQxx5.js} +6 -6
  75. package/dist/cdn/chunks/{menu-group-BL24ChpR.js → menu-group-DGgbYejF.js} +8 -8
  76. package/dist/cdn/chunks/{menu-item-CooKfrFa.js → menu-item-DgM4RmyD.js} +28 -28
  77. package/dist/cdn/chunks/{menu-BOu_pD1Q.js → menu-uOExHS1i.js} +58 -57
  78. package/dist/cdn/chunks/{menu.template-C6rbfI-u.js → menu.template-DkbfQRQ6.js} +3 -3
  79. package/dist/cdn/chunks/{modal-dialog-BrUMP4Jm.js → modal-dialog-BRYfJ7Vf.js} +26 -26
  80. package/dist/cdn/chunks/{multi-line-text-field-D7hXhyOn.js → multi-line-text-field-CWOPY6sF.js} +47 -47
  81. package/dist/cdn/chunks/{navigation-split-view-B2ZQhxEb.js → navigation-split-view-BRiplUXM.js} +37 -37
  82. package/dist/cdn/chunks/nl.generated-fkFCex7n.js +112 -0
  83. package/dist/cdn/chunks/{notification-DSGP14d1.js → notification-DhnzrUQp.js} +25 -25
  84. package/dist/cdn/chunks/{number-field-B8op14Y_.js → number-field-DgRrXCiv.js} +39 -39
  85. package/dist/cdn/chunks/{one-half-one-half-section-ZYmHYf4Q.js → one-half-one-half-section-D7tzDw-p.js} +11 -11
  86. package/dist/cdn/chunks/{one-third-two-thirds-section-Ds10K6AS.js → one-third-two-thirds-section-E8xOdcsf.js} +11 -11
  87. package/dist/cdn/chunks/{one-time-code-field-Cgy_tTS4.js → one-time-code-field-BoJdVvNN.js} +54 -54
  88. package/dist/cdn/chunks/{page-CBf_Decp.js → page-DDm193hL.js} +27 -27
  89. package/dist/cdn/chunks/{page-footer-CSv1dU7M.js → page-footer-32oZSwvG.js} +46 -61
  90. package/dist/cdn/chunks/{page-section-mixin-Dp6X8GKd.js → page-section-mixin-CmsW9L1S.js} +2 -2
  91. package/dist/cdn/chunks/{pagination-CMUcFB53.js → pagination-Co1BlFTP.js} +45 -45
  92. package/dist/cdn/chunks/{password-field-C76Vm3rm.js → password-field-BxKQRE4K.js} +54 -54
  93. package/dist/cdn/chunks/{popover-C-CVVtfl.js → popover-DpCE_XjR.js} +92 -58
  94. package/dist/cdn/chunks/{progress-bar-BLiHaRUS.js → progress-bar-5WAVf0HV.js} +53 -53
  95. package/dist/cdn/chunks/{progress-circle-CjkovRbL.js → progress-circle-D7Mn6WZv.js} +55 -55
  96. package/dist/cdn/chunks/{radio-button-field-C-Z6Lnd4.js → radio-button-field-Dxnahic-.js} +25 -25
  97. package/dist/cdn/chunks/{radio-button-group-ChTqBCnQ.js → radio-button-group-D_4lI2U-.js} +18 -18
  98. package/dist/cdn/chunks/{radio-button-GHyO-GQB.js → radio-button-pd8lwtEO.js} +29 -29
  99. package/dist/cdn/chunks/{render-marked-DX_5ISZE.js → render-marked-CAskRZMx.js} +1 -1
  100. package/dist/cdn/chunks/{drag-handle-cell-CbzDYebG.js → reorder-handle-cell-BL8ECfi5.js} +38 -37
  101. package/dist/cdn/chunks/reorder-handle-cell.i18n-DlH2aVwd.js +3 -0
  102. package/dist/cdn/chunks/reorder-handle-mixin-BDRPLv58.js +16 -0
  103. package/dist/cdn/chunks/{repeat-Ch_5OsXE.js → repeat-D5W3dDCY.js} +1 -1
  104. package/dist/cdn/chunks/{return-focus-Xmagtk6r.js → return-focus-BzZWhXhc.js} +21 -16
  105. package/dist/cdn/chunks/rich-text-diNxNddp.js +61 -0
  106. package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
  107. package/dist/cdn/chunks/{row-header-mixin-CgqvREoV.js → row-header-mixin-Dj6t4nYI.js} +2 -2
  108. package/dist/cdn/chunks/{search-field-BGNfERhn.js → search-field-CLuQnvBU.js} +67 -67
  109. package/dist/cdn/chunks/{segmented-control-BYAG4VRp.js → segmented-control-B0z5J7r9.js} +86 -82
  110. package/dist/cdn/chunks/{shadow-resets-6SToDsPu.js → shadow-resets-BeVmf7ky.js} +2 -2
  111. package/dist/cdn/chunks/{sheet-BdVCqm2H.js → sheet-CKfFzUCu.js} +22 -22
  112. package/dist/cdn/chunks/{shell-C9rds_D9.js → shell-CglPjEWB.js} +7 -7
  113. package/dist/cdn/chunks/{side-by-side-split-view-C5oX4c6Z.js → side-by-side-split-view-DU4ODEBX.js} +21 -21
  114. package/dist/cdn/chunks/{sidebar-section-DP4jnS7g.js → sidebar-section-DzJw-MHs.js} +29 -29
  115. package/dist/cdn/chunks/{simple-section-qrCqXeBa.js → simple-section-BfhBYqMa.js} +12 -12
  116. package/dist/cdn/chunks/{skip-link-DWh4W6-J.js → skip-link-DwVvD9XL.js} +19 -19
  117. package/dist/cdn/chunks/{slider--hODfOwh.js → slider-BBxKxr-H.js} +86 -82
  118. package/dist/cdn/chunks/{spacer-CFzq_JCh.js → spacer-CqK1xVh2.js} +11 -11
  119. package/dist/cdn/chunks/{spacer-cell-DuVOgIj8.js → spacer-cell-DS7Tphdm.js} +13 -12
  120. package/dist/cdn/chunks/{split-button-BeXnOUTt.js → split-button-Brh7EmIA.js} +32 -32
  121. package/dist/cdn/chunks/{split-view-divider-jzcPmnMh.js → split-view-divider-Bh3XLobi.js} +10 -10
  122. package/dist/cdn/chunks/{split-view-pane-BLsZz263.js → split-view-pane-BPKlAR4d.js} +13 -13
  123. package/dist/cdn/chunks/{stacked-split-view-CcOR8LrJ.js → stacked-split-view-SrIHWkKW.js} +20 -20
  124. package/dist/cdn/chunks/{static-html-Cf4ccUIg.js → static-html-OvWm15yg.js} +1 -1
  125. package/dist/cdn/chunks/{status-bar-CINbOihq.js → status-bar-IqyLnoMx.js} +24 -24
  126. package/dist/cdn/chunks/{step-bar-6FvZL1Ti.js → step-bar-DltkU-AG.js} +56 -56
  127. package/dist/cdn/chunks/{step-cell-CejRisgS.js → step-cell-BHW3t6nn.js} +40 -39
  128. package/dist/cdn/chunks/{stepper-CY2rJWOJ.js → stepper-DMlk7A-Y.js} +30 -30
  129. package/dist/cdn/chunks/{style-map-DsIw6lkq.js → style-map-CNYX1L3t.js} +1 -1
  130. package/dist/cdn/chunks/{swatch-picker-BY3DBIl6.js → swatch-picker-BAKkJFgt.js} +47 -47
  131. package/dist/cdn/chunks/{switch-DDSsZFwK.js → switch-B3d_1Leh.js} +27 -26
  132. package/dist/cdn/chunks/{switch-field-CMoM9I38.js → switch-field-BXJj1PHC.js} +47 -28
  133. package/dist/cdn/chunks/{tab-bar-DmslEoPD.js → tab-bar-C7T0XL0u.js} +70 -70
  134. package/dist/cdn/chunks/{table-DwXjCSD5.js → table-CVyPmXfX.js} +31 -31
  135. package/dist/cdn/chunks/{tag-DM3APy3B.js → tag-KdbJbRcK.js} +25 -25
  136. package/dist/cdn/chunks/{text-cell-BkEsGI3g.js → text-cell-CUH5Tf5F.js} +43 -42
  137. package/dist/cdn/chunks/{text-editor-BvTiMeNV.js → text-editor-Bsfygq28.js} +71 -71
  138. package/dist/cdn/chunks/{text-field-CUyh1-V8.js → text-field-BQxQe0ch.js} +56 -56
  139. package/dist/cdn/chunks/{text-B1CatNR1.js → text-lQLJJw1m.js} +45 -45
  140. package/dist/cdn/chunks/{time-field-Cj5WojfO.js → time-field-kdMQ7qaa.js} +123 -113
  141. package/dist/cdn/chunks/{time-picker-W0xYXLy8.js → time-picker-T1bZ4zxP.js} +86 -79
  142. package/dist/cdn/chunks/{title-cell-8d8psUBX.js → title-cell-CyJr9OiV.js} +61 -63
  143. package/dist/cdn/chunks/{title-BuT7tWqN.js → title-yXmufzsm.js} +110 -74
  144. package/dist/cdn/chunks/{toggle-button-DNXWXZpE.js → toggle-button-DiZaFEAk.js} +74 -74
  145. package/dist/cdn/chunks/{toggle-button-group-ByowJYgs.js → toggle-button-group-DRai7q0C.js} +20 -20
  146. package/dist/cdn/chunks/{token-CnkEB3hB.js → token-C6EudIjw.js} +30 -30
  147. package/dist/cdn/chunks/{token-field-hvDB3l6O.js → token-field-OCw3wLIW.js} +69 -69
  148. package/dist/cdn/chunks/{toolbar-iNd1VmuG.js → toolbar-K5UY_y15.js} +26 -26
  149. package/dist/cdn/chunks/{toolbar-item-DpPfPxCi.js → toolbar-item-CI3OVQuq.js} +13 -13
  150. package/dist/cdn/chunks/{toolbar-title-KBMpfL9d.js → toolbar-title-xvfrEhvQ.js} +31 -31
  151. package/dist/cdn/chunks/{toolbar.styles-BQkG4gVc.js → toolbar.styles-BBj5j7Iq.js} +3 -3
  152. package/dist/cdn/chunks/{tooltip-BsAHJjci.js → tooltip-B6XDYQNn.js} +42 -45
  153. package/dist/cdn/chunks/{top-navigation-bar-D1hjWIF3.js → top-navigation-bar-D7JkgCQi.js} +86 -86
  154. package/dist/cdn/chunks/{top-title-bar-iNFB2zQL.js → top-title-bar-BMSTl1Z7.js} +50 -44
  155. package/dist/cdn/chunks/{two-thirds-one-third-section-D-UANbHC.js → two-thirds-one-third-section-Cc1Mh9TT.js} +11 -11
  156. package/dist/cdn/chunks/{validation-list-C5BhHZIG.js → validation-list-xF6yTpz8.js} +19 -19
  157. package/dist/cdn/chunks/{visibility-mixin-COAZ9pON.js → visibility-mixin-LkgEnUqn.js} +2 -2
  158. package/dist/cdn/chunks/{visually-hidden-BPgATaH0.js → visually-hidden-CMo9yGtA.js} +6 -6
  159. package/dist/cdn/chunks/{window-t5iFkMLY.js → window-CclQ8SHn.js} +37 -37
  160. package/dist/cdn/chunks/with-translations-DdCPcavT.js +16 -0
  161. package/dist/components/actions/toolbar/toolbar.story-sync.js +1 -1
  162. package/dist/components/actions/toolbar/toolbar.story-sync.js.map +1 -1
  163. package/dist/components/content/blockquote/blockquote.d.ts +10 -1
  164. package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
  165. package/dist/components/content/blockquote/blockquote.js +24 -7
  166. package/dist/components/content/blockquote/blockquote.js.map +1 -1
  167. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  168. package/dist/components/content/blockquote/blockquote.styles.js +51 -10
  169. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  170. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  171. package/dist/components/content/code-viewer/code-viewer.js +4 -0
  172. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  173. package/dist/components/content/code-viewer/code-viewer.template.js +1 -1
  174. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  175. package/dist/components/content/identity/identity.d.ts +1 -0
  176. package/dist/components/content/identity/identity.d.ts.map +1 -1
  177. package/dist/components/content/identity/identity.js +1 -0
  178. package/dist/components/content/identity/identity.js.map +1 -1
  179. package/dist/components/content/image/image.d.ts +7 -2
  180. package/dist/components/content/image/image.d.ts.map +1 -1
  181. package/dist/components/content/image/image.js +29 -15
  182. package/dist/components/content/image/image.js.map +1 -1
  183. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  184. package/dist/components/content/image/image.styles.js +1 -2
  185. package/dist/components/content/image/image.styles.js.map +1 -1
  186. package/dist/components/content/rich-text/rich-text.d.ts +10 -0
  187. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  188. package/dist/components/content/rich-text/rich-text.js +41 -2
  189. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  190. package/dist/components/content/text/text.d.ts +1 -0
  191. package/dist/components/content/text/text.d.ts.map +1 -1
  192. package/dist/components/content/text/text.js +1 -0
  193. package/dist/components/content/text/text.js.map +1 -1
  194. package/dist/components/content/title/title.d.ts +26 -10
  195. package/dist/components/content/title/title.d.ts.map +1 -1
  196. package/dist/components/content/title/title.js +38 -11
  197. package/dist/components/content/title/title.js.map +1 -1
  198. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  199. package/dist/components/content/title/title.styles.js +74 -43
  200. package/dist/components/content/title/title.styles.js.map +1 -1
  201. package/dist/components/content/tooltip/tooltip.d.ts +1 -1
  202. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  203. package/dist/components/content/tooltip/tooltip.js +5 -3
  204. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  205. package/dist/components/forms/form/form.d.ts +11 -0
  206. package/dist/components/forms/form/form.d.ts.map +1 -1
  207. package/dist/components/forms/form/form.js +57 -4
  208. package/dist/components/forms/form/form.js.map +1 -1
  209. package/dist/components/forms/form-field/form-field.d.ts +1 -0
  210. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  211. package/dist/components/forms/form-field/form-field.js +1 -0
  212. package/dist/components/forms/form-field/form-field.js.map +1 -1
  213. package/dist/components/index.d.ts +1 -1
  214. package/dist/components/index.d.ts.map +1 -1
  215. package/dist/components/index.js +1 -1
  216. package/dist/components/index.js.map +1 -1
  217. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +4 -1
  218. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  219. package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -1
  220. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  221. package/dist/components/inputs/code-editor/code-editor.d.ts +9 -11
  222. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  223. package/dist/components/inputs/code-editor/code-editor.js +3 -3
  224. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  225. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  226. package/dist/components/inputs/code-editor/code-editor.styles.js +23 -25
  227. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  228. package/dist/components/inputs/date-field/date-field.d.ts +9 -4
  229. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  230. package/dist/components/inputs/date-field/date-field.js +20 -7
  231. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  232. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  233. package/dist/components/inputs/date-field/date-field.template.js +1 -0
  234. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  235. package/dist/components/inputs/dropdown/dropdown.d.ts +1 -0
  236. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  237. package/dist/components/inputs/dropdown/dropdown.js +1 -0
  238. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  239. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -3
  240. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  241. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +4 -4
  242. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  243. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  244. package/dist/components/inputs/segmented-control/segmented-control.styles.js +4 -0
  245. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  246. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
  247. package/dist/components/inputs/slider/slider.styles.js +4 -0
  248. package/dist/components/inputs/slider/slider.styles.js.map +1 -1
  249. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +1 -1
  250. package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
  251. package/dist/components/inputs/switch-field/switch-field.d.ts +12 -1
  252. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  253. package/dist/components/inputs/switch-field/switch-field.js +24 -2
  254. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  255. package/dist/components/inputs/text-editor/text-editor.d.ts +2 -3
  256. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  257. package/dist/components/inputs/text-editor/text-editor.js +18 -17
  258. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  259. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +1 -1
  260. package/dist/components/inputs/text-editor/text-editor.styles.js +19 -19
  261. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  262. package/dist/components/inputs/time-field/time-field.d.ts +4 -0
  263. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  264. package/dist/components/inputs/time-field/time-field.js +17 -2
  265. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  266. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  267. package/dist/components/inputs/time-field/time-field.template.js +1 -0
  268. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  269. package/dist/components/inputs/time-picker/time-picker.d.ts +28 -19
  270. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  271. package/dist/components/inputs/time-picker/time-picker.js +78 -51
  272. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  273. package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
  274. package/dist/components/inputs/time-picker/time-picker.styles.js +2 -1
  275. package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
  276. package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
  277. package/dist/components/inputs/time-picker/time-picker.template.js +1 -0
  278. package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
  279. package/dist/components/layout/kanban/kanban-column.d.ts +1 -1
  280. package/dist/components/layout/kanban/kanban-column.js +1 -1
  281. package/dist/components/layout/kanban/kanban.d.ts +7 -7
  282. package/dist/components/layout/kanban/kanban.js +9 -9
  283. package/dist/components/layout/kanban/kanban.js.map +1 -1
  284. package/dist/components/layout/page-footer/page-footer.d.ts +4 -0
  285. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  286. package/dist/components/layout/page-footer/page-footer.js +7 -12
  287. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  288. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  289. package/dist/components/layout/page-footer/page-footer.styles.js +4 -19
  290. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  291. package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
  292. package/dist/components/layout/page-footer/page-footer.template.js +1 -4
  293. package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
  294. package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
  295. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  296. package/dist/components/layout/page-sections/hero/hero.js +1 -0
  297. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  298. package/dist/components/layout/popover/popover.d.ts +24 -2
  299. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  300. package/dist/components/layout/popover/popover.js +110 -13
  301. package/dist/components/layout/popover/popover.js.map +1 -1
  302. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  303. package/dist/components/layout/popover/popover.styles.js +6 -0
  304. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  305. package/dist/components/lists-and-tables/cells/cell/cell.d.ts +2 -0
  306. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  307. package/dist/components/lists-and-tables/cells/cell/cell.js +2 -1
  308. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  309. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +2 -0
  310. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  311. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +2 -1
  312. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  313. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +2 -0
  314. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  315. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +2 -1
  316. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  317. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +46 -0
  318. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -0
  319. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts +5 -0
  320. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts.map +1 -0
  321. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js +4 -0
  322. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js.map +1 -0
  323. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.js → reorder-handle-cell/reorder-handle-cell.js} +24 -24
  324. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -0
  325. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts +2 -0
  326. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts.map +1 -0
  327. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.styles.js → reorder-handle-cell/reorder-handle-cell.styles.js} +14 -14
  328. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js.map +1 -0
  329. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.template.d.ts → reorder-handle-cell/reorder-handle-cell.template.d.ts} +1 -1
  330. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.d.ts.map +1 -0
  331. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.template.js → reorder-handle-cell/reorder-handle-cell.template.js} +4 -4
  332. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.js.map +1 -0
  333. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts +2 -0
  334. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
  335. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
  336. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
  337. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +2 -0
  338. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  339. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +2 -1
  340. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  341. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -0
  342. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  343. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -1
  344. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  345. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +7 -5
  346. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  347. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +4 -3
  348. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  349. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +5 -5
  350. package/dist/components/lists-and-tables/list/list.d.ts +3 -2
  351. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  352. package/dist/components/lists-and-tables/list/list.js +15 -21
  353. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  354. package/dist/components/lists-and-tables/list-item/list-item.d.ts +30 -14
  355. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  356. package/dist/components/lists-and-tables/list-item/list-item.js +107 -154
  357. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  358. package/dist/components/lists-and-tables/list-item/list-item.styles.js +3 -3
  359. package/dist/components/lists-and-tables/table/table.d.ts +4 -4
  360. package/dist/components/lists-and-tables/table/table.js +5 -5
  361. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  362. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +6 -6
  363. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  364. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +16 -24
  365. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  366. package/dist/components/navigation/tab-bar/tab-bar.d.ts +2 -2
  367. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  368. package/dist/components/navigation/tab-bar/tab-bar.js +4 -4
  369. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  370. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +1 -1
  371. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
  372. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
  373. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  374. package/dist/components/navigation/top-title-bar/top-title-bar.js +12 -0
  375. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  376. package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
  377. package/dist/components/status-and-feedback/banner/banner.js +1 -1
  378. package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
  379. package/dist/components/status-and-feedback/banner/banner.styles.js +6 -2
  380. package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
  381. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +1 -1
  382. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +1 -1
  383. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +2 -2
  384. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
  385. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +5 -7
  386. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  387. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -1
  388. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
  389. package/dist/css/global-open-font.css +1 -0
  390. package/dist/css/global.css +1 -0
  391. package/dist/css/title.css +88 -0
  392. package/dist/css/variables.css +2 -3
  393. package/dist/nldd.min.js +942 -866
  394. package/dist/translations/en-US.js +1 -1
  395. package/dist/translations/en-US.js.map +1 -1
  396. package/dist/translations/fy.js +1 -1
  397. package/dist/translations/fy.js.map +1 -1
  398. package/dist/translations/nl.generated.d.ts +1 -1
  399. package/dist/translations/nl.generated.js +2 -2
  400. package/dist/translations/nl.generated.js.map +1 -1
  401. package/dist/translations/pap-AW.js +1 -1
  402. package/dist/translations/pap-AW.js.map +1 -1
  403. package/dist/translations/pap-CW.js +1 -1
  404. package/dist/translations/pap-CW.js.map +1 -1
  405. package/dist/types/react.d.ts +45 -37
  406. package/dist/types/vue.d.ts +74 -59
  407. package/dist/utilities/autoloader.generated.js +1 -1
  408. package/dist/utilities/autoloader.generated.js.map +1 -1
  409. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  410. package/dist/utilities/dev-rules.generated.js +75 -25
  411. package/dist/utilities/dev-rules.generated.js.map +1 -1
  412. package/dist/utilities/form-associated-mixin.d.ts +10 -0
  413. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  414. package/dist/utilities/form-associated-mixin.js +17 -0
  415. package/dist/utilities/form-associated-mixin.js.map +1 -1
  416. package/dist/utilities/reorder-handle-mixin.d.ts +21 -0
  417. package/dist/utilities/reorder-handle-mixin.d.ts.map +1 -0
  418. package/dist/utilities/reorder-handle-mixin.js +34 -0
  419. package/dist/utilities/reorder-handle-mixin.js.map +1 -0
  420. package/dist/utilities/return-focus.d.ts +14 -0
  421. package/dist/utilities/return-focus.d.ts.map +1 -1
  422. package/dist/utilities/return-focus.js +26 -8
  423. package/dist/utilities/return-focus.js.map +1 -1
  424. package/lint/data.generated.json +1 -1
  425. package/lint/engine.js +53 -1
  426. package/lint/fix.js +11 -0
  427. package/lint/format.js +6 -5
  428. package/lint/frontends.js +224 -16
  429. package/lint/linter.js +10 -4
  430. package/lint/main.js +36 -9
  431. package/lint/project.js +73 -4
  432. package/lint/rule-data.js +17 -2
  433. package/lint/rule.schema.json +1 -0
  434. package/lint/tree.js +3 -0
  435. package/package.json +6 -6
  436. package/dist/cdn/chunks/blockquote-BoOqbGdm.js +0 -189
  437. package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +0 -3
  438. package/dist/cdn/chunks/nl.generated-D6T41jG3.js +0 -112
  439. package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +0 -47
  440. package/dist/cdn/chunks/with-translations-XX14GKFh.js +0 -16
  441. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts +0 -44
  442. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +0 -1
  443. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts +0 -5
  444. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts.map +0 -1
  445. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js +0 -4
  446. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +0 -1
  447. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +0 -1
  448. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts +0 -2
  449. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +0 -1
  450. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +0 -1
  451. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +0 -1
  452. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +0 -1
package/lint/project.js CHANGED
@@ -6,7 +6,10 @@ import { extname, join, relative, resolve } from 'node:path';
6
6
 
7
7
  export const IGNORED_DIRECTORIES = new Set(['node_modules', 'dist', 'build', 'coverage', '.git', '.next', '.nuxt']);
8
8
  /** Markdown is linted on request: documentation is full of deliberately wrong examples. */
9
- const DEFAULT_EXTENSIONS = ['.html', '.htm', '.j2', '.jinja', '.jinja2', '.vue', '.jsx', '.tsx'];
9
+ export const DEFAULT_EXTENSIONS = ['.html', '.htm', '.j2', '.jinja', '.jinja2', '.vue', '.jsx', '.tsx'];
10
+
11
+ /** Read only when a rule about an app's own stylesheets is on. */
12
+ export const STYLESHEET_EXTENSIONS = ['.css', '.scss', '.sass', '.less'];
10
13
 
11
14
  /** Where a tag name stands outside markup: the linter does not read these, a renamed tag does. */
12
15
  export const REFERENCE_EXTENSIONS = ['.js', '.mjs', '.cjs', '.ts', '.css', '.scss', '.less'];
@@ -125,13 +128,79 @@ export function applyBaseline(filename, findings, baseline, root) {
125
128
  });
126
129
  }
127
130
 
128
- export function writeBaseline(results, root, canonical) {
131
+ const countFindings = (findings) => {
132
+ const counts = {};
133
+ for (const finding of findings.filter(({ severity }) => severity !== 'hint')) {
134
+ counts[baselineKey(finding)] = (counts[baselineKey(finding)] ?? 0) + 1;
135
+ }
136
+ return counts;
137
+ };
138
+
139
+ /** How many accepted findings of the rules that ran are gone from the files that were read. */
140
+ export function looseInBaseline(results, baseline, root, ran) {
141
+ let loose = 0;
142
+ for (const { filename, findings } of results) {
143
+ const found = countFindings(findings);
144
+ for (const [entry, count] of Object.entries(baseline[relative(root, filename)] ?? {})) {
145
+ if (ran(entry.split('|')[0])) loose += Math.max(0, count - (found[entry] ?? 0));
146
+ }
147
+ }
148
+ return loose;
149
+ }
150
+
151
+ /**
152
+ * Lowers what the baseline accepts to what is still there, and never raises or adds
153
+ * anything: a ratchet. A file that is gone takes its entry along.
154
+ */
155
+ export function tightenBaseline(results, root, canonical, ran) {
156
+ if (!existsSync(join(root, BASELINE_FILE))) return undefined;
157
+ const baseline = readBaseline(root, canonical);
158
+ const read = new Map(results.map(({ filename, findings }) => [relative(root, filename), countFindings(findings)]));
159
+ // Only the rules that ran can be compared; what the others accepted moves along as it is.
160
+ const ranOnly = (entries) => Object.fromEntries(Object.entries(entries).filter(([entry]) => ran(entry.split('|')[0])));
161
+ const sameCounts = (a, b) => {
162
+ const left = ranOnly(a);
163
+ const right = ranOnly(b);
164
+ return Object.keys({ ...left, ...right }).every((key) => left[key] === right[key]);
165
+ };
166
+ let dropped = 0;
167
+ for (const [file, entries] of Object.entries(baseline)) {
168
+ if (!existsSync(join(root, file))) {
169
+ // A file that moved takes its entry along, when exactly one file was read under
170
+ // a new name with exactly what was accepted. With nothing of its own that ran,
171
+ // there is nothing to compare, so the entry waits for a run that can. Two
172
+ // candidates are a guess, and a guess drops it: its findings then show.
173
+ if (Object.keys(ranOnly(entries)).length === 0) continue;
174
+ const moved = [...read].filter(([name, found]) => !baseline[name] && sameCounts(entries, found));
175
+ if (moved.length === 1) baseline[moved[0][0]] = entries;
176
+ else dropped += Object.values(entries).reduce((sum, count) => sum + count, 0);
177
+ delete baseline[file];
178
+ continue;
179
+ }
180
+ const found = read.get(file);
181
+ if (!found) continue;
182
+ for (const [entry, count] of Object.entries(entries)) {
183
+ if (!ran(entry.split('|')[0])) continue;
184
+ const kept = Math.min(count, found[entry] ?? 0);
185
+ dropped += count - kept;
186
+ if (kept === 0) delete entries[entry];
187
+ else entries[entry] = kept;
188
+ }
189
+ if (Object.keys(entries).length === 0) delete baseline[file];
190
+ }
191
+ writeFileSync(join(root, BASELINE_FILE), `${JSON.stringify(baseline, null, '\t')}\n`);
192
+ return dropped;
193
+ }
194
+
195
+ /** `ran` says which rules this run checked: what another rule accepted stays accepted. */
196
+ export function writeBaseline(results, root, canonical, ran = () => true) {
129
197
  const baseline = readBaseline(root, canonical);
130
198
  for (const { filename, findings } of results) {
131
199
  const key = relative(root, filename);
200
+ const kept = Object.entries(baseline[key] ?? {}).filter(([entry]) => !ran(entry.split('|')[0]));
132
201
  delete baseline[key];
133
- if (findings.every(({ severity }) => severity === 'hint')) continue;
134
- baseline[key] = {};
202
+ if (kept.length === 0 && findings.every(({ severity }) => severity === 'hint')) continue;
203
+ baseline[key] = Object.fromEntries(kept);
135
204
  // A hint fails nothing, so there is nothing to accept.
136
205
  for (const finding of findings.filter(({ severity }) => severity !== 'hint')) {
137
206
  const entry = baselineKey(finding);
package/lint/rule-data.js CHANGED
@@ -3,13 +3,20 @@
3
3
  import { readFileSync } from 'node:fs';
4
4
 
5
5
  /** What a rule is about. The first that fits, top to bottom, is the group of a rule. */
6
- export const GROUPS = ['api', 'a11y', 'copy', 'structure', 'pattern'];
6
+ export const GROUPS = ['api', 'a11y', 'copy', 'structure', 'pattern', 'pure'];
7
+
8
+ /**
9
+ * Groups a project turns on itself, with `--pure` or a level in its config. They ask
10
+ * more than using the components right, so they never fire unasked.
11
+ */
12
+ export const OPT_IN_GROUPS = ['pure'];
7
13
 
8
14
  /**
9
15
  * Turns config keys and --select and --ignore into a level per rule. A key is a
10
16
  * group or a rule, and a rule beats its group whatever the order.
11
17
  */
12
- export function resolveSeverities(data, levels = {}, { select, ignore } = {}) {
18
+ export function resolveSeverities(data, levels = {}, { select, ignore, optIn = [] } = {}) {
19
+ const levelOf = new Map(data.rules.map((rule) => [rule.id, rule.severity]));
13
20
  const groupOf = new Map([
14
21
  ...Object.keys(BUILT_IN_RULES).map((id) => [id, 'api']),
15
22
  ...data.rules.map((rule) => [rule.id, rule.group]),
@@ -23,6 +30,14 @@ export function resolveSeverities(data, levels = {}, { select, ignore } = {}) {
23
30
  );
24
31
  for (const [id, group] of groupOf) {
25
32
  if (!severities[id] && levels[group]) severities[id] = levels[group];
33
+ if (OPT_IN_GROUPS.includes(group)) {
34
+ // The command line beats the config for the group, not for a rule the config names.
35
+ const namedInConfig = Object.keys(levels).some((key) => canonical(key) === id);
36
+ if (optIn.includes(group) && !namedInConfig && severities[id] === 'off') delete severities[id];
37
+ const chosen = severities[id] || optIn.includes(group) || (select?.length && matches(id, select));
38
+ // The linter runs a rule of such a group only with a level written out.
39
+ severities[id] = chosen ? (severities[id] ?? levelOf.get(id)) : 'off';
40
+ }
26
41
  if (select?.length && !matches(id, select)) severities[id] = 'off';
27
42
  if (ignore?.length && matches(id, ignore)) severities[id] = 'off';
28
43
  }
@@ -22,6 +22,7 @@
22
22
  "rename": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Attributes in `removed` that got another name, old to new." },
23
23
  "value": { "type": "object", "additionalProperties": { "type": "object", "additionalProperties": { "type": "string" } }, "description": "Per attribute, values that got another name, old to new. Only a value written out in the markup." },
24
24
  "remove": { "type": "array", "items": { "type": "string" }, "description": "Attributes in `removed` that do nothing any more." },
25
+ "flag": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Attributes in `removed` whose value became a boolean attribute, old to new. The context names the value; only a value written out in the markup." },
25
26
  "tag": { "type": "string", "description": "The new tag of a component in `removed` that got another name." }
26
27
  }
27
28
  },
package/lint/tree.js CHANGED
@@ -24,6 +24,8 @@ export const BOUND = Symbol('bound');
24
24
  * @property {boolean} toggled In the DOM, but maybe not visible (`v-show`).
25
25
  * @property {boolean} wrapped A framework wrapper standing in for this tag.
26
26
  * @property {boolean} templated A template language writes into the tag itself.
27
+ * @property {boolean} text Holds text of its own, not only elements.
28
+ * @property {boolean} [detached] On a root: markup this file builds to place elsewhere, not what it renders itself.
27
29
  */
28
30
 
29
31
  /** @returns {TreeNode} */
@@ -41,6 +43,7 @@ export function createNode(name, offset = 0) {
41
43
  toggled: false,
42
44
  wrapped: false,
43
45
  templated: false,
46
+ text: false,
44
47
  };
45
48
  }
46
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nldd/design-system",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Designsysteem voor de Nederlandse Digitale Dienst",
5
5
  "type": "module",
6
6
  "main": "dist/components/index.js",
@@ -387,9 +387,9 @@
387
387
  "types": "./dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts",
388
388
  "default": "./dist/components/lists-and-tables/cells/description-cell/description-cell.js"
389
389
  },
390
- "./drag-handle-cell": {
391
- "types": "./dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts",
392
- "default": "./dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js"
390
+ "./reorder-handle-cell": {
391
+ "types": "./dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts",
392
+ "default": "./dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js"
393
393
  },
394
394
  "./step-cell": {
395
395
  "types": "./dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts",
@@ -572,7 +572,7 @@
572
572
  },
573
573
  "scripts": {
574
574
  "build": "npm run build:styles && npm run build:assets && npm run validate:styles && npm run validate:host-styles && npm run build:components",
575
- "build:styles": "rm -rf dist/css dist/fonts && mkdir -p dist/css dist/fonts && cp src/assets/styles/variables.css src/assets/styles/colors.generated.css src/assets/styles/rijksoverheid-fonts.css src/assets/styles/inter-font.css src/assets/styles/jetbrains-mono-font.css src/assets/styles/document-reset.css src/assets/styles/fouc.css dist/css/ && cp src/assets/styles/themes.css dist/css/ && mkdir -p dist/css/themes && cp src/assets/styles/themes/*.css dist/css/themes/ && cp src/components/content/rich-text/rich-text.css src/components/forms/form/form.css src/components/forms/form-section/form-section.css dist/css/ && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global.css && printf '@import \"./inter-font.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global-open-font.css && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n' > dist/css/tokens.css && cp src/assets/fonts/*.woff2 dist/fonts/",
575
+ "build:styles": "rm -rf dist/css dist/fonts && mkdir -p dist/css dist/fonts && cp src/assets/styles/variables.css src/assets/styles/colors.generated.css src/assets/styles/rijksoverheid-fonts.css src/assets/styles/inter-font.css src/assets/styles/jetbrains-mono-font.css src/assets/styles/document-reset.css src/assets/styles/fouc.css dist/css/ && cp src/assets/styles/themes.css dist/css/ && mkdir -p dist/css/themes && cp src/assets/styles/themes/*.css dist/css/themes/ && cp src/components/content/rich-text/rich-text.css src/components/content/title/title.css src/components/forms/form/form.css src/components/forms/form-section/form-section.css dist/css/ && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./title.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global.css && printf '@import \"./inter-font.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./title.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global-open-font.css && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./jetbrains-mono-font.css\";\\n@import \"./variables.css\";\\n' > dist/css/tokens.css && cp src/assets/fonts/*.woff2 dist/fonts/",
576
576
  "build:assets": "mkdir -p dist/favicon && cp src/assets/favicon/favicon.svg src/assets/favicon/touch-icon.png dist/ && for theme in src/assets/favicon/*/; do cp -R \"${theme%/}\" dist/favicon/; done",
577
577
  "generate:colors": "node scripts/generate-colors.js && npm run generate:themes",
578
578
  "generate:themes": "node scripts/generate-themes.js",
@@ -663,7 +663,7 @@
663
663
  "svgo": "^4.1.0",
664
664
  "typescript": "^5.3.0",
665
665
  "typescript-eslint": "^8.58.0",
666
- "vite": "8.3.5",
666
+ "vite": "8.3.6",
667
667
  "vitest": "5.1.0",
668
668
  "vue": "^3.5.40",
669
669
  "vue-tsc": "^3.3.7",
@@ -1,189 +0,0 @@
1
- import { a as e, i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
2
- import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
3
- import { t as c } from "./custom-element-BW8Ua4c7.js";
4
- import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
5
- import { n as u, t as d } from "./shadow-resets-6SToDsPu.js";
6
- import { n as f } from "./breakpoints-Cwor8TRP.js";
7
- import { n as p, r as m } from "./custom-font-size-D7KNr84p.js";
8
- // src/components/content/blockquote/blockquote.styles.ts
9
- var h = e(f.smMax), g = e(f.mdMin), _ = e(f.mdMax), v = e(f.lgMin), y = t`
10
- :host {
11
- box-sizing: border-box;
12
- }
13
-
14
-
15
- /* # Host */
16
-
17
- :host {
18
- --_blockquote-spacing: var(--semantics-blockquotes-md-spacing);
19
- --_blockquote-quote-font: var(--semantics-blockquotes-md-quote-font);
20
- --_blockquote-attribution-font: var(--semantics-blockquotes-md-attribution-font);
21
- --_blockquote-sm-custom-size: initial;
22
- --_blockquote-md-custom-size: initial;
23
- --_blockquote-lg-custom-size: initial;
24
- --_blockquote-sm-custom-font: italic var(--primitives-font-weight-body-regular) max(var(--_blockquote-sm-custom-size), var(--primitives-font-size-200)) / var(--primitives-line-height-snug) var(--primitives-font-family-body);
25
- --_blockquote-md-custom-font: italic var(--primitives-font-weight-body-regular) max(var(--_blockquote-md-custom-size), var(--primitives-font-size-300)) / var(--primitives-line-height-snug) var(--primitives-font-family-body);
26
- --_blockquote-lg-custom-font: italic var(--primitives-font-weight-body-regular) max(var(--_blockquote-lg-custom-size), var(--primitives-font-size-300)) / var(--primitives-line-height-snug) var(--primitives-font-family-body);
27
-
28
- @media (max-width: ${h}) {
29
- --_blockquote-spacing: var(--semantics-blockquotes-sm-spacing);
30
- --_blockquote-quote-font: var(--semantics-blockquotes-sm-quote-font);
31
- --_blockquote-attribution-font: var(--semantics-blockquotes-sm-attribution-font);
32
- }
33
-
34
- @container layout-container (max-width: ${h}) {
35
- --_blockquote-spacing: var(--semantics-blockquotes-sm-spacing);
36
- --_blockquote-quote-font: var(--semantics-blockquotes-sm-quote-font);
37
- --_blockquote-attribution-font: var(--semantics-blockquotes-sm-attribution-font);
38
- }
39
-
40
- ${d}
41
- display: block;
42
- max-width: var(--semantics-blockquotes-max-width);
43
- }
44
-
45
- :host([hidden]) {
46
- display: none;
47
- }
48
-
49
- /* ## Custom size */
50
-
51
- :host([data-sm-custom-size]) {
52
- @media (max-width: ${h}) {
53
- --_blockquote-quote-font: var(--_blockquote-sm-custom-font);
54
- }
55
-
56
- @container layout-container (max-width: ${h}) {
57
- --_blockquote-quote-font: var(--_blockquote-sm-custom-font);
58
- }
59
- }
60
-
61
- :host([data-md-custom-size]) {
62
- @media (min-width: ${g}) and (max-width: ${_}) {
63
- --_blockquote-quote-font: var(--_blockquote-md-custom-font);
64
- }
65
-
66
- @container layout-container (min-width: ${g}) and (max-width: ${_}) {
67
- --_blockquote-quote-font: var(--_blockquote-md-custom-font);
68
- }
69
- }
70
-
71
- :host([data-lg-custom-size]) {
72
- @media (min-width: ${v}) {
73
- --_blockquote-quote-font: var(--_blockquote-lg-custom-font);
74
- }
75
-
76
- @container layout-container (min-width: ${v}) {
77
- --_blockquote-quote-font: var(--_blockquote-lg-custom-font);
78
- }
79
- }
80
-
81
-
82
- /* # Block */
83
-
84
- .blockquote {
85
- display: flex;
86
- margin: 0;
87
- border-left: var(--semantics-blockquotes-border);
88
- padding-inline: var(--_blockquote-spacing);
89
- padding-bottom: 0;
90
- flex-direction: column;
91
- gap: calc(var(--_blockquote-spacing) / 2);
92
- color: var(--semantics-content-color);
93
- text-wrap: pretty;
94
- }
95
-
96
-
97
- /* # Elements */
98
-
99
- .blockquote__quote {
100
- display: flex;
101
- flex-direction: column;
102
- gap: calc(1lh / 2);
103
- font: var(--_blockquote-quote-font);
104
- }
105
-
106
- .blockquote__attribution {
107
- display: block;
108
- font: var(--_blockquote-attribution-font);
109
- }
110
-
111
- .blockquote__attribution::before {
112
- content: '— ' / '';
113
- }
114
-
115
- .blockquote__attribution.is-identity::before {
116
- content: none;
117
- }
118
-
119
- .blockquote__attribution[hidden] {
120
- display: none;
121
- }
122
-
123
- ::slotted(p) {
124
- ${u}
125
- ${d}
126
- margin: 0 !important;
127
- }
128
-
129
- .blockquote__attribution::slotted(p) {
130
- display: inline !important;
131
- }
132
- `;
133
- // src/components/content/blockquote/blockquote.template.ts
134
- function b(e) {
135
- return a`
136
- <blockquote class="blockquote"
137
- cite=${e.cite || o}
138
- >
139
- <div class="blockquote__quote">
140
- <slot></slot>
141
- </div>
142
- <slot class="blockquote__attribution${e._hasIdentityAttribution ? " is-identity" : ""}"
143
- name="attribution"
144
- ?hidden=${!e._hasAttribution}
145
- @slotchange=${e._handleAttributionSlotChange}
146
- ></slot>
147
- </blockquote>
148
- `;
149
- }
150
- // src/components/content/blockquote/blockquote.ts
151
- var x, S = {
152
- sm: "var(--primitives-font-size-200)",
153
- md: "var(--primitives-font-size-300)",
154
- lg: "var(--primitives-font-size-300)"
155
- }, C = (x = class extends i {
156
- constructor(...e) {
157
- super(...e), this.cite = void 0, this.smCustomSize = "", this.mdCustomSize = "", this.lgCustomSize = "", this._hasAttribution = !1, this._hasIdentityAttribution = !1, this._handleAttributionSlotChange = (e) => {
158
- let t = e.target;
159
- this._hasAttribution = t.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE || (e.textContent ?? "").trim().length > 0), this._hasIdentityAttribution = t.assignedElements({ flatten: !0 }).some((e) => e.tagName === "NLDD-IDENTITY");
160
- }, this._customSizes = {};
161
- }
162
- willUpdate(e) {
163
- super.willUpdate(e), (e.has("smCustomSize") || e.has("mdCustomSize") || e.has("lgCustomSize")) && (this._customSizes = p(this, "blockquote", {
164
- sm: this.smCustomSize,
165
- md: this.mdCustomSize,
166
- lg: this.lgCustomSize
167
- }));
168
- }
169
- updated(e) {
170
- super.updated(e), import.meta.env?.DEV && (e.has("smCustomSize") || e.has("mdCustomSize") || e.has("lgCustomSize")) && m(this, this._customSizes, S);
171
- }
172
- render() {
173
- return b(this);
174
- }
175
- }, x.styles = y, x);
176
- s([n({ type: String })], C.prototype, "cite", void 0), s([n({
177
- reflect: !0,
178
- attribute: "sm-custom-size",
179
- converter: l("")
180
- })], C.prototype, "smCustomSize", void 0), s([n({
181
- reflect: !0,
182
- attribute: "md-custom-size",
183
- converter: l("")
184
- })], C.prototype, "mdCustomSize", void 0), s([n({
185
- reflect: !0,
186
- attribute: "lg-custom-size",
187
- converter: l("")
188
- })], C.prototype, "lgCustomSize", void 0), s([r()], C.prototype, "_hasAttribution", void 0), s([r()], C.prototype, "_hasIdentityAttribution", void 0), C = s([c("nldd-blockquote")], C);
189
- export { C as NLDDBlockquote };
@@ -1,3 +0,0 @@
1
- // src/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.ts
2
- var e = { "components.drag-handle-cell.accessible-label": "Sleepgreep, druk spatie of enter om te verplaatsen" };
3
- export { e as t };
@@ -1,112 +0,0 @@
1
- import { t as e } from "./button.i18n-BGFt7Z9u.js";
2
- import { t } from "./activity-indicator.i18n-D7mCy6d2.js";
3
- import { t as n } from "./icon-button.i18n-DpZOfIS4.js";
4
- import { t as r } from "./menu.i18n-C6uYJsG3.js";
5
- import { t as i } from "./split-button.i18n-DtClSMga.js";
6
- import { t as a } from "./toolbar.i18n-QwS37CBC.js";
7
- import { t as o } from "./avatar.i18n-CMwQjBkS.js";
8
- import { t as s } from "./popover.i18n-DmFBHUvB.js";
9
- import { t as c } from "./list.i18n-C40ltgdI.js";
10
- import { t as l } from "./list-item.i18n-Br6J5Ev9.js";
11
- import { t as u } from "./avatar-group.i18n-BYw_9wt_.js";
12
- import { t as d } from "./code-viewer.i18n-BHfSDRbK.js";
13
- import { t as f } from "./image.i18n-ONcm1h7o.js";
14
- import { t as p } from "./rich-text.i18n-BlJ68YuU.js";
15
- import { t as m } from "./token.i18n-RGD5zAtl.js";
16
- import { t as h } from "./validation-list.i18n-CM6In8zD.js";
17
- import { t as g } from "./combo-box.i18n-BorzYnJ2.js";
18
- import { r as _ } from "./date-picker.i18n-Dsc_M5QK.js";
19
- import { t as v } from "./date-field.i18n-BTzc0E9a.js";
20
- import { t as y } from "./file-field.i18n-pDM7Utud.js";
21
- import { t as b } from "./number-field.i18n-BS0bINWY.js";
22
- import { t as x } from "./password-field.i18n-CzdBn-1b.js";
23
- import { t as S } from "./search-field.i18n-B_Oc7hc-.js";
24
- import { t as C } from "./slider.i18n-DVw0c8AG.js";
25
- import { t as w } from "./stepper.i18n-COOAkaBl.js";
26
- import { t as T } from "./swatch-picker.i18n-_G0nmnGe.js";
27
- import { t as ee } from "./text-editor.i18n-sJKiRQ4i.js";
28
- import { t as E } from "./time-picker.i18n-BilOCXlS.js";
29
- import { t as D } from "./time-field.i18n-CLH5vmS7.js";
30
- import { t as O } from "./token-field.i18n-BclzoR8F.js";
31
- import { t as k } from "./card.i18n-CpafLm3i.js";
32
- import { t as A } from "./collection.i18n-DqWPGnZO.js";
33
- import { t as j } from "./kanban.i18n-CWqc3e0B.js";
34
- import { t as M } from "./page-footer.i18n-pbdr4lN3.js";
35
- import { t as N } from "./sidebar-section.i18n-BuGfRMpD.js";
36
- import { t as P } from "./window.i18n-CsEnUPAk.js";
37
- import { t as F } from "./drag-handle-cell.i18n-CKUrbm2q.js";
38
- import { t as I } from "./list-item-segment.i18n-DHnrQL4V.js";
39
- import { t as L } from "./table.i18n-Bmb_uw_w.js";
40
- import { t as R } from "./breadcrumbs.i18n-zmO8jaTO.js";
41
- import { t as z } from "./document-tab-bar.i18n-DKrA9TnB.js";
42
- import { t as B } from "./link.i18n-DJPobGmu.js";
43
- import { t as V } from "./menu-bar.i18n-BoMu4Eoz.js";
44
- import { t as H } from "./pagination.i18n-QQMx14CQ.js";
45
- import { t as U } from "./skip-link.i18n--PbEdAmJ.js";
46
- import { t as W } from "./tab-bar.i18n-Crsc7ShA.js";
47
- import { t as G } from "./top-navigation-bar.i18n-C-lcH1nB.js";
48
- import { t as K } from "./badge.i18n-DqW7hLQj.js";
49
- import { t as q } from "./banner.i18n-BOCM9rGN.js";
50
- import { t as J } from "./just-in-time-education.i18n-CW_dsaxf.js";
51
- import { t as Y } from "./notification.i18n-BKUSLN5c.js";
52
- import { t as X } from "./progress-bar.i18n-Cr5miGTx.js";
53
- import { t as Z } from "./progress-circle.i18n-CRrXuY4V.js";
54
- import { t as Q } from "./step-bar.i18n-DocExlD7.js";
55
- // src/translations/nl.generated.ts
56
- var $ = {
57
- ...e,
58
- ...n,
59
- ...r,
60
- ...i,
61
- ...a,
62
- ...u,
63
- ...o,
64
- ...d,
65
- ...f,
66
- ...p,
67
- ...m,
68
- ...h,
69
- ...g,
70
- ...v,
71
- ..._,
72
- ...y,
73
- ...b,
74
- ...x,
75
- ...S,
76
- ...C,
77
- ...w,
78
- ...T,
79
- ...ee,
80
- ...D,
81
- ...E,
82
- ...O,
83
- ...k,
84
- ...A,
85
- ...j,
86
- ...M,
87
- ...N,
88
- ...s,
89
- ...P,
90
- ...F,
91
- ...I,
92
- ...l,
93
- ...c,
94
- ...L,
95
- ...R,
96
- ...z,
97
- ...B,
98
- ...V,
99
- ...H,
100
- ...U,
101
- ...W,
102
- ...G,
103
- ...t,
104
- ...K,
105
- ...q,
106
- ...J,
107
- ...Y,
108
- ...X,
109
- ...Z,
110
- ...Q
111
- };
112
- export { $ as default, $ as nl };
@@ -1,47 +0,0 @@
1
- import { n as e } from "./custom-element-q6NzoL5b.js";
2
- import { n as t, t as n } from "./decorate-TduJMFD_.js";
3
- import { t as r } from "./custom-element-BW8Ua4c7.js";
4
- import { t as i } from "./reflect-non-default-Bu3rpCvg.js";
5
- import { t as a } from "./translations-wxBSz213.js";
6
- import { t as o } from "./rich-text.i18n-BlJ68YuU.js";
7
- // src/components/content/rich-text/rich-text.ts
8
- var s = "data-nldd-managed-label", c = class extends t {
9
- constructor(...e) {
10
- super(...e), this.color = "content", this.spacing = "snug", this.centered = !1, this.translations = {}, this.hyphens = !1;
11
- }
12
- _t(e) {
13
- return a(this.translations, o, e);
14
- }
15
- createRenderRoot() {
16
- return this;
17
- }
18
- connectedCallback() {
19
- super.connectedCallback(), this._resizeObserver = new ResizeObserver(() => this._syncTables()), this._resizeObserver.observe(this), this._mutationObserver = new MutationObserver(() => this._syncTables()), this._mutationObserver.observe(this, {
20
- childList: !0,
21
- subtree: !0
22
- }), this._syncTables();
23
- }
24
- disconnectedCallback() {
25
- super.disconnectedCallback(), this._mutationObserver?.disconnect(), this._mutationObserver = void 0, this._resizeObserver?.disconnect(), this._resizeObserver = void 0;
26
- }
27
- updated() {
28
- for (let e of this.querySelectorAll(`table[${s}]`)) e.setAttribute("aria-label", this._t("components.rich-text.table-scroll-label"));
29
- }
30
- _syncTables() {
31
- for (let e of this.querySelectorAll("table")) e.scrollWidth > e.clientWidth ? e.getAttribute("tabindex") !== "0" && (e.setAttribute("tabindex", "0"), e.hasAttribute("aria-label") || e.hasAttribute("aria-labelledby") || e.querySelector("caption") || (e.setAttribute("aria-label", this._t("components.rich-text.table-scroll-label")), e.setAttribute(s, ""))) : e.getAttribute("tabindex") === "0" && (e.removeAttribute("tabindex"), e.hasAttribute(s) && (e.removeAttribute("aria-label"), e.removeAttribute(s)));
32
- }
33
- };
34
- n([e({
35
- reflect: !0,
36
- converter: i("content")
37
- })], c.prototype, "color", void 0), n([e({
38
- reflect: !0,
39
- converter: i("snug")
40
- })], c.prototype, "spacing", void 0), n([e({
41
- type: Boolean,
42
- reflect: !0
43
- })], c.prototype, "centered", void 0), n([e({ type: Object })], c.prototype, "translations", void 0), n([e({
44
- type: Boolean,
45
- reflect: !0
46
- })], c.prototype, "hyphens", void 0), c = n([r("nldd-rich-text")], c);
47
- export { c as NLDDRichText };
@@ -1,16 +0,0 @@
1
- import { n as e } from "./custom-element-q6NzoL5b.js";
2
- import { t } from "./decorate-TduJMFD_.js";
3
- import { t as n } from "./translations-wxBSz213.js";
4
- // src/utilities/with-translations.ts
5
- function r(r, i) {
6
- class a extends r {
7
- constructor(...e) {
8
- super(...e), this.translations = {};
9
- }
10
- _t(e, t) {
11
- return n(this.translations, i, e, t);
12
- }
13
- }
14
- return t([e({ type: Object })], a.prototype, "translations", void 0), a;
15
- }
16
- export { r as t };
@@ -1,44 +0,0 @@
1
- /**
2
- * Nederlandse Digitale Dienst Drag Handle Cell Component (Lit + TypeScript)
3
- *
4
- * A cell that displays a drag handle for reorderable list items.
5
- * Always vertically centered and sized to fit the handle.
6
- *
7
- * ### Usage with nldd-list
8
- * To enable drag-to-reorder, add the `reorderable-only` attribute to this element.
9
- * This attribute is required for `nldd-list` to detect the drag handle in the
10
- * composed event path and activate pointer and keyboard drag mode:
11
- *
12
- * ```html
13
- * <nldd-list reorderable>
14
- * <nldd-list-item>
15
- * <nldd-drag-handle-cell reorderable-only></nldd-drag-handle-cell>
16
- * <nldd-text-cell text="Item"></nldd-text-cell>
17
- * </nldd-list-item>
18
- * </nldd-list>
19
- * ```
20
- *
21
- * Without `reorderable-only`, pointer and keyboard drag will never trigger.
22
- *
23
- * @element nldd-drag-handle-cell
24
- * @attr {string} size - Handle size: 'sm' | 'md' (default: 'md')
25
- * @attr {object} translations - Override translation keys; unset keys fall back to Dutch. Sets the handle's accessible label.
26
- */
27
- import { LitElement } from 'lit';
28
- import type { NLDDDragHandleCellTranslations } from './drag-handle-cell.i18n.js';
29
- type Size = 'sm' | 'md';
30
- export declare class NLDDDragHandleCell extends LitElement {
31
- static styles: import("lit").CSSResult;
32
- size: Size;
33
- /** Override one or more translation keys. Unset keys fall back to the Dutch default. */
34
- translations: Partial<NLDDDragHandleCellTranslations>;
35
- private _t;
36
- render(): import("lit-html").TemplateResult<1>;
37
- }
38
- declare global {
39
- interface HTMLElementTagNameMap {
40
- 'nldd-drag-handle-cell': NLDDDragHandleCell;
41
- }
42
- }
43
- export {};
44
- //# sourceMappingURL=drag-handle-cell.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drag-handle-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAGjF,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAExB,qBACa,kBAAmB,SAAQ,UAAU;IACjD,OAAgB,MAAM,0BAAwB;IAG9C,IAAI,EAAE,IAAI,CAAQ;IAElB,wFAAwF;IAExF,YAAY,EAAE,OAAO,CAAC,8BAA8B,CAAC,CAAM;IAI3D,OAAO,CAAC,EAAE;IAID,MAAM;CAIf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,uBAAuB,EAAE,kBAAkB,CAAC;KAC5C;CACD"}
@@ -1,5 +0,0 @@
1
- export declare const nlddDragHandleCellTranslations: {
2
- 'components.drag-handle-cell.accessible-label': string;
3
- };
4
- export type NLDDDragHandleCellTranslations = typeof nlddDragHandleCellTranslations;
5
- //# sourceMappingURL=drag-handle-cell.i18n.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drag-handle-cell.i18n.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B;;CAE1C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAC"}
@@ -1,4 +0,0 @@
1
- export const nlddDragHandleCellTranslations = {
2
- 'components.drag-handle-cell.accessible-label': 'Sleepgreep, druk spatie of enter om te verplaatsen',
3
- };
4
- //# sourceMappingURL=drag-handle-cell.i18n.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drag-handle-cell.i18n.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC7C,8CAA8C,EAAE,oDAAoD;CACpG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"drag-handle-cell.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAK3D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAA3C;;QAIN,SAAI,GAAS,IAAI,CAAC;QAElB,wFAAwF;QAExF,iBAAY,GAA4C,EAAE,CAAC;IAY5D,CAAC;IAVA,0EAA0E;IAElE,EAAE,CAAC,GAAyC;QACnD,OAAO,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAC;IAC1E,CAAC;IAEQ,MAAM;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,8CAA8C,CAAC,CAAC;QACtE,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAlBe,yBAAM,GAAG,oBAAoB,AAAvB,CAAwB;AAG9C;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAO,IAAI,CAAC,EAAE,CAAC;gDACpD;AAIlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDACgC;AAR/C,kBAAkB;IAD9B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,kBAAkB,CAoB9B"}
@@ -1,2 +0,0 @@
1
- export declare const dragHandleCellStyles: import("lit").CSSResult;
2
- //# sourceMappingURL=drag-handle-cell.styles.d.ts.map