@nldd/design-system 0.8.92 → 0.8.93

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 (434) hide show
  1. package/NOTICES.md +9 -27
  2. package/README.md +37 -24
  3. package/custom-elements.json +1640 -1494
  4. package/dist/components/actions/button/button.d.ts +20 -1
  5. package/dist/components/actions/button/button.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.js +47 -3
  7. package/dist/components/actions/button/button.js.map +1 -1
  8. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  9. package/dist/components/actions/button/button.styles.js +3 -1
  10. package/dist/components/actions/button/button.styles.js.map +1 -1
  11. package/dist/components/actions/button/button.template.js +3 -3
  12. package/dist/components/actions/button-group/button-group.d.ts +48 -3
  13. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  14. package/dist/components/actions/button-group/button-group.js +104 -11
  15. package/dist/components/actions/button-group/button-group.js.map +1 -1
  16. package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
  17. package/dist/components/actions/button-group/button-group.styles.js +64 -4
  18. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.d.ts +5 -2
  20. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.js +5 -2
  22. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  23. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  24. package/dist/components/actions/icon-button/icon-button.template.js +7 -4
  25. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  26. package/dist/components/actions/menu/menu.d.ts +29 -29
  27. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  28. package/dist/components/actions/menu/menu.js +53 -53
  29. package/dist/components/actions/menu/menu.js.map +1 -1
  30. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  31. package/dist/components/actions/menu/menu.styles.js +4 -0
  32. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  33. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  34. package/dist/components/actions/menu/menu.template.js +8 -2
  35. package/dist/components/actions/menu/menu.template.js.map +1 -1
  36. package/dist/components/actions/toolbar/toolbar.d.ts +24 -10
  37. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  38. package/dist/components/actions/toolbar/toolbar.js +57 -26
  39. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  40. package/dist/components/actions/toolbar/toolbar.styles.js +7 -7
  41. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  42. package/dist/components/actions/toolbar/toolbar.template.js +3 -2
  43. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  44. package/dist/components/components.js +1909 -928
  45. package/dist/components/content/avatar/avatar.d.ts +23 -5
  46. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  47. package/dist/components/content/avatar/avatar.js +23 -5
  48. package/dist/components/content/avatar/avatar.js.map +1 -1
  49. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
  50. package/dist/components/content/avatar/avatar.template.js +5 -2
  51. package/dist/components/content/avatar/avatar.template.js.map +1 -1
  52. package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
  53. package/dist/components/content/avatar-group/avatar-group.template.js +6 -2
  54. package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
  55. package/dist/components/content/icon/icon.d.ts +18 -6
  56. package/dist/components/content/icon/icon.d.ts.map +1 -1
  57. package/dist/components/content/icon/icon.js +30 -10
  58. package/dist/components/content/icon/icon.js.map +1 -1
  59. package/dist/components/content/identity/identity.template.d.ts.map +1 -1
  60. package/dist/components/content/identity/identity.template.js +4 -1
  61. package/dist/components/content/identity/identity.template.js.map +1 -1
  62. package/dist/components/content/image/image.template.d.ts.map +1 -1
  63. package/dist/components/content/image/image.template.js +7 -2
  64. package/dist/components/content/image/image.template.js.map +1 -1
  65. package/dist/components/content/rich-text/rich-text.d.ts +18 -9
  66. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  67. package/dist/components/content/rich-text/rich-text.js +24 -15
  68. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  69. package/dist/components/content/tag/tag.d.ts +2 -2
  70. package/dist/components/content/tag/tag.d.ts.map +1 -1
  71. package/dist/components/content/tag/tag.js +5 -5
  72. package/dist/components/content/tag/tag.js.map +1 -1
  73. package/dist/components/content/tag/tag.template.js +2 -2
  74. package/dist/components/content/title/title.d.ts +30 -6
  75. package/dist/components/content/title/title.d.ts.map +1 -1
  76. package/dist/components/content/title/title.js +72 -8
  77. package/dist/components/content/title/title.js.map +1 -1
  78. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  79. package/dist/components/content/title/title.styles.js +41 -4
  80. package/dist/components/content/title/title.styles.js.map +1 -1
  81. package/dist/components/content/title/title.template.d.ts +2 -1
  82. package/dist/components/content/title/title.template.d.ts.map +1 -1
  83. package/dist/components/content/title/title.template.js +33 -5
  84. package/dist/components/content/title/title.template.js.map +1 -1
  85. package/dist/components/content/token/token.d.ts +15 -5
  86. package/dist/components/content/token/token.d.ts.map +1 -1
  87. package/dist/components/content/token/token.i18n.d.ts +7 -0
  88. package/dist/components/content/token/token.i18n.d.ts.map +1 -0
  89. package/dist/components/content/token/token.i18n.js +6 -0
  90. package/dist/components/content/token/token.i18n.js.map +1 -0
  91. package/dist/components/content/token/token.js +55 -14
  92. package/dist/components/content/token/token.js.map +1 -1
  93. package/dist/components/content/token/token.template.js +4 -4
  94. package/dist/components/content/token/token.template.js.map +1 -1
  95. package/dist/components/forms/form/form.d.ts +18 -7
  96. package/dist/components/forms/form/form.d.ts.map +1 -1
  97. package/dist/components/forms/form/form.js +18 -7
  98. package/dist/components/forms/form/form.js.map +1 -1
  99. package/dist/components/forms/form-actions/form-actions.d.ts +1 -1
  100. package/dist/components/forms/form-actions/form-actions.js +1 -1
  101. package/dist/components/forms/form-field/form-field.d.ts +12 -1
  102. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  103. package/dist/components/forms/form-field/form-field.js +12 -1
  104. package/dist/components/forms/form-field/form-field.js.map +1 -1
  105. package/dist/components/forms/form-section/form-section.d.ts +3 -3
  106. package/dist/components/forms/form-section/form-section.js +8 -8
  107. package/dist/components/forms/form-section/form-section.js.map +1 -1
  108. package/dist/components/forms/validation-list/validation-list.d.ts +7 -4
  109. package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
  110. package/dist/components/forms/validation-list/validation-list.js +7 -4
  111. package/dist/components/forms/validation-list/validation-list.js.map +1 -1
  112. package/dist/components/{icon-C_zwJZ_g.js → icon-DWNVcttg.js} +4 -4
  113. package/dist/components/{icon-button-oua8pmMC.js → icon-button-hO6k8W63.js} +17 -11
  114. package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
  115. package/dist/components/inputs/checkbox/checkbox.template.js +11 -5
  116. package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
  117. package/dist/components/inputs/combo-box/combo-box.d.ts +4 -1
  118. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  119. package/dist/components/inputs/combo-box/combo-box.js +4 -1
  120. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  121. package/dist/components/inputs/combo-box/combo-box.template.js +2 -2
  122. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  123. package/dist/components/inputs/date-field/date-field.template.js +5 -3
  124. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  125. package/dist/components/inputs/date-picker/date-picker.template.js +1 -1
  126. package/dist/components/inputs/dropdown/dropdown.template.js +3 -3
  127. package/dist/components/inputs/file-field/file-field.template.js +1 -1
  128. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -2
  129. package/dist/components/inputs/number-field/number-field.styles.js +4 -4
  130. package/dist/components/inputs/password-field/password-field.template.js +2 -2
  131. package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
  132. package/dist/components/inputs/radio-button/radio-button.template.js +3 -1
  133. package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
  134. package/dist/components/inputs/search-field/search-field.d.ts +24 -24
  135. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  136. package/dist/components/inputs/search-field/search-field.js +40 -40
  137. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  138. package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
  139. package/dist/components/inputs/search-field/search-field.template.js +4 -2
  140. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  141. package/dist/components/inputs/segmented-control/segmented-control.template.js +2 -2
  142. package/dist/components/inputs/switch/switch.template.js +1 -1
  143. package/dist/components/inputs/text-editor/text-editor.links.js +1 -1
  144. package/dist/components/inputs/text-editor/text-editor.markdown.js +1 -1
  145. package/dist/components/inputs/text-editor/text-editor.mentions.js +1 -1
  146. package/dist/components/inputs/text-field/text-field.template.js +2 -2
  147. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  148. package/dist/components/inputs/time-field/time-field.template.js +5 -3
  149. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  150. package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
  151. package/dist/components/inputs/toggle-button/toggle-button.template.js +4 -3
  152. package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
  153. package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
  154. package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
  155. package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
  156. package/dist/components/inputs/token-field/token-field.styles.js +2 -1
  157. package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
  158. package/dist/components/inputs/token-field/token-field.template.d.ts.map +1 -1
  159. package/dist/components/inputs/token-field/token-field.template.js +6 -4
  160. package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
  161. package/dist/components/layout/app-view/app-view.d.ts +8 -0
  162. package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
  163. package/dist/components/layout/app-view/app-view.js +8 -0
  164. package/dist/components/layout/app-view/app-view.js.map +1 -1
  165. package/dist/components/layout/card/card.d.ts +4 -4
  166. package/dist/components/layout/card/card.d.ts.map +1 -1
  167. package/dist/components/layout/card/card.js +7 -7
  168. package/dist/components/layout/card/card.js.map +1 -1
  169. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  170. package/dist/components/layout/card/card.template.js +4 -2
  171. package/dist/components/layout/card/card.template.js.map +1 -1
  172. package/dist/components/layout/collection/collection.d.ts +11 -6
  173. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  174. package/dist/components/layout/collection/collection.js +19 -14
  175. package/dist/components/layout/collection/collection.js.map +1 -1
  176. package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
  177. package/dist/components/layout/collection/collection.template.js +4 -1
  178. package/dist/components/layout/collection/collection.template.js.map +1 -1
  179. package/dist/components/layout/container/container.d.ts +13 -8
  180. package/dist/components/layout/container/container.d.ts.map +1 -1
  181. package/dist/components/layout/container/container.js +19 -14
  182. package/dist/components/layout/container/container.js.map +1 -1
  183. package/dist/components/layout/page/page.d.ts +52 -2
  184. package/dist/components/layout/page/page.d.ts.map +1 -1
  185. package/dist/components/layout/page/page.js +94 -3
  186. package/dist/components/layout/page/page.js.map +1 -1
  187. package/dist/components/layout/page/page.template.d.ts +6 -0
  188. package/dist/components/layout/page/page.template.d.ts.map +1 -1
  189. package/dist/components/layout/page/page.template.js +21 -6
  190. package/dist/components/layout/page/page.template.js.map +1 -1
  191. package/dist/components/layout/page-footer/page-footer.d.ts +2 -2
  192. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  193. package/dist/components/layout/page-footer/page-footer.js +4 -4
  194. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  195. package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
  196. package/dist/components/layout/page-footer/page-footer.template.js +16 -4
  197. package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
  198. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +4 -6
  199. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
  200. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +4 -5
  201. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
  202. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.d.ts.map +1 -1
  203. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js +8 -2
  204. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js.map +1 -1
  205. package/dist/components/layout/page-sections/hero/hero.d.ts +12 -14
  206. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  207. package/dist/components/layout/page-sections/hero/hero.js +19 -20
  208. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  209. package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
  210. package/dist/components/layout/page-sections/hero/hero.template.js +6 -2
  211. package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
  212. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +6 -8
  213. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
  214. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +6 -7
  215. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
  216. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
  217. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +8 -2
  218. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
  219. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +6 -8
  220. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
  221. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +6 -7
  222. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
  223. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
  224. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +8 -2
  225. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js.map +1 -1
  226. package/dist/components/layout/page-sections/page-section-controls.d.ts +139 -44
  227. package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
  228. package/dist/components/layout/page-sections/page-section-controls.js +44 -47
  229. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  230. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +11 -12
  231. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  232. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +19 -19
  233. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  234. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -1
  235. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +8 -2
  236. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
  237. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +14 -8
  238. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
  239. package/dist/components/layout/page-sections/simple-section/simple-section.js +14 -7
  240. package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
  241. package/dist/components/layout/page-sections/simple-section/simple-section.template.d.ts.map +1 -1
  242. package/dist/components/layout/page-sections/simple-section/simple-section.template.js +8 -2
  243. package/dist/components/layout/page-sections/simple-section/simple-section.template.js.map +1 -1
  244. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +6 -8
  245. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
  246. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +6 -7
  247. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
  248. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
  249. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +8 -2
  250. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
  251. package/dist/components/layout/popover/popover.d.ts +12 -8
  252. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  253. package/dist/components/layout/popover/popover.js +38 -18
  254. package/dist/components/layout/popover/popover.js.map +1 -1
  255. package/dist/components/layout/sheet/sheet.d.ts +26 -11
  256. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  257. package/dist/components/layout/sheet/sheet.js +59 -20
  258. package/dist/components/layout/sheet/sheet.js.map +1 -1
  259. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  260. package/dist/components/layout/sheet/sheet.styles.js +4 -0
  261. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  262. package/dist/components/layout/sheet/sheet.template.js +1 -1
  263. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  264. package/dist/components/layout/spacer/spacer.d.ts +13 -0
  265. package/dist/components/layout/spacer/spacer.d.ts.map +1 -1
  266. package/dist/components/layout/spacer/spacer.js +13 -0
  267. package/dist/components/layout/spacer/spacer.js.map +1 -1
  268. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +4 -1
  269. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  270. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -1
  271. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  272. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +11 -6
  273. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
  274. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +17 -12
  275. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
  276. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
  277. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +4 -0
  278. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
  279. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +3 -1
  280. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
  281. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +3 -1
  282. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
  283. package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +4 -4
  284. package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
  285. package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +8 -8
  286. package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
  287. package/dist/components/layout/window/window.d.ts +30 -18
  288. package/dist/components/layout/window/window.d.ts.map +1 -1
  289. package/dist/components/layout/window/window.js +66 -31
  290. package/dist/components/layout/window/window.js.map +1 -1
  291. package/dist/components/lists-and-tables/cells/cell/cell.d.ts +4 -2
  292. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  293. package/dist/components/lists-and-tables/cells/cell/cell.js +7 -5
  294. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  295. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +1 -1
  296. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js +88 -16
  297. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +1 -1
  298. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +4 -2
  299. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  300. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +7 -5
  301. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  302. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
  303. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +23 -0
  304. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
  305. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.d.ts.map +1 -1
  306. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js +11 -2
  307. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.template.js.map +1 -1
  308. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -2
  309. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  310. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +5 -5
  311. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  312. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.d.ts.map +1 -1
  313. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js +8 -2
  314. package/dist/components/lists-and-tables/cells/text-cell/text-cell.template.js.map +1 -1
  315. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +5 -5
  316. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
  317. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +8 -8
  318. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
  319. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js +1 -1
  320. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +3 -3
  321. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  322. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +6 -6
  323. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  324. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.d.ts.map +1 -1
  325. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js +8 -2
  326. package/dist/components/lists-and-tables/cells/title-cell/title-cell.template.js.map +1 -1
  327. package/dist/components/lists-and-tables/list/list.d.ts +3 -3
  328. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  329. package/dist/components/lists-and-tables/list/list.js +6 -6
  330. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  331. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  332. package/dist/components/lists-and-tables/list/list.styles.js +4 -0
  333. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  334. package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
  335. package/dist/components/lists-and-tables/list/list.template.js +25 -8
  336. package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
  337. package/dist/components/lists-and-tables/list-item/list-item.d.ts +61 -39
  338. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  339. package/dist/components/lists-and-tables/list-item/list-item.js +106 -37
  340. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  341. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  342. package/dist/components/lists-and-tables/list-item/list-item.styles.js +4 -14
  343. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  344. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +35 -10
  345. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  346. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +45 -18
  347. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  348. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
  349. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +4 -14
  350. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
  351. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  352. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  353. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +11 -2
  354. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  355. package/dist/components/lists-and-tables/table/table.d.ts +2 -2
  356. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  357. package/dist/components/lists-and-tables/table/table.js +5 -5
  358. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  359. package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +1 -1
  360. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +6 -6
  361. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  362. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
  363. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +9 -3
  364. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
  365. package/dist/components/navigation/link/link.template.js +2 -2
  366. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +4 -4
  367. package/dist/components/navigation/pagination/pagination.styles.js +4 -4
  368. package/dist/components/navigation/pagination/pagination.template.js +1 -1
  369. package/dist/components/navigation/tab-bar/tab-bar.template.js +2 -2
  370. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
  371. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -2
  372. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
  373. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +6 -2
  374. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  375. package/dist/components/navigation/top-title-bar/top-title-bar.js +7 -2
  376. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  377. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -2
  378. package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
  379. package/dist/components/navigation/top-title-bar/top-title-bar.template.js +18 -3
  380. package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
  381. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +4 -4
  382. package/dist/components/status-and-feedback/badge/badge.template.js +1 -1
  383. package/dist/components/status-and-feedback/banner/banner.template.js +1 -1
  384. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +1 -1
  385. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +14 -5
  386. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  387. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +43 -13
  388. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  389. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.d.ts.map +1 -1
  390. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js +4 -1
  391. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.template.js.map +1 -1
  392. package/dist/components/status-and-feedback/notification/notification.d.ts +8 -8
  393. package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
  394. package/dist/components/status-and-feedback/notification/notification.js +13 -13
  395. package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
  396. package/dist/components/status-and-feedback/notification/notification.template.d.ts.map +1 -1
  397. package/dist/components/status-and-feedback/notification/notification.template.js +5 -2
  398. package/dist/components/status-and-feedback/notification/notification.template.js.map +1 -1
  399. package/dist/components/status-and-feedback/notification/{notification-region.d.ts → notifications-area.d.ts} +3 -3
  400. package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -0
  401. package/dist/components/status-and-feedback/notification/{notification-region.js → notifications-area.js} +137 -140
  402. package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -0
  403. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  404. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +4 -0
  405. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  406. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.d.ts.map +1 -1
  407. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js +2 -1
  408. package/dist/components/status-and-feedback/progress-bar/progress-bar.template.js.map +1 -1
  409. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.d.ts.map +1 -1
  410. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +106 -18
  411. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
  412. package/dist/components/status-and-feedback/status-bar/status-bar.template.js +1 -1
  413. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +4 -1
  414. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -1
  415. package/dist/components/status-and-feedback/step-indicator/step-indicator.js +4 -1
  416. package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -1
  417. package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +2 -2
  418. package/dist/css/form-section.css +4 -4
  419. package/dist/css/form.css +4 -0
  420. package/dist/css/rich-text.css +26 -11
  421. package/dist/css/variables.css +3 -14
  422. package/dist/nldd.min.js +1316 -841
  423. package/dist/types/vue.d.ts +313 -266
  424. package/dist/utilities/page-section-mixin.d.ts +3 -8
  425. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  426. package/dist/utilities/page-section-mixin.js +4 -84
  427. package/dist/utilities/page-section-mixin.js.map +1 -1
  428. package/dist/utilities/title-bar-label-controller.d.ts +25 -0
  429. package/dist/utilities/title-bar-label-controller.d.ts.map +1 -0
  430. package/dist/utilities/title-bar-label-controller.js +52 -0
  431. package/dist/utilities/title-bar-label-controller.js.map +1 -0
  432. package/package.json +4 -2
  433. package/dist/components/status-and-feedback/notification/notification-region.d.ts.map +0 -1
  434. package/dist/components/status-and-feedback/notification/notification-region.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,mBAAmB,CAAC;AAE3B,KAAK,KAAK,GAEP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,UAAU,GAEV,WAAW,GACX,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,aAAa,GACb,OAAO,GACP,aAAa,GACb,OAAO,GACP,UAAU,GACV,WAAW,CAAC;AACf,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,KAAK,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,CAAC;AAEjD,qBACa,OAAQ,SAAQ,UAAU;IACtC,OAAgB,MAAM,0BAAa;IAGnC,KAAK,EAAE,KAAK,CAAa;IAGzB,IAAI,EAAE,IAAI,CAAQ;IAGlB,IAAI,SAAM;IAGV,IAAI,SAAM;IAGV,OAAO,EAAE,OAAO,GAAG,EAAE,CAAM;IAG3B,eAAe,SAAM;IAGrB,YAAY,UAAS;IAGrB,YAAY,UAAS;IAErB,OAAO,CAAC,cAAc,CAAC,CAAmB;IAE1C,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,iBAAiB,IAAI,OAAO,CAK/B;IAEQ,iBAAiB;IAajB,oBAAoB;IAM7B,OAAO,CAAC,gBAAgB;IAgBf,OAAO;IASP,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,OAAO,CAAC;KACpB;CACD"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,mBAAmB,CAAC;AAE3B,KAAK,KAAK,GAEP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,UAAU,GAEV,WAAW,GACX,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,MAAM,GACN,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,aAAa,GACb,OAAO,GACP,aAAa,GACb,OAAO,GACP,UAAU,GACV,WAAW,CAAC;AACf,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxB,KAAK,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,CAAC;AAEjD,qBACa,OAAQ,SAAQ,UAAU;IACtC,OAAgB,MAAM,0BAAa;IAGnC,OAAO,EAAE,OAAO,GAAG,EAAE,CAAM;IAG3B,KAAK,EAAE,KAAK,CAAa;IAGzB,IAAI,EAAE,IAAI,CAAQ;IAGlB,IAAI,SAAM;IAGV,IAAI,SAAM;IAGV,eAAe,SAAM;IAGrB,YAAY,UAAS;IAGrB,YAAY,UAAS;IAErB,OAAO,CAAC,cAAc,CAAC,CAAmB;IAE1C,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,iBAAiB,IAAI,OAAO,CAK/B;IAEQ,iBAAiB;IAajB,oBAAoB;IAM7B,OAAO,CAAC,gBAAgB;IAgBf,OAAO;IASP,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,OAAO,CAAC;KACpB;CACD"}
