@nldd/design-system 0.12.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (428) hide show
  1. package/custom-elements.json +3253 -398
  2. package/dist/components/actions/button/button.d.ts +6 -1
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.i18n.d.ts +1 -0
  5. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.i18n.js +1 -0
  7. package/dist/components/actions/button/button.i18n.js.map +1 -1
  8. package/dist/components/actions/button/button.js +7 -0
  9. package/dist/components/actions/button/button.js.map +1 -1
  10. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.template.js +5 -2
  12. package/dist/components/actions/button/button.template.js.map +1 -1
  13. package/dist/components/actions/button-group/button-group.d.ts +4 -3
  14. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  15. package/dist/components/actions/button-group/button-group.js +4 -3
  16. package/dist/components/actions/button-group/button-group.js.map +1 -1
  17. package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
  18. package/dist/components/actions/button-group/button-group.styles.js +6 -6
  19. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  20. package/dist/components/actions/icon-button/icon-button.d.ts +8 -1
  21. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  22. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -0
  23. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  24. package/dist/components/actions/icon-button/icon-button.i18n.js +1 -0
  25. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  26. package/dist/components/actions/icon-button/icon-button.js +9 -0
  27. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  28. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  29. package/dist/components/actions/icon-button/icon-button.template.js +5 -2
  30. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  31. package/dist/components/actions/menu/menu-divider.d.ts +14 -0
  32. package/dist/components/actions/menu/menu-divider.d.ts.map +1 -0
  33. package/dist/components/actions/menu/menu-divider.js +33 -0
  34. package/dist/components/actions/menu/menu-divider.js.map +1 -0
  35. package/dist/components/actions/menu/menu-group.d.ts +35 -0
  36. package/dist/components/actions/menu/menu-group.d.ts.map +1 -0
  37. package/dist/components/actions/menu/menu-group.js +69 -0
  38. package/dist/components/actions/menu/menu-group.js.map +1 -0
  39. package/dist/components/actions/menu/menu-item.d.ts +86 -0
  40. package/dist/components/actions/menu/menu-item.d.ts.map +1 -0
  41. package/dist/components/actions/menu/menu-item.js +279 -0
  42. package/dist/components/actions/menu/menu-item.js.map +1 -0
  43. package/dist/components/actions/menu/menu.chain.d.ts +40 -0
  44. package/dist/components/actions/menu/menu.chain.d.ts.map +1 -0
  45. package/dist/components/actions/menu/menu.chain.js +150 -0
  46. package/dist/components/actions/menu/menu.chain.js.map +1 -0
  47. package/dist/components/actions/menu/menu.d.ts +54 -269
  48. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  49. package/dist/components/actions/menu/menu.js +106 -981
  50. package/dist/components/actions/menu/menu.js.map +1 -1
  51. package/dist/components/actions/menu/menu.pointer.d.ts +61 -0
  52. package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -0
  53. package/dist/components/actions/menu/menu.pointer.js +143 -0
  54. package/dist/components/actions/menu/menu.pointer.js.map +1 -0
  55. package/dist/components/actions/menu/menu.safe-triangle.d.ts +79 -0
  56. package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -0
  57. package/dist/components/actions/menu/menu.safe-triangle.js +198 -0
  58. package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -0
  59. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  60. package/dist/components/actions/menu/menu.template.js +5 -4
  61. package/dist/components/actions/menu/menu.template.js.map +1 -1
  62. package/dist/components/actions/toolbar/toolbar-item.d.ts +46 -0
  63. package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -0
  64. package/dist/components/actions/toolbar/toolbar-item.js +113 -0
  65. package/dist/components/actions/toolbar/toolbar-item.js.map +1 -0
  66. package/dist/components/actions/toolbar/toolbar-item.template.d.ts +3 -0
  67. package/dist/components/actions/toolbar/toolbar-item.template.d.ts.map +1 -0
  68. package/dist/components/actions/toolbar/toolbar-item.template.js +12 -0
  69. package/dist/components/actions/toolbar/toolbar-item.template.js.map +1 -0
  70. package/dist/components/actions/toolbar/toolbar-title.d.ts +43 -0
  71. package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -0
  72. package/dist/components/actions/toolbar/toolbar-title.js +111 -0
  73. package/dist/components/actions/toolbar/toolbar-title.js.map +1 -0
  74. package/dist/components/actions/toolbar/toolbar-title.template.d.ts +3 -0
  75. package/dist/components/actions/toolbar/toolbar-title.template.d.ts.map +1 -0
  76. package/dist/components/actions/toolbar/toolbar-title.template.js +33 -0
  77. package/dist/components/actions/toolbar/toolbar-title.template.js.map +1 -0
  78. package/dist/components/actions/toolbar/toolbar.d.ts +16 -111
  79. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  80. package/dist/components/actions/toolbar/toolbar.js +50 -423
  81. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  82. package/dist/components/actions/toolbar/toolbar.layout.d.ts +40 -0
  83. package/dist/components/actions/toolbar/toolbar.layout.d.ts.map +1 -0
  84. package/dist/components/actions/toolbar/toolbar.layout.js +76 -0
  85. package/dist/components/actions/toolbar/toolbar.layout.js.map +1 -0
  86. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +52 -0
  87. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +1 -0
  88. package/dist/components/actions/toolbar/toolbar.overflow-menu.js +105 -0
  89. package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +1 -0
  90. package/dist/components/actions/toolbar/toolbar.template.d.ts +1 -4
  91. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  92. package/dist/components/actions/toolbar/toolbar.template.js +0 -41
  93. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  94. package/dist/components/{breakpoints-Bpf2MgjM.js → breakpoints-Bti55RWY.js} +1 -2
  95. package/dist/components/components.js +5511 -3932
  96. package/dist/components/content/avatar/avatar.d.ts +2 -1
  97. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  98. package/dist/components/content/avatar/avatar.js +12 -1
  99. package/dist/components/content/avatar/avatar.js.map +1 -1
  100. package/dist/components/content/avatar-group/avatar-group.d.ts +30 -2
  101. package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -1
  102. package/dist/components/content/avatar-group/avatar-group.i18n.d.ts +1 -0
  103. package/dist/components/content/avatar-group/avatar-group.i18n.d.ts.map +1 -1
  104. package/dist/components/content/avatar-group/avatar-group.i18n.js +1 -0
  105. package/dist/components/content/avatar-group/avatar-group.i18n.js.map +1 -1
  106. package/dist/components/content/avatar-group/avatar-group.js +96 -7
  107. package/dist/components/content/avatar-group/avatar-group.js.map +1 -1
  108. package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
  109. package/dist/components/content/avatar-group/avatar-group.styles.js +35 -1
  110. package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
  111. package/dist/components/content/avatar-group/avatar-group.template.d.ts +1 -0
  112. package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -1
  113. package/dist/components/content/avatar-group/avatar-group.template.js +52 -29
  114. package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -1
  115. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  116. package/dist/components/content/code-viewer/code-viewer.styles.js +48 -14
  117. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  118. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  119. package/dist/components/content/icon/icon-aliases.js +30 -0
  120. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  121. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  122. package/dist/components/content/icon/icon-gallery-status.js +16 -0
  123. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  124. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  125. package/dist/components/content/icon/icon-registry.js +16 -3
  126. package/dist/components/content/icon/icon-registry.js.map +1 -1
  127. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  128. package/dist/components/content/tooltip/tooltip.js +2 -0
  129. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  130. package/dist/components/{decorate-CO88j7Lc.js → decorate-Cz9-peTN.js} +1 -2
  131. package/dist/components/{dist-B5E3q-ea.js → dist-B9YBOGFW.js} +4 -6
  132. package/dist/components/{dist-BWlUmyq3.js → dist-BFZM0YsR.js} +57 -36
  133. package/dist/components/{dist-BFw_yEMS.js → dist-BNkeFjc3.js} +5 -7
  134. package/dist/components/{dist-Co-tsc9S.js → dist-BaLc58I_.js} +7 -9
  135. package/dist/components/{dist-BOVSVPSz.js → dist-Bm3708s5.js} +3 -4
  136. package/dist/components/{dist-IPm8ilWf.js → dist-CJ9uLG0u.js} +5 -17
  137. package/dist/components/{dist-Dz28se9B.js → dist-CJm4tkNC.js} +4 -6
  138. package/dist/components/{dist-CC8oiVtm.js → dist-CSC1dG3L.js} +2 -3
  139. package/dist/components/{dist-BPB3rWnd.js → dist-DHhnz3Gv.js} +3 -4
  140. package/dist/components/{dist-Dn9pjiud.js → dist-DgjvHvsN.js} +6 -8
  141. package/dist/components/{dist-COKR0tYU.js → dist-PeUX4vPq.js} +3 -6
  142. package/dist/components/{dist-D_9ZyZ5v.js → dist-YYLChwRq.js} +5 -7
  143. package/dist/components/{dist-BNLAXAyO.js → dist-m70B83qb.js} +4 -6
  144. package/dist/components/{gherkin-uCVRxsGf.js → gherkin-DzYbEwDO.js} +1 -2
  145. package/dist/components/{icon-DFhgRf3P.js → icon-DZ1UXCzO.js} +42 -16
  146. package/dist/components/{icon-button-Sxkh5cVr.js → icon-button-984CwkU1.js} +106 -43
  147. package/dist/components/{input-modality-DhTeUxKi.js → input-modality-CiPLYYMN.js} +1 -2
  148. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  149. package/dist/components/inputs/code-editor/code-editor.styles.js +42 -7
  150. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  151. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  152. package/dist/components/inputs/combo-box/combo-box.styles.js +1 -0
  153. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  154. package/dist/components/inputs/date-field/date-field.d.ts +41 -28
  155. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  156. package/dist/components/inputs/date-field/date-field.dates.d.ts +60 -0
  157. package/dist/components/inputs/date-field/date-field.dates.d.ts.map +1 -0
  158. package/dist/components/inputs/date-field/date-field.dates.js +106 -0
  159. package/dist/components/inputs/date-field/date-field.dates.js.map +1 -0
  160. package/dist/components/inputs/date-field/date-field.i18n.d.ts +4 -0
  161. package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
  162. package/dist/components/inputs/date-field/date-field.i18n.js +6 -0
  163. package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
  164. package/dist/components/inputs/date-field/date-field.js +110 -142
  165. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  166. package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
  167. package/dist/components/inputs/date-field/date-field.styles.js +1 -0
  168. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  169. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  170. package/dist/components/inputs/date-field/date-field.template.js +21 -17
  171. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  172. package/dist/components/inputs/date-picker/date-picker.d.ts +2 -2
  173. package/dist/components/inputs/date-picker/date-picker.i18n.d.ts +1 -1
  174. package/dist/components/inputs/date-picker/date-picker.i18n.js +1 -1
  175. package/dist/components/inputs/date-picker/date-picker.i18n.js.map +1 -1
  176. package/dist/components/inputs/date-picker/date-picker.template.js +1 -1
  177. package/dist/components/inputs/date-picker/date-picker.template.js.map +1 -1
  178. package/dist/components/inputs/file-field/file-field.d.ts +86 -10
  179. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  180. package/dist/components/inputs/file-field/file-field.drop.d.ts +34 -0
  181. package/dist/components/inputs/file-field/file-field.drop.d.ts.map +1 -0
  182. package/dist/components/inputs/file-field/file-field.drop.js +176 -0
  183. package/dist/components/inputs/file-field/file-field.drop.js.map +1 -0
  184. package/dist/components/inputs/file-field/file-field.i18n.d.ts +20 -1
  185. package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
  186. package/dist/components/inputs/file-field/file-field.i18n.js +20 -1
  187. package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
  188. package/dist/components/inputs/file-field/file-field.js +283 -15
  189. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  190. package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
  191. package/dist/components/inputs/file-field/file-field.styles.js +245 -10
  192. package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
  193. package/dist/components/inputs/file-field/file-field.template.d.ts +1 -0
  194. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  195. package/dist/components/inputs/file-field/file-field.template.js +167 -28
  196. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  197. package/dist/components/inputs/file-field/file-field.truncate.d.ts +22 -0
  198. package/dist/components/inputs/file-field/file-field.truncate.d.ts.map +1 -0
  199. package/dist/components/inputs/file-field/file-field.truncate.js +62 -0
  200. package/dist/components/inputs/file-field/file-field.truncate.js.map +1 -0
  201. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  202. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -0
  203. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  204. package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
  205. package/dist/components/inputs/password-field/password-field.styles.js +1 -0
  206. package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
  207. package/dist/components/inputs/search-field/search-field.d.ts +1 -1
  208. package/dist/components/inputs/search-field/search-field.js +1 -1
  209. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  210. package/dist/components/inputs/search-field/search-field.styles.js +1 -0
  211. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  212. package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -3
  213. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  214. package/dist/components/inputs/segmented-control/segmented-control.js +8 -10
  215. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  216. package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts +10 -0
  217. package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -0
  218. package/dist/components/inputs/text-editor/text-editor.code-copy.js +141 -0
  219. package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -0
  220. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  221. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.d.ts.map +1 -1
  222. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js +55 -7
  223. package/dist/components/inputs/text-editor/text-editor.hidden-syntax.js.map +1 -1
  224. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts +5 -0
  225. package/dist/components/inputs/text-editor/text-editor.i18n.d.ts.map +1 -1
  226. package/dist/components/inputs/text-editor/text-editor.i18n.js +7 -0
  227. package/dist/components/inputs/text-editor/text-editor.i18n.js.map +1 -1
  228. package/dist/components/inputs/text-editor/text-editor.js +34 -3
  229. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  230. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  231. package/dist/components/inputs/text-editor/text-editor.markdown.js +6 -2
  232. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  233. package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -1
  234. package/dist/components/inputs/text-editor/text-editor.selection.js +43 -7
  235. package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -1
  236. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  237. package/dist/components/inputs/text-editor/text-editor.styles.js +147 -7
  238. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  239. package/dist/components/inputs/text-editor/text-editor.tasks.d.ts +17 -0
  240. package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -0
  241. package/dist/components/inputs/text-editor/text-editor.tasks.js +113 -0
  242. package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -0
  243. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  244. package/dist/components/inputs/text-field/text-field.styles.js +1 -0
  245. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  246. package/dist/components/inputs/time-field/time-field.d.ts +26 -40
  247. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  248. package/dist/components/inputs/time-field/time-field.i18n.d.ts +3 -0
  249. package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
  250. package/dist/components/inputs/time-field/time-field.i18n.js +5 -0
  251. package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
  252. package/dist/components/inputs/time-field/time-field.js +68 -162
  253. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  254. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  255. package/dist/components/inputs/time-field/time-field.styles.js +1 -0
  256. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  257. package/dist/components/inputs/time-field/time-field.times.d.ts +74 -0
  258. package/dist/components/inputs/time-field/time-field.times.d.ts.map +1 -0
  259. package/dist/components/inputs/time-field/time-field.times.js +154 -0
  260. package/dist/components/inputs/time-field/time-field.times.js.map +1 -0
  261. package/dist/components/layout/card/card.d.ts +6 -1
  262. package/dist/components/layout/card/card.d.ts.map +1 -1
  263. package/dist/components/layout/card/card.i18n.d.ts +1 -0
  264. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  265. package/dist/components/layout/card/card.i18n.js +1 -0
  266. package/dist/components/layout/card/card.i18n.js.map +1 -1
  267. package/dist/components/layout/card/card.js +7 -0
  268. package/dist/components/layout/card/card.js.map +1 -1
  269. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  270. package/dist/components/layout/card/card.template.js +5 -2
  271. package/dist/components/layout/card/card.template.js.map +1 -1
  272. package/dist/components/layout/page/page.d.ts +3 -0
  273. package/dist/components/layout/page/page.d.ts.map +1 -1
  274. package/dist/components/layout/page/page.js +20 -3
  275. package/dist/components/layout/page/page.js.map +1 -1
  276. package/dist/components/layout/page/page.styles.d.ts.map +1 -1
  277. package/dist/components/layout/page/page.styles.js +25 -2
  278. package/dist/components/layout/page/page.styles.js.map +1 -1
  279. package/dist/components/layout/page/page.template.js +1 -1
  280. package/dist/components/layout/page/page.template.js.map +1 -1
  281. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -1
  282. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +61 -0
  283. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
  284. package/dist/components/layout/page-sections/hero/hero.d.ts +1 -1
  285. package/dist/components/layout/page-sections/hero/hero.js +1 -1
  286. package/dist/components/layout/popover/popover.d.ts +6 -0
  287. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  288. package/dist/components/layout/popover/popover.js +16 -0
  289. package/dist/components/layout/popover/popover.js.map +1 -1
  290. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  291. package/dist/components/layout/popover/popover.styles.js +13 -0
  292. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  293. package/dist/components/layout/sheet/sheet.d.ts +5 -0
  294. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  295. package/dist/components/layout/sheet/sheet.js +14 -6
  296. package/dist/components/layout/sheet/sheet.js.map +1 -1
  297. package/dist/components/layout/sheet/sheet.template.d.ts.map +1 -1
  298. package/dist/components/layout/sheet/sheet.template.js +1 -0
  299. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  300. package/dist/components/lists-and-tables/list-item/list-item.d.ts +6 -1
  301. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  302. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +1 -0
  303. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  304. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -0
  305. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  306. package/dist/components/lists-and-tables/list-item/list-item.js +12 -3
  307. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  308. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  309. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  310. package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
  311. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  312. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +6 -1
  313. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  314. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +1 -0
  315. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -1
  316. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +1 -0
  317. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -1
  318. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +12 -3
  319. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  320. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  321. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  322. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +2 -1
  323. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  324. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  325. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +5 -0
  326. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  327. package/dist/components/navigation/link/link.d.ts +6 -1
  328. package/dist/components/navigation/link/link.d.ts.map +1 -1
  329. package/dist/components/navigation/link/link.i18n.d.ts +1 -0
  330. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  331. package/dist/components/navigation/link/link.i18n.js +1 -0
  332. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  333. package/dist/components/navigation/link/link.js +7 -0
  334. package/dist/components/navigation/link/link.js.map +1 -1
  335. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  336. package/dist/components/navigation/link/link.template.js +5 -2
  337. package/dist/components/navigation/link/link.template.js.map +1 -1
  338. package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
  339. package/dist/components/navigation/menu-bar/menu-bar.js +2 -0
  340. package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
  341. package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -0
  342. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  343. package/dist/components/navigation/tab-bar/tab-bar.js +9 -0
  344. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  345. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +9 -24
  346. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  347. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +29 -220
  348. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  349. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +48 -0
  350. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -0
  351. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +220 -0
  352. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -0
  353. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  354. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +22 -2
  355. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  356. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
  357. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -0
  358. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
  359. package/dist/components/{reflect-non-default-OLaK60rT.js → reflect-non-default-B9wQcnne.js} +1 -2
  360. package/dist/components/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  361. package/dist/components/{shadow-resets-CPa58rmc.js → shadow-resets-BwOyyZFH.js} +1 -2
  362. package/dist/components/{shell-C61GCsJA.js → shell-Dh5IwHd-.js} +1 -2
  363. package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
  364. package/dist/components/status-and-feedback/banner/banner.js +2 -2
  365. package/dist/components/status-and-feedback/banner/banner.js.map +1 -1
  366. package/dist/components/status-and-feedback/notification/notification.d.ts +1 -1
  367. package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
  368. package/dist/components/status-and-feedback/notification/notification.js +4 -2
  369. package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
  370. package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.d.ts +1 -1
  371. package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js +1 -1
  372. package/dist/components/status-and-feedback/progress-bar/progress-bar.i18n.js.map +1 -1
  373. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
  374. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  375. package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.d.ts +1 -1
  376. package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js +1 -1
  377. package/dist/components/status-and-feedback/progress-circle/progress-circle.i18n.js.map +1 -1
  378. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
  379. package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
  380. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +10 -1
  381. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
  382. package/dist/components/status-and-feedback/step-bar/step-bar.js +22 -1
  383. package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
  384. package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -1
  385. package/dist/components/status-and-feedback/step-bar/step-bar.template.js +2 -0
  386. package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
  387. package/dist/components/{toml-C2HBbPgG.js → toml-D0Pix_8Q.js} +1 -2
  388. package/dist/components/{visibility-mixin-djNSG5ZN.js → visibility-mixin-C-K7ho5Q.js} +4 -6
  389. package/dist/components/{with-translations-C6QfP6_S.js → with-translations-DRuOq3QK.js} +14 -10
  390. package/dist/css/themes/donkergeel.css +5 -0
  391. package/dist/css/themes/geel.css +5 -0
  392. package/dist/css/themes.css +10 -0
  393. package/dist/css/variables.css +11 -11
  394. package/dist/nldd.min.js +2089 -1398
  395. package/dist/translations/en-US.d.ts.map +1 -1
  396. package/dist/translations/en-US.js +42 -4
  397. package/dist/translations/en-US.js.map +1 -1
  398. package/dist/translations/fy.d.ts.map +1 -1
  399. package/dist/translations/fy.js +42 -4
  400. package/dist/translations/fy.js.map +1 -1
  401. package/dist/translations/nl.generated.d.ts +42 -4
  402. package/dist/translations/nl.generated.d.ts.map +1 -1
  403. package/dist/translations/pap-AW.d.ts.map +1 -1
  404. package/dist/translations/pap-AW.js +42 -4
  405. package/dist/translations/pap-AW.js.map +1 -1
  406. package/dist/translations/pap-CW.d.ts.map +1 -1
  407. package/dist/translations/pap-CW.js +42 -4
  408. package/dist/translations/pap-CW.js.map +1 -1
  409. package/dist/types/vue.d.ts +69 -33
  410. package/dist/utilities/carried-context.d.ts +20 -0
  411. package/dist/utilities/carried-context.d.ts.map +1 -0
  412. package/dist/utilities/carried-context.js +76 -0
  413. package/dist/utilities/carried-context.js.map +1 -0
  414. package/dist/utilities/codemirror/languages.d.ts +5 -1
  415. package/dist/utilities/codemirror/languages.d.ts.map +1 -1
  416. package/dist/utilities/codemirror/languages.js +21 -1
  417. package/dist/utilities/codemirror/languages.js.map +1 -1
  418. package/dist/utilities/dismiss-from-title-bar.d.ts +1 -1
  419. package/dist/utilities/dismiss-from-title-bar.js +1 -1
  420. package/dist/utilities/form-associated-mixin.d.ts +7 -0
  421. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  422. package/dist/utilities/form-associated-mixin.js +13 -1
  423. package/dist/utilities/form-associated-mixin.js.map +1 -1
  424. package/dist/utilities/link-hint.d.ts +11 -0
  425. package/dist/utilities/link-hint.d.ts.map +1 -1
  426. package/dist/utilities/link-hint.js +15 -0
  427. package/dist/utilities/link-hint.js.map +1 -1
  428. package/package.json +2 -2
