@nldd/design-system 0.13.0 → 0.13.2

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 (426) hide show
  1. package/NOTICES.md +18 -1
  2. package/README.md +32 -24
  3. package/custom-elements.json +4390 -1037
  4. package/dist/components/actions/button/button.d.ts +6 -1
  5. package/dist/components/actions/button/button.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.i18n.d.ts +1 -0
  7. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  8. package/dist/components/actions/button/button.i18n.js +1 -0
  9. package/dist/components/actions/button/button.i18n.js.map +1 -1
  10. package/dist/components/actions/button/button.js +7 -0
  11. package/dist/components/actions/button/button.js.map +1 -1
  12. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  13. package/dist/components/actions/button/button.template.js +5 -2
  14. package/dist/components/actions/button/button.template.js.map +1 -1
  15. package/dist/components/actions/button-group/button-group.d.ts +22 -7
  16. package/dist/components/actions/button-group/button-group.d.ts.map +1 -1
  17. package/dist/components/actions/button-group/button-group.js +38 -19
  18. package/dist/components/actions/button-group/button-group.js.map +1 -1
  19. package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
  20. package/dist/components/actions/button-group/button-group.styles.js +43 -18
  21. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  22. package/dist/components/actions/button-group/button-group.template.js +1 -1
  23. package/dist/components/actions/button-group/button-group.template.js.map +1 -1
  24. package/dist/components/actions/icon-button/icon-button.d.ts +8 -1
  25. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  26. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -0
  27. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  28. package/dist/components/actions/icon-button/icon-button.i18n.js +1 -0
  29. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  30. package/dist/components/actions/icon-button/icon-button.js +9 -0
  31. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  32. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  33. package/dist/components/actions/icon-button/icon-button.template.js +5 -2
  34. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  35. package/dist/components/actions/menu/menu-divider.d.ts +14 -0
  36. package/dist/components/actions/menu/menu-divider.d.ts.map +1 -0
  37. package/dist/components/actions/menu/menu-divider.js +33 -0
  38. package/dist/components/actions/menu/menu-divider.js.map +1 -0
  39. package/dist/components/actions/menu/menu-group.d.ts +35 -0
  40. package/dist/components/actions/menu/menu-group.d.ts.map +1 -0
  41. package/dist/components/actions/menu/menu-group.js +69 -0
  42. package/dist/components/actions/menu/menu-group.js.map +1 -0
  43. package/dist/components/actions/menu/menu-item.d.ts +86 -0
  44. package/dist/components/actions/menu/menu-item.d.ts.map +1 -0
  45. package/dist/components/actions/menu/menu-item.js +279 -0
  46. package/dist/components/actions/menu/menu-item.js.map +1 -0
  47. package/dist/components/actions/menu/menu.chain.d.ts +40 -0
  48. package/dist/components/actions/menu/menu.chain.d.ts.map +1 -0
  49. package/dist/components/actions/menu/menu.chain.js +150 -0
  50. package/dist/components/actions/menu/menu.chain.js.map +1 -0
  51. package/dist/components/actions/menu/menu.d.ts +68 -269
  52. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  53. package/dist/components/actions/menu/menu.js +147 -984
  54. package/dist/components/actions/menu/menu.js.map +1 -1
  55. package/dist/components/actions/menu/menu.pointer.d.ts +61 -0
  56. package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -0
  57. package/dist/components/actions/menu/menu.pointer.js +143 -0
  58. package/dist/components/actions/menu/menu.pointer.js.map +1 -0
  59. package/dist/components/actions/menu/menu.safe-triangle.d.ts +79 -0
  60. package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -0
  61. package/dist/components/actions/menu/menu.safe-triangle.js +198 -0
  62. package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -0
  63. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  64. package/dist/components/actions/menu/menu.template.js +5 -4
  65. package/dist/components/actions/menu/menu.template.js.map +1 -1
  66. package/dist/components/actions/toolbar/toolbar-item.d.ts +46 -0
  67. package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -0
  68. package/dist/components/actions/toolbar/toolbar-item.js +113 -0
  69. package/dist/components/actions/toolbar/toolbar-item.js.map +1 -0
  70. package/dist/components/actions/toolbar/toolbar-item.template.d.ts +3 -0
  71. package/dist/components/actions/toolbar/toolbar-item.template.d.ts.map +1 -0
  72. package/dist/components/actions/toolbar/toolbar-item.template.js +12 -0
  73. package/dist/components/actions/toolbar/toolbar-item.template.js.map +1 -0
  74. package/dist/components/actions/toolbar/toolbar-title.d.ts +43 -0
  75. package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -0
  76. package/dist/components/actions/toolbar/toolbar-title.js +111 -0
  77. package/dist/components/actions/toolbar/toolbar-title.js.map +1 -0
  78. package/dist/components/actions/toolbar/toolbar-title.template.d.ts +3 -0
  79. package/dist/components/actions/toolbar/toolbar-title.template.d.ts.map +1 -0
  80. package/dist/components/actions/toolbar/toolbar-title.template.js +33 -0
  81. package/dist/components/actions/toolbar/toolbar-title.template.js.map +1 -0
  82. package/dist/components/actions/toolbar/toolbar.d.ts +16 -111
  83. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  84. package/dist/components/actions/toolbar/toolbar.js +50 -423
  85. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  86. package/dist/components/actions/toolbar/toolbar.layout.d.ts +40 -0
  87. package/dist/components/actions/toolbar/toolbar.layout.d.ts.map +1 -0
  88. package/dist/components/actions/toolbar/toolbar.layout.js +76 -0
  89. package/dist/components/actions/toolbar/toolbar.layout.js.map +1 -0
  90. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +52 -0
  91. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +1 -0
  92. package/dist/components/actions/toolbar/toolbar.overflow-menu.js +105 -0
  93. package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +1 -0
  94. package/dist/components/actions/toolbar/toolbar.template.d.ts +1 -4
  95. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  96. package/dist/components/actions/toolbar/toolbar.template.js +0 -41
  97. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  98. package/dist/components/{breakpoints-Bpf2MgjM.js → breakpoints-Bti55RWY.js} +1 -2
  99. package/dist/components/components.js +4651 -2302
  100. package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
  101. package/dist/components/content/avatar-group/avatar-group.styles.js +12 -1
  102. package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
  103. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  104. package/dist/components/content/code-viewer/code-viewer.styles.js +2 -1
  105. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  106. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  107. package/dist/components/content/icon/icon-aliases.js +21 -5
  108. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  109. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  110. package/dist/components/content/icon/icon-gallery-status.js +10 -0
  111. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  112. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  113. package/dist/components/content/icon/icon-registry.js +10 -3
  114. package/dist/components/content/icon/icon-registry.js.map +1 -1
  115. package/dist/components/content/text/text.d.ts +1 -1
  116. package/dist/components/content/text/text.js +1 -1
  117. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  118. package/dist/components/content/text/text.styles.js +104 -1
  119. package/dist/components/content/text/text.styles.js.map +1 -1
  120. package/dist/components/content/token/token.styles.d.ts.map +1 -1
  121. package/dist/components/content/token/token.styles.js +2 -1
  122. package/dist/components/content/token/token.styles.js.map +1 -1
  123. package/dist/components/content/tooltip/tooltip.styles.js +7 -7
  124. package/dist/components/{decorate-CO88j7Lc.js → decorate-Cz9-peTN.js} +1 -2
  125. package/dist/components/{dist-B5E3q-ea.js → dist-B9YBOGFW.js} +4 -6
  126. package/dist/components/{dist-BWlUmyq3.js → dist-BFZM0YsR.js} +57 -36
  127. package/dist/components/{dist-BFw_yEMS.js → dist-BNkeFjc3.js} +5 -7
  128. package/dist/components/{dist-Co-tsc9S.js → dist-BaLc58I_.js} +7 -9
  129. package/dist/components/{dist-BOVSVPSz.js → dist-Bm3708s5.js} +3 -4
  130. package/dist/components/{dist-IPm8ilWf.js → dist-CJ9uLG0u.js} +5 -17
  131. package/dist/components/{dist-Dz28se9B.js → dist-CJm4tkNC.js} +4 -6
  132. package/dist/components/{dist-CC8oiVtm.js → dist-CSC1dG3L.js} +2 -3
  133. package/dist/components/{dist-BPB3rWnd.js → dist-DHhnz3Gv.js} +3 -4
  134. package/dist/components/{dist-Dn9pjiud.js → dist-DgjvHvsN.js} +6 -8
  135. package/dist/components/{dist-COKR0tYU.js → dist-PeUX4vPq.js} +3 -6
  136. package/dist/components/{dist-D_9ZyZ5v.js → dist-YYLChwRq.js} +5 -7
  137. package/dist/components/{dist-BNLAXAyO.js → dist-m70B83qb.js} +4 -6
  138. package/dist/components/forms/form-field/form-field.d.ts +9 -5
  139. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  140. package/dist/components/forms/form-field/form-field.js +17 -6
  141. package/dist/components/forms/form-field/form-field.js.map +1 -1
  142. package/dist/components/{gherkin-uCVRxsGf.js → gherkin-DzYbEwDO.js} +1 -2
  143. package/dist/components/{icon-BJHKWhY5.js → icon-DRpTWSIg.js} +33 -20
  144. package/dist/components/{icon-button-DhBIq6lN.js → icon-button-DUEmWlBD.js} +41 -51
  145. package/dist/components/index.d.ts +2 -0
  146. package/dist/components/index.d.ts.map +1 -1
  147. package/dist/components/index.js +2 -0
  148. package/dist/components/index.js.map +1 -1
  149. package/dist/components/{input-modality-DhTeUxKi.js → input-modality-CiPLYYMN.js} +1 -2
  150. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  151. package/dist/components/inputs/code-editor/code-editor.styles.js +6 -1
  152. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  153. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  154. package/dist/components/inputs/combo-box/combo-box.styles.js +1 -0
  155. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  156. package/dist/components/inputs/date-field/date-field.d.ts +41 -28
  157. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  158. package/dist/components/inputs/date-field/date-field.dates.d.ts +60 -0
  159. package/dist/components/inputs/date-field/date-field.dates.d.ts.map +1 -0
  160. package/dist/components/inputs/date-field/date-field.dates.js +106 -0
  161. package/dist/components/inputs/date-field/date-field.dates.js.map +1 -0
  162. package/dist/components/inputs/date-field/date-field.i18n.d.ts +4 -0
  163. package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
  164. package/dist/components/inputs/date-field/date-field.i18n.js +6 -0
  165. package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
  166. package/dist/components/inputs/date-field/date-field.js +110 -142
  167. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  168. package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
  169. package/dist/components/inputs/date-field/date-field.styles.js +1 -0
  170. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  171. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  172. package/dist/components/inputs/date-field/date-field.template.js +21 -17
  173. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  174. package/dist/components/inputs/file-field/file-field.d.ts +12 -0
  175. package/dist/components/inputs/file-field/file-field.d.ts.map +1 -1
  176. package/dist/components/inputs/file-field/file-field.i18n.d.ts +1 -0
  177. package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -1
  178. package/dist/components/inputs/file-field/file-field.i18n.js +1 -0
  179. package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -1
  180. package/dist/components/inputs/file-field/file-field.js +28 -9
  181. package/dist/components/inputs/file-field/file-field.js.map +1 -1
  182. package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
  183. package/dist/components/inputs/file-field/file-field.styles.js +91 -8
  184. package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
  185. package/dist/components/inputs/file-field/file-field.template.d.ts +1 -0
  186. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  187. package/dist/components/inputs/file-field/file-field.template.js +51 -21
  188. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  189. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  190. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -0
  191. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  192. package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
  193. package/dist/components/inputs/password-field/password-field.styles.js +1 -0
  194. package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
  195. package/dist/components/inputs/search-field/search-field.d.ts +1 -1
  196. package/dist/components/inputs/search-field/search-field.js +1 -1
  197. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  198. package/dist/components/inputs/search-field/search-field.styles.js +1 -0
  199. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  200. package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -3
  201. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  202. package/dist/components/inputs/segmented-control/segmented-control.js +8 -10
  203. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  204. package/dist/components/inputs/slider/slider.d.ts +161 -0
  205. package/dist/components/inputs/slider/slider.d.ts.map +1 -0
  206. package/dist/components/inputs/slider/slider.i18n.d.ts +6 -0
  207. package/dist/components/inputs/slider/slider.i18n.d.ts.map +1 -0
  208. package/dist/components/inputs/slider/slider.i18n.js +5 -0
  209. package/dist/components/inputs/slider/slider.i18n.js.map +1 -0
  210. package/dist/components/inputs/slider/slider.js +436 -0
  211. package/dist/components/inputs/slider/slider.js.map +1 -0
  212. package/dist/components/inputs/slider/slider.styles.d.ts +2 -0
  213. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -0
  214. package/dist/components/inputs/slider/slider.styles.js +360 -0
  215. package/dist/components/inputs/slider/slider.styles.js.map +1 -0
  216. package/dist/components/inputs/slider/slider.template.d.ts +5 -0
  217. package/dist/components/inputs/slider/slider.template.d.ts.map +1 -0
  218. package/dist/components/inputs/slider/slider.template.js +99 -0
  219. package/dist/components/inputs/slider/slider.template.js.map +1 -0
  220. package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -1
  221. package/dist/components/inputs/text-editor/text-editor.selection.js +35 -9
  222. package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -1
  223. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  224. package/dist/components/inputs/text-editor/text-editor.styles.js +17 -0
  225. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  226. package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -1
  227. package/dist/components/inputs/text-editor/text-editor.tasks.js +5 -1
  228. package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -1
  229. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  230. package/dist/components/inputs/text-field/text-field.styles.js +1 -0
  231. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  232. package/dist/components/inputs/time-field/time-field.d.ts +26 -40
  233. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  234. package/dist/components/inputs/time-field/time-field.i18n.d.ts +3 -0
  235. package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
  236. package/dist/components/inputs/time-field/time-field.i18n.js +5 -0
  237. package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
  238. package/dist/components/inputs/time-field/time-field.js +68 -162
  239. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  240. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  241. package/dist/components/inputs/time-field/time-field.styles.js +1 -0
  242. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  243. package/dist/components/inputs/time-field/time-field.times.d.ts +74 -0
  244. package/dist/components/inputs/time-field/time-field.times.d.ts.map +1 -0
  245. package/dist/components/inputs/time-field/time-field.times.js +154 -0
  246. package/dist/components/inputs/time-field/time-field.times.js.map +1 -0
  247. package/dist/components/layout/card/card.d.ts +6 -1
  248. package/dist/components/layout/card/card.d.ts.map +1 -1
  249. package/dist/components/layout/card/card.i18n.d.ts +1 -0
  250. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  251. package/dist/components/layout/card/card.i18n.js +1 -0
  252. package/dist/components/layout/card/card.i18n.js.map +1 -1
  253. package/dist/components/layout/card/card.js +7 -0
  254. package/dist/components/layout/card/card.js.map +1 -1
  255. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  256. package/dist/components/layout/card/card.template.js +5 -2
  257. package/dist/components/layout/card/card.template.js.map +1 -1
  258. package/dist/components/layout/page/page.d.ts +3 -0
  259. package/dist/components/layout/page/page.d.ts.map +1 -1
  260. package/dist/components/layout/page/page.js +20 -3
  261. package/dist/components/layout/page/page.js.map +1 -1
  262. package/dist/components/layout/page/page.styles.d.ts.map +1 -1
  263. package/dist/components/layout/page/page.styles.js +25 -2
  264. package/dist/components/layout/page/page.styles.js.map +1 -1
  265. package/dist/components/layout/page/page.template.js +1 -1
  266. package/dist/components/layout/page/page.template.js.map +1 -1
  267. package/dist/components/layout/sheet/sheet.d.ts +5 -0
  268. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  269. package/dist/components/layout/sheet/sheet.js +14 -6
  270. package/dist/components/layout/sheet/sheet.js.map +1 -1
  271. package/dist/components/layout/sheet/sheet.template.d.ts.map +1 -1
  272. package/dist/components/layout/sheet/sheet.template.js +1 -0
  273. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  274. package/dist/components/layout/task-board/task-board-column.d.ts +80 -0
  275. package/dist/components/layout/task-board/task-board-column.d.ts.map +1 -0
  276. package/dist/components/layout/task-board/task-board-column.js +207 -0
  277. package/dist/components/layout/task-board/task-board-column.js.map +1 -0
  278. package/dist/components/layout/task-board/task-board-column.template.d.ts +3 -0
  279. package/dist/components/layout/task-board/task-board-column.template.d.ts.map +1 -0
  280. package/dist/components/layout/task-board/task-board-column.template.js +45 -0
  281. package/dist/components/layout/task-board/task-board-column.template.js.map +1 -0
  282. package/dist/components/layout/task-board/task-board.d.ts +169 -0
  283. package/dist/components/layout/task-board/task-board.d.ts.map +1 -0
  284. package/dist/components/layout/task-board/task-board.i18n.d.ts +11 -0
  285. package/dist/components/layout/task-board/task-board.i18n.d.ts.map +1 -0
  286. package/dist/components/layout/task-board/task-board.i18n.js +10 -0
  287. package/dist/components/layout/task-board/task-board.i18n.js.map +1 -0
  288. package/dist/components/layout/task-board/task-board.js +701 -0
  289. package/dist/components/layout/task-board/task-board.js.map +1 -0
  290. package/dist/components/layout/task-board/task-board.styles.d.ts +3 -0
  291. package/dist/components/layout/task-board/task-board.styles.d.ts.map +1 -0
  292. package/dist/components/layout/task-board/task-board.styles.js +259 -0
  293. package/dist/components/layout/task-board/task-board.styles.js.map +1 -0
  294. package/dist/components/layout/task-board/task-board.template.d.ts +3 -0
  295. package/dist/components/layout/task-board/task-board.template.d.ts.map +1 -0
  296. package/dist/components/layout/task-board/task-board.template.js +25 -0
  297. package/dist/components/layout/task-board/task-board.template.js.map +1 -0
  298. package/dist/components/lists-and-tables/list-item/list-item.d.ts +6 -1
  299. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  300. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +1 -0
  301. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  302. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -0
  303. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  304. package/dist/components/lists-and-tables/list-item/list-item.js +12 -3
  305. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  306. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  307. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  308. package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
  309. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  310. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +6 -1
  311. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  312. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +1 -0
  313. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -1
  314. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +1 -0
  315. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -1
  316. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +12 -3
  317. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  318. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  319. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  320. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +2 -1
  321. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  322. package/dist/components/navigation/link/link.d.ts +11 -1
  323. package/dist/components/navigation/link/link.d.ts.map +1 -1
  324. package/dist/components/navigation/link/link.i18n.d.ts +1 -0
  325. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  326. package/dist/components/navigation/link/link.i18n.js +1 -0
  327. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  328. package/dist/components/navigation/link/link.js +27 -1
  329. package/dist/components/navigation/link/link.js.map +1 -1
  330. package/dist/components/navigation/link/link.template.d.ts +1 -0
  331. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  332. package/dist/components/navigation/link/link.template.js +21 -16
  333. package/dist/components/navigation/link/link.template.js.map +1 -1
  334. package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -0
  335. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  336. package/dist/components/navigation/tab-bar/tab-bar.js +9 -0
  337. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  338. package/dist/components/navigation/tab-bar/tab-bar.template.js +1 -1
  339. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +9 -24
  340. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  341. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +29 -223
  342. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  343. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +48 -0
  344. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -0
  345. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +220 -0
  346. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -0
  347. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  348. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +22 -2
  349. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  350. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
  351. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -0
  352. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
  353. package/dist/components/{reflect-non-default-OLaK60rT.js → reflect-non-default-B9wQcnne.js} +1 -2
  354. package/dist/components/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  355. package/dist/components/{shadow-resets-CPa58rmc.js → shadow-resets-BwOyyZFH.js} +1 -2
  356. package/dist/components/{shell-C61GCsJA.js → shell-Dh5IwHd-.js} +1 -2
  357. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +10 -1
  358. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
  359. package/dist/components/status-and-feedback/step-bar/step-bar.js +22 -1
  360. package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
  361. package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -1
  362. package/dist/components/status-and-feedback/step-bar/step-bar.template.js +2 -0
  363. package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
  364. package/dist/components/{toml-C2HBbPgG.js → toml-D0Pix_8Q.js} +1 -2
  365. package/dist/components/{visibility-mixin-djNSG5ZN.js → visibility-mixin-C-K7ho5Q.js} +4 -6
  366. package/dist/components/{with-translations-C6QfP6_S.js → with-translations-DRuOq3QK.js} +14 -10
  367. package/dist/css/{global-system-font.css → global-open-font.css} +2 -0
  368. package/dist/css/global.css +1 -0
  369. package/dist/css/inter-font.css +47 -0
  370. package/dist/css/jetbrains-mono-font.css +22 -0
  371. package/dist/css/rijksoverheid-fonts.css +4 -21
  372. package/dist/css/themes/bruin.css +1 -0
  373. package/dist/css/themes/donkerblauw.css +1 -0
  374. package/dist/css/themes/donkerbruin.css +1 -0
  375. package/dist/css/themes/donkergeel.css +1 -0
  376. package/dist/css/themes/donkergroen.css +1 -0
  377. package/dist/css/themes/geel.css +1 -0
  378. package/dist/css/themes/groen.css +1 -0
  379. package/dist/css/themes/hemelblauw.css +1 -0
  380. package/dist/css/themes/lichtblauw.css +1 -0
  381. package/dist/css/themes/mintgroen.css +1 -0
  382. package/dist/css/themes/mosgroen.css +1 -0
  383. package/dist/css/themes/oranje.css +1 -0
  384. package/dist/css/themes/paars.css +1 -0
  385. package/dist/css/themes/robijnrood.css +1 -0
  386. package/dist/css/themes/rood.css +1 -0
  387. package/dist/css/themes/roze.css +1 -0
  388. package/dist/css/themes/violet.css +1 -0
  389. package/dist/css/themes.css +17 -0
  390. package/dist/css/tokens.css +1 -0
  391. package/dist/css/variables.css +27 -5
  392. package/dist/fonts/Inter-Latin-Italic[wght].woff2 +0 -0
  393. package/dist/fonts/Inter-LatinExt-Italic[wght].woff2 +0 -0
  394. package/dist/fonts/Inter-LatinExt[wght].woff2 +0 -0
  395. package/dist/fonts/Inter-Latin[wght].woff2 +0 -0
  396. package/dist/nldd.min.js +1902 -842
  397. package/dist/translations/en-US.d.ts.map +1 -1
  398. package/dist/translations/en-US.js +23 -0
  399. package/dist/translations/en-US.js.map +1 -1
  400. package/dist/translations/fy.d.ts.map +1 -1
  401. package/dist/translations/fy.js +13 -0
  402. package/dist/translations/fy.js.map +1 -1
  403. package/dist/translations/nl.generated.d.ts +23 -0
  404. package/dist/translations/nl.generated.d.ts.map +1 -1
  405. package/dist/translations/nl.generated.js +4 -0
  406. package/dist/translations/nl.generated.js.map +1 -1
  407. package/dist/translations/pap-AW.d.ts.map +1 -1
  408. package/dist/translations/pap-AW.js +13 -0
  409. package/dist/translations/pap-AW.js.map +1 -1
  410. package/dist/translations/pap-CW.d.ts.map +1 -1
  411. package/dist/translations/pap-CW.js +13 -0
  412. package/dist/translations/pap-CW.js.map +1 -1
  413. package/dist/types/vue.d.ts +164 -24
  414. package/dist/utilities/form-associated-mixin.d.ts +7 -0
  415. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  416. package/dist/utilities/form-associated-mixin.js +13 -1
  417. package/dist/utilities/form-associated-mixin.js.map +1 -1
  418. package/dist/utilities/link-hint.d.ts +11 -0
  419. package/dist/utilities/link-hint.d.ts.map +1 -1
  420. package/dist/utilities/link-hint.js +15 -0
  421. package/dist/utilities/link-hint.js.map +1 -1
  422. package/dist/utilities/tab-order.d.ts +11 -0
  423. package/dist/utilities/tab-order.d.ts.map +1 -0
  424. package/dist/utilities/tab-order.js +55 -0
  425. package/dist/utilities/tab-order.js.map +1 -0
  426. package/package.json +13 -4
