@dso-toolkit/core 97.1.1 → 99.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (609) hide show
  1. package/dist/bundle/dso-accordion-section.js +15 -14
  2. package/dist/bundle/dso-accordion.js +2 -276
  3. package/dist/bundle/dso-action-list-item.js +5 -5
  4. package/dist/bundle/dso-action-list.js +3 -3
  5. package/dist/bundle/dso-advanced-select.js +112 -235
  6. package/dist/bundle/dso-alert.js +1 -1
  7. package/dist/bundle/dso-annotation-activiteit.js +11 -11
  8. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +10 -10
  9. package/dist/bundle/dso-annotation-kaart.js +7 -7
  10. package/dist/bundle/dso-annotation-locatie.js +1 -1
  11. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +11 -11
  12. package/dist/bundle/dso-attachments-counter.js +1 -1
  13. package/dist/bundle/dso-autosuggest.js +27 -18
  14. package/dist/bundle/dso-badge.js +1 -1
  15. package/dist/bundle/dso-banner.js +5 -5
  16. package/dist/bundle/dso-button-group.js +1 -1
  17. package/dist/bundle/dso-card-container.js +2 -2
  18. package/dist/bundle/dso-card.js +5 -5
  19. package/dist/bundle/dso-contact-information.js +3 -3
  20. package/dist/bundle/dso-cursor-tooltip.js +3 -3
  21. package/dist/bundle/dso-date-picker.js +2 -2
  22. package/dist/bundle/dso-document-card.js +4 -4
  23. package/dist/bundle/dso-document-component.js +1 -1
  24. package/dist/bundle/dso-dropdown-menu-group.d.ts +11 -0
  25. package/dist/bundle/dso-dropdown-menu-group.js +51 -0
  26. package/dist/bundle/dso-dropdown-menu-item.d.ts +11 -0
  27. package/dist/bundle/dso-dropdown-menu-item.js +70 -0
  28. package/dist/bundle/dso-dropdown-menu.js +97 -108
  29. package/dist/bundle/dso-expandable.js +1 -1
  30. package/dist/bundle/dso-header.js +24 -7
  31. package/dist/bundle/dso-highlight-box.js +3 -3
  32. package/dist/bundle/dso-history-item.js +3 -3
  33. package/dist/bundle/dso-icon-button.js +1 -1
  34. package/dist/bundle/dso-icon.js +1 -1
  35. package/dist/bundle/dso-image-overlay.js +1 -1
  36. package/dist/bundle/dso-info-button.js +1 -1
  37. package/dist/bundle/dso-info.js +1 -1
  38. package/dist/bundle/dso-input-range.js +3 -3
  39. package/dist/bundle/dso-label.js +1 -1
  40. package/dist/bundle/dso-legend-group.js +5 -5
  41. package/dist/bundle/dso-legend-item.js +8 -8
  42. package/dist/bundle/dso-legend.js +7 -7
  43. package/dist/bundle/dso-list-button.js +9 -9
  44. package/dist/bundle/dso-logo.js +2 -2
  45. package/dist/bundle/dso-map-base-layers.js +10 -10
  46. package/dist/bundle/dso-map-controls.js +8 -8
  47. package/dist/bundle/dso-map-layer-object.js +5 -5
  48. package/dist/bundle/dso-map-layer.js +5 -5
  49. package/dist/bundle/dso-map-message.js +5 -5
  50. package/dist/bundle/dso-map-overlays.js +10 -10
  51. package/dist/bundle/dso-mark-bar.js +4 -4
  52. package/dist/bundle/dso-modal.js +1 -1
  53. package/dist/bundle/dso-onboarding-tip.js +6 -6
  54. package/dist/bundle/dso-ozon-content-toggletip.js +1 -1
  55. package/dist/bundle/dso-ozon-content.js +1 -1
  56. package/dist/bundle/dso-pagination.js +4 -4
  57. package/dist/bundle/dso-panel.js +1 -1
  58. package/dist/bundle/dso-plekinfo-card.js +5 -5
  59. package/dist/bundle/dso-progress-indicator.js +1 -1
  60. package/dist/bundle/dso-project-item.js +6 -6
  61. package/dist/bundle/dso-renvooi.js +1 -1
  62. package/dist/bundle/dso-responsive-element.js +1 -1
  63. package/dist/bundle/dso-scrollable.js +1 -1
  64. package/dist/bundle/dso-segmented-button.js +2 -2
  65. package/dist/bundle/dso-selectable.js +1 -1
  66. package/dist/bundle/dso-skiplink.js +4 -4
  67. package/dist/bundle/dso-slide-toggle.js +1 -1
  68. package/dist/bundle/dso-survey-rating.js +7 -7
  69. package/dist/bundle/dso-tab.js +1 -1
  70. package/dist/bundle/dso-table.js +1 -1
  71. package/dist/bundle/dso-tabs.js +2 -2
  72. package/dist/bundle/dso-tijdreis-banner.js +4 -4
  73. package/dist/bundle/dso-tooltip.js +3 -3
  74. package/dist/bundle/dso-tree-view.js +5 -5
  75. package/dist/bundle/dso-viewer-grid.js +4 -4
  76. package/dist/bundle/dsot-document-component-demo.js +19 -19
  77. package/dist/bundle/index.js +6 -2
  78. package/dist/bundle/p--cUlQ7cz.js +48 -0
  79. package/dist/bundle/{p-CA57bAyP.js → p-1_UAZ1k8.js} +3 -3
  80. package/dist/bundle/p-B2dzHUld.js +156 -0
  81. package/dist/{esm/index.esm-PsHl6ZhV.js → bundle/p-B7w6tF4K.js} +6 -4
  82. package/dist/bundle/{p-CK3_k8jD.js → p-BF0_OXTe.js} +13 -6
  83. package/dist/bundle/{p-C7VfGukK.js → p-BHLdB8zD.js} +3 -3
  84. package/dist/bundle/p-BLJDfYn6.js +341 -0
  85. package/dist/bundle/{p-DaRtnn5i.js → p-BO8XMsvv.js} +1 -1
  86. package/dist/bundle/{p-jon8ZgCu.js → p-BitwYWnu.js} +19 -5
  87. package/dist/bundle/p-BquLCiqR.js +1209 -0
  88. package/dist/bundle/{p-rHiKziuf.js → p-ByYAhz9G.js} +1 -1
  89. package/dist/bundle/{p-DtNjY6f6.js → p-CCT77M-p.js} +6 -6
  90. package/dist/bundle/{p-DwBHVuoZ.js → p-CUWMAyh7.js} +21 -9
  91. package/dist/bundle/p-CWeAud7S.js +122 -0
  92. package/dist/bundle/p-D-B4iPrZ.js +79 -0
  93. package/dist/bundle/p-DKxBVCbw.js +148 -0
  94. package/dist/bundle/{p-D1ciWwSo.js → p-DMMY0U7e.js} +2 -2
  95. package/dist/bundle/p-DTsQJazx.js +75 -0
  96. package/dist/bundle/p-DVuh3xxM.js +278 -0
  97. package/dist/bundle/{p-BIShp3sw.js → p-Di7uBIhp.js} +1 -1
  98. package/dist/bundle/{p-WEiXvjCu.js → p-DiFgvE1s.js} +1 -1
  99. package/dist/bundle/{p-HMxVj4ab.js → p-DkfyXO1_.js} +3 -3
  100. package/dist/bundle/{p-CcFEBE0l.js → p-DllcFyEo.js} +4 -4
  101. package/dist/bundle/{p-DYFOhFhk.js → p-Dp-4Dh4d.js} +3 -3
  102. package/dist/bundle/p-Dv5uebcx.js +69 -0
  103. package/dist/bundle/p-J9MFut03.js +166 -0
  104. package/dist/bundle/p-P8bro__O.js +124 -0
  105. package/dist/bundle/p-RWOdH6CR.js +189 -0
  106. package/dist/bundle/{p-D33HZm70.js → p-SOcTMGt_.js} +8 -8
  107. package/dist/bundle/{p-Bh_AjQ7z.js → p-SQkUa7w3.js} +7 -7
  108. package/dist/bundle/{p-DgKvq-q9.js → p-_Cugwqbf.js} +1 -1
  109. package/dist/bundle/{p-CgXakBQA.js → p-_TVwcL7Y.js} +1 -1
  110. package/dist/bundle/p-qW59SYSp.js +83 -0
  111. package/dist/bundle/{p-ChO20JhC.js → p-reu-eaRq.js} +4 -4
  112. package/dist/cjs/{annotation-body-DorcBRdu.js → annotation-body-CiWbOM67.js} +1 -1
  113. package/dist/cjs/{annotation-list-renvooi-values-DY_nt_wa.js → annotation-list-renvooi-values-BeNFLgnO.js} +1 -1
  114. package/dist/cjs/{annotation-watcher-DuftgGaK.js → annotation-watcher-5j3WUBEz.js} +1 -1
  115. package/dist/cjs/dso-accordion-section.cjs.entry.js +8 -7
  116. package/dist/cjs/dso-accordion.cjs.entry.js +3 -277
  117. package/dist/cjs/dso-action-list-item.cjs.entry.js +4 -4
  118. package/dist/cjs/dso-action-list.cjs.entry.js +3 -3
  119. package/dist/cjs/dso-advanced-select.cjs.entry.js +107 -230
  120. package/dist/cjs/dso-alert_7.cjs.entry.js +72 -31
  121. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +6 -6
  122. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +5 -5
  123. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +4 -4
  124. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +11 -11
  125. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +6 -6
  126. package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +4 -4
  127. package/dist/cjs/dso-autosuggest.cjs.entry.js +24 -15
  128. package/dist/cjs/dso-banner.cjs.entry.js +4 -4
  129. package/dist/cjs/dso-button-group.cjs.entry.js +3 -3
  130. package/dist/cjs/dso-card-container.cjs.entry.js +2 -2
  131. package/dist/cjs/dso-card.cjs.entry.js +4 -4
  132. package/dist/cjs/dso-contact-information.cjs.entry.js +3 -3
  133. package/dist/cjs/dso-cursor-tooltip.cjs.entry.js +3 -3
  134. package/dist/cjs/dso-date-picker.cjs.entry.js +2 -2
  135. package/dist/cjs/dso-document-card.cjs.entry.js +3 -3
  136. package/dist/cjs/dso-dropdown-menu-group.cjs.entry.js +31 -0
  137. package/dist/cjs/dso-dropdown-menu-item.cjs.entry.js +41 -0
  138. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +84 -102
  139. package/dist/cjs/dso-header.cjs.entry.js +23 -6
  140. package/dist/cjs/dso-highlight-box.cjs.entry.js +3 -3
  141. package/dist/cjs/dso-history-item.cjs.entry.js +2 -2
  142. package/dist/cjs/dso-icon-button.cjs.entry.js +97 -0
  143. package/dist/cjs/{dso-icon_2.cjs.entry.js → dso-icon.cjs.entry.js} +2 -95
  144. package/dist/cjs/dso-info_3.cjs.entry.js +8 -8
  145. package/dist/cjs/dso-input-range.cjs.entry.js +3 -3
  146. package/dist/cjs/dso-label_3.cjs.entry.js +8 -8
  147. package/dist/cjs/dso-legend-group.cjs.entry.js +3 -3
  148. package/dist/cjs/dso-legend-item.cjs.entry.js +3 -3
  149. package/dist/cjs/dso-legend.cjs.entry.js +4 -4
  150. package/dist/cjs/dso-list-button.cjs.entry.js +3 -3
  151. package/dist/cjs/dso-logo.cjs.entry.js +2 -2
  152. package/dist/cjs/dso-map-base-layers.cjs.entry.js +4 -4
  153. package/dist/cjs/dso-map-controls.cjs.entry.js +4 -4
  154. package/dist/cjs/dso-map-layer-object.cjs.entry.js +4 -4
  155. package/dist/cjs/dso-map-layer.cjs.entry.js +4 -4
  156. package/dist/cjs/dso-map-message.cjs.entry.js +4 -4
  157. package/dist/cjs/dso-map-overlays.cjs.entry.js +4 -4
  158. package/dist/cjs/dso-mark-bar.cjs.entry.js +2 -2
  159. package/dist/cjs/dso-modal.cjs.entry.js +5 -5
  160. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +3 -3
  161. package/dist/cjs/dso-pagination.cjs.entry.js +2 -2
  162. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +4 -4
  163. package/dist/cjs/dso-progress-indicator.cjs.entry.js +3 -3
  164. package/dist/cjs/dso-project-item.cjs.entry.js +3 -3
  165. package/dist/cjs/dso-responsive-element.cjs.entry.js +19 -5
  166. package/dist/cjs/dso-scrollable.cjs.entry.js +4 -4
  167. package/dist/cjs/dso-segmented-button.cjs.entry.js +2 -2
  168. package/dist/cjs/dso-skiplink.cjs.entry.js +3 -3
  169. package/dist/cjs/dso-survey-rating.cjs.entry.js +4 -4
  170. package/dist/cjs/dso-tab.cjs.entry.js +1 -1
  171. package/dist/cjs/dso-tabs.cjs.entry.js +2 -2
  172. package/dist/cjs/dso-tijdreis-banner.cjs.entry.js +3 -3
  173. package/dist/cjs/dso-toolkit.cjs.js +3 -3
  174. package/dist/cjs/dso-tooltip.cjs.entry.js +3 -3
  175. package/dist/cjs/dso-tree-view.cjs.entry.js +3 -3
  176. package/dist/cjs/dso-viewer-grid.cjs.entry.js +4 -4
  177. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +2 -2
  178. package/dist/cjs/{i18n-5XH7oHkT.js → i18n-DK8kVhhe.js} +21 -9
  179. package/dist/cjs/index-D8SsuyUx.js +280 -0
  180. package/dist/cjs/{index-BOI4CviS.js → index-fOjUpMJG.js} +1 -1
  181. package/dist/cjs/{index.esm-C3mvhVxy.js → index.esm-ZWBcSumL.js} +5 -3
  182. package/dist/cjs/loader.cjs.js +2 -2
  183. package/dist/cjs/{parse-wijzigactie-from-node.function-BbYINqVA.js → parse-wijzigactie-from-node.function-Bi4NE9Tt.js} +1 -1
  184. package/dist/cjs/{tooltip.functional-component-CW6vXWhM.js → tooltip.functional-component-D6oJmzwD.js} +1 -1
  185. package/dist/cjs/{v4-_2BfiRUa.js → v4-Br3XC_0C.js} +13 -6
  186. package/dist/cjs/{wrap-wijzigactie.functional-component-BOafAh_v.js → wrap-wijzigactie.functional-component-CV8gX7lQ.js} +1 -1
  187. package/dist/collection/collection-manifest.json +3 -1
  188. package/dist/collection/components/accordion/components/accordion-section.css +15 -22
  189. package/dist/collection/components/accordion/components/accordion-section.js +6 -5
  190. package/dist/collection/components/action-list/action-list.css +15 -22
  191. package/dist/collection/components/action-list/action-list.js +1 -1
  192. package/dist/collection/components/action-list/components/action-list-item.css +15 -4
  193. package/dist/collection/components/action-list/components/action-list-item.js +2 -2
  194. package/dist/collection/components/advanced-select/advanced-select.css +70 -119
  195. package/dist/collection/components/advanced-select/advanced-select.js +2 -2
  196. package/dist/collection/components/alert/alert.css +102 -137
  197. package/dist/collection/components/alert/alert.js +1 -1
  198. package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +1 -1
  199. package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +1 -1
  200. package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +1 -1
  201. package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js +1 -1
  202. package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js +1 -1
  203. package/dist/collection/components/annotation/annotation.css +34 -48
  204. package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
  205. package/dist/collection/components/autosuggest/autosuggest.js +21 -12
  206. package/dist/collection/components/badge/badge.css +255 -430
  207. package/dist/collection/components/badge/badge.js +2 -2
  208. package/dist/collection/components/banner/banner.css +71 -99
  209. package/dist/collection/components/banner/banner.js +2 -2
  210. package/dist/collection/components/button-group/button-group.css +11 -11
  211. package/dist/collection/components/button-group/button-group.js +1 -1
  212. package/dist/collection/components/card/card.css +17 -17
  213. package/dist/collection/components/card/card.js +2 -2
  214. package/dist/collection/components/card-container/card-container.js +1 -1
  215. package/dist/collection/components/contact-information/contact-information.css +1 -1
  216. package/dist/collection/components/contact-information/contact-information.js +1 -1
  217. package/dist/collection/components/cursor-tooltip/cursor-tooltip.css +10 -17
  218. package/dist/collection/components/cursor-tooltip/cursor-tooltip.js +1 -1
  219. package/dist/collection/components/date-picker/date-picker.js +1 -1
  220. package/dist/collection/components/document-card/document-card.css +1 -1
  221. package/dist/collection/components/document-card/document-card.js +1 -1
  222. package/dist/collection/components/document-component/document-component.css +95 -108
  223. package/dist/collection/components/document-component/document-component.js +4 -4
  224. package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
  225. package/dist/collection/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.css +16 -0
  226. package/dist/collection/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.js +55 -0
  227. package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.css +80 -0
  228. package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.js +160 -0
  229. package/dist/collection/components/dropdown-menu/dropdown-menu.css +482 -2
  230. package/dist/collection/components/dropdown-menu/dropdown-menu.interfaces.js +1 -0
  231. package/dist/collection/components/dropdown-menu/dropdown-menu.js +137 -142
  232. package/dist/collection/components/expandable/expandable.js +2 -2
  233. package/dist/collection/components/header/header.js +19 -2
  234. package/dist/collection/components/highlight-box/highlight-box.css +208 -11
  235. package/dist/collection/components/highlight-box/highlight-box.js +1 -1
  236. package/dist/collection/components/history-item/history-item.js +1 -1
  237. package/dist/collection/components/icon/icon.js +1 -1
  238. package/dist/collection/components/icon-button/icon-button.css +48 -62
  239. package/dist/collection/components/icon-button/icon-button.js +1 -1
  240. package/dist/collection/components/image-overlay/image-overlay.css +46 -74
  241. package/dist/collection/components/image-overlay/image-overlay.js +23 -4
  242. package/dist/collection/components/info/info.css +10 -17
  243. package/dist/collection/components/info/info.js +1 -1
  244. package/dist/collection/components/info-button/info-button.css +6 -6
  245. package/dist/collection/components/info-button/info-button.js +1 -1
  246. package/dist/collection/components/input-range/input-range.js +2 -2
  247. package/dist/collection/components/label/label.css +104 -174
  248. package/dist/collection/components/label/label.js +2 -2
  249. package/dist/collection/components/legend/legend-group/legend-group.js +1 -1
  250. package/dist/collection/components/legend/legend-item/legend-item.js +1 -1
  251. package/dist/collection/components/legend/legend.css +3 -3
  252. package/dist/collection/components/legend/legend.js +1 -1
  253. package/dist/collection/components/list-button/list-button.css +9 -9
  254. package/dist/collection/components/list-button/list-button.js +1 -1
  255. package/dist/collection/components/logo/logo.js +1 -1
  256. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  257. package/dist/collection/components/map-controls/map-controls.css +61 -50
  258. package/dist/collection/components/map-controls/map-controls.js +1 -1
  259. package/dist/collection/components/map-layer/components/map-layer-object.css +22 -36
  260. package/dist/collection/components/map-layer/components/map-layer-object.js +1 -1
  261. package/dist/collection/components/map-layer/map-layer.css +22 -36
  262. package/dist/collection/components/map-layer/map-layer.js +1 -1
  263. package/dist/collection/components/map-message/map-message.css +10 -17
  264. package/dist/collection/components/map-message/map-message.js +2 -2
  265. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  266. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  267. package/dist/collection/components/modal/modal.css +20 -23
  268. package/dist/collection/components/modal/modal.js +1 -1
  269. package/dist/collection/components/onboarding-tip/onboarding-tip.css +13 -20
  270. package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
  271. package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.css +8 -8
  272. package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +1 -1
  273. package/dist/collection/components/ozon-content/ozon-content.css +238 -368
  274. package/dist/collection/components/ozon-content/ozon-content.js +3 -3
  275. package/dist/collection/components/pagination/pagination.js +1 -1
  276. package/dist/collection/components/panel/panel.css +10 -17
  277. package/dist/collection/components/panel/panel.js +1 -1
  278. package/dist/collection/components/plekinfo-card/plekinfo-card.css +26 -40
  279. package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
  280. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  281. package/dist/collection/components/project-item/project-item.css +22 -22
  282. package/dist/collection/components/project-item/project-item.js +1 -1
  283. package/dist/collection/components/renvooi/renvooi.css +27 -41
  284. package/dist/collection/components/responsive-element/responsive-element.js +18 -4
  285. package/dist/collection/components/scrollable/scrollable.css +7 -7
  286. package/dist/collection/components/scrollable/scrollable.js +2 -2
  287. package/dist/collection/components/segmented-button/segmented-button.js +1 -1
  288. package/dist/collection/components/selectable/selectable.css +3 -3
  289. package/dist/collection/components/selectable/selectable.js +1 -1
  290. package/dist/collection/components/skiplink/skiplink.css +1 -1
  291. package/dist/collection/components/skiplink/skiplink.js +1 -1
  292. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  293. package/dist/collection/components/survey-rating/survey-rating.css +76 -125
  294. package/dist/collection/components/survey-rating/survey-rating.js +2 -2
  295. package/dist/collection/components/table/table.css +69 -58
  296. package/dist/collection/components/table/table.js +30 -8
  297. package/dist/collection/components/tabs/tabs.js +1 -1
  298. package/dist/collection/components/tijdreis-banner/tijdreis-banner.css +10 -17
  299. package/dist/collection/components/tijdreis-banner/tijdreis-banner.js +1 -1
  300. package/dist/collection/components/tooltip/tooltip.css +1 -1
  301. package/dist/collection/components/tooltip/tooltip.js +1 -1
  302. package/dist/collection/components/tree-view/tree-view.js +2 -2
  303. package/dist/collection/components/viewer-grid/viewer-grid.css +19 -16
  304. package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
  305. package/dist/components/alert.js +1 -1
  306. package/dist/components/annotation-locatie.js +1 -1
  307. package/dist/components/attachments-counter.js +1 -1
  308. package/dist/components/badge.js +1 -1
  309. package/dist/components/button-group.js +1 -1
  310. package/dist/components/document-component.js +1 -1
  311. package/dist/components/dso-accordion-section.js +1 -1
  312. package/dist/components/dso-accordion.js +1 -1
  313. package/dist/components/dso-action-list-item.js +1 -1
  314. package/dist/components/dso-action-list.js +1 -1
  315. package/dist/components/dso-advanced-select.js +3 -5
  316. package/dist/components/dso-annotation-activiteit.js +1 -1
  317. package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
  318. package/dist/components/dso-annotation-kaart.js +1 -1
  319. package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
  320. package/dist/components/dso-autosuggest.js +1 -1
  321. package/dist/components/dso-banner.js +1 -1
  322. package/dist/components/dso-card-container.js +1 -1
  323. package/dist/components/dso-card.js +1 -1
  324. package/dist/components/dso-contact-information.js +1 -1
  325. package/dist/components/dso-cursor-tooltip.js +1 -1
  326. package/dist/components/dso-date-picker.js +1 -1
  327. package/dist/components/dso-document-card.js +1 -1
  328. package/dist/components/dso-dropdown-menu-group.d.ts +11 -0
  329. package/dist/components/dso-dropdown-menu-group.js +1 -0
  330. package/dist/components/dso-dropdown-menu-item.d.ts +11 -0
  331. package/dist/components/dso-dropdown-menu-item.js +1 -0
  332. package/dist/components/dso-dropdown-menu.js +1 -1
  333. package/dist/components/dso-header.js +1 -1
  334. package/dist/components/dso-highlight-box.js +1 -1
  335. package/dist/components/dso-history-item.js +1 -1
  336. package/dist/components/dso-input-range.js +1 -1
  337. package/dist/components/dso-legend-group.js +1 -1
  338. package/dist/components/dso-legend-item.js +1 -1
  339. package/dist/components/dso-legend.js +1 -1
  340. package/dist/components/dso-list-button.js +1 -1
  341. package/dist/components/dso-logo.js +1 -1
  342. package/dist/components/dso-map-base-layers.js +1 -1
  343. package/dist/components/dso-map-controls.js +1 -1
  344. package/dist/components/dso-map-layer-object.js +1 -1
  345. package/dist/components/dso-map-layer.js +1 -1
  346. package/dist/components/dso-map-message.js +1 -1
  347. package/dist/components/dso-map-overlays.js +1 -1
  348. package/dist/components/dso-mark-bar.js +1 -1
  349. package/dist/components/dso-onboarding-tip.js +1 -1
  350. package/dist/components/dso-pagination.js +1 -1
  351. package/dist/components/dso-plekinfo-card.js +1 -1
  352. package/dist/components/dso-project-item.js +1 -1
  353. package/dist/components/dso-segmented-button.js +1 -1
  354. package/dist/components/dso-skiplink.js +1 -1
  355. package/dist/components/dso-survey-rating.js +1 -1
  356. package/dist/components/dso-tabs.js +1 -1
  357. package/dist/components/dso-tijdreis-banner.js +1 -1
  358. package/dist/components/dso-tooltip.js +1 -1
  359. package/dist/components/dso-tree-view.js +1 -1
  360. package/dist/components/dso-viewer-grid.js +1 -1
  361. package/dist/components/dsot-document-component-demo.js +1 -1
  362. package/dist/components/expandable.js +1 -1
  363. package/dist/components/i18n.js +1 -1
  364. package/dist/components/icon-button.js +1 -1
  365. package/dist/components/icon.js +1 -1
  366. package/dist/components/image-overlay.js +1 -1
  367. package/dist/components/index.d.ts +4 -0
  368. package/dist/components/index.esm.js +2 -2
  369. package/dist/components/index.js +1 -1
  370. package/dist/components/index2.js +1 -1
  371. package/dist/components/index3.js +1 -0
  372. package/dist/components/info-button.js +1 -1
  373. package/dist/components/info.js +1 -1
  374. package/dist/components/label.js +1 -1
  375. package/dist/components/modal.js +1 -1
  376. package/dist/components/ozon-content-toggletip.js +1 -1
  377. package/dist/components/ozon-content.js +1 -1
  378. package/dist/components/panel.js +1 -1
  379. package/dist/components/progress-indicator.js +1 -1
  380. package/dist/components/renvooi.js +1 -1
  381. package/dist/components/responsive-element.js +1 -1
  382. package/dist/components/scrollable.js +1 -1
  383. package/dist/components/selectable.js +1 -1
  384. package/dist/components/slide-toggle.js +1 -1
  385. package/dist/components/table.js +1 -1
  386. package/dist/components/v4.js +1 -1
  387. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  388. package/dist/dso-toolkit/{p-e1f30dbb.entry.js → p-0004b1ea.entry.js} +1 -1
  389. package/dist/dso-toolkit/{p-bb7ac6f7.entry.js → p-04e15a21.entry.js} +1 -1
  390. package/dist/dso-toolkit/p-096d178a.entry.js +1 -0
  391. package/dist/dso-toolkit/p-0c7c446c.entry.js +1 -0
  392. package/dist/dso-toolkit/p-0d59b59a.entry.js +1 -0
  393. package/dist/dso-toolkit/{p-7a809a49.entry.js → p-0e964c0b.entry.js} +1 -1
  394. package/dist/dso-toolkit/{p-e08e43be.entry.js → p-11d86ad0.entry.js} +1 -1
  395. package/dist/dso-toolkit/p-17d3e3e4.entry.js +1 -0
  396. package/dist/dso-toolkit/p-1f48029c.entry.js +1 -0
  397. package/dist/dso-toolkit/p-2412ccfa.entry.js +1 -0
  398. package/dist/dso-toolkit/p-24d0df16.entry.js +1 -0
  399. package/dist/dso-toolkit/p-29077405.entry.js +1 -0
  400. package/dist/dso-toolkit/p-291178f9.entry.js +1 -0
  401. package/dist/dso-toolkit/{p-875b414d.entry.js → p-2a4068d9.entry.js} +1 -1
  402. package/dist/dso-toolkit/p-2a4fd631.entry.js +1 -0
  403. package/dist/dso-toolkit/p-2d2476dd.entry.js +1 -0
  404. package/dist/dso-toolkit/p-2f2a920f.entry.js +5 -0
  405. package/dist/dso-toolkit/p-30c4f332.entry.js +1 -0
  406. package/dist/dso-toolkit/p-33c05ebd.entry.js +1 -0
  407. package/dist/dso-toolkit/{p-6ebe1b0e.entry.js → p-47c02ca5.entry.js} +1 -1
  408. package/dist/dso-toolkit/p-4ae8cc81.entry.js +1 -0
  409. package/dist/dso-toolkit/p-4d4aec48.entry.js +1 -0
  410. package/dist/dso-toolkit/p-4d708856.entry.js +1 -0
  411. package/dist/dso-toolkit/{p-e311d101.entry.js → p-4e13b5ac.entry.js} +1 -1
  412. package/dist/dso-toolkit/{p-ea1f5082.entry.js → p-515149ae.entry.js} +1 -1
  413. package/dist/dso-toolkit/{p-8e206e7e.entry.js → p-520dc726.entry.js} +1 -1
  414. package/dist/dso-toolkit/{p-3047432c.entry.js → p-5616a8f0.entry.js} +1 -1
  415. package/dist/dso-toolkit/p-5962b2d4.entry.js +1 -0
  416. package/dist/dso-toolkit/p-5aedbfdc.entry.js +1 -0
  417. package/dist/dso-toolkit/p-5b2d4e4d.entry.js +1 -0
  418. package/dist/dso-toolkit/p-5d7bb03d.entry.js +1 -0
  419. package/dist/dso-toolkit/p-6243fe15.entry.js +1 -0
  420. package/dist/dso-toolkit/p-62e887fc.entry.js +1 -0
  421. package/dist/dso-toolkit/p-67f0dbce.entry.js +1 -0
  422. package/dist/dso-toolkit/p-6c9e92db.entry.js +1 -0
  423. package/dist/dso-toolkit/p-77b3e172.entry.js +1 -0
  424. package/dist/dso-toolkit/p-790477bb.entry.js +1 -0
  425. package/dist/dso-toolkit/p-7cd2b1be.entry.js +1 -0
  426. package/dist/dso-toolkit/p-86409b6e.entry.js +1 -0
  427. package/dist/dso-toolkit/p-9d3dcb86.entry.js +1 -0
  428. package/dist/dso-toolkit/p-9d41e3f8.entry.js +1 -0
  429. package/dist/dso-toolkit/p-9e4f0727.entry.js +1 -0
  430. package/dist/dso-toolkit/p-B7w6tF4K.js +5 -0
  431. package/dist/dso-toolkit/p-BF0_OXTe.js +1 -0
  432. package/dist/dso-toolkit/{p-PjubEIMY.js → p-CDgoS98P.js} +1 -1
  433. package/dist/dso-toolkit/{p-Chbfdofl.js → p-CHpgprST.js} +1 -1
  434. package/dist/dso-toolkit/p-CKvC5fms.js +1 -0
  435. package/dist/dso-toolkit/p-CUWMAyh7.js +1 -0
  436. package/dist/dso-toolkit/p-CWxbEBiv.js +1 -0
  437. package/dist/dso-toolkit/p-CmOx9B7G.js +1 -0
  438. package/dist/dso-toolkit/p-Cw_CPOlV.js +1 -0
  439. package/dist/dso-toolkit/p-DHGCm31c.js +1 -0
  440. package/dist/dso-toolkit/{p-85c2c887.entry.js → p-a624c0bd.entry.js} +1 -1
  441. package/dist/dso-toolkit/p-a87670b0.entry.js +1 -0
  442. package/dist/dso-toolkit/p-ab857666.entry.js +1 -0
  443. package/dist/dso-toolkit/{p-626ae90b.entry.js → p-ae83402c.entry.js} +1 -1
  444. package/dist/dso-toolkit/{p-2d1eb113.entry.js → p-b2290d21.entry.js} +1 -1
  445. package/dist/dso-toolkit/{p-dabed551.entry.js → p-b5814f08.entry.js} +1 -1
  446. package/dist/dso-toolkit/{p-cce55fbb.entry.js → p-b8abe5a1.entry.js} +1 -1
  447. package/dist/dso-toolkit/p-c295282a.entry.js +1 -0
  448. package/dist/dso-toolkit/p-c97b503c.entry.js +1 -0
  449. package/dist/dso-toolkit/p-cfe03a4b.entry.js +1 -0
  450. package/dist/dso-toolkit/p-d6c8285e.entry.js +1 -0
  451. package/dist/dso-toolkit/p-dfc4deeb.entry.js +1 -0
  452. package/dist/dso-toolkit/p-e49dfe55.entry.js +1 -0
  453. package/dist/dso-toolkit/p-e82c870a.entry.js +1 -0
  454. package/dist/dso-toolkit/p-ead2f178.entry.js +1 -0
  455. package/dist/dso-toolkit/{p-b4747ac0.entry.js → p-eceaf04c.entry.js} +1 -1
  456. package/dist/dso-toolkit/{p-fc8f252a.entry.js → p-f1bc1d9a.entry.js} +1 -1
  457. package/dist/dso-toolkit/{p-3fe44227.entry.js → p-f2a5beef.entry.js} +1 -1
  458. package/dist/dso-toolkit/p-fbf11382.entry.js +1 -0
  459. package/dist/dso-toolkit/p-fc9096fc.entry.js +1 -0
  460. package/dist/esm/{annotation-body-DeKLxp3F.js → annotation-body-DBGu5INB.js} +1 -1
  461. package/dist/esm/{annotation-list-renvooi-values-CGxBKqb7.js → annotation-list-renvooi-values-DoTvSWOI.js} +1 -1
  462. package/dist/esm/{annotation-watcher-BO_h7wWk.js → annotation-watcher-Dm4MhmMp.js} +1 -1
  463. package/dist/esm/dso-accordion-section.entry.js +8 -7
  464. package/dist/esm/dso-accordion.entry.js +2 -276
  465. package/dist/esm/dso-action-list-item.entry.js +4 -4
  466. package/dist/esm/dso-action-list.entry.js +3 -3
  467. package/dist/esm/dso-advanced-select.entry.js +107 -230
  468. package/dist/esm/dso-alert_7.entry.js +72 -31
  469. package/dist/esm/dso-annotation-activiteit.entry.js +6 -6
  470. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +5 -5
  471. package/dist/esm/dso-annotation-kaart.entry.js +4 -4
  472. package/dist/esm/dso-annotation-locatie_2.entry.js +11 -11
  473. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +6 -6
  474. package/dist/esm/dso-attachments-counter_2.entry.js +4 -4
  475. package/dist/esm/dso-autosuggest.entry.js +24 -15
  476. package/dist/esm/dso-banner.entry.js +4 -4
  477. package/dist/esm/dso-button-group.entry.js +3 -3
  478. package/dist/esm/dso-card-container.entry.js +2 -2
  479. package/dist/esm/dso-card.entry.js +4 -4
  480. package/dist/esm/dso-contact-information.entry.js +3 -3
  481. package/dist/esm/dso-cursor-tooltip.entry.js +3 -3
  482. package/dist/esm/dso-date-picker.entry.js +2 -2
  483. package/dist/esm/dso-document-card.entry.js +3 -3
  484. package/dist/esm/dso-dropdown-menu-group.entry.js +29 -0
  485. package/dist/esm/dso-dropdown-menu-item.entry.js +39 -0
  486. package/dist/esm/dso-dropdown-menu.entry.js +84 -102
  487. package/dist/esm/dso-header.entry.js +23 -6
  488. package/dist/esm/dso-highlight-box.entry.js +3 -3
  489. package/dist/esm/dso-history-item.entry.js +2 -2
  490. package/dist/esm/dso-icon-button.entry.js +95 -0
  491. package/dist/esm/{dso-icon_2.entry.js → dso-icon.entry.js} +3 -95
  492. package/dist/esm/dso-info_3.entry.js +8 -8
  493. package/dist/esm/dso-input-range.entry.js +3 -3
  494. package/dist/esm/dso-label_3.entry.js +8 -8
  495. package/dist/esm/dso-legend-group.entry.js +3 -3
  496. package/dist/esm/dso-legend-item.entry.js +3 -3
  497. package/dist/esm/dso-legend.entry.js +4 -4
  498. package/dist/esm/dso-list-button.entry.js +3 -3
  499. package/dist/esm/dso-logo.entry.js +2 -2
  500. package/dist/esm/dso-map-base-layers.entry.js +4 -4
  501. package/dist/esm/dso-map-controls.entry.js +4 -4
  502. package/dist/esm/dso-map-layer-object.entry.js +4 -4
  503. package/dist/esm/dso-map-layer.entry.js +4 -4
  504. package/dist/esm/dso-map-message.entry.js +4 -4
  505. package/dist/esm/dso-map-overlays.entry.js +4 -4
  506. package/dist/esm/dso-mark-bar.entry.js +2 -2
  507. package/dist/esm/dso-modal.entry.js +5 -5
  508. package/dist/esm/dso-onboarding-tip.entry.js +3 -3
  509. package/dist/esm/dso-pagination.entry.js +2 -2
  510. package/dist/esm/dso-plekinfo-card.entry.js +4 -4
  511. package/dist/esm/dso-progress-indicator.entry.js +3 -3
  512. package/dist/esm/dso-project-item.entry.js +3 -3
  513. package/dist/esm/dso-responsive-element.entry.js +19 -5
  514. package/dist/esm/dso-scrollable.entry.js +4 -4
  515. package/dist/esm/dso-segmented-button.entry.js +2 -2
  516. package/dist/esm/dso-skiplink.entry.js +3 -3
  517. package/dist/esm/dso-survey-rating.entry.js +4 -4
  518. package/dist/esm/dso-tab.entry.js +1 -1
  519. package/dist/esm/dso-tabs.entry.js +2 -2
  520. package/dist/esm/dso-tijdreis-banner.entry.js +3 -3
  521. package/dist/esm/dso-toolkit.js +4 -4
  522. package/dist/esm/dso-tooltip.entry.js +3 -3
  523. package/dist/esm/dso-tree-view.entry.js +3 -3
  524. package/dist/esm/dso-viewer-grid.entry.js +4 -4
  525. package/dist/esm/dsot-document-component-demo.entry.js +2 -2
  526. package/dist/esm/{i18n-DwBHVuoZ.js → i18n-CUWMAyh7.js} +21 -9
  527. package/dist/esm/index-OTFpj3vR.js +278 -0
  528. package/dist/esm/{index-DrQGiJP8.js → index-pqfDfKeZ.js} +1 -1
  529. package/dist/{bundle/p-PsHl6ZhV.js → esm/index.esm-B7w6tF4K.js} +6 -4
  530. package/dist/esm/loader.js +3 -3
  531. package/dist/esm/{parse-wijzigactie-from-node.function-BroGebB4.js → parse-wijzigactie-from-node.function-Cn1GXjSM.js} +1 -1
  532. package/dist/esm/{tooltip.functional-component-nHAIYF3o.js → tooltip.functional-component-CsWjK64w.js} +1 -1
  533. package/dist/esm/{v4-CK3_k8jD.js → v4-BF0_OXTe.js} +13 -6
  534. package/dist/esm/{wrap-wijzigactie.functional-component-BCT1o51-.js → wrap-wijzigactie.functional-component-DzSLSv0i.js} +1 -1
  535. package/dist/types/components/annotation/annotation-list-renvooi-values.d.ts +2 -2
  536. package/dist/types/components/autosuggest/autosuggest.d.ts +2 -0
  537. package/dist/types/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.d.ts +12 -0
  538. package/dist/types/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.d.ts +31 -0
  539. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +25 -20
  540. package/dist/types/components/dropdown-menu/dropdown-menu.interfaces.d.ts +10 -0
  541. package/dist/types/components/header/header.d.ts +3 -0
  542. package/dist/types/components/image-overlay/image-overlay.d.ts +3 -0
  543. package/dist/types/components/responsive-element/responsive-element.d.ts +3 -0
  544. package/dist/types/components/table/table.d.ts +3 -0
  545. package/dist/types/components.d.ts +99 -25
  546. package/dist/types/stencil-public-runtime.d.ts +1 -0
  547. package/package.json +17 -17
  548. package/dist/bundle/p-0h9cOnX9.js +0 -148
  549. package/dist/bundle/p-6-0kKG2F.js +0 -189
  550. package/dist/bundle/p-B2ZlmdWO.js +0 -69
  551. package/dist/bundle/p-BNEJjrr8.js +0 -75
  552. package/dist/bundle/p-BnDZHxeO.js +0 -166
  553. package/dist/bundle/p-C-8vTVVo.js +0 -79
  554. package/dist/bundle/p-C2l5d-V9.js +0 -341
  555. package/dist/bundle/p-C332B2dN.js +0 -100
  556. package/dist/bundle/p-CFPWVcsY.js +0 -48
  557. package/dist/bundle/p-CKnJRPZn.js +0 -137
  558. package/dist/bundle/p-HXung-P3.js +0 -1209
  559. package/dist/bundle/p-z2uKmX1Q.js +0 -83
  560. package/dist/bundle/p-zYhsKlIm.js +0 -124
  561. package/dist/dso-toolkit/p-0146f231.entry.js +0 -1
  562. package/dist/dso-toolkit/p-03922428.entry.js +0 -1
  563. package/dist/dso-toolkit/p-040f3f53.entry.js +0 -1
  564. package/dist/dso-toolkit/p-0cc62094.entry.js +0 -1
  565. package/dist/dso-toolkit/p-181cb6f7.entry.js +0 -1
  566. package/dist/dso-toolkit/p-1bb92456.entry.js +0 -7
  567. package/dist/dso-toolkit/p-1ea5fb0d.entry.js +0 -1
  568. package/dist/dso-toolkit/p-2edbfaae.entry.js +0 -1
  569. package/dist/dso-toolkit/p-4020bb89.entry.js +0 -1
  570. package/dist/dso-toolkit/p-44549e9c.entry.js +0 -1
  571. package/dist/dso-toolkit/p-4a493df9.entry.js +0 -1
  572. package/dist/dso-toolkit/p-540a8027.entry.js +0 -1
  573. package/dist/dso-toolkit/p-5a25d8d9.entry.js +0 -1
  574. package/dist/dso-toolkit/p-61fd983a.entry.js +0 -1
  575. package/dist/dso-toolkit/p-75e5057e.entry.js +0 -1
  576. package/dist/dso-toolkit/p-798eeae6.entry.js +0 -1
  577. package/dist/dso-toolkit/p-7f3898d7.entry.js +0 -1
  578. package/dist/dso-toolkit/p-84f647aa.entry.js +0 -1
  579. package/dist/dso-toolkit/p-869027bc.entry.js +0 -1
  580. package/dist/dso-toolkit/p-8b9194ca.entry.js +0 -1
  581. package/dist/dso-toolkit/p-9b0716d8.entry.js +0 -1
  582. package/dist/dso-toolkit/p-9ce75fcd.entry.js +0 -1
  583. package/dist/dso-toolkit/p-AZpKxz9p.js +0 -1
  584. package/dist/dso-toolkit/p-BKr5d3Gu.js +0 -1
  585. package/dist/dso-toolkit/p-CK3_k8jD.js +0 -1
  586. package/dist/dso-toolkit/p-Dev1bLxp.js +0 -1
  587. package/dist/dso-toolkit/p-DwBHVuoZ.js +0 -1
  588. package/dist/dso-toolkit/p-PsHl6ZhV.js +0 -5
  589. package/dist/dso-toolkit/p-a14ee5bd.entry.js +0 -1
  590. package/dist/dso-toolkit/p-a286ac17.entry.js +0 -1
  591. package/dist/dso-toolkit/p-a8184705.entry.js +0 -1
  592. package/dist/dso-toolkit/p-ab33a108.entry.js +0 -1
  593. package/dist/dso-toolkit/p-b2202cd6.entry.js +0 -1
  594. package/dist/dso-toolkit/p-b270f26b.entry.js +0 -1
  595. package/dist/dso-toolkit/p-b2d0319d.entry.js +0 -1
  596. package/dist/dso-toolkit/p-be7adaac.entry.js +0 -1
  597. package/dist/dso-toolkit/p-bf803e4f.entry.js +0 -1
  598. package/dist/dso-toolkit/p-c0111a70.entry.js +0 -1
  599. package/dist/dso-toolkit/p-c3d5ccc6.entry.js +0 -1
  600. package/dist/dso-toolkit/p-c9768843.entry.js +0 -1
  601. package/dist/dso-toolkit/p-d4539b83.entry.js +0 -1
  602. package/dist/dso-toolkit/p-d877c432.entry.js +0 -1
  603. package/dist/dso-toolkit/p-d87dd7c8.entry.js +0 -1
  604. package/dist/dso-toolkit/p-d9800183.entry.js +0 -1
  605. package/dist/dso-toolkit/p-db32a77a.entry.js +0 -1
  606. package/dist/dso-toolkit/p-e03ff53f.entry.js +0 -1
  607. package/dist/dso-toolkit/p-f066244e.entry.js +0 -1
  608. package/dist/dso-toolkit/p-go_iJ4_L.js +0 -1
  609. /package/dist/dso-toolkit/{p-DrQGiJP8.js → p-pqfDfKeZ.js} +0 -0