@@ -1,14 +1,14 @@
1
- import { t as inheritedTextReset } from "./shadow-resets-CPa58rmc.js";
2
- import { a as linkRel, i as linkHintKey, r as translate, t as withTranslations } from "./with-translations-C6QfP6_S.js";
3
- import { t as reflectNonDefault } from "./reflect-non-default-OLaK60rT.js";
4
- import { t as __decorate } from "./decorate-CO88j7Lc.js";
5
- import "./icon-DFhgRf3P.js";
6
- import { r as isTouchMode } from "./input-modality-DhTeUxKi.js";
1
+ import { t as inheritedTextReset } from "./shadow-resets-BwOyyZFH.js";
2
+ import { i as downloadLinkHintKey, r as translate, s as linkRel, t as withTranslations } from "./with-translations-DRuOq3QK.js";
3
+ import { t as reflectNonDefault } from "./reflect-non-default-B9wQcnne.js";
4
+ import { t as __decorate } from "./decorate-Cz9-peTN.js";
5
+ import "./icon-DZ1UXCzO.js";
6
+ import { r as isTouchMode } from "./input-modality-CiPLYYMN.js";
7
7
  import { LitElement, css, html, nothing } from "lit";
8
8
  import { customElement, property, state } from "lit/decorators.js";
9
9
  import { classMap } from "lit/directives/class-map.js";