@@ -0,0 +1,198 @@
1
+ /** When the cursor sits motionless inside the triangle for this long, the
2
+ * protection drops and whatever item is under the cursor becomes interactive.
3
+ * Without this, a paused cursor would stay protected indefinitely. */
4
+ export const STALL_DISMISS_MS = 500;
5
+ /**
6
+ * How far the apex is pulled away from the submenu edge (to the left for a
7
+ * submenu on the right). Widens the wedge near the cursor so brief diagonal
8
+ * wobble doesn't pop the cursor out at the apex, and avoids the degenerate
9
+ * single-line wedge when the cursor crossed the opener edge at the same x as
10
+ * the near submenu corner. Always negative: the standard placement is
11
+ * submenu-right, so "left" is the intuitive forgive direction.
12
+ */
13
+ export const APEX_X_OFFSET = 4;
14
+ /** True when the rect contains the point (inclusive). False for a missing rect
15
+ * or point. */
16
+ export function rectContainsPoint(rect, point) {
17
+ return !!rect && !!point
18
+ && point.x >= rect.left && point.x <= rect.right
19
+ && point.y >= rect.top && point.y <= rect.bottom;
20
+ }
21
+ /** Convex point-in-polygon test via consistent edge-cross-product sign.
22
+ * Vertices must be ordered (clockwise or counter-clockwise). */
23
+ export function pointInPolygon(p, vertices) {
24
+ let hasNeg = false;
25
+ let hasPos = false;
26
+ for (let i = 0; i < vertices.length; i++) {
27
+ const a = vertices[i];
28
+ const b = vertices[(i + 1) % vertices.length];
29
+ const cross = (p.x - b.x) * (a.y - b.y) - (a.x - b.x) * (p.y - b.y);
30
+ if (cross < 0)
31
+ hasNeg = true;
32
+ if (cross > 0)
33
+ hasPos = true;
34
+ if (hasNeg && hasPos)
35
+ return false;
36
+ }
37
+ return true;
38
+ }
39
+ /** The wedge from `apex` to the submenu edge facing the cursor: the left edge
40
+ * for a submenu on the right, the right edge when Floating UI flipped it. */
41
+ export function wedge(apex, cursor, submenu) {
42
+ const nearX = cursor.x < submenu.left ? submenu.left : submenu.right;
43
+ return [apex, { x: nearX, y: submenu.top }, { x: nearX, y: submenu.bottom }];
44
+ }
45
+ /** The apex where the cursor crossed the top or bottom edge of the opener: x
46
+ * clamped to the opener so the wedge starts at its visual edge however far
47
+ * past it this sample is, then pulled away by APEX_X_OFFSET. */
48
+ export function apexAt(cursor, opener) {
49
+ return {
50
+ x: Math.max(opener.left, Math.min(opener.right, cursor.x)) - APEX_X_OFFSET,
51
+ y: cursor.y > opener.bottom ? opener.bottom : opener.top,
52
+ };
53
+ }
54
+ export class SafeTriangleController {
55
+ constructor(_host) {
56
+ this._host = _host;
57
+ /** True while the cursor is on its way to the submenu: peers stay inactive. */
58
+ this.movingToward = false;
59
+ this._listener = null;
60
+ this._stallTimer = null;
61
+ this._lastPos = null;
62
+ this._apex = null;
63
+ this._overlay = null;
64
+ _host.addController(this);
65
+ }
66
+ hostDisconnected() {
67
+ this.stop();
68
+ }
69
+ /** Start tracking for a submenu that just opened in cascade mode. */
70
+ start(submenu) {
71
+ this.stop();
72
+ this._listener = (e) => this._track({ x: e.clientX, y: e.clientY }, submenu);
73
+ window.addEventListener('mousemove', this._listener);
74
+ }
75
+ stop() {
76
+ if (this._listener !== null) {
77
+ window.removeEventListener('mousemove', this._listener);
78
+ this._listener = null;
79
+ }
80
+ this._clearStall();
81
+ this._lastPos = null;
82
+ this._apex = null;
83
+ this.movingToward = false;
84
+ this._removeOverlay();
85
+ }
86
+ _track(p, submenu) {
87
+ // Arrived in the submenu, or one below it. The listener stays: a return
88
+ // to the opener has to pin a fresh apex for the next exit.
89
+ if (this._host.isPointInSubmenus(p, submenu)) {
90
+ this.movingToward = false;
91
+ this._lastPos = p;
92
+ this._apex = null;
93
+ this._host.safeTriangleOpener?.removeAttribute('highlighted');
94
+ this._removeOverlay();
95
+ return;
96
+ }
97
+ const r = submenu.getBoundingClientRect();
98
+ const openerRect = this._host.safeTriangleOpener?.getBoundingClientRect();
99
+ const onOpener = rectContainsPoint(openerRect, p);
100
+ const lastOnOpener = rectContainsPoint(openerRect, this._lastPos);
101
+ // Back on the opener: drop the apex so the next exit pins a fresh one.
102
+ if (this._apex !== null && onOpener)
103
+ this._apex = null;
104
+ const wasMoving = this.movingToward;
105
+ if (this._apex === null) {
106
+ if (onOpener) {
107
+ // Still on the opener, waiting for an exit direction. The opener is
108
+ // highlighted up front, so the accent is on before the cursor first
109
+ // crosses an edge rather than popping in then.
110
+ this.movingToward = true;
111
+ this._lastPos = p;
112
+ const opener = this._host.safeTriangleOpener;
113
+ if (opener && !opener.hasAttribute('highlighted'))
114
+ this._host.highlightOpener();
115
+ if (this._host.debugSafeTriangle && openerRect) {
116
+ this._drawOverlay(wedge({ x: p.x - APEX_X_OFFSET, y: p.y }, p, r));
117
+ }
118
+ return;
119
+ }
120
+ if (openerRect && lastOnOpener && (p.y > openerRect.bottom || p.y < openerRect.top)) {
121
+ this._apex = apexAt(p, openerRect);
122
+ this.movingToward = true;
123
+ }
124
+ else {
125
+ // Left sideways: no protection, and the item under the cursor takes
126
+ // over at once (its own mouseenter fired while still protected).
127
+ this.movingToward = false;
128
+ this._lastPos = p;
129
+ this._removeOverlay();
130
+ if (wasMoving)
131
+ this._host.activateItemAt(p);
132
+ }
133
+ }
134
+ else {
135
+ const shape = wedge(this._apex, p, r);
136
+ this.movingToward = pointInPolygon(p, shape);
137
+ if (this._host.debugSafeTriangle)
138
+ this._drawOverlay(shape);
139
+ }
140
+ this._lastPos = p;
141
+ // Keep the opener highlighted while in transit, clearing any peer that
142
+ // lit up on a wobble along the edge of the wedge.
143
+ const opener = this._host.safeTriangleOpener;
144
+ if (opener && this.movingToward && !opener.hasAttribute('highlighted'))
145
+ this._host.highlightOpener();
146
+ // Turned away: the cursor may sit on a peer whose mouseenter fired while
147
+ // still protected, and that will not fire again until it leaves.
148
+ if (wasMoving && !this.movingToward)
149
+ this._host.activateItemAt(p);
150
+ this._scheduleStall();
151
+ }
152
+ _clearStall() {
153
+ if (this._stallTimer === null)
154
+ return;
155
+ clearTimeout(this._stallTimer);
156
+ this._stallTimer = null;
157
+ }
158
+ _scheduleStall() {
159
+ this._clearStall();
160
+ if (!this.movingToward)
161
+ return;
162
+ this._stallTimer = window.setTimeout(() => {
163
+ this._stallTimer = null;
164
+ this.movingToward = false;
165
+ this._apex = null;
166
+ if (this._lastPos)
167
+ this._host.activateItemAt(this._lastPos);
168
+ }, STALL_DISMISS_MS);
169
+ }
170
+ _drawOverlay(vertices) {
171
+ const NS = 'http://www.w3.org/2000/svg';
172
+ if (this._overlay === null) {
173
+ const wrapper = document.createElement('div');
174
+ wrapper.setAttribute('popover', 'manual');
175
+ wrapper.setAttribute('aria-hidden', 'true');
176
+ wrapper.style.cssText = 'position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;border:0;padding:0;margin:0;background:transparent;overflow:visible;';
177
+ const svg = document.createElementNS(NS, 'svg');
178
+ svg.setAttribute('width', '100%');
179
+ svg.setAttribute('height', '100%');
180
+ const polygon = document.createElementNS(NS, 'polygon');
181
+ polygon.setAttribute('fill', 'rgba(255, 0, 128, 0.15)');
182
+ polygon.setAttribute('stroke', 'rgba(255, 0, 128, 0.85)');
183
+ polygon.setAttribute('stroke-width', '1');
184
+ svg.appendChild(polygon);
185
+ wrapper.appendChild(svg);
186
+ document.body.appendChild(wrapper);
187
+ wrapper.showPopover();
188
+ this._overlay = wrapper;
189
+ }
190
+ this._overlay.querySelector('polygon').setAttribute('points', vertices.map(v => `${v.x},${v.y}`).join(' '));
191
+ }
192
+ _removeOverlay() {
193
+ this._overlay?.hidePopover?.();
194
+ this._overlay?.remove();
195
+ this._overlay = null;
196
+ }
197
+ }
198
+ //# sourceMappingURL=menu.safe-triangle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.safe-triangle.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.safe-triangle.ts"],"names":[],"mappings":"AAsBA;;uEAEuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAEpC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC;AAE/B;gBACgB;AAChB,MAAM,UAAU,iBAAiB,CAAC,IAAgC,EAAE,KAA+B;IAClG,OAAO,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK;WACpB,KAAK,CAAC,C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AAC,CAAC;YACzB,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YACzB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YACnC,OAAO,CAAC,WAAW,EAAE,CAAC;YACtB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACzB,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9G,CAAC;IAEO,cAAc;QACrB,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,CAAC;QAC/B,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtB,CAAC;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"menu.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAGvE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAgB5D,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,wCA2FlF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,GAAE,WAAW,GAAG,IAAW,wCAwHtF;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,WAAW,GAAG,IAAW,wCAMrE;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,wCAmBzD"}
1
+ {"version":3,"file":"menu.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAGvE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;AAgB5D,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,wCA4FlF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,GAAE,WAAW,GAAG,IAAW,wCAwHtF;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,WAAW,GAAG,IAAW,wCAMrE;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,aAAa,wCAmBzD"}
@@ -30,10 +30,10 @@ export function menuTemplate(isEmpty, variant) {
30
30
  return html `
31
31
  <div class="menu"
32
32
  tabindex="-1"
33
- @touchstart=${this._handleMenuTouchStart}
34
- @touchmove=${this._handleMenuTouchMove}
35
- @touchend=${this._handleMenuTouchEnd}
36
- @touchcancel=${this._handleMenuTouchEnd}
33
+ @touchstart=${this._pointer.touchStart}
34
+ @touchmove=${this._pointer.touchMove}
35
+ @touchend=${this._pointer.touchEnd}
36
+ @touchcancel=${this._pointer.touchEnd}
37
37
  >
38
38
  ${isRoot ? html `
39
39
  <div class="menu__header"
@@ -69,6 +69,7 @@ export function menuTemplate(isEmpty, variant) {
69
69
  ` : nothing}
70
70
  <div class="menu__list"
71
71
  role=${menuRole}
72
+ aria-label=${this._listLabel || nothing}
72
73
  >
73
74
  <slot @slotchange=${this._claimItems}></slot>
74
75
  </div>
@@ -1 +1 @@
1
- {"version":3,"file":"menu.template.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,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,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;sBAC9C,SAAS,CAAC,QAAQ;;;;;EAKtC,CAAC;AACH,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { LitElement } from 'lit';
2
+ export type Size = 'sm' | 'md' | 'lg';
3
+ /** Consumer-set sizing props shared by nldd-toolbar-item and
4
+ * nldd-toolbar-title, read off generic Elements during measurement. */
5
+ export interface SizingElement {
6
+ minWidth: string;
7
+ maxWidth: string;
8
+ width: string;
9
+ }
10
+ /**
11
+ * One control in an nldd-toolbar, with its alternative for the overflow menu.
12
+ *
13
+ * @element nldd-toolbar-item
14
+ * @attr {string} width - Fluid width: a percentage (e.g. '40%') or any CSS length (e.g. '240px'). Setting it (or min-width or max-width) makes the item fluid so it grows to fill the available space.
15
+ * @attr {string} min-width - Minimum (fluid) width as a CSS length (e.g. '240px'). Setting it also makes the item fluid.
16
+ * @attr {string} max-width - Maximum (fluid) width as a CSS length (e.g. '480px'). Setting it also makes the item fluid.
17
+ * @attr {string} label - Text label shown below the item when the toolbar has show-item-labels.
18
+ * @attr {number} priority - Overflow order: items with a lower priority move into the overflow menu first (default 0). Items sharing a priority overflow together, regardless of position.
19
+ * @attr {'sm'|'md'|'lg'} size - Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md') onto the item host, so size-dependent styling can key off it.
20
+ * @attr {boolean} show-item-labels - Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's show-item-labels, so the item renders its label below the control.
21
+ * @attr {boolean} fluid - Set by nldd-toolbar, not a consumer attribute: marks an item that grows or shrinks to fill space. Toggled synchronously during measurement, so it can appear or disappear between layout frames — do not style against it. It is not reflected as a JS property — read it with hasAttribute('fluid').
22
+ * @attr {boolean} solo-fluid - Set by nldd-toolbar, not a consumer attribute: the sole fluid item, allowed to shrink below its content. Same synchronous-toggle and property-read caveats as fluid.
23
+ * @attr {boolean} hidden - Set by nldd-toolbar, not a consumer attribute, when the item moves into the overflow menu. Same synchronous-toggle caveat.
24
+ * @attr {boolean} shrinkable - Set by nldd-toolbar, not a consumer attribute: the item holds a control that overflows by itself (nldd-tab-bar), so it gets the width that control wants with everything shown. Same synchronous-toggle caveat.
25
+ * @attr {boolean} shrunk - Set by nldd-toolbar, not a consumer attribute: a shrinkable item narrowed down to what its control needs at least, before it would move into the overflow menu. Same synchronous-toggle caveat.
26
+ *
27
+ * @slot - The control shown in the toolbar (e.g. nldd-icon-button)
28
+ * @slot overflow - Required: nldd-menu-item / nldd-menu-divider / nldd-menu-group children, shown in the overflow menu when this item overflows. Without them the action is gone on a narrow toolbar, and the item warns in development.
29
+ *
30
+ */
31
+ export declare class NLDDToolbarItem extends LitElement {
32
+ static styles: import("lit").CSSResult;
33
+ width: string;
34
+ minWidth: string;
35
+ maxWidth: string;
36
+ label: string;
37
+ priority: number;
38
+ /** Set by nldd-toolbar; not part of the public API. @internal */
39
+ size: Size;
40
+ /** Set by nldd-toolbar; not part of the public API. @internal */
41
+ showItemLabels: boolean;
42
+ firstUpdated(): void;
43
+ private _warnWithoutOverflow;
44
+ render(): import("lit-html").TemplateResult<1>;
45
+ }
46
+ //# sourceMappingURL=toolbar-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar-item.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/toolbar/toolbar-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC;wEACwE;AACxE,MAAM,WAAW,aAAa;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,KAAK,SAAM;IAGX,QAAQ,SAAM;IAGd,QAAQ,SAAM;IAGd,KAAK,SAAM;IAgBX,QAAQ,SAAK;IAEb,iEAAiE;IAEjE,IAAI,EAAE,IAAI,CAAQ;IAElB,iEAAiE;IAEjE,cAAc,UAAS;IAQd,YAAY,IAAI,IAAI;IAY7B,OAAO,CAAC,oBAAoB;IAOnB,MAAM;CAGf"}
@@ -0,0 +1,113 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
10
+ import { toolbarItemStyles } from './toolbar.styles.js';
11
+ import { toolbarItemTemplate } from './toolbar-item.template.js';
12
+ /**
13
+ * One control in an nldd-toolbar, with its alternative for the overflow menu.
14
+ *
15
+ * @element nldd-toolbar-item
16
+ * @attr {string} width - Fluid width: a percentage (e.g. '40%') or any CSS length (e.g. '240px'). Setting it (or min-width or max-width) makes the item fluid so it grows to fill the available space.
17
+ * @attr {string} min-width - Minimum (fluid) width as a CSS length (e.g. '240px'). Setting it also makes the item fluid.
18
+ * @attr {string} max-width - Maximum (fluid) width as a CSS length (e.g. '480px'). Setting it also makes the item fluid.
19
+ * @attr {string} label - Text label shown below the item when the toolbar has show-item-labels.
20
+ * @attr {number} priority - Overflow order: items with a lower priority move into the overflow menu first (default 0). Items sharing a priority overflow together, regardless of position.
21
+ * @attr {'sm'|'md'|'lg'} size - Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md') onto the item host, so size-dependent styling can key off it.
22
+ * @attr {boolean} show-item-labels - Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's show-item-labels, so the item renders its label below the control.
23
+ * @attr {boolean} fluid - Set by nldd-toolbar, not a consumer attribute: marks an item that grows or shrinks to fill space. Toggled synchronously during measurement, so it can appear or disappear between layout frames — do not style against it. It is not reflected as a JS property — read it with hasAttribute('fluid').
24
+ * @attr {boolean} solo-fluid - Set by nldd-toolbar, not a consumer attribute: the sole fluid item, allowed to shrink below its content. Same synchronous-toggle and property-read caveats as fluid.
25
+ * @attr {boolean} hidden - Set by nldd-toolbar, not a consumer attribute, when the item moves into the overflow menu. Same synchronous-toggle caveat.
26
+ * @attr {boolean} shrinkable - Set by nldd-toolbar, not a consumer attribute: the item holds a control that overflows by itself (nldd-tab-bar), so it gets the width that control wants with everything shown. Same synchronous-toggle caveat.
27
+ * @attr {boolean} shrunk - Set by nldd-toolbar, not a consumer attribute: a shrinkable item narrowed down to what its control needs at least, before it would move into the overflow menu. Same synchronous-toggle caveat.
28
+ *
29
+ * @slot - The control shown in the toolbar (e.g. nldd-icon-button)
30
+ * @slot overflow - Required: nldd-menu-item / nldd-menu-divider / nldd-menu-group children, shown in the overflow menu when this item overflows. Without them the action is gone on a narrow toolbar, and the item warns in development.
31
+ *
32
+ */
33
+ let NLDDToolbarItem = class NLDDToolbarItem extends LitElement {
34
+ constructor() {
35
+ super(...arguments);
36
+ this.width = '';
37
+ this.minWidth = '';
38
+ this.maxWidth = '';
39
+ this.label = '';
40
+ // Overflow order. The parent toolbar reads this as a PROPERTY (el.priority), so
41
+ // both a bound property (Vue/React `:priority`, `el.priority = 2`) and a plain
42
+ // attribute (`priority="2"`) work. Reflected so an explicit value is visible in
43
+ // the DOM and a runtime property change re-triggers the toolbar's overflow
44
+ // recompute (its observer watches the attribute). The converter reflects the
45
+ // default 0 as *no attribute* (toAttribute → null), so the DOM isn't polluted
46
+ // with `priority="0"` on every item; 0 means "no explicit priority".
47
+ this.priority = 0;
48
+ /** Set by nldd-toolbar; not part of the public API. @internal */
49
+ this.size = 'md';
50
+ /** Set by nldd-toolbar; not part of the public API. @internal */
51
+ this.showItemLabels = false;
52
+ }
53
+ // Layout state — `fluid`, `solo-fluid` and `hidden` — is owned by
54
+ // nldd-toolbar and toggled directly as attributes during measurement
55
+ // (synchronous, so the host box reflows immediately). They are not
56
+ // reactive properties: Lit would reflect them asynchronously, which would
57
+ // desync the attribute from the synchronous getBoundingClientRect reads.
58
+ firstUpdated() {
59
+ // Without an alternative the action is simply gone once the toolbar runs
60
+ // out of room, and that only happens on a narrow screen. Say it at load,
61
+ // where a wide screen sees it too, not at the moment the item overflows.
62
+ //
63
+ // A frame later, not now: a framework can append the overflow child right
64
+ // after the element upgrades (Vue, React with async children), and asking
65
+ // on the first render would call that a missing fallback.
66
+ if (!import.meta.env?.DEV)
67
+ return;
68
+ requestAnimationFrame(() => this._warnWithoutOverflow());
69
+ }
70
+ _warnWithoutOverflow() {
71
+ if (!this.isConnected || this.querySelector(':scope > [slot="overflow"]'))
72
+ return;
73
+ const control = this.querySelector(':scope > :not([slot])');
74
+ const name = control?.getAttribute('accessible-label') || control?.getAttribute('text') || this.label;
75
+ console.warn(`nldd-toolbar-item${name ? ` ("${name}")` : ''}: nothing in slot="overflow". On a narrow toolbar this item moves into the overflow menu, and without an nldd-menu-item there its action is gone. Add one in slot="overflow".`);
76
+ }
77
+ render() {
78
+ return toolbarItemTemplate(this);
79
+ }
80
+ };
81
+ NLDDToolbarItem.styles = toolbarItemStyles;
82
+ __decorate([
83
+ property({ reflect: true, converter: reflectNonDefault('') })
84
+ ], NLDDToolbarItem.prototype, "width", void 0);
85
+ __decorate([
86
+ property({ reflect: true, attribute: 'min-width', converter: reflectNonDefault('') })
87
+ ], NLDDToolbarItem.prototype, "minWidth", void 0);
88
+ __decorate([
89
+ property({ reflect: true, attribute: 'max-width', converter: reflectNonDefault('') })
90
+ ], NLDDToolbarItem.prototype, "maxWidth", void 0);
91
+ __decorate([
92
+ property({ type: String })
93
+ ], NLDDToolbarItem.prototype, "label", void 0);
94
+ __decorate([
95
+ property({
96
+ reflect: true,
97
+ converter: {
98
+ fromAttribute: (value) => (value === null ? 0 : Number(value)),
99
+ toAttribute: (value) => (value === 0 ? null : String(value)),
100
+ },
101
+ })
102
+ ], NLDDToolbarItem.prototype, "priority", void 0);
103
+ __decorate([
104
+ property({ reflect: true, converter: reflectNonDefault('md') })
105
+ ], NLDDToolbarItem.prototype, "size", void 0);
106
+ __decorate([
107
+ property({ type: Boolean, reflect: true, attribute: 'show-item-labels' })
108
+ ], NLDDToolbarItem.prototype, "showItemLabels", void 0);
109
+ NLDDToolbarItem = __decorate([
110
+ customElement('nldd-toolbar-item')
111
+ ], NLDDToolbarItem);
112
+ export { NLDDToolbarItem };
113
+ //# sourceMappingURL=toolbar-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar-item.js","sourceRoot":"","sources":["../../../../src/components/actions/toolbar/toolbar-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAYjE;;;;;;;;;;;;;;;;;;;;GAoBG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAIN,UAAK,GAAG,EAAE,CAAC;QAGX,aAAQ,GAAG,EAAE,CAAC;QAGd,aAAQ,GAAG,EAAE,CAAC;QAGd,UAAK,GAAG,EAAE,CAAC;QAEX,gFAAgF;QAChF,+EAA+E;QAC/E,gFAAgF;QAChF,2EAA2E;QAC3E,6EAA6E;QAC7E,8EAA8E;QAC9E,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AAS,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;iDAChF;AAGd;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;iDAChF;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAChB;AAgBX;IAPC,QAAQ,CAAC;QACT,OAAO,EAAE,IAAI;QACb,SAAS,EAAE;YACV,aAAa,EAAE,CAAC,KAAoB,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC7E,WAAW,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACpE;KACD,CAAC;iDACW;AAIb;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAO,IAAI,CAAC,EAAE,CAAC;6CACpD;AAIlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;uDACnD;AArCX,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAmE3B"}
@@ -0,0 +1,3 @@
1
+ import type { NLDDToolbarItem } from './toolbar-item.js';
2
+ export declare function toolbarItemTemplate(component: NLDDToolbarItem): import("lit-html").TemplateResult<1>;
3
+ //# sourceMappingURL=toolbar-item.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar-item.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/toolbar/toolbar-item.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,wCAQ7D"}
@@ -0,0 +1,12 @@
1
+ import { html, nothing } from 'lit';
2
+ // # Item template
3
+ export function toolbarItemTemplate(component) {
4
+ return html `
5
+ <div class="toolbar__item-content">
6
+ <slot></slot>
7
+ </div>
8
+ ${component.label ? html `<span class="toolbar__item-label">${component.label}</span>` : nothing}
9
+ <slot name="overflow"></slot>
10
+ `;
11
+ }
12
+ //# sourceMappingURL=toolbar-item.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar-item.template.js","sourceRoot":"","sources":["../../../../src/components/actions/toolbar/toolbar-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGpC,kBAAkB;AAElB,MAAM,UAAU,mBAAmB,CAAC,SAA0B;IAC7D,OAAO,IAAI,CAAA;;;;IAIR,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA,qCAAqC,SAAS,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO;;EAE/F,CAAC;AACH,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { LitElement } from 'lit';
2
+ import { type NLDDToolbarTranslations } from './toolbar.i18n.js';
3
+ import type { Size } from './toolbar-item.js';
4
+ type TitleAlign = 'left' | 'center';
5
+ /**
6
+ * The title of an nldd-toolbar, with optional media before it and an action after it.
7
+ *
8
+ * @element nldd-toolbar-title
9
+ * @attr {string} width - Preferred (fluid) width as a CSS length or percentage; the title grows toward it and shrinks to min-width.
10
+ * @attr {string} min-width - Minimum width as a CSS length (default: the width of its own text, up to `max-width`). Items move into the overflow menu before the title gets narrower than this; only when no item is left to move does the title truncate below it. Set `0` to let the title shrink first.
11
+ * @attr {string} max-width - Maximum width as a CSS length (default: '240px'); the title text truncates with an ellipsis beyond it. The cap is lifted while the title is the sole toolbar element (it then stretches to fill the row).
12
+ * @attr {string} align - Text alignment: 'left' | 'center' (default: 'left').
13
+ * @attr {string} text - Title text.
14
+ * @attr {string} supporting-text - Secondary supporting text shown below the title.
15
+ * @attr {'sm'|'md'|'lg'} size - Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md'), which sets the title group height and, at 'sm', the title and supporting-text fonts.
16
+ *
17
+ * @attr {string} href - Makes the mark and the name one link, for the place this window belongs to (usually the app's own start). The `action` slot stays outside it: a control inside a link is a control you cannot reach without following the link.
18
+ * @attr {string} target - Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
19
+ * @attr {object} translations - Override translation keys (the new-tab announcement); unset keys fall back to Dutch.
20
+ *
21
+ * @slot media - Optional leading image before the title: a logo, a product mark, a file-type icon. Its height is capped to the title group so it cannot stretch the row; pick the size within that yourself. With no `text` the media stands alone and carries the name, so give it one (an `alt`, or an accessible label).
22
+ * @slot action - Optional trailing control (e.g. an xs nldd-icon-button), shown inline after the title and tuned to sit against it. Empty by default.
23
+ */
24
+ export declare class NLDDToolbarTitle extends LitElement {
25
+ static styles: import("lit").CSSResult;
26
+ width: string;
27
+ minWidth: string;
28
+ maxWidth: string;
29
+ align: TitleAlign;
30
+ text: string;
31
+ supportingText: string;
32
+ href: string;
33
+ target: string;
34
+ translations: Partial<NLDDToolbarTranslations>;
35
+ /** Set by nldd-toolbar; not part of the public API. @internal */
36
+ size: Size;
37
+ _t(key: keyof NLDDToolbarTranslations): string;
38
+ willUpdate(changedProperties: Map<string, unknown>): void;
39
+ private _reflectSizeVar;
40
+ render(): import("lit-html").TemplateResult<1>;
41
+ }
42
+ export {};
43
+ //# sourceMappingURL=toolbar-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toolbar-title.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/toolbar/toolbar-title.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,EAA2B,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE9C,KAAK,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpC;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAC/C,OAAgB,MAAM,0BAAsB;IAG5C,KAAK,SAAM;IAGX,QAAQ,SAAM;IAGd,QAAQ,SAAM;IAGd,KAAK,EAAE,UAAU,CAAU;IAG3B,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,IAAI,SAAM;IAGV,MAAM,SAAM;IAGZ,YAAY,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAM;IAEpD,iEAAiE;IAEjE,IAAI,EAAE,IAAI,CAAQ;IAEX,EAAE,CAAC,GAAG,EAAE,MAAM,uBAAuB,GAAG,MAAM;IAU5C,UAAU,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAMlE,OAAO,CAAC,eAAe;IAQd,MAAM;CAGf"}
@@ -0,0 +1,111 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
10
+ import { toolbarTitleStyles } from './toolbar.styles.js';
11
+ import { toolbarTitleTemplate } from './toolbar-title.template.js';
12
+ import { nlddToolbarTranslations } from './toolbar.i18n.js';
13
+ import { translate } from '../../../utilities/translations.js';
14
+ /**
15
+ * The title of an nldd-toolbar, with optional media before it and an action after it.
16
+ *
17
+ * @element nldd-toolbar-title
18
+ * @attr {string} width - Preferred (fluid) width as a CSS length or percentage; the title grows toward it and shrinks to min-width.
19
+ * @attr {string} min-width - Minimum width as a CSS length (default: the width of its own text, up to `max-width`). Items move into the overflow menu before the title gets narrower than this; only when no item is left to move does the title truncate below it. Set `0` to let the title shrink first.
20
+ * @attr {string} max-width - Maximum width as a CSS length (default: '240px'); the title text truncates with an ellipsis beyond it. The cap is lifted while the title is the sole toolbar element (it then stretches to fill the row).
21
+ * @attr {string} align - Text alignment: 'left' | 'center' (default: 'left').
22
+ * @attr {string} text - Title text.
23
+ * @attr {string} supporting-text - Secondary supporting text shown below the title.
24
+ * @attr {'sm'|'md'|'lg'} size - Set by nldd-toolbar, not a consumer attribute: mirrors the toolbar's size (default: 'md'), which sets the title group height and, at 'sm', the title and supporting-text fonts.
25
+ *
26
+ * @attr {string} href - Makes the mark and the name one link, for the place this window belongs to (usually the app's own start). The `action` slot stays outside it: a control inside a link is a control you cannot reach without following the link.
27
+ * @attr {string} target - Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement. An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
28
+ * @attr {object} translations - Override translation keys (the new-tab announcement); unset keys fall back to Dutch.
29
+ *
30
+ * @slot media - Optional leading image before the title: a logo, a product mark, a file-type icon. Its height is capped to the title group so it cannot stretch the row; pick the size within that yourself. With no `text` the media stands alone and carries the name, so give it one (an `alt`, or an accessible label).
31
+ * @slot action - Optional trailing control (e.g. an xs nldd-icon-button), shown inline after the title and tuned to sit against it. Empty by default.
32
+ */
33
+ let NLDDToolbarTitle = class NLDDToolbarTitle extends LitElement {
34
+ constructor() {
35
+ super(...arguments);
36
+ this.width = '';
37
+ this.minWidth = '';
38
+ this.maxWidth = '';
39
+ this.align = 'left';
40
+ this.text = '';
41
+ this.supportingText = '';
42
+ this.href = '';
43
+ this.target = '';
44
+ this.translations = {};
45
+ /** Set by nldd-toolbar; not part of the public API. @internal */
46
+ this.size = 'md';
47
+ }
48
+ _t(key) {
49
+ return translate(this.translations, nlddToolbarTranslations, key);
50
+ }
51
+ // Layout state — `solo-fluid` and `hidden` — is owned by nldd-toolbar and
52
+ // toggled directly as attributes during measurement (synchronous). Not a
53
+ // reactive property for the same reflection-timing reason as the item.
54
+ // willUpdate (not updated) so the size CSS variables are written before the
55
+ // toolbar measures the title with getBoundingClientRect() on the same frame.
56
+ willUpdate(changedProperties) {
57
+ if (changedProperties.has('minWidth'))
58
+ this._reflectSizeVar('--_toolbar-title-group-min-width', this.minWidth);
59
+ if (changedProperties.has('width'))
60
+ this._reflectSizeVar('--_toolbar-title-width', this.width);
61
+ if (changedProperties.has('maxWidth'))
62
+ this._reflectSizeVar('--_toolbar-title-max-width', this.maxWidth);
63
+ }
64
+ _reflectSizeVar(prop, value) {
65
+ if (value) {
66
+ this.style.setProperty(prop, value);
67
+ }
68
+ else {
69
+ this.style.removeProperty(prop);
70
+ }
71
+ }
72
+ render() {
73
+ return toolbarTitleTemplate(this);
74
+ }
75
+ };
76
+ NLDDToolbarTitle.styles = toolbarTitleStyles;
77
+ __decorate([
78
+ property({ reflect: true, converter: reflectNonDefault('') })
79
+ ], NLDDToolbarTitle.prototype, "width", void 0);
80
+ __decorate([
81
+ property({ reflect: true, attribute: 'min-width', converter: reflectNonDefault('') })
82
+ ], NLDDToolbarTitle.prototype, "minWidth", void 0);
83
+ __decorate([
84
+ property({ reflect: true, attribute: 'max-width', converter: reflectNonDefault('') })
85
+ ], NLDDToolbarTitle.prototype, "maxWidth", void 0);
86
+ __decorate([
87
+ property({ reflect: true, converter: reflectNonDefault('left') })
88
+ ], NLDDToolbarTitle.prototype, "align", void 0);
89
+ __decorate([
90
+ property({ reflect: true, converter: reflectNonDefault('') })
91
+ ], NLDDToolbarTitle.prototype, "text", void 0);
92
+ __decorate([
93
+ property({ reflect: true, attribute: 'supporting-text', converter: reflectNonDefault('') })
94
+ ], NLDDToolbarTitle.prototype, "supportingText", void 0);
95
+ __decorate([
96
+ property({ type: String, reflect: true })
97
+ ], NLDDToolbarTitle.prototype, "href", void 0);
98
+ __decorate([
99
+ property({ type: String, reflect: true })
100
+ ], NLDDToolbarTitle.prototype, "target", void 0);
101
+ __decorate([
102
+ property({ type: Object })
103
+ ], NLDDToolbarTitle.prototype, "translations", void 0);
104
+ __decorate([
105
+ property({ reflect: true, converter: reflectNonDefault('md') })
106
+ ], NLDDToolbarTitle.prototype, "size", void 0);
107
+ NLDDToolbarTitle = __decorate([
108
+ customElement('nldd-toolbar-title')
109
+ ], NLDDToolbarTitle);
110
+ export { NLDDToolbarTitle };
111
+ //# sourceMappingURL=toolbar-title.js.map