@nldd/design-system 0.23.0 → 0.25.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 (445) hide show
  1. package/custom-elements.json +1286 -47
  2. package/dist/assets/styles/scroll-fade.d.ts +13 -0
  3. package/dist/assets/styles/scroll-fade.d.ts.map +1 -0
  4. package/dist/assets/styles/scroll-fade.js +53 -0
  5. package/dist/assets/styles/scroll-fade.js.map +1 -0
  6. package/dist/assets/styles/shadow-resets.d.ts +9 -0
  7. package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
  8. package/dist/assets/styles/shadow-resets.js +13 -0
  9. package/dist/assets/styles/shadow-resets.js.map +1 -1
  10. package/dist/cdn/autoloader.js +137 -136
  11. package/dist/cdn/chunks/{activity-indicator-D86Mv6SL.js → activity-indicator-Dc6c9HtC.js} +12 -12
  12. package/dist/cdn/chunks/{avatar-BISv6tzp.js → avatar-CHXRpWWk.js} +17 -17
  13. package/dist/cdn/chunks/{avatar-group-D7IN6DxU.js → avatar-group-B76E8oC6.js} +20 -20
  14. package/dist/cdn/chunks/{badge-R3PZUsqZ.js → badge-tO7gHhdi.js} +5 -5
  15. package/dist/cdn/chunks/{banner-DRANlf5k.js → banner-D4kFQYXF.js} +15 -15
  16. package/dist/cdn/chunks/{bar-split-view-B-Y2nqgS.js → bar-split-view-C9bYdWSR.js} +7 -7
  17. package/dist/cdn/chunks/{blockquote-pUgJLPY1.js → blockquote-DRJajjBB.js} +9 -9
  18. package/dist/cdn/chunks/{box-BbXHpBQy.js → box-D10mS19t.js} +3 -3
  19. package/dist/cdn/chunks/{breadcrumbs-BdF4m3DB.js → breadcrumbs-BUdQJG3z.js} +6 -6
  20. package/dist/cdn/chunks/{button-CsqNHH3w.js → button-CwY9fWCg.js} +61 -48
  21. package/dist/cdn/chunks/{button-bar-CnYIw4fN.js → button-bar-DkqbRvff.js} +30 -30
  22. package/dist/cdn/chunks/{button-group-xaHghyon.js → button-group-p364JgTR.js} +2 -2
  23. package/dist/cdn/chunks/{card-Bbf0aCIh.js → card-B7TaSaw7.js} +9 -9
  24. package/dist/cdn/chunks/{cell-Dggt5oYG.js → cell-BTIpXf1T.js} +6 -6
  25. package/dist/cdn/chunks/{checkbox-DmFAS8ec.js → checkbox-BLEK0rAV.js} +4 -4
  26. package/dist/cdn/chunks/{checkbox-field-fOWPH8Q7.js → checkbox-field-CDtlpN-u.js} +5 -5
  27. package/dist/cdn/chunks/{class-map-BWGTUNv4.js → class-map-5WYS_nCb.js} +1 -1
  28. package/dist/cdn/chunks/{code-editor-CANFZX66.js → code-editor-CanGMLIo.js} +5 -5
  29. package/dist/cdn/chunks/{code-viewer-C_vUEx7J.js → code-viewer-DCZ3wjMd.js} +29 -21
  30. package/dist/cdn/chunks/{codemirror-input-wexTiqWw.js → codemirror-input-CtvDBy25.js} +4 -4
  31. package/dist/cdn/chunks/{collection-_emTry5U.js → collection-D8K79X0H.js} +20 -20
  32. package/dist/cdn/chunks/{combo-box-CGwj1u4a.js → combo-box-BeWoeEY8.js} +25 -25
  33. package/dist/cdn/chunks/{container-D5Dz-j6a.js → container-Be2J-GhB.js} +48 -48
  34. package/dist/cdn/chunks/{custom-element-DbwbPetH.js → custom-element-DGlHv_OV.js} +4 -2
  35. package/dist/cdn/chunks/{date-field-ChmyLtTj.js → date-field-BLaGVd4x.js} +29 -29
  36. package/dist/cdn/chunks/{date-field.i18n-BTzc0E9a.js → date-field.i18n-BqIx3eyr.js} +1 -1
  37. package/dist/cdn/chunks/{date-picker-CUQKdjS4.js → date-picker-C4mLZKWF.js} +16 -16
  38. package/dist/cdn/chunks/{decorate-_JGq4E_7.js → decorate-Czy-wI4F.js} +1 -1
  39. package/dist/cdn/chunks/{described-by-mixin-DbnuGktP.js → described-by-mixin-fLi4Nmt7.js} +6 -3
  40. package/dist/cdn/chunks/{description-cell-BgcO7ObI.js → description-cell-aQyLX0U0.js} +6 -6
  41. package/dist/cdn/chunks/{dev-checks-KAnKlxY0.js → dev-checks-qTR6tciJ.js} +140 -33
  42. package/dist/cdn/chunks/{dist-HgRt6IKh.js → dist-BLnIbkqH.js} +1 -1
  43. package/dist/cdn/chunks/{dist-DADIyiX-.js → dist-BNS6C8sP.js} +2 -2
  44. package/dist/cdn/chunks/{dist-CLKJ5z0x.js → dist-B_fXtXqM.js} +1 -1
  45. package/dist/cdn/chunks/{dist-CKZ98PMy.js → dist-CX0g6sV1.js} +3 -3
  46. package/dist/cdn/chunks/{dist-CJLBwJx0.js → dist-CZOXq9aZ.js} +1 -1
  47. package/dist/cdn/chunks/{dist-CBnQQ6kV.js → dist-CdF0c6UD.js} +2 -2
  48. package/dist/cdn/chunks/{dist-BJrN5nEM.js → dist-DHK9tNd7.js} +1 -1
  49. package/dist/cdn/chunks/{dist-BF9euKgj.js → dist-WQv_JUmB.js} +2 -2
  50. package/dist/cdn/chunks/{dist-D7Wubc1l.js → dist-_QFa91Kz.js} +1 -1
  51. package/dist/cdn/chunks/{dist-Bz3Isx60.js → dist-fDpuYq7K.js} +1 -1
  52. package/dist/cdn/chunks/{dist-BHMubC6P.js → dist-p1FcXq9E.js} +3 -3
  53. package/dist/cdn/chunks/{divider-pO5O6wL4.js → divider-2hHcSIga.js} +2 -2
  54. package/dist/cdn/chunks/{document-tab-bar-C_-iuaUc.js → document-tab-bar-CIWiZUB5.js} +18 -18
  55. package/dist/cdn/chunks/{dropdown-DYO6049g.js → dropdown-Bwn6dQrK.js} +5 -5
  56. package/dist/cdn/chunks/{file-field-C-Fk92rD.js → file-field-CtQ6Fzkj.js} +25 -25
  57. package/dist/cdn/chunks/{form-actions-DrOX7nX8.js → form-actions-DSL0qce-.js} +3 -3
  58. package/dist/cdn/chunks/{form-field-CR2Py09O.js → form-field--t3Bz1pc.js} +7 -7
  59. package/dist/cdn/chunks/{form-section-s1mkLzaC.js → form-section-D1n8Sdmt.js} +16 -16
  60. package/dist/cdn/chunks/{form-ChXBrKw6.js → form-vSM2SOrK.js} +10 -10
  61. package/dist/cdn/chunks/{full-bleed-section-vOVI_f86.js → full-bleed-section-w2pDVC5v.js} +4 -4
  62. package/dist/cdn/chunks/{hero-Cb3qIvvh.js → hero-BypUmnRi.js} +22 -22
  63. package/dist/cdn/chunks/{icon-DBhTZrnl.js → icon-BydOAoVO.js} +7 -7
  64. package/dist/cdn/chunks/{icon-button-bDuQ_6W_.js → icon-button-C_MZ-jXt.js} +56 -43
  65. package/dist/cdn/chunks/{icon-cell-DlSZNTF3.js → icon-cell-jiYNsV84.js} +6 -6
  66. package/dist/cdn/chunks/{identity-CJTVNI9J.js → identity-D1Sw6OdG.js} +55 -39
  67. package/dist/cdn/chunks/{if-defined-28B8DYUB.js → if-defined-pKQLIQvK.js} +1 -1
  68. package/dist/cdn/chunks/{image-DlTxyeL3.js → image-DEI0hogS.js} +20 -20
  69. package/dist/cdn/chunks/{inline-dialog-BJlOrD6M.js → inline-dialog-CTjJ8Tl_.js} +15 -15
  70. package/dist/cdn/chunks/interest-controller-Ban-3NrX.js +117 -0
  71. package/dist/cdn/chunks/{just-in-time-education-DWBDshKs.js → just-in-time-education-pUUxdKPR.js} +5 -5
  72. package/dist/cdn/chunks/{kanban-DIXY8FcZ.js → kanban-KSLBcCb4.js} +9 -9
  73. package/dist/cdn/chunks/{kanban-column-DmnxctX6.js → kanban-column-RNSdiBIT.js} +8 -8
  74. package/dist/cdn/chunks/{keyboard-shortcut-kYOKwBqs.js → keyboard-shortcut-D9TYAQu1.js} +3 -3
  75. package/dist/cdn/chunks/{languages-DGtcUhLc.js → languages-DGZO3jTf.js} +12 -12
  76. package/dist/cdn/chunks/{link-DhnhhTOg.js → link-C4K1qVcb.js} +88 -24
  77. package/dist/cdn/chunks/{link-group-Bx2nkQcS.js → link-group-BEYO7nTK.js} +2 -2
  78. package/dist/cdn/chunks/{list-item-CSNBaRlK.js → list-item-CotWNKc1.js} +19 -19
  79. package/dist/cdn/chunks/{list-item-segment-D6WvAh3A.js → list-item-segment-C-yl2GAS.js} +15 -15
  80. package/dist/cdn/chunks/{list-CXCG_IEc.js → list-rMBdnf1f.js} +15 -15
  81. package/dist/cdn/chunks/{menu-bar-xahTEYTX.js → menu-bar-D9IxDwC2.js} +10 -10
  82. package/dist/cdn/chunks/{menu-bar-item-C950rfSt.js → menu-bar-item-768OWJdt.js} +18 -18
  83. package/dist/cdn/chunks/{menu-divider-XlYJ4zQz.js → menu-divider-BHAGnkBl.js} +3 -3
  84. package/dist/cdn/chunks/{menu-group-E6hIEtLj.js → menu-group-B5MAz_Yk.js} +6 -6
  85. package/dist/cdn/chunks/{menu-item-2y0VC5Gb.js → menu-item-Ba581zRi.js} +24 -24
  86. package/dist/cdn/chunks/{menu-CKxKVA36.js → menu-rE6tDSAy.js} +48 -27
  87. package/dist/cdn/chunks/{menu.template-ZBhUFgBJ.js → menu.template-Eb7J7UrL.js} +130 -76
  88. package/dist/cdn/chunks/{modal-dialog-DdFpcRLJ.js → modal-dialog-Djln8pr7.js} +5 -5
  89. package/dist/cdn/chunks/{multi-line-text-field-okvEa54Q.js → multi-line-text-field-Omt0oidK.js} +5 -5
  90. package/dist/cdn/chunks/{navigation-split-view-dNRQDSpy.js → navigation-split-view-DDng9DdF.js} +11 -11
  91. package/dist/cdn/chunks/nl.generated-CgRVSEh6.js +116 -0
  92. package/dist/cdn/chunks/{notification-2tnwXEY1.js → notification-DB6JOmCC.js} +13 -13
  93. package/dist/cdn/chunks/{number-field-CH7EvpSq.js → number-field-xgr4dysX.js} +7 -7
  94. package/dist/cdn/chunks/{one-half-one-half-section-UZDP-KO-.js → one-half-one-half-section-CFhmSDDa.js} +4 -4
  95. package/dist/cdn/chunks/{one-third-two-thirds-section-8KtESdXO.js → one-third-two-thirds-section-D0JV0GJ_.js} +4 -4
  96. package/dist/cdn/chunks/{one-time-code-field-Bvm3ND6e.js → one-time-code-field-CqgKQqdE.js} +20 -20
  97. package/dist/cdn/chunks/{page-PK1FWuKJ.js → page-DXWHG-hD.js} +10 -10
  98. package/dist/cdn/chunks/{page-footer-BamWKHwH.js → page-footer-GexGY_m-.js} +15 -15
  99. package/dist/cdn/chunks/{page-section-mixin-3q59_Jo_.js → page-section-mixin-CtiPKCqL.js} +4 -10
  100. package/dist/cdn/chunks/{pagination-47zAyQhM.js → pagination-DJkfE8t9.js} +6 -6
  101. package/dist/cdn/chunks/{password-field-FaU02DSW.js → password-field-gKiiE_5e.js} +7 -7
  102. package/dist/cdn/chunks/{popover-642mOFR5.js → popover-C-jxcCHx.js} +74 -50
  103. package/dist/cdn/chunks/{progress-bar-BivaNkIY.js → progress-bar-CBWQRWkE.js} +24 -24
  104. package/dist/cdn/chunks/{progress-circle-ewL0JIcz.js → progress-circle-CCcRDOOJ.js} +22 -22
  105. package/dist/cdn/chunks/{radio-button-DvrYYSnm.js → radio-button-B8xwJO3_.js} +3 -3
  106. package/dist/cdn/chunks/{radio-button-field-BVi0YrTF.js → radio-button-field-B9lRNOXJ.js} +12 -12
  107. package/dist/cdn/chunks/{radio-button-group-DZ9OWUNe.js → radio-button-group-Cy7Ya28w.js} +3 -3
  108. package/dist/cdn/chunks/{render-marked-CO31_4GS.js → render-marked-DjXBoUGY.js} +1 -1
  109. package/dist/cdn/chunks/{reorder-handle-cell-Doetg58W.js → reorder-handle-cell-B6V85qYk.js} +4 -4
  110. package/dist/cdn/chunks/{reorder-handle-mixin-DCjwUXr0.js → reorder-handle-mixin-DTmEmT-V.js} +2 -2
  111. package/dist/cdn/chunks/{repeat-Wb4hkVZc.js → repeat-Ck8L8Iy9.js} +1 -1
  112. package/dist/cdn/chunks/{rich-text-Do08iiIz.js → rich-text-CqQeOXwL.js} +3 -3
  113. package/dist/cdn/chunks/{row-header-mixin-CKR5rHBA.js → row-header-mixin-XRu3gHMf.js} +2 -2
  114. package/dist/cdn/chunks/scroll-fade-e6d1wo3D.js +41 -0
  115. package/dist/cdn/chunks/{search-field-CCeeGiJM.js → search-field-Cz7Ucf6x.js} +9 -9
  116. package/dist/cdn/chunks/{segmented-control-CWIPxEBq.js → segmented-control-CLzKU4SX.js} +33 -33
  117. package/dist/cdn/chunks/{shadow-resets-NKr5gQCc.js → shadow-resets-CodxnaUh.js} +11 -7
  118. package/dist/cdn/chunks/{sheet-WOjBtZvN.js → sheet-DkmSsRV3.js} +4 -4
  119. package/dist/cdn/chunks/{shell-Brn0Dr8F.js → shell-Ex_f7Ov3.js} +3 -3
  120. package/dist/cdn/chunks/{side-by-side-split-view-DGIMsyma.js → side-by-side-split-view-C8aSEGRc.js} +7 -7
  121. package/dist/cdn/chunks/{sidebar-section-BXHeI8GN.js → sidebar-section-CnD-3i7r.js} +8 -8
  122. package/dist/cdn/chunks/{simple-section-C8lJZLAO.js → simple-section-CeKnmobI.js} +4 -4
  123. package/dist/cdn/chunks/{skip-link-QdRgHljr.js → skip-link-DwtFm_NJ.js} +13 -8
  124. package/dist/cdn/chunks/skip-link.i18n-B7pVqo5u.js +6 -0
  125. package/dist/cdn/chunks/{slider-BhjBeWqc.js → slider-BVdkwNW3.js} +21 -21
  126. package/dist/cdn/chunks/slot-content-2qH2vEC_.js +22 -0
  127. package/dist/cdn/chunks/slotted-block-xNpJoXLz.js +14 -0
  128. package/dist/cdn/chunks/{spacer-BgkOjuUj.js → spacer-H4zmoDr_.js} +3 -3
  129. package/dist/cdn/chunks/{spacer-cell-DBI0PVd7.js → spacer-cell-BES4eJH1.js} +4 -4
  130. package/dist/cdn/chunks/{split-button-DfD9vxPe.js → split-button-Caa30uTx.js} +7 -7
  131. package/dist/cdn/chunks/{split-view-divider-B4NFlri5.js → split-view-divider-klvZ8lgP.js} +2 -2
  132. package/dist/cdn/chunks/{split-view-pane-CwFf13hX.js → split-view-pane-Cnx56S5C.js} +4 -4
  133. package/dist/cdn/chunks/{stacked-split-view-BmbzTinq.js → stacked-split-view-CYdGBY7Q.js} +7 -7
  134. package/dist/cdn/chunks/{static-html-CZrcQRgC.js → static-html--Xd5vkAU.js} +1 -1
  135. package/dist/cdn/chunks/{status-bar-CTOf_bDL.js → status-bar-CJybViWL.js} +4 -4
  136. package/dist/cdn/chunks/{step-bar-B5vzvhz-.js → step-bar-BO6Y1BrK.js} +21 -21
  137. package/dist/cdn/chunks/{step-cell-CUA-HUZv.js → step-cell-BQ8EHZVR.js} +5 -5
  138. package/dist/cdn/chunks/{stepper-LxPTQ6HJ.js → stepper-COTaJwSU.js} +6 -6
  139. package/dist/cdn/chunks/{style-map-DiIQAb_L.js → style-map-BwtZr74h.js} +1 -1
  140. package/dist/cdn/chunks/{swatch-picker-Cxv9HK3A.js → swatch-picker-5fxe3QB1.js} +21 -21
  141. package/dist/cdn/chunks/{switch-CbNSJQPp.js → switch-BUxGg2ww.js} +4 -4
  142. package/dist/cdn/chunks/{switch-field-B8vOvcKc.js → switch-field-DOsEK534.js} +5 -5
  143. package/dist/cdn/chunks/{tab-bar-D4ot_wZ4.js → tab-bar-CZ9Z9qV9.js} +21 -21
  144. package/dist/cdn/chunks/{table-uh4YPqda.js → table-SAsB1kDN.js} +5 -5
  145. package/dist/cdn/chunks/{tag-D2dCXT7A.js → tag-xuCeECO3.js} +16 -12
  146. package/dist/cdn/chunks/term-DHEvoltZ.js +212 -0
  147. package/dist/cdn/chunks/term.i18n-DVEJeOb6.js +3 -0
  148. package/dist/cdn/chunks/text-CiFzQPQw.js +260 -0
  149. package/dist/cdn/chunks/{text-cell-DNCpmw9h.js → text-cell-DQNzo2Rp.js} +74 -62
  150. package/dist/cdn/chunks/{text-editor-C6UKAmPL.js → text-editor-DCYF_nqz.js} +257 -237
  151. package/dist/cdn/chunks/{text-field-Dmkd4mHV.js → text-field-BiPeMi6s.js} +22 -22
  152. package/dist/cdn/chunks/{time-field-BfgNZbEb.js → time-field-C-Euaiy0.js} +125 -99
  153. package/dist/cdn/chunks/{time-field.i18n-CLH5vmS7.js → time-field.i18n-BM6qGbmN.js} +0 -1
  154. package/dist/cdn/chunks/{time-picker-C1SBkU-e.js → time-picker-DYkxhEYm.js} +12 -11
  155. package/dist/cdn/chunks/{title-DFrd-Fsh.js → title-DkS07R_v.js} +113 -98
  156. package/dist/cdn/chunks/{title-cell-CC1dQyth.js → title-cell-CJevv6Vg.js} +83 -74
  157. package/dist/cdn/chunks/{toggle-button-bAX6uzgz.js → toggle-button-DDqd56_3.js} +25 -25
  158. package/dist/cdn/chunks/{toggle-button-group-B7CHBww5.js → toggle-button-group-ByxgMVzH.js} +2 -2
  159. package/dist/cdn/chunks/{token-CicHNqIk.js → token-YpVKK1g4.js} +13 -13
  160. package/dist/cdn/chunks/{token-field-BFynQ-T-.js → token-field-vLdJSvUz.js} +21 -21
  161. package/dist/cdn/chunks/{toolbar-hAmL7o23.js → toolbar-C-5H46y9.js} +12 -12
  162. package/dist/cdn/chunks/{toolbar-item-CjgkcYJ2.js → toolbar-item-CvPtoAoQ.js} +3 -3
  163. package/dist/cdn/chunks/{toolbar-title-B1acxCGx.js → toolbar-title-HElUvLeY.js} +4 -4
  164. package/dist/cdn/chunks/{toolbar.styles-xiyZx5D0.js → toolbar.styles-BuJIgj1E.js} +3 -3
  165. package/dist/cdn/chunks/{tooltip-Mj47t8v7.js → tooltip-BF4HkWOi.js} +16 -16
  166. package/dist/cdn/chunks/{top-navigation-bar-vP5QGBXd.js → top-navigation-bar-ngF2MF40.js} +18 -18
  167. package/dist/cdn/chunks/{top-title-bar-Yt6cmRLj.js → top-title-bar-BUjpi-w6.js} +14 -14
  168. package/dist/cdn/chunks/{translations-BMMzf2sX.js → translations-BWgmZCAK.js} +1 -1
  169. package/dist/cdn/chunks/{two-thirds-one-third-section-BHN98jET.js → two-thirds-one-third-section-Ci6O8SwP.js} +4 -4
  170. package/dist/cdn/chunks/{validation-list-CUPzu9_z.js → validation-list-BBNFz_2I.js} +10 -10
  171. package/dist/cdn/chunks/{visibility-mixin-DPuxf-sj.js → visibility-mixin-BP5T5qYB.js} +4 -4
  172. package/dist/cdn/chunks/{visually-hidden-CvjJIBhz.js → visually-hidden-BqYWVy4n.js} +2 -2
  173. package/dist/cdn/chunks/{window-BqGlzGaS.js → window-CvgGg1Ib.js} +4 -4
  174. package/dist/cdn/chunks/{with-translations-CRvWJWep.js → with-translations-8SmMZkGa.js} +3 -3
  175. package/dist/components/actions/button/button.d.ts +9 -0
  176. package/dist/components/actions/button/button.d.ts.map +1 -1
  177. package/dist/components/actions/button/button.js +16 -0
  178. package/dist/components/actions/button/button.js.map +1 -1
  179. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  180. package/dist/components/actions/button/button.styles.js +6 -0
  181. package/dist/components/actions/button/button.styles.js.map +1 -1
  182. package/dist/components/actions/button/button.template.js +1 -1
  183. package/dist/components/actions/button/button.template.js.map +1 -1
  184. package/dist/components/actions/button-bar/button-bar.js +2 -2
  185. package/dist/components/actions/button-bar/button-bar.js.map +1 -1
  186. package/dist/components/actions/icon-button/icon-button.d.ts +8 -0
  187. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  188. package/dist/components/actions/icon-button/icon-button.js +17 -0
  189. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  190. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  191. package/dist/components/actions/icon-button/icon-button.styles.js +6 -0
  192. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  193. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  194. package/dist/components/actions/icon-button/icon-button.template.js +4 -2
  195. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  196. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  197. package/dist/components/actions/menu/menu-item.js +3 -1
  198. package/dist/components/actions/menu/menu-item.js.map +1 -1
  199. package/dist/components/actions/menu/menu.d.ts +25 -0
  200. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  201. package/dist/components/actions/menu/menu.js +86 -2
  202. package/dist/components/actions/menu/menu.js.map +1 -1
  203. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  204. package/dist/components/actions/menu/menu.styles.js +55 -3
  205. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  206. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  207. package/dist/components/actions/menu/menu.template.js +55 -53
  208. package/dist/components/actions/menu/menu.template.js.map +1 -1
  209. package/dist/components/content/code-viewer/code-viewer.d.ts +2 -1
  210. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  211. package/dist/components/content/code-viewer/code-viewer.js +26 -13
  212. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  213. package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
  214. package/dist/components/content/code-viewer/code-viewer.template.js +2 -0
  215. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  216. package/dist/components/content/identity/identity.d.ts +17 -10
  217. package/dist/components/content/identity/identity.d.ts.map +1 -1
  218. package/dist/components/content/identity/identity.js +33 -19
  219. package/dist/components/content/identity/identity.js.map +1 -1
  220. package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
  221. package/dist/components/content/identity/identity.styles.js +5 -1
  222. package/dist/components/content/identity/identity.styles.js.map +1 -1
  223. package/dist/components/content/identity/identity.template.d.ts +1 -1
  224. package/dist/components/content/identity/identity.template.d.ts.map +1 -1
  225. package/dist/components/content/identity/identity.template.js +11 -5
  226. package/dist/components/content/identity/identity.template.js.map +1 -1
  227. package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
  228. package/dist/components/content/tag/tag.styles.js +6 -2
  229. package/dist/components/content/tag/tag.styles.js.map +1 -1
  230. package/dist/components/content/term/term.d.ts +115 -0
  231. package/dist/components/content/term/term.d.ts.map +1 -0
  232. package/dist/components/content/term/term.i18n.d.ts +5 -0
  233. package/dist/components/content/term/term.i18n.d.ts.map +1 -0
  234. package/dist/components/content/term/term.i18n.js +5 -0
  235. package/dist/components/content/term/term.i18n.js.map +1 -0
  236. package/dist/components/content/term/term.js +256 -0
  237. package/dist/components/content/term/term.js.map +1 -0
  238. package/dist/components/content/term/term.styles.d.ts +2 -0
  239. package/dist/components/content/term/term.styles.d.ts.map +1 -0
  240. package/dist/components/content/term/term.styles.js +65 -0
  241. package/dist/components/content/term/term.styles.js.map +1 -0
  242. package/dist/components/content/term/term.template.d.ts +4 -0
  243. package/dist/components/content/term/term.template.d.ts.map +1 -0
  244. package/dist/components/content/term/term.template.js +55 -0
  245. package/dist/components/content/term/term.template.js.map +1 -0
  246. package/dist/components/content/text/text.d.ts +15 -2
  247. package/dist/components/content/text/text.d.ts.map +1 -1
  248. package/dist/components/content/text/text.js +19 -3
  249. package/dist/components/content/text/text.js.map +1 -1
  250. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  251. package/dist/components/content/text/text.styles.js +7 -155
  252. package/dist/components/content/text/text.styles.js.map +1 -1
  253. package/dist/components/content/text/text.template.d.ts +3 -2
  254. package/dist/components/content/text/text.template.d.ts.map +1 -1
  255. package/dist/components/content/text/text.template.js +3 -4
  256. package/dist/components/content/text/text.template.js.map +1 -1
  257. package/dist/components/content/title/title.d.ts +22 -7
  258. package/dist/components/content/title/title.d.ts.map +1 -1
  259. package/dist/components/content/title/title.js +43 -19
  260. package/dist/components/content/title/title.js.map +1 -1
  261. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  262. package/dist/components/content/tooltip/tooltip.js +8 -7
  263. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  264. package/dist/components/forms/form/form.d.ts +2 -2
  265. package/dist/components/forms/form/form.d.ts.map +1 -1
  266. package/dist/components/forms/form/form.js +2 -2
  267. package/dist/components/forms/form/form.js.map +1 -1
  268. package/dist/components/forms/form-section/form-section.d.ts +2 -2
  269. package/dist/components/forms/form-section/form-section.d.ts.map +1 -1
  270. package/dist/components/forms/form-section/form-section.js +2 -2
  271. package/dist/components/forms/form-section/form-section.js.map +1 -1
  272. package/dist/components/index.d.ts +1 -0
  273. package/dist/components/index.d.ts.map +1 -1
  274. package/dist/components/index.js +1 -0
  275. package/dist/components/index.js.map +1 -1
  276. package/dist/components/inputs/date-field/date-field.i18n.d.ts +1 -1
  277. package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
  278. package/dist/components/inputs/date-field/date-field.i18n.js +3 -2
  279. package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
  280. package/dist/components/inputs/date-field/date-field.styles.js +1 -1
  281. package/dist/components/inputs/date-field/date-field.template.js +1 -1
  282. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  283. package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
  284. package/dist/components/inputs/text-editor/text-editor.commands.js +2 -0
  285. package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
  286. package/dist/components/inputs/text-editor/text-editor.emphasis.d.ts.map +1 -1
  287. package/dist/components/inputs/text-editor/text-editor.emphasis.js +7 -0
  288. package/dist/components/inputs/text-editor/text-editor.emphasis.js.map +1 -1
  289. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts +5 -0
  290. package/dist/components/inputs/text-editor/text-editor.focus-selection.d.ts.map +1 -1
  291. package/dist/components/inputs/text-editor/text-editor.focus-selection.js +17 -1
  292. package/dist/components/inputs/text-editor/text-editor.focus-selection.js.map +1 -1
  293. package/dist/components/inputs/time-field/time-field.d.ts +21 -6
  294. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  295. package/dist/components/inputs/time-field/time-field.i18n.d.ts +0 -1
  296. package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
  297. package/dist/components/inputs/time-field/time-field.i18n.js +0 -2
  298. package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
  299. package/dist/components/inputs/time-field/time-field.js +69 -13
  300. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  301. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  302. package/dist/components/inputs/time-field/time-field.styles.js +13 -1
  303. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  304. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  305. package/dist/components/inputs/time-field/time-field.template.js +13 -10
  306. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  307. package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
  308. package/dist/components/inputs/time-picker/time-picker.styles.js +3 -2
  309. package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
  310. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
  311. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
  312. package/dist/components/layout/page-sections/hero/hero.d.ts +1 -1
  313. package/dist/components/layout/page-sections/hero/hero.js +1 -1
  314. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
  315. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
  316. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
  317. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
  318. package/dist/components/layout/page-sections/page-section-controls.js +2 -2
  319. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  320. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
  321. package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
  322. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
  323. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
  324. package/dist/components/layout/popover/popover.d.ts +29 -0
  325. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  326. package/dist/components/layout/popover/popover.js +70 -8
  327. package/dist/components/layout/popover/popover.js.map +1 -1
  328. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  329. package/dist/components/layout/popover/popover.styles.js +15 -1
  330. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  331. package/dist/components/layout/popover/popover.template.js +1 -1
  332. package/dist/components/layout/popover/popover.template.js.map +1 -1
  333. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +24 -13
  334. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  335. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +40 -31
  336. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  337. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
  338. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +5 -1
  339. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
  340. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts +1 -1
  341. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
  342. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +15 -8
  343. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
  344. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +23 -11
  345. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  346. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +39 -29
  347. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  348. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
  349. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +5 -1
  350. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
  351. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts +1 -1
  352. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
  353. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +15 -16
  354. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
  355. package/dist/components/navigation/link/link.d.ts +68 -2
  356. package/dist/components/navigation/link/link.d.ts.map +1 -1
  357. package/dist/components/navigation/link/link.js +162 -1
  358. package/dist/components/navigation/link/link.js.map +1 -1
  359. package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
  360. package/dist/components/navigation/link/link.styles.js +9 -0
  361. package/dist/components/navigation/link/link.styles.js.map +1 -1
  362. package/dist/components/navigation/link/link.template.d.ts +1 -0
  363. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  364. package/dist/components/navigation/link/link.template.js +4 -1
  365. package/dist/components/navigation/link/link.template.js.map +1 -1
  366. package/dist/components/navigation/skip-link/skip-link.d.ts +12 -4
  367. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  368. package/dist/components/navigation/skip-link/skip-link.i18n.d.ts +1 -0
  369. package/dist/components/navigation/skip-link/skip-link.i18n.d.ts.map +1 -1
  370. package/dist/components/navigation/skip-link/skip-link.i18n.js +2 -0
  371. package/dist/components/navigation/skip-link/skip-link.i18n.js.map +1 -1
  372. package/dist/components/navigation/skip-link/skip-link.js +18 -4
  373. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  374. package/dist/components/navigation/skip-link/skip-link.template.js +1 -1
  375. package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
  376. package/dist/css/global-open-font.css +2 -0
  377. package/dist/css/global.css +2 -0
  378. package/dist/css/link.css +93 -0
  379. package/dist/css/text.css +159 -0
  380. package/dist/css/title.css +10 -10
  381. package/dist/nldd.min.js +2207 -2121
  382. package/dist/translations/en-US.d.ts.map +1 -1
  383. package/dist/translations/en-US.js +3 -2
  384. package/dist/translations/en-US.js.map +1 -1
  385. package/dist/translations/fy.d.ts.map +1 -1
  386. package/dist/translations/fy.js +3 -2
  387. package/dist/translations/fy.js.map +1 -1
  388. package/dist/translations/nl.generated.d.ts +3 -2
  389. package/dist/translations/nl.generated.d.ts.map +1 -1
  390. package/dist/translations/nl.generated.js +2 -0
  391. package/dist/translations/nl.generated.js.map +1 -1
  392. package/dist/translations/pap-AW.d.ts.map +1 -1
  393. package/dist/translations/pap-AW.js +3 -2
  394. package/dist/translations/pap-AW.js.map +1 -1
  395. package/dist/translations/pap-CW.d.ts.map +1 -1
  396. package/dist/translations/pap-CW.js +3 -2
  397. package/dist/translations/pap-CW.js.map +1 -1
  398. package/dist/types/react.d.ts +40 -16
  399. package/dist/types/vue.d.ts +42 -16
  400. package/dist/utilities/autoloader.generated.d.ts.map +1 -1
  401. package/dist/utilities/autoloader.generated.js +1 -0
  402. package/dist/utilities/autoloader.generated.js.map +1 -1
  403. package/dist/utilities/custom-element.d.ts +10 -0
  404. package/dist/utilities/custom-element.d.ts.map +1 -1
  405. package/dist/utilities/custom-element.js +11 -0
  406. package/dist/utilities/custom-element.js.map +1 -1
  407. package/dist/utilities/described-by-mixin.d.ts +2 -0
  408. package/dist/utilities/described-by-mixin.d.ts.map +1 -1
  409. package/dist/utilities/described-by-mixin.js +10 -1
  410. package/dist/utilities/described-by-mixin.js.map +1 -1
  411. package/dist/utilities/dev-checks.d.ts +8 -0
  412. package/dist/utilities/dev-checks.d.ts.map +1 -1
  413. package/dist/utilities/dev-checks.js +36 -0
  414. package/dist/utilities/dev-checks.js.map +1 -1
  415. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  416. package/dist/utilities/dev-rules.generated.js +102 -17
  417. package/dist/utilities/dev-rules.generated.js.map +1 -1
  418. package/dist/utilities/interest-controller.d.ts +80 -0
  419. package/dist/utilities/interest-controller.d.ts.map +1 -0
  420. package/dist/utilities/interest-controller.js +339 -0
  421. package/dist/utilities/interest-controller.js.map +1 -0
  422. package/dist/utilities/page-section-mixin.d.ts +2 -3
  423. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  424. package/dist/utilities/page-section-mixin.js +2 -9
  425. package/dist/utilities/page-section-mixin.js.map +1 -1
  426. package/dist/utilities/slot-content.d.ts +18 -7
  427. package/dist/utilities/slot-content.d.ts.map +1 -1
  428. package/dist/utilities/slot-content.js +25 -4
  429. package/dist/utilities/slot-content.js.map +1 -1
  430. package/dist/utilities/slotted-block.d.ts +20 -0
  431. package/dist/utilities/slotted-block.d.ts.map +1 -0
  432. package/dist/utilities/slotted-block.js +30 -0
  433. package/dist/utilities/slotted-block.js.map +1 -0
  434. package/lint/data.generated.json +1 -1
  435. package/lint/fix.js +43 -2
  436. package/lint/frontends.js +149 -15
  437. package/lint/linter.js +3 -2
  438. package/lint/main.js +17 -3
  439. package/lint/project.js +2 -2
  440. package/lint/rule.schema.json +2 -1
  441. package/package.json +11 -2
  442. package/dist/cdn/chunks/nl.generated-Bo4bmwYF.js +0 -114
  443. package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +0 -3
  444. package/dist/cdn/chunks/slot-content-BLuPqVXw.js +0 -13
  445. package/dist/cdn/chunks/text-BX4Xm40t.js +0 -406