10
10
  import { computePosition, flip, offset, shift } from "@floating-ui/dom";
11
- //#region src/utilities/os.ts
11
+ // src/utilities/os.ts
12
12
  var cached = null;
13
13
  var override = null;
14
14
  function classify(platform) {
@@ -30,8 +30,7 @@ function detectOS() {
30
30
  cached = classify(nav.userAgentData?.platform || nav.platform || "");
31
31
  return cached;
32
32
  }
33
- //#endregion
34
- //#region src/utilities/shortcut.ts
33
+ // src/utilities/shortcut.ts
35
34
  function hasShortcut(hint) {
36
35
  return Boolean(hint.shortcut || hint.shortcutMac || hint.shortcutWindows || hint.shortcutLinux);
37
36
  }
@@ -91,8 +90,7 @@ function shortcutLabel(hint) {
91
90
  linuxKeys: hint.shortcutLinux
92
91
  }, detectOS())).join(" ");
93
92
  }
94
- //#endregion
95
- //#region src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts
93
+ // src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts
96
94
  var keyboardShortcutStyles = css`
97
95
  :host {
98
96
  box-sizing: border-box;
@@ -236,8 +234,7 @@ var keyboardShortcutStyles = css`
236
234
  line-height: var(--_keyboard-shortcut-line-height);
