@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
@@ -0,0 +1,256 @@
1
+ /**
2
+ * Nederlandse Digitale Dienst Term Component (Lit + TypeScript)
3
+ *
4
+ * A term in running text with an explanation behind it, such as a legal term
5
+ * from a glossary. The term stays part of the sentence, marked with a dotted
6
+ * underline, and opens its definition in a popover on a click, a tap, Enter
7
+ * or Space. On sm the popover is a bottom sheet.
8
+ *
9
+ * The term is the control: it carries the button role and its expanded state,
10
+ * so a term injected into content needs no ARIA of your own. Focus moves into
11
+ * the popover when it opens, so its content is read, and returns to the term
12
+ * when it closes.
13
+ *
14
+ * Mark only the first occurrence of a concept in a question or section. The
15
+ * underline is the only sign that the term is a control, so it cannot get
16
+ * lighter or go away. A text that marks every occurrence gets busy.
17
+ *
18
+ * A short definition goes in `definition`, as text:
19
+ *
20
+ * <p>De <nldd-term definition="Degene die het doel van en de middelen
21
+ * voor de verwerking vaststelt." source="Artikel 4 AVG"
22
+ * source-href="…">verwerkingsverantwoordelijke</nldd-term>
23
+ * bepaalt of een DPIA nodig is.</p>
24
+ *
25
+ * A `source` shows under the definition, as a link with `source-href`.
26
+ *
27
+ * A definition with more paragraphs or links is an nldd-popover of your own,
28
+ * outside the sentence, that `popovertarget` points at. Every term for the
29
+ * same concept can point at the same popover: it opens against the term you
30
+ * clicked. Markup in the term itself would break: a `<p>` inside a `<p>`
31
+ * closes the paragraph, and the definition would fall out of the term. Give a
32
+ * source in that popover the shape the term gives it: after an
33
+ * `nldd-spacer size="8"`, an nldd-text with `size="sm"` and
34
+ * `color="secondary"`, with "Bron:" and an nldd-link.
35
+ *
36
+ * <p>De <nldd-term popovertarget="verwerkingsverantwoordelijke">
37
+ * verwerkingsverantwoordelijke</nldd-term> bepaalt of een DPIA nodig is.</p>
38
+ * <nldd-popover id="verwerkingsverantwoordelijke"
39
+ * accessible-label="Verwerkingsverantwoordelijke">…</nldd-popover>
40
+ *
41
+ * @element nldd-term
42
+ * @attr {string} definition - The definition, as plain text. The term shows it in a popover of its own, named after the term. Ignored when `popovertarget` is set.
43
+ * @attr {string} source - Where the definition comes from, such as a glossary or an article of law, as plain text. Shown under the definition in the term's own popover. Ignored when `popovertarget` is set.
44
+ * @attr {string} source-href - Link for `source`. Without `source` it has no effect.
45
+ * @attr {object} translations - Override translation keys (the label before the source).
46
+ * @attr {string} popovertarget - ID of an nldd-popover with the definition, looked up in the tree of this term. Positioned against the term when it opens, so it needs no `anchor`, and it can be shared by every term for the same concept. Wins over `definition`.
47
+ *
48
+ * @slot - The term, as plain text. Whitespace around it is dropped, so the underline ends where the word does. It also names the popover that `definition` opens.
49
+ */
50
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
51
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
52
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
53
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
54
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
55
+ };
56
+ import { LitElement } from 'lit';
57
+ import { property, query, state } from 'lit/decorators.js';
58
+ import { customElement } from '../../../utilities/custom-element.js';
59
+ import { popoverTargetOf } from '../../../utilities/popover-target.js';
60
+ import { setState } from '../../../utilities/element-state.js';
61
+ import { termStyles } from './term.styles.js';
62
+ import { termTemplate } from './term.template.js';
63
+ import { nlddTermTranslations } from './term.i18n.js';
64
+ import { translate } from '../../../utilities/translations.js';
65
+ import '../../layout/popover/popover.js';
66
+ import '../../layout/container/container.js';
67
+ import '../text/text.js';
68
+ import '../../navigation/link/link.js';
69
+ import '../../layout/spacer/spacer.js';
70
+ let NLDDTerm = class NLDDTerm extends LitElement {
71
+ constructor() {
72
+ super(...arguments);
73
+ this.definition = '';
74
+ this.source = '';
75
+ this.sourceHref = '';
76
+ /** Override one or more translation keys. Unspecified keys fall back to Dutch. */
77
+ this.translations = {};
78
+ this.popovertarget = '';
79
+ /** The term as it shows: the slotted text without the whitespace around
80
+ * it, which the underline would otherwise run into. */
81
+ this._termDisplay = '';
82
+ /** The term as a name, for the popover `definition` opens. */
83
+ this._termText = '';
84
+ /** Whether the popover was open for this term when the pointer went down:
85
+ * the browser closes it on that pointerdown, before the click, and the
86
+ * click must not open it again. */
87
+ this._wasOpenOnPointerdown = false;
88
+ /** Whether Space went down on the term, so its keyup may click. */
89
+ this._spaceDown = false;
90
+ /** The shared popover this term listens to, to keep its expanded state. */
91
+ this._sharedOverlay = null;
92
+ /** A framework can patch the term's text in place, which fires no slotchange. */
93
+ this._textObserver = new MutationObserver(() => this._readTerm());
94
+ /** The popover takes `aria-expanded` off the term it leaves. This term can
95
+ * still open it, so it says it is closed instead. Runs after the
96
+ * popover's own listener, which was there first. */
97
+ this._handleSharedToggle = () => {
98
+ const trigger = this._triggerEl;
99
+ if (trigger && !trigger.hasAttribute('aria-expanded'))
100
+ trigger.setAttribute('aria-expanded', 'false');
101
+ };
102
+ }
103
+ connectedCallback() {
104
+ super.connectedCallback();
105
+ this._textObserver.observe(this, { characterData: true, childList: true, subtree: true });
106
+ if (this.hasUpdated) {
107
+ this._listenToSharedOverlay();
108
+ this._readTerm();
109
+ }
110
+ }
111
+ disconnectedCallback() {
112
+ super.disconnectedCallback();
113
+ this._textObserver.disconnect();
114
+ this._setSharedOverlay(null);
115
+ }
116
+ firstUpdated() {
117
+ this._triggerEl?.setAttribute('aria-expanded', 'false');
118
+ }
119
+ updated() {
120
+ const own = this._ownPopoverEl;
121
+ if (own && own.anchorElement !== this._triggerEl)
122
+ own.anchorElement = this._triggerEl;
123
+ this._listenToSharedOverlay();
124
+ }
125
+ /** The popover this term opens: the one `popovertarget` names, or its own. */
126
+ _overlay() {
127
+ if (this.popovertarget) {
128
+ const target = popoverTargetOf(this, this.popovertarget, null);
129
+ return target?.matches('nldd-popover') ? target : null;
130
+ }
131
+ return this._ownPopoverEl;
132
+ }
133
+ /** A term rendered before its popover finds it on its next update or click. */
134
+ _listenToSharedOverlay() {
135
+ const overlay = this.popovertarget ? this._overlay() : null;
136
+ this._setSharedOverlay(overlay);
137
+ setState(this, 'no-popover-target', Boolean(this.popovertarget) && !overlay);
138
+ }
139
+ _setSharedOverlay(overlay) {
140
+ if (overlay === this._sharedOverlay)
141
+ return;
142
+ this._sharedOverlay?.removeEventListener('toggle', this._handleSharedToggle);
143
+ this._sharedOverlay = overlay;
144
+ overlay?.addEventListener('toggle', this._handleSharedToggle);
145
+ }
146
+ _handleSlotChange() {
147
+ this._readTerm();
148
+ }
149
+ _readTerm() {
150
+ const slot = this.shadowRoot?.querySelector('slot:not([name])');
151
+ if (!slot)
152
+ return;
153
+ const text = slot.assignedNodes({ flatten: true })
154
+ .map((node) => node.textContent ?? '')
155
+ .join('')
156
+ .replace(/\s+/g, ' ')
157
+ .trim();
158
+ this._termDisplay = text;
159
+ // A soft hyphen breaks a long word in the sentence, not in the name.
160
+ this._termText = text.replace(/\u00AD/g, '');
161
+ }
162
+ _handlePointerdown() {
163
+ const overlay = this._overlay();
164
+ this._wasOpenOnPointerdown = Boolean(overlay?.matches(':popover-open') && overlay.anchorElement === this._triggerEl);
165
+ }
166
+ _handleClick(event) {
167
+ this._listenToSharedOverlay();
168
+ const overlay = this._overlay();
169
+ const trigger = this._triggerEl;
170
+ // A keyboard click has no pointerdown before it, so a snapshot left
171
+ // from a gesture that ended without a click must not count.
172
+ const wasOpen = event.detail > 0 && this._wasOpenOnPointerdown;
173
+ this._wasOpenOnPointerdown = false;
174
+ if (!overlay || !trigger)
175
+ return;
176
+ // A shared popover may be open against another term.
177
+ if (overlay.anchorElement !== trigger) {
178
+ if (overlay.matches(':popover-open'))
179
+ overlay.hidePopover();
180
+ overlay.anchorElement = trigger;
181
+ }
182
+ if (!wasOpen && !overlay.matches(':popover-open'))
183
+ overlay.show();
184
+ }
185
+ /** As a native button: Enter acts on the key going down, Space on the key
186
+ * coming up, and Space does not scroll the page. */
187
+ _handleKeydown(event) {
188
+ if (event.key === 'Enter') {
189
+ event.preventDefault();
190
+ // Once per press, as a native button: a held key repeats keydown.
191
+ if (event.repeat)
192
+ return;
193
+ this._triggerEl?.click();
194
+ }
195
+ else if (event.key === ' ') {
196
+ event.preventDefault();
197
+ this._spaceDown = true;
198
+ }
199
+ }
200
+ /** Only a Space that went down on the term: the keyup of one pressed in
201
+ * the popover lands here when the popover hands focus back. */
202
+ _handleKeyup(event) {
203
+ if (event.key !== ' ')
204
+ return;
205
+ event.preventDefault();
206
+ if (!this._spaceDown)
207
+ return;
208
+ this._spaceDown = false;
209
+ this._triggerEl?.click();
210
+ }
211
+ _handleBlur() {
212
+ this._spaceDown = false;
213
+ }
214
+ _t(key) {
215
+ return translate(this.translations, nlddTermTranslations, key);
216
+ }
217
+ focus(options) {
218
+ this._triggerEl?.focus(options);
219
+ }
220
+ render() {
221
+ return termTemplate(this);
222
+ }
223
+ };
224
+ NLDDTerm.styles = termStyles;
225
+ __decorate([
226
+ property({ type: String, reflect: true })
227
+ ], NLDDTerm.prototype, "definition", void 0);
228
+ __decorate([
229
+ property({ type: String, reflect: true })
230
+ ], NLDDTerm.prototype, "source", void 0);
231
+ __decorate([
232
+ property({ type: String, reflect: true, attribute: 'source-href' })
233
+ ], NLDDTerm.prototype, "sourceHref", void 0);
234
+ __decorate([
235
+ property({ type: Object })
236
+ ], NLDDTerm.prototype, "translations", void 0);
237
+ __decorate([
238
+ property({ type: String, reflect: true })
239
+ ], NLDDTerm.prototype, "popovertarget", void 0);
240
+ __decorate([
241
+ state()
242
+ ], NLDDTerm.prototype, "_termDisplay", void 0);
243
+ __decorate([
244
+ state()
245
+ ], NLDDTerm.prototype, "_termText", void 0);
246
+ __decorate([
247
+ query('.term')
248
+ ], NLDDTerm.prototype, "_triggerEl", void 0);
249
+ __decorate([
250
+ query('nldd-popover')
251
+ ], NLDDTerm.prototype, "_ownPopoverEl", void 0);
252
+ NLDDTerm = __decorate([
253
+ customElement('nldd-term')
254
+ ], NLDDTerm);
255
+ export { NLDDTerm };
256
+ //# sourceMappingURL=term.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"term.js","sourceRoot":"","sources":["../../../../src/components/content/term/term.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAE/D,OAAO,iCAAiC,CAAC;AACzC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,iBAAiB,CAAC;AACzB,OAAO,+BAA+B,CAAC;AACvC,OAAO,+BAA+B,CAAC;AAGhC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAIN,eAAU,GAAG,EAAE,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AG,CAAC,CAAC;IAChE,CAAC;IAEQ,KAAK,CAAC,OAAsB;QACpC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAEQ,MAAM;QACd,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;;AAnLe,eAAM,GAAG,UAAU,AAAb,CAAc;AAGpC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAC1B;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAC9B;AAGZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;4CACpD;AAIhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACsB;AAGjD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CACvB;AAKnB;IADC,KAAK,EAAE;8CACU;AAIlB;IADC,KAAK,EAAE;2CACO;AAGP;IADP,KAAK,CAAC,OAAO,CAAC;4CACyB;AAGhC;IADP,KAAK,CAAC,cAAc,CAAC;+CACqB;AAhC/B,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAqLpB"}
@@ -0,0 +1,2 @@
1
+ export declare const termStyles: import("lit").CSSResult;
2
+ //# sourceMappingURL=term.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"term.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/term/term.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,yBA6DtB,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { css } from 'lit';
2
+ import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
3
+ export const termStyles = css `
4
+
5
+
6
+ /* # Host */
7
+
8
+ :host {
9
+ --_term-corner-radius: var(--primitives-corner-radius-xs);
10
+ --_term-underline-color: var(--context-content-secondary-color);
11
+ --_term-is-hovered-underline-color: var(--context-content-color);
12
+ --_term-underline-offset: 0.15em;
13
+
14
+ ${inheritedTextReset}
15
+ display: inline;
16
+ -webkit-tap-highlight-color: transparent;
17
+ }
18
+
19
+ :host([hidden]) {
20
+ display: none;
21
+ }
22
+
23
+
24
+ /* # Term */
25
+
26
+ .term {
27
+ display: inline;
28
+ border-radius: var(--_term-corner-radius);
29
+ color: inherit;
30
+ text-decoration: underline dotted;
31
+ text-decoration-color: var(--_term-underline-color);
32
+ text-underline-offset: var(--_term-underline-offset);
33
+ -webkit-tap-highlight-color: transparent;
34
+ }
35
+
36
+ @media (hover: hover) {
37
+ .term:hover {
38
+ text-decoration-color: var(--_term-is-hovered-underline-color);
39
+ }
40
+ }
41
+
42
+
43
+ /* # Focus */
44
+
45
+ .term:focus-visible {
46
+ outline: var(--semantics-focus-ring-outline);
47
+ outline-offset: var(--semantics-focus-ring-outline-offset);
48
+ box-shadow: var(--semantics-focus-ring-box-shadow);
49
+ }
50
+
51
+ .term:focus:not(:focus-visible) {
52
+ outline: none;
53
+ }
54
+
55
+ @media (forced-colors: active) {
56
+ .term {
57
+ text-decoration-color: CanvasText;
58
+ }
59
+
60
+ .term:focus-visible {
61
+ outline: 2px solid CanvasText;
62
+ }
63
+ }
64
+ `;
65
+ //# sourceMappingURL=term.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"term.styles.js","sourceRoot":"","sources":["../../../../src/components/content/term/term.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;IAWzB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import type { NLDDTerm } from './term.js';
3
+ export declare function termTemplate(component: NLDDTerm): TemplateResult;
4
+ //# sourceMappingURL=term.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"term.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/term/term.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,wBAAgB,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,cAAc,CAoDhE"}
@@ -0,0 +1,55 @@
1
+ import { html, nothing } from 'lit';
2
+ export function termTemplate(component) {
3
+ // Its own popover only for text: one that popovertarget names is the
4
+ // consumer's, outside the sentence.
5
+ const source = component.source
6
+ ? html `
7
+ <nldd-spacer size="8"></nldd-spacer>
8
+ <nldd-text
9
+ size="sm"
10
+ color="secondary"
11
+ >
12
+ <p>
13
+ ${component._t('components.term.source-capitalize')}:
14
+ ${component.sourceHref
15
+ ? html `<nldd-link href=${component.sourceHref}>${component.source}</nldd-link>`
16
+ : component.source}
17
+ </p>
18
+ </nldd-text>
19
+ `
20
+ : nothing;
21
+ const ownPopover = component.definition && !component.popovertarget
22
+ ? html `
23
+ <nldd-popover
24
+ accessible-label=${component._termText || nothing}
25
+ >
26
+ <nldd-container padding="16">
27
+ <nldd-text text="${component.definition}"></nldd-text>
28
+ ${source}
29
+ </nldd-container>
30
+ </nldd-popover>
31
+ `
32
+ : nothing;
33
+ // A span, not a button: a button lays out as inline-block, so a term of
34
+ // several words would not wrap with the sentence around it. The slot is
35
+ // only read: the span shows the term without the whitespace around it,
36
+ // which is why its content stays on the line of its tags.
37
+ return html `
38
+ <span class="term"
39
+ role="button"
40
+ tabindex="0"
41
+ aria-haspopup="dialog"
42
+ @pointerdown=${() => component._handlePointerdown()}
43
+ @click=${(event) => component._handleClick(event)}
44
+ @keydown=${(event) => component._handleKeydown(event)}
45
+ @keyup=${(event) => component._handleKeyup(event)}
46
+ @blur=${() => component._handleBlur()}
47
+ >${component._termDisplay}</span>
48
+ <slot
49
+ hidden
50
+ @slotchange=${() => component._handleSlotChange()}
51
+ ></slot>
52
+ ${ownPopover}
53
+ `;
54
+ }
55
+ //# sourceMappingURL=term.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"term.template.js","sourceRoot":"","sources":["../../../../src/components/content/term/term.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAGzD,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC/C,qEAAqE;IACrE,oCAAoC;IACpC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM;QAC9B,CAAC,CAAC,IAAI,CAAA;;;;;;;OAOD,SAAS,CAAC,EAAE,CAAC,mCAAmC,CAAC;OACjD,SAAS,CAAC,UAAU;YACrB,CAAC,CAAC,IAAI,CAAA,mBAAmB,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,MAAM,cAAc;YAC/E,CAAC,CAAC,SAAS,CAAC,MAAM;;;GAGrB;QACD,CAAC,CAAC,OAAO,CAAC;IACX,MAAM,UAAU,GAAG,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,aAAa;QAClE,CAAC,CAAC,IAAI,CAAA;;uBAEe,SAAS,CAAC,SAAS,IAAI,OAAO;;;wBAG7B,SAAS,CAAC,UAAU;OACrC,MAAM;;;GAGV;QACD,CAAC,CAAC,OAAO,CAAC;IACX,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,0DAA0D;IAC1D,OAAO,IAAI,CAAA;;;;;kBAKM,GAAG,EAAE,CAAC,SAAS,CAAC,kBAAkB,EAAE;YAC1C,CAAC,KAAiB,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC;cAClD,CAAC,KAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC;YAC3D,CAAC,KAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,CAAC;WACxD,GAAG,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE;KACnC,SAAS,CAAC,YAAY;;;iBAGV,GAAG,EAAE,CAAC,SAAS,CAAC,iBAAiB,EAAE;;IAEhD,UAAU;EACZ,CAAC;AACH,CAAC"}
@@ -9,6 +9,14 @@
9
9
  * — it only names what the scale already has. The three axes are the same three