@@ -1,122 +1,100 @@
1
1
  import { autoUpdate, computePosition, flip, offset } from "@floating-ui/dom";
2
- import { Host, h } from "@stencil/core";
3
- import { tabbable } from "tabbable";
2
+ import { Host, forceUpdate, h, } from "@stencil/core";
3
+ import { createStore } from "@stencil/store";
4
4
  import { v4 as uuidv4 } from "uuid";
5
- import { getActiveElement } from "../../utils/get-active-element";
6
5
  export class DropdownMenu {
7
6
  constructor() {
8
7
  /**
9
- * Whether the menu is open or closed.
10
- * This attribute is reflected and mutable.
8
+ * The variant of the Button to toggle the menu
11
9
  */
10
+ this.variant = "secondary";
12
11
  this.open = false;
13
- /**
14
- * Alignment of the dropdown
15
- */
16
- this.dropdownAlign = "left";
17
- /**
18
- * Space between button and dropdown options
19
- */
20
- this.dropdownOptionsOffset = 2;
21
- /**
22
- * Whether the menu is checkable.
23
- */
24
- this.checkable = false;
25
12
  this.focusOutListener = (event) => {
26
- if (this.open &&
27
- (!(event.relatedTarget instanceof HTMLElement) || !this.tabbables(true).includes(event.relatedTarget))) {
13
+ if (this.open && !(event.relatedTarget instanceof HTMLElement)) {
28
14
  this.toggleOptions(false);
29
15
  }
30
16
  };
31
- this.keyDownListener = (event) => {
17
+ this.keyDownHandler = (event) => {
18
+ if (!(event.target instanceof HTMLElement)) {
19
+ return;
20
+ }
32
21
  if (event.defaultPrevented || !this.open) {
33
22
  return;
34
23
  }
35
24
  switch (event.key) {
36
25
  case "Tab":
37
26
  if (event.shiftKey) {
38
- this.tabInPopup(this.tabbables(true), -1);
27
+ this.moveFocusToPrevious(event.target);
39
28
  }
40
29
  else {
41
- this.tabInPopup(this.tabbables(true), 1);
30
+ this.moveFocusToNext(event.target);
42
31
  }
43
32
  break;
44
33
  case "ArrowDown":
45
- this.tabInPopup(this.tabbables(false), 1);
34
+ this.moveFocusToNext(event.target, false);
46
35
  break;
47
36
  case "ArrowUp":
48
- this.tabInPopup(this.tabbables(false), -1);
37
+ this.moveFocusToPrevious(event.target, false);
49
38
  break;
50
39
  case "Escape":
51
40
  this.escape();
52
41
  break;
53
- case " ":
54
- if (event.target instanceof HTMLElement) {
55
- event.target.click();
56
- }
57
- break;
58
42
  default:
59
43
  return;
60
44
  }
61
45
  event.preventDefault();
62
46
  };
63
47
  this.escape = () => {
64
- this.button.focus();
48
+ this.button?.focus();
65
49
  this.toggleOptions(false);
66
50
  };
51
+ const { state } = createStore({
52
+ checkable: false,
53
+ });
54
+ this.dropdownMenuState = state;
67
55
  }
68
- get button() {
69
- const button = this.host.querySelector('button[slot="toggle"]');
70
- if (!(button instanceof HTMLButtonElement)) {
71
- throw new ReferenceError("Mandatory toggle button not found");
72
- }
73
- return button;
56
+ /**
57
+ * Whether the menu items are checkable.
58
+ */
59
+ get checkable() {
60
+ return this.dropdownMenuState.checkable;
74
61
  }
75
- tabbables(withButton) {
76
- const tabbables = this.host.isConnected ? tabbable(this.host) : [];
77
- return withButton ? tabbables : tabbables.filter((element) => element !== this.button);
62
+ set checkable(value) {
63
+ this.dropdownMenuState.checkable = value || false;
64
+ forceUpdate(this.host);
78
65
  }
79
- componentDidLoad() {
80
- this.button.setAttribute("aria-haspopup", "menu");
81
- this.button.setAttribute("aria-expanded", "false");
82
- if (!this.button.id) {
83
- this.button.id = uuidv4();
84
- }
85
- const dropdownOptionsElement = this.host.querySelector(".dso-dropdown-options");
86
- if (!(dropdownOptionsElement instanceof HTMLElement)) {
87
- throw new Error("dropdown options element is not instanceof HTMLElement");
88
- }
89
- dropdownOptionsElement.setAttribute("role", "menu");
90
- dropdownOptionsElement.setAttribute("aria-labelledby", this.button.id);
91
- for (const ul of Array.from(this.host.getElementsByTagName("ul"))) {
92
- ul.setAttribute("role", "group");
93
- for (const li of Array.from(ul.getElementsByTagName("li"))) {
94
- li.setAttribute("role", "none");
95
- }
66
+ dsoClickHandler(event) {
67
+ event.stopPropagation();
68
+ if (this.open && event.target instanceof HTMLElement) {
69
+ this.toggleOptions(false);
96
70
  }
97
71
  }
72
+ /**
73
+ * @internal
74
+ */
75
+ async _getState() {
76
+ return this.dropdownMenuState;
77
+ }
78
+ dropdownMenuTabbables(withButton) {
79
+ const menuItems = this.host.isConnected
80
+ ? Array.from(this.host.querySelectorAll(":scope > dso-dropdown-menu-group > dso-dropdown-menu-item"))
81
+ : [];
82
+ return withButton ? [this.host, ...menuItems] : menuItems;
83
+ }
98
84
  componentDidRender() {
99
- for (const li of Array.from(this.host.getElementsByTagName("li"))) {
100
- for (const tab of this.host.isConnected ? tabbable(li) : []) {
101
- tab.setAttribute("role", this.checkable ? "menuitemradio" : "menuitem");
102
- if (this.checkable) {
103
- tab.setAttribute("aria-checked", li.classList.contains("dso-checked").toString());
104
- }
105
- }
106
- }
107
- this.button.setAttribute("aria-expanded", this.open ? "true" : "false");
108
- if (this.popoverElement && !this.cleanUp) {
85
+ if (this.button && this.popoverElement && !this.cleanUp) {
109
86
  const element = this.popoverElement;
110
- this.cleanUp = autoUpdate(this.button, element, () => {
111
- computePosition(this.button, element, {
87
+ const referenceElement = this.button;
88
+ this.cleanUp = autoUpdate(referenceElement, element, () => {
89
+ computePosition(referenceElement, element, {
112
90
  strategy: "fixed",
113
91
  middleware: [
114
- offset(this.dropdownOptionsOffset),
92
+ offset(2),
115
93
  flip({
116
- padding: this.dropdownOptionsOffset,
94
+ padding: 2,
117
95
  }),
118
96
  ],
119
- placement: this.dropdownAlign === "right" ? "bottom-end" : "bottom-start",
97
+ placement: "bottom-start",
120
98
  }).then(({ x, y }) => {
121
99
  Object.assign(element.style, {
122
100
  left: `${x}px`,
@@ -126,51 +104,55 @@ export class DropdownMenu {
126
104
  });
127
105
  }
128
106
  }
129
- onClick(event) {
130
- const composedPath = event.composedPath();
131
- if (this.isToggleButtonEvent(composedPath)) {
132
- this.toggleOptions();
133
- }
134
- else if (this.open && this.isMenuItemEvent(composedPath)) {
135
- this.toggleOptions(false);
136
- }
137
- }
138
- isToggleButtonEvent(composedPath) {
139
- return composedPath.includes(this.button);
140
- }
141
- isMenuItemEvent(composedPath) {
142
- return composedPath.includes(this.host) && !this.isToggleButtonEvent(composedPath);
143
- }
144
107
  toggleOptions(force) {
145
108
  this.open = force ?? !this.open;
146
109
  if (this.popoverElement?.isConnected) {
147
- this.popoverElement?.togglePopover(this.open);
110
+ this.popoverElement.togglePopover(this.open);
111
+ }
112
+ if (this.open) {
113
+ requestAnimationFrame(() => this.moveFocusTo(this.firstItem(false)));
148
114
  }
149
115
  if (!this.open && this.cleanUp) {
150
116
  this.cleanUp();
151
117
  this.cleanUp = undefined;
152
118
  }
153
119
  }
154
- connectedCallback() {
155
- this.host.addEventListener("keydown", this.keyDownListener);
156
- }
157
120
  disconnectedCallback() {
158
- this.host.removeEventListener("keydown", this.keyDownListener);
159
121
  this.toggleOptions(false);
160
122
  }
161
- tabInPopup(tabbables, direction) {
162
- const currentIndex = tabbables.findIndex((e) => e === getActiveElement());
163
- let nextIndex = currentIndex + direction;
164
- if (nextIndex >= tabbables.length) {
165
- nextIndex = 0;
123
+ get lastItem() {
124
+ return this.dropdownMenuTabbables(true).at(-1);
125
+ }
126
+ firstItem(withButton) {
127
+ return this.dropdownMenuTabbables(withButton)[0];
128
+ }
129
+ moveFocusToPrevious(focussedElement, withButton = true) {
130
+ const tabbables = this.dropdownMenuTabbables(withButton);
131
+ const index = tabbables.findIndex((element) => element === focussedElement);
132
+ const next = this.dropdownMenuTabbables(withButton)[index - 1] ?? this.lastItem;
133
+ this.moveFocusTo(next);
134
+ }
135
+ moveFocusToNext(focussedElement, withButton = true) {
136
+ const tabbables = this.dropdownMenuTabbables(withButton);
137
+ const index = tabbables.findIndex((element) => element === focussedElement);
138
+ const next = this.dropdownMenuTabbables(withButton)[index + 1] ?? this.firstItem(withButton);
139
+ this.moveFocusTo(next);
140
+ }
141
+ moveFocusTo(element) {
142
+ if (!element) {
143
+ return;
144
+ }
145
+ if (element === this.host && this.button) {
146
+ this.button.focus();
147
+ return;
166
148
  }
167
- else if (nextIndex < 0) {
168
- nextIndex = tabbables.length - 1;
149
+ if ("_dsoFocus" in element) {
150
+ element._dsoFocus();
169
151
  }
170
- tabbables[nextIndex]?.focus();
171
152
  }
172
153
  render() {
173
- return (h(Host, { key: '2b1a77a0d5ec49784f038af3540c6369d4c2cc2c', onFocusout: this.focusOutListener }, h("slot", { key: '32d8b7f6e23a5b11b5ab3bdeb78575fc6855322f', name: "toggle" }), h("div", { key: '262486ced58fb98375ccf8abc38959144fc9296d', popover: "manual", ref: (element) => (this.popoverElement = element) }, h("slot", { key: '2c76def3904869f1a6227430f6718d85eb9cfc30' }))));
154
+ const buttonId = uuidv4();
155
+ return (h(Host, { key: '04b9d28b55a06ae6f13811c0dd905c05ad92de25', onFocusout: this.focusOutListener, onKeyDown: this.keyDownHandler }, this.label && (h("button", { key: 'c096f5279d24ad7969f9cc18c24db374d314204f', id: buttonId, class: `dso-${this.variant}`, type: "button", onClick: () => this.toggleOptions(), "aria-expanded": this.open.toString(), "aria-haspopup": "menu", ref: (element) => (this.button = element) }, this.label, h("dso-icon", { key: '861e2eb587415cd092487e3de7438fc884ceffe4', icon: this.open ? "chevron-up" : "chevron-down" }))), h("div", { key: '8470a79b40f303020eb698c4f6727f1143fe398f', popover: "manual", class: "dso-dropdown-options", "aria-labelledby": buttonId, role: "menu", ref: (element) => (this.popoverElement = element) }, h("slot", { key: '0832da4107efa630d368c171348da1b9fb47cab6' }))));
174
156
  }
175
157
  static get is() { return "dso-dropdown-menu"; }
176
158
  static get encapsulation() { return "shadow"; }
@@ -186,9 +168,9 @@ export class DropdownMenu {
186
168
  }
187
169
  static get properties() {
188
170
  return {
189
- "open": {
171
+ "checkable": {
190
172
  "type": "boolean",
191
- "mutable": true,
173
+ "mutable": false,
192
174
  "complexType": {
193
175
  "original": "boolean",
194
176
  "resolved": "boolean",
@@ -198,82 +180,95 @@ export class DropdownMenu {
198
180
  "optional": false,
199
181
  "docs": {
200
182
  "tags": [],
201
- "text": "Whether the menu is open or closed.\r\nThis attribute is reflected and mutable."
183
+ "text": "Whether the menu items are checkable."
202
184
  },
203
- "getter": false,
204
- "setter": false,
185
+ "getter": true,
186
+ "setter": true,
205
187
  "reflect": true,
206
- "attribute": "open",
207
- "defaultValue": "false"
188
+ "attribute": "checkable"
208
189
  },
209
- "dropdownAlign": {
190
+ "label": {
210
191
  "type": "string",
211
192
  "mutable": false,
212
193
  "complexType": {
213
- "original": "\"left\" | \"right\"",
214
- "resolved": "\"left\" | \"right\"",
194
+ "original": "string | undefined",
195
+ "resolved": "string | undefined",
215
196
  "references": {}
216
197
  },
217
198
  "required": false,
218
199
  "optional": false,
219
200
  "docs": {
220
201
  "tags": [],
221
- "text": "Alignment of the dropdown"
202
+ "text": "The label of the Dropdown Menu Button"
222
203
  },
223
204
  "getter": false,
224
205
  "setter": false,
225
- "reflect": false,
226
- "attribute": "dropdown-align",
227
- "defaultValue": "\"left\""
206
+ "reflect": true,
207
+ "attribute": "label"
228
208
  },
229
- "dropdownOptionsOffset": {
230
- "type": "number",
209
+ "variant": {
210
+ "type": "string",
231
211
  "mutable": false,
232
212
  "complexType": {
233
- "original": "number",
234
- "resolved": "number",
213
+ "original": "\"primary\" | \"secondary\" | \"tertiary\"",
214
+ "resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
235
215
  "references": {}
236
216
  },
237
217
  "required": false,
238
218
  "optional": false,
239
219
  "docs": {
240
220
  "tags": [],
241
- "text": "Space between button and dropdown options"
221
+ "text": "The variant of the Button to toggle the menu"
242
222
  },
243
223
  "getter": false,
244
224
  "setter": false,
245
- "reflect": false,
246
- "attribute": "dropdown-options-offset",
247
- "defaultValue": "2"
248
- },
249
- "checkable": {
250
- "type": "boolean",
251
- "mutable": false,
225
+ "reflect": true,
226
+ "attribute": "variant",
227
+ "defaultValue": "\"secondary\""
228
+ }
229
+ };
230
+ }
231
+ static get states() {
232
+ return {
233
+ "open": {}
234
+ };
235
+ }
236
+ static get methods() {
237
+ return {
238
+ "_getState": {
252
239
  "complexType": {
253
- "original": "boolean",
254
- "resolved": "boolean",
255
- "references": {}
240
+ "signature": "() => Promise<DropdownMenuInternalState>",
241
+ "parameters": [],
242
+ "references": {
243
+ "Promise": {
244
+ "location": "global",
245
+ "id": "global::Promise"
246
+ },
247
+ "DropdownMenuInternalState": {
248
+ "location": "import",
249
+ "path": "./dropdown-menu.interfaces",
250
+ "id": "src/components/dropdown-menu/dropdown-menu.interfaces.ts::DropdownMenuInternalState",
251
+ "referenceLocation": "DropdownMenuInternalState"
252
+ }
253
+ },
254
+ "return": "Promise<DropdownMenuInternalState>"
256
255
  },
257
- "required": false,
258
- "optional": false,
259
256
  "docs": {
260
- "tags": [],
261
- "text": "Whether the menu is checkable."
262
- },
263
- "getter": false,
264
- "setter": false,
265
- "reflect": false,
266
- "attribute": "checkable",
267
- "defaultValue": "false"
257
+ "text": "",
258
+ "tags": [{
259
+ "name": "internal",
260
+ "text": undefined
261
+ }]
262
+ }
268
263
  }
269
264
  };
270
265
  }
271
266
  static get elementRef() { return "host"; }
272
267
  static get listeners() {
273
268
  return [{
274
- "name": "click",
275
- "method": "onClick",
276
- "target": "window",
269
+ "name": "dsoClick",
270
+ "method": "dsoClickHandler",
271
+ "target": undefined,
277
272
  "capture": false,
278
273
  "passive": false
279
274
  }];
@@ -36,10 +36,10 @@ export class Expandable {
36
36
  }
37
37
  }
38
38
  render() {
39
- return (h(Host, { key: 'cb4240aaf6c07bc54ffe334b2ba05a7471593dcd', "aria-hidden": this.open ? "false" : "true", class: clsx({
39
+ return (h(Host, { key: '81871d9f6ecc0d82d23bc4053c56ae8e926103a0', "aria-hidden": this.open ? "false" : "true", class: clsx({
40
40
  "dso-animate-ready": this.enableAnimation,
41
41
  "dso-hide": this.isClosed,
42
- }) }, h("div", { key: '5e649127a1d0b41628bf5106f161d037cbc02d4e', class: "slot-container" }, h("slot", { key: '44ccc85c8af6b6fd368323bd04b22624227daa70' }))));
42
+ }) }, h("div", { key: '634796c608f209081fcf15656df273f1f2cc5d3b', class: "slot-container" }, h("slot", { key: '898f4edc0f9d35de7d8d35fdbcde576aeac9e503' }))));
43
43
  }
44
44
  static get is() { return "dso-expandable"; }
45
45
  static get encapsulation() { return "shadow"; }
@@ -86,11 +86,24 @@ export class Header {
86
86
  };
87
87
  this.menuItemElementRefs = [];
88
88
  this.text = i18n(() => this.host, translations);
89
- this.resizeObserver = new ResizeObserver(() => {
89
+ this.flushResize = () => {
90
+ this.resizeFrameId = undefined;
91
+ if (!this.host.isConnected) {
92
+ return;
93
+ }
90
94
  this.resetVisibleMenuItems();
91
95
  this.toggleOptions(false);
92
96
  this.dropdownOptionsOffset = 0;
93
97
  forceUpdate(this.host);
98
+ };
99
+ this.scheduleResize = () => {
100
+ if (this.resizeFrameId !== undefined) {
101
+ return;
102
+ }
103
+ this.resizeFrameId = requestAnimationFrame(this.flushResize);
104
+ };
105
+ this.resizeObserver = new ResizeObserver(() => {
106
+ this.scheduleResize();
94
107
  });
95
108
  this.focusOutListener = (event) => {
96
109
  if (this.open &&
@@ -170,6 +183,10 @@ export class Header {
170
183
  }
171
184
  disconnectedCallback() {
172
185
  this.resizeObserver.disconnect();
186
+ if (this.resizeFrameId !== undefined) {
187
+ cancelAnimationFrame(this.resizeFrameId);
188
+ this.resizeFrameId = undefined;
189
+ }
173
190
  this.toggleOptions(false);
174
191
  }
175
192
  componentDidRender() {
@@ -206,7 +223,7 @@ export class Header {
206
223
  }
207
224
  }
208
225
  render() {
209
- return (h(Host, { key: '049a7cd2e6c5beccbe9a1b23bcd505ce2cfbc1e4', "is-compact": this.isCompact }, h("div", { key: '69626521734262e4cb40369667b084bee23cec42', class: "dso-header" }, h("div", { key: '7e0106defaff8c5f6c0c8942c987d3416acb39bc', class: "logo-container" }, h("slot", { key: '7355a1f157c81f785bb101f7c5490aa6ae0330c4', name: "logo" })), this.isCompact ? this.renderCompact() : this.renderNormal())));
226
+ return (h(Host, { key: '99c692979885d3c2bc1f0f6950b1395fdd233c85', "is-compact": this.isCompact }, h("div", { key: '328e012a746752be0d8531d0f5b0a905a07eb825', class: "dso-header" }, h("div", { key: 'f84877cdd45325fcc7b5a5093fd40f3de83f7a6e', class: "logo-container" }, h("slot", { key: '915ff23b15413931ab9f334b46b2b3f7740706d4', name: "logo" })), this.isCompact ? this.renderCompact() : this.renderNormal())));
210
227
  }
211
228
  tabbables(withButton) {
212
229
  const tabbables = this.dropdownElement ? tabbable(this.dropdownElement) : [];