@@ -1,14 +1,21 @@
1
- import { html, nothing } from 'lit';
1
+ import { nothing } from 'lit';
2
+ import { html as staticHtml, unsafeStatic } from 'lit/static-html.js';
2
3
  import { renderQueryMark } from '../../../../utilities/render-marked.js';
4
+ const DIV = unsafeStatic('div');
5
+ const P = unsafeStatic('p');
3
6
  export function template() {
7
+ // A filled slot gets a <div> around it: the <p> of the app carries the meaning.
8
+ const overlineTag = this._hasOverlineSlotted ? DIV : P;
9
+ const textTag = this._hasDefaultSlotted ? DIV : P;
10
+ const supportingTextTag = this._hasSupportingTextSlotted ? DIV : P;
4
11
  // Fallback content is rendered as a sibling of the slot, NOT inside it.
5
12
  // Native slot fallback gets suppressed as soon as ANY node is assigned to
6
13
  // the slot — including whitespace-only text nodes that consumers introduce
7
14
  // inadvertently (e.g. from formatting or self-closing custom-element tags).
8
15
  // By rendering the attribute path outside the slot, we control visibility
9
16
  // purely via the `_has*Slotted` state (which filters whitespace).
10
- return html `
11
- <p
17
+ return staticHtml `
18
+ <${overlineTag}
12
19
  class="text-cell__overline"
13
20
  ?hidden=${!this.overline && !this._hasOverlineSlotted}
14
21
  >
@@ -19,8 +26,8 @@ export function template() {
19
26
  name="overline"
20
27
  @slotchange=${this._onSlotChange}
21
28
  ></slot>
22
- </p>
23
- <p
29
+ </${overlineTag}>
30
+ <${textTag}
24
31
  class="text-cell__text"
25
32
  ?hidden=${!this.text && !this._hasDefaultSlotted}
26
33
  >
@@ -28,8 +35,8 @@ export function template() {
28
35
  ? renderQueryMark(this.text, this.query, this.queryMarkMode)
29
36
  : nothing}
30
37
  <slot @slotchange=${this._onSlotChange}></slot>
31
- </p>
32
- <p
38
+ </${textTag}>
39
+ <${supportingTextTag}
33
40
  class="text-cell__supporting-text"
34
41
  ?hidden=${!this.supportingText && !this._hasSupportingTextSlotted}
35
42
  >
@@ -40,7 +47,7 @@ export function template() {
40
47
  name="supporting-text"
41
48
  @slotchange=${this._onSlotChange}
42
49
  ></slot>
43
- </p>
50
+ </${supportingTextTag}>
44
51
  `;
45
52
  }
46
53
  //# sourceMappingURL=text-cell.template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-cell.template.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/text-cell/text-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,MAAM,UAAU,QAAQ;IACvB,wEAAwE;IACxE,0EAA0E;IAC1E,2EAA2E;IAC3E,4EAA4E;IAC5E,0EAA0E;IAC1E,kEAAkE;IAClE,OAAO,IAAI,CAAA;;;aAGC,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;;KAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;QAC3C,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QAChE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;;;;aAKvB,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,kBAAkB;;KAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,kBAAkB;QACtC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QAC5D,CAAC,CAAC,OAAO;uBACU,IAAI,CAAC,aAAa;;;;aAI5B,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;;KAE/D,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;QACvD,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QACtE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;;EAGlC,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"text-cell.template.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/text-cell/text-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,MAAM,GAAG,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AAChC,MAAM,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;AAE5B,MAAM,UAAU,QAAQ;IACvB,gFAAgF;IAChF,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,MAAM,iBAAiB,GAAG,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,wEAAwE;IACxE,0EAA0E;IAC1E,2EAA2E;IAC3E,4EAA4E;IAC5E,0EAA0E;IAC1E,kEAAkE;IAClE,OAAO,UAAU,CAAA;KACb,WAAW;;aAEH,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;;KAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;QAC3C,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QAChE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;MAE9B,WAAW;KACZ,OAAO;;aAEC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,kBAAkB;;KAE9C,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,kBAAkB;QACtC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QAC5D,CAAC,CAAC,OAAO;uBACU,IAAI,CAAC,aAAa;MACnC,OAAO;KACR,iBAAiB;;aAET,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;;KAE/D,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;QACvD,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QACtE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;MAE9B,iBAAiB;EACrB,CAAC;AACH,CAAC"}
@@ -10,13 +10,19 @@
10
10
  * use `vertical-alignment="top"`.
11
11
  *
12
12
  * ### Slots vs attributes
13
- * Each text region (overline, title, supporting text) accepts either a string
14
- * attribute or slotted DOM content. The slot is the source of truth: if the
15
- * consumer provides slotted content, it replaces the attribute-based render
16
- * for that region. Use slots when you need inline elements like `<nldd-tag>`,
17
- * `<nldd-icon>` or other components mixed with text. Note that `query`
18
- * highlighting and `**bold**` parsing only apply to the attribute path —
19
- * slotted content is rendered as-is.
13
+ * Each text region (overline, title, supporting text) takes plain text in its
14
+ * attribute, or the element itself in its slot: a heading (`h1`–`h6`) or a
15
+ * `<p>` for the title, a `<p>` for the other two, as the cell draws them for the
16
+ * attribute. Use the slot when you need inline elements like `<nldd-tag>`,
17
+ * `<nldd-icon>` or other components mixed with text, and put them in that
18
+ * element: the heading is then in the HTML before any script runs. The slot
19
+ * wins over the attribute, and `heading-level` only applies to the attribute.
20
+ * Each region chooses for itself, so an attribute and a slot stand side by
21
+ * side: plain text in `supporting-text`, a heading with a tag in the default slot.
22
+ * The element in a slot takes the text style of the cell: a font, margin or
23
+ * other style the page sets on it does not apply.
24
+ * Note that `query` highlighting and `**bold**` parsing only apply to the
25
+ * attribute path; slotted content is rendered as-is.
20
26
  *
21
27
  * @element nldd-title-cell
22
28
  * @attr {string} size - Visual size of the title: 'display-1' to 'display-6', from large to small (unset: looks like 'display-5', and becomes 'display-6' in an `nldd-table-row`, where a title the size of the other cells reads better). Unlike nldd-title, `heading-level` does not set it: every row in a list looks the same, whatever its level
@@ -33,9 +39,10 @@
33
39
  * @attr {string} overline - Optional overline text displayed above the title. Supports **bold**. Falls back to `overline` slot.
34
40
  * @attr {number} heading-level - Heading level for the title element: 1–6 (default: none, renders a <p>)
35
41
  *
36
- * @slot overline - Rich content for the overline region. Overrides the `overline` attribute when content is assigned.
37
- * @slot - (default) Rich content for the title. Wins over `text`.
38
- * @slot supporting-text - Rich content for the supporting text region. Overrides the `supporting-text` attribute when content is assigned.
42
+ * @slot overline - A `<p>` of your own for an overline that is more than text. Wins over `overline`.
43
+ * @slot - (default) A heading (`h1`–`h6`) or `<p>` of your own for a title that is more than text. Wins over `text`.
44
+ * @slot supporting-text - A `<p>` of your own for supporting text that is more than text. Wins over `supporting-text`.
45
+ * @accepts h1, h2, h3, h4, h5, h6, p
39
46
  *
40
47
  * ### Query mark
41
48
  * Set `query` to a substring to bold-highlight the match across text, overline
@@ -92,11 +99,16 @@ export declare class NLDDTitleCell extends NLDDTitleCell_base {
92
99
  _hasDefaultSlotted: boolean;
93
100
  /** @internal */
94
101
  _hasSupportingTextSlotted: boolean;
102
+ private _looseText;
95
103
  updated(changed: Map<string, unknown>): void;
96
104
  private _applyDimensionStyles;
97
105
  /** @internal */
98
106
  _onSlotChange: (e: Event) => void;
99
- render(): import("lit-html").TemplateResult<1>;
107
+ /** Reads the children as the cell connects, so the first render already
108
+ * draws the box that fits them instead of swapping it on slotchange. */
109
+ connectedCallback(): void;
110
+ private _readSlot;
111
+ render(): import("lit-html").TemplateResult;
100
112
  }
101
113
  declare global {
102
114
  interface HTMLElementTagNameMap {
@@ -1 +1 @@
1
- {"version":3,"file":"title-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AASjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAC9G,KAAK,KAAK,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AACrF,KAAK,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,KAAK,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;;;;;AAErD,qBACa,aAAc,SAAQ,kBAAkF;IACpH,OAAgB,MAAM,4BAAqB;IAE3C;;oEAEgE;IAEhE,IAAI,CAAC,EAAE,aAAa,CAAC;IAGrB,KAAK,EAAE,KAAK,CAAa;IAGzB,KAAK,EAAE,MAAM,CAAU;IAGvB,QAAQ,CAAC,EAAE,MAAM,CAAC;I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AAO,CAAC;AACvD,KAAK,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;;;;;AAErD,qBACa,aAAc,SAAQ,kBAAkF;IACpH,OAAgB,MAAM,4BAAqB;IAE3C;;oEAEgE;IAEhE,IAAI,CAAC,EAAE,aAAa,CAAC;IAGrB,KAAK,EAAE,KAAK,CAAa;IAGzB,KAAK,EAAE,MAAM,CAAU;IAGvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,mBAAmB,EAAE,mBAAmB,CAAU;IAGlD,iBAAiB,EAAE,iBAAiB,CAAY;IAGhD,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,QAAQ,SAAM;IAEd,8EAA8E;IAE9E,YAAY,EAAE,MAAM,GAAG,SAAS,CAAa;IAG7C,KAAK,SAAM;IAGX,aAAa,EAAE,aAAa,CAAgB;IAE5C,gBAAgB;IACP,mBAAmB,UAAS;IACrC,gBAAgB;IACP,kBAAkB,UAAS;IACpC,gBAAgB;IACP,yBAAyB,UAAS;IAC3C,OAAO,CAAC,UAAU,CAAuB;IAEhC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAO9C,OAAO,CAAC,qBAAqB;IA6B7B,gBAAgB;IAChB,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAI9B;IAEF;6EACyE;IAChE,iBAAiB,IAAI,IAAI;IAKlC,OAAO,CAAC,SAAS;IAQR,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
@@ -16,13 +16,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
16
16
  * use `vertical-alignment="top"`.
17
17
  *
18
18
  * ### Slots vs attributes
19
- * Each text region (overline, title, supporting text) accepts either a string
20
- * attribute or slotted DOM content. The slot is the source of truth: if the
21
- * consumer provides slotted content, it replaces the attribute-based render
22
- * for that region. Use slots when you need inline elements like `<nldd-tag>`,
23
- * `<nldd-icon>` or other components mixed with text. Note that `query`
24
- * highlighting and `**bold**` parsing only apply to the attribute path —
25
- * slotted content is rendered as-is.
19
+ * Each text region (overline, title, supporting text) takes plain text in its
20
+ * attribute, or the element itself in its slot: a heading (`h1`–`h6`) or a
21
+ * `<p>` for the title, a `<p>` for the other two, as the cell draws them for the
22
+ * attribute. Use the slot when you need inline elements like `<nldd-tag>`,
23
+ * `<nldd-icon>` or other components mixed with text, and put them in that
24
+ * element: the heading is then in the HTML before any script runs. The slot
25
+ * wins over the attribute, and `heading-level` only applies to the attribute.
26
+ * Each region chooses for itself, so an attribute and a slot stand side by
27
+ * side: plain text in `supporting-text`, a heading with a tag in the default slot.
28
+ * The element in a slot takes the text style of the cell: a font, margin or
29
+ * other style the page sets on it does not apply.
30
+ * Note that `query` highlighting and `**bold**` parsing only apply to the
31
+ * attribute path; slotted content is rendered as-is.
26
32
  *
27
33
  * @element nldd-title-cell
28
34
  * @attr {string} size - Visual size of the title: 'display-1' to 'display-6', from large to small (unset: looks like 'display-5', and becomes 'display-6' in an `nldd-table-row`, where a title the size of the other cells reads better). Unlike nldd-title, `heading-level` does not set it: every row in a list looks the same, whatever its level
@@ -39,9 +45,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
39
45
  * @attr {string} overline - Optional overline text displayed above the title. Supports **bold**. Falls back to `overline` slot.
40
46
  * @attr {number} heading-level - Heading level for the title element: 1–6 (default: none, renders a <p>)
41
47
  *
42
- * @slot overline - Rich content for the overline region. Overrides the `overline` attribute when content is assigned.
43
- * @slot - (default) Rich content for the title. Wins over `text`.
44
- * @slot supporting-text - Rich content for the supporting text region. Overrides the `supporting-text` attribute when content is assigned.
48
+ * @slot overline - A `<p>` of your own for an overline that is more than text. Wins over `overline`.
49
+ * @slot - (default) A heading (`h1`–`h6`) or `<p>` of your own for a title that is more than text. Wins over `text`.
50
+ * @slot supporting-text - A `<p>` of your own for supporting text that is more than text. Wins over `supporting-text`.
51
+ * @accepts h1, h2, h3, h4, h5, h6, p
45
52
  *
46
53
  * ### Query mark
47
54
  * Set `query` to a substring to bold-highlight the match across text, overline
@@ -60,6 +67,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
60
67
  */
61
68
  import { LitElement } from 'lit';
62
69
  import { property, state } from 'lit/decorators.js';
70
+ import { LooseText } from '../../../../utilities/slotted-block.js';
71
+ import { holdsContent, slottedNodes } from '../../../../utilities/slot-content.js';
63
72
  import { ReorderHandleMixin } from '../../../../utilities/reorder-handle-mixin.js';
64
73
  import { customElement } from '../../../../utilities/custom-element.js';
65
74
  import { reflectNonDefault } from '../../../../utilities/reflect-non-default.js';
@@ -87,28 +96,12 @@ let NLDDTitleCell = class NLDDTitleCell extends ReorderHandleMixin(RowHeaderMixi
87
96
  this._hasDefaultSlotted = false;
88
97
  /** @internal */
89
98
  this._hasSupportingTextSlotted = false;
99
+ this._looseText = new LooseText(this);
90
100
  /** @internal */
91
101
  this._onSlotChange = (e) => {
92
102
  const slot = e.target;
93
- // Use assignedNodes() (not flatten) so we only count what the consumer
94
- // actually slotted — fallback content is excluded by design.
95
- const hasContent = slot.assignedNodes().some((node) => {
96
- if (node.nodeType === Node.TEXT_NODE) {
97
- return (node.textContent ?? '').trim().length > 0;
98
- }
99
- return node.nodeType === Node.ELEMENT_NODE;
100
- });
101
- switch (slot.name) {
102
- case 'overline':
103
- this._hasOverlineSlotted = hasContent;
104
- break;
105
- case 'supporting-text':
106
- this._hasSupportingTextSlotted = hasContent;
107
- break;
108
- default:
109
- this._hasDefaultSlotted = hasContent;
110
- break;
111
- }
103
+ // assignedNodes() (not flatten): only what the consumer slotted counts.
104
+ this._readSlot(slot.name, slot.assignedNodes());
112
105
  };
113
106
  }
114
107
  updated(changed) {
@@ -149,6 +142,23 @@ let NLDDTitleCell = class NLDDTitleCell extends ReorderHandleMixin(RowHeaderMixi
149
142
  this.style.removeProperty('--_title-cell-min-height');
150
143
  }
151
144
  }
145
+ /** Reads the children as the cell connects, so the first render already
146
+ * draws the box that fits them instead of swapping it on slotchange. */
147
+ connectedCallback() {
148
+ super.connectedCallback();
149
+ for (const name of ['overline', '', 'supporting-text'])
150
+ this._readSlot(name, slottedNodes(this, name));
151
+ }
152
+ _readSlot(name, nodes) {
153
+ this._looseText.read(name, nodes);
154
+ const hasContent = holdsContent(nodes);
155
+ if (name === 'overline')
156
+ this._hasOverlineSlotted = hasContent;
157
+ else if (name === 'supporting-text')
158
+ this._hasSupportingTextSlotted = hasContent;
159
+ else
160
+ this._hasDefaultSlotted = hasContent;
161
+ }
152
162
  render() {
153
163
  return template.call(this);
154
164
  }
@@ -1 +1 @@
1
- {"version":3,"file":"title-cell.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AASpE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,kBAAkB,CAAC,cAAc,CAAC,eAAe,CAAC,UAAU,EAAE,iB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CAAS,EAAE,CAAC,EAAE,CAAC;2CAC5D;AAGV;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;qDAChF;AAGpB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;+CACxD;AAId;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;mDACV;AAG7C;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;4CAC3D;AAGX;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;oDACb;AAGnC;IAAR,KAAK,EAAE;0DAA6B;AAE5B;IAAR,KAAK,EAAE;yDAA4B;AAE3B;IAAR,KAAK,EAAE;gEAAmC;AAtD/B,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAsHzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"title-cell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,yBA0M3B,CAAC"}
1
+ {"version":3,"file":"title-cell.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,yBA8M3B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { css } from 'lit';
2
- import { inheritedTextReset } from '../../../../assets/styles/shadow-resets.js';
2
+ import { inheritedTextReset, slottedBlockReset } from '../../../../assets/styles/shadow-resets.js';
3
3
  export const titleCellStyles = css `
4
4
  :host {
5
5
  box-sizing: border-box;
@@ -202,5 +202,9 @@ export const titleCellStyles = css `
202
202
  overflow-wrap: anywhere;
203
203
  text-wrap: pretty;
204
204
  }
205
+
206
+ ::slotted(:is(p, h1, h2, h3, h4, h5, h6)) {
207
+ ${slottedBlockReset}
208
+ }
205
209
  `;
206
210
  //# sourceMappingURL=title-cell.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"title-cell.styles.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAEhF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;IAkB9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLrB,CAAC"}
1
+ {"version":3,"file":"title-cell.styles.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAEnG,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;IAkB9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0LlB,iBAAiB;;CAEpB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { NLDDTitleCell } from './title-cell.js';
2
- export declare const template: (this: NLDDTitleCell) => import("lit-html").TemplateResult<1>;
2
+ export declare const template: (this: NLDDTitleCell) => import("lit-html").TemplateResult;
3
3
  //# sourceMappingURL=title-cell.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"title-cell.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAyCrD,eAAO,MAAM,QAAQ,GAAa,MAAM,aAAa,yCA4BpD,CAAC"}
1
+ {"version":3,"file":"title-cell.template.d.ts","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAsCrD,eAAO,MAAM,QAAQ,GAAa,MAAM,aAAa,sCA8BpD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { html, nothing } from 'lit';
1
+ import { nothing } from 'lit';
2
2
  import { html as staticHtml, unsafeStatic } from 'lit/static-html.js';
3
3
  import { renderQueryMark } from '../../../../utilities/render-marked.js';
4
4
  // SAFETY: whitelist of allowed heading tags for unsafeStatic.
@@ -13,32 +13,31 @@ const HEADING_TAGS = {
13
13
  5: unsafeStatic('h5'),
14
14
  6: unsafeStatic('h6'),
15
15
  };
16
+ const DIV = unsafeStatic('div');
17
+ const P = unsafeStatic('p');
16
18
  // Fallback content (the rendered text attribute) is rendered as a sibling of
17
19
  // the slot, NOT inside it. Native slot fallback gets suppressed as soon as ANY
18
20
  // node is assigned to the slot — including whitespace-only text nodes that
19
21
  // consumers introduce inadvertently. By rendering the attribute path outside
20
22
  // the slot, we control visibility purely via the `_has*Slotted` state (which
21
- // filters whitespace).
23
+ // filters whitespace). A filled slot gets a <div> around it: the <p> or
24
+ // heading of the app carries the meaning.
22
25
  function renderTitle(component) {
23
26
  const fallback = component.text && !component._hasDefaultSlotted
24
27
  ? renderQueryMark(component.text, component.query, component.queryMarkMode)
25
28
  : nothing;
26
29
  const isHidden = !component.text && !component._hasDefaultSlotted;
27
- const tag = HEADING_TAGS[component.headingLevel];
28
- if (tag) {
29
- return staticHtml `<${tag}
30
- class="title-cell__title"
31
- ?hidden=${isHidden}
32
- >${fallback}<slot @slotchange=${component._onSlotChange}></slot></${tag}>`;
33
- }
34
- return html `<p
30
+ const tag = component._hasDefaultSlotted ? DIV : (HEADING_TAGS[component.headingLevel] ?? P);
31
+ return staticHtml `<${tag}
35
32
  class="title-cell__title"
36
33
  ?hidden=${isHidden}
37
- >${fallback}<slot @slotchange=${component._onSlotChange}></slot></p>`;
34
+ >${fallback}<slot @slotchange=${component._onSlotChange}></slot></${tag}>`;
38
35
  }
39
36
  export const template = function () {
40
- return html `
41
- <p
37
+ const overlineTag = this._hasOverlineSlotted ? DIV : P;
38
+ const supportingTextTag = this._hasSupportingTextSlotted ? DIV : P;
39
+ return staticHtml `
40
+ <${overlineTag}
42
41
  class="title-cell__overline"
43
42
  ?hidden=${!this.overline && !this._hasOverlineSlotted}
44
43
  >
@@ -49,9 +48,9 @@ export const template = function () {
49
48
  name="overline"
50
49
  @slotchange=${this._onSlotChange}
51
50
  ></slot>
52
- </p>
51
+ </${overlineTag}>
53
52
  ${renderTitle(this)}
54
- <p
53
+ <${supportingTextTag}
55
54
  class="title-cell__supporting-text"
56
55
  ?hidden=${!this.supportingText && !this._hasSupportingTextSlotted}
57
56
  >
@@ -62,7 +61,7 @@ export const template = function () {
62
61
  name="supporting-text"
63
62
  @slotchange=${this._onSlotChange}
64
63
  ></slot>
65
- </p>
64
+ </${supportingTextTag}>
66
65
  `;
67
66
  };
68
67
  //# sourceMappingURL=title-cell.template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"title-cell.template.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,8DAA8D;AAC9D,mEAAmE;AACnE,kEAAkE;AAClE,qBAAqB;AACrB,MAAM,YAAY,GAAoD;IACrE,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IACrB,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IACrB,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IACrB,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IACrB,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IACrB,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;CACrB,CAAC;AAEF,6EAA6E;AAC7E,+EAA+E;AAC/E,2EAA2E;AAC3E,6EAA6E;AAC7E,6EAA6E;AAC7E,uBAAuB;AACvB,SAAS,WAAW,CAAC,SAAwB;IAC5C,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,kBAAkB;QAC/D,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC;QAC3E,CAAC,CAAC,OAAO,CAAC;IACX,MAAM,QAAQ,GAAG,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;IAClE,MAAM,GAAG,GAAG,YAAY,CAAC,SAAS,CAAC,YAAsB,CAAC,CAAC;IAE3D,IAAI,GAAG,EAAE,CAAC;QACT,OAAO,UAAU,CAAA,IAAI,GAAG;;aAEb,QAAQ;KAChB,QAAQ,qBAAqB,SAAS,CAAC,aAAa,aAAa,GAAG,GAAG,CAAC;IAC5E,CAAC;IACD,OAAO,IAAI,CAAA;;YAEA,QAAQ;IAChB,QAAQ,qBAAqB,SAAS,CAAC,aAAa,cAAc,CAAC;AACvE,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB,OAAO,IAAI,CAAA;;;aAGC,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;;KAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;QAC3C,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QAChE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;;IAGhC,WAAW,CAAC,IAAI,CAAC;;;aAGR,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;;KAE/D,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;QACvD,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QACtE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;;EAGlC,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"title-cell.template.js","sourceRoot":"","sources":["../../../../../src/components/lists-and-tables/cells/title-cell/title-cell.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAEzE,8DAA8D;AAC9D,mEAAmE;AACnE,kEAAkE;AAClE,qBAAqB;AACrB,MAAM,YAAY,GAAoD;IACrE,CAAC,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AiB,GAAG,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,OAAO,UAAU,CAAA;KACb,WAAW;;aAEH,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;;KAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,mBAAmB;QAC3C,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QAChE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;MAE9B,WAAW;IACb,WAAW,CAAC,IAAI,CAAC;KAChB,iBAAiB;;aAET,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;;KAE/D,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,yBAAyB;QACvD,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC;QACtE,CAAC,CAAC,OAAO;;;kBAGK,IAAI,CAAC,aAAa;;MAE9B,iBAAiB;EACrB,CAAC;AACH,CAAC,CAAC"}
@@ -16,6 +16,36 @@
16
16
  * For links in CMS or markdown output, where the `<a>` arrives as HTML,
17
17
  * `<nldd-rich-text>` with a raw `<a>` remains the route to take.
18
18
  *
19
+ * ### An `<a>` of your own
20
+ *
21
+ * Put an `<a>` in the default slot and the component draws no link of its own:
22
+ * it gives yours its look instead. A page then has the link in its HTML before
23
+ * any script runs, for a search engine that does not render the page, a link
24
+ * preview or reader mode, and a router gets the click: put the `<Link>` of
25
+ * React Router or Next in it, which renders an `<a>` and navigates itself.
26
+ * Without that, every click on a link in a shadow root loads the whole page.
27
+ *
28
+ * <nldd-link size="md"><a href="/patronen">Patronen</a></nldd-link>
29
+ *
30
+ * Everything about the link goes on the `<a>`: `href`, `target`, `rel`,
31
+ * `download`, and its text. Those attributes, `text`, `start-icon` and
32
+ * `end-icon` do nothing on `nldd-link` then. An icon goes in the `<a>` as an
33
+ * nldd-icon, so it is part of what you click and inside the focus ring.
34
+ * `size`, `accessible-label`, `interestfor`, `no-tab` and `disabled` keep
35
+ * working: the component sets `aria-label`, the description, `tabindex` and
36
+ * `aria-disabled` on your `<a>`, and leaves an attribute you set yourself
37
+ * alone. With `target="_blank"` it adds `noopener noreferrer` to the `rel` of
38
+ * the `<a>`, as it does to its own. A disabled link ignores a click before your
39
+ * router sees it. The hint about
40
+ * another website, a new tab or a download goes on it as `aria-description`, so
41
+ * a screen reader reads it after the name. Not as hidden text in the `<a>`: a
42
+ * framework that renders the `<a>` owns its children, and an extra one breaks
43
+ * hydration. One `<a>` per link.
44
+ *
45
+ * The look of the `<a>` comes from the global stylesheet, `dist/css/link.css`
46
+ * or `global.css`, which includes it, so the link looks right before the
47
+ * component loads, and without script.
48
+ *
19
49
  * @element nldd-link
20
50
  * @attr {string} href - Link target
21
51
  * @attr {string} target - Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "opent in nieuw tabblad" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
@@ -25,17 +55,20 @@
25
55
  * @attr {string} text - Link text. Content in the default slot wins.
26
56
  * @attr {string} start-icon - Icon before the text
27
57
  * @attr {string} end-icon - Icon after the text
58
+ * @attr {string} interestfor - ID of an nldd-popover that previews where the link goes, looked up in the tree of this link. It opens on interest instead of on a click: when the pointer rests on the link, when it gets keyboard focus, and on a long press on touch. A click or a tap still follows the link. Focus stays on the link, the popover's content is read as the link's description, and Escape closes it. The pointer can move onto the popover without closing it. Information only: put no link or button in it. Keep the popover outside the paragraph: a link stands in a `<p>`, and a `<p>` of your own inside it would close that paragraph. One popover can serve several links. Keep `accessible-label` on it: it is left out while the popover describes a link.
28
59
  * @attr {string} accessible-label - Accessible label for screen readers
29
60
  * @attr {boolean} disabled - Disabled state. Avoid it where you can; the design guidelines say why.
30
61
  * @attr {boolean} no-tab - Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable.
31
62
  * @attr {object} translations - Override translation keys (e.g. the "opent in nieuw tabblad" announcement); unset keys fall back to Dutch.
32
63
  *
33
- * @slot - Link text. Wins over `text`.
64
+ * @slot - Link text. Wins over `text`. Or an `<a>` of your own, which takes the place of the link the component draws.
65
+ * @accepts a
34
66
  * @slot start-icon - Custom icon before the text. Wins over `start-icon`.
35
67
  * @slot end-icon - Custom icon after the text. Wins over `end-icon`.
36
68
  */
37
- import { LitElement } from 'lit';
69
+ import { LitElement, type PropertyValues } from 'lit';
38
70
  import { SlotContent } from '../../../utilities/slot-content.js';
71
+ import { InterestController } from '../../../utilities/interest-controller.js';
39
72
  import './../../content/icon/icon.js';
40
73
  type Size = 'xs' | 'sm' | 'md' | 'lg' | 'inherit';
41
74
  declare const NLDDLink_base: (abstract new (...args: any[]) => LitElement & {
@@ -68,12 +101,45 @@ export declare class NLDDLink extends NLDDLink_base {
68
101
  * not the current one) that manages focus itself. Still mouse- and
69
102
  * script-focusable. */
70
103
  noTab: boolean;
104
+ interestfor: string | undefined;
105
+ /** Wiring for the popover `interestfor` names: opens it on hover, focus
106
+ * and long press. */
107
+ _interest: InterestController;
108
+ /** @internal The `<a>` of the app in the default slot, which takes the place
109
+ * of the link this component draws. */
110
+ _anchor: HTMLAnchorElement | null;
111
+ /** Re-renders when the app changes what the hint on its `<a>` depends on. */
112
+ private _anchorObserver;
113
+ /** The attributes this component set on the `<a>`, and the value it set:
114
+ * only those are its to change or take away. */
115
+ private _applied;
71
116
  /** Whether the start-icon / end-icon slots hold an icon, so the space that
72
117
  * separates it from the label is only rendered next to an icon. */
73
118
  _hasStartSlot: boolean;
74
119
  _hasEndSlot: boolean;
75
120
  private _handleSlotChange;
121
+ private _handleDefaultSlotChange;
122
+ /** Finds the `<a>` of the app among the children that go in the default slot. */
123
+ private _findAnchor;
124
+ private _observeAnchor;
125
+ /** Sets an attribute on the `<a>`, unless the app set it itself. */
126
+ private _applyToAnchor;
127
+ /** The tokens this component added to the `rel` of the `<a>`. */
128
+ private _relAdded;
129
+ /** Adds `noopener noreferrer` to the `rel` of an `<a>` that opens a new tab,
130
+ * and takes back only what it added when that changes. */
131
+ private _applyRel;
132
+ /** Takes back what this component set on an `<a>` that is no longer its. */
133
+ private _release;
134
+ private _updateAnchor;
135
+ /** Stops a click on a disabled <a> of the app before its own handlers, a
136
+ * router's among them, see it: those run after the capture on the host.
137
+ * A middle click too, which would open the link in a new tab. */
138
+ private _blockDisabledAnchor;
139
+ connectedCallback(): void;
140
+ disconnectedCallback(): void;
76
141
  private _handleClick;
142
+ updated(changed: PropertyValues): void;
77
143
  render(): import("lit-html").TemplateResult<1>;
78
144
  }
79
145
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/link/link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAMjE,OAAO,8BAA8B,CAAC;AAEtC,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;;;;;;;;;;AAElD,qBACa,QAAS,SAAQ,aAAkD;IAC/E,OAAgB,MAAM,0BAAc;IAEpC,6EAA6E;IAC7E,SAAS,cAAyB;IAGlC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAGrC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IAEvC;8DAC0D;IAE1D,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAa;IAGzC,GAAG,EAAE,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