@nldd/design-system 0.13.0 → 0.13.1

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 (303) hide show
  1. package/custom-elements.json +3066 -753
  2. package/dist/components/actions/button/button.d.ts +6 -1
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.i18n.d.ts +1 -0
  5. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.i18n.js +1 -0
  7. package/dist/components/actions/button/button.i18n.js.map +1 -1
  8. package/dist/components/actions/button/button.js +7 -0
  9. package/dist/components/actions/button/button.js.map +1 -1
  10. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.template.js +5 -2
  12. package/dist/components/actions/button/button.template.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +8 -1
  14. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -0
  16. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.i18n.js +1 -0
  18. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.js +9 -0
  20. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  22. package/dist/components/actions/icon-button/icon-button.template.js +5 -2
  23. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  24. package/dist/components/actions/menu/menu-divider.d.ts +14 -0
  25. package/dist/components/actions/menu/menu-divider.d.ts.map +1 -0
  26. package/dist/components/actions/menu/menu-divider.js +33 -0
  27. package/dist/components/actions/menu/menu-divider.js.map +1 -0
  28. package/dist/components/actions/menu/menu-group.d.ts +35 -0
  29. package/dist/components/actions/menu/menu-group.d.ts.map +1 -0
  30. package/dist/components/actions/menu/menu-group.js +69 -0
  31. package/dist/components/actions/menu/menu-group.js.map +1 -0
  32. package/dist/components/actions/menu/menu-item.d.ts +86 -0
  33. package/dist/components/actions/menu/menu-item.d.ts.map +1 -0
  34. package/dist/components/actions/menu/menu-item.js +279 -0
  35. package/dist/components/actions/menu/menu-item.js.map +1 -0
  36. package/dist/components/actions/menu/menu.chain.d.ts +40 -0
  37. package/dist/components/actions/menu/menu.chain.d.ts.map +1 -0
  38. package/dist/components/actions/menu/menu.chain.js +150 -0
  39. package/dist/components/actions/menu/menu.chain.js.map +1 -0
  40. package/dist/components/actions/menu/menu.d.ts +54 -269
  41. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  42. package/dist/components/actions/menu/menu.js +106 -984
  43. package/dist/components/actions/menu/menu.js.map +1 -1
  44. package/dist/components/actions/menu/menu.pointer.d.ts +61 -0
  45. package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -0
  46. package/dist/components/actions/menu/menu.pointer.js +143 -0
  47. package/dist/components/actions/menu/menu.pointer.js.map +1 -0
  48. package/dist/components/actions/menu/menu.safe-triangle.d.ts +79 -0
  49. package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -0
  50. package/dist/components/actions/menu/menu.safe-triangle.js +198 -0
  51. package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -0
  52. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  53. package/dist/components/actions/menu/menu.template.js +5 -4
  54. package/dist/components/actions/menu/menu.template.js.map +1 -1
  55. package/dist/components/actions/toolbar/toolbar-item.d.ts +46 -0
  56. package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -0
  57. package/dist/components/actions/toolbar/toolbar-item.js +113 -0
  58. package/dist/components/actions/toolbar/toolbar-item.js.map +1 -0
  59. package/dist/components/actions/toolbar/toolbar-item.template.d.ts +3 -0
  60. package/dist/components/actions/toolbar/toolbar-item.template.d.ts.map +1 -0
  61. package/dist/components/actions/toolbar/toolbar-item.template.js +12 -0
  62. package/dist/components/actions/toolbar/toolbar-item.template.js.map +1 -0
  63. package/dist/components/actions/toolbar/toolbar-title.d.ts +43 -0
  64. package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -0
  65. package/dist/components/actions/toolbar/toolbar-title.js +111 -0
  66. package/dist/components/actions/toolbar/toolbar-title.js.map +1 -0
  67. package/dist/components/actions/toolbar/toolbar-title.template.d.ts +3 -0
  68. package/dist/components/actions/toolbar/toolbar-title.template.d.ts.map +1 -0
  69. package/dist/components/actions/toolbar/toolbar-title.template.js +33 -0
  70. package/dist/components/actions/toolbar/toolbar-title.template.js.map +1 -0
  71. package/dist/components/actions/toolbar/toolbar.d.ts +16 -111
  72. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  73. package/dist/components/actions/toolbar/toolbar.js +50 -423
  74. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  75. package/dist/components/actions/toolbar/toolbar.layout.d.ts +40 -0
  76. package/dist/components/actions/toolbar/toolbar.layout.d.ts.map +1 -0
  77. package/dist/components/actions/toolbar/toolbar.layout.js +76 -0
  78. package/dist/components/actions/toolbar/toolbar.layout.js.map +1 -0
  79. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +52 -0
  80. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +1 -0
  81. package/dist/components/actions/toolbar/toolbar.overflow-menu.js +105 -0
  82. package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +1 -0
  83. package/dist/components/actions/toolbar/toolbar.template.d.ts +1 -4
  84. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  85. package/dist/components/actions/toolbar/toolbar.template.js +0 -41
  86. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  87. package/dist/components/{breakpoints-Bpf2MgjM.js → breakpoints-Bti55RWY.js} +1 -2
  88. package/dist/components/components.js +2170 -2156
  89. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  90. package/dist/components/content/code-viewer/code-viewer.styles.js +2 -1
  91. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  92. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  93. package/dist/components/content/icon/icon-aliases.js +11 -0
  94. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  95. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  96. package/dist/components/content/icon/icon-gallery-status.js +6 -0
  97. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  98. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  99. package/dist/components/content/icon/icon-registry.js +6 -1
  100. package/dist/components/content/icon/icon-registry.js.map +1 -1
  101. package/dist/components/{decorate-CO88j7Lc.js → decorate-Cz9-peTN.js} +1 -2
  102. package/dist/components/{dist-B5E3q-ea.js → dist-B9YBOGFW.js} +4 -6
  103. package/dist/components/{dist-BWlUmyq3.js → dist-BFZM0YsR.js} +57 -36
  104. package/dist/components/{dist-BFw_yEMS.js → dist-BNkeFjc3.js} +5 -7
  105. package/dist/components/{dist-Co-tsc9S.js → dist-BaLc58I_.js} +7 -9
  106. package/dist/components/{dist-BOVSVPSz.js → dist-Bm3708s5.js} +3 -4
  107. package/dist/components/{dist-IPm8ilWf.js → dist-CJ9uLG0u.js} +5 -17
  108. package/dist/components/{dist-Dz28se9B.js → dist-CJm4tkNC.js} +4 -6
  109. package/dist/components/{dist-CC8oiVtm.js → dist-CSC1dG3L.js} +2 -3
  110. package/dist/components/{dist-BPB3rWnd.js → dist-DHhnz3Gv.js} +3 -4
  111. package/dist/components/{dist-Dn9pjiud.js → dist-DgjvHvsN.js} +6 -8
  112. package/dist/components/{dist-COKR0tYU.js → dist-PeUX4vPq.js} +3 -6
  113. package/dist/components/{dist-D_9ZyZ5v.js → dist-YYLChwRq.js} +5 -7
  114. package/dist/components/{dist-BNLAXAyO.js → dist-m70B83qb.js} +4 -6
  115. package/dist/components/{gherkin-uCVRxsGf.js → gherkin-DzYbEwDO.js} +1 -2
  116. package/dist/components/{icon-BJHKWhY5.js → icon-DZ1UXCzO.js} +21 -14
  117. package/dist/components/{icon-button-DhBIq6lN.js → icon-button-984CwkU1.js} +34 -44
  118. package/dist/components/{input-modality-DhTeUxKi.js → input-modality-CiPLYYMN.js} +1 -2
  119. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  120. package/dist/components/inputs/code-editor/code-editor.styles.js +6 -1
  121. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  122. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  123. package/dist/components/inputs/combo-box/combo-box.styles.js +1 -0
  124. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  125. package/dist/components/inputs/date-field/date-field.d.ts +41 -28
  126. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  127. package/dist/components/inputs/date-field/date-field.dates.d.ts +60 -0
  128. package/dist/components/inputs/date-field/date-field.dates.d.ts.map +1 -0
  129. package/dist/components/inputs/date-field/date-field.dates.js +106 -0
  130. package/dist/components/inputs/date-field/date-field.dates.js.map +1 -0
  131. package/dist/components/inputs/date-field/date-field.i18n.d.ts +4 -0
  132. package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
  133. package/dist/components/inputs/date-field/date-field.i18n.js +6 -0
  134. package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
  135. package/dist/components/inputs/date-field/date-field.js +110 -142
  136. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  137. package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
  138. package/dist/components/inputs/date-field/date-field.styles.js +1 -0
  139. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  140. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  141. package/dist/components/inputs/date-field/date-field.template.js +21 -17
  142. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  143. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  144. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -0
  145. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  146. package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
  147. package/dist/components/inputs/password-field/password-field.styles.js +1 -0
  148. package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
  149. package/dist/components/inputs/search-field/search-field.d.ts +1 -1
  150. package/dist/components/inputs/search-field/search-field.js +1 -1
  151. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  152. package/dist/components/inputs/search-field/search-field.styles.js +1 -0
  153. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  154. package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -3
  155. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  156. package/dist/components/inputs/segmented-control/segmented-control.js +8 -10
  157. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  158. package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -1
  159. package/dist/components/inputs/text-editor/text-editor.selection.js +35 -9
  160. package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -1
  161. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  162. package/dist/components/inputs/text-editor/text-editor.styles.js +17 -0
  163. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  164. package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -1
  165. package/dist/components/inputs/text-editor/text-editor.tasks.js +5 -1
  166. package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -1
  167. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  168. package/dist/components/inputs/text-field/text-field.styles.js +1 -0
  169. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  170. package/dist/components/inputs/time-field/time-field.d.ts +26 -40
  171. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  172. package/dist/components/inputs/time-field/time-field.i18n.d.ts +3 -0
  173. package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
  174. package/dist/components/inputs/time-field/time-field.i18n.js +5 -0
  175. package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
  176. package/dist/components/inputs/time-field/time-field.js +68 -162
  177. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  178. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  179. package/dist/components/inputs/time-field/time-field.styles.js +1 -0
  180. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  181. package/dist/components/inputs/time-field/time-field.times.d.ts +74 -0
  182. package/dist/components/inputs/time-field/time-field.times.d.ts.map +1 -0
  183. package/dist/components/inputs/time-field/time-field.times.js +154 -0
  184. package/dist/components/inputs/time-field/time-field.times.js.map +1 -0
  185. package/dist/components/layout/card/card.d.ts +6 -1
  186. package/dist/components/layout/card/card.d.ts.map +1 -1
  187. package/dist/components/layout/card/card.i18n.d.ts +1 -0
  188. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  189. package/dist/components/layout/card/card.i18n.js +1 -0
  190. package/dist/components/layout/card/card.i18n.js.map +1 -1
  191. package/dist/components/layout/card/card.js +7 -0
  192. package/dist/components/layout/card/card.js.map +1 -1
  193. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  194. package/dist/components/layout/card/card.template.js +5 -2
  195. package/dist/components/layout/card/card.template.js.map +1 -1
  196. package/dist/components/layout/page/page.d.ts +3 -0
  197. package/dist/components/layout/page/page.d.ts.map +1 -1
  198. package/dist/components/layout/page/page.js +20 -3
  199. package/dist/components/layout/page/page.js.map +1 -1
  200. package/dist/components/layout/page/page.styles.d.ts.map +1 -1
  201. package/dist/components/layout/page/page.styles.js +25 -2
  202. package/dist/components/layout/page/page.styles.js.map +1 -1
  203. package/dist/components/layout/page/page.template.js +1 -1
  204. package/dist/components/layout/page/page.template.js.map +1 -1
  205. package/dist/components/layout/sheet/sheet.d.ts +5 -0
  206. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  207. package/dist/components/layout/sheet/sheet.js +14 -6
  208. package/dist/components/layout/sheet/sheet.js.map +1 -1
  209. package/dist/components/layout/sheet/sheet.template.d.ts.map +1 -1
  210. package/dist/components/layout/sheet/sheet.template.js +1 -0
  211. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  212. package/dist/components/lists-and-tables/list-item/list-item.d.ts +6 -1
  213. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  214. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +1 -0
  215. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  216. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -0
  217. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  218. package/dist/components/lists-and-tables/list-item/list-item.js +12 -3
  219. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  220. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  221. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  222. package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
  223. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  224. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +6 -1
  225. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  226. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +1 -0
  227. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -1
  228. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +1 -0
  229. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -1
  230. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +12 -3
  231. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  232. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  233. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  234. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +2 -1
  235. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  236. package/dist/components/navigation/link/link.d.ts +6 -1
  237. package/dist/components/navigation/link/link.d.ts.map +1 -1
  238. package/dist/components/navigation/link/link.i18n.d.ts +1 -0
  239. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  240. package/dist/components/navigation/link/link.i18n.js +1 -0
  241. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  242. package/dist/components/navigation/link/link.js +7 -0
  243. package/dist/components/navigation/link/link.js.map +1 -1
  244. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  245. package/dist/components/navigation/link/link.template.js +5 -2
  246. package/dist/components/navigation/link/link.template.js.map +1 -1
  247. package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -0
  248. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  249. package/dist/components/navigation/tab-bar/tab-bar.js +9 -0
  250. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  251. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +9 -24
  252. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  253. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +29 -223
  254. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  255. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +48 -0
  256. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -0
  257. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +220 -0
  258. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -0
  259. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  260. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +22 -2
  261. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  262. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
  263. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -0
  264. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
  265. package/dist/components/{reflect-non-default-OLaK60rT.js → reflect-non-default-B9wQcnne.js} +1 -2
  266. package/dist/components/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  267. package/dist/components/{shadow-resets-CPa58rmc.js → shadow-resets-BwOyyZFH.js} +1 -2
  268. package/dist/components/{shell-C61GCsJA.js → shell-Dh5IwHd-.js} +1 -2
  269. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +10 -1
  270. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
  271. package/dist/components/status-and-feedback/step-bar/step-bar.js +22 -1
  272. package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
  273. package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -1
  274. package/dist/components/status-and-feedback/step-bar/step-bar.template.js +2 -0
  275. package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
  276. package/dist/components/{toml-C2HBbPgG.js → toml-D0Pix_8Q.js} +1 -2
  277. package/dist/components/{visibility-mixin-djNSG5ZN.js → visibility-mixin-C-K7ho5Q.js} +4 -6
  278. package/dist/components/{with-translations-C6QfP6_S.js → with-translations-DRuOq3QK.js} +14 -10
  279. package/dist/nldd.min.js +846 -747
  280. package/dist/translations/en-US.d.ts.map +1 -1
  281. package/dist/translations/en-US.js +13 -0
  282. package/dist/translations/en-US.js.map +1 -1
  283. package/dist/translations/fy.d.ts.map +1 -1
  284. package/dist/translations/fy.js +13 -0
  285. package/dist/translations/fy.js.map +1 -1
  286. package/dist/translations/nl.generated.d.ts +13 -0
  287. package/dist/translations/nl.generated.d.ts.map +1 -1
  288. package/dist/translations/pap-AW.d.ts.map +1 -1
  289. package/dist/translations/pap-AW.js +13 -0
  290. package/dist/translations/pap-AW.js.map +1 -1
  291. package/dist/translations/pap-CW.d.ts.map +1 -1
  292. package/dist/translations/pap-CW.js +13 -0
  293. package/dist/translations/pap-CW.js.map +1 -1
  294. package/dist/types/vue.d.ts +57 -21
  295. package/dist/utilities/form-associated-mixin.d.ts +7 -0
  296. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  297. package/dist/utilities/form-associated-mixin.js +13 -1
  298. package/dist/utilities/form-associated-mixin.js.map +1 -1
  299. package/dist/utilities/link-hint.d.ts +11 -0
  300. package/dist/utilities/link-hint.d.ts.map +1 -1
  301. package/dist/utilities/link-hint.js +15 -0
  302. package/dist/utilities/link-hint.js.map +1 -1
  303. package/package.json +2 -2