10
10
  * the tokens carry: size, weight and line height.
11
11
  *
12
+ * Plain text goes in `text`, and the component draws a `<p>` for it. Text with
13
+ * a link, a `<strong>` or a tag goes in the slot, in a `<p>` of your own, or a
14
+ * `<span>` where the text is no paragraph, such as a label or a number. What
15
+ * is in the slot is in the HTML before any script runs; `text` is drawn in the
16
+ * browser. On a page of a website that has to read without script, use the
17
+ * slot. The element in the slot takes the text style of the component: a font,
18
+ * margin or other style the page sets on it does not apply.
19
+ *
12
20
  * Not for headings, which is `nldd-title`, and not for a block of prose with its
13
21
  * own rhythm, spacing and media widths, which is `nldd-rich-text`. This is one
14
22
  * run of text and nothing around it.
@@ -41,10 +49,12 @@
41
49
  * @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too.
42
50
  * @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
43
51
  *
44
- * @slot - The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone.
45
- * @accepts strong, b, em, i, a, code, mark, q, span
52
+ * @attr {string} text - The text, when it is plain text. The component draws it as a `<p>`. Content in the slot wins.
53
+ * @slot - Text that is more than plain text, in a `<p>` of your own, or a `<span>` for text that is no paragraph (a label, a number). Inline elements in it look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). Components such as `nldd-tag` are left alone. That styling comes from a global stylesheet, `dist/css/text.css` or `global.css`, which includes it: a shadow root cannot reach inside a slotted element.
54
+ * @accepts p, span, strong, b, em, i, a, code, mark, q
46
55
  */
