@nldd/design-system 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/NOTICES.md +1 -1
  2. package/custom-elements.json +665 -37
  3. package/dist/components/actions/button/button.d.ts +1 -1
  4. package/dist/components/actions/button/button.d.ts.map +1 -1
  5. package/dist/components/actions/button/button.js +10 -1
  6. package/dist/components/actions/button/button.js.map +1 -1
  7. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  8. package/dist/components/actions/button/button.template.js +2 -2
  9. package/dist/components/actions/button/button.template.js.map +1 -1
  10. package/dist/components/actions/button-group/button-group.d.ts +8 -3
  11. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  12. package/dist/components/actions/button-group/button-group.js +32 -13
  13. package/dist/components/actions/button-group/button-group.js.map +1 -1
  14. package/dist/components/actions/icon-button/icon-button.d.ts +1 -1
  15. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  16. package/dist/components/actions/icon-button/icon-button.js +10 -1
  17. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  18. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.template.js +2 -2
  20. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  21. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  22. package/dist/components/actions/menu/menu-item.js +3 -0
  23. package/dist/components/actions/menu/menu-item.js.map +1 -1
  24. package/dist/components/actions/menu/menu.d.ts +25 -0
  25. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  26. package/dist/components/actions/menu/menu.i18n.d.ts +2 -0
  27. package/dist/components/actions/menu/menu.i18n.d.ts.map +1 -1
  28. package/dist/components/actions/menu/menu.i18n.js +4 -0
  29. package/dist/components/actions/menu/menu.i18n.js.map +1 -1
  30. package/dist/components/actions/menu/menu.js +54 -2
  31. package/dist/components/actions/menu/menu.js.map +1 -1
  32. package/dist/components/components.js +2019 -563
  33. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  34. package/dist/components/content/code-viewer/code-viewer.js +3 -0
  35. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  36. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  37. package/dist/components/content/icon/icon-aliases.js +2 -0
  38. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  39. package/dist/components/content/rich-text/rich-text.d.ts +4 -1
  40. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  41. package/dist/components/content/rich-text/rich-text.js +4 -1
  42. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  43. package/dist/components/content/title/title.d.ts +8 -0
  44. package/dist/components/content/title/title.d.ts.map +1 -1
  45. package/dist/components/content/title/title.js +8 -0
  46. package/dist/components/content/title/title.js.map +1 -1
  47. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  48. package/dist/components/content/title/title.styles.js +13 -0
  49. package/dist/components/content/title/title.styles.js.map +1 -1
  50. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  51. package/dist/components/content/tooltip/tooltip.js +4 -1
  52. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  53. package/dist/components/{decorate-x12uDAK4.js → decorate-CzRe1eif.js} +1 -1
  54. package/dist/components/{with-translations-DLzmBSkU.js → defer-focus-DIPAUUJa.js} +34 -3
  55. package/dist/components/{dev-checks-BgrW077W.js → dev-checks-tdnaA2UV.js} +16 -1
  56. package/dist/components/{dist-BaLc58I_.js → dist-245LaK9m.js} +1 -1
  57. package/dist/components/{dist-DgjvHvsN.js → dist-4g23YHP0.js} +1 -1
  58. package/dist/components/{dist-YYLChwRq.js → dist-Bf823YyL.js} +1 -1
  59. package/dist/components/{dist-Bm3708s5.js → dist-CeMOOqgP.js} +13 -1
  60. package/dist/components/{dist-CJ9uLG0u.js → dist-DFjwTlJV.js} +1 -1
  61. package/dist/components/forms/form-field/form-field.d.ts +2 -2
  62. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  63. package/dist/components/forms/form-field/form-field.js +4 -3
  64. package/dist/components/forms/form-field/form-field.js.map +1 -1
  65. package/dist/components/forms/form-field/form-field.template.d.ts.map +1 -1
  66. package/dist/components/forms/form-field/form-field.template.js +3 -2
  67. package/dist/components/forms/form-field/form-field.template.js.map +1 -1
  68. package/dist/components/forms/validation-list/validation-list.d.ts +26 -0
  69. package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
  70. package/dist/components/forms/validation-list/validation-list.i18n.d.ts +12 -0
  71. package/dist/components/forms/validation-list/validation-list.i18n.d.ts.map +1 -0
  72. package/dist/components/forms/validation-list/validation-list.i18n.js +11 -0
  73. package/dist/components/forms/validation-list/validation-list.i18n.js.map +1 -0
  74. package/dist/components/forms/validation-list/validation-list.js +74 -2
  75. package/dist/components/forms/validation-list/validation-list.js.map +1 -1
  76. package/dist/components/{icon-IgCyk9ui.js → icon-BPNDyhu9.js} +2 -1
  77. package/dist/components/{icon-button-B5tH4b3c.js → icon-button-Dbo_SGor.js} +46 -15
  78. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  79. package/dist/components/inputs/checkbox/checkbox.js +3 -0
  80. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  81. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  82. package/dist/components/inputs/checkbox-field/checkbox-field.js +3 -0
  83. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  84. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  85. package/dist/components/inputs/code-editor/code-editor.styles.js +36 -13
  86. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  87. package/dist/components/inputs/combo-box/combo-box.d.ts +4 -0
  88. package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
  89. package/dist/components/inputs/combo-box/combo-box.js +12 -0
  90. package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
  91. package/dist/components/inputs/date-field/date-field.i18n.js +4 -4
  92. package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
  93. package/dist/components/inputs/date-picker/date-picker.d.ts +3 -3
  94. package/dist/components/inputs/date-picker/date-picker.d.ts.map +1 -1
  95. package/dist/components/inputs/date-picker/date-picker.i18n.d.ts +2 -2
  96. package/dist/components/inputs/date-picker/date-picker.i18n.js +2 -2
  97. package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
  98. package/dist/components/inputs/date-picker/date-picker.js +3 -0
  99. package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
  100. package/dist/components/inputs/date-picker/date-picker.template.js +2 -2
  101. package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
  102. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  103. package/dist/components/inputs/dropdown/dropdown.js +5 -1
  104. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  105. package/dist/components/inputs/file-field/file-field.d.ts +147 -17
  106. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  107. package/dist/components/inputs/file-field/file-field.drop.d.ts +16 -1
  108. package/dist/components/inputs/file-field/file-field.drop.d.ts.map +1 -1
  109. package/dist/components/inputs/file-field/file-field.drop.js +33 -0
  110. package/dist/components/inputs/file-field/file-field.drop.js.map +1 -1
  111. package/dist/components/inputs/file-field/file-field.i18n.d.ts +11 -1
  112. package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
  113. package/dist/components/inputs/file-field/file-field.i18n.js +16 -6
  114. package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
  115. package/dist/components/inputs/file-field/file-field.js +419 -74
  116. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  117. package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
  118. package/dist/components/inputs/file-field/file-field.styles.js +235 -91
  119. package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
  120. package/dist/components/inputs/file-field/file-field.template.d.ts +2 -1
  121. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  122. package/dist/components/inputs/file-field/file-field.template.js +282 -83
  123. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  124. package/dist/components/inputs/file-field/file-field.truncate.d.ts +17 -0
  125. package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -1
  126. package/dist/components/inputs/file-field/file-field.truncate.js +26 -3
  127. package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -1
  128. package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
  129. package/dist/components/inputs/number-field/number-field.js +3 -0
  130. package/dist/components/inputs/number-field/number-field.js.map +1 -1
  131. package/dist/components/inputs/radio-button-group/radio-button-group.d.ts.map +1 -1
  132. package/dist/components/inputs/radio-button-group/radio-button-group.js +3 -0
  133. package/dist/components/inputs/radio-button-group/radio-button-group.js.map +1 -1
  134. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  135. package/dist/components/inputs/search-field/search-field.js +3 -0
  136. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  137. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  138. package/dist/components/inputs/segmented-control/segmented-control.js +5 -0
  139. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  140. package/dist/components/inputs/slider/slider.d.ts +32 -10
  141. package/dist/components/inputs/slider/slider.d.ts.map +1 -1
  142. package/dist/components/inputs/slider/slider.js +113 -34
  143. package/dist/components/inputs/slider/slider.js.map +1 -1
  144. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
  145. package/dist/components/inputs/slider/slider.styles.js +22 -13
  146. package/dist/components/inputs/slider/slider.styles.js.map +1 -1
  147. package/dist/components/inputs/slider/slider.template.d.ts.map +1 -1
  148. package/dist/components/inputs/slider/slider.template.js +12 -4
  149. package/dist/components/inputs/slider/slider.template.js.map +1 -1
  150. package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
  151. package/dist/components/inputs/stepper/stepper.js +3 -0
  152. package/dist/components/inputs/stepper/stepper.js.map +1 -1
  153. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  154. package/dist/components/inputs/switch/switch.js +3 -0
  155. package/dist/components/inputs/switch/switch.js.map +1 -1
  156. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  157. package/dist/components/inputs/switch-field/switch-field.js +3 -0
  158. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  159. package/dist/components/inputs/text-editor/text-editor.code-copy.js +2 -2
  160. package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
  161. package/dist/components/inputs/text-editor/text-editor.cursor.d.ts.map +1 -1
  162. package/dist/components/inputs/text-editor/text-editor.cursor.js +1 -11
  163. package/dist/components/inputs/text-editor/text-editor.cursor.js.map +1 -1
  164. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  165. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -1
  166. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +127 -11
  167. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -1
  168. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +3 -1
  169. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
  170. package/dist/components/inputs/text-editor/text-editor.i18n.js +5 -1
  171. package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
  172. package/dist/components/inputs/text-editor/text-editor.js +7 -5
  173. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  174. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts +3 -0
  175. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  176. package/dist/components/inputs/text-editor/text-editor.markdown.js +9 -1
  177. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  178. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +7 -2
  179. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
  180. package/dist/components/inputs/text-editor/text-editor.mentions.js +47 -145
  181. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  182. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  183. package/dist/components/inputs/text-editor/text-editor.styles.js +187 -2
  184. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  185. package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
  186. package/dist/components/inputs/text-field/text-field.js +3 -0
  187. package/dist/components/inputs/text-field/text-field.js.map +1 -1
  188. package/dist/components/inputs/time-field/time-field.i18n.js +3 -3
  189. package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
  190. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  191. package/dist/components/inputs/time-picker/time-picker.js +3 -0
  192. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  193. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  194. package/dist/components/inputs/toggle-button/toggle-button.js +3 -0
  195. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  196. package/dist/components/inputs/toggle-button-group/toggle-button-group.d.ts.map +1 -1
  197. package/dist/components/inputs/toggle-button-group/toggle-button-group.js +3 -0
  198. package/dist/components/inputs/toggle-button-group/toggle-button-group.js.map +1 -1
  199. package/dist/components/inputs/token-field/token-field.d.ts +4 -0
  200. package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
  201. package/dist/components/inputs/token-field/token-field.i18n.d.ts +1 -1
  202. package/dist/components/inputs/token-field/token-field.i18n.js +1 -1
  203. package/dist/components/inputs/token-field/token-field.i18n.js.map +1 -1
  204. package/dist/components/inputs/token-field/token-field.js +12 -0
  205. package/dist/components/inputs/token-field/token-field.js.map +1 -1
  206. package/dist/components/inputs/token-field/token-field.template.js +1 -1
  207. package/dist/components/inputs/token-field/token-field.template.js.map +1 -1
  208. package/dist/components/{just-in-time-education.i18n-BJ5ovWVB.js → just-in-time-education.i18n-BgCd3s-c.js} +47 -22
  209. package/dist/components/layout/collection/collection.d.ts +4 -0
  210. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  211. package/dist/components/layout/collection/collection.js +56 -8
  212. package/dist/components/layout/collection/collection.js.map +1 -1
  213. package/dist/components/layout/collection/collection.template.js +1 -1
  214. package/dist/components/layout/collection/collection.template.js.map +1 -1
  215. package/dist/components/layout/page-footer/page-footer.d.ts +2 -0
  216. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  217. package/dist/components/layout/page-footer/page-footer.js +7 -0
  218. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  219. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  220. package/dist/components/layout/page-footer/page-footer.styles.js +22 -8
  221. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  222. package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
  223. package/dist/components/layout/page-footer/page-footer.template.js +2 -0
  224. package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
  225. package/dist/components/layout/popover/popover.d.ts +14 -4
  226. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  227. package/dist/components/layout/popover/popover.js +20 -5
  228. package/dist/components/layout/popover/popover.js.map +1 -1
  229. package/dist/components/layout/task-board/task-board.d.ts +1 -1
  230. package/dist/components/layout/task-board/task-board.d.ts.map +1 -1
  231. package/dist/components/layout/task-board/task-board.js +8 -4
  232. package/dist/components/layout/task-board/task-board.js.map +1 -1
  233. package/dist/components/{list.i18n-nFB6dZpc.js → list.i18n-CKqbhFQ_.js} +1 -1
  234. package/dist/components/lists-and-tables/cells/cell/cell.d.ts +2 -0
  235. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  236. package/dist/components/lists-and-tables/cells/cell/cell.js +2 -1
  237. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  238. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +2 -0
  239. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  240. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +2 -1
  241. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  242. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -0
  243. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  244. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -1
  245. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  246. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +7 -2
  247. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  248. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +3 -3
  249. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  250. package/dist/components/lists-and-tables/list/list.i18n.d.ts +1 -1
  251. package/dist/components/lists-and-tables/list/list.i18n.js +1 -1
  252. package/dist/components/lists-and-tables/list/list.js +1 -1
  253. package/dist/components/lists-and-tables/list-item/list-item.d.ts +8 -1
  254. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  255. package/dist/components/lists-and-tables/list-item/list-item.js +21 -1
  256. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  257. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +1 -1
  258. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  259. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +11 -2
  260. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  261. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  262. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  263. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +1 -2
  264. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  265. package/dist/components/lists-and-tables/table/table.d.ts +24 -0
  266. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  267. package/dist/components/lists-and-tables/table/table.js +52 -4
  268. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  269. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +4 -4
  270. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  271. package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.d.ts +1 -1
  272. package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js +1 -1
  273. package/dist/components/navigation/document-tab-bar/document-tab-bar.i18n.js.map +1 -1
  274. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +5 -2
  275. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  276. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
  277. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
  278. package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
  279. package/dist/components/navigation/link/link.styles.js +0 -4
  280. package/dist/components/navigation/link/link.styles.js.map +1 -1
  281. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  282. package/dist/components/navigation/menu-bar/menu-bar.js +4 -0
  283. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  284. package/dist/components/navigation/menu-bar/menu-bar.styles.d.ts.map +1 -1
  285. package/dist/components/navigation/menu-bar/menu-bar.styles.js +9 -0
  286. package/dist/components/navigation/menu-bar/menu-bar.styles.js.map +1 -1
  287. package/dist/components/navigation/menu-bar/menu-bar.template.d.ts.map +1 -1
  288. package/dist/components/navigation/menu-bar/menu-bar.template.js +25 -19
  289. package/dist/components/navigation/menu-bar/menu-bar.template.js.map +1 -1
  290. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  291. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +10 -0
  292. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  293. package/dist/components/navigation/pagination/pagination.i18n.d.ts +3 -3
  294. package/dist/components/navigation/pagination/pagination.i18n.js +3 -3
  295. package/dist/components/navigation/pagination/pagination.i18n.js.map +1 -1
  296. package/dist/components/navigation/pagination/pagination.template.js +3 -3
  297. package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
  298. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  299. package/dist/components/navigation/tab-bar/tab-bar.js +3 -0
  300. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  301. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +11 -0
  302. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  303. package/dist/components/navigation/top-title-bar/top-title-bar.js +37 -0
  304. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  305. package/dist/components/navigation/top-title-bar/top-title-bar.template.js +1 -1
  306. package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
  307. package/dist/components/{nl.generated-Ny3Kwppu.js → nl.generated-D-8UF1iR.js} +3 -2
  308. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +1 -1
  309. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +3 -3
  310. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  311. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +2 -2
  312. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +2 -2
  313. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
  314. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +9 -2
  315. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
  316. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -1
  317. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
  318. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
  319. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +9 -6
  320. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  321. package/dist/components/{visibility-mixin-DcwzF0_a.js → visibility-mixin-CNCT26tu.js} +1 -1
  322. package/dist/css/rich-text.css +5 -0
  323. package/dist/nldd.min.js +1394 -898
  324. package/dist/translations/en-US.d.ts.map +1 -1
  325. package/dist/translations/en-US.js +44 -22
  326. package/dist/translations/en-US.js.map +1 -1
  327. package/dist/translations/fy.d.ts.map +1 -1
  328. package/dist/translations/fy.js +44 -22
  329. package/dist/translations/fy.js.map +1 -1
  330. package/dist/translations/nl.generated.d.ts +32 -10
  331. package/dist/translations/nl.generated.d.ts.map +1 -1
  332. package/dist/translations/nl.generated.js +2 -0
  333. package/dist/translations/nl.generated.js.map +1 -1
  334. package/dist/translations/pap-AW.d.ts.map +1 -1
  335. package/dist/translations/pap-AW.js +44 -22
  336. package/dist/translations/pap-AW.js.map +1 -1
  337. package/dist/translations/pap-CW.d.ts.map +1 -1
  338. package/dist/translations/pap-CW.js +44 -22
  339. package/dist/translations/pap-CW.js.map +1 -1
  340. package/dist/types/vue.d.ts +47 -29
  341. package/dist/utilities/carried-context.d.ts +14 -3
  342. package/dist/utilities/carried-context.d.ts.map +1 -1
  343. package/dist/utilities/carried-context.js +12 -5
  344. package/dist/utilities/carried-context.js.map +1 -1
  345. package/dist/utilities/defer-focus.d.ts +24 -0
  346. package/dist/utilities/defer-focus.d.ts.map +1 -0
  347. package/dist/utilities/defer-focus.js +33 -0
  348. package/dist/utilities/defer-focus.js.map +1 -0
  349. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  350. package/dist/utilities/dev-rules.generated.js +15 -0
  351. package/dist/utilities/dev-rules.generated.js.map +1 -1
  352. package/dist/utilities/file-drag-and-drop.d.ts +18 -0
  353. package/dist/utilities/file-drag-and-drop.d.ts.map +1 -0
  354. package/dist/utilities/file-drag-and-drop.js +31 -0
  355. package/dist/utilities/file-drag-and-drop.js.map +1 -0
  356. package/dist/utilities/list-items.d.ts +10 -0
  357. package/dist/utilities/list-items.d.ts.map +1 -0
  358. package/dist/utilities/list-items.js +21 -0
  359. package/dist/utilities/list-items.js.map +1 -0
  360. package/dist/utilities/popover-target.d.ts +14 -0
  361. package/dist/utilities/popover-target.d.ts.map +1 -0
  362. package/dist/utilities/popover-target.js +21 -0
  363. package/dist/utilities/popover-target.js.map +1 -0
  364. package/dist/utilities/popup-anchor-controller.d.ts.map +1 -1
  365. package/dist/utilities/popup-anchor-controller.js +6 -1
  366. package/dist/utilities/popup-anchor-controller.js.map +1 -1
  367. package/dist/utilities/render-marked.d.ts +2 -0
  368. package/dist/utilities/render-marked.d.ts.map +1 -1
  369. package/dist/utilities/render-marked.js +4 -0
  370. package/dist/utilities/render-marked.js.map +1 -1
  371. package/dist/utilities/row-header-mixin.d.ts +31 -0
  372. package/dist/utilities/row-header-mixin.d.ts.map +1 -0
  373. package/dist/utilities/row-header-mixin.js +44 -0
  374. package/dist/utilities/row-header-mixin.js.map +1 -0
  375. package/lint/data.generated.json +1 -1
  376. package/package.json +2 -1
