@nldd/design-system 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/custom-elements.json +3066 -753
  2. package/dist/components/actions/button/button.d.ts +6 -1
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.i18n.d.ts +1 -0
  5. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.i18n.js +1 -0
  7. package/dist/components/actions/button/button.i18n.js.map +1 -1
  8. package/dist/components/actions/button/button.js +7 -0
  9. package/dist/components/actions/button/button.js.map +1 -1
  10. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.template.js +5 -2
  12. package/dist/components/actions/button/button.template.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +8 -1
  14. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +1 -0
  16. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.i18n.js +1 -0
  18. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.js +9 -0
  20. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  22. package/dist/components/actions/icon-button/icon-button.template.js +5 -2
  23. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  24. package/dist/components/actions/menu/menu-divider.d.ts +14 -0
  25. package/dist/components/actions/menu/menu-divider.d.ts.map +1 -0
  26. package/dist/components/actions/menu/menu-divider.js +33 -0
  27. package/dist/components/actions/menu/menu-divider.js.map +1 -0
  28. package/dist/components/actions/menu/menu-group.d.ts +35 -0
  29. package/dist/components/actions/menu/menu-group.d.ts.map +1 -0
  30. package/dist/components/actions/menu/menu-group.js +69 -0
  31. package/dist/components/actions/menu/menu-group.js.map +1 -0
  32. package/dist/components/actions/menu/menu-item.d.ts +86 -0
  33. package/dist/components/actions/menu/menu-item.d.ts.map +1 -0
  34. package/dist/components/actions/menu/menu-item.js +279 -0
  35. package/dist/components/actions/menu/menu-item.js.map +1 -0
  36. package/dist/components/actions/menu/menu.chain.d.ts +40 -0
  37. package/dist/components/actions/menu/menu.chain.d.ts.map +1 -0
  38. package/dist/components/actions/menu/menu.chain.js +150 -0
  39. package/dist/components/actions/menu/menu.chain.js.map +1 -0
  40. package/dist/components/actions/menu/menu.d.ts +54 -269
  41. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  42. package/dist/components/actions/menu/menu.js +106 -984
  43. package/dist/components/actions/menu/menu.js.map +1 -1
  44. package/dist/components/actions/menu/menu.pointer.d.ts +61 -0
  45. package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -0
  46. package/dist/components/actions/menu/menu.pointer.js +143 -0
  47. package/dist/components/actions/menu/menu.pointer.js.map +1 -0
  48. package/dist/components/actions/menu/menu.safe-triangle.d.ts +79 -0
  49. package/dist/components/actions/menu/menu.safe-triangle.d.ts.map +1 -0
  50. package/dist/components/actions/menu/menu.safe-triangle.js +198 -0
  51. package/dist/components/actions/menu/menu.safe-triangle.js.map +1 -0
  52. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  53. package/dist/components/actions/menu/menu.template.js +5 -4
  54. package/dist/components/actions/menu/menu.template.js.map +1 -1
  55. package/dist/components/actions/toolbar/toolbar-item.d.ts +46 -0
  56. package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -0
  57. package/dist/components/actions/toolbar/toolbar-item.js +113 -0
  58. package/dist/components/actions/toolbar/toolbar-item.js.map +1 -0
  59. package/dist/components/actions/toolbar/toolbar-item.template.d.ts +3 -0
  60. package/dist/components/actions/toolbar/toolbar-item.template.d.ts.map +1 -0
  61. package/dist/components/actions/toolbar/toolbar-item.template.js +12 -0
  62. package/dist/components/actions/toolbar/toolbar-item.template.js.map +1 -0
  63. package/dist/components/actions/toolbar/toolbar-title.d.ts +43 -0
  64. package/dist/components/actions/toolbar/toolbar-title.d.ts.map +1 -0
  65. package/dist/components/actions/toolbar/toolbar-title.js +111 -0
  66. package/dist/components/actions/toolbar/toolbar-title.js.map +1 -0
  67. package/dist/components/actions/toolbar/toolbar-title.template.d.ts +3 -0
  68. package/dist/components/actions/toolbar/toolbar-title.template.d.ts.map +1 -0
  69. package/dist/components/actions/toolbar/toolbar-title.template.js +33 -0
  70. package/dist/components/actions/toolbar/toolbar-title.template.js.map +1 -0
  71. package/dist/components/actions/toolbar/toolbar.d.ts +16 -111
  72. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  73. package/dist/components/actions/toolbar/toolbar.js +50 -423
  74. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  75. package/dist/components/actions/toolbar/toolbar.layout.d.ts +40 -0
  76. package/dist/components/actions/toolbar/toolbar.layout.d.ts.map +1 -0
  77. package/dist/components/actions/toolbar/toolbar.layout.js +76 -0
  78. package/dist/components/actions/toolbar/toolbar.layout.js.map +1 -0
  79. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts +52 -0
  80. package/dist/components/actions/toolbar/toolbar.overflow-menu.d.ts.map +1 -0
  81. package/dist/components/actions/toolbar/toolbar.overflow-menu.js +105 -0
  82. package/dist/components/actions/toolbar/toolbar.overflow-menu.js.map +1 -0
  83. package/dist/components/actions/toolbar/toolbar.template.d.ts +1 -4
  84. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  85. package/dist/components/actions/toolbar/toolbar.template.js +0 -41
  86. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  87. package/dist/components/{breakpoints-Bpf2MgjM.js → breakpoints-Bti55RWY.js} +1 -2
  88. package/dist/components/components.js +2170 -2156
  89. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  90. package/dist/components/content/code-viewer/code-viewer.styles.js +2 -1
  91. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  92. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  93. package/dist/components/content/icon/icon-aliases.js +11 -0
  94. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  95. package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
  96. package/dist/components/content/icon/icon-gallery-status.js +6 -0
  97. package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
  98. package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
  99. package/dist/components/content/icon/icon-registry.js +6 -1
  100. package/dist/components/content/icon/icon-registry.js.map +1 -1
  101. package/dist/components/{decorate-CO88j7Lc.js → decorate-Cz9-peTN.js} +1 -2
  102. package/dist/components/{dist-B5E3q-ea.js → dist-B9YBOGFW.js} +4 -6
  103. package/dist/components/{dist-BWlUmyq3.js → dist-BFZM0YsR.js} +57 -36
  104. package/dist/components/{dist-BFw_yEMS.js → dist-BNkeFjc3.js} +5 -7
  105. package/dist/components/{dist-Co-tsc9S.js → dist-BaLc58I_.js} +7 -9
  106. package/dist/components/{dist-BOVSVPSz.js → dist-Bm3708s5.js} +3 -4
  107. package/dist/components/{dist-IPm8ilWf.js → dist-CJ9uLG0u.js} +5 -17
  108. package/dist/components/{dist-Dz28se9B.js → dist-CJm4tkNC.js} +4 -6
  109. package/dist/components/{dist-CC8oiVtm.js → dist-CSC1dG3L.js} +2 -3
  110. package/dist/components/{dist-BPB3rWnd.js → dist-DHhnz3Gv.js} +3 -4
  111. package/dist/components/{dist-Dn9pjiud.js → dist-DgjvHvsN.js} +6 -8
  112. package/dist/components/{dist-COKR0tYU.js → dist-PeUX4vPq.js} +3 -6
  113. package/dist/components/{dist-D_9ZyZ5v.js → dist-YYLChwRq.js} +5 -7
  114. package/dist/components/{dist-BNLAXAyO.js → dist-m70B83qb.js} +4 -6
  115. package/dist/components/{gherkin-uCVRxsGf.js → gherkin-DzYbEwDO.js} +1 -2
  116. package/dist/components/{icon-BJHKWhY5.js → icon-DZ1UXCzO.js} +21 -14
  117. package/dist/components/{icon-button-DhBIq6lN.js → icon-button-984CwkU1.js} +34 -44
  118. package/dist/components/{input-modality-DhTeUxKi.js → input-modality-CiPLYYMN.js} +1 -2
  119. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  120. package/dist/components/inputs/code-editor/code-editor.styles.js +6 -1
  121. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  122. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  123. package/dist/components/inputs/combo-box/combo-box.styles.js +1 -0
  124. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  125. package/dist/components/inputs/date-field/date-field.d.ts +41 -28
  126. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  127. package/dist/components/inputs/date-field/date-field.dates.d.ts +60 -0
  128. package/dist/components/inputs/date-field/date-field.dates.d.ts.map +1 -0
  129. package/dist/components/inputs/date-field/date-field.dates.js +106 -0
  130. package/dist/components/inputs/date-field/date-field.dates.js.map +1 -0
  131. package/dist/components/inputs/date-field/date-field.i18n.d.ts +4 -0
  132. package/dist/components/inputs/date-field/date-field.i18n.d.ts.map +1 -1
  133. package/dist/components/inputs/date-field/date-field.i18n.js +6 -0
  134. package/dist/components/inputs/date-field/date-field.i18n.js.map +1 -1
  135. package/dist/components/inputs/date-field/date-field.js +110 -142
  136. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  137. package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
  138. package/dist/components/inputs/date-field/date-field.styles.js +1 -0
  139. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  140. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  141. package/dist/components/inputs/date-field/date-field.template.js +21 -17
  142. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  143. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  144. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -0
  145. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  146. package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
  147. package/dist/components/inputs/password-field/password-field.styles.js +1 -0
  148. package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
  149. package/dist/components/inputs/search-field/search-field.d.ts +1 -1
  150. package/dist/components/inputs/search-field/search-field.js +1 -1
  151. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  152. package/dist/components/inputs/search-field/search-field.styles.js +1 -0
  153. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  154. package/dist/components/inputs/segmented-control/segmented-control.d.ts +6 -3
  155. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  156. package/dist/components/inputs/segmented-control/segmented-control.js +8 -10
  157. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  158. package/dist/components/inputs/text-editor/text-editor.selection.d.ts.map +1 -1
  159. package/dist/components/inputs/text-editor/text-editor.selection.js +35 -9
  160. package/dist/components/inputs/text-editor/text-editor.selection.js.map +1 -1
  161. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  162. package/dist/components/inputs/text-editor/text-editor.styles.js +17 -0
  163. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  164. package/dist/components/inputs/text-editor/text-editor.tasks.d.ts.map +1 -1
  165. package/dist/components/inputs/text-editor/text-editor.tasks.js +5 -1
  166. package/dist/components/inputs/text-editor/text-editor.tasks.js.map +1 -1
  167. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  168. package/dist/components/inputs/text-field/text-field.styles.js +1 -0
  169. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  170. package/dist/components/inputs/time-field/time-field.d.ts +26 -40
  171. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  172. package/dist/components/inputs/time-field/time-field.i18n.d.ts +3 -0
  173. package/dist/components/inputs/time-field/time-field.i18n.d.ts.map +1 -1
  174. package/dist/components/inputs/time-field/time-field.i18n.js +5 -0
  175. package/dist/components/inputs/time-field/time-field.i18n.js.map +1 -1
  176. package/dist/components/inputs/time-field/time-field.js +68 -162
  177. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  178. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  179. package/dist/components/inputs/time-field/time-field.styles.js +1 -0
  180. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  181. package/dist/components/inputs/time-field/time-field.times.d.ts +74 -0
  182. package/dist/components/inputs/time-field/time-field.times.d.ts.map +1 -0
  183. package/dist/components/inputs/time-field/time-field.times.js +154 -0
  184. package/dist/components/inputs/time-field/time-field.times.js.map +1 -0
  185. package/dist/components/layout/card/card.d.ts +6 -1
  186. package/dist/components/layout/card/card.d.ts.map +1 -1
  187. package/dist/components/layout/card/card.i18n.d.ts +1 -0
  188. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  189. package/dist/components/layout/card/card.i18n.js +1 -0
  190. package/dist/components/layout/card/card.i18n.js.map +1 -1
  191. package/dist/components/layout/card/card.js +7 -0
  192. package/dist/components/layout/card/card.js.map +1 -1
  193. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  194. package/dist/components/layout/card/card.template.js +5 -2
  195. package/dist/components/layout/card/card.template.js.map +1 -1
  196. package/dist/components/layout/page/page.d.ts +3 -0
  197. package/dist/components/layout/page/page.d.ts.map +1 -1
  198. package/dist/components/layout/page/page.js +20 -3
  199. package/dist/components/layout/page/page.js.map +1 -1
  200. package/dist/components/layout/page/page.styles.d.ts.map +1 -1
  201. package/dist/components/layout/page/page.styles.js +25 -2
  202. package/dist/components/layout/page/page.styles.js.map +1 -1
  203. package/dist/components/layout/page/page.template.js +1 -1
  204. package/dist/components/layout/page/page.template.js.map +1 -1
  205. package/dist/components/layout/sheet/sheet.d.ts +5 -0
  206. package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
  207. package/dist/components/layout/sheet/sheet.js +14 -6
  208. package/dist/components/layout/sheet/sheet.js.map +1 -1
  209. package/dist/components/layout/sheet/sheet.template.d.ts.map +1 -1
  210. package/dist/components/layout/sheet/sheet.template.js +1 -0
  211. package/dist/components/layout/sheet/sheet.template.js.map +1 -1
  212. package/dist/components/lists-and-tables/list-item/list-item.d.ts +6 -1
  213. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  214. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +1 -0
  215. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  216. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -0
  217. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  218. package/dist/components/lists-and-tables/list-item/list-item.js +12 -3
  219. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  220. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  221. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  222. package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -1
  223. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  224. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +6 -1
  225. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  226. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +1 -0
  227. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -1
  228. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +1 -0
  229. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -1
  230. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +12 -3
  231. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  232. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  233. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  234. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +2 -1
  235. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  236. package/dist/components/navigation/link/link.d.ts +6 -1
  237. package/dist/components/navigation/link/link.d.ts.map +1 -1
  238. package/dist/components/navigation/link/link.i18n.d.ts +1 -0
  239. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  240. package/dist/components/navigation/link/link.i18n.js +1 -0
  241. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  242. package/dist/components/navigation/link/link.js +7 -0
  243. package/dist/components/navigation/link/link.js.map +1 -1
  244. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  245. package/dist/components/navigation/link/link.template.js +5 -2
  246. package/dist/components/navigation/link/link.template.js.map +1 -1
  247. package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -0
  248. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  249. package/dist/components/navigation/tab-bar/tab-bar.js +9 -0
  250. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  251. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +9 -24
  252. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  253. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +29 -223
  254. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  255. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts +48 -0
  256. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.d.ts.map +1 -0
  257. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +220 -0
  258. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -0
  259. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  260. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +22 -2
  261. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  262. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.d.ts.map +1 -1
  263. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +4 -0
  264. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js.map +1 -1
  265. package/dist/components/{reflect-non-default-OLaK60rT.js → reflect-non-default-B9wQcnne.js} +1 -2
  266. package/dist/components/{rolldown-runtime-D7D4PA-g.js → rolldown-runtime-D8jQpDG7.js} +1 -2
  267. package/dist/components/{shadow-resets-CPa58rmc.js → shadow-resets-BwOyyZFH.js} +1 -2
  268. package/dist/components/{shell-C61GCsJA.js → shell-Dh5IwHd-.js} +1 -2
  269. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +10 -1
  270. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -1
  271. package/dist/components/status-and-feedback/step-bar/step-bar.js +22 -1
  272. package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -1
  273. package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -1
  274. package/dist/components/status-and-feedback/step-bar/step-bar.template.js +2 -0
  275. package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -1
  276. package/dist/components/{toml-C2HBbPgG.js → toml-D0Pix_8Q.js} +1 -2
  277. package/dist/components/{visibility-mixin-djNSG5ZN.js → visibility-mixin-C-K7ho5Q.js} +4 -6
  278. package/dist/components/{with-translations-C6QfP6_S.js → with-translations-DRuOq3QK.js} +14 -10
  279. package/dist/nldd.min.js +846 -747
  280. package/dist/translations/en-US.d.ts.map +1 -1
  281. package/dist/translations/en-US.js +13 -0
  282. package/dist/translations/en-US.js.map +1 -1
  283. package/dist/translations/fy.d.ts.map +1 -1
  284. package/dist/translations/fy.js +13 -0
  285. package/dist/translations/fy.js.map +1 -1
  286. package/dist/translations/nl.generated.d.ts +13 -0
  287. package/dist/translations/nl.generated.d.ts.map +1 -1
  288. package/dist/translations/pap-AW.d.ts.map +1 -1
  289. package/dist/translations/pap-AW.js +13 -0
  290. package/dist/translations/pap-AW.js.map +1 -1
  291. package/dist/translations/pap-CW.d.ts.map +1 -1
  292. package/dist/translations/pap-CW.js +13 -0
  293. package/dist/translations/pap-CW.js.map +1 -1
  294. package/dist/types/vue.d.ts +57 -21
  295. package/dist/utilities/form-associated-mixin.d.ts +7 -0
  296. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  297. package/dist/utilities/form-associated-mixin.js +13 -1
  298. package/dist/utilities/form-associated-mixin.js.map +1 -1
  299. package/dist/utilities/link-hint.d.ts +11 -0
  300. package/dist/utilities/link-hint.d.ts.map +1 -1
  301. package/dist/utilities/link-hint.js +15 -0
  302. package/dist/utilities/link-hint.js.map +1 -1
  303. package/package.json +2 -2