237
235
  }
238
236
  `;
239
- //#endregion
240
- //#region src/components/content/keyboard-shortcut/keyboard-shortcut.template.ts
237
+ // src/components/content/keyboard-shortcut/keyboard-shortcut.template.ts
241
238
  function template$1(component) {
242
239
  const keys = component._parsedKeys;
243
240
  if (keys.length === 0) return html`
@@ -256,8 +253,7 @@ function template$1(component) {
256
253
  </kbd>
257
254
  `;
258
255
  }
259
- //#endregion
260
- //#region src/components/content/keyboard-shortcut/keyboard-shortcut.ts
256
+ // src/components/content/keyboard-shortcut/keyboard-shortcut.ts
261
257
  /**
262
258
  * Nederlandse Digitale Dienst Keyboard Shortcut Component (Lit + TypeScript)
263
259
  *
@@ -366,8 +362,7 @@ __decorate([property({
366
362
  attribute: "debug-os"
367
363
  })], NLDDKeyboardShortcut.prototype, "debugOS", void 0);
368
364
  NLDDKeyboardShortcut = __decorate([customElement("nldd-keyboard-shortcut")], NLDDKeyboardShortcut);
369
- //#endregion
370
- //#region src/utilities/popup-anchor-controller.ts
365
+ // src/utilities/popup-anchor-controller.ts
371
366
  var OVERLAY_SELECTOR = "nldd-menu, nldd-popover";
372
367
  var PopupAnchorController = class {
373
368
  constructor(host, options = {}) {
@@ -415,8 +410,7 @@ var PopupAnchorController = class {
415
410
  return true;
416
411
  }
417
412
  };
418
- //#endregion
419
- //#region src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts
413
+ // src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts
420
414
  var activityIndicatorStyles = css`
421
415
  :host {
422
416
  box-sizing: border-box;
@@ -662,8 +656,7 @@ var activityIndicatorStyles = css`
662
656
  }
663
657
  }
664
658
  `;
665
- //#endregion
666
- //#region src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts
659
+ // src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts
667
660
  function activityIndicatorTemplate(component) {
668
661
  const disableContent = component._visible && !component.complete && component._hasContent;
669
662
  const renderBackdrop = component._hasContent && !component.noBackdrop;
@@ -702,11 +695,9 @@ function activityIndicatorTemplate(component) {
702
695
  </div>
703
696
  `;
704
697
  }
705
- //#endregion
706
- //#region src/components/status-and-feedback/activity-indicator/activity-indicator.i18n.ts
698
+ // src/components/status-and-feedback/activity-indicator/activity-indicator.i18n.ts
707
699
  var nlddActivityIndicatorTranslations = { "components.activity-indicator.loading-label": "Laden" };
708
- //#endregion
709
- //#region src/components/status-and-feedback/activity-indicator/activity-indicator.ts
700
+ // src/components/status-and-feedback/activity-indicator/activity-indicator.ts
710
701
  /**
711
702
  * Nederlandse Digitale Dienst Activity Indicator Component (Lit + TypeScript)
712
703
  *
@@ -883,8 +874,7 @@ __decorate([property({ type: Object })], NLDDActivityIndicator.prototype, "trans
883
874
  __decorate([state()], NLDDActivityIndicator.prototype, "_visible", void 0);
884
875
  __decorate([state()], NLDDActivityIndicator.prototype, "_hasContent", void 0);
885
876
  NLDDActivityIndicator = __decorate([customElement("nldd-activity-indicator")], NLDDActivityIndicator);
886
- //#endregion
887
- //#region src/components/actions/icon-button/icon-button.styles.ts
877
+ // src/components/actions/icon-button/icon-button.styles.ts
888
878
  var iconButtonStyles = css`
889
879
  :host {
890
880
  box-sizing: border-box;
@@ -1315,8 +1305,7 @@ var iconButtonStyles = css`
1315
1305
  color: var(--_icon-button-primary-content-color);
1316
1306
  }
1317
1307
  `;
1318
- //#endregion
1319
- //#region src/components/content/tooltip/tooltip.styles.ts
1308
+ // src/components/content/tooltip/tooltip.styles.ts
1320
1309
  var tooltipStyles = css`
1321
1310
  :host {
1322
1311
  box-sizing: border-box;
@@ -1430,8 +1419,7 @@ var tooltipStyles = css`
1430
1419
  }
1431
1420
  }
1432
1421
  `;
1433
- //#endregion
1434
- //#region src/components/content/tooltip/tooltip.template.ts
1422
+ // src/components/content/tooltip/tooltip.template.ts
1435
1423
  function tooltipTemplate(component) {
1436
1424
  return html`
1437
1425
  <slot
@@ -1466,8 +1454,78 @@ function tooltipTemplate(component) {
1466
1454
  </div>
1467
1455
  `;
1468
1456
  }
1469
- //#endregion
1470
- //#region src/components/content/tooltip/tooltip.ts
1457
+ // src/utilities/carried-context.ts
1458
+ /**
1459
+ * The color scheme and language an element had in its place on the page,
1460
+ * carried along when a component moves it somewhere else: a submenu into
1461
+ * `<body>` for a drill-in, an overflow menu or sheet that lives in `<body>`, a
1462
+ * notification into the shared area.
1463
+ *
1464
+ * Both inherit, so a moved element takes those of its new parent. A submenu
1465
+ * from a dark section of the page turns light, and a screen reader reads an
1466
+ * English menu with Dutch pronunciation. A theme needs nothing: it sits on
1467
+ * `:root`, which is the same everywhere.
1468
+ *
1469
+ * Only what this helper wrote itself is ever overwritten or taken back: a
1470
+ * `lang` or `color-scheme` set on the element by its author stays.
1471
+ */
1472
+ var carried = /* @__PURE__ */ new WeakMap();
1473
+ /** The language of an element, looking past shadow roots to their hosts. */
1474
+ function langOf(el) {
1475
+ let node = el;
1476
+ while (node) {
1477
+ const owner = node.closest("[lang]");
1478
+ if (owner) return owner.getAttribute("lang");
1479
+ const root = node.getRootNode();
1480
+ node = root instanceof ShadowRoot ? root.host : null;
1481
+ }
1482
+ return null;
1483
+ }
1484
+ /** Gives `element` the color scheme and language of `origin`. Call it each
1485
+ * time the element shows, since the page around the origin may have changed. */
1486
+ function carryContext(element, origin) {
1487
+ if (!origin?.isConnected) return;
1488
+ const previous = carried.get(element) ?? {
1489
+ scheme: null,
1490
+ lang: null
1491
+ };
1492
+ const next = {
1493
+ scheme: previous.scheme,
1494
+ lang: previous.lang
1495
+ };
1496
+ const ownScheme = element.style.colorScheme;
1497
+ if (!ownScheme || ownScheme === previous.scheme) {
1498
+ const scheme = getComputedStyle(origin).colorScheme;
1499
+ if (scheme && scheme !== "normal") {
1500
+ element.style.colorScheme = scheme;
1501
+ next.scheme = element.style.colorScheme;
1502
+ } else {
1503
+ if (previous.scheme) element.style.removeProperty("color-scheme");
1504
+ next.scheme = null;
1505
+ }
1506
+ }
1507
+ const ownLang = element.getAttribute("lang");
1508
+ if (ownLang === null || ownLang === previous.lang) {
1509
+ const lang = langOf(origin);
1510
+ if (lang) {
1511
+ element.setAttribute("lang", lang);
1512
+ next.lang = lang;
1513
+ } else {
1514
+ if (previous.lang) element.removeAttribute("lang");
1515
+ next.lang = null;
1516
+ }
1517
+ }
1518
+ carried.set(element, next);
1519
+ }
1520
+ /** Takes back what `carryContext` wrote, for an element returned to its place. */
1521
+ function releaseContext(element) {
1522
+ const previous = carried.get(element);
1523
+ if (!previous) return;
1524
+ if (previous.scheme && element.style.colorScheme === previous.scheme) element.style.removeProperty("color-scheme");
1525
+ if (previous.lang && element.getAttribute("lang") === previous.lang) element.removeAttribute("lang");
1526
+ carried.delete(element);
1527
+ }
1528
+ // src/components/content/tooltip/tooltip.ts
1471
1529
  /**
1472
1530
  * Nederlandse Digitale Dienst Tooltip Component (Lit + TypeScript)
1473
1531
  *
@@ -1630,6 +1688,7 @@ var NLDDTooltip = (_NLDDTooltip = class NLDDTooltip extends LitElement {
1630
1688
  });
1631
1689
  document.body.appendChild(this._descriptionEl);
1632
1690
  }
1691
+ carryContext(this._descriptionEl, this);
1633
1692
  if (this._descriptionEl.textContent !== description) this._descriptionEl.textContent = description;
1634
1693
  if (trigger.getAttribute("aria-describedby") !== this._tooltipId) trigger.setAttribute("aria-describedby", this._tooltipId);
1635
1694
  } else {
@@ -1812,8 +1871,7 @@ __decorate([property({
1812
1871
  })], NLDDTooltip.prototype, "timing", void 0);
1813
1872
  __decorate([state()], NLDDTooltip.prototype, "_visible", void 0);
1814
1873
  NLDDTooltip = __decorate([customElement("nldd-tooltip")], NLDDTooltip);
1815
- //#endregion
1816
- //#region src/components/actions/icon-button/icon-button.template.ts
1874
+ // src/components/actions/icon-button/icon-button.template.ts
1817
1875
  function renderContent(component) {
1818
1876
  return html`
1819
1877
  <span class="icon-button__icon-area">
@@ -1834,7 +1892,8 @@ function renderContent(component) {
1834
1892
  `;
1835
1893
  }
1836
1894
  function template() {
1837
- const hintKey = linkHintKey(this.href, this.target);
1895
+ const hintKey = downloadLinkHintKey(this.href, this.target, this.download);
1896
+ if (this.href) this.download, this.target;
1838
1897
  const linkHint = hintKey ? this._t(`components.icon-button.${hintKey}`) : "";
1839
1898
  const label = [[this.accessibleLabel || this.text, shortcutLabel(this)].filter(Boolean).join(" "), linkHint].filter(Boolean).join(", ") || nothing;
1840
1899
  const content = renderContent(this);
@@ -1859,6 +1918,7 @@ function template() {
1859
1918
  href=${this.href}
1860
1919
  target=${this.target || nothing}
1861
1920
  rel=${resolvedRel || nothing}
1921
+ download=${this.download ?? nothing}
1862
1922
  aria-disabled=${this.disabled ? "true" : nothing}
1863
1923
  aria-label=${label}
1864
1924
  aria-haspopup=${this.popupType || nothing}
@@ -1907,15 +1967,14 @@ function template() {
1907
1967
  const popupSlot = html`<slot name="popup" @slotchange=${this._popup.handleSlotChange}></slot>`;
1908
1968
  return html`${control}${loadingIndicator}${popupSlot}`;
1909
1969
  }
1910
- //#endregion
1911
- //#region src/components/actions/icon-button/icon-button.i18n.ts
1970
+ // src/components/actions/icon-button/icon-button.i18n.ts
1912
1971
  var nlddIconButtonTranslations = {
1913
1972
  "components.icon-button.link-hint-new-tab-lowercase-label": "opent in nieuw tabblad",
1914
1973
  "components.icon-button.link-hint-external-lowercase-label": "andere website",
1915
- "components.icon-button.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad"
1974
+ "components.icon-button.link-hint-external-new-tab-lowercase-label": "andere website, opent in nieuw tabblad",
1975
+ "components.icon-button.link-hint-download-lowercase-label": "downloadt bestand"
1916
1976
  };
1917
- //#endregion
1918
- //#region src/components/actions/icon-button/icon-button.ts
1977
+ // src/components/actions/icon-button/icon-button.ts
1919
1978
  /**
1920
1979
  * Nederlandse Digitale Dienst Icon Button Component (Lit + TypeScript)
1921
1980
  *
@@ -1943,6 +2002,7 @@ var nlddIconButtonTranslations = {
1943
2002
  * @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
1944
2003
  * @attr {string} href - When set, renders an <a> element instead of <button>
1945
2004
  * @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
2005
+ * @attr {string} download - Saves the file the link points at instead of opening it; only used with href. Without a value the browser takes the name from the URL, with one that is the file name. A browser ignores it for a URL on another origin and opens the file there. Adds a visually hidden "downloadt bestand" for screen readers. Leave `target` off: a download opens no tab.
1946
2006
  * @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
1947
2007
  * @attr {object} translations - Override translation keys (e.g. the "opens in new tab" announcement); unset keys fall back to Dutch.
1948
2008
  * @attr {string} popovertarget - ID of a popover element to toggle; forwarded to the inner <button>
@@ -1953,6 +2013,8 @@ var nlddIconButtonTranslations = {
1953
2013
  * @example
1954
2014
  * ```html
1955
2015
  * <nldd-icon-button
2016
+ * href="/aanvraag-a-1042.pdf"
2017
+ * download
1956
2018
  * text="Download"
1957
2019
  * icon="download"
1958
2020
  * ></nldd-icon-button>
@@ -1989,6 +2051,7 @@ var _NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement,
1989
2051
  this.shortcutLinux = "";
1990
2052
  this.href = void 0;
1991
2053
  this.target = void 0;
2054
+ this.download = void 0;
1992
2055
  this.rel = void 0;
1993
2056
  this._warnedA11y = false;
1994
2057
  this._popup = new PopupAnchorController(this);
@@ -2134,7 +2197,7 @@ __decorate([property({
2134
2197
  reflect: true
2135
2198
  })], NLDDIconButton.prototype, "href", void 0);
2136
2199
  __decorate([property({ type: String })], NLDDIconButton.prototype, "target", void 0);
2200
+ __decorate([property({ type: String })], NLDDIconButton.prototype, "download", void 0);
2137
2201
  __decorate([property({ type: String })], NLDDIconButton.prototype, "rel", void 0);
2138
2202
  NLDDIconButton = __decorate([customElement("nldd-icon-button")], NLDDIconButton);
2139
- //#endregion
2140
- export { NLDDKeyboardShortcut as a, shortcutLabel as c, PopupAnchorController as i, shortcutsAvailable as l, NLDDTooltip as n, ShortcutAvailabilityController as o, NLDDActivityIndicator as r, hasShortcut as s, NLDDIconButton as t };
2203
+ export { NLDDActivityIndicator as a, ShortcutAvailabilityController as c, shortcutsAvailable as d, releaseContext as i, hasShortcut as l, NLDDTooltip as n, PopupAnchorController as o, carryContext as r, NLDDKeyboardShortcut as s, NLDDIconButton as t, shortcutLabel as u };
@@ -1,4 +1,4 @@
1
- //#region src/utilities/input-modality.ts
1
+ // src/utilities/input-modality.ts
2
2
  var modality = "mouse";
3
3
  var initialized = false;
4
4
  var controller = null;
@@ -39,5 +39,4 @@ function isPointerMode() {
39
39
  function isTouchMode() {
40
40
  return getInputModality() === "touch";
41
41
  }
42
- //#endregion
43
42
  export { isPointerMode as n, isTouchMode as r, isKeyboardMode as t };
@@ -1 +1 @@
1
- {"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBAwI5B,CAAC"}
1
+ {"version":3,"file":"code-editor.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBA2K5B,CAAC"}
@@ -13,10 +13,16 @@ export const codeEditorStyles = css `
13
13
  --_code-editor-caret-color: var(--components-code-editor-caret-color);
14
14
  --_code-editor-corner-radius: 0;
15
15
  --_code-editor-background-color: transparent;
16
- --_code-editor-border-color: transparent;
17
- --_code-editor-border-shadow: none;
16
+ --_code-editor-gutter-background-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
17
+ --_code-editor-gutter-border-width: var(--semantics-dividers-thickness);
18
+ --_code-editor-gutter-border-color: var(--semantics-dividers-color);
19
+ --_code-editor-input-field-border-z-index: 1;
20
+ --_code-editor-input-field-border-color: transparent;
21
+ --_code-editor-input-field-border-shadow: none;
18
22
  --_code-editor-padding-block: 0px;
19
- --_code-editor-padding-inline: 0px;
23
+ /* Room for the caret's own ink at the first and last position of a line.
24
+ Without it the edge carets are clipped. */
25
+ --_code-editor-padding-inline: var(--_code-editor-caret-width);
20
26
  --_code-editor-content-color: var(--semantics-content-color);
21
27
  --_code-editor-font: var(--primitives-font-monospace-sm-regular-snug);
22
28
  --_code-editor-rows: 6;
@@ -50,8 +56,9 @@ export const codeEditorStyles = css `
50
56
  /* Match the other input fields (text-field, textarea): the input-field
51
57
  surface + border + control padding, not the tinted surface. */
52
58
  --_code-editor-background-color: var(--semantics-input-fields-background-color);
53
- --_code-editor-border-color: var(--semantics-input-fields-border-color);
54
- --_code-editor-border-shadow: inset 0 0 0 var(--semantics-input-fields-border-width) var(--_code-editor-border-color);
59
+ --_code-editor-gutter-background-color: var(--_code-editor-background-color);
60
+ --_code-editor-input-field-border-color: var(--semantics-input-fields-border-color);
61
+ --_code-editor-input-field-border-shadow: inset 0 0 0 var(--semantics-input-fields-border-width) var(--_code-editor-input-field-border-color);
55
62
  --_code-editor-padding-block: var(--semantics-controls-md-inline-padding);
56
63
  --_code-editor-padding-inline: var(--semantics-controls-md-inline-padding);
57
64
  }
@@ -64,7 +71,6 @@ export const codeEditorStyles = css `
64
71
  display: flex;
65
72
  position: relative;
66
73
  border-radius: var(--_code-editor-corner-radius);
67
- box-shadow: var(--_code-editor-border-shadow);
68
74
  background-color: var(--_code-editor-background-color);
69
75
  min-height: 0;
70
76
  flex-direction: column;
@@ -75,6 +81,22 @@ export const codeEditorStyles = css `
75
81
  font: var(--_code-editor-font);
76
82
  }
77
83
 
84
+ /* The border ring lies over the content, so the sticky gutter cannot cover
85
+ it. Inset, it takes no layout space. */
86
+ .code-editor::after {
87
+ content: '';
88
+ position: absolute;
89
+ inset: 0;
90
+ z-index: var(--_code-editor-input-field-border-z-index);
91
+ border-radius: inherit;
92
+ box-shadow: var(--_code-editor-input-field-border-shadow);
93
+ pointer-events: none;
94
+ }
95
+
96
+ .code-editor .cm-editor {
97
+ isolation: isolate;
98
+ }
99
+
78
100
  :host([disabled]) .code-editor {
79
101
  opacity: var(--primitives-opacity-disabled);
80
102
  pointer-events: none;
@@ -87,7 +109,7 @@ export const codeEditorStyles = css `
87
109
  :host([appearance="input-field"]) .code-editor:focus-within {
88
110
  outline: var(--semantics-focus-ring-outline);
89
111
  outline-offset: var(--semantics-focus-ring-outline-offset);
90
- box-shadow: var(--semantics-focus-ring-box-shadow), var(--_code-editor-border-shadow);
112
+ box-shadow: var(--semantics-focus-ring-box-shadow);
91
113
  }
92
114
 
93
115
 
@@ -110,6 +132,16 @@ export const codeEditorStyles = css `
110
132
  tab-size: 2;
111
133
  }
112
134
 
135
+ /* The gutter stays put while the code scrolls sideways under it. The
136
+ divider is a gradient: an inset shadow with an offset leaves a hairline on iOS. */
137
+ :host .cm-gutters.cm-gutters {
138
+ background-color: var(--_code-editor-gutter-background-color);
139
+ background-image: linear-gradient(var(--_code-editor-gutter-border-color), var(--_code-editor-gutter-border-color));
140
+ background-repeat: no-repeat;
141
+ background-position: right;
142
+ background-size: var(--_code-editor-gutter-border-width) 100%;
143
+ }
144
+
113
145
  /* Read-only, like a native read-only field: select and copy, but no caret. */
114
146
  :host([readonly]) .cm-cursorLayer {
115
147
  visibility: hidden;
@@ -120,6 +152,9 @@ export const codeEditorStyles = css `
120
152
  :host .cm-cursor.cm-cursor {
121
153
  border-left-color: var(--_code-editor-caret-color);
122
154
  border-left-width: var(--_code-editor-caret-width);
155
+ /* CodeMirror centers its own 1.2px caret with a -0.6px margin. Ours is wider,
156
+ so recenter it on the insertion point from its own width. */
157
+ margin-left: calc(var(--_code-editor-caret-width) / -2);
123
158
  }
124
159
 
125
160
  /* Resize model — rows is the floor in every mode:
@@ -1 +1 @@
1
- {"version":3,"file":"code-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4B/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4GrB,CAAC"}
1
+ {"version":3,"file":"code-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/code-editor/code-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyIrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"combo-box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,yBAwL1B,CAAC"}
1
+ {"version":3,"file":"combo-box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,yBAyL1B,CAAC"}
@@ -87,6 +87,7 @@ export const comboBoxStyles = css `
87
87
  /* # Elements */
88
88
 
89
89
  .combo-box__input {
90
+ border-radius: calc(var(--_combo-box-corner-radius) - var(--semantics-input-fields-border-width));
90
91
  box-sizing: border-box;
91
92
  margin: 0;
92
93
  outline: none;
@@ -1 +1 @@
1
- {"version":3,"file":"combo-box.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;IAmB7B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKrB,CAAC"}
1
+ {"version":3,"file":"combo-box.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/combo-box/combo-box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;IAmB7B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsKrB,CAAC"}
@@ -9,6 +9,15 @@
9
9
  * Error messages belong to nldd-form-field, not here. This field reflects only
10
10
  * `invalid` / `valid`, like nldd-text-field.
11
11
  *
12
+ * `value` holds a valid date or nothing, so an empty field and one with text
13
+ * that is no date both read as ''. `validity` tells them apart: `badInput` for
14
+ * text that is no date, `rangeUnderflow` / `rangeOverflow` for a date outside
15
+ * `min` / `max`, and with `range` and `required` `valueMissing` for a period
16
+ * with only a start. A form does not submit then, and nldd-form marks the
17
+ * field invalid. Without a submit, as in a filter that applies at once, the
18
+ * moment is yours: `field.invalid = !field.validity.valid` on `change`, with a
19
+ * message of your own in the nldd-form-field.
20
+ *
12
21
  * @element nldd-date-field
13
22
  *
14
23
  * @attr {string} value - The date as ISO (yyyy-mm-dd). With `range` an ISO 8601 interval: `yyyy-mm-dd/yyyy-mm-dd`. Empty when there is no valid date.
@@ -36,7 +45,7 @@
36
45
  * @fires change - When the value is committed. detail: { value } with the ISO date, or ''.
37
46
  */
38
47
  import { LitElement, type PropertyValues } from 'lit';
39
- import { type FormValue } from '../../../utilities/form-associated-mixin.js';
48
+ import { type FormValue, type OwnValidity } from '../../../utilities/form-associated-mixin.js';
40
49
  import type { NLDDDateFieldTranslations } from './date-field.i18n.js';
41
50
  import './../../actions/icon-button/icon-button.js';
42
51
  import './../../content/icon/icon.js';
@@ -79,24 +88,24 @@ export declare class NLDDDateField extends NLDDDateField_base {
79
88
  width: string;
80
89
  /** Override one or more translation keys. Keys left out fall back to Dutch. */
81
90
  translations: Partial<NLDDDateFieldTranslations>;
82
- /** What the user sees and types. Kept apart from `value`, which stays ISO. */
83
- private _display;
84
- /** The same, for the end of a period. */
85
- private _displayEnd;
86
91
  /**
87
- * The two ends of `value` while range is on. `value` stays the single source
88
- * of truth - one shape in markup, as a property and in form data - and these
89
- * are only the halves it is composed from.
92
+ * What the user sees and types, one text per end: one for a date, two for a
93
+ * period. Kept apart from `value`, which stays ISO.
90
94
  */
91
- get _startValue(): string;
92
- get _endValue(): string;
93
- private _setRange;
95
+ _texts: string[];
96
+ /** How many ends this field has: two for a period, one for a date. */
97
+ private get _endCount();
94
98
  /**
95
- * Put the earlier date first when both ends are filled. Typing a period
96
- * backwards ("van 2027 t/m 2026") otherwise stays backwards, while the calendar
97
- * always sorts a dragged range - so the two input methods disagreed. Returns
98
- * whether it swapped, so the caller emits change only when something moved.
99
+ * The ends of `value`, as ISO dates. `value` stays the single source of
100
+ * truth - one shape in markup, as a property and in form data - and these
101
+ * are only the ends it is composed from.
99
102
  */
103
+ private get _ends();
104
+ get _startValue(): string;
105
+ get _endValue(): string;
106
+ private _setEnd;
107
+ /** Put the earlier date first. Returns whether it swapped, so the caller
108
+ * emits change only when something moved. */
100
109
  private _sortRange;
101
110
  /**
102
111
  * Sort on leaving the whole field, not per change: swapping mid-edit would move
@@ -108,15 +117,11 @@ export declare class NLDDDateField extends NLDDDateField_base {
108
117
  */
109
118
  _handleFieldBlur(e: FocusEvent): void;
110
119
  /**
111
- * A typed date the calendar would refuse must not commit either. min/max are
112
- * forwarded to the calendar, which blocks out-of-range days, but typed input
113
- * bypassed that check, so a value the picker cannot produce slipped through.
114
- * The bounds may be relative (today, today+3m), so they are resolved first.
115
- * ISO strings compare lexically, so `<` / `>` are the date order.
120
+ * The date a text commits to, or '' when it is unparseable or out of bounds.
121
+ * Both leave the raw text standing so the user can see and fix it. min/max
122
+ * go to the calendar too, but typed input bypassed that check, so a value
123
+ * the picker cannot produce slipped through.
116
124
  */
117
- private _withinBounds;
118
- /** The parsed date, or '' when it is unparseable or out of bounds. Both cases
119
- * leave the raw text standing so the user can see and fix what they wrote. */
120
125
  private _commit;
121
126
  /**
122
127
  * Whether a consumer put their own calendar in the slot. Kept as state rather
@@ -208,18 +213,26 @@ export declare class NLDDDateField extends NLDDDateField_base {
208
213
  * in one click and returns to the calendar button.
209
214
  */
210
215
  _handlePickerChange(e: Event): void;
216
+ private get _inputs();
217
+ private _focusAtEnd;
211
218
  /**
212
219
  * Backspace on an empty end field steps back to the end of the start field, so
213
220
  * a whole period can be cleared in one run of backspaces instead of reaching for
214
221
  * the mouse to move between the two inputs.
215
222
  */
216
- _handleInputKeydown(e: KeyboardEvent, end: boolean): void;
217
- _handleInput(e: Event, end?: boolean): void;
218
- _handleChange(e: Event, end?: boolean): void;
223
+ _handleInputKeydown(e: KeyboardEvent, index: number): void;
224
+ private _setText;
225
+ _handleInput(e: Event, index?: number): void;
226
+ _handleChange(e: Event, index?: number): void;
219
227
  formValue(): FormValue;
228
+ /**
229
+ * What `value` cannot say. It holds a valid date or nothing, so text that is
230
+ * no date, a date outside min/max and an empty field all read as ''. The
231
+ * field tells them apart for the form; when to show it stays the caller's.
232
+ */
233
+ ownValidity(): OwnValidity | null;
234
+ private _problemMessage;
220
235
  private _emit;
221
- get _displayValue(): string;
222
- get _displayEndValue(): string;
223
236
  render(): import("lit-html").TemplateResult;
224
237
  }
225
238
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"date-field.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/date-field/date-field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;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AM,CAEhC;IAEM,kBAAkB,IAAI,IAAI;IAKjC;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa,CAAyC;IAE9D;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAajB,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAS3C;;;;;;OAMG;IAEH,mBAAmB,SAAwB;IAEpC,oBAAoB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAgB3C;;;;;;;OAOG;IACH,OAAO,CAAC,0BAA0B;IAUlC;;;;;OAKG;IACI,mBAAmB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAkB1C,OAAO,KAAK,OAAO,GAElB;IAED,OAAO,CAAC,WAAW;IAOnB;;;;OAIG;IACI,mBAAmB,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAUjE,OAAO,CAAC,QAAQ;IAMT,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,SAAI,GAAG,IAAI;IAUvC,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,SAAI,GAAG,IAAI;IAWtC,SAAS,IAAI,SAAS;IAI/B;;;;OAIG;IACM,WAAW,IAAI,WAAW,GAAG,IAAI;IAK1C,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,KAAK;IASJ,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,aAAa,CAAC;KACjC;CACD"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * The date logic of nldd-date-field, without a DOM: reading what people type,
3
+ * writing it back, the bounds, and the halves of a period. The component wires
4
+ * these to its inputs; everything here is a plain function of its arguments.
5
+ */
6
+ /** ISO 8601 writes an interval as start/end, so the value needs no invention. */
7
+ export declare const RANGE_SEPARATOR = "/";
8
+ /**
9
+ * Read a typed date generously. Deliberately not a mask: reformatting per
10
+ * keystroke moves the caret, breaks backspace mid-value and confuses screen
11
+ * readers, so we accept what people type and normalize once on commit.
12
+ * Accepts 12-3-2026, 12/03/2026, 12.03.2026, 12032026 and ISO yyyy-mm-dd.
13
+ */
14
+ export declare function parseDate(raw: string): string | null;
15
+ /** ISO to the Dutch notation shown on screen. */
16
+ export declare function formatDisplay(iso: string): string;
17
+ /**
18
+ * The ends of a value: one for a date, two for a period. A missing end is ''.
19
+ * A period read as one date keeps its start, and a date read as a period
20
+ * becomes its start with an open end.
21
+ */
22
+ export declare function splitValue(value: string, count: number): string[];
23
+ /** The value made of its ends: '' when all are empty, else start/end. */
24
+ export declare function joinValue(ends: string[]): string;
25
+ /** min and max as ISO dates. They may be relative (today, today+3m). */
26
+ export interface Bounds {
27
+ min: string;
28
+ max: string;
29
+ }
30
+ export declare function resolveBounds(min: string, max: string): Bounds;
31
+ /**
32
+ * The date a typed text commits to: a real date within the bounds, or ''.
33
+ * A date the calendar would refuse must not commit when typed either.
34
+ * ISO strings compare lexically, so `<` and `>` are the date order.
35
+ */
36
+ export declare function commitText(text: string, bounds: Bounds): string;
37
+ /**
38
+ * The ends with the earlier date first, or null when they are in order
39
+ * already or one is empty. A period typed backwards ("van 2027 t/m 2026")
40
+ * otherwise stays backwards, while the calendar sorts a dragged one.
41
+ */
42
+ export declare function sortEnds(ends: string[]): string[] | null;
43
+ /** What is wrong with the typed ends, in the platform's own terms. */
44
+ export type EndsProblem = {
45
+ flag: 'badInput';
46
+ } | {
47
+ flag: 'rangeUnderflow';
48
+ bound: string;
49
+ } | {
50
+ flag: 'rangeOverflow';
51
+ bound: string;
52
+ } | {
53
+ flag: 'valueMissing';
54
+ };
55
+ /**
56
+ * The first problem in the typed texts, or null. A required period with only
57
+ * a start is missing its end; an empty start is the native input's to report.
58
+ */
59
+ export declare function checkEnds(texts: string[], bounds: Bounds, required: boolean): EndsProblem | null;
60
+ //# sourceMappingURL=date-field.dates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-field.dates.d.ts","sourceRoot":"","sources":["../../../../src/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