@@ -64,9 +64,9 @@ import type { NLDDListItemSegment } from '@nldd/design-system/list-item-segment'
64
64
  import type { NLDDMenu } from '@nldd/design-system/menu';
65
65
  import type { NLDDMenuBar } from '@nldd/design-system/menu-bar';
66
66
  import type { NLDDMenuBarItem } from '@nldd/design-system/menu-bar-item';
67
- import type { NLDDMenuDivider } from '@nldd/design-system/menu';
68
- import type { NLDDMenuGroup } from '@nldd/design-system/menu';
69
- import type { NLDDMenuItem } from '@nldd/design-system/menu';
67
+ import type { NLDDMenuDivider } from '@nldd/design-system/menu-divider';
68
+ import type { NLDDMenuGroup } from '@nldd/design-system/menu-group';
69
+ import type { NLDDMenuItem } from '@nldd/design-system/menu-item';
70
70
  import type { NLDDModalDialog } from '@nldd/design-system/modal-dialog';
71
71
  import type { NLDDMultiLineTextField } from '@nldd/design-system/multi-line-text-field';
72
72
  import type { NLDDNavigationSplitView } from '@nldd/design-system/navigation-split-view';
@@ -129,8 +129,8 @@ import type { NLDDToggleButtonGroup } from '@nldd/design-system/toggle-button-gr
129
129
  import type { NLDDToken } from '@nldd/design-system/token';