@@ -10,11 +10,11 @@
10
10
  * click it, it is `nldd-token`.
11
11
  *
12
12
  * @element nldd-tag
13
+ * @attr {string} variant - What is visible: 'text' | 'icon' | 'icon-and-text'. Unset → detected from which of text/icon is present.
13
14
  * @attr {string} color - Color variant. Semantic: 'neutral' | 'accent' | 'success' | 'warning' | 'critical'. Rijkshuisstijl colors: 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen'. (default: 'neutral')
14
15
  * @attr {string} size - Tag size: 'sm' | 'md' (default: 'md')
15
16
  * @attr {string} text - Tag text (alternative to the default slot)
16
17
  * @attr {string} icon - Icon before the text
17
- * @attr {string} variant - What is visible: 'text' | 'icon' | 'icon-and-text'. Unset → detected from which of text/icon is present.
18
18
  * @attr {string} accessible-label - Accessible label for screen readers. Use this on icon-only tags without visible text.
19
19
  *
20
20
  * @slot - Tag text
@@ -35,11 +35,11 @@ import './../icon/icon.js';
35
35
  let NLDDTag = class NLDDTag extends LitElement {
36
36
  constructor() {
37
37
  super(...arguments);
38
+ this.variant = '';
38
39
  this.color = 'neutral';
39
40
  this.size = 'md';
40
41
  this.text = '';
41
42
  this.icon = '';
42
- this.variant = '';
43
43
  this.accessibleLabel = '';
44
44
  this._hasSlotText = false;
45
45
  this._hasSlotIcon = false;
@@ -108,6 +108,9 @@ let NLDDTag = class NLDDTag extends LitElement {
108
108
  }
109
109
  };
110
110
  NLDDTag.styles = tagStyles;
111
+ __decorate([
112
+ property({ reflect: true, converter: reflectNonDefault('') })
113
+ ], NLDDTag.prototype, "variant", void 0);
111
114
  __decorate([
112
115
  property({ reflect: true, converter: reflectNonDefault('neutral') })
113
116
  ], NLDDTag.prototype, "color", void 0);
@@ -120,9 +123,6 @@ __decorate([
120
123
  __decorate([
121
124
  property({ type: String })
122
125
  ], NLDDTag.prototype, "icon", void 0);
123
- __decorate([
124
- property({ reflect: true, converter: reflectNonDefault('') })
125
- ], NLDDTag.prototype, "variant", void 0);
126
126
  __decorate([
127
127
  property({ type: String, attribute: 'accessible-label' })
128
128
  ], NLDDTag.prototype, "accessibleLabel", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,mBAAmB,CAAC;AAgCpB,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAAhC;;QAIN,UAAK,GAAU,SAAS,CAAC;QAGzB,SAAI,GAAS,IAAI,CAAC;QAGlB,SAAI,GAAG,EAAE,CAAC;QAGV,SAAI,GAAG,EAAE,CAAC;QAGV,YAAO,GAAiB,EAAE,CAAC;QAG3B,oBAAe,GAAG,EAAE,CAAC;QAGrB,iBAAY,GAAG,KAAK,CAAC;QAGrB,iBAAY,GAAG,KAAK,CAAC;IAkEtB,CAAC;IA9DA,IAAI,QAAQ;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC;IACzC,CAAC;IAED,IAAI,QAAQ;QACX,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC;IACzC,CAAC;IAED,IAAI,iBAAiB;QACpB,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC,OAAO,CAAC;QACtC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,eAA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? html `
18
18
  <span class="tag__icon">
19
19
  ${component.icon
20
- ? html `<nldd-icon name=${component.icon}></nldd-icon>`
21
- : html `<slot name="icon">${variant === 'icon' ? html `<nldd-icon name="icon-placeholder"></nldd-icon>` : nothing}</slot>`}
20
+ ? html `<nldd-icon icon=${component.icon}></nldd-icon>`
21
+ : html `<slot name="icon">${variant === 'icon' ? html `<nldd-icon icon="icon-placeholder"></nldd-icon>` : nothing}</slot>`}
22
22
  </span>
23
23
  ` : nothing}
24
24
  ${showText ? html `
@@ -1,8 +1,14 @@
1
1
  /**
2
2
  * Nederlandse Digitale Dienst Title Bar Component (Lit + TypeScript)
3
3
  *
4
- * A title bar with an optional overline, title, and subtitle on the left, and a
5
- * slot at the end of the title line on the right.
4
+ * A title bar with an optional overline, title, and supporting text on the left,
5
+ * and a slot at the end of the title line on the right.
6
+ *
7
+ * The title comes from `text`, with `heading-level` for its place in the
8
+ * heading structure. `size` is how it looks, `heading-level` what it is, and
9
+ * the two are set apart. `overline` and `supporting-text` go above and below
10
+ * it. Each of the three has a slot in the same place for content that is more
11
+ * than text, and a filled slot takes the place of the attribute.
6
12
  *
7
13
  * @element nldd-title
8
14
  *
@@ -10,20 +16,38 @@
10
16
  * @attr {string} color - 'content' (the default) takes the system's own content
11
17
  * colors. 'inherit' lets the title follow the text color of the surface
12
18
  * instead (for colored areas such as the filled categories); overline and
13
- * subtitle get the same color at a lowered opacity.
19
+ * supporting-text get the same color at a lowered opacity.
20
+ * @attr {string} text - Title text. Content in the default slot takes its place.
21
+ * @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
22
+ * @attr {string} overline - Text above the title. Content in the overline slot takes its place.
23
+ * @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6; absent renders a p, for a title that is not a heading.
14
24
  *
15
- * @slot overline - Optional overline above the title
16
- * @slot - Title text (use h1–h6 for semantics)
17
- * @slot subtitle - Optional subtitle below the title
25
+ * @slot overline - Overline that is more than text. Takes the place of the overline attribute.
26
+ * @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
27
+ * @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
18
28
  * @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
19
29
  */
20
30
  import { LitElement } from 'lit';
21
31
  type Size = 1 | 2 | 3 | 4 | 5 | 6;
22
32
  type TitleColor = 'content' | 'inherit';
33
+ type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
23
34
  export declare class NLDDTitle extends LitElement {
24
35
  static styles: import("lit").CSSResult;
25
36
  size: Size;
26
37
  color: TitleColor;
38
+ text: string;
39
+ supportingText: string;
40
+ overline: string;
41
+ headingLevel: HeadingLevel | null;
42
+ /** @internal */
43
+ _hasOverlineSlotted: boolean;
44
+ /** @internal */
45
+ _hasDefaultSlotted: boolean;
46
+ /** @internal */
47
+ _hasSupportingTextSlotted: boolean;
48
+ /** @internal */
49
+ _onSlotChange: (e: Event) => void;
50
+ firstUpdated(): void;
27
51
  render(): import("lit-html").TemplateResult;
28
52
  }
29
53
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAClC,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAExC,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAGrC,IAAI,EAAE,IAAI,CAAK;IAGf,KAAK,EAAE,UAAU,CAAa;IAErB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAClC,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AACxC,KAAK,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAK1C,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAGrC,IAAI,EAAE,IAAI,CAAK;IAGf,KAAK,EAAE,UAAU,CAAa;IAG9B,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,QAAQ,SAAM;IAGd,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEzC,gBAAgB;IACP,mBAAmB,UAAS;IACrC,gBAAgB;IACP,kBAAkB,UAAS;IACpC,gBAAgB;IACP,yBAAyB,UAAS;IAE3C,gBAAgB;IAChB,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAS9B;IAEO,YAAY,IAAI,IAAI;IASpB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
@@ -7,8 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  /**
8
8
  * Nederlandse Digitale Dienst Title Bar Component (Lit + TypeScript)
9
9
  *
10
- * A title bar with an optional overline, title, and subtitle on the left, and a
11
- * slot at the end of the title line on the right.
10
+ * A title bar with an optional overline, title, and supporting text on the left,
11
+ * and a slot at the end of the title line on the right.
12
+ *
13
+ * The title comes from `text`, with `heading-level` for its place in the
14
+ * heading structure. `size` is how it looks, `heading-level` what it is, and
15
+ * the two are set apart. `overline` and `supporting-text` go above and below
16
+ * it. Each of the three has a slot in the same place for content that is more
17
+ * than text, and a filled slot takes the place of the attribute.
12
18
  *
13
19
  * @element nldd-title
14
20
  *
@@ -16,26 +22,63 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
16
22
  * @attr {string} color - 'content' (the default) takes the system's own content
17
23
  * colors. 'inherit' lets the title follow the text color of the surface
18
24
  * instead (for colored areas such as the filled categories); overline and
19
- * subtitle get the same color at a lowered opacity.
25
+ * supporting-text get the same color at a lowered opacity.
26
+ * @attr {string} text - Title text. Content in the default slot takes its place.
27
+ * @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
28
+ * @attr {string} overline - Text above the title. Content in the overline slot takes its place.
29
+ * @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6; absent renders a p, for a title that is not a heading.
20
30
  *
21
- * @slot overline - Optional overline above the title
22
- * @slot - Title text (use h1–h6 for semantics)
23
- * @slot subtitle - Optional subtitle below the title
31
+ * @slot overline - Overline that is more than text. Takes the place of the overline attribute.
32
+ * @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
33
+ * @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
24
34
  * @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
25
35
  */
26
36
  import { LitElement } from 'lit';
27
- import { customElement, property } from 'lit/decorators.js';
37
+ import { customElement, property, state } from 'lit/decorators.js';
28
38
  import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
29
39
  import { titleStyles } from './title.styles.js';
30
40
  import { titleTemplate } from './title.template.js';
41
+ /** One warning per page: a missed rename is one search-and-replace, not one per title. */
42
+ let warnedAboutSubtitle = false;
31
43
  let NLDDTitle = class NLDDTitle extends LitElement {
32
44
  constructor() {
33
45
  super(...arguments);
34
46
  this.size = 3;
35
47
  this.color = 'content';
48
+ this.text = '';
49
+ this.supportingText = '';
50
+ this.overline = '';
51
+ this.headingLevel = null;
52
+ /** @internal */
53
+ this._hasOverlineSlotted = false;
54
+ /** @internal */
55
+ this._hasDefaultSlotted = false;
56
+ /** @internal */
57
+ this._hasSupportingTextSlotted = false;
58
+ /** @internal */
59
+ this._onSlotChange = (e) => {
60
+ const slot = e.target;
61
+ // Whitespace between the tags is not content: without this check the text
62
+ // would vanish behind a slot that only holds a newline.
63
+ const hasContent = slot.assignedNodes().some((node) => node.nodeType === Node.ELEMENT_NODE || (node.textContent ?? '').trim().length > 0);
64
+ if (slot.name === 'overline')
65
+ this._hasOverlineSlotted = hasContent;
66
+ else if (slot.name === 'supporting-text')
67
+ this._hasSupportingTextSlotted = hasContent;
68
+ else
69
+ this._hasDefaultSlotted = hasContent;
70
+ };
71
+ }
72
+ firstUpdated() {
73
+ // The subtitle slot was renamed to supporting-text. Content in a slot that
74
+ // no longer exists is not rendered and reports nothing, so say it here.
75
+ if (import.meta.env?.DEV && !warnedAboutSubtitle && this.querySelector(':scope > [slot="subtitle"]')) {
76
+ warnedAboutSubtitle = true;
77
+ console.warn('NLDDTitle: the subtitle slot is now supporting-text. Rename slot="subtitle" to slot="supporting-text", or use the supporting-text attribute, here and on every other nldd-title.');
78
+ }
36
79
  }
37
80
  render() {
38
- return titleTemplate();
81
+ return titleTemplate(this);
39
82
  }
40
83
  };
41
84
  NLDDTitle.styles = titleStyles;
@@ -45,6 +88,27 @@ __decorate([
45
88
  __decorate([
46
89
  property({ reflect: true, converter: reflectNonDefault('content') })
47
90
  ], NLDDTitle.prototype, "color", void 0);
91
+ __decorate([
92
+ property({ reflect: true, converter: reflectNonDefault('') })
93
+ ], NLDDTitle.prototype, "text", void 0);
94
+ __decorate([
95
+ property({ reflect: true, attribute: 'supporting-text', converter: reflectNonDefault('') })
96
+ ], NLDDTitle.prototype, "supportingText", void 0);
97
+ __decorate([
98
+ property({ reflect: true, converter: reflectNonDefault('') })
99
+ ], NLDDTitle.prototype, "overline", void 0);
100
+ __decorate([
101
+ property({ type: Number, reflect: true, attribute: 'heading-level' })
102
+ ], NLDDTitle.prototype, "headingLevel", void 0);
103
+ __decorate([
104
+ state()
105
+ ], NLDDTitle.prototype, "_hasOverlineSlotted", void 0);
106
+ __decorate([
107
+ state()
108
+ ], NLDDTitle.prototype, "_hasDefaultSlotted", void 0);
109
+ __decorate([
110
+ state()
111
+ ], NLDDTitle.prototype, "_hasSupportingTextSlotted", void 0);
48
112
  NLDDTitle = __decorate([
49
113
  customElement('nldd-title')
50
114
  ], NLDDTitle);
@@ -1 +1 @@
1
- {"version":3,"file":"title.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAM7C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QAIN,SAAI,GAAS,CAAC,CAAC;QAGf,UAAK,GAAe,SAAS,CAAC;IAK/B,CAAC;IAHS,MAAM;QACd,OAAO,aAAa,EAAE,CAAC;IACxB,CAAC;;AAVe,gBAAM,GAAG,WAAW,AAAd,CAAe;AAGrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAC3B;AAGf;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAa,SAAS,CAAC,EAAE,CAAC;wCACnD;AAPlB,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAYrB"}
1
+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AE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;+CAC7B;AAGhC;IAAR,KAAK,EAAE;sDAA6B;AAE5B;IAAR,KAAK,EAAE;qDAA4B;AAE3B;IAAR,KAAK,EAAE;4DAAmC;AA1B/B,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CAoDrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBAuPvB,CAAC"}
1
+ {"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBA4RvB,CAAC"}
@@ -199,6 +199,13 @@ export const titleStyles = css `
199
199
  flex-basis: 0;
200
200
  }
201
201
 
202
+ .title__overline {
203
+ margin: 0;
204
+ color: var(--semantics-content-secondary-color);
205
+ font: var(--primitives-font-body-sm-regular-tight);
206
+ overflow-wrap: anywhere;
207
+ }
208
+
202
209
  ::slotted([slot="overline"]) {
203
210
  ${slottedReset}
204
211
  ${inheritedTextReset}
@@ -210,6 +217,15 @@ export const titleStyles = css `
210
217
 
211
218
  /* The measure is in ch, so one value covers every size: ch scales with the
212
219
  font, and 40 characters stays 40 characters at 18px and at 52px. */
220
+ .title__text {
221
+ margin: 0;
222
+ max-width: 40ch;
223
+ color: var(--semantics-content-color);
224
+ font: var(--_font);
225
+ overflow-wrap: anywhere;
226
+ text-wrap: balance;
227
+ }
228
+
213
229
  ::slotted(:not([slot])) {
214
230
  ${slottedReset}
215
231
  ${inheritedTextReset}
@@ -221,7 +237,14 @@ export const titleStyles = css `
221
237
  text-wrap: balance !important;
222
238
  }
223
239
 
224
- ::slotted([slot="subtitle"]) {
240
+ .title__supporting-text {
241
+ margin: 0;
242
+ color: var(--semantics-content-secondary-color);
243
+ font: var(--primitives-font-body-md-regular-tight);
244
+ overflow-wrap: anywhere;
245
+ }
246
+
247
+ ::slotted([slot="supporting-text"]) {
225
248
  ${slottedReset}
226
249
  ${inheritedTextReset}
227
250
  margin: 0 !important;
@@ -230,11 +253,25 @@ export const titleStyles = css `
230
253
  overflow-wrap: anywhere !important;
231
254
  }
232
255
 
233
- :host([size="5"]) ::slotted([slot="subtitle"]),
234
- :host([size="6"]) ::slotted([slot="subtitle"]) {
256
+ :host([size="5"]) .title__supporting-text,
257
+ :host([size="6"]) .title__supporting-text {
258
+ font: var(--primitives-font-body-sm-regular-tight);
259
+ }
260
+
261
+ :host([size="5"]) ::slotted([slot="supporting-text"]),
262
+ :host([size="6"]) ::slotted([slot="supporting-text"]) {
235
263
  font: var(--primitives-font-body-sm-regular-tight) !important;
236
264
  }
237
265
 
266
+ :host([color="inherit"]) .title__text {
267
+ color: inherit;
268
+ }
269
+
270
+ :host([color="inherit"]) .title__overline,
271
+ :host([color="inherit"]) .title__supporting-text {
272
+ color: color-mix(in oklab, currentColor var(--semantics-content-secondary-opacity), transparent);
273
+ }
274
+
238
275
  /* !important matches the hardened slotted rules above. */
239
276
 
240
277
  :host([color="inherit"]) ::slotted(:not([slot])) {
@@ -242,7 +279,7 @@ export const titleStyles = css `
242
279
  }
243
280
 
244
281
  :host([color="inherit"]) ::slotted([slot="overline"]),
245
- :host([color="inherit"]) ::slotted([slot="subtitle"]) {
282
+ :host([color="inherit"]) ::slotted([slot="supporting-text"]) {
246
283
  color: color-mix(in oklab, currentColor var(--semantics-content-secondary-opacity), transparent) !important;
247
284
  }
248
285
 
@@ -1 +1 @@
1
- {"version":3,"file":"title.styles.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,kBAAkB,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B,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;uBAM1B,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;uBAM1B,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAAK;;;;4CAIL,KAAK,qBAAqB,KAAK;;;;4CAI/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwC7C,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;;;IAmBlB,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;IAiBlB,YAAY;IACZ,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CrB,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { TemplateResult } from 'lit';
2
- export declare function titleTemplate(): TemplateResult;
2
+ import type { NLDDTitle } from './title.js';
3
+ export declare function titleTemplate(component: NLDDTitle): TemplateResult;
3
4
  //# sourceMappingURL=title.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"title.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAE3C,wBAAgB,aAAa,IAAI,cAAc,CAa9C"}
1
+ {"version":3,"file":"title.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqB5C,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,cAAc,CAsBlE"}
@@ -1,11 +1,39 @@
1
- import { html } from 'lit';
2
- export function titleTemplate() {
1
+ import { html, nothing } from 'lit';
2
+ import { html as staticHtml, unsafeStatic } from 'lit/static-html.js';
3
+ // SAFETY: the only tags unsafeStatic ever sees. A heading-level outside the map
4
+ // renders a <p>, so no tag name is derived from input.
5
+ const HEADING_TAGS = {
6
+ 1: unsafeStatic('h1'),
7
+ 2: unsafeStatic('h2'),
8
+ 3: unsafeStatic('h3'),
9
+ 4: unsafeStatic('h4'),
10
+ 5: unsafeStatic('h5'),
11
+ 6: unsafeStatic('h6'),
12
+ };
13
+ function renderText(component) {
14
+ if (!component.text || component._hasDefaultSlotted)
15
+ return nothing;
16
+ const tag = component.headingLevel ? HEADING_TAGS[component.headingLevel] : undefined;
17
+ return tag
18
+ ? staticHtml `<${tag} class="title__text">${component.text}</${tag}>`
19
+ : html `<p class="title__text">${component.text}</p>`;
20
+ }
21
+ export function titleTemplate(component) {
3
22
  return html `
4
23
  <div class="title">
5
24
  <div class="title__title-group">
6
- <slot name="overline"></slot>
7
- <slot></slot>
8
- <slot name="subtitle"></slot>
25
+ ${component.overline && !component._hasOverlineSlotted ? html `<p class="title__overline">${component.overline}</p>` : nothing}
26
+ <slot
27
+ name="overline"
28
+ @slotchange=${component._onSlotChange}
29
+ ></slot>
30
+ ${renderText(component)}
31
+ <slot @slotchange=${component._onSlotChange}></slot>
32
+ ${component.supportingText && !component._hasSupportingTextSlotted ? html `<p class="title__supporting-text">${component.supportingText}</p>` : nothing}
33
+ <slot
34
+ name="supporting-text"
35
+ @slotchange=${component._onSlotChange}
36
+ ></slot>
9
37
  </div>
10
38
  <div class="title__end">
11
39
  <slot name="end"></slot>
@@ -1 +1 @@
1
- {"version":3,"file":"title.template.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAE3C,MAAM,UAAU,aAAa;IAC5B,OAAO,IAAI,CAAA;;;;;;;;;;;EAWV,CAAC;AACH,CAAC"}
1
+ {"version":3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CAAC,aAAa;MACzC,SAAS,CAAC,cAAc,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,IAAI,CAAA,qCAAqC,SAAS,CAAC,cAAc,MAAM,CAAC,CAAC,CAAC,OAAO;;;mBAGvI,SAAS,CAAC,aAAa;;;;;;;EAOxC,CAAC;AACH,CAAC"}
@@ -12,11 +12,12 @@
12
12
  *
13
13
  * @attr {string} text - Token text; falls back to the default slot when unset.
14
14
  * @attr {'none' | 'dismiss' | 'menu'} control - Control type (default: 'none')
15
+ * @attr {string} dismiss-text - Accessible label for the dismiss button. Unset, it names the token: `Verwijder "{text}"`, so a row of tokens does not read as a row of identical buttons.
16
+ * @attr {string} menu-text - Accessible label for the menu button. Unset, it is `Toon opties voor "{text}"`.
17
+ * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
18
+ * @attr {boolean} roving - Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable.
15
19
  * @attr {boolean} expanded - Reflects whether the token's menu is open (control="menu"); managed by the token.
16
20
  * @attr {boolean} disabled - Disabled state
17
- * @attr {string} dismiss-text - Accessible label for the dismiss button (default: 'Verwijder')
18
- * @attr {string} menu-text - Accessible label for the menu button (default: 'Toon opties')
19
- * @attr {boolean} roving - Inside a roving-focus container (e.g. nldd-token-field): the host is the single tab stop, so the trailing control is not separately tabbable.
20
21
  *
21
22
  * @slot - Token text
22
23
  * @slot menu - An nldd-menu that the token opens from its menu button (control="menu").
@@ -24,6 +25,7 @@
24
25
  * @fires dismiss - When the dismiss button is clicked
25
26
  */
26
27
  import { LitElement } from 'lit';
28
+ import { type NLDDTokenTranslations } from './token.i18n.js';
27
29
  import './../../actions/icon-button/icon-button.js';
28
30
  export type TokenControl = 'none' | 'dismiss' | 'menu';
29
31
  export declare class NLDDToken extends LitElement {
@@ -32,15 +34,23 @@ export declare class NLDDToken extends LitElement {
32
34
  * content keeps working. */
33
35
  text: string;
34
36
  control: TokenControl;
35
- expanded: boolean;
36
- disabled: boolean;
37
37
  dismissText: string;
38
38
  menuText: string;
39
+ translations: Partial<NLDDTokenTranslations>;
39
40
  /** Inside a roving-focus container (e.g. nldd-token-field): the host carries the
40
41
  * single tab stop and manages focus itself, so the trailing control (dismiss or
41
42
  * menu) is taken out of the tab order — it stays reachable by mouse and by the
42
43
  * host's own key handlers. */
43
44
  roving: boolean;
45
+ expanded: boolean;
46
+ disabled: boolean;
47
+ /** Text of the default slot, kept current for the control labels. */
48
+ private _slotText;
49
+ private _textObserver;
50
+ private _readSlotText;
51
+ _t(key: keyof NLDDTokenTranslations): string;
52
+ get _dismissLabel(): string;
53
+ get _menuLabel(): string;
44
54
  _handleDismiss(e: Event): void;
45
55
  private _menuButton?;
46
56
  private _menu;
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../src/components/content/token/token.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,OAAO,4CAA4C,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;AAEvD,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAErC;iCAC6B;IAE7B,IAAI,SAAM;IAGV,OAAO,EAAE,YAAY,CAAU;IAG/B,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,WAAW,SAAe;IAG1B,QAAQ,SAAiB;IAEzB;;;mCAG+B;IAE/B,MAAM,UAAS;IAEf,cAAc,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAU9B,OAAO,CAAC,WAAW,CAAC,CAAc;IAElC,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,qBAAqB,CAAS;IAEtC;wFACoF;IACpF,iBAAiB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAajC,OAAO,CAAC,iBAAiB,CAUvB;IA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AAG,IAAI;IAU9B,OAAO,CAAC,WAAW,CAAC,CAAc;IAElC,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,qBAAqB,CAAS;IAEtC;wFACoF;IACpF,iBAAiB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAajC,OAAO,CAAC,iBAAiB,CAUvB;IAEF;oFACgF;IAChF,4BAA4B,IAAI,IAAI;IAIpC,gBAAgB,IAAI,IAAI;IAYf,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAMrC;;uFAEmF;IACnF,OAAO,CAAC,kBAAkB,CAOxB;IAEF;;;0FAGsF;IAC7E,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAKnC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
@@ -0,0 +1,7 @@
1
+ export declare const nlddTokenTranslations: {
2
+ 'components.token.dismiss-action': string;
3
+ 'components.token.open-menu-action': string;
4
+ 'components.token.open-token-menu-action': string;
5
+ };
6
+ export type NLDDTokenTranslations = typeof nlddTokenTranslations;
7
+ //# sourceMappingURL=token.i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/content/token/token.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export const nlddTokenTranslations = {
2
+ 'components.token.dismiss-action': 'Verwijder',
3
+ 'components.token.open-menu-action': 'Toon opties',
4
+ 'components.token.open-token-menu-action': 'Toon opties voor',
5
+ };
6
+ //# sourceMappingURL=token.i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.i18n.js","sourceRoot":"","sources":["../../../../src/components/content/token/token.i18n.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC,iCAAiC,EAAE,WAAW;IAC9C,mCAAmC,EAAE,aAAa;IAClD,yCAAyC,EAAE,kBAAkB;CAC7D,CAAC"}