47
56
  import { LitElement, type PropertyValues } from 'lit';
57
+ import { SlotContent } from '../../../utilities/slot-content.js';
48
58
  type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'display-6' | 'display-5' | 'display-4' | 'display-3' | 'display-2' | 'display-1';
49
59
  type Weight = 'regular' | 'medium' | 'bold';
50
60
  type LineHeight = 'flat' | 'tight' | 'snug' | 'loose';
@@ -52,7 +62,10 @@ type Color = 'content' | 'secondary' | 'accent' | 'success' | 'warning' | 'criti
52
62
  type HorizontalAlignment = 'left' | 'center' | 'right';
53
63
  export declare class NLDDText extends LitElement {
54
64
  static styles: import("lit").CSSResult;
65
+ text: string;
55
66
  size: Size;
67
+ /** @internal Whether the slot holds something, which wins over `text`. */
68
+ _textSlot: SlotContent;
56
69
  smCustomSize: string;
57
70
  mdCustomSize: string;
58
71
  lgCustomSize: string;
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.ts"],"names":[],"mappings":"AAAA;;;;;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already has. The three axes are the same three
10
10
  * the tokens carry: size, weight and line height.
11
11
  *
12
+ * Plain text goes in `text`, and the component draws a `<p>` for it. Text with
13
+ * a link, a `<strong>` or a tag goes in the slot, in a `<p>` of your own, or a
14
+ * `<span>` where the text is no paragraph, such as a label or a number. What
15
+ * is in the slot is in the HTML before any script runs; `text` is drawn in the
16
+ * browser. On a page of a website that has to read without script, use the
17
+ * slot. The element in the slot takes the text style of the component: a font,
18
+ * margin or other style the page sets on it does not apply.
19
+ *
12
20
  * Not for headings, which is `nldd-title`, and not for a block of prose with its
13
21
  * own rhythm, spacing and media widths, which is `nldd-rich-text`. This is one
14
22
  * run of text and nothing around it.
@@ -41,8 +49,9 @@
41
49
  * @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too.
42
50
  * @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
43
51
  *
44
- * @slot - The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone.
45
- * @accepts strong, b, em, i, a, code, mark, q, span
52
+ * @attr {string} text - The text, when it is plain text. The component draws it as a `<p>`. Content in the slot wins.
53
+ * @slot - Text that is more than plain text, in a `<p>` of your own, or a `<span>` for text that is no paragraph (a label, a number). Inline elements in it look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). Components such as `nldd-tag` are left alone. That styling comes from a global stylesheet, `dist/css/text.css` or `global.css`, which includes it: a shadow root cannot reach inside a slotted element.
54
+ * @accepts p, span, strong, b, em, i, a, code, mark, q
46
55
  */