@@ -363,7 +363,7 @@ declare module 'vue' {
363
363
  'popupType'?: NLDDButton['popupType'];
364
364
  /** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
365
365
  'type'?: NLDDButton['type'];
366
- /** ID of a popover element this button invokes; forwarded to the inner button. Use the popoverTargetElement property instead when the popover lives in another tree. */
366
+ /** ID of a popover element this button invokes, looked up in the tree of this button; the inner button gets the element. Use the popoverTargetElement property instead when the popover lives in another tree. */
367
367
  'popovertarget'?: NLDDButton['popovertarget'];
368
368
  /** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
369
369
  'loading'?: NLDDButton['loading'];
@@ -500,6 +500,8 @@ declare module 'vue' {
500
500
  'vertical-alignment'?: NLDDCell['verticalAlignment'];
501
501
  /** Vertical alignment of slotted content (default: 'center') */
502
502
  'verticalAlignment'?: NLDDCell['verticalAlignment'];
503
+ 'row-header'?: NLDDCell['rowHeader'];
504
+ 'rowHeader'?: NLDDCell['rowHeader'];
503
505
  'hide-below'?: NLDDCell['hideBelow'];
504
506
  'hideBelow'?: NLDDCell['hideBelow'];
505
507
  'hide-above'?: NLDDCell['hideAbove'];
@@ -1033,6 +1035,8 @@ declare module 'vue' {
1033
1035
  'vertical-alignment'?: NLDDDescriptionCell['verticalAlignment'];
1034
1036
  /** Vertical alignment (default: 'center') */
1035
1037
  'verticalAlignment'?: NLDDDescriptionCell['verticalAlignment'];
1038
+ 'row-header'?: NLDDDescriptionCell['rowHeader'];
1039
+ 'rowHeader'?: NLDDDescriptionCell['rowHeader'];
1036
1040
  'hide-below'?: NLDDDescriptionCell['hideBelow'];
1037
1041
  'hideBelow'?: NLDDDescriptionCell['hideBelow'];
1038
1042
  'hide-above'?: NLDDDescriptionCell['hideAbove'];
@@ -1049,7 +1053,7 @@ declare module 'vue' {
1049
1053
  'accessibleLabel'?: NLDDDocumentTabBar['accessibleLabel'];
1050
1054
  /** Renders a nav landmark instead of tablist; use when items have hrefs */
1051
1055
  'navigation'?: NLDDDocumentTabBar['navigation'];
1052
- /** Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.overflow-action' (default: 'Meer') */
1056
+ /** Translation overrides; unset keys fall back to Dutch. Available keys: 'components.document-tab-bar.show-more-tabs-action' (default: 'Toon meer tabbladen') */
1053
1057
  'translations'?: NLDDDocumentTabBar['translations'];
1054
1058
  /** Fired when a tab is selected; detail: { item } */
1055
1059
  'onTabchange'?: (event: CustomEvent) => void;
@@ -1125,8 +1129,10 @@ declare module 'vue' {
1125
1129
  'size'?: NLDDFileField['size'];
1126
1130
  /** Comma-separated list of accepted file types, forwarded to the input (e.g. ".pdf,image/*") */
1127
1131
  'accept'?: NLDDFileField['accept'];
1128
- /** Allows choosing more than one file */
1132
+ /** Allows choosing more than one file, and dropping a folder */
1129
1133
  'multiple'?: NLDDFileField['multiple'];
1134
+ /** Offers a folder beside files, since one dialog picks either: choosing and changing open a menu with both, and an area shows a button for each. Takes several files, as `multiple` does */
1135
+ 'directory'?: NLDDFileField['directory'];
1130
1136
  /** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
1131
1137
  'accessible-label'?: NLDDFileField['accessibleLabel'];
1132
1138
  /** Accessible label forwarded to the inner input. Set automatically by nldd-form-field. */
@@ -1148,10 +1154,12 @@ declare module 'vue' {
1148
1154
  /** Override translation keys; unset keys fall back to Dutch */
1149
1155
  'translations'?: NLDDFileField['translations'];
1150
1156
  'files'?: NLDDFileField['files'];
1157
+ /** Where each file sat: its name, or for a file from a dropped folder the path from that folder down ("site/css/main.css"). Same order as `files`. */
1158
+ 'paths'?: NLDDFileField['paths'];
1151
1159
  /** Set by nldd-form-field. A consumer never writes this. */
1152
1160
  'describedByElements'?: NLDDFileField['describedByElements'];
1153
1161
  'internals'?: NLDDFileField['internals'];
1154
- /** When the chosen files change, including a clear; detail: { files: File[] } */
1162
+ /** When the chosen files change, including a clear; detail: { files: File[], paths: string[] } */
1155
1163
  'onChange'?: (event: CustomEvent) => void;
1156
1164
  };
1157
1165
 
@@ -1196,11 +1204,11 @@ declare module 'vue' {
1196
1204
  'label-alignment'?: NLDDFormField['labelAlignment'];
1197
1205
  /** 'top' (default) | 'right' | 'left'. A value of its own always wins over the inherited form-label-alignment. */
1198
1206
  'labelAlignment'?: NLDDFormField['labelAlignment'];
1199
- /** Field label text. Omit for no-label layout. */
1207
+ /** Field label text. Omit for no-label layout. Supports **bold** markdown syntax, for the word to type in a confirmation; the accessible name of the control takes the text without the markers. */
1200
1208
  'label'?: NLDDFormField['label'];
1201
- /** Short supporting text below the label. Same typography as optional badge. */
1209
+ /** Short supporting text below the label. Same typography as optional badge. Supports **bold** markdown syntax. */
1202
1210
  'supporting-label'?: NLDDFormField['supportingLabel'];
1203
- /** Short supporting text below the label. Same typography as optional badge. */
1211
+ /** Short supporting text below the label. Same typography as optional badge. Supports **bold** markdown syntax. */
1204
1212
  'supportingLabel'?: NLDDFormField['supportingLabel'];
1205
1213
  /** Shows an optional badge next to the label. */
1206
1214
  'optional'?: NLDDFormField['optional'];
@@ -1401,7 +1409,7 @@ declare module 'vue' {
1401
1409
  'popupType'?: NLDDIconButton['popupType'];
1402
1410
  /** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
1403
1411
  'width'?: NLDDIconButton['width'];
1404
- /** ID of a popover element to toggle; forwarded to the inner <button> */
1412
+ /** ID of a popover element to toggle, looked up in the tree of this button; the inner <button> gets the element. */
1405
1413
  'popovertarget'?: NLDDIconButton['popovertarget'];
1406
1414
  /** Button text, used as aria-label and shown below the icon in lg size */
1407
1415
  'text'?: NLDDIconButton['text'];
@@ -1555,9 +1563,9 @@ declare module 'vue' {
1555
1563
  'heading-level'?: NLDDInlineDialog['headingLevel'];
1556
1564
  /** Renders text as h1–h6; absent renders a p */
1557
1565
  'headingLevel'?: NLDDInlineDialog['headingLevel'];
1558
- /** Overrides the alignment of text, icon and actions. Unset (the default) derives it: content in the default slot means a task, which aligns left; a bare message stays centered. Left alignment also lays the actions out in a row instead of stacked full-width. */
1566
+ /** Overrides the alignment of text, icon and actions. Unset (the default) derives it: content in the default slot means a task, which aligns left; a bare message stays centered. Centered, the actions stack at most 360px wide, even where two would fit side by side. Left-aligned, they sit in a row, each as wide as its label. */
1559
1567
  'horizontal-alignment'?: NLDDInlineDialog['horizontalAlignment'];
1560
- /** Overrides the alignment of text, icon and actions. Unset (the default) derives it: content in the default slot means a task, which aligns left; a bare message stays centered. Left alignment also lays the actions out in a row instead of stacked full-width. */
1568
+ /** Overrides the alignment of text, icon and actions. Unset (the default) derives it: content in the default slot means a task, which aligns left; a bare message stays centered. Centered, the actions stack at most 360px wide, even where two would fit side by side. Left-aligned, they sit in a row, each as wide as its label. */
1561
1569
  'horizontalAlignment'?: NLDDInlineDialog['horizontalAlignment'];
1562
1570
  };
1563
1571
 
@@ -1693,9 +1701,9 @@ declare module 'vue' {
1693
1701
  'checkbox'?: NLDDListItem['checkbox'];
1694
1702
  /** Makes the whole row one radio of a group: the action becomes a `role="radio"` button carrying `aria-checked`, and activation sets `checked` (never clears it) and fires `change`. Put the rows in an `nldd-list type="radiogroup"`, which is what makes them a set. Wins over `button`, loses to `href` and `checkbox`. The arrow keys move focus without checking, where a native radio group and `nldd-radio-button-group` check as they go: a row can carry more than a label, so stepping past one should not commit it. */
1695
1703
  'radio'?: NLDDListItem['radio'];
1696
- /** Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. The hint for another website or a new tab is added to it. */
1704
+ /** Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. Start it with the row's visible title, so voice control finds the row by the words on screen (WCAG 2.5.3); development warns when it does not. The hint for another website or a new tab is added to it. */
1697
1705
  'accessible-label'?: NLDDListItem['accessibleLabel'];
1698
- /** Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. The hint for another website or a new tab is added to it. */
1706
+ /** Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. Start it with the row's visible title, so voice control finds the row by the words on screen (WCAG 2.5.3); development warns when it does not. The hint for another website or a new tab is added to it. */
1699
1707
  'accessibleLabel'?: NLDDListItem['accessibleLabel'];
1700
1708
  /** Set by the parent `nldd-list` when its own `reorderable` is on (with `type="list"`); consumers do not set this. Serves as a CSS hook for drag handle visibility. */
1701
1709
  'reorderable'?: NLDDListItem['reorderable'];
@@ -1763,7 +1771,7 @@ declare module 'vue' {
1763
1771
  'popup-type'?: NLDDListItemSegment['popupType'];
1764
1772
  /** Type of popup this segment opens: 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid'. Becomes aria-haspopup on the control and makes aria-expanded permanent, so a row of identical "more" segments says what it opens before anything is open. An nldd-menu or nldd-popover anchored here sets it itself from the first render. */
1765
1773
  'popupType'?: NLDDListItemSegment['popupType'];
1766
- /** ID of a popover this segment toggles; forwarded to the inner button. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button. */
1774
+ /** ID of a popover this segment toggles, looked up in the tree of the segment; the inner button gets the element. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button. */
1767
1775
  'popovertarget'?: NLDDListItemSegment['popovertarget'];
1768
1776
  /** Marks the segment as the current one, with `aria-current` set to `current-type`. The row it sits in paints itself as the current row from it, so on a segmented row this is the only place it has to be set. */
1769
1777
  'current'?: NLDDListItemSegment['current'];
@@ -2226,6 +2234,10 @@ declare module 'vue' {
2226
2234
  type NLDDPageFooterProps = {
2227
2235
  /** Body max-width, mirroring a page section: 'full' removes the constraint so the content spans the full width; any CSS length (e.g. '480px') overrides the default max-width. */
2228
2236
  'width'?: NLDDPageFooter['width'];
2237
+ /** Leaves out the ribbon under the footer, and the room it takes, as `no-logo` does on nldd-top-navigation-bar. The ribbon belongs to the house style of the Rijksoverheid, so a site outside it, or one anyone may run, turns it off. An empty footer then takes no height at all. */
2238
+ 'no-ribbon'?: NLDDPageFooter['noRibbon'];
2239
+ /** Leaves out the ribbon under the footer, and the room it takes, as `no-logo` does on nldd-top-navigation-bar. The ribbon belongs to the house style of the Rijksoverheid, so a site outside it, or one anyone may run, turns it off. An empty footer then takes no height at all. */
2240
+ 'noRibbon'?: NLDDPageFooter['noRibbon'];
2229
2241
  };
2230
2242
 
2231
2243
  type NLDDPageFooterLegalBarProps = {
@@ -2547,7 +2559,7 @@ declare module 'vue' {
2547
2559
  'centered'?: NLDDRichText['centered'];
2548
2560
  /** Override translation keys; unset keys fall back to Dutch */
2549
2561
  'translations'?: NLDDRichText['translations'];
2550
- /** Opt-in automatic hyphenation for running text (p, li, dd). Needs a correct `lang` on the page (`lang="nl"` on `<html>`, for instance): without language information the browser does not hyphenate. An `overflow-wrap: break-word` safety net on headings, p and li is always on, independent of this attribute, so a word wider than the column breaks instead of overflowing, without a hyphen; headings never get one. */
2562
+ /** Opt-in automatic hyphenation for running text (p, li, dd). Needs a correct `lang` on the page (`lang="nl"` on `<html>`, for instance): without language information the browser does not hyphenate. An `overflow-wrap: break-word` safety net on headings, p and li is always on, independent of this attribute, so a word wider than the column breaks instead of overflowing. Headings are hyphenated regardless of this attribute, but only a word of at least 12 letters, as in `nldd-title`, so a short word moves to the next line whole. A soft hyphen (`&shy;`) adds a place to break of your own. */
2551
2563
  'hyphens'?: NLDDRichText['hyphens'];
2552
2564
  };
2553
2565
 
@@ -2851,13 +2863,13 @@ declare module 'vue' {
2851
2863
  'range'?: NLDDSlider['range'];
2852
2864
  /** Counts drawn as bars above the track, one per bucket of (max - min) / n, comma- or space-separated; as a property, an array of numbers. The bars within the chosen value or range are colored. */
2853
2865
  'histogram'?: NLDDSlider['histogram'];
2854
- /** Icon at the start of the track, such as a quiet speaker for a volume */
2866
+ /** Icon at the start of the track, such as a quiet speaker for a volume. A click on it moves the value a tenth of the range down (not in a range). */
2855
2867
  'start-icon'?: NLDDSlider['startIcon'];
2856
- /** Icon at the start of the track, such as a quiet speaker for a volume */
2868
+ /** Icon at the start of the track, such as a quiet speaker for a volume. A click on it moves the value a tenth of the range down (not in a range). */
2857
2869
  'startIcon'?: NLDDSlider['startIcon'];
2858
- /** Icon at the end of the track */
2870
+ /** Icon at the end of the track. A click on it moves the value a tenth of the range up (not in a range). */
2859
2871
  'end-icon'?: NLDDSlider['endIcon'];
2860
- /** Icon at the end of the track */
2872
+ /** Icon at the end of the track. A click on it moves the value a tenth of the range up (not in a range). */
2861
2873
  'endIcon'?: NLDDSlider['endIcon'];
2862
2874
  /** Accessible name; a range adds "minimum" and "maximum" to it for its thumbs. Set automatically by nldd-form-field. */
2863
2875
  'accessible-label'?: NLDDSlider['accessibleLabel'];
@@ -3335,6 +3347,8 @@ declare module 'vue' {
3335
3347
  'query-mark-mode'?: NLDDTextCell['queryMarkMode'];
3336
3348
  /** 'match' | 'predictive' (default: 'predictive') */
3337
3349
  'queryMarkMode'?: NLDDTextCell['queryMarkMode'];
3350
+ 'row-header'?: NLDDTextCell['rowHeader'];
3351
+ 'rowHeader'?: NLDDTextCell['rowHeader'];
3338
3352
  'hide-below'?: NLDDTextCell['hideBelow'];
3339
3353
  'hideBelow'?: NLDDTextCell['hideBelow'];
3340
3354
  'hide-above'?: NLDDTextCell['hideAbove'];
@@ -3352,7 +3366,7 @@ declare module 'vue' {
3352
3366
  'resize'?: NLDDTextEditor['resize'];
3353
3367
  /** 'simple' (default, bare) | 'input-field' (framed surface) */
3354
3368
  'appearance'?: NLDDTextEditor['appearance'];
3355
- /** 'visible' (default): every formatting mark stays in view, dimmed, a bullet as the character you typed (`-`, `*` or `+`). 'hidden': the marks of bold, italic, strikethrough, inline code, links and the `#` of a heading are hidden and come back where the caret or the selection touches that construct, so the text reads closer to the result while what you edit is still the markdown. A bullet reads as a dot, and shows its character on the line the caret is on. A quote reads as a line on the left; with the caret anywhere in it, its `>` marks show instead, in the same place. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way. */
3369
+ /** 'visible' (default): every formatting mark stays in view, dimmed, a bullet as the character you typed (`-`, `*` or `+`). 'hidden': the marks of bold, italic, strikethrough, inline code, links and the `#` of a heading are hidden and come back where the caret or the selection touches that construct, so the text reads closer to the result while what you edit is still the markdown. A bullet reads as a dot, and shows its character on the line the caret is on. A quote reads as a line on the left per level, at the level the result gives each line, as in nldd-rich-text, with the spaces after a `>` beyond the first hidden and a missing one made room for, so every level is the same step; with the caret anywhere in it, its `>` marks and spaces show instead. A `---` line reads as a divider until the caret is on it, and a code block loses its closing ``` line until the caret is in it, since its own tint and edge already say what it is. Its opening line stays as the head of the block, with only the backticks hidden: the language as a label on the left, the copy button on the right. The numbers of a numbered list stay, in the color of the text: they are content. Read-only and disabled hide every mark, which makes a clean read view. The value is plain markdown either way. */
3356
3370
  'syntax'?: NLDDTextEditor['syntax'];
3357
3371
  /** Enable the annotation overlay (off by default). Annotations only render when this is set. */
3358
3372
  'annotatable'?: NLDDTextEditor['annotatable'];
@@ -3580,7 +3594,7 @@ declare module 'vue' {
3580
3594
  };
3581
3595
 
3582
3596
  type NLDDTitleCellProps = {
3583
- /** Visual size of the title (default: 5) */
3597
+ /** Visual size of the title (unset: looks like 5, and becomes 6 in an `nldd-table-row`, where a title the size of the other cells reads better) */
3584
3598
  'size'?: NLDDTitleCell['size'];
3585
3599
  /** Text color variant (default: 'content'). `secondary` demotes the title to match the muted overline/supporting-text. `accent`, `success`, `warning` and `critical` tint all three regions so the cell reads as a coherent state. */
3586
3600
  'color'?: NLDDTitleCell['color'];
@@ -3624,6 +3638,8 @@ declare module 'vue' {
3624
3638
  'query-mark-mode'?: NLDDTitleCell['queryMarkMode'];
3625
3639
  /** 'match' | 'predictive' (default: 'predictive') */
3626
3640
  'queryMarkMode'?: NLDDTitleCell['queryMarkMode'];
3641
+ 'row-header'?: NLDDTitleCell['rowHeader'];
3642
+ 'rowHeader'?: NLDDTitleCell['rowHeader'];
3627
3643
  'hide-below'?: NLDDTitleCell['hideBelow'];
3628
3644
  'hideBelow'?: NLDDTitleCell['hideBelow'];
3629
3645
  'hide-above'?: NLDDTitleCell['hideAbove'];
@@ -4052,6 +4068,8 @@ declare module 'vue' {
4052
4068
  'hint'?: NLDDValidationList['hint'];
4053
4069
  /** Drop the hints, because this field has been judged. Turned on by the list itself once its control is `invalid`, and settable by hand. What turns red follows `invalid`, not this. */
4054
4070
  'judging'?: NLDDValidationList['judging'];
4071
+ /** Override translation keys (the line the list shows when the field is invalid and no item fails); unset keys fall back to Dutch. */
4072
+ 'translations'?: NLDDValidationList['translations'];
4055
4073
  /** The control this list is about. Set by the wrapping nldd-form-field, which already answers "which control is this field about" for the label and the description. A `for` of its own wins, and setting this property directly is what a test or a story does. */
4056
4074
  'control'?: NLDDValidationList['control'];
4057
4075
  /** The value to check, when there is no control to read it from. */
@@ -4138,7 +4156,7 @@ declare module 'vue' {
4138
4156
  'nldd-code-viewer': DefineComponent<NLDDCodeViewerProps>;
4139
4157
  /** A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-min-width` and the available width, and the gap per breakpoint. A grid keeps as many columns as fit, also when there are fewer items, so a page of results lines up with the next. For a fixed set of a few cards without paging, such as three points on a landing page, use `nldd-container layout="grid"` instead: its empty columns collapse, so the cards fill the row. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. Use horizontal scroll for items that together serve one purpose, such as the events of one agenda; it is not a carousel for unrelated highlights, which the design guidelines advise against. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view. */
4140
4158
  'nldd-collection': DefineComponent<NLDDCollectionProps>;
4141
- /** A text input with autocomplete dropdown via nldd-menu. Add a slotted nldd-menu with nldd-menu-item children to provide options. The slotted nldd-menu keeps its default focus behavior (menu container receives focus) so that typing keeps focus on the input. The picker button moves focus to the menu explicitly on activation. Note: Only nldd-menu-item type="button" is supported. Radio and checkbox types are not supported in this context. */
4159
+ /** A text input with autocomplete dropdown via nldd-menu. Add a slotted nldd-menu with nldd-menu-item children to provide options. After typing, a screen reader hears how many options are shown ("2 resultaten"), or the empty text when none are, also for options that a server sends in later. Only the number it lands on: it waits until the options settle. The slotted nldd-menu keeps its default focus behavior (menu container receives focus) so that typing keeps focus on the input. The picker button moves focus to the menu explicitly on activation. Note: Only nldd-menu-item type="button" is supported. Radio and checkbox types are not supported in this context. */
4142
4160
  'nldd-combo-box': DefineComponent<NLDDComboBoxProps>;
4143
4161
  /** 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. */
4144
4162
  'nldd-container': DefineComponent<NLDDContainerProps>;
@@ -4157,7 +4175,7 @@ declare module 'vue' {
4157
4175
  'nldd-drag-handle-cell': DefineComponent<NLDDDragHandleCellProps>;
4158
4176
  /** A visual wrapper around a native `<select>` element. The consumer provides a native `<select>` as a slotted child — this way the browser retains full control over form submission, accessibility and keyboard navigation, including `<optgroup>`, `data-*` attributes and dynamic changes to options. A dropdown hides its options, so it is the last resort for a choice from a fixed set. Show a handful of options with nldd-segmented-control, nldd-toggle-button-group or nldd-radio-button-group, and let the user type in nldd-combo-box when there are many, a list of countries included. The design guidelines explain the order. */
4159
4177
  'nldd-dropdown': DefineComponent<NLDDDropdownProps>;
4160
- /** A file picker that reads as one control. Empty, the whole tinted surface is one button with one sentence centered in it, "Bestand kiezen of sleep het hierheen", its first part accented, so a press anywhere on it opens the file dialog. Once a file is chosen, the surface shows it with the icon of its format, its name, a button to choose another and a dismiss button to clear it again. A long name is cut in the middle, so its start and its end stay in view ("Screenshot 20…at 13.12.21.png"); it then shows whole in a tooltip, and a screen reader reads it whole either way. It wraps a hidden native `<input type="file">`, which is what makes the picker open at all — a file dialog only opens from a user gesture on a real input. Files can be dropped on the whole field. A drop goes through the same input, so it fires the same `change` with the same detail and submits the same way as a pick. `accept` and `multiple` hold for a drop too, which the native input does not do: a drop that does not fit is refused as a whole, the previous choice stays, and the field says why for a few seconds: "Sleep één bestand", or what `accept` takes, named from it ("Het bestand moet een PDF zijn"; "Dit bestandstype past niet" where a type in it has no name). A dropped folder is refused as well ("Sleep een bestand, geen map"): it arrives as a file without a type that cannot be read, and only the drop tells it apart, not the drag. The message stays for a few seconds and then gives way to the field again. While files are dragged over the page, every field marks itself as a place to put them, and the field under the pointer says it will take them (a field with a file: that they replace it), or turns critical and refuses already when the number or the type rules them out. A file dropped next to a field no longer makes the browser open it and leave the page; a drop that another drop zone or an editable field takes is left alone. On a device without hover there is no dragging, so the field there drops the hint. The surface deliberately does not look like an input field. A border with field semantics promises you can type into it; here you can only press it or drop a file on it, so it has the border of a tinted surface instead of `--semantics-input-fields-*`. Several files are summarized, not listed: "3 bestanden" with a single cross that clears all of them. Every pick replaces the whole FileList, and rebuilding it to add or drop one file means going through DataTransfer, which does not deduplicate (even the same File object twice yields two entries) — and a File has no id, so deduplicating would come down to guessing from name, size and last-modified. A list with a cross per file would promise an edit the platform does not support. A page that does want to show the files renders its own list from the `File[]` in the change event. `variant="area"` lays the same field out as a tall surface, for a page where handing in files is the main task. Empty, it shows an upload icon, the sentence and the types it takes ("Toegestaan: PDF of JPG"), named from `accept`; with a file, the icon of its format, its name and the buttons "Wijzigen" and "Wis selectie" stacked in the middle. Both states have the same height, so the page does not move when a file is chosen. */
4178
+ /** A file picker that reads as one control. Empty, the whole tinted surface is one button with one sentence centered in it, "Bestand kiezen of sleep het hierheen", its first part accented, so a press anywhere on it opens the file dialog. Once a file is chosen, the surface shows it with the icon of its format, its name, a button to choose another and a dismiss button to clear it again. A long name is cut in the middle, so its start and its end stay in view ("Screenshot 20…at 13.12.21.png"); it then shows whole in a tooltip, and a screen reader reads it whole either way. It wraps a hidden native `<input type="file">`, which is what makes the picker open at all — a file dialog only opens from a user gesture on a real input. Files can be dropped on the whole field. A drop goes through the same input, so it fires the same `change` with the same detail and submits the same way as a pick. `accept` and `multiple` hold for a drop too, which the native input does not do: a drop that does not fit is refused as a whole, the previous choice stays, and the field says why for a few seconds: "Sleep één bestand", or what `accept` takes, named from it ("Alleen PDF"; "Bestandstype past niet" where a type in it has no name). The message stays for a few seconds and then gives way to the field again. While it shows, the message is a button of its own over the whole field, "Alleen PDF, sluit melding, Bijlage" to a screen reader: a press on it, or Enter, Space or Escape, dismisses it and puts focus on the button of the field again. A field that had focus when the message came gives it to the message, so focus does not fall back to the page. With `multiple`, a dropped folder is read down to the files in it, its subfolders included, and mixed with loose files in one drop if need be. The field then names the folder ("site (124 bestanden)", also "site (1 bestand)" for one), `paths` says where each file sat ("site/css/main.css"), and a form submits each file with its path as its name, as a native folder input does, so two files with one name in different folders stay apart. `accept` holds for every file in it. Without `multiple` a folder is refused ("Sleep bestand, geen map"): one file cannot be a folder. Only a drop tells a folder apart, not the drag. A folder that takes longer than a second to read shows the field empty with an `nldd-activity-indicator` ("Laden" in an area, the circle alone otherwise), as what was chosen gives way to it. An empty or unreadable folder is refused as any other drop, and the previous choice comes back after the message. `directory` offers a folder in the file dialog too. A dialog picks files or a folder, never both, so with it the field says "Bestanden of map kiezen" and a click opens a menu with both where it lands, as a context menu does; the keyboard opens it under the button. An area has room for both, so there it shows "Bestanden kiezen" and "Map kiezen" as two buttons with the drop hint under them, and the surface around them only takes a drop. "Wijzigen" opens the menu under itself. A folder is many files, so `directory` takes several without `multiple`. Safari on iOS picks a folder as well; a browser that cannot opens a dialog for files instead. While files are dragged over the page, every field marks itself as a place to put them, and the field under the pointer says it will take them (a field with a file: that they replace it), or turns critical and refuses already when the number or the type rules them out. A file dropped next to a field no longer makes the browser open it and leave the page; a drop that another drop zone or an editable field takes is left alone. On a device without hover there is no dragging, so the field there drops the hint. A control reserves the height of every text it can show, so fields of a size are as tall at one width, empty or with a file. Only a field with `directory` reserves the sentence that offers a folder, the longest of them. The name takes the lines that leaves it, and is cut in the middle only once those are full. A narrow field makes more room: below 320px "Wijzigen" and "Wis selectie" go in one menu behind "Toon opties" and a folder is counted as "site (3)", below 240px it leaves out the icon of the format. A refused drop says why in place of the name and the buttons, and an area shows its upload icon in red with it, as it did while the drop was refused. The surface deliberately does not look like an input field. A border with field semantics promises you can type into it; here you can only press it or drop a file on it, so it has the border of a tinted surface instead of `--semantics-input-fields-*`. Several files are summarized, not listed: "3 bestanden" with a single cross that clears all of them. Every pick replaces the whole FileList, and rebuilding it to add or drop one file means going through DataTransfer, which does not deduplicate (even the same File object twice yields two entries) — and a File has no id, so deduplicating would come down to guessing from name, size and last-modified. A list with a cross per file would promise an edit the platform does not support. A page that does want to show the files renders its own list from the `File[]` in the change event. `variant="area"` lays the same field out as a tall surface, for a page where handing in files is the main task. Empty, it shows an upload icon, the sentence and the types it takes ("Toegestaan: PDF of JPG"), named from `accept`; with a file, the icon of its format (a folder for a folder, a stack for several files), its name and the buttons "Wijzigen" and "Wis selectie" stacked in the middle. Both states have the same height, so the page does not move when a file is chosen: 160px, 120px at `size="sm"`, and a step more with `directory`, whose buttons take a row of their own. Where those buttons no longer fit side by side, below 360px or 300px at `size="sm"`, it is one step taller again. */
4161
4179
  'nldd-file-field': DefineComponent<NLDDFileFieldProps>;
4162
4180
  /** Nederlandse Digitale Dienst Form Component Plain custom element (extends HTMLElement, no Lit), required for light-DOM autofill. Renders a real <form> element in the LIGHT DOM around its children. Chrome's autofill engine looks for native <input> elements that have a <form> ancestor in the light DOM; with shadow-DOM inputs it can't find them, so we keep this component shadow-less. **Differs from other nldd-* components:** - No shadowRoot: all children live in the light DOM (inside the inner <form>) - No Lit: a plain HTMLElement with manual attribute mirroring - **Requires a global stylesheet import**: the vertical rhythm rules live in `dist/css/form.css` (or `global.css`), not in a component-specific shadow stylesheet. Import it as part of your app's global CSS bundle. **When a field turns red:** on submit the form marks every control the browser rejects with `invalid`, and clears it again once the value passes. Setting `invalid` yourself is fine, but do it on submit, not while someone is still typing, or a field turns red over a value that is not finished yet. **Two usage modes:** 1. **Auto-wrap** (default): write children directly. Component creates a `<form>` element and migrates children into it via MutationObserver. Simplest API. 2. **User-provided form** (framework-friendly): write your own `<form>` as direct child. Component detects it, takes over attribute mirroring, and skips the migration. Children stay where your framework puts them, so there is no DOM shuffling to conflict with React/Vue/Angular reconciliation. **Framework interop:** In auto-wrap mode every direct child is moved into the inner form through a MutationObserver. That works fine for most React/Vue use cases, because frameworks only mutate the DOM when their virtual DOM changes. For edge cases (animation libraries that track DOM position, SSR hydration mismatches, frameworks that actively check sibling positions) use **user-provided form** mode instead. For programmatic manipulation, use the `form` getter so you work with the inner `<form>` element directly: const inner = document.querySelector('nldd-form').form; inner.checkValidity(); inner.appendChild(myInput); // skips the migration overhead */
4163
4181
  'nldd-form': DefineComponent<NLDDFormProps>;
@@ -4232,7 +4250,7 @@ declare module 'vue' {
4232
4250
  'nldd-pagination': DefineComponent<NLDDPaginationProps>;
4233
4251
  /** A password input field with visibility toggle and validation states. */
4234
4252
  'nldd-password-field': DefineComponent<NLDDPasswordFieldProps>;
4235
- /** A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover="auto") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle: <nldd-button id="info-trigger" popovertarget="info-popover">Info</nldd-button> <nldd-popover id="info-popover" anchor="info-trigger" accessible-label="Info"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus. On sm the popover is a bottom sheet that closes with Escape or a tap outside it. Where that is not enough, give its content a title bar of its own, as in a sheet: an nldd-page with an nldd-top-title-bar and a `dismiss-text`. The popover catches the dismiss of that bar and closes. It draws no bar itself. */
4253
+ /** A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover="auto") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle: <nldd-button id="info-trigger" popovertarget="info-popover">Info</nldd-button> <nldd-popover id="info-popover" anchor="info-trigger" accessible-label="Info"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus. On md and up the popover closes with Escape or a click outside it, and that click goes on to what it lands on, as with any native popover: the page has no backdrop and stays in use, so a click on another control does what it says in one go. It needs no close button of its own. Content that does, because a stray click must not close it (a form, a few steps, work you would lose), is more than a popover holds: use an nldd-sheet. nldd-just-in-time-education is the exception, a manual popover that stays until it is dismissed. On sm the popover is a bottom sheet with a dimmed backdrop, which closes with Escape or a tap outside it. That tap stops at the backdrop, as on every native sheet: the dimming says the page is out of play. Where that is not enough, give its content a title bar of its own, as in a sheet: an nldd-page with an nldd-top-title-bar and a `dismiss-text`. The popover catches the dismiss of that bar and closes. It draws no bar itself. */
4236
4254
  'nldd-popover': DefineComponent<NLDDPopoverProps>;
4237
4255
  /** Exports both NLDDProgressBar and NLDDProgressBarSegmentIndicator. A progress bar that supports a single value (loading-style) or multiple segments (multi-stage progress, or distribution like storage usage). The consumer provides raw values; the component computes percentages from `max`. Two variants: - `progress` (default): segments sum toward `max`; remaining space is empty track. ARIA reads "X% voltooid". - `distribution`: segments fill the bar; ARIA enumerates segments. If the sum of segment values exceeds `max`, segments are normalized proportionally to fit and a warning is logged. */
4238
4256
  'nldd-progress-bar': DefineComponent<NLDDProgressBarProps>;
@@ -4265,7 +4283,7 @@ declare module 'vue' {
4265
4283
  'nldd-simple-section': DefineComponent<NLDDSimpleSectionProps>;
4266
4284
  /** Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. Not only for the header of a page. Any block with many stops that someone on a keyboard often wants to get past can have one: a set of filters, a long toolbar, a table of contents. Keep it to blocks like that; a skip link before every section is one more stop on the way, not one less. Without href it moves focus to the first rendered element after the skip link, so the next Tab lands on the first link or button in it. An element that is not rendered, such as a `<noscript>`, a `<script>` or anything hidden, is passed over. Make sure a rendered element follows the component, otherwise the skip link has no effect. With an `href` that points at an id on the same page, the link scrolls to that element and moves focus to it too. The target needs no `tabindex` of its own. An href to another page is left to the browser. The component cannot know what it skips, so its default text only says "Sla over". Name it with `text`: "Sla navigatie over", "Sla filters over". */
4267
4285
  'nldd-skip-link': DefineComponent<NLDDSkipLinkProps>;
4268
- /** A value picked along a track, by dragging its thumb, pressing the track or with the arrow keys. With `range` it picks a range instead, with a thumb for each end. The names follow Apple's: the track, the thumb, and the minimum track, the part filled up to the thumb, or between the thumbs of a range. A slider is for a value that may be roughly right, such as a filter ("a price between …"). For a value that has to be exact, an `nldd-number-field` is easier: a thumb is hard to put on one number, the more so with a hand that is not steady. It is built on native range inputs, so the keyboard (arrows, Page Up and Page Down, Home and End), touch, the form and a screen reader work as they do for any slider. A range is two of them over each other, each with its own name for a screen reader ("Prijs, minimum"), and a press on the track moves the nearer thumb there. The thumbs do not pass each other; where they lie on one value, the first move picks one, to the left the start one. The value shows in a tooltip above the thumb while the pointer is over the slider, while a thumb has keyboard focus and while it is dragged; with `tooltip-timing="never"` it does not, for a slider whose value already shows elsewhere. Where the two tooltips of a range would overlap, they show as one ("200 – 1.200"). `formatValue` turns a number into the text of the tooltip and of what a screen reader hears, such as `(value) => \`€ ${value}\``; without it the number is written the Dutch way. `histogram` draws counts as bars above the track, such as how many results there are at each price, so the range can be chosen with the spread in view. Give one count per bucket: n counts split min to max into n equal buckets of (max - min) / n, the first count for the first bucket. Only the proportions matter (the highest count is the full height), a 0 is an empty bucket, and 20 to 40 buckets read best, whatever the `step`. A bar whose middle lies within the chosen value or range is colored. The bars are decoration for a screen reader: say what they show in the text around it. In a form a slider submits its value under `name`; a range submits both ends under it, the start first. */
4286
+ /** A value picked along a track, by dragging its thumb, pressing the track or with the arrow keys. With `range` it picks a range instead, with a thumb for each end. The names follow Apple's: the track, the thumb, and the minimum track, the part filled up to the thumb, or between the thumbs of a range. A slider is for a value that may be roughly right, such as a filter ("a price between …"). For a value that has to be exact, an `nldd-number-field` is easier: a thumb is hard to put on one number, the more so with a hand that is not steady. It is built on native range inputs, so the keyboard (arrows, Page Up and Page Down, Home and End), touch, the form and a screen reader work as they do for any slider. A range is two of them over each other, each with its own name for a screen reader ("Prijs, minimum"), and a press on the track moves the nearer thumb there. The thumbs do not pass each other; where they lie on one value, the first move picks one, to the left the start one. The value shows in a tooltip above the thumb while the pointer is over the slider or its icons, while a thumb has keyboard focus and while it or an icon is pressed; with `tooltip-timing="never"` it does not, for a slider whose value already shows elsewhere. Where the two tooltips of a range would overlap, they show as one ("200 – 1.200"). `formatValue` turns a number into the text of the tooltip and of what a screen reader hears, such as `(value) => \`€ ${value}\``; without it the number is written in the language of the page (`lang`), and in Dutch where none is set. `histogram` draws counts as bars above the track, such as how many results there are at each price, so the range can be chosen with the spread in view. Give one count per bucket: n counts split min to max into n equal buckets of (max - min) / n, the first count for the first bucket. Only the proportions matter (the highest count is the full height), a 0 is an empty bucket, and 20 to 40 buckets read best, whatever the `step`. A bar whose middle lies within the chosen value or range is colored. The bars are decoration for a screen reader: say what they show in the text around it. A larger step than the arrow keys take is a tenth of the range, and at least one `step`: what Page Up and Page Down do, what Shift with an arrow key does (a Mac keyboard has no Page Up), and what a click on `start-icon` or `end-icon` does. The icons stay out of the tab order and out of the accessibility tree, because the keyboard already has those keys. In a range they only explain the ends, since a click could not say which thumb to move. In a form a slider submits its value under `name`; a range submits both ends under it, the start first. */
4269
4287
  'nldd-slider': DefineComponent<NLDDSliderProps>;
4270
4288
  /** Add explicit space between elements. Components here have no margins of their own — all whitespace is set by a spacer. A spacer is fixed space between two different things. For padding around an area, or the gaps between the children of one area, use `nldd-container` with `padding` and `gap` instead. A `gap` sets one distance for every child, which is right while the children are of one kind: a row of buttons, a set of cards, the fields of a form. Put different kinds under each other and the right distance differs per seam, so set each one where it happens with a spacer. A heading over a list is the common case: the space under the heading should be smaller than the space above it, which keeps the heading with what it labels. A gap cannot tell the two apart, and evening them out reads as a strip of loose lines. Use a single `size` attribute for whitespace that's the same at every viewport. Combine with `sm-size`, `md-size` and/or `lg-size` to override the size at specific breakpoints (mobile-first cascade is intentionally avoided — each breakpoint that needs a different value declares it explicitly): - `size` applies at every breakpoint that has no per-viewport override. - `sm-size` overrides at sm (max-width: 640px). - `md-size` overrides at md (641px–1007px). - `lg-size` overrides at lg (min-width: 1008px). Use `flexible` (in any of the four attributes) to fill the remaining space in a flex container. */
4271
4289
  'nldd-spacer': DefineComponent<NLDDSpacerProps>;
@@ -4296,7 +4314,7 @@ declare module 'vue' {
4296
4314
  /** A horizontal navigation bar with mutually exclusive tabs. Exports both NLDDTabBar and NLDDTabBarItem. When the tabs do not fit, the ones that do not fit go behind a "Meer tabs" button at the end, in a menu. The current tab always stays in the bar: if it would fall in the part that does not fit, another tab goes to the menu in its place. While tabs are in the menu, the bar fills its container and the tabs in it share the width in proportion to their own. Choosing a tab in the bar changes nothing about what is shown; choosing one from the menu swaps it with the last tab in the bar, so the bar does not jump. `centered` has no effect then. In an nldd-toolbar the other items go to the toolbar's menu first, by their priority; when it is the bar's turn, it narrows down to the current tab beside its button, and only then moves into the toolbar's menu as a whole. Tabs are hidden, never moved, so a framework that renders them finds them where it put them. Only a tab that does not fit on its own is cut off. */
4297
4315
  'nldd-tab-bar': DefineComponent<NLDDTabBarProps>;
4298
4316
  'nldd-tab-bar-item': DefineComponent<NLDDTabBarItemProps>;
4299
- /** Exports both NLDDTable and NLDDTableRow. A data table presented as a boxed surface (rounded corners, an inset border ring, a base or tinted fill) that aligns content into shared columns using a CSS grid + subgrid. Row dividers run full-bleed to the edges; the inline padding lives on the rows, so it insets the cell content but not the dividers. Column widths are defined ONCE on the table via the `columns` attribute (a CSS grid track list), like an HTML `<colgroup>`. Rows are `<nldd-table-row>` elements whose children are the existing `nldd-cell` family — every row uses `grid-template-columns: subgrid`, so all rows snap to the same columns. Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its cells become column headers (role="columnheader"). Responsive: two complementary strategies. (1) Give columns a minimum width (e.g. `minmax(160px,1fr)`) — the table is its own scroll container, so it scrolls horizontally when too narrow (no wrapper needed). (2) Drop columns at breakpoints: provide `sm-columns`/`md-columns`/ `lg-columns` (shorter track lists) and hide the dropped columns' cells with `hide-below`/`hide-above` at the matching breakpoint. The table picks the track list for its own width via the standard sm/md/lg breakpoints. Selection and sorting are intentionally NOT built in: add a column with an `nldd-cell` + `nldd-checkbox` for selection, and drive sorting from an external control (e.g. a dropdown). */
4317
+ /** Exports both NLDDTable and NLDDTableRow. A data table presented as a boxed surface (rounded corners, an inset border ring, a base or tinted fill) that aligns content into shared columns using a CSS grid + subgrid. Row dividers run full-bleed to the edges; the inline padding lives on the rows, so it insets the cell content but not the dividers. Column widths are defined ONCE on the table via the `columns` attribute (a CSS grid track list), like an HTML `<colgroup>`. Rows are `<nldd-table-row>` elements whose children are the existing `nldd-cell` family — every row uses `grid-template-columns: subgrid`, so all rows snap to the same columns. Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its cells become column headers (role="columnheader"). Row headers: give the cell that says what a row is about `row-header` (`nldd-cell`, `nldd-title-cell`, `nldd-text-cell`, `nldd-description-cell`). The row then gives it role="rowheader" instead of "cell", so a screen reader names the row along with every other cell in it, like `<th scope="row">`. The attribute goes on the cell, not as a column index on the row or table, so it survives columns hidden at a breakpoint and needs no counting. It changes the semantics only: the cell variant still decides the look. The cell above the row headers, in the header row, stays a columnheader. Headers that span rows or columns are not supported. Responsive: two complementary strategies. (1) Give columns a minimum width (e.g. `minmax(160px,1fr)`) — the table is its own scroll container, so it scrolls horizontally when too narrow (no wrapper needed). (2) Drop columns at breakpoints: provide `sm-columns`/`md-columns`/ `lg-columns` (shorter track lists) and hide the dropped columns' cells with `hide-below`/`hide-above` at the matching breakpoint. The table picks the track list for its own width via the standard sm/md/lg breakpoints. Selection and sorting are intentionally NOT built in: add a column with an `nldd-cell` + `nldd-checkbox` for selection, and drive sorting from an external control (e.g. a dropdown). */
4300
4318
  'nldd-table': DefineComponent<NLDDTableProps>;
4301
4319
  'nldd-table-row': DefineComponent<NLDDTableRowProps>;
4302
4320
  /** A compact property that has been assigned to something: a category, a type, a role, a certification. What it says changes only when someone edits the content. A tag is not interactive. Do not use it for a state the system keeps itself, such as "Active" or "Expired", because that is `nldd-badge`. If the user can remove the thing or click it, it is `nldd-token`. */
@@ -4316,7 +4334,7 @@ declare module 'vue' {
4316
4334
  'nldd-time-field': DefineComponent<NLDDTimeFieldProps>;
4317
4335
  /** 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. */
4318
4336
  'nldd-time-picker': DefineComponent<NLDDTimePickerProps>;
4319
- /** A title bar with an optional overline, title, and supporting text on the left, and a slot at the end of the title line on the right. The title comes from `text`, with `heading-level` for its place in the heading structure. `size` is how it looks, `heading-level` what it is, and the two are set apart. `overline` and `supporting-text` go above and below it. Each of the three has a slot in the same place for content that is more than text, and a filled slot takes the place of the attribute. */
4337
+ /** A title bar with an optional overline, title, and supporting text on the left, and a slot at the end of the title line on the right. The title comes from `text`, with `heading-level` for its place in the heading structure. `size` is how it looks, `heading-level` what it is, and the two are set apart. `overline` and `supporting-text` go above and below it. Each of the three has a slot in the same place for content that is more than text, and a filled slot takes the place of the attribute. A word too long for the line is hyphenated by syllable, with the `lang` of the page: only a word of at least 12 letters, with at least 5 on each side, so a short word moves to the next line whole. A soft hyphen (`&shy;`) adds a place to break of your own, also where the browser has no dictionary for the language: `overheids&shy;informatie`, or `\u00AD` in a string set from script, where an entity is not read. Most browsers then break that word only there; Safari may still pick a syllable of its own. */
4320
4338
  'nldd-title': DefineComponent<NLDDTitleProps>;
4321
4339
  /** A cell component for displaying a title with optional overline and supporting text in lists. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. Each text region (overline, title, supporting text) accepts either a string attribute or slotted DOM content. The slot is the source of truth: if the consumer provides slotted content, it replaces the attribute-based render for that region. Use slots when you need inline elements like `<nldd-tag>`, `<nldd-icon>` or other components mixed with text. Note that `query` highlighting and `**bold**` parsing only apply to the attribute path — slotted content is rendered as-is. */
4322
4340
  'nldd-title-cell': DefineComponent<NLDDTitleCellProps>;
@@ -4326,7 +4344,7 @@ declare module 'vue' {
4326
4344
  'nldd-toggle-button-group': DefineComponent<NLDDToggleButtonGroupProps>;
4327
4345
  /** A self-contained piece of data the user is handling: a person in an address field, an active filter value. Alone among the three it can be operated, so it is optionally dismissable or interactive through a contextual menu. For something you only read, reach for `nldd-tag` (a trait someone assigned) or `nldd-badge` (a state or a count the system keeps). */
4328
4346
  'nldd-token': DefineComponent<NLDDTokenProps>;
4329
- /** A multi-select input that looks like a normal input field: chosen values show as dismissible tokens in a wrapping row, followed by an inline text input that stretches to fill the remaining space and wraps to a new line (growing the field) when it no longer fits. Options are supplied as a slotted nldd-menu, exactly like nldd-combo-box; the menu filters as you type, with a chevron picker button, arrow-key roving across the tokens and ElementInternals form participation. Options can arrive after the keystroke, from a server you query per keystroke. Slot them into the menu when they come in: if the user is still in the field and the keystroke found nothing to show, the menu opens then. After Escape, or once the user left the field, it stays shut. */
4347
+ /** A multi-select input that looks like a normal input field: chosen values show as dismissible tokens in a wrapping row, followed by an inline text input that stretches to fill the remaining space and wraps to a new line (growing the field) when it no longer fits. Options are supplied as a slotted nldd-menu, exactly like nldd-combo-box; the menu filters as you type, with a chevron picker button, arrow-key roving across the tokens and ElementInternals form participation. Options can arrive after the keystroke, from a server you query per keystroke. Slot them into the menu when they come in: if the user is still in the field and the keystroke found nothing to show, the menu opens then. After Escape, or once the user left the field, it stays shut. After typing, a screen reader hears how many options are shown ("2 resultaten"), or the empty text when none are, also for options that a server sends in later. Only the number it lands on: it waits until the options settle. */
4330
4348
  'nldd-token-field': DefineComponent<NLDDTokenFieldProps>;
4331
4349
  /** 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. */
4332
4350
  'nldd-toolbar': DefineComponent<NLDDToolbarProps>;
@@ -4338,13 +4356,13 @@ declare module 'vue' {
4338
4356
  'nldd-tooltip': DefineComponent<NLDDTooltipProps>;
4339
4357
  /** The top bar of a page: a logo bar with the Rijkslogo and an optional wordmark, and below it the main bar with the website title, a back button, the global navigation and the utility navigation. On narrow widths the global navigation moves into a menu sheet behind the menu button. The top bar of a website, and of nothing else: put it in the `header` slot of an `nldd-page`. Do not combine it with a split view. A split view is the layout of an application, whose panes carry a bar of their own, usually an `nldd-toolbar`, and a site header above it gives a second layer of navigation and a second thing that scrolls. Does a page need a sidebar under this bar, use an `nldd-sidebar-section` inside that `nldd-page`. */
4340
4358
  'nldd-top-navigation-bar': DefineComponent<NLDDTopNavigationBarProps>;
4341
- /** A toolbar for page and container headings with optional navigation and action buttons. The component has two states: - Default: the back button shows the previous page title as a text button - Compact (class `is-compact`): the back button is an icon button, a divider and the toolbar title are visible When `collapse-anchor` is set, the `is-compact` class is automatically applied as soon as the top of the anchor element reaches this bar's own top edge (the sticky header line). Measuring the bar rather than the page keeps it correct in both nested and root scroll modes; it also re-points at the live scroll target when the page switches mode. Without `collapse-anchor` the bar takes a static state: compact when `text` is set (so the title shows in the title-group), non-compact otherwise (so the `back-text` button stays visible). An anchored bar hides its own title from assistive technology. The anchor is the heading the title swaps in for, so both carry the same words: once you scroll past the heading, a screen reader would otherwise find the same title twice. Sighted readers see one at a time, and this makes that true for everyone. Anchor at the heading, then, and not at some other element that happens to sit at the right height: the bar hands its title over to it. The title stays on one line and is cut off with an ellipsis when it does not fit, which on a narrow screen or at 400% zoom is soon. The bar is therefore not the place for the full title: put that in an `nldd-title` at the top of the content, which wraps and always fits, and point `collapse-anchor` at it. A bar without an anchor holds the only copy of its title, so keep that one to a word or two. */
4359
+ /** A toolbar for page and container headings with optional navigation and action buttons. The component has two states: - Default: the back button shows the previous page title as a text button - Compact (class `is-compact`): the back button is an icon button, a divider and the toolbar title are visible When `collapse-anchor` is set, the `is-compact` class is automatically applied as soon as the top of the anchor element reaches this bar's own top edge (the sticky header line). Measuring the bar rather than the page keeps it correct in both nested and root scroll modes; it also re-points at the live scroll target when the page switches mode. Without `collapse-anchor` the bar takes a static state: compact when `text` is set (so the title shows in the title-group), non-compact otherwise (so the `back-text` button stays visible). An anchored bar hides its own title from assistive technology. The anchor is the heading the title swaps in for, so both carry the same words: once you scroll past the heading, a screen reader would otherwise find the same title twice. Sighted readers see one at a time, and this makes that true for everyone. Anchor at the heading, then, and not at some other element that happens to sit at the right height: the bar hands its title over to it. An `nldd-title` anchor without a `heading-level` gets the bar's own, so the title it takes over is a heading of the same level. An anchor that is no heading at all, and holds none, would leave the page without one: the bar then keeps its own title for assistive technology and warns in development. The title stays on one line and is cut off with an ellipsis when it does not fit, which on a narrow screen or at 400% zoom is soon. The bar is therefore not the place for the full title: put that in an `nldd-title` at the top of the content, which wraps and always fits, and point `collapse-anchor` at it. A bar without an anchor holds the only copy of its title, so keep that one to a word or two. */
4342
4360
  'nldd-top-title-bar': DefineComponent<NLDDTopTitleBarProps>;
4343
4361
  /** A section with 2/3 main content on the left and a 1/3 sidebar on the right. The columns wrap automatically when they become smaller than 280px. Padding and gap adjust via container queries. */
4344
4362
  'nldd-two-thirds-one-third-section': DefineComponent<NLDDTwoThirdsOneThirdSectionProps>;
4345
4363
  /** One requirement of a value, with the rule that checks it. Give every item an id that names its field as well as its rule: an id has to be unique in the whole document, and `length` is the first thing three fields in one form will all reach for. Write the text as the requirement ("Minimaal 8 tekens"), not as the command ("Gebruik minimaal 8 tekens"): before a verdict it stands there as what the field wants, after one as what the value does not meet. */
4346
4364
  'nldd-validation-item': DefineComponent<NLDDValidationItemProps>;
4347
- /** Nederlandse Digitale Dienst Validation List (Lit + TypeScript) Everything a value has to satisfy, in one list. A requirement you can state up front is an item with a rule, and it checks itself while you type. One only a server can decide is an item without a rule, and the app names it in `unmet` on the control. The list has two modes and `judging` is the switch. Before a verdict it shows its hints, which are the requirements of the field. After one it shows everything the value does not satisfy, and the hints are gone. It throws that switch itself the moment its control turns `invalid`, so when the field is judged is the consumer's decision, and the right moment is on submit. Hints are off by default. A phone number does not need its format spelled out before anyone has typed, while the rules for a password do. There are no checkmarks. The control already shows a validation icon of its own, and repeating that per line says the same thing three times. */
4365
+ /** Nederlandse Digitale Dienst Validation List (Lit + TypeScript) Everything a value has to satisfy, in one list. A requirement you can state up front is an item with a rule, and it checks itself while you type. One only a server can decide is an item without a rule, and the app names it in `unmet` on the control. The list has two modes and `judging` is the switch. Before a verdict it shows its hints, which are the requirements of the field. After one it shows everything the value does not satisfy, and the hints are gone. It throws that switch itself the moment its control turns `invalid`, so when the field is judged is the consumer's decision, and the right moment is on submit. Hints are off by default. A phone number does not need its format spelled out before anyone has typed, while the rules for a password do. There are no checkmarks. The control already shows a validation icon of its own, and repeating that per line says the same thing three times. A field can be `invalid` while no item fails: the browser rejects `naam@` as an e-mail address, and a `match="@"` item passes it. The list then says what it can itself, so a field never turns red without a reason under it. It reads the control's `validity` and names what is wrong (an invalid e-mail or web address, an empty required field, too short, too long, too low, too high), and says "Dit klopt nog niet." when it cannot tell. An item of your own that fails always wins over this line. The line is an nldd-validation-item the list adds to its own children while it is needed, so nldd-form-field reads it to the control as it does every other item: a line in the list's shadow root would be out of its reach. */
4348
4366
  'nldd-validation-list': DefineComponent<NLDDValidationListProps>;
4349
4367
  /** Text a screen reader reads and the screen does not show. It stays in the accessibility tree and in the reading order, and takes no room on the page. For a name that is visually redundant: the header of a column of checkboxes, where the checkboxes say enough to anyone who can see them, or the "(opent in een nieuw venster)" after a link whose icon already says it. Not for repairing structure that is missing. Hidden text that describes how something is laid out ("subpagina van Aanvragen") stands in for semantics the markup should carry, and only a screen reader gets the stand-in. Not for a status either: a status that matters to a screen reader matters to anyone, so show it, as text with `role="status"` or as an `nldd-notification`. And not for the name of a component that takes `accessible-label`: give it that. Nothing in it should take focus. A control inside would be reached with Tab and be nowhere on the screen. */
4350
4368
  'nldd-visually-hidden': DefineComponent<NLDDVisuallyHiddenProps>;
@@ -12,9 +12,20 @@
12
12
  * Only what this helper wrote itself is ever overwritten or taken back: a
13
13
  * `lang` or `color-scheme` set on the element by its author stays.
14
14
  */
15
- /** Gives `element` the color scheme and language of `origin`. Call it each
16
- * time the element shows, since the page around the origin may have changed. */
17
- export declare function carryContext(element: HTMLElement, origin: Element | null): void;
15
+ /** The language of an element, looking past shadow roots to their hosts. */
16
+ export declare function langOf(el: Element): string | null;
17
+ /**
18
+ * Gives `element` the color scheme and language of `origin`. Call it each time
19
+ * the element shows, since the page around the origin may have changed.
20
+ *
21
+ * Reading the color scheme takes `getComputedStyle`, which recalculates the
22
+ * styles of the page when they are dirty. An element nobody sees, such as the
23
+ * hidden description of a tooltip, only needs the language: pass
24
+ * `{ scheme: false }` and nothing is recalculated.
25
+ */
26
+ export declare function carryContext(element: HTMLElement, origin: Element | null, { scheme: withScheme }?: {
27
+ scheme?: boolean | undefined;
28
+ }): void;
18
29
  /** Takes back what `carryContext` wrote, for an element returned to its place. */
19
30
  export declare function releaseContext(element: HTMLElement): void;
20
31
  //# sourceMappingURL=carried-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"carried-context.d.ts","sourceRoot":"","sources":["../../src/utilities/carried-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAgBH;iFACiF;AACjF,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAgC/E;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAMzD"}
1
+ {"version":3,"file":"carried-context.d.ts","sourceRoot":"","sources":["../../src/utilities/carried-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,4EAA4E;AAC5E,wBAAgB,MAAM,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CASjD;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,EAAE,MAAM,EAAE,UAAiB,EAAE;;CAAK,GAAG,IAAI,CAgCnH;AAED,kFAAkF;AAClF,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAMzD"}
@@ -14,7 +14,7 @@
14
14
  */
15
15
  const carried = new WeakMap();
16
16
  /** The language of an element, looking past shadow roots to their hosts. */
17
- function langOf(el) {
17
+ export function langOf(el) {
18
18
  let node = el;
19
19
  while (node) {
20
20
  const owner = node.closest('[lang]');
@@ -25,15 +25,22 @@ function langOf(el) {
25
25
  }
26
26
  return null;
27
27
  }
28
- /** Gives `element` the color scheme and language of `origin`. Call it each
29
- * time the element shows, since the page around the origin may have changed. */
30
- export function carryContext(element, origin) {
28
+ /**
29
+ * Gives `element` the color scheme and language of `origin`. Call it each time
30
+ * the element shows, since the page around the origin may have changed.
31
+ *
32
+ * Reading the color scheme takes `getComputedStyle`, which recalculates the
33
+ * styles of the page when they are dirty. An element nobody sees, such as the
34
+ * hidden description of a tooltip, only needs the language: pass
35
+ * `{ scheme: false }` and nothing is recalculated.
36
+ */
37
+ export function carryContext(element, origin, { scheme: withScheme = true } = {}) {
31
38
  if (!origin?.isConnected)
32
39
  return;
33
40
  const previous = carried.get(element) ?? { scheme: null, lang: null };
34
41
  const next = { scheme: previous.scheme, lang: previous.lang };
35
42
  const ownScheme = element.style.colorScheme;
36
- if (!ownScheme || ownScheme === previous.scheme) {
43
+ if (withScheme && (!ownScheme || ownScheme === previous.scheme)) {
37
44
  const scheme = getComputedStyle(origin).colorScheme;
38
45
  if (scheme && scheme !== 'normal') {
39
46
  element.style.colorScheme = scheme;
@@ -1 +1 @@
1
- {"version":3,"file":"carried-context.js","sourceRoot":"","sources":["../../src/utilities/carried-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,OAAO,GAAG,IAAI,OAAO,EAA+D,CAAC;AAE3F,4EAA4E;AAC5E,SAAS,MAAM,CAAC,EAAW;IAC1B,IAAI,IAAI,GAAmB,EAAE,CAAC;IAC9B,OAAO,IAAI,EAAE,CAAC;QACb,MAAM,KAAK,GAAmB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACrD,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAChC,IAAI,GAAG,IAAI,YAAY,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC;AAED;iFACiF;AACjF,MAAM,UAAU,YAAY,CAAC,OAAoB,EAAE,MAAsB;IACxE,IAAI,CAAC,MAAM,EAAE,WAAW;QAAE,OAAO;IACjC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACtE,MAAM,IAAI,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IAE9D,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IAC5C,IAAI,CAAC,SAAS,IAAI,SAAS,KAAK,QAAQ,CAAC,MAAM,EAAE,CAAC;QACjD,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC;QACpD,IAAI,MAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YACnC,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC;YACnC,sEAAsE;YACtE,mEAAmE;YACnE,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;QACzC,CAAC;aAAM,CAAC;YACP,IAAI,QAAQ,CAAC,MAAM;gBAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;YAClE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACpB,CAAC;IACF,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7C,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5B,IAAI,IAAI,EAAE,CAAC;YACV,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,CAAC;aAAM,CAAC;YACP,IAAI,QAAQ,CAAC,IAAI;gBAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YACnD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,CAAC;IACF,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,cAAc,CAAC,OAAoB;IAClD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtC,IAAI,CAAC,QAAQ;QAAE,OAAO;IACtB,IAAI,QAAQ,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,KAAK,QAAQ,CAAC,MAAM;QAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACnH,IAAI,QAAQ,CAAC,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,IAAI;QAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IACrG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"carried-context.js","sourceRoot":"","sources":["../../src/utilities/carried-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,OAAO,GAAG,IAAI,OAAO,EAA+D,CAAC;AAE3F,4EAA4E;AAC5E,MAAM,UAAU,MAAM,CAAC,EAAW;IACjC,IAAI,IAAI,GAAmB,EAAE,CAAC;IAC9B,OAAO,IAAI,EAAE,CAAC;QACb,MAAM,KAAK,GAAmB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACrD,IAAI,KAAK;YAAE,OAAO,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAChC,IAAI,GAAG,IAAI,YAAY,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;IACtD,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,OAAoB,EAAE,MAAsB,EAAE,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,EAAE;IAC5G,IAAI,CAAC,MAAM,EAAE,WAAW;QAAE,OAAO;IACjC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACtE,MAAM,IAAI,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IAE9D,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;IAC5C,IAAI,UAAU,IAAI,CAAC,CAAC,SAAS,IAAI,SAAS,KAAK,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QACjE,MAAM,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC;QACpD,IAAI,MAAM,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;YACnC,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC;YACnC,sEAAsE;YACtE,mEAAmE;YACnE,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC;QACzC,CAAC;aAAM,CAAC;YACP,IAAI,QAAQ,CAAC,MAAM;gBAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;YAClE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACpB,CAAC;IACF,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7C,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5B,IAAI,IAAI,EAAE,CAAC;YACV,OAAO,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;YACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,CAAC;aAAM,CAAC;YACP,IAAI,QAAQ,CAAC,IAAI;gBAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YACnD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAClB,CAAC;IACF,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,cAAc,CAAC,OAAoB;IAClD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtC,IAAI,CAAC,QAAQ;QAAE,OAAO;IACtB,IAAI,QAAQ,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,KAAK,QAAQ,CAAC,MAAM;QAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACnH,IAAI,QAAQ,CAAC,IAAI,IAAI,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,QAAQ,CAAC,IAAI;QAAE,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IACrG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { LitElement } from 'lit';
2
+ /**
3
+ * Holds on to a `focus()` that comes before the first render.
4
+ *
5
+ * A component that hands focus to an element in its shadow root has nothing to
6
+ * hand it to until it has rendered, so `focus()` right after the element is put
7
+ * in the page did nothing. A site that copies a field and focuses the copy then
8
+ * leaves focus where it was. This runs the call again once the component has
9
+ * rendered, unless focus has moved on in the meantime: a later `focus()` on
10
+ * something else wins, as it would have without the wait.
11
+ *
12
+ * Call it first in an overridden `focus()`, and return when it says it waits:
13
+ *
14
+ * ```ts
15
+ * override focus(options?: FocusOptions): void {
16
+ * if (deferFocus(this, options)) return;
17
+ * this._input?.focus(options);
18
+ * }
19
+ * ```
20
+ *
21
+ * @returns true when the call waits for the first render
22
+ */
23
+ export declare function deferFocus(host: LitElement, options?: FocusOptions): boolean;
24
+ //# sourceMappingURL=defer-focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defer-focus.d.ts","sourceRoot":"","sources":["../../src/utilities/defer-focus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAQ5E"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Holds on to a `focus()` that comes before the first render.
3
+ *
4
+ * A component that hands focus to an element in its shadow root has nothing to
5
+ * hand it to until it has rendered, so `focus()` right after the element is put
6
+ * in the page did nothing. A site that copies a field and focuses the copy then
7
+ * leaves focus where it was. This runs the call again once the component has
8
+ * rendered, unless focus has moved on in the meantime: a later `focus()` on
9
+ * something else wins, as it would have without the wait.
10
+ *
11
+ * Call it first in an overridden `focus()`, and return when it says it waits:
12
+ *
13
+ * ```ts
14
+ * override focus(options?: FocusOptions): void {
15
+ * if (deferFocus(this, options)) return;
16
+ * this._input?.focus(options);
17
+ * }
18
+ * ```
19
+ *
20
+ * @returns true when the call waits for the first render
21
+ */
22
+ export function deferFocus(host, options) {
23
+ if (host.hasUpdated)
24
+ return false;
25
+ const before = document.activeElement;
26
+ void host.updateComplete.then(() => {
27
+ if (!host.isConnected || document.activeElement !== before)
28
+ return;
29
+ host.focus(options);
30
+ });
31
+ return true;
32
+ }
33
+ //# sourceMappingURL=defer-focus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defer-focus.js","sourceRoot":"","sources":["../../src/utilities/defer-focus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,UAAU,CAAC,IAAgB,EAAE,OAAsB;IAClE,IAAI,IAAI,CAAC,UAAU;QAAE,OAAO,KAAK,CAAC;IAClC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC;IACtC,KAAK,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE;QAClC,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,QAAQ,CAAC,aAAa,KAAK,MAAM;YAAE,OAAO;QACnE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EAs6E7B,CAAC"}
1
+ {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EAq7E7B,CAAC"}
@@ -115,6 +115,11 @@ export const devRules = [
115
115
  "message": "The `item-width` attribute is now `item-min-width`. Rename it here and on every other nldd-collection.",
116
116
  "context": "nldd-collection[item-width]"
117
117
  },
118
+ {
119
+ "id": "collection-no-child-with-role",
120
+ "message": "The collection is a list and makes each child a list item, but this child has a role of its own, which would be lost. It stays as it is, so the list now holds something that is no list item. Put the content in an nldd-card, or wrap it in a div.",
121
+ "context": "nldd-collection > :not([slot]):is(a, article, aside, button, details, dialog, fieldset, figure, footer, form, h1, h2, h3, h4, h5, h6, header, img, li, main, nav, ol, section, table, ul, [role]:not([role=\"\"]):not([role=\"listitem\"]))"
122
+ },
118
123
  {
119
124
  "id": "combo-box-needs-name",
120
125
  "message": "nldd-combo-box needs `accessible-label` or a labeled nldd-form-field around it, or it has no accessible name.",
@@ -335,6 +340,11 @@ export const devRules = [
335
340
  "message": "`expanded` needs somewhere to live: make the row interactive (href, button or checkbox), or mark the segment that does the disclosing with `disclosure`.",
336
341
  "context": "nldd-list-item:state(expanded-without-control)"
337
342
  },
343
+ {
344
+ "id": "list-item-label-needs-title",
345
+ "message": "`accessible-label` does not start with what the row shows. The label replaces the row's text for assistive technology, so someone who says the visible words to voice control finds nothing (WCAG 2.5.3). Start the label with the title, or leave it off and let the row's text be the name.",
346
+ "context": "nldd-list-item:state(label-without-title)"
347
+ },
338
348
  {
339
349
  "id": "list-item-needs-list",
340
350
  "message": "nldd-list-item needs a parent nldd-list, which gives the row its type and keyboard behaviour.",
@@ -828,6 +838,11 @@ export const devRules = [
828
838
  "message": "`logo-href` and `website-href` go to the same page; leave out `logo-href` so the start page is one link instead of two.",
829
839
  "context": "nldd-top-navigation-bar:state(same-href)"
830
840
  },
841
+ {
842
+ "id": "top-title-bar-anchor-needs-heading",
843
+ "message": "`collapse-anchor` points at an element that is no heading and holds none. The bar keeps its own title as the heading, so the page has one, but a screen reader now finds the title twice. Point the anchor at the nldd-title that starts the content.",
844
+ "context": "nldd-top-title-bar:state(anchor-not-heading)"
845
+ },
831
846
  {
832
847
  "id": "top-title-bar-anchor-not-found",
833
848
  "message": "`collapse-anchor` matches nothing yet. If it never renders, the bar keeps its own title and reads it out twice.",