130
130
  import type { NLDDTokenField } from '@nldd/design-system/token-field';
131
131
  import type { NLDDToolbar } from '@nldd/design-system/toolbar';
132
- import type { NLDDToolbarItem } from '@nldd/design-system/toolbar';
133
- import type { NLDDToolbarTitle } from '@nldd/design-system/toolbar';
132
+ import type { NLDDToolbarItem } from '@nldd/design-system/toolbar-item';
133
+ import type { NLDDToolbarTitle } from '@nldd/design-system/toolbar-title';
134
134
  import type { NLDDTooltip } from '@nldd/design-system/tooltip';
135
135
  import type { NLDDTopNavigationBar } from '@nldd/design-system/top-navigation-bar';
136
136
  import type { NLDDTopTitleBar } from '@nldd/design-system/top-title-bar';
@@ -396,6 +396,8 @@ declare module 'vue' {
396
396
  'href'?: NLDDButton['href'];
397
397
  /** Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
398
398
  'target'?: NLDDButton['target'];
399
+ /** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
400
+ 'download'?: NLDDButton['download'];
399
401
  /** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
400
402
  'rel'?: NLDDButton['rel'];
401
403
  /** Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch. */
@@ -440,6 +442,8 @@ declare module 'vue' {
440
442
  'href'?: NLDDCard['href'];
441
443
  /** Link target for href (e.g. '_blank'); adjusts rel automatically and adds an "opent in nieuw tabblad" announcement for '_blank'. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
442
444
  'target'?: NLDDCard['target'];
445
+ /** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
446
+ 'download'?: NLDDCard['download'];
443
447
  /** Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
444
448
  'rel'?: NLDDCard['rel'];
445
449
  /** Makes the whole card a button; ignored when `href` is set */
@@ -1368,6 +1372,8 @@ declare module 'vue' {
1368
1372
  'href'?: NLDDIconButton['href'];
1369
1373
  /** Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
1370
1374
  'target'?: NLDDIconButton['target'];
1375
+ /** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
1376
+ 'download'?: NLDDIconButton['download'];
1371
1377
  /** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1372
1378
  'rel'?: NLDDIconButton['rel'];
1373
1379
  /** Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch. */
@@ -1550,6 +1556,8 @@ declare module 'vue' {
1550
1556
  'href'?: NLDDLink['href'];
1551
1557
  /** Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "opent in nieuw tabblad" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
1552
1558
  'target'?: NLDDLink['target'];
1559
+ /** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
1560
+ 'download'?: NLDDLink['download'];
1553
1561
  /** Link rel attribute; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1554
1562
  'rel'?: NLDDLink['rel'];
1555
1563
  /** Text size: 'inherit' (the default) follows the surrounding text and lays the link out inline, so it wraps in running prose. 'xs' | 'sm' | 'md' | 'lg' pin a size and switch to inline-flex, which baseline-aligns a start or end icon with an explicit gap. */
@@ -1608,6 +1616,8 @@ declare module 'vue' {
1608
1616
  'href'?: NLDDListItem['href'];
1609
1617
  /** Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden "opens in new tab" announcement is added for assistive technology. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
1610
1618
  'target'?: NLDDListItem['target'];
1619
+ /** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
1620
+ 'download'?: NLDDListItem['download'];
1611
1621
  /** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1612
1622
  'rel'?: NLDDListItem['rel'];
1613
1623
  /** Renders the item as a `<button>`. Last of the three: `href` and `checkbox` both win over it. */
@@ -1660,6 +1670,8 @@ declare module 'vue' {
1660
1670
  'href'?: NLDDListItemSegment['href'];
1661
1671
  /** Link target forwarded to the `<a>`; only applies with `href`. With '_blank' a visually hidden "opent in nieuw tabblad" announcement is added. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. With `accessible-label` the hint goes into the label. */
1662
1672
  'target'?: NLDDListItemSegment['target'];
1673
+ /** Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab. */
1674
+ 'download'?: NLDDListItemSegment['download'];
1663
1675
  /** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1664
1676
  'rel'?: NLDDListItemSegment['rel'];
1665
1677
  /** Renders the segment as a `<button>`. Last of the three: `href` and `checkbox` both win over it. */
@@ -1708,17 +1720,21 @@ declare module 'vue' {
1708
1720
  };
1709
1721
 
1710
1722
  type NLDDMenuProps = {
1711
- /** What the menu is, which sets its roles and part of its keyboard. See the `variant` attribute in the docblock above. */
1723
+ /** What the menu is (default 'menu'). `menu` is a menu of actions: `role="menu"` with menu items, for things you do. `listbox` is the popup of a combobox: `role="listbox"` with options, focus stays in the field. `navigation` is a submenu in a site navigation: a list of links (`role="list"`, each item a list item around a real link), because a screen reader treats a menu as an application and reads a list of links as what it is. Every item takes an `href`. Tab reaches each link, the arrow keys, Home and End move between them, Escape closes and returns focus to the trigger, and the menu closes when focus leaves it. The trigger says `aria-expanded` and promises no menu. Checkbox and radio items, shortcuts and `filter()` belong to actions and warn in development here. A submenu of a navigation menu is a navigation menu too. The variant sets `role="listitem"` on its items and groups, and takes it off again when it changes back, also where you had set that role yourself. */
1712
1724
  'variant'?: NLDDMenu['variant'];
1713
- /** Explicit width, pinned exactly (sets --_menu-width and clamps min/max to it). Leave unset to let the menu size to its content between a minimum and a viewport-aware maximum of min(100vw - inset, 640px). */
1725
+ /** Explicit width, pinned exactly. Without it the menu sizes to its content between a minimum and a viewport-aware maximum (min(100vw - inset, 640px)). */
1714
1726
  'width'?: NLDDMenu['width'];
1727
+ /** Name of the menu or listbox for assistive technology, on the element that has the role. Without it the menu takes the name of its anchor (the `accessible-label`, `aria-label`, `text` or text of the button or field it hangs off), and a submenu the text of the item that opens it, so a listbox under a search field is "Zoeken" rather than nameless (WCAG 4.1.2). The list of an nldd-combo-box or nldd-token-field takes the name of the field. */
1728
+ 'accessible-label'?: NLDDMenu['accessibleLabel'];
1729
+ /** Name of the menu or listbox for assistive technology, on the element that has the role. Without it the menu takes the name of its anchor (the `accessible-label`, `aria-label`, `text` or text of the button or field it hangs off), and a submenu the text of the item that opens it, so a listbox under a search field is "Zoeken" rather than nameless (WCAG 4.1.2). The list of an nldd-combo-box or nldd-token-field takes the name of the field. */
1730
+ 'accessibleLabel'?: NLDDMenu['accessibleLabel'];
1715
1731
  /** ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a menu hung off a button. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead — same positioning, no toggle. */
1716
1732
  'anchor'?: NLDDMenu['anchor'];
1717
1733
  /** Floating UI placement. Default: 'bottom-start'. */
1718
1734
  'placement'?: NLDDMenu['placement'];
1719
- /** Maximum number of visible items before the menu scrolls. Sets --_menu-max-items internally. Default: 0 (no limit). */
1735
+ /** Maximum number of visible items before scrolling. Sets --_menu-max-items internally. Default: 0 (no limit). */
1720
1736
  'max-items'?: NLDDMenu['maxItems'];
1721
- /** Maximum number of visible items before the menu scrolls. Sets --_menu-max-items internally. Default: 0 (no limit). */
1737
+ /** Maximum number of visible items before scrolling. Sets --_menu-max-items internally. Default: 0 (no limit). */
1722
1738
  'maxItems'?: NLDDMenu['maxItems'];
1723
1739
  /** Text of the default empty-state dialog. Falls back to Dutch i18n "Geen opties beschikbaar". */
1724
1740
  'empty-text'?: NLDDMenu['emptyText'];
@@ -1728,7 +1744,7 @@ declare module 'vue' {
1728
1744
  'empty-supporting-text'?: NLDDMenu['emptySupportingText'];
1729
1745
  /** Supporting text of the default empty-state dialog. */
1730
1746
  'emptySupportingText'?: NLDDMenu['emptySupportingText'];
1731
- /** Override one or more translation keys. Unset keys fall back to the Dutch default. */
1747
+ /** Override one or more translation keys. */
1732
1748
  'translations'?: NLDDMenu['translations'];
1733
1749
  /** Custom filter function (query, item) => boolean. */
1734
1750
  'filterFn'?: NLDDMenu['filterFn'];
@@ -1842,8 +1858,6 @@ declare module 'vue' {
1842
1858
  'menuVariant'?: NLDDMenuItem['menuVariant'];
1843
1859
  /** Whether this item keeps the check-mark column free without being checkable, because another item in its menu is. Set by that nldd-menu. Not part of the public API. */
1844
1860
  'checkColumn'?: NLDDMenuItem['checkColumn'];
1845
- 'onMenuItemFocused'?: (event: CustomEvent) => void;
1846
- 'onSubmenuOpen'?: (event: CustomEvent) => void;
1847
1861
  /** Fired when the item is clicked and not disabled. */
1848
1862
  'onSelect'?: (event: CustomEvent) => void;
1849
1863
  };
@@ -2469,9 +2483,9 @@ declare module 'vue' {
2469
2483
  'width'?: NLDDSearchField['width'];
2470
2484
  /** Placeholder text for the input */
2471
2485
  'placeholder'?: NLDDSearchField['placeholder'];
2472
- /** Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen'). */
2486
+ /** Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen'). Without a visible label the placeholder is the only text on screen, so a name of your own starts with it: someone who works the computer by voice says what they see, and a name that leaves it out does not answer (WCAG 2.5.3). */
2473
2487
  'accessible-label'?: NLDDSearchField['accessibleLabel'];
2474
- /** Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen'). */
2488
+ /** Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen'). Without a visible label the placeholder is the only text on screen, so a name of your own starts with it: someone who works the computer by voice says what they see, and a name that leaves it out does not answer (WCAG 2.5.3). */
2475
2489
  'accessibleLabel'?: NLDDSearchField['accessibleLabel'];
2476
2490
  /** When set, shows a search button on the right */
2477
2491
  'show-search-button'?: NLDDSearchField['showSearchButton'];
@@ -3643,6 +3657,24 @@ declare module 'vue' {
3643
3657
  'label'?: NLDDToolbarItem['label'];
3644
3658
  /** Overflow order: items with a lower priority move into the overflow menu first (default 0). Items sharing a priority overflow together, regardless of position. */
3645
3659
  'priority'?: NLDDToolbarItem['priority'];
3660
+ /** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md') onto the item host, so size-dependent styling can key off it. */
3661
+ 'size'?: NLDDToolbarItem['size'];
3662
+ /** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's show-item-labels, so the item renders its label below the control. */
3663
+ 'show-item-labels'?: NLDDToolbarItem['showItemLabels'];
3664
+ /** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's show-item-labels, so the item renders its label below the control. */
3665
+ 'showItemLabels'?: NLDDToolbarItem['showItemLabels'];
3666
+ /** Set by nldd-toolbar, not a consumer attribute: marks an item that grows or shrinks to fill space. Toggled synchronously during measurement, so it can appear or disappear between layout frames — do not style against it. It is not reflected as a JS property — read it with hasAttribute('fluid'). */
3667
+ 'fluid'?: NLDDToolbarItem['fluid'];
3668
+ /** Set by nldd-toolbar, not a consumer attribute: the sole fluid item, allowed to shrink below its content. Same synchronous-toggle and property-read caveats as fluid. */
3669
+ 'solo-fluid'?: NLDDToolbarItem['soloFluid'];
3670
+ /** Set by nldd-toolbar, not a consumer attribute: the sole fluid item, allowed to shrink below its content. Same synchronous-toggle and property-read caveats as fluid. */
3671
+ 'soloFluid'?: NLDDToolbarItem['soloFluid'];
3672
+ /** Set by nldd-toolbar, not a consumer attribute, when the item moves into the overflow menu. Same synchronous-toggle caveat. */
3673
+ 'hidden'?: NLDDToolbarItem['hidden'];
3674
+ /** Set by nldd-toolbar, not a consumer attribute: the item holds a control that overflows by itself (nldd-tab-bar), so it gets the width that control wants with everything shown. Same synchronous-toggle caveat. */
3675
+ 'shrinkable'?: NLDDToolbarItem['shrinkable'];
3676
+ /** Set by nldd-toolbar, not a consumer attribute: a shrinkable item narrowed down to what its control needs at least, before it would move into the overflow menu. Same synchronous-toggle caveat. */
3677
+ 'shrunk'?: NLDDToolbarItem['shrunk'];
3646
3678
  };
3647
3679
 
3648
3680
  type NLDDToolbarTitleProps = {
@@ -3664,6 +3696,8 @@ declare module 'vue' {
3664
3696
  'supporting-text'?: NLDDToolbarTitle['supportingText'];
3665
3697
  /** Secondary supporting text shown below the title. */
3666
3698
  'supportingText'?: NLDDToolbarTitle['supportingText'];
3699
+ /** Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md'), which sets the title group height and, at 'sm', the title and supporting-text fonts. */
3700
+ 'size'?: NLDDToolbarTitle['size'];
3667
3701
  /** Makes the mark and the name one link, for the place this window belongs to (usually the app's own start). The `action` slot stays outside it: a control inside a link is a control you cannot reach without following the link. */
3668
3702
  'href'?: NLDDToolbarTitle['href'];
3669
3703
  /** Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
@@ -3700,9 +3734,9 @@ declare module 'vue' {
3700
3734
  };
3701
3735
 
3702
3736
  type NLDDTopNavigationBarProps = {
3703
- /** Name of the website or application, above the menu bar. Empty leaves the title line out. */
3737
+ /** Name of the website or application, above the menu bar. Empty leaves the title line out. On a narrow screen, where it has a line of its own, a long name wraps; on md and lg it sits beside the menu on one line, so keep it short enough to fit there. */
3704
3738
  'website-title'?: NLDDTopNavigationBar['websiteTitle'];
3705
- /** Name of the website or application, above the menu bar. Empty leaves the title line out. */
3739
+ /** Name of the website or application, above the menu bar. Empty leaves the title line out. On a narrow screen, where it has a line of its own, a long name wraps; on md and lg it sits beside the menu on one line, so keep it short enough to fit there. */
3706
3740
  'websiteTitle'?: NLDDTopNavigationBar['websiteTitle'];
3707
3741
  /** Hides the whole logo bar, wordmark included. */
3708
3742
  'no-logo'?: NLDDTopNavigationBar['noLogo'];
@@ -3726,9 +3760,9 @@ declare module 'vue' {
3726
3760
  'logo-supporting-text-2'?: NLDDTopNavigationBar['logoSupportingText2'];
3727
3761
  /** Second supporting line under the wordmark title. Only visible when there is a wordmark. */
3728
3762
  'logoSupportingText2'?: NLDDTopNavigationBar['logoSupportingText2'];
3729
- /** URL for the logo and wordmark. Without it they are not a link but an image with an accessible label. */
3763
+ /** URL for the logo and wordmark. Without it they are not a link but an image with an accessible label. Leave it out when `website-href` already goes to the same page: two links to the start page side by side are two tab stops and the same link twice in a screen reader's list of links. */
3730
3764
  'logo-href'?: NLDDTopNavigationBar['logoHref'];
3731
- /** URL for the logo and wordmark. Without it they are not a link but an image with an accessible label. */
3765
+ /** URL for the logo and wordmark. Without it they are not a link but an image with an accessible label. Leave it out when `website-href` already goes to the same page: two links to the start page side by side are two tab stops and the same link twice in a screen reader's list of links. */
3732
3766
  'logoHref'?: NLDDTopNavigationBar['logoHref'];
3733
3767
  /** URL for the website title. Without it the title stays plain text. */
3734
3768
  'website-href'?: NLDDTopNavigationBar['websiteHref'];
@@ -3940,7 +3974,7 @@ declare module 'vue' {
3940
3974
  'nldd-combo-box': DefineComponent<NLDDComboBoxProps>;
3941
3975
  /** A simple layout primitive: pick a layout mode, give it a gap, optionally align contents, and add padding. Padding can be set for all sides, per axis (inline/block), or per individual side. Specificity: per side > per axis > all sides. The container owns the space around and between its children; use `nldd-spacer` only for a one-off gap between two different things. A block that is placed in more than one context gets no padding of its own: whoever places it wraps it in a container, so the inset is not counted twice. Responsive padding and gap have sm/md/lg variants. Each variant emits both an @media (viewport) and @container (layout-container) query. When inside a layout-container the @container query wins; otherwise the @media query provides the viewport-based fallback. Layout modes: - `stack` (default): block items, stacked vertically. The "what you expect from DOM flow" mode. - `row`: flex row, no wrapping. Items shrink or overflow. - `wrap`: flex row, items wrap to new lines. - `grid`: CSS grid, auto-fit columns at min 280px wide. - `columns`: CSS multi-column flow, 280px minimum column width, items don't split across column breaks. Alignment maps to the layout's natural axis: - `stack`: vertical = main-axis (justify-content), horizontal = cross-axis (align-items) - `row` / `wrap`: horizontal = main-axis, vertical = cross-axis - `grid`: horizontal = justify-items, vertical = align-items (per cell) - `columns`: alignment props have no effect (CSS multicol doesn't expose alignment) Item order is set per-child via attributes on the slotted children themselves: `<child order="3">` for a fixed position, or `<child sm-order="N">` / `<child md-order="N">` / `<child lg-order="N">` to override per breakpoint (resolved against THIS container's width via @container queries, same scope as the responsive padding/gap). The container observes slot changes and child attribute mutations and bridges these to `--_container-slot-order` / `--_container-slot-sm-order` / etc. custom properties on each child's inline style, which the container's CSS then reads via `::slotted(*)` inside @container queries. Cascade: `sm-order` falls back to `order` falls back to `0` at sm (and analogously for md/lg). No-op for `layout="columns"` (CSS multicol has no per-item ordering hook). The `column-count` attribute (1-8) forces an exact column count for `layout="grid"` (overrides auto-fit) and `layout="columns"` (overrides the natural width-driven count). `sm-column-count` / `md-column-count` / `lg-column-count` resolve against this container's OWN width via an `@container (...)` query on the host — not against the viewport. That lets a footer in a narrow sidebar choose its own column count independent of the surrounding page width. `layout="lanes"` packs items into balanced columns using native CSS grid lanes where supported, falling back to CSS multicol (column-order) elsewhere. CSS-only, no JS. Honours `gap` on both axes and `column-count`. Note that nldd-collection's lanes falls back to its own grid rather than to multicol: that component pages, and multicol redistributes the whole set every time load-more adds to it. */
3942
3976
  'nldd-container': DefineComponent<NLDDContainerProps>;
3943
- /** A text field for a date, with an optional calendar in a popover. The value is always ISO (yyyy-mm-dd); on screen it shows the Dutch notation (dd-mm-yyyy). Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. */
3977
+ /** A text field for a date, with an optional calendar in a popover. The value is always ISO (yyyy-mm-dd); on screen it shows the Dutch notation (dd-mm-yyyy). Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. `value` holds a valid date or nothing, so an empty field and one with text that is no date both read as ''. `validity` tells them apart: `badInput` for text that is no date, `rangeUnderflow` / `rangeOverflow` for a date outside `min` / `max`, and with `range` and `required` `valueMissing` for a period with only a start. A form does not submit then, and nldd-form marks the field invalid. Without a submit, as in a filter that applies at once, the moment is yours: `field.invalid = !field.validity.valid` on `change`, with a message of your own in the nldd-form-field. */
3944
3978
  'nldd-date-field': DefineComponent<NLDDDateFieldProps>;
3945
3979
  /** A calendar for picking a date or a period. The component works on its own (inline on a page, in a filter panel) and also sits in the popover of nldd-date-field. Values are always ISO (yyyy-mm-dd). With `range` the user picks a start and an end date in two steps. */
3946
3980
  'nldd-date-picker': DefineComponent<NLDDDatePickerProps>;
@@ -4077,7 +4111,7 @@ declare module 'vue' {
4077
4111
  'nldd-stacked-split-view': DefineComponent<NLDDStackedSplitViewProps>;
4078
4112
  /** A narrow, page-wide status bar (24px) with a deep background color per variant. Use it for persistent system state: an outage, planned maintenance, a draft view or a recording in progress. The bar deliberately shows no icon and supports text only. The text itself has to name the status ("Storing: …", "Gepland onderhoud …"), so the meaning does not follow from color alone (WCAG 1.4.1). Keep the text short: the bar shows one line and truncates with an ellipsis, certainly on narrower screens. For a long message with a lot of information only the essence belongs in the bar. Point to a separate page or sheet for the rest (through `href` or `button`, for instance), where the user can read on. The whole bar can be clickable: set `href` (renders an `<a>`) or `button` (renders a `<button>`; listen for the native `click` event). Without either the bar is static. On interaction a chevron appears as an affordance. One action per bar at most; several actions, or links in running text, belong in nldd-banner. The bar is the first thing on the screen: above nldd-top-navigation-bar or nldd-top-title-bar, across the whole app, also when a split view shows several panes. It reports the state of the service, not of one page, so it never sits inside the content or below a top bar. Below a top bar it says so in development. role and aria-live are set automatically from the variant: - critical → role="alert" (implies aria-live="assertive"; interrupts the screen reader) - others → role="status" aria-live="polite" Not overridable. If you need a quieter component, pick a different one. Use `critical` only for a real emergency: role="alert" interrupts the screen reader on every change of the content, so do not put text in it that changes regularly (a counting-down timer, for example). */
4079
4113
  'nldd-status-bar': DefineComponent<NLDDStatusBarProps>;
4080
- /** Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status="current"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step 1 is current. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status="past"` or `status="future"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-step-cell`, so a flow reads in one vocabulary whether it runs across or down. Horizontal only. For steps under each other, build an `nldd-list` with an `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. Below the sm breakpoint (a container query, so measured on the component itself rather than on the viewport) it folds into one line of text plus a segmented bar. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. Accessibility: a `nav` with a label, holding a `role="list"` with a `role="listitem"` per step. The current step gets `aria-current="step"`, the only notion WAI-ARIA has for this. "Done" and "still to do" do not exist as ARIA tokens and travel along as visually hidden text instead. */
4114
+ /** Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Other systems call this a stepper or a progress indicator. Mark the step you are on with `status="current"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step 1 is current. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status="past"` or `status="future"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-step-cell`, so a flow reads in one vocabulary whether it runs across or down. Horizontal only. For steps under each other, build an `nldd-list` with an `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. Below the sm breakpoint (a container query, so measured on the component itself rather than on the viewport) it folds into one line of text plus a segmented bar. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. A step that is a link or a button is out of the tab order then: Tab would land on something you cannot see (WCAG 2.4.7). Accessibility: a `nav` with a label, holding a `role="list"` with a `role="listitem"` per step. The current step gets `aria-current="step"`, the only notion WAI-ARIA has for this. "Done" and "still to do" do not exist as ARIA tokens and travel along as visually hidden text instead. */
4081
4115
  'nldd-step-bar': DefineComponent<NLDDStepBarProps>;
4082
4116
  /** One step in an `nldd-step-bar`. `status="current"` marks the step you are on; the parent derives the status of the others and the number of each, which live here as internal state rather than as public API. `past` and `future` override what is derived for this step. */
4083
4117
  'nldd-step-bar-item': DefineComponent<NLDDStepBarItemProps>;
@@ -4104,7 +4138,7 @@ declare module 'vue' {
4104
4138
  /** A hybrid markdown editor built on CodeMirror 6 (via NLDDCodeMirrorElement): the document stays plain markdown text, but formatting is shown inline (bold is bold, headings are larger, links are colored) while the syntax markers stay visible, only dimmed — the iA Writer / Kirby approach. No WYSIWYG tree, so the data stays portable. Default `appearance="simple"` is bare (no frame, no focus ring) for use inside a composition (e.g. a message field) that owns its chrome and focus; the caret is a prominent accent. `appearance="input-field"` adds a framed surface + focus Headless: there is no built-in toolbar. A consumer drives formatting via the command methods (toggleBold/toggleItalic/toggleInlineCode/toggleStrikethrough/ toggleHeading/toggleBulletList/toggleTaskList/toggleQuote/toggleLink/runCommand to toggle, and setHeading/setList for picker-style "set" semantics), reads the active formats with getState(), listens to the nldd-text-editor-state event to render toggle states, and forwards padding clicks with focusFromPoint(). Cmd/Ctrl+B/I/E/K are bound out of the box. With `syntax="hidden"` a task item (`- [ ]`, `- [x]`) reads as a box in the place of its bullet, and like every other mark shows its markdown on the line the caret is on. A click on the box checks or unchecks it without moving the caret. Cmd/Ctrl+Enter does the same for the tasks on the lines of the selection, in both syntax modes. The box is no tab stop: Tab leaves the editor. A screen reader reads "Taak, open" or "Taak, afgerond" in its place. A code block that names its language after the backticks is highlighted in it, as in nldd-code-viewer; the grammar loads with the first such block. Its opening line is the head of the block, with a "Kopieer" button at the right edge that copies the code without its fences and says "Gekopieerd" or "Kopiëren mislukt", as the code viewer does. In an editable editor the button is no tab stop (select and copy is the keyboard route); read-only or disabled it can be focused. Without a secure context there is no button. Commands keep focus on the editor. An inline toggle wraps the selected text (whitespace at its edges stays outside the markers), unwraps a run the caret is in, and with the caret at the very end of a run steps out of it. Bold that a typed space has broken (`**woord **`) keeps its styling while the caret is inside; the space moves outside the markers when the caret leaves. insertAtCursor(text) puts text at the caret and replaceRange(from, to, text) writes at the same clean offsets getSelection() reads. An @-mention typeahead (mentionSource) collapses to an atomic token, further typeahead lists on their own trigger (typeaheads) write what you tell them to, and a W3C-style annotation overlay (annotations) marks ranges with a light tint and a count badge without touching the underlying text. To show the value, render the markdown into nldd-rich-text, which uses the same type, bold and code as the editor. A mention is stored as `[@Name](user:id)`: turn it into `<a href="…" data-mention>Name</a>` (or a `span` when there is no page for the person), without the `@`. A link reads as the same token there; a span keeps the color and the icon without the tint. */
4105
4139
  'nldd-text-editor': DefineComponent<NLDDTextEditorProps>;
4106
4140
  'nldd-text-field': DefineComponent<NLDDTextFieldProps>;
4107
- /** A text field for a time. The value is always 24-hour `HH:mm`, which is how Dutch shows it too, so unlike nldd-date-field there is nothing to convert. Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. What you do in the picker is a preview until you leave it. The field shows the time right away but commits it on close. "Klaar" and Enter keep the choice, and so does a click outside once you have picked something. Cancel and Escape put the old time back. On an empty field the wheels open at `min`, or otherwise at the current time rounded to `step`, which does not fill in the field yet. */
4141
+ /** A text field for a time. The value is always 24-hour `HH:mm`, which is how Dutch shows it too, so unlike nldd-date-field there is nothing to convert. Typing is not masked: input is accepted generously and normalized only when the field is left. Error messages belong to nldd-form-field, not here. This field reflects only `invalid` / `valid`, like nldd-text-field. `value` holds a valid time or nothing, so an empty field and one with text that is no time both read as ''. `validity` tells them apart: `badInput` for text that is no time, `rangeUnderflow` / `rangeOverflow` for a time outside `min` / `max`. A form does not submit then, and nldd-form marks the field invalid. Without a submit, as in a filter that applies at once, the moment is yours: `field.invalid = !field.validity.valid` on `change`, with a message of your own in the nldd-form-field. What you do in the picker is a preview until you leave it. The field shows the time right away but commits it on close. "Klaar" and Enter keep the choice, and so does a click outside once you have picked something. Cancel and Escape put the old time back. On an empty field the wheels open at `min`, or otherwise at the current time rounded to `step`, which does not fill in the field yet. */
4108
4142
  'nldd-time-field': DefineComponent<NLDDTimeFieldProps>;
4109
4143
  /** Two columns, hours and minutes, that slide like a wheel past the selection in the middle. The component works on its own (inline on a page, in a filter panel) and also sits in the popover of nldd-time-field. Values are always 24-hour `HH:mm`. Scrolling is choosing: whatever comes to rest in the middle is the value. The keyboard drives that same selection, because that is what a wheel is: hour and minute are each a spinbutton. The columns underneath are aria-hidden, so the same values are not read out twice. */
4110
4144
  'nldd-time-picker': DefineComponent<NLDDTimePickerProps>;
@@ -4122,7 +4156,9 @@ declare module 'vue' {
4122
4156
  'nldd-token-field': DefineComponent<NLDDTokenFieldProps>;
4123
4157
  /** A row of controls that belong to a whole screen or pane, with an overflow menu for what does not fit. The toolbar measures itself: as the row runs out of room, items move into that menu, the lowest `priority` first, and items that share a priority move together. So the order in the HTML says where an item sits, and `priority` says how long it stays. An item holding a control with its own overflow, such as nldd-tab-bar, first narrows down when its turn comes, so that control moves what does not fit into its own menu, and only then goes into the toolbar's menu. Every item carries its own alternative for the menu, an nldd-menu-item in its `overflow` slot. Without one the action is simply gone once the item overflows, which on a wide screen you never see; the item warns about it in development. The toolbar's own `overflow` slot holds the actions that live in the menu at every width. */
4124
4158
  'nldd-toolbar': DefineComponent<NLDDToolbarProps>;
4159
+ /** One control in an nldd-toolbar, with its alternative for the overflow menu. */
4125
4160
  'nldd-toolbar-item': DefineComponent<NLDDToolbarItemProps>;
4161
+ /** The title of an nldd-toolbar, with optional media before it and an action after it. */
4126
4162
  'nldd-toolbar-title': DefineComponent<NLDDToolbarTitleProps>;
4127
4163
  /** A wrapper that shows a tooltip on hover or focus of its child element. It uses `display: contents`, so it does not affect the child's layout. */
4128
4164
  'nldd-tooltip': DefineComponent<NLDDTooltipProps>;
@@ -1,4 +1,9 @@
1
1
  import type { LitElement } from 'lit';
2
+ /** Flags a component raises itself, with the message that goes with them. */
3
+ export interface OwnValidity {
4
+ flags: ValidityStateFlags;
5
+ message: string;
6
+ }
2
7
  /** What ElementInternals accepts as a form value. */
3
8
  export type FormValue = string | File | FormData | null;
4
9
  type Constructor<T = Record<string, unknown>> = abstract new (...args: any[]) => T;
@@ -13,6 +18,8 @@ export interface FormAssociatedElement {
13
18
  validationTarget(): HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null;
14
19
  /** Where an invalid submit points its message and puts the focus. */
15
20
  validationAnchor(): HTMLElement | undefined;
21
+ /** What the component knows is wrong beyond its native control, or null. */
22
+ ownValidity(): OwnValidity | null;
16
23
  /** A reason of your own, on top of the native ones. Empty clears it. */
17
24
  setCustomValidity(message: string): void;
18
25
  commitValidity(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"form-associated-mixin.d.ts","sourceRoot":"","sources":["../../src/utilities/form-associated-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAW1D,qDAAqD;AACrD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC;AAIxD,KAAK,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAEnF,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACrC,+EAA+E;IAC/E,SAAS,IAAI,SAAS,CAAC;IACvB,qFAAqF;IACrF,SAAS,IAAI,SAAS,GAAG,SAAS,CAAC;IACnC,eAAe,IAAI,IAAI,CAAC;IACxB,wEAAwE;IACxE,gBAAgB,IAAI,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,IAAI,CAAC;IACtF,qEAAqE;IACrE,gBAAgB,IAAI,WAAW,GAAG,SAAS,CAAC;IAC5C,wEAAwE;IACxE,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,cAAc,IAAI,IAAI,CAAC;CACvB;AAED;;;;;;;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ACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC,GAoI/B,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CACjG"}
@@ -77,6 +77,13 @@ export function FormAssociated(Base) {
77
77
  const target = this.validationTarget();
78
78
  return target && !target.hidden ? target : undefined;
79
79
  }
80
+ /**
81
+ * What the component knows is wrong and its native control does not, such
82
+ * as typed text that is no date in a text input. Override; null is valid.
83
+ */
84
+ ownValidity() {
85
+ return null;
86
+ }
80
87
  /**
81
88
  * A reason the host is invalid that no attribute can express: a server that
82
89
  * refused the value, or an nldd-validation-list whose rule it fails. Kept
@@ -97,7 +104,8 @@ export function FormAssociated(Base) {
97
104
  commitValidity() {
98
105
  const target = this.validationTarget();
99
106
  const custom = this._customValidity;
100
- if (!target && !custom) {
107
+ const own = this.ownValidity();
108
+ if (!target && !custom && !own) {
101
109
  this.internals.setValidity({});
102
110
  return;
103
111
  }
@@ -110,6 +118,10 @@ export function FormAssociated(Base) {
110
118
  }
111
119
  message = target.validationMessage;
112
120
  }
121
+ if (own) {
122
+ Object.assign(flags, own.flags);
123
+ message = own.message;
124
+ }
113
125
  if (custom) {
114
126
  flags.customError = true;
115
127
  // The custom reason first: it is the one this system wrote, and the
@@ -1 +1 @@
1
- {"version":3,"file":"form-associated-mixin.js","sourceRoot":"","sources":["../../src/utilities/form-associated-mixin.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,cAAc,GAAG;IACtB,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB;IAC/E,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc;CACZ,CAAC;AAyB3D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,cAAc,CAAoC,IAAO;IACxE,MAAe,mBAAoB,SAAQ,IAAI;QAK9C,YAAY,GAAG,IAAW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AM,MAAM,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACvC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACrC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;gBAC/B,OAAO;YACR,CAAC;YACD,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACpD,CAAC;QAID,oBAAoB,CAAC,QAAiB;YACrC,uEAAuE;YACvE,6DAA6D;YAC5D,IAAyC,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAChE,CAAC;;IA/HM,kCAAc,GAAG,IAAI,AAAP,CAAQ;IAkI9B,OAAO,mBAA0F,CAAC;AACnG,CAAC"}
@@ -9,10 +9,21 @@
9
9
  * paths never do. There is no way to switch the hint off: a subdomain is
10
10
  * another website too.
11
11
  *
12
+ * A link with `download` says it downloads the file: a screen reader does not
13
+ * tell on its own. Only on the page's own origin, since a browser ignores
14
+ * `download` for another one and goes there instead; and that is all it says,
15
+ * since a download opens no tab.
16
+ *
12
17
  * Returns null when the link needs no hint.
13
18
  */
14
19
  export type LinkHintKey = 'link-hint-external-lowercase-label' | 'link-hint-new-tab-lowercase-label' | 'link-hint-external-new-tab-lowercase-label';
20
+ export type DownloadLinkHintKey = LinkHintKey | 'link-hint-download-lowercase-label';
15
21
  export declare function linkHintKey(href: string | null | undefined, target: string | null | undefined): LinkHintKey | null;
22
+ /** The hint of a link that may carry `download`, for the components that take it. */
23
+ export declare function downloadLinkHintKey(href: string | null | undefined, target: string | null | undefined, download: string | null | undefined): DownloadLinkHintKey | null;
16
24
  /** Whether `href` points at another origin than the page it is on. */
17
25
  export declare function isExternalHref(href: string): boolean;
26
+ /** In development, says once per element that `target` does nothing on a
27
+ * download link: the file is saved, no tab opens. */
28
+ export declare function warnDownloadTarget(element: Element, download: string | null | undefined, target: string | null | undefined): void;
18
29
  //# sourceMappingURL=link-hint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-hint.d.ts","sourceRoot":"","sources":["../../src/utilities/link-hint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,WAAW,GAAG,oCAAoC,GAAG,mCAAmC,GAAG,4CAA4C,CAAC;AAEpJ,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAQlH;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAUpD"}
1
+ {"version":3,"file":"link-hint.d.ts","sourceRoot":"","sources":["../../src/utilities/link-hint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,WAAW,GAAG,oCAAoC,GAAG,mCAAmC,GAAG,4CAA4C,CAAC;AACpJ,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,oCAAoC,CAAC;AAErF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAQlH;AAED,qFAAqF;AACrF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,mBAAmB,GAAG,IAAI,CAGvK;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAUpD;AAID;sDACsD;AACtD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAIjI"}
@@ -11,6 +11,12 @@ export function linkHintKey(href, target) {
11
11
  return 'link-hint-new-tab-lowercase-label';
12
12
  return null;
13
13
  }
14
+ /** The hint of a link that may carry `download`, for the components that take it. */
15
+ export function downloadLinkHintKey(href, target, download) {
16
+ if (href && download !== undefined && download !== null && !isExternalHref(href))
17
+ return 'link-hint-download-lowercase-label';
18
+ return linkHintKey(href, target);
19
+ }
14
20
  /** Whether `href` points at another origin than the page it is on. */
15
21
  export function isExternalHref(href) {
16
22
  if (typeof document === 'undefined' || typeof location === 'undefined')
@@ -26,4 +32,13 @@ export function isExternalHref(href) {
26
32
  return false;
27
33
  return url.origin !== location.origin;
28
34
  }
35
+ const warnedDownloadTarget = new WeakSet();
36
+ /** In development, says once per element that `target` does nothing on a
37
+ * download link: the file is saved, no tab opens. */
38
+ export function warnDownloadTarget(element, download, target) {
39
+ if (!import.meta.env?.DEV || download === undefined || download === null || !target || target === '_self' || warnedDownloadTarget.has(element))
40
+ return;
41
+ warnedDownloadTarget.add(element);
42
+ console.warn(`<${element.localName}>: \`target="${target}"\` does nothing with \`download\`, which saves the file instead of opening it. Remove one of the two.`);
43
+ }
29
44
  //# sourceMappingURL=link-hint.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-hint.js","sourceRoot":"","sources":["../../src/utilities/link-hint.ts"],"names":[],"mappings":"AAeA,MAAM,UAAU,WAAW,CAAC,IAA+B,EAAE,MAAiC;IAC7F,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IACvB,MAAM,QAAQ,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACtC,MAAM,MAAM,GAAG,MAAM,KAAK,QAAQ,CAAC;IACnC,IAAI,QAAQ,IAAI,MAAM;QAAE,OAAO,4CAA4C,CAAC;IAC5E,IAAI,QAAQ;QAAE,OAAO,oCAAoC,CAAC;IAC1D,IAAI,MAAM;Q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oCAAoC,CAAC;IAC9H,OAAO,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAClC,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,cAAc,CAAC,IAAY;IAC1C,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,QAAQ,KAAK,WAAW;QAAE,OAAO,KAAK,CAAC;IACrF,IAAI,GAAQ,CAAC;IACb,IAAI,CAAC;QACJ,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,KAAK,CAAC;IACd,CAAC;IACD,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,CAAC;AACvC,CAAC;AAED,MAAM,oBAAoB,GAAG,IAAI,OAAO,EAAW,CAAC;AAEpD;sDACsD;AACtD,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,QAAmC,EAAE,MAAiC;IAC1H,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,IAAI,CAAC,MAAM,IAAI,MAAM,KAAK,OAAO,IAAI,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC;QAAE,OAAO;IACvJ,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,SAAS,gBAAgB,MAAM,wGAAwG,CAAC,CAAC;AACnK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nldd/design-system",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Designsysteem voor de Nederlandse Digitale Dienst",
5
5
  "type": "module",
6
6
  "main": "dist/components/components.js",
@@ -590,7 +590,7 @@
590
590
  "svgo": "^4.1.0",
591
591
  "typescript": "^5.3.0",
592
592
  "typescript-eslint": "^8.58.0",
593
- "vite": "8.3.4",
593
+ "vite": "8.3.5",
594
594
  "vitest": "5.0.5",
595
595
  "vue": "^3.5.40",
596
596
  "vue-tsc": "^3.3.7"