47
56
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
48
57
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -52,6 +61,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
52
61
  };
53
62
  import { LitElement } from 'lit';
54
63
  import { property } from 'lit/decorators.js';
64
+ import { SlotContent } from '../../../utilities/slot-content.js';
55
65
  import { customElement } from '../../../utilities/custom-element.js';
56
66
  import { applyCustomFontSizes, checkCustomFontSizeFloor, DISPLAY_1_FONT_SIZE } from '../../../utilities/custom-font-size.js';
57
67
  import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
@@ -60,7 +70,10 @@ import { template } from './text.template.js';
60
70
  let NLDDText = class NLDDText extends LitElement {
61
71
  constructor() {
62
72
  super(...arguments);
73
+ this.text = '';
63
74
  this.size = 'md';
75
+ /** @internal Whether the slot holds something, which wins over `text`. */
76
+ this._textSlot = new SlotContent(this);
64
77
  this.smCustomSize = '';
65
78
  this.mdCustomSize = '';
66
79
  this.lgCustomSize = '';
@@ -86,10 +99,13 @@ let NLDDText = class NLDDText extends LitElement {
86
99
  }
87
100
  }
88
101
  render() {
89
- return template();
102
+ return template.call(this);
90
103
  }
91
104
  };
92
105
  NLDDText.styles = textStyles;
106
+ __decorate([
107
+ property({ reflect: true, converter: reflectNonDefault('') })
108
+ ], NLDDText.prototype, "text", void 0);
93
109
  __decorate([
94
110
  property({ reflect: true, converter: reflectNonDefault('md') })
95
111
  ], NLDDText.prototype, "size", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sourceRoot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CA6DpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAoDrD,eAAO,MAAM,UAAU,WA2StB,CAAC"}
1
+ {"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAqDrD,eAAO,MAAM,UAAU,WAsJtB,CAAC"}