@@ -0,0 +1,86 @@
1
+ import { LitElement } from 'lit';
2
+ import { type MenuVariant } from './menu.template.js';
3
+ import type { QueryMarkMode } from '../../../utilities/render-marked.js';
4
+ import type { NLDDMenu } from './menu.js';
5
+ /** Makes `host` a list item while its menu is a navigation menu, and takes
6
+ * that back when it is not. A `listitem` the consumer set by hand on an item
7
+ * goes too when the variant changes back; nothing else uses that role here. */
8
+ export declare function syncListItemRole(host: HTMLElement, variant: MenuVariant | null): void;
9
+ /**
10
+ * A single item within an nldd-menu.
11
+ *
12
+ * @element nldd-menu-item
13
+ *
14
+ * @attr {boolean} destructive - Marks the item as destructive (red text; red highlight bg). Use for irreversible actions like "Delete". Color is the only built-in signal, so per WCAG 1.4.1 the item's own label must convey the destructive nature (e.g. "Verwijder") — don't rely on the red alone. Confirming the action (e.g. a follow-up dialog) is the consumer's responsibility.
15
+ * @attr {string} text - Display text. Supports **bold** markdown syntax.
16
+ * @attr {string} details - Secondary label shown on the right side.
17
+ * @attr {string} icon - Icon name rendered before the text.
18
+ * @attr {string} shortcut - Keyboard shortcut hint shown on the right, e.g. 'Cmd+E'. Display only (rendered via nldd-keyboard-shortcut) — it does not bind the key; wire up the handling in your app. Hidden on touch-only devices, where it isn't invokable.
19
+ * @attr {string} shortcut-mac / shortcut-windows / shortcut-linux - Per-OS overrides for `shortcut`, picked by detected OS (falls back to `shortcut`).
20
+ * @attr {string} href - Optional link target. A plain button item with an href renders as an `<a>` so it is a real link (middle-click, open in new tab, copy link). Ignored for submenu openers, checkbox/radio items, and while disabled.
21
+ * @attr {string} type - Item type: 'button' | 'checkbox' | 'radio'. Default: 'button'. One checkbox or radio item gives every item in its menu the check-mark column, so the text of the whole menu starts at one line, as in a native menu. Submenus decide for themselves.
22
+ * @attr {boolean} selected - Selected state for checkbox and radio types.
23
+ * @attr {boolean} disabled - Disabled state.
24
+ * @attr {string} value - A value of the item's own, read off the item in a `select` handler. The default filter matches on it as well as on `text` and `aliases`. Not a form value: this component is not form-associated.
25
+ * @attr {string} aliases - Space-separated alternative search terms.
26
+ * @attr {string} query - Query substring to bold-highlight in text. Set by menu's filter(); also settable by consumers.
27
+ * @attr {string} query-mark-mode - 'match' | 'predictive' (default: 'predictive'). See text-cell for details.
28
+ *
29
+ * @fires select - Fired when the item is clicked and not disabled.
30
+ */
31
+ export declare class NLDDMenuItem extends LitElement {
32
+ static styles: import("lit").CSSResult;
33
+ destructive: boolean;
34
+ text: string;
35
+ details: string;
36
+ icon: string;
37
+ shortcut: string;
38
+ shortcutMac: string;
39
+ shortcutWindows: string;
40
+ shortcutLinux: string;
41
+ href: string;
42
+ type: 'button' | 'checkbox' | 'radio';
43
+ selected: boolean;
44
+ disabled: boolean;
45
+ value: string;
46
+ aliases: string;
47
+ query: string;
48
+ queryMarkMode: QueryMarkMode;
49
+ /**
50
+ * Which menu owns this item, set by that nldd-menu. Not part of the public API.
51
+ *
52
+ * `null` until one claims it, and an unclaimed item carries no menu role.
53
+ * A menu role is a promise about what is around you, so an item cannot make
54
+ * it on its own. `nldd-toolbar-item` holds exactly such an item: the
55
+ * declaration of what belongs in the overflow menu, which the toolbar clones
56
+ * into the real menu when it collapses. The clone is claimed there and the
57
+ * declaration stays what it is.
58
+ */
59
+ menuVariant: MenuVariant | null;
60
+ /** Whether this item keeps the check-mark column free without being
61
+ * checkable, because another item in its menu is. Set by that nldd-menu.
62
+ * Not part of the public API. */
63
+ checkColumn: boolean;
64
+ /** Tracks whether this item's submenu (if any) is currently open. Set by
65
+ * the parent nldd-menu via the `submenu-open`/`submenu-close` lifecycle. */
66
+ _submenuOpen: boolean;
67
+ private static _idCounter;
68
+ connectedCallback(): void;
69
+ focus(options?: FocusOptions): void;
70
+ /** Cached reference to the direct child `<nldd-menu>` (this item's
71
+ * submenu). Resolved once at firstUpdated; mutating the children after
72
+ * mount is not supported in v1. */
73
+ private _cachedSubmenuEl;
74
+ private _submenuMutationObserver;
75
+ get _submenuEl(): NLDDMenu | null;
76
+ get _hasSubmenu(): boolean;
77
+ willUpdate(): void;
78
+ updated(changedProperties: Map<string, unknown>): void;
79
+ firstUpdated(): void;
80
+ disconnectedCallback(): void;
81
+ _handleClick(event?: Event): void;
82
+ /** Programmatically select this item. */
83
+ select(): void;
84
+ render(): import("lit-html").TemplateResult<1>;
85
+ }
86
+ //# sourceMappingURL=menu-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C;;gFAEgF;AAChF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAGrF;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAa,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAAkB;IAGxC,WAAW,UAAS;IAGpB,IAAI,SAAM;IAGV,OAAO,SAAM;IAGb,IAAI,SAAM;IAGV,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,eAAe,SAAM;IAGrB,aAAa,SAAM;IAGnB,IAAI,SAAM;IAGV,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAY;IAGjD,QAAQ,UAAS;IAGjB,QAAQ,UAAS;IAGjB,KAAK,SAAM;IAGX,OAAO,SAAM;IAGb,KAAK,SAAM;IAGX,aAAa,EAAE,aAAa,CAAgB;IAE5C;;;;;;;;;OASG;IAEH,WAAW,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEvC;;sCAEkC;IAElC,WAAW,UAAS;IAEpB;gFAC4E;IAE5E,YAAY,UAAS;IAErB,OAAO,CAAC,MAAM,CAAC,UAAU,CAAK;IAErB,iBAAiB,IAAI,IAAI;IA8BzB,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAK5C;;uCAEmC;IACnC,OAAO,CAAC,gBAAgB,CAAyB;IACjD,OAAO,CAAC,wBAAwB,CAAiC;IAEjE,IAAI,UAAU,IAAI,QAAQ,GAAG,IAAI,CAEhC;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAEQ,UAAU,IAAI,IAAI;IAQlB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAWtD,YAAY,IAAI,IAAI;IAmBpB,oBAAoB,IAAI,IAAI;IAMrC,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI;IAyCjC,yCAAyC;IACzC,MAAM,IAAI,IAAI;IAIL,MAAM;CAGf"}
@@ -0,0 +1,279 @@
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 { property, state } from 'lit/decorators.js';
9
+ import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
10
+ import { menuItemStyles } from './menu.styles.js';
11
+ import { menuItemTemplate } from './menu.template.js';
12
+ /** Makes `host` a list item while its menu is a navigation menu, and takes
13
+ * that back when it is not. A `listitem` the consumer set by hand on an item
14
+ * goes too when the variant changes back; nothing else uses that role here. */
15
+ export function syncListItemRole(host, variant) {
16
+ if (variant === 'navigation')
17
+ host.setAttribute('role', 'listitem');
18
+ else if (host.getAttribute('role') === 'listitem')
19
+ host.removeAttribute('role');
20
+ }
21
+ /**
22
+ * A single item within an nldd-menu.
23
+ *
24
+ * @element nldd-menu-item
25
+ *
26
+ * @attr {boolean} destructive - Marks the item as destructive (red text; red highlight bg). Use for irreversible actions like "Delete". Color is the only built-in signal, so per WCAG 1.4.1 the item's own label must convey the destructive nature (e.g. "Verwijder") — don't rely on the red alone. Confirming the action (e.g. a follow-up dialog) is the consumer's responsibility.
27
+ * @attr {string} text - Display text. Supports **bold** markdown syntax.
28
+ * @attr {string} details - Secondary label shown on the right side.
29
+ * @attr {string} icon - Icon name rendered before the text.
30
+ * @attr {string} shortcut - Keyboard shortcut hint shown on the right, e.g. 'Cmd+E'. Display only (rendered via nldd-keyboard-shortcut) — it does not bind the key; wire up the handling in your app. Hidden on touch-only devices, where it isn't invokable.
31
+ * @attr {string} shortcut-mac / shortcut-windows / shortcut-linux - Per-OS overrides for `shortcut`, picked by detected OS (falls back to `shortcut`).
32
+ * @attr {string} href - Optional link target. A plain button item with an href renders as an `<a>` so it is a real link (middle-click, open in new tab, copy link). Ignored for submenu openers, checkbox/radio items, and while disabled.
33
+ * @attr {string} type - Item type: 'button' | 'checkbox' | 'radio'. Default: 'button'. One checkbox or radio item gives every item in its menu the check-mark column, so the text of the whole menu starts at one line, as in a native menu. Submenus decide for themselves.
34
+ * @attr {boolean} selected - Selected state for checkbox and radio types.
35
+ * @attr {boolean} disabled - Disabled state.
36
+ * @attr {string} value - A value of the item's own, read off the item in a `select` handler. The default filter matches on it as well as on `text` and `aliases`. Not a form value: this component is not form-associated.
37
+ * @attr {string} aliases - Space-separated alternative search terms.
38
+ * @attr {string} query - Query substring to bold-highlight in text. Set by menu's filter(); also settable by consumers.
39
+ * @attr {string} query-mark-mode - 'match' | 'predictive' (default: 'predictive'). See text-cell for details.
40
+ *
41
+ * @fires select - Fired when the item is clicked and not disabled.
42
+ */
43
+ export class NLDDMenuItem extends LitElement {
44
+ constructor() {
45
+ super(...arguments);
46
+ this.destructive = false;
47
+ this.text = '';
48
+ this.details = '';
49
+ this.icon = '';
50
+ this.shortcut = '';
51
+ this.shortcutMac = '';
52
+ this.shortcutWindows = '';
53
+ this.shortcutLinux = '';
54
+ this.href = '';
55
+ this.type = 'button';
56
+ this.selected = false;
57
+ this.disabled = false;
58
+ this.value = '';
59
+ this.aliases = '';
60
+ this.query = '';
61
+ this.queryMarkMode = 'predictive';
62
+ /**
63
+ * Which menu owns this item, set by that nldd-menu. Not part of the public API.
64
+ *
65
+ * `null` until one claims it, and an unclaimed item carries no menu role.
66
+ * A menu role is a promise about what is around you, so an item cannot make
67
+ * it on its own. `nldd-toolbar-item` holds exactly such an item: the
68
+ * declaration of what belongs in the overflow menu, which the toolbar clones
69
+ * into the real menu when it collapses. The clone is claimed there and the
70
+ * declaration stays what it is.
71
+ */
72
+ this.menuVariant = null;
73
+ /** Whether this item keeps the check-mark column free without being
74
+ * checkable, because another item in its menu is. Set by that nldd-menu.
75
+ * Not part of the public API. */
76
+ this.checkColumn = false;
77
+ /** Tracks whether this item's submenu (if any) is currently open. Set by
78
+ * the parent nldd-menu via the `submenu-open`/`submenu-close` lifecycle. */
79
+ this._submenuOpen = false;
80
+ /** Cached reference to the direct child `<nldd-menu>` (this item's
81
+ * submenu). Resolved once at firstUpdated; mutating the children after
82
+ * mount is not supported in v1. */
83
+ this._cachedSubmenuEl = null;
84
+ this._submenuMutationObserver = null;
85
+ }
86
+ connectedCallback() {
87
+ super.connectedCallback();
88
+ if (!this.id) {
89
+ this.id = `nldd-menu-item-${NLDDMenuItem._idCounter++}`;
90
+ }
91
+ this.addEventListener('focusin', (e) => {
92
+ // Only react when focus actually lands on our own shadow content
93
+ // (the .menu__item button). focusin is composed and bubbles, so it
94
+ // also fires here when focus moves into a slotted descendant —
95
+ // notably when a child submenu's .menu element gets focused on
96
+ // open. Without this guard the parent's _handleMenuItemFocused
97
+ // re-highlights the opener after we just cleared it.
98
+ const realTarget = e.composedPath()[0];
99
+ if (!realTarget || !this.shadowRoot?.contains(realTarget))
100
+ return;
101
+ this.setAttribute('data-focused', '');
102
+ this.dispatchEvent(new CustomEvent('menu-item-focused', {
103
+ bubbles: true,
104
+ composed: true,
105
+ }));
106
+ });
107
+ this.addEventListener('focusout', (e) => {
108
+ // Mirror the focusin guard so a slotted descendant losing focus
109
+ // doesn't strip data-focused from the opener while it's still
110
+ // keyboard-focused itself.
111
+ const realTarget = e.composedPath()[0];
112
+ if (!realTarget || !this.shadowRoot?.contains(realTarget))
113
+ return;
114
+ this.removeAttribute('data-focused');
115
+ });
116
+ }
117
+ focus(options) {
118
+ const focusable = this.shadowRoot?.querySelector('button, a');
119
+ focusable?.focus(options);
120
+ }
121
+ get _submenuEl() {
122
+ return this._cachedSubmenuEl;
123
+ }
124
+ get _hasSubmenu() {
125
+ return this._cachedSubmenuEl !== null;
126
+ }
127
+ willUpdate() {
128
+ if (this.hasUpdated)
129
+ return;
130
+ // Before the first render, off the light DOM, so the chevron and the ARIA
131
+ // attributes are right the first time. Resolving it in `firstUpdated` asks
132
+ // for a second render from inside the first.
133
+ this._cachedSubmenuEl = this.querySelector(':scope > nldd-menu');
134
+ }
135
+ updated(changedProperties) {
136
+ // In a navigation menu the item is a list item, and the link inside it
137
+ // is just a link.
138
+ if (changedProperties.has('menuVariant'))
139
+ syncListItemRole(this, this.menuVariant);
140
+ // An item that becomes checkable, or stops being so, changes whether its
141
+ // menu reserves the check-mark column, also while the menu is open.
142
+ if (changedProperties.has('type') && changedProperties.get('type') !== undefined && this.menuVariant) {
143
+ this.closest('nldd-menu')?._claimItems();
144
+ }
145
+ }
146
+ firstUpdated() {
147
+ // Submenu attachment is one-shot in v1 — a nldd-menu added after this
148
+ // point would silently miss aria-controls, the chevron indicator, the
149
+ // hover-open lifecycle, and the close-state sync. Watch for late
150
+ // additions and warn so consumers don't chase the symptom.
151
+ this._submenuMutationObserver = new MutationObserver(() => {
152
+ const current = this.querySelector(':scope > nldd-menu');
153
+ if (current && current !== this._cachedSubmenuEl) {
154
+ console.warn('[nldd-menu-item] A nldd-menu child was added after mount. '
155
+ + 'Submenu attachment is resolved once at firstUpdated in v1, '
156
+ + 'so this menu will not be treated as a submenu. Define the '
157
+ + 'nldd-menu child before the item is connected to the DOM.');
158
+ }
159
+ });
160
+ this._submenuMutationObserver.observe(this, { childList: true });
161
+ }
162
+ disconnectedCallback() {
163
+ super.disconnectedCallback();
164
+ this._submenuMutationObserver?.disconnect();
165
+ this._submenuMutationObserver = null;
166
+ }
167
+ _handleClick(event) {
168
+ if (this.disabled)
169
+ return;
170
+ // Submenu items don't fire `select` — they open their submenu instead.
171
+ // Item is either an action OR a submenu opener, not both.
172
+ if (this._hasSubmenu) {
173
+ // The button is wired to the submenu via the popoverTargetElement
174
+ // IDL property (set in the template). That marks it as the
175
+ // submenu's invoker so the browser excludes the opener from
176
+ // popover light-dismiss — clicking the opener no longer closes
177
+ // the submenu underneath it. The flip side: the browser would
178
+ // also auto-show the popover with its default positioning,
179
+ // which races our anchor + placement set in `_handleSubmenuOpen`.
180
+ // preventDefault stops the browser action and lets our flow
181
+ // own positioning.
182
+ //
183
+ // We use the IDL property rather than the `popovertarget`
184
+ // attribute because the button lives in this menu-item's shadow
185
+ // root while the submenu is a light-DOM child — attribute-based
186
+ // ID resolution is tree-scoped and would silently fail to find
187
+ // the cross-tree target. The IDL property takes a direct element
188
+ // reference and works across shadow boundaries.
189
+ event?.preventDefault();
190
+ // Click on an already-open opener: keep the submenu visible and
191
+ // the opener visually "active" (aria-expanded + :hover). A second
192
+ // click should not toggle it closed — that conflicts with the
193
+ // hover-open semantics of cascade mode.
194
+ if (this._submenuOpen)
195
+ return;
196
+ this.dispatchEvent(new CustomEvent('submenu-open', {
197
+ detail: { submenu: this._submenuEl, item: this },
198
+ bubbles: true,
199
+ composed: false,
200
+ }));
201
+ return;
202
+ }
203
+ this.dispatchEvent(new CustomEvent('select', {
204
+ bubbles: true,
205
+ composed: true,
206
+ }));
207
+ this.closest('nldd-menu')?.hidePopover?.();
208
+ }
209
+ /** Programmatically select this item. */
210
+ select() {
211
+ this._handleClick();
212
+ }
213
+ render() {
214
+ return menuItemTemplate.call(this, this.menuVariant);
215
+ }
216
+ }
217
+ NLDDMenuItem.styles = menuItemStyles;
218
+ NLDDMenuItem._idCounter = 0;
219
+ __decorate([
220
+ property({ type: Boolean, reflect: true })
221
+ ], NLDDMenuItem.prototype, "destructive", void 0);
222
+ __decorate([
223
+ property({ reflect: true, converter: reflectNonDefault('') })
224
+ ], NLDDMenuItem.prototype, "text", void 0);
225
+ __decorate([
226
+ property({ reflect: true, converter: reflectNonDefault('') })
227
+ ], NLDDMenuItem.prototype, "details", void 0);
228
+ __decorate([
229
+ property({ type: String, reflect: true })
230
+ ], NLDDMenuItem.prototype, "icon", void 0);
231
+ __decorate([
232
+ property({ reflect: true, converter: reflectNonDefault('') })
233
+ ], NLDDMenuItem.prototype, "shortcut", void 0);
234
+ __decorate([
235
+ property({ reflect: true, attribute: 'shortcut-mac', converter: reflectNonDefault('') })
236
+ ], NLDDMenuItem.prototype, "shortcutMac", void 0);
237
+ __decorate([
238
+ property({ reflect: true, attribute: 'shortcut-windows', converter: reflectNonDefault('') })
239
+ ], NLDDMenuItem.prototype, "shortcutWindows", void 0);
240
+ __decorate([
241
+ property({ reflect: true, attribute: 'shortcut-linux', converter: reflectNonDefault('') })
242
+ ], NLDDMenuItem.prototype, "shortcutLinux", void 0);
243
+ __decorate([
244
+ property({ type: String, reflect: true })
245
+ ], NLDDMenuItem.prototype, "href", void 0);
246
+ __decorate([
247
+ property({ type: String, reflect: true })
248
+ ], NLDDMenuItem.prototype, "type", void 0);
249
+ __decorate([
250
+ property({ type: Boolean, reflect: true })
251
+ ], NLDDMenuItem.prototype, "selected", void 0);
252
+ __decorate([
253
+ property({ type: Boolean, reflect: true })
254
+ ], NLDDMenuItem.prototype, "disabled", void 0);
255
+ __decorate([
256
+ property({ type: String, reflect: true })
257
+ ], NLDDMenuItem.prototype, "value", void 0);
258
+ __decorate([
259
+ property({ reflect: true, converter: reflectNonDefault('') })
260
+ ], NLDDMenuItem.prototype, "aliases", void 0);
261
+ __decorate([
262
+ property({ reflect: true, converter: reflectNonDefault('') })
263
+ ], NLDDMenuItem.prototype, "query", void 0);
264
+ __decorate([
265
+ property({ reflect: true, attribute: 'query-mark-mode', converter: reflectNonDefault('predictive') })
266
+ ], NLDDMenuItem.prototype, "queryMarkMode", void 0);
267
+ __decorate([
268
+ state()
269
+ ], NLDDMenuItem.prototype, "menuVariant", void 0);
270
+ __decorate([
271
+ state()
272
+ ], NLDDMenuItem.prototype, "checkColumn", void 0);
273
+ __decorate([
274
+ state()
275
+ ], NLDDMenuItem.prototype, "_submenuOpen", void 0);
276
+ if (!customElements.get('nldd-menu-item')) {
277
+ customElements.define('nldd-menu-item', NLDDMenuItem);
278
+ }
279
+ //# sourceMappingURL=menu-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-item.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,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AAE,CAAC,EAAE,CAAC;mDAChF;AAGnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAChC;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CACO;AAGjD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAC1B;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2CAC/B;AAGX;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;6CACzD;AAGb;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;2CAC3D;AAGX;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,iBAAiB,CAAgB,YAAY,CAAC,EAAE,CAAC;mDACzE;AAa5C;IADC,KAAK,EAAE;iDAC+B;AAMvC;IADC,KAAK,EAAE;iDACY;AAKpB;IADC,KAAK,EAAE;kDACa;AAoJtB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC;IAC3C,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACvD,CAAC"}
@@ -0,0 +1,40 @@
1
+ import type { NLDDMenu } from './menu.js';
2
+ import type { NLDDMenuItem } from './menu-item.js';
3
+ /**
4
+ * One open submenu in a chain: which menu opened it, from which item, and how
5
+ * it closes. A level has three paths:
6
+ *
7
+ * 1. **Open.** Wire the submenu to its parent, register it with the root, and
8
+ * show it: beside its item in cascade mode, in place of its parent in
9
+ * drill-in mode.
10
+ * 2. **One level back.** The submenu closed on its own (the back button,
11
+ * ArrowLeft, Escape, light-dismiss in cascade mode). Tear down, and in
12
+ * drill-in mode show the parent again and say where you are.
13
+ * 3. **Collapse.** The whole chain goes (a select, the anchor, a tap outside,
14
+ * a resize). Tear down without showing the parent, driven from the root's
15
+ * registry, so it never depends on parent links that real interaction can
16
+ * leave stale.
17
+ *
18
+ * Everything a level needs is captured here when it opens, so a viewport flip
19
+ * between cascade and drill-in mid-navigation cannot leave it half undone.
20
+ */
21
+ export declare class SubmenuLevel {
22
+ readonly parent: NLDDMenu;
23
+ readonly opener: NLDDMenuItem;
24
+ readonly submenu: NLDDMenu;
25
+ readonly drillIn: boolean;
26
+ /** The root of the chain, whose registry holds this level. */
27
+ readonly root: NLDDMenu;
28
+ /** Where a drill-in submenu stood before it moved to <body>. */
29
+ private _homeParent;
30
+ private _homeNextSibling;
31
+ constructor(parent: NLDDMenu, opener: NLDDMenuItem, submenu: NLDDMenu, drillIn: boolean);
32
+ open(): void;
33
+ /** Close this level as part of collapsing the whole chain. */
34
+ collapse(): void;
35
+ private _handleToggle;
36
+ /** Undo what `open` did. With `stepBack`, a drill-in parent shows again and
37
+ * announces itself; a collapse leaves it closed and silent. */
38
+ private _teardown;
39
+ }
40
+ //# sourceMappingURL=menu.chain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.chain.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.chain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,YAAY;IASvB,QAAQ,CAAC,MAAM,EAAE,QAAQ;IACzB,QAAQ,CAAC,MAAM,EAAE,YAAY;IAC7B,QAAQ,CAAC,OAAO,EAAE,QAAQ;IAC1B,QAAQ,CAAC,OAAO,EAAE,OAAO;IAX1B,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAExB,gEAAgE;IAChE,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,gBAAgB,CAAqB;gBAGnC,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,OAAO;IAK1B,IAAI,IAAI,IAAI;IAyDZ,8DAA8D;IAC9D,QAAQ,IAAI,IAAI;IAOhB,OAAO,CAAC,aAAa,CASnB;IAEF;oEACgE;IAChE,OAAO,CAAC,SAAS;CA2CjB"}
@@ -0,0 +1,150 @@
1
+ import { carryContext, releaseContext } from '../../../utilities/carried-context.js';
2
+ /**
3
+ * One open submenu in a chain: which menu opened it, from which item, and how
4
+ * it closes. A level has three paths:
5
+ *
6
+ * 1. **Open.** Wire the submenu to its parent, register it with the root, and
7
+ * show it: beside its item in cascade mode, in place of its parent in
8
+ * drill-in mode.
9
+ * 2. **One level back.** The submenu closed on its own (the back button,
10
+ * ArrowLeft, Escape, light-dismiss in cascade mode). Tear down, and in
11
+ * drill-in mode show the parent again and say where you are.
12
+ * 3. **Collapse.** The whole chain goes (a select, the anchor, a tap outside,
13
+ * a resize). Tear down without showing the parent, driven from the root's
14
+ * registry, so it never depends on parent links that real interaction can
15
+ * leave stale.
16
+ *
17
+ * Everything a level needs is captured here when it opens, so a viewport flip
18
+ * between cascade and drill-in mid-navigation cannot leave it half undone.
19
+ */
20
+ export class SubmenuLevel {
21
+ constructor(parent, opener, submenu, drillIn) {
22
+ this.parent = parent;
23
+ this.opener = opener;
24
+ this.submenu = submenu;
25
+ this.drillIn = drillIn;
26
+ /** Where a drill-in submenu stood before it moved to <body>. */
27
+ this._homeParent = null;
28
+ this._homeNextSibling = null;
29
+ this._handleToggle = (event) => {
30
+ if (event.newState !== 'closed')
31
+ return;
32
+ // Hidden to make room for a deeper level: the chain stays, and so does
33
+ // this listener for the real close later.
34
+ if (this.submenu._drillInHidingForDeeper) {
35
+ this.submenu._drillInHidingForDeeper = false;
36
+ return;
37
+ }
38
+ this._teardown(true);
39
+ };
40
+ this.root = parent._rootMenu;
41
+ }
42
+ open() {
43
+ const { parent, opener, submenu, root } = this;
44
+ // One peer submenu at a time.
45
+ parent._activeSubmenu?.hidePopover?.();
46
+ submenu._parentMenu = parent;
47
+ submenu._parentItem = opener;
48
+ submenu._chainRoot = root;
49
+ if (!root._openChain.includes(this))
50
+ root._openChain.push(this);
51
+ if (this.drillIn) {
52
+ // Every level opens at the root's anchor and placement, so the views
53
+ // stack in one place. The back button comes from the template.
54
+ submenu.anchorElement = root._getAnchorEl();
55
+ submenu.placement = root.placement;
56
+ }
57
+ else {
58
+ submenu.anchorElement = opener;
59
+ submenu.placement = 'right-start';
60
+ }
61
+ parent._activeSubmenu = submenu;
62
+ parent._activeSubmenuOpener = opener;
63
+ parent._activeLevel = this;
64
+ opener._submenuOpen = true;
65
+ // What is current now sits in the submenu. The opener still shows as
66
+ // active through aria-expanded, and :hover brings back the accent.
67
+ opener.removeAttribute('highlighted');
68
+ submenu.addEventListener('toggle', this._handleToggle);
69
+ if (this.drillIn) {
70
+ // Out of the popover stack of its parent, so the parent can close
71
+ // without closing the submenu along with it. Put back on teardown.
72
+ this._homeParent = submenu.parentElement;
73
+ this._homeNextSibling = submenu.nextSibling;
74
+ carryContext(submenu, this._homeParent);
75
+ document.body.appendChild(submenu);
76
+ }
77
+ submenu.showPopover?.();
78
+ if (this.drillIn) {
79
+ // The view swapped: say which level you entered, the same text the
80
+ // back button carries.
81
+ submenu._announce(submenu._t('components.menu.submenu-title', { title: opener.text }));
82
+ // Tells the parent's own level that this hide makes room for a
83
+ // deeper view, and is no step back.
84
+ parent._drillInHidingForDeeper = true;
85
+ parent.hidePopover?.();
86
+ }
87
+ else {
88
+ // One frame on, the submenu stands where Floating UI put it.
89
+ requestAnimationFrame(() => {
90
+ if (parent._activeSubmenu === submenu)
91
+ parent._safeTriangle.start(submenu);
92
+ });
93
+ }
94
+ }
95
+ /** Close this level as part of collapsing the whole chain. */
96
+ collapse() {
97
+ // Off first, so this hide is not also taken for a step back.
98
+ this.submenu.removeEventListener('toggle', this._handleToggle);
99
+ this.submenu.hidePopover?.();
100
+ this._teardown(false);
101
+ }
102
+ /** Undo what `open` did. With `stepBack`, a drill-in parent shows again and
103
+ * announces itself; a collapse leaves it closed and silent. */
104
+ _teardown(stepBack) {
105
+ const { parent, opener, submenu, root } = this;
106
+ submenu.removeEventListener('toggle', this._handleToggle);
107
+ if (parent._activeSubmenu === submenu) {
108
+ parent._activeSubmenu = null;
109
+ parent._activeSubmenuOpener = null;
110
+ parent._activeLevel = null;
111
+ }
112
+ submenu._parentMenu = null;
113
+ submenu._parentItem = null;
114
+ submenu._chainRoot = null;
115
+ const index = root._openChain.indexOf(this);
116
+ if (index !== -1)
117
+ root._openChain.splice(index, 1);
118
+ opener._submenuOpen = false;
119
+ if (this.drillIn) {
120
+ releaseContext(submenu);
121
+ if (this._homeParent?.isConnected) {
122
+ this._homeParent.insertBefore(submenu, this._homeNextSibling);
123
+ }
124
+ else {
125
+ // Its home left the DOM while it stood in <body> (navigation, a
126
+ // story teardown). Nowhere to go back to, so it goes.
127
+ submenu.remove();
128
+ }
129
+ if (stepBack && parent.isConnected) {
130
+ if (!parent.matches(':popover-open'))
131
+ parent.showPopover?.();
132
+ const destination = parent._parentItem?.text;
133
+ parent._announce(destination
134
+ ? parent._t('components.menu.submenu-back-action', { title: destination })
135
+ : parent._t('components.menu.back-action'));
136
+ }
137
+ }
138
+ // The opener loses the in-transit accent, unless it has focus: ArrowLeft
139
+ // focuses it before this toggle arrives, and that focus highlighted it.
140
+ if (!opener.hasAttribute('data-focused'))
141
+ opener.removeAttribute('highlighted');
142
+ parent._safeTriangle.stop();
143
+ parent.dispatchEvent(new CustomEvent('submenu-close', {
144
+ detail: { submenu, item: opener },
145
+ bubbles: true,
146
+ composed: false,
147
+ }));
148
+ }
149
+ }
150
+ //# sourceMappingURL=menu.chain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.chain.js","sourceRoot":"","sources":["../../../../src/components/actions/menu/menu.chain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAIrF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,YAAY;IAQxB,YACU,MAAgB,EAChB,MAAoB,EACpB,OAAiB,EACjB,OAAgB;QAHhB,WAAM,GAAN,MAAM,CAAU;QAChB,WAAM,GAAN,MAAM,CAAc;QACpB,YAAO,GAAP,OAAO,CAAU;QACjB,YAAO,GAAP,OAAO,CAAS;QAR1B,gEAAgE;QACxD,gBAAW,GAAuB,IAAI,CAAC;QACvC,qBAAgB,GAAgB,IAAI,CAAC;QA4ErC,kBAAa,GAAG,CAAC,KAAY,EAAQ,EAAE;YAC9C,IAAK,KAAqB,CAAC,QAAQ,KAAK,QAAQ;gBAAE,OAAO;YACzD,uEAAuE;YACvE,0CAA0C;YAC1C,IAAI,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,CAAC;gBAC1C,IAAI,CAAC,OAAO,CAAC,uBAAuB,GAAG,KAAK,CAAC;gBAC7C,OAAO;YACR,CAAC;YACD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC,CAAC;QA7ED,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC;IAC9B,CAAC;IAED,IAAI;QACH,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QAC/C,8BAA8B;QAC9B,MAAM,CAAC,cAAc,EAAE,WAAW,EAAE,EAAE,CAAC;QAEvC,OAAO,CAAC,WAAW,GAAG,MAAM,CAAC;QAC7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