@dso-toolkit/core 99.1.0 → 99.3.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 (295) hide show
  1. package/dist/bundle/dso-accordion-section.js +2 -2
  2. package/dist/bundle/dso-advanced-select.js +3 -3
  3. package/dist/bundle/dso-annotation-activiteit.js +1 -1
  4. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +1 -1
  5. package/dist/bundle/dso-annotation-kaart.js +1 -1
  6. package/dist/bundle/dso-annotation-locatie.js +1 -1
  7. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +1 -1
  8. package/dist/bundle/dso-autosuggest.js +20 -4
  9. package/dist/bundle/dso-badge.js +1 -1
  10. package/dist/bundle/dso-document-component.js +1 -1
  11. package/dist/bundle/dso-dropdown-menu-item.js +1 -1
  12. package/dist/bundle/dso-dropdown-menu.js +2 -2
  13. package/dist/bundle/dso-header.js +2 -2
  14. package/dist/bundle/dso-info-button.js +1 -1
  15. package/dist/bundle/dso-legend-item.js +15 -8
  16. package/dist/bundle/dso-legend.js +2 -2
  17. package/dist/bundle/dso-list-button.js +18 -10
  18. package/dist/bundle/dso-logo.js +1 -1
  19. package/dist/bundle/dso-map-base-layers.js +4 -4
  20. package/dist/bundle/dso-map-controls.js +3 -3
  21. package/dist/bundle/dso-map-layer-object.js +2 -2
  22. package/dist/bundle/dso-map-layer.js +2 -2
  23. package/dist/bundle/dso-map-message.js +2 -2
  24. package/dist/bundle/dso-map-overlays.js +4 -4
  25. package/dist/bundle/dso-mark-bar.js +1 -1
  26. package/dist/bundle/dso-modal.js +1 -1
  27. package/dist/bundle/dso-onboarding-tip.js +1 -1
  28. package/dist/bundle/dso-ozon-content-toggletip.js +1 -1
  29. package/dist/bundle/dso-ozon-content.js +1 -1
  30. package/dist/bundle/dso-pagination.js +1 -1
  31. package/dist/bundle/dso-panel.js +1 -1
  32. package/dist/bundle/dso-plekinfo-card.js +1 -1
  33. package/dist/bundle/dso-progress-indicator.js +1 -1
  34. package/dist/bundle/dso-project-item.js +1 -1
  35. package/dist/bundle/dso-responsive-element.js +1 -1
  36. package/dist/bundle/dso-scrollable.js +1 -1
  37. package/dist/bundle/dso-segmented-button.js +1 -1
  38. package/dist/bundle/dso-selectable.js +1 -1
  39. package/dist/bundle/dso-skiplink.js +1 -1
  40. package/dist/bundle/dso-slide-toggle.js +1 -1
  41. package/dist/bundle/dso-survey-rating.js +4 -4
  42. package/dist/bundle/dso-tab.js +1 -1
  43. package/dist/bundle/dso-table.js +1 -1
  44. package/dist/bundle/dso-tabs.js +1 -1
  45. package/dist/bundle/dso-tijdreis-banner.js +1 -1
  46. package/dist/bundle/dso-tooltip.js +1 -1
  47. package/dist/bundle/dso-tree-view.js +2 -2
  48. package/dist/bundle/dso-viewer-grid.js +3 -3
  49. package/dist/bundle/dsot-document-component-demo.js +11 -11
  50. package/dist/bundle/p-46yF0HRA.js +1209 -0
  51. package/dist/bundle/{p-B985IZ5E.js → p-BXj3KQLr.js} +1 -1
  52. package/dist/bundle/p-BgSoLhHt.js +122 -0
  53. package/dist/bundle/{p-CaqgkKJr.js → p-BnKQUOO3.js} +1 -1
  54. package/dist/bundle/{p-CjzslTc7.js → p-BuYJl3wN.js} +5 -2
  55. package/dist/bundle/{p-CWULuYeZ.js → p-Bw8_UiAv.js} +1 -1
  56. package/dist/bundle/{p-DP30G93t.js → p-Cc1GnE4g.js} +1 -1
  57. package/dist/bundle/{p-Q0QoAbtJ.js → p-DjHplS8O.js} +2 -2
  58. package/dist/bundle/{p-C4ybibNA.js → p-DpwxsXR-.js} +1 -1
  59. package/dist/bundle/{p-D3Aw2q6j.js → p-WTVvB0zs.js} +3 -3
  60. package/dist/bundle/p-YGjRwvU1.js +161 -0
  61. package/dist/bundle/p-qKhyhLEu.js +341 -0
  62. package/dist/bundle/{p-BzYOu3k2.js → p-ryJKPQPH.js} +1 -1
  63. package/dist/bundle/{p-D7MKa3Zt.js → p-y0R9QGf7.js} +1 -1
  64. package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
  65. package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
  66. package/dist/cjs/dso-alert_7.cjs.entry.js +6 -6
  67. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +1 -1
  68. package/dist/cjs/dso-autosuggest.cjs.entry.js +17 -1
  69. package/dist/cjs/dso-dropdown-menu-item.cjs.entry.js +1 -1
  70. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  71. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  72. package/dist/cjs/dso-info_3.cjs.entry.js +1 -1
  73. package/dist/cjs/dso-label_3.cjs.entry.js +1 -1
  74. package/dist/cjs/dso-legend-item.cjs.entry.js +11 -4
  75. package/dist/cjs/dso-legend.cjs.entry.js +1 -1
  76. package/dist/cjs/dso-list-button.cjs.entry.js +9 -1
  77. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  78. package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
  79. package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
  80. package/dist/cjs/dso-map-layer-object.cjs.entry.js +1 -1
  81. package/dist/cjs/dso-map-layer.cjs.entry.js +1 -1
  82. package/dist/cjs/dso-map-message.cjs.entry.js +2 -2
  83. package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
  84. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  85. package/dist/cjs/dso-modal.cjs.entry.js +22 -2
  86. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +1 -1
  87. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
  88. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  89. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  90. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  91. package/dist/cjs/dso-scrollable.cjs.entry.js +4 -2
  92. package/dist/cjs/dso-segmented-button.cjs.entry.js +1 -1
  93. package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
  94. package/dist/cjs/dso-survey-rating.cjs.entry.js +3 -3
  95. package/dist/cjs/dso-tab.cjs.entry.js +1 -1
  96. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  97. package/dist/cjs/dso-tijdreis-banner.cjs.entry.js +1 -1
  98. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  99. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  100. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  101. package/dist/cjs/dso-viewer-grid.cjs.entry.js +3 -3
  102. package/dist/cjs/loader.cjs.js +1 -1
  103. package/dist/collection/components/accordion/components/accordion-section.css +1 -0
  104. package/dist/collection/components/advanced-select/advanced-select.css +2 -0
  105. package/dist/collection/components/autosuggest/autosuggest.js +23 -1
  106. package/dist/collection/components/document-component/document-component.css +1 -0
  107. package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.css +1 -0
  108. package/dist/collection/components/dropdown-menu/dropdown-menu.css +1 -0
  109. package/dist/collection/components/header/header.css +9 -4
  110. package/dist/collection/components/legend/legend-item/legend-item.css +14 -1
  111. package/dist/collection/components/legend/legend-item/legend-item.i18n.js +4 -0
  112. package/dist/collection/components/legend/legend-item/legend-item.js +7 -4
  113. package/dist/collection/components/legend/legend.css +1 -0
  114. package/dist/collection/components/list-button/list-button.js +15 -7
  115. package/dist/collection/components/logo/logo.js +1 -1
  116. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  117. package/dist/collection/components/map-controls/map-controls.css +1 -0
  118. package/dist/collection/components/map-controls/map-controls.js +1 -1
  119. package/dist/collection/components/map-layer/components/map-layer-object.js +1 -1
  120. package/dist/collection/components/map-layer/map-layer.js +1 -1
  121. package/dist/collection/components/map-message/map-message.js +2 -2
  122. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  123. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  124. package/dist/collection/components/modal/functional-components/body.js +4 -0
  125. package/dist/collection/components/modal/functional-components/footer.js +4 -0
  126. package/dist/collection/components/modal/functional-components/header.js +4 -0
  127. package/dist/collection/components/modal/modal.css +14 -0
  128. package/dist/collection/components/modal/modal.js +15 -3
  129. package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
  130. package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +1 -1
  131. package/dist/collection/components/ozon-content/ozon-content.css +1 -0
  132. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  133. package/dist/collection/components/panel/panel.js +1 -1
  134. package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
  135. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  136. package/dist/collection/components/project-item/project-item.js +1 -1
  137. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  138. package/dist/collection/components/scrollable/scrollable.js +31 -2
  139. package/dist/collection/components/segmented-button/segmented-button.js +1 -1
  140. package/dist/collection/components/selectable/selectable.js +1 -1
  141. package/dist/collection/components/skiplink/skiplink.js +1 -1
  142. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  143. package/dist/collection/components/survey-rating/survey-rating.css +1 -0
  144. package/dist/collection/components/survey-rating/survey-rating.js +2 -2
  145. package/dist/collection/components/table/table.css +1 -0
  146. package/dist/collection/components/table/table.js +1 -1
  147. package/dist/collection/components/tabs/components/tab.css +1 -0
  148. package/dist/collection/components/tabs/tabs.js +1 -1
  149. package/dist/collection/components/tijdreis-banner/tijdreis-banner.js +1 -1
  150. package/dist/collection/components/tooltip/tooltip.js +1 -1
  151. package/dist/collection/components/tree-view/tree-view.js +1 -1
  152. package/dist/collection/components/viewer-grid/viewer-grid.css +1 -0
  153. package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
  154. package/dist/components/document-component.js +1 -1
  155. package/dist/components/dso-accordion-section.js +1 -1
  156. package/dist/components/dso-advanced-select.js +1 -1
  157. package/dist/components/dso-autosuggest.js +1 -1
  158. package/dist/components/dso-dropdown-menu-item.js +1 -1
  159. package/dist/components/dso-dropdown-menu.js +1 -1
  160. package/dist/components/dso-header.js +1 -1
  161. package/dist/components/dso-legend-item.js +1 -1
  162. package/dist/components/dso-legend.js +1 -1
  163. package/dist/components/dso-list-button.js +1 -1
  164. package/dist/components/dso-logo.js +1 -1
  165. package/dist/components/dso-map-base-layers.js +1 -1
  166. package/dist/components/dso-map-controls.js +1 -1
  167. package/dist/components/dso-map-layer-object.js +1 -1
  168. package/dist/components/dso-map-layer.js +1 -1
  169. package/dist/components/dso-map-message.js +1 -1
  170. package/dist/components/dso-map-overlays.js +1 -1
  171. package/dist/components/dso-mark-bar.js +1 -1
  172. package/dist/components/dso-onboarding-tip.js +1 -1
  173. package/dist/components/dso-plekinfo-card.js +1 -1
  174. package/dist/components/dso-project-item.js +1 -1
  175. package/dist/components/dso-segmented-button.js +1 -1
  176. package/dist/components/dso-skiplink.js +1 -1
  177. package/dist/components/dso-survey-rating.js +1 -1
  178. package/dist/components/dso-tab.js +1 -1
  179. package/dist/components/dso-tabs.js +1 -1
  180. package/dist/components/dso-tijdreis-banner.js +1 -1
  181. package/dist/components/dso-tooltip.js +1 -1
  182. package/dist/components/dso-tree-view.js +1 -1
  183. package/dist/components/dso-viewer-grid.js +1 -1
  184. package/dist/components/modal.js +1 -1
  185. package/dist/components/ozon-content-toggletip.js +1 -1
  186. package/dist/components/ozon-content.js +1 -1
  187. package/dist/components/panel.js +1 -1
  188. package/dist/components/progress-indicator.js +1 -1
  189. package/dist/components/responsive-element.js +1 -1
  190. package/dist/components/scrollable.js +1 -1
  191. package/dist/components/selectable.js +1 -1
  192. package/dist/components/slide-toggle.js +1 -1
  193. package/dist/components/table.js +1 -1
  194. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  195. package/dist/dso-toolkit/{p-58d26e4a.entry.js → p-09fee564.entry.js} +1 -1
  196. package/dist/dso-toolkit/p-0c07dd43.entry.js +1 -0
  197. package/dist/dso-toolkit/{p-77193722.entry.js → p-10360fa4.entry.js} +1 -1
  198. package/dist/dso-toolkit/{p-04a866ad.entry.js → p-1cf76eb8.entry.js} +1 -1
  199. package/dist/dso-toolkit/p-1d2e543a.entry.js +1 -0
  200. package/dist/dso-toolkit/{p-527fd9ad.entry.js → p-2ac35007.entry.js} +1 -1
  201. package/dist/dso-toolkit/{p-39146a21.entry.js → p-2dcc260e.entry.js} +1 -1
  202. package/dist/dso-toolkit/{p-f0c4bac8.entry.js → p-3959d0b8.entry.js} +1 -1
  203. package/dist/dso-toolkit/{p-906a2b17.entry.js → p-3b620a1f.entry.js} +1 -1
  204. package/dist/dso-toolkit/{p-a8d13aa8.entry.js → p-3d1b5a25.entry.js} +1 -1
  205. package/dist/dso-toolkit/p-3f6ddf06.entry.js +1 -0
  206. package/dist/dso-toolkit/{p-a9a82876.entry.js → p-40d5fc69.entry.js} +1 -1
  207. package/dist/dso-toolkit/{p-64b2d182.entry.js → p-415db2f9.entry.js} +1 -1
  208. package/dist/dso-toolkit/p-4de1556f.entry.js +1 -0
  209. package/dist/dso-toolkit/{p-5fee14bc.entry.js → p-6b59eed1.entry.js} +1 -1
  210. package/dist/dso-toolkit/p-6fdad8bd.entry.js +1 -0
  211. package/dist/dso-toolkit/p-73c95410.entry.js +1 -0
  212. package/dist/dso-toolkit/{p-520dc726.entry.js → p-828dc3d2.entry.js} +1 -1
  213. package/dist/dso-toolkit/{p-74c17d50.entry.js → p-8c52725c.entry.js} +1 -1
  214. package/dist/dso-toolkit/{p-f0ad44a4.entry.js → p-929ef098.entry.js} +1 -1
  215. package/dist/dso-toolkit/{p-87346597.entry.js → p-9330b7e6.entry.js} +1 -1
  216. package/dist/dso-toolkit/p-93aee600.entry.js +1 -0
  217. package/dist/dso-toolkit/{p-adaff168.entry.js → p-a10dddce.entry.js} +1 -1
  218. package/dist/dso-toolkit/{p-b01a50e9.entry.js → p-b2cf776e.entry.js} +1 -1
  219. package/dist/dso-toolkit/p-c10f35d7.entry.js +1 -0
  220. package/dist/dso-toolkit/{p-7277bc47.entry.js → p-c56e654d.entry.js} +1 -1
  221. package/dist/dso-toolkit/{p-bc465094.entry.js → p-d2a0c83c.entry.js} +1 -1
  222. package/dist/dso-toolkit/{p-154cd858.entry.js → p-d728026a.entry.js} +1 -1
  223. package/dist/dso-toolkit/{p-81c897d5.entry.js → p-e452dd0a.entry.js} +1 -1
  224. package/dist/dso-toolkit/{p-b32fac41.entry.js → p-e782f187.entry.js} +1 -1
  225. package/dist/dso-toolkit/p-ec9ca424.entry.js +1 -0
  226. package/dist/dso-toolkit/p-f2a9cf31.entry.js +1 -0
  227. package/dist/dso-toolkit/p-f31456c8.entry.js +1 -0
  228. package/dist/dso-toolkit/p-f3798508.entry.js +1 -0
  229. package/dist/dso-toolkit/{p-ecec7172.entry.js → p-f8d2c3d6.entry.js} +1 -1
  230. package/dist/dso-toolkit/{p-d1d52478.entry.js → p-f8ed1a64.entry.js} +1 -1
  231. package/dist/dso-toolkit/{p-d9147307.entry.js → p-ffc60fb8.entry.js} +1 -1
  232. package/dist/esm/dso-accordion-section.entry.js +1 -1
  233. package/dist/esm/dso-advanced-select.entry.js +1 -1
  234. package/dist/esm/dso-alert_7.entry.js +6 -6
  235. package/dist/esm/dso-annotation-locatie_2.entry.js +1 -1
  236. package/dist/esm/dso-autosuggest.entry.js +17 -1
  237. package/dist/esm/dso-dropdown-menu-item.entry.js +1 -1
  238. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  239. package/dist/esm/dso-header.entry.js +1 -1
  240. package/dist/esm/dso-info_3.entry.js +1 -1
  241. package/dist/esm/dso-label_3.entry.js +1 -1
  242. package/dist/esm/dso-legend-item.entry.js +12 -5
  243. package/dist/esm/dso-legend.entry.js +1 -1
  244. package/dist/esm/dso-list-button.entry.js +9 -1
  245. package/dist/esm/dso-logo.entry.js +1 -1
  246. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  247. package/dist/esm/dso-map-controls.entry.js +2 -2
  248. package/dist/esm/dso-map-layer-object.entry.js +1 -1
  249. package/dist/esm/dso-map-layer.entry.js +1 -1
  250. package/dist/esm/dso-map-message.entry.js +2 -2
  251. package/dist/esm/dso-map-overlays.entry.js +1 -1
  252. package/dist/esm/dso-mark-bar.entry.js +1 -1
  253. package/dist/esm/dso-modal.entry.js +23 -3
  254. package/dist/esm/dso-onboarding-tip.entry.js +1 -1
  255. package/dist/esm/dso-plekinfo-card.entry.js +1 -1
  256. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  257. package/dist/esm/dso-project-item.entry.js +1 -1
  258. package/dist/esm/dso-responsive-element.entry.js +1 -1
  259. package/dist/esm/dso-scrollable.entry.js +4 -2
  260. package/dist/esm/dso-segmented-button.entry.js +1 -1
  261. package/dist/esm/dso-skiplink.entry.js +1 -1
  262. package/dist/esm/dso-survey-rating.entry.js +3 -3
  263. package/dist/esm/dso-tab.entry.js +1 -1
  264. package/dist/esm/dso-tabs.entry.js +1 -1
  265. package/dist/esm/dso-tijdreis-banner.entry.js +1 -1
  266. package/dist/esm/dso-toolkit.js +1 -1
  267. package/dist/esm/dso-tooltip.entry.js +1 -1
  268. package/dist/esm/dso-tree-view.entry.js +1 -1
  269. package/dist/esm/dso-viewer-grid.entry.js +3 -3
  270. package/dist/esm/loader.js +1 -1
  271. package/dist/types/components/autosuggest/autosuggest.d.ts +2 -0
  272. package/dist/types/components/list-button/list-button.d.ts +2 -0
  273. package/dist/types/components/modal/functional-components/body.d.ts +2 -0
  274. package/dist/types/components/modal/functional-components/footer.d.ts +2 -0
  275. package/dist/types/components/modal/functional-components/header.d.ts +10 -0
  276. package/dist/types/components/modal/modal.d.ts +5 -0
  277. package/dist/types/components/scrollable/scrollable.d.ts +2 -0
  278. package/dist/types/components.d.ts +8 -1
  279. package/package.json +4 -4
  280. package/dist/bundle/p-BUP7ETj9.js +0 -122
  281. package/dist/bundle/p-CA2_39GL.js +0 -341
  282. package/dist/bundle/p-CWNtCf83.js +0 -140
  283. package/dist/bundle/p-Cj4wP5c0.js +0 -1209
  284. package/dist/dso-toolkit/p-00ba5390.entry.js +0 -1
  285. package/dist/dso-toolkit/p-1bfcb6a3.entry.js +0 -1
  286. package/dist/dso-toolkit/p-30ae4567.entry.js +0 -1
  287. package/dist/dso-toolkit/p-3f42436c.entry.js +0 -1
  288. package/dist/dso-toolkit/p-47ec99e5.entry.js +0 -1
  289. package/dist/dso-toolkit/p-499a175a.entry.js +0 -1
  290. package/dist/dso-toolkit/p-53ae7599.entry.js +0 -1
  291. package/dist/dso-toolkit/p-6bec3683.entry.js +0 -1
  292. package/dist/dso-toolkit/p-a87670b0.entry.js +0 -1
  293. package/dist/dso-toolkit/p-a9e9e3df.entry.js +0 -1
  294. package/dist/dso-toolkit/p-b680dd08.entry.js +0 -1
  295. package/dist/dso-toolkit/p-c2f33a71.entry.js +0 -1
@@ -53,6 +53,7 @@
53
53
  font-family: Asap, sans-serif;
54
54
  font-size: 1em;
55
55
  font-weight: 600;
56
+ letter-spacing: inherit;
56
57
  line-height: 1.375em;
57
58
  margin: 0;
58
59
  padding-block: 12px;
@@ -32,6 +32,7 @@
32
32
  line-height: inherit;
33
33
  font-family: inherit;
34
34
  font-size: inherit;
35
+ letter-spacing: inherit;
35
36
  }
36
37
  .active-option.open {
37
38
  border-radius: 4px 4px 0 0;
@@ -478,6 +479,7 @@
478
479
  line-height: inherit;
479
480
  font-family: inherit;
480
481
  font-size: inherit;
482
+ letter-spacing: inherit;
481
483
  border: none;
482
484
  text-align: start;
483
485
  background-color: #fff;
@@ -77,6 +77,7 @@ export class Autosuggest {
77
77
  this.debouncedEmitValue(event.target.value.match(/(\S+)/g) ? event.target.value : "");
78
78
  };
79
79
  this.onFocusIn = () => {
80
+ this.input?.select();
80
81
  if (this.suggestions && this.suggestions.length > 1) {
81
82
  this.openSuggestions();
82
83
  }
@@ -133,6 +134,21 @@ export class Autosuggest {
133
134
  this.closeSuggestions();
134
135
  }
135
136
  }
137
+ handleSearchBarButtonKeydown(event) {
138
+ if (event.defaultPrevented || this.loading || (event.key !== "ArrowDown" && event.key !== "ArrowUp")) {
139
+ return;
140
+ }
141
+ if (!this.input || event.target === this.input || !this.isEventInOwnSearchBar(event)) {
142
+ return;
143
+ }
144
+ event.preventDefault();
145
+ this.input.focus();
146
+ this.openSuggestions(event.key === "ArrowDown" ? "first" : "last");
147
+ }
148
+ isEventInOwnSearchBar(event) {
149
+ const searchBar = this.host.closest(".dso-search-bar");
150
+ return !!searchBar && event.composedPath().includes(searchBar);
151
+ }
136
152
  onDocumentClick(event) {
137
153
  if ((this.showSuggestions || this.notFound) &&
138
154
  this.listbox &&
@@ -486,7 +502,7 @@ export class Autosuggest {
486
502
  else if (this.input) {
487
503
  this.input.removeAttribute("aria-controls");
488
504
  }
489
- return (h(Fragment, null, h("slot", { key: '319f44b80807f98e51decd2a275375216c28363d' }), this.loading && this.showLoading ? (h("div", { class: "autosuggest-progress-box" }, h("dso-progress-indicator", { label: this.loadingLabel }))) : (showListbox && (h(Fragment, null, h("dso-scrollable", { class: "listbox-container", ref: (element) => (this.listboxContainer = element) }, h("div", { class: "listbox", role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: (element) => (this.listbox = element), tabindex: "0" }, (flat &&
505
+ return (h(Fragment, null, h("slot", { key: '27cfa8bc81482dca996532582d210a0edcee11b2' }), this.loading && this.showLoading ? (h("div", { class: "autosuggest-progress-box" }, h("dso-progress-indicator", { label: this.loadingLabel }))) : (showListbox && (h(Fragment, null, h("dso-scrollable", { class: "listbox-container", ref: (element) => (this.listboxContainer = element), _preventFocus: true }, h("div", { class: "listbox", role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: (element) => (this.listbox = element) }, (flat &&
490
506
  this.showSuggestions &&
491
507
  this.suggestions &&
492
508
  this.suggestions.map((suggestion) => (h(Option, { id: this.listboxItemId(suggestion), mouseEnter: () => this.selectSuggestion(suggestion), mouseLeave: () => this.resetSelectedSuggestion(), click: this.onOptionClick, selected: (suggestion === this.selectedSuggestion).toString(), suggestion: suggestion, ref: (element) => element && this.listboxItems.push(element), markedSuggestion: this.getMarkedSuggestions(suggestion) })))) ||
@@ -722,6 +738,12 @@ export class Autosuggest {
722
738
  }
723
739
  static get listeners() {
724
740
  return [{
741
+ "name": "keydown",
742
+ "method": "handleSearchBarButtonKeydown",
743
+ "target": "window",
744
+ "capture": false,
745
+ "passive": false
746
+ }, {
725
747
  "name": "click",
726
748
  "method": "onDocumentClick",
727
749
  "target": "document",
@@ -5,6 +5,7 @@ button {
5
5
  font: inherit;
6
6
  font-family: inherit;
7
7
  font-size: inherit;
8
+ letter-spacing: inherit;
8
9
  line-height: inherit;
9
10
  margin: 0;
10
11
  overflow: visible;
@@ -13,6 +13,7 @@ button {
13
13
  font: inherit;
14
14
  font-family: inherit;
15
15
  font-size: inherit;
16
+ letter-spacing: inherit;
16
17
  line-height: inherit;
17
18
  margin: 0;
18
19
  overflow: visible;
@@ -13,6 +13,7 @@ button {
13
13
  font: inherit;
14
14
  font-family: inherit;
15
15
  font-size: inherit;
16
+ letter-spacing: inherit;
16
17
  line-height: inherit;
17
18
  margin: 0;
18
19
  overflow: visible;
@@ -107,6 +107,7 @@ div[popover] {
107
107
  font-size: 1rem;
108
108
  font-weight: 600;
109
109
  line-height: normal;
110
+ letter-spacing: inherit;
110
111
  position: relative;
111
112
  }
112
113
  .dropdown-menu button::after {
@@ -189,18 +190,22 @@ div[popover] {
189
190
  background-color: #39870c;
190
191
  color: #fff;
191
192
  }
193
+ .dropdown-menu .dropdown-menu-options ul li a:hover, .dropdown-menu .dropdown-menu-options ul li a:hover:visited,
194
+ .dropdown-menu .dropdown-menu-options ul li button:hover,
195
+ .dropdown-menu .dropdown-menu-options ul li button:hover:visited {
196
+ color: #275937;
197
+ }
192
198
  .dropdown-menu .dropdown-menu-options ul li a:hover,
193
199
  .dropdown-menu .dropdown-menu-options ul li button:hover {
194
200
  background-color: #fff;
195
- color: #275937;
196
201
  text-decoration: underline;
197
202
  }
198
203
  .dropdown-menu .dropdown-menu-options ul li a:visited,
199
204
  .dropdown-menu .dropdown-menu-options ul li button:visited {
200
- color: #191919;
205
+ color: #fff;
201
206
  }
202
- .dropdown-menu .dropdown-menu-options ul li a:visited:not(:hover):not(:focus-visible),
203
- .dropdown-menu .dropdown-menu-options ul li button:visited:not(:hover):not(:focus-visible) {
207
+ .dropdown-menu .dropdown-menu-options ul li a:visited:not(:hover):not(:focus):not(:focus-visible),
208
+ .dropdown-menu .dropdown-menu-options ul li button:visited:not(:hover):not(:focus):not(:focus-visible) {
204
209
  color: #275937;
205
210
  }
206
211
  .dropdown-menu .dropdown-menu-options ul li.dso-active a {
@@ -9,6 +9,17 @@
9
9
  box-sizing: border-box;
10
10
  }
11
11
 
12
+ .sr-only {
13
+ position: absolute;
14
+ inline-size: 1px;
15
+ block-size: 1px;
16
+ padding: 0;
17
+ margin: -1px;
18
+ border: 0;
19
+ overflow: hidden;
20
+ clip-path: rect(0 0 0 0);
21
+ }
22
+
12
23
  ::slotted(span[slot=symbol]) {
13
24
  background-color: #fff;
14
25
  display: block;
@@ -43,6 +54,8 @@
43
54
  }
44
55
  .legend-item-right-content dso-slide-toggle {
45
56
  line-height: 1;
46
- margin-inline-start: 8px;
47
57
  padding-block-start: 0 !important;
58
+ }
59
+ .legend-item-right-content dso-icon-button {
60
+ margin-inline-start: 4px;
48
61
  }
@@ -4,6 +4,8 @@ export const translations = {
4
4
  delete: "Remove layer",
5
5
  disabledInfo: "More info",
6
6
  options: "Edit layer",
7
+ optionsAvailable: "Edit layer button is now available",
8
+ optionsUnavailable: "Edit layer button is now disabled",
7
9
  makeActive: "Make {{label}} active",
8
10
  makeActiveDefault: "Make active",
9
11
  },
@@ -13,6 +15,8 @@ export const translations = {
13
15
  delete: "Kaartlaag verwijderen",
14
16
  disabledInfo: "Meer informatie",
15
17
  options: "Kaartlaag bewerken",
18
+ optionsAvailable: "De knop Kaartlaag bewerken is nu beschikbaar",
19
+ optionsUnavailable: "De knop Kaartlaag bewerken is nu uitgeschakeld",
16
20
  makeActive: "Maak {{label}} actief",
17
21
  makeActiveDefault: "Maak actief",
18
22
  },
@@ -1,4 +1,4 @@
1
- import { Host, forceUpdate, h, } from "@stencil/core";
1
+ import { Fragment, Host, forceUpdate, h, } from "@stencil/core";
2
2
  import { clsx } from "clsx";
3
3
  import { i18n } from "../../../utils/i18n";
4
4
  import { translations } from "./legend-item.i18n";
@@ -36,9 +36,12 @@ export class LegendItem {
36
36
  return (h("dso-icon-button", { label: this.text("delete"), icon: "trash", variant: "tertiary", id: "delete-button", onDsoClick: (e) => this.dsoDelete.emit({ originalEvent: e.detail.originalEvent }) }));
37
37
  }
38
38
  renderViewMode(hasOptions, accessibleLabel) {
39
+ if (!this.activatable) {
40
+ return [];
41
+ }
39
42
  return [
40
- this.active && hasOptions && !this.disabled && (h("dso-icon-button", { label: this.text("options"), icon: "more-horizontal", variant: "tertiary", toggled: this.showOptions, id: "options-button", onDsoClick: () => (this.showOptions = !this.showOptions) })),
41
- this.activatable && (h("dso-slide-toggle", { accessibleLabel: accessibleLabel, checked: this.active, disabled: this.disabled, onDsoActiveChange: (e) => this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e }) })),
43
+ h("dso-slide-toggle", { accessibleLabel: accessibleLabel, checked: this.active, disabled: this.disabled, onDsoActiveChange: (e) => this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e }) }),
44
+ hasOptions && (h(Fragment, null, h("span", { class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.active ? this.text("optionsAvailable") : this.text("optionsUnavailable")), h("dso-icon-button", { disabled: !this.active || this.disabled, label: this.text("options"), icon: "more-horizontal", variant: "tertiary", toggled: this.showOptions, id: "options-button", onDsoClick: () => (this.showOptions = !this.showOptions) }))),
42
45
  ];
43
46
  }
44
47
  renderRightContent(hasOptions, accessibleLabel) {
@@ -57,7 +60,7 @@ export class LegendItem {
57
60
  const accessibleLabel = label?.textContent
58
61
  ? this.text("makeActive", { label: label.textContent.toLowerCase() })
59
62
  : this.text("makeActiveDefault");
60
- return (h(Host, { key: '6e91a31c332be4e64344129f9a55b494362dc864', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h("div", { key: '2df3e538658684f067f514cdd4ca34ee889c1048', class: clsx("legend-item", { "legend-item-symbol": hasSymbol }) }, hasSymbol && (h("div", { key: '6b8ecd2ba1ea41963d3967700685e52bc30cf6cf' }, h("slot", { key: '36668d6047e34c91505ee305cd32fade84c02542', name: "symbol" }))), h("div", { key: '47a0733a9c62fc325305e6d26c93483dc68f525b' }, h("slot", { key: 'a9b9991c904252ce3cfa4f302af0e8895ed1e52e', name: "label" })), this.disabled && this.disabledMessage && (h("dso-info-button", { key: '3ac075632a7288f7149067d50307ac8ff7d47456', label: this.text("disabledInfo"), toggletipPlacement: "bottom" }, h("div", { key: '98891613b35a41fcfbdef60ef1680261b2522b23', slot: "toggletip" }, this.disabledMessage))), h("div", { key: 'c60ac27647e62f70795bb71d2bc189bfb0d82502', class: "legend-item-right-content" }, this.renderRightContent(hasOptions, accessibleLabel))), hasOptions && (h("div", { key: '726712b7ae2018348e247776de42cd649d762d5f', hidden: this.disabled || !this.showOptions, class: "options" }, h("slot", { key: '44e1d6a86ef49a88a59cf107e1c7ec9a59748a7b', name: "options" })))));
63
+ return (h(Host, { key: 'df30f74d55cc77242dd6267a7c41cdddc10e17e0', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h("div", { key: 'cc6af5ca94841169aa8e79abcf94c7570dabb2cc', class: clsx("legend-item", { "legend-item-symbol": hasSymbol }) }, hasSymbol && (h("div", { key: 'd6ffae918a8cd36041a7af742fcc61e5db64a3d9' }, h("slot", { key: '3405be5254e5b39c6931b15a8b678720b313d353', name: "symbol" }))), h("div", { key: 'cc6c17f5c8e5b7ab4c95ca778ab9b4f15eecf5f7' }, h("slot", { key: 'e23881446ce219a1c2132b098383e36b45772a5f', name: "label" })), this.disabled && this.disabledMessage && (h("dso-info-button", { key: '30e37a1e3e9039a515e6c6e97503b968466cfc26', label: this.text("disabledInfo"), toggletipPlacement: "bottom" }, h("div", { key: '5b04a862380380febc92818bde9fb983129c7e82', slot: "toggletip" }, this.disabledMessage))), h("div", { key: 'f4804b908b16ae8e9cd19a27a2370cdedd5199b3', class: "legend-item-right-content" }, this.renderRightContent(hasOptions, accessibleLabel))), hasOptions && (h("div", { key: 'c45e84d5f3b2c9369fe62158e7d97dcf09ff6943', hidden: this.disabled || !this.showOptions, class: "options" }, h("slot", { key: '15cbfda78a1b8ff642086ad62c64a6c8f35cf56d', name: "options" })))));
61
64
  }
62
65
  static get is() { return "dso-legend-item"; }
63
66
  static get encapsulation() { return "shadow"; }
@@ -27,6 +27,7 @@
27
27
  font-size: inherit;
28
28
  font-family: inherit;
29
29
  line-height: inherit;
30
+ letter-spacing: inherit;
30
31
  background-color: transparent;
31
32
  cursor: pointer;
32
33
  display: block;
@@ -2,6 +2,7 @@ import { Fragment, forceUpdate, h, } from "@stencil/core";
2
2
  import { clsx } from "clsx";
3
3
  export class ListButton {
4
4
  constructor() {
5
+ this.focusIncrementButtonAfterRender = false;
5
6
  /**
6
7
  * Whether the List Button is checked.
7
8
  */
@@ -27,6 +28,10 @@ export class ListButton {
27
28
  if (!this.subcontentSlot?.hasAttribute("aria-hidden")) {
28
29
  this.subcontentSlot?.setAttribute("aria-hidden", "true");
29
30
  }
31
+ if (this.focusIncrementButtonAfterRender) {
32
+ this.focusIncrementButtonAfterRender = false;
33
+ void this.incrementButton?.setFocus();
34
+ }
30
35
  }
31
36
  disconnectedCallback() {
32
37
  this.mutationObserver?.disconnect();
@@ -38,6 +43,9 @@ export class ListButton {
38
43
  if (!this.isNewCountValid(newValue)) {
39
44
  return;
40
45
  }
46
+ if (direction === "decrement" && newValue === 1) {
47
+ this.focusIncrementButtonAfterRender = true;
48
+ }
41
49
  this.dsoCountChange.emit({
42
50
  originalEvent: e,
43
51
  count: newValue,
@@ -65,7 +73,7 @@ export class ListButton {
65
73
  }
66
74
  render() {
67
75
  const selected = this.checked || (this.count !== undefined && this.count > 0);
68
- return (h("div", { key: '442edba27a99b9d35c98e98d41962e94d0b8e054', class: clsx(["dso-button-group", { "dso-disabled": this.disabled }]) }, h("div", { key: '77c14a46db6fb4c5c35095a8f10a28339aedffa7', class: clsx(["dso-list-button", { "dso-selected": selected, "dso-single-count": this.count === 1 }]), onClick: (e) => this.handleSelectClick(e) }, h("dso-selectable", { key: '5fb0f6d371f23008bfd162f40b96949c9e710d23', type: "checkbox", value: "list-button", name: "naam", checked: selected, disabled: this.disabled }, h("span", { key: '866575af2f598d1795bad098778153ccd84f8ff2' }, this.label, this.sublabel && h("span", { key: '35ec4dda7f219b166472ec5bb261c5be73ce0b63', class: "sr-only" }, " ", this.sublabel), this.subcontentSlot && (h("span", { key: '9cf84fe5826746df38d8178a6740a680a4ef4cbd', class: "sr-only" }, this.subcontentPrefix && this.subcontentPrefix + ":", " ", h("span", { key: '83175e372d04d1a455dbad1e434f33e541f2f52a', innerHTML: this.subcontentSlot.innerHTML }))))), this.sublabel && h("span", { key: '999f3bca2e71d984efdf8082dc5c28bfd6aceef4', class: "dso-sublabel" }, this.sublabel), this.subcontentSlot && (h("div", { key: 'a69216cae841406387873c7558e52f11be674663', class: "subcontent" }, h("slot", { key: 'c7bdb35d41feaaf5684b9f90dda3d87716e58af9', name: "subcontent" })))), this.count !== undefined && this.count > 0 && (h("div", { key: '7921e61e0a6c5f471603c7ce9cae81cd0d8b8356', class: "dso-input-number" }, this.count > 1 && (h(Fragment, { key: 'bee2a17e37f9cdfb341c5c7a3ad497519d58c9bc' }, h("dso-icon-button", { key: '75fffae9c8f3eb1a5ac63fa9f351dedefbeaf600', label: "Aantal verlagen", variant: "tertiary", icon: "minus-circle-outline", disabled: this.count === Number(this.min) || this.disabled, onDsoClick: (e) => this.stepValue(e, "decrement") }), h("span", { key: 'b7f6582d5f81f3979423246cbddbb4e5ff1e4842', class: "dso-input-step-counter", "aria-label": "Aantal", "aria-live": "polite" }, this.count))), h("dso-icon-button", { key: '3a889058c9710ba9839e4b686e6494e4a3cbdf92', label: "Aantal verhogen", variant: "tertiary", icon: "plus-circle-outline", disabled: this.count === Number(this.max) || this.disabled, onDsoClick: (e) => this.stepValue(e, "increment") })))));
76
+ return (h("div", { key: '28dc8cacf3635cf83f3bc526cce61870c16213d7', class: clsx(["dso-button-group", { "dso-disabled": this.disabled }]) }, h("div", { key: '80788b4dae346a6ca92c37d3a23f58993a6f061b', class: clsx(["dso-list-button", { "dso-selected": selected, "dso-single-count": this.count === 1 }]), onClick: (e) => this.handleSelectClick(e) }, h("dso-selectable", { key: '123ae2c35a23673eeaa39a42e021edabb4b240a2', type: "checkbox", value: "list-button", name: "naam", checked: selected, disabled: this.disabled }, h("span", { key: 'a882a847c1e0a0da71d45afa5f6bdca506655c9d' }, this.label, this.sublabel && h("span", { key: 'c87a1d5a74e8f76943943f21eda4ca70977a120b', class: "sr-only" }, " ", this.sublabel), this.subcontentSlot && (h("span", { key: '8f11fd1a6285c3ef92d61679c2f28b4875ddbe5c', class: "sr-only" }, this.subcontentPrefix && this.subcontentPrefix + ":", " ", h("span", { key: '987ab02881c3e7eaf6efb1a16fbbd75855be2959', innerHTML: this.subcontentSlot.innerHTML }))))), this.sublabel && h("span", { key: 'f58beece16efb79cf8c169fd48430ad64be5fe56', class: "dso-sublabel" }, this.sublabel), this.subcontentSlot && (h("div", { key: 'f4c6f59c9a327ac075608952ab81c9f38c886464', class: "subcontent" }, h("slot", { key: 'e0d025b91a7f60170dce5975a31926673e00f6f1', name: "subcontent" })))), this.count !== undefined && this.count > 0 && (h("div", { key: 'ce9f805f4cca58986ea9a1c18b5c6f982325b4d2', class: "dso-input-number" }, this.count > 1 && (h(Fragment, { key: 'baa2dbcef366d7da042161dacdfe6548aa2e7667' }, h("dso-icon-button", { key: '98c240428924462f07caabbd3187409c08147062', label: "Aantal verlagen", variant: "tertiary", icon: "minus-circle-outline", disabled: this.count === Number(this.min) || this.disabled, onDsoClick: (e) => this.stepValue(e, "decrement") }), h("span", { key: '4ce7451b2740c43259a610077a7d37022607764f', class: "dso-input-step-counter", "aria-hidden": "true" }, this.count))), h("span", { key: '340c4db349360e7adab309d84fe02a40795237ac', class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.count), h("dso-icon-button", { key: 'd1365a96fb41df03e35ce8687d994d102e338f84', ref: (element) => (this.incrementButton = element), label: "Aantal verhogen", variant: "tertiary", icon: "plus-circle-outline", disabled: this.count === Number(this.max) || this.disabled, onDsoClick: (e) => this.stepValue(e, "increment") })))));
69
77
  }
70
78
  static get is() { return "dso-list-button"; }
71
79
  static get encapsulation() { return "shadow"; }
@@ -97,7 +105,7 @@ export class ListButton {
97
105
  },
98
106
  "getter": false,
99
107
  "setter": false,
100
- "reflect": false,
108
+ "reflect": true,
101
109
  "attribute": "label"
102
110
  },
103
111
  "sublabel": {
@@ -116,7 +124,7 @@ export class ListButton {
116
124
  },
117
125
  "getter": false,
118
126
  "setter": false,
119
- "reflect": false,
127
+ "reflect": true,
120
128
  "attribute": "sublabel"
121
129
  },
122
130
  "count": {
@@ -135,7 +143,7 @@ export class ListButton {
135
143
  },
136
144
  "getter": false,
137
145
  "setter": false,
138
- "reflect": false,
146
+ "reflect": true,
139
147
  "attribute": "count"
140
148
  },
141
149
  "min": {
@@ -154,7 +162,7 @@ export class ListButton {
154
162
  },
155
163
  "getter": false,
156
164
  "setter": false,
157
- "reflect": false,
165
+ "reflect": true,
158
166
  "attribute": "min"
159
167
  },
160
168
  "max": {
@@ -173,7 +181,7 @@ export class ListButton {
173
181
  },
174
182
  "getter": false,
175
183
  "setter": false,
176
- "reflect": false,
184
+ "reflect": true,
177
185
  "attribute": "max"
178
186
  },
179
187
  "checked": {
@@ -232,7 +240,7 @@ export class ListButton {
232
240
  },
233
241
  "getter": false,
234
242
  "setter": false,
235
- "reflect": false,
243
+ "reflect": true,
236
244
  "attribute": "subcontent-prefix"
237
245
  }
238
246
  };
@@ -23,7 +23,7 @@ export class Logo {
23
23
  }
24
24
  render() {
25
25
  return (h(Fragment, null, this.logoUrl ? (h("a", { class: "logo-url", href: this.logoUrl, onClick: this.handleLogoClick }, h(DsoLogo, { name: this.name }))) : (h(DsoLogo, { name: this.name })), this.label &&
26
- (!this.labelUrl ? (h("span", { class: "logo-label" }, this.label)) : (h("a", { class: "logo-label-url", href: this.labelUrl, onClick: this.handleLabelClick }, h("span", { class: "logo-label" }, this.label)))), this.ribbon && h("div", { key: '29bfc8cd84b58cb4212e83458128be6fd0a76996', class: "logo-ribbon" }, this.ribbon)));
26
+ (!this.labelUrl ? (h("span", { class: "logo-label" }, this.label)) : (h("a", { class: "logo-label-url", href: this.labelUrl, onClick: this.handleLabelClick }, h("span", { class: "logo-label" }, this.label)))), this.ribbon && h("div", { key: 'd9b8e664223d4763b318ca259cd3090ccc3b0a96', class: "logo-ribbon" }, this.ribbon)));
27
27
  }
28
28
  static get is() { return "dso-logo"; }
29
29
  static get encapsulation() { return "shadow"; }
@@ -26,7 +26,7 @@ export class MapBaseLayers {
26
26
  for (const ref in this.selectableRefs) {
27
27
  delete this.selectableRefs[ref];
28
28
  }
29
- return (h("fieldset", { key: '4844cb7dc1f22b46db47516b2482c67673eb70f7', class: "form-group dso-radios" }, h("legend", { key: 'b0acfbdfe97f083ed88bfdc12a3e5da85f71e7c7', class: "sr-only" }, "Achtergrond"), h("div", { key: '6cf325954514f6279761f99ade9f6297fd0f2931', class: "dso-label-container" }, h("span", { key: '924198ae3890df319ce186a44b44d59640b21d1e', class: "control-label", "aria-hidden": "true" }, this.text("background"))), h("div", { key: 'fc609656c7c56a80d192ad7f68048a63b238777c', class: "dso-field-container" }, this.baseLayers.map((baseLayer) => (h("dso-selectable", { key: baseLayer.id, type: "radio", value: baseLayer.name, checked: baseLayer.checked, disabled: baseLayer.disabled, name: this.group, ref: (ref) => ref && (this.selectableRefs[baseLayer.id] = ref), onDsoChange: () => this.baseLayerChangeHandler(baseLayer) }, baseLayer.name, baseLayer.info ? h("p", { slot: "info" }, baseLayer.info) : null))))));
29
+ return (h("fieldset", { key: '26e0f25a4b9d26dfe2ad804c65253a08205909d4', class: "form-group dso-radios" }, h("legend", { key: 'fe913ce00c8ace09909deffc9e7e39a8891fe7f9', class: "sr-only" }, "Achtergrond"), h("div", { key: '7ecc76a72df6571c43902b8431bbf579259204c7', class: "dso-label-container" }, h("span", { key: 'abd27ffee2fa309cf2248a8f11a3e20e2053a1b2', class: "control-label", "aria-hidden": "true" }, this.text("background"))), h("div", { key: 'fa9c69b1cd28e2646c8a92cbd6550d39c1ba3113', class: "dso-field-container" }, this.baseLayers.map((baseLayer) => (h("dso-selectable", { key: baseLayer.id, type: "radio", value: baseLayer.name, checked: baseLayer.checked, disabled: baseLayer.disabled, name: this.group, ref: (ref) => ref && (this.selectableRefs[baseLayer.id] = ref), onDsoChange: () => this.baseLayerChangeHandler(baseLayer) }, baseLayer.name, baseLayer.info ? h("p", { slot: "info" }, baseLayer.info) : null))))));
30
30
  }
31
31
  static get is() { return "dso-map-base-layers"; }
32
32
  static get encapsulation() { return "shadow"; }
@@ -5,6 +5,7 @@ button {
5
5
  font: inherit;
6
6
  font-family: inherit;
7
7
  font-size: inherit;
8
+ letter-spacing: inherit;
8
9
  line-height: inherit;
9
10
  margin: 0;
10
11
  overflow: visible;
@@ -102,7 +102,7 @@ export class MapControls {
102
102
  this.clearPostTransitionTimeout();
103
103
  }
104
104
  render() {
105
- return (h(Fragment, { key: 'b5613c0128da6dc889d909f0c8b923e581c72589' }, h("dso-icon-button", { key: '444f1e007a61b852699d40965117c6f083eb416b', label: this.text("layersButton"), icon: "layers", variant: "map", "aria-controls": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), "aria-expanded": this.open, tooltipPlacement: "left", class: "toggle-visibility-icon-button", onDsoClick: (e) => this.toggleVisibilityInternal(e.detail.originalEvent, __classPrivateFieldGet(this, _MapControls_toggleIconButtonElement, "f")), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleIconButtonElement, element, "f")) }), h("button", { key: '50c496a3d31f767ed324341d9d7f83cafa6a9246', type: "button", class: "dso-map toggle-visibility-button", "aria-controls": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), "aria-expanded": this.open, onClick: (e) => this.toggleVisibilityInternal(e, __classPrivateFieldGet(this, _MapControls_toggleButtonElement, "f")), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { key: '912209fd160ae1e979e15bef3f0a020f5b232e5b', icon: "layers" }), h("span", { key: '79b628ca8331bef70b8c15576176895583edd8bb' }, this.text("layersButton"))), h("dso-button-group", { key: 'c690b9a34bef0d7a68bf38b22abd1707d9dc157b', class: "zoom-buttons", direction: "column" }, h("dso-icon-button", { key: '23a699de08abec023e14fee7aaa82d88f29d26ed', label: this.text("zoomIn"), icon: "plus", variant: "map", tooltipPlacement: "left", onDsoClick: (e) => this.dsoZoomIn.emit(e.detail.originalEvent), disabled: this.disableZoom === "in" || this.disableZoom === "both" }), h("dso-icon-button", { key: '2b428ed044a22b08618c885ca96bc02efc3725a6', label: this.text("zoomOut"), icon: "minus", variant: "map", tooltipPlacement: "left", onDsoClick: (e) => this.dsoZoomOut.emit(e.detail.originalEvent), disabled: this.disableZoom === "out" || this.disableZoom === "both" })), h("section", { key: '92f97c6adc3e466ce3c8dfbcbf29e27a2e52c4c2', id: __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), hidden: this.hideContent, role: "region", onKeyDown: this.handlePanelKeyDown, "aria-labelledby": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f") }, h("header", { key: '405d312a529d19a98dd00696d92c077db17ac19f' }, h("h2", { key: '30c65729ec16d6cee9c164a6bd5b575e512110a7', id: __classPrivateFieldGet(this, _MapControls_mapLayersTitleId, "f"), tabIndex: -1 }, this.text("title")), h("dso-icon-button", { key: '00e944ddbf73a462704c048d740bbae2ccbf0aff', class: "close-button", label: this.text("hidePanel", { title: this.text("title") }), icon: "cross", variant: "tertiary", onDsoClick: (e) => this.toggleVisibility(e.detail.originalEvent), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeIconButtonElement, element, "f")) })), h("dso-scrollable", { key: '4caa8628d4af029f69f887b4434365c6cd9a5fd0' }, h("div", { key: '71f4998c5f3a8ac61bf13141648b699ead6eebec', class: "content" }, h("slot", { key: '7d2e87c33d999cb0f05594c7d2114896e991da4d' }))))));
105
+ return (h(Fragment, { key: 'df742112e2025fdbb83de9414b0d6ca52d997826' }, h("dso-icon-button", { key: '213c786fdd190c1c7d176d897cdce2ddce007f21', label: this.text("layersButton"), icon: "layers", variant: "map", "aria-controls": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), "aria-expanded": this.open, tooltipPlacement: "left", class: "toggle-visibility-icon-button", onDsoClick: (e) => this.toggleVisibilityInternal(e.detail.originalEvent, __classPrivateFieldGet(this, _MapControls_toggleIconButtonElement, "f")), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleIconButtonElement, element, "f")) }), h("button", { key: 'e08ce9dbbc17469f0cb103e38a6603b2f6752725', type: "button", class: "dso-map toggle-visibility-button", "aria-controls": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), "aria-expanded": this.open, onClick: (e) => this.toggleVisibilityInternal(e, __classPrivateFieldGet(this, _MapControls_toggleButtonElement, "f")), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { key: 'e22486c5b4ec4de15d389d4349c2c987cbabd760', icon: "layers" }), h("span", { key: '876c81f18078ad0f316d1d33883fd01aba0c1b65' }, this.text("layersButton"))), h("dso-button-group", { key: '411ee5039d8e818cbca28ed237d0d5c54ab0c463', class: "zoom-buttons", direction: "column" }, h("dso-icon-button", { key: 'ee2f5435b15e91beef74f20ade813801c2237b32', label: this.text("zoomIn"), icon: "plus", variant: "map", tooltipPlacement: "left", onDsoClick: (e) => this.dsoZoomIn.emit(e.detail.originalEvent), disabled: this.disableZoom === "in" || this.disableZoom === "both" }), h("dso-icon-button", { key: 'b51b4d38ecf01cdf1f414e0699c1809e86b7ff87', label: this.text("zoomOut"), icon: "minus", variant: "map", tooltipPlacement: "left", onDsoClick: (e) => this.dsoZoomOut.emit(e.detail.originalEvent), disabled: this.disableZoom === "out" || this.disableZoom === "both" })), h("section", { key: 'ad07928c1d78c7e562f792bba2b6c18ba401ce75', id: __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), hidden: this.hideContent, role: "region", onKeyDown: this.handlePanelKeyDown, "aria-labelledby": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f") }, h("header", { key: '462993fe80b521ea3c032940087a1240040d08ed' }, h("h2", { key: 'edf05e60556acaf9295f4a5f53edfe5f93759c7d', id: __classPrivateFieldGet(this, _MapControls_mapLayersTitleId, "f"), tabIndex: -1 }, this.text("title")), h("dso-icon-button", { key: '8883ececf16dee517102d9c27ca0cde32f412c78', class: "close-button", label: this.text("hidePanel", { title: this.text("title") }), icon: "cross", variant: "tertiary", onDsoClick: (e) => this.toggleVisibility(e.detail.originalEvent), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeIconButtonElement, element, "f")) })), h("dso-scrollable", { key: 'ee13b3dc2596f06e99bf0e48d1f080018f1bedca' }, h("div", { key: 'e79644ff58ff6408cbc2dd0e3f8cef853807619c', class: "content" }, h("slot", { key: 'c721808970823379205241f527b917ead66f9d15' }))))));
106
106
  }
107
107
  static get is() { return "dso-map-controls"; }
108
108
  static get encapsulation() { return "shadow"; }
@@ -16,7 +16,7 @@ export class MapLayerObject {
16
16
  };
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '4a130bd1a1101dcad1e43c85e726bc4762cc2d16', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h(WrapWijzigactie, { key: '8bde3a870b9f63b69b4a8b285ae8c44f4f517d75', wijzigactie: this.wijzigactie }, h("div", { key: 'af2e838d91f3fd8fd849b42d560a59f95bc24e5c', class: "map-layer-object" }, h("div", { key: '28e9e187fae2a6048b21e11156907ca0aa537ea8' }, h("slot", { key: '2fb126fd291605cdc6a09d5ca0d009fc80900b74', name: "symbol" })), h("div", { key: 'd087db42616613e59a3e2a41b494927104e8fa78', class: "map-layer-object-heading" }, h("slot", { key: '398ad1c5b2439277433426823ca657937a1fd6c7' }), h("slot", { key: 'a9574ab95912476198ae33632ba162eeacd55826', name: "label" })), h("div", { key: '3dc1f9f6367333ad6153ddbc6bcb7727dc24ddd0', class: "slide-toggle-container" }, h("dso-slide-toggle", { key: '5e7c704d4ba3723bc8468924666e56b057b95c24', accessibleLabel: "Toon op kaart", checked: this.active, onDsoActiveChange: this.handleActiveChange }))))));
19
+ return (h(Host, { key: '7fbc1ef74509e1b4f80d56905fa764a34a333740', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h(WrapWijzigactie, { key: '86a25068d41d0113456e7705b522d343e7642127', wijzigactie: this.wijzigactie }, h("div", { key: 'aa6678b819aa10f8a1c2cc8bca459aa95deac593', class: "map-layer-object" }, h("div", { key: '38fbefa271b39f82918dae41eb66b58492ba5574' }, h("slot", { key: '95385dd080311a6601799a49451fbed2830d8203', name: "symbol" })), h("div", { key: 'e35e66f79ee298235be738d265017f5cf1564559', class: "map-layer-object-heading" }, h("slot", { key: '2a99347bb68d8e5bffe168587042f3f601ac4456' }), h("slot", { key: '5105e4e49f5d644c70f09df20569ccca5c0e550a', name: "label" })), h("div", { key: 'b91932b72b31233927163885102039924098ad0c', class: "slide-toggle-container" }, h("dso-slide-toggle", { key: '9087cd162ea7434ee1d7f4b977cbb75b7a2ab4ef', accessibleLabel: "Toon op kaart", checked: this.active, onDsoActiveChange: this.handleActiveChange }))))));
20
20
  }
21
21
  static get is() { return "dso-map-layer-object"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -21,7 +21,7 @@ export class MapLayer {
21
21
  };
22
22
  }
23
23
  render() {
24
- return (h(WrapWijzigactie, { key: '5bfdcbb4e726f7a48f846bc26fd8364252c5099f', wijzigactie: this.wijzigactie }, h("div", { key: '291fb7fb2fcd0b1d44203a0dfb6bafaab9588e9f', class: "map-layer" }, h("div", { key: 'd08241709d892e3f77770a071fe9e9abe633610c', class: "map-layer-heading" }, h("slot", { key: '373fb22886af662822fcc8576103060037da6d6a', name: "name" }), h("slot", { key: 'b9157528d8d5503b93782a5e2c868e120ade98d0', name: "label" })), this.activatable && (h("div", { key: '76864f4729567483fc8a321fa17ae87b8bf2576f', class: "slide-toggle-container" }, h("dso-slide-toggle", { key: 'ea81c871f370e53e07e9e93f2f491e7d4f2d8a17', accessibleLabel: "Toon op kaart", checked: this.active, onDsoActiveChange: this.handleActiveChange })))), h("slot", { key: 'e27fe106577b51607e9cd347f2a70101063be38a' })));
24
+ return (h(WrapWijzigactie, { key: '58b032ccf7677ede268d977e40284fce488001cf', wijzigactie: this.wijzigactie }, h("div", { key: 'dfa603d5ff4e738955330e539cb27c04a06eb361', class: "map-layer" }, h("div", { key: 'd5b744910ec3ffbf76a1bc5e06c7c8a2862d7d33', class: "map-layer-heading" }, h("slot", { key: 'e52c97abb2ffd3dbeb8a1691567499d5b03628be', name: "name" }), h("slot", { key: 'f81a9b8d10970365dbc4a6d9e335cca4e2db6bd9', name: "label" })), this.activatable && (h("div", { key: 'db93351178c6ff143098d07bc1efb4aab486f97c', class: "slide-toggle-container" }, h("dso-slide-toggle", { key: 'ab49a0cfd4105c9133a1c50da4496fddee2550fe', accessibleLabel: "Toon op kaart", checked: this.active, onDsoActiveChange: this.handleActiveChange })))), h("slot", { key: 'a9b8d33ee9c50c461c136a392fd57f177f84302a' })));
25
25
  }
26
26
  static get is() { return "dso-map-layer"; }
27
27
  static get encapsulation() { return "shadow"; }
@@ -20,11 +20,11 @@ export class MapMessage {
20
20
  render() {
21
21
  const iconName = this.variant ? iconMap[this.variant] : undefined;
22
22
  const role = this.variant === "error" ? "alert" : "status";
23
- return (h("div", { key: '98874d9384751a63909661881b47e45c48064460', class: {
23
+ return (h("div", { key: 'c38f46748c57f3034e24cacaa91b5f792dab80dc', class: {
24
24
  "map-message-content": true,
25
25
  "has-icon": iconName !== undefined,
26
26
  "has-actions": this.hasActions,
27
- }, role: role, "aria-atomic": "true" }, h("div", { key: '879de5f62a08c908c2cb6e023a1cc054534abfbc', class: "map-message-body" }, iconName && h("dso-icon", { key: 'bddfe00fecdfa60884a456dd5193273a26b8f863', class: "map-message-icon", icon: iconName, "aria-hidden": "true" }), h("span", { key: '4eaab42391ac5d6f69f15e88e4226b34c132cf15', class: "map-message-text" }, h("slot", { key: 'e13b1386423352f0f4e60da14ad9454eeef9ffbf', name: "message" }))), h("slot", { key: '34ad7d7cc731b348d64cfb425728377c44888bef', name: "actions", onSlotchange: this.handleActionsSlotChange })));
27
+ }, role: role, "aria-atomic": "true" }, h("div", { key: 'ca8ee505450598fb4a8271fcd89a54b46d7ba1c3', class: "map-message-body" }, iconName && h("dso-icon", { key: '8de97522b21cd5138769c72d424724a9ae28a958', class: "map-message-icon", icon: iconName, "aria-hidden": "true" }), h("span", { key: '2c22435cc51763c2eb070d228bf1f7cd44d6b3a3', class: "map-message-text" }, h("slot", { key: '1a0dc7b8f5a5c1ffaaeffdbd5c0a74f3a6048640', name: "message" }))), h("slot", { key: '0c3387b08b5f8f0196f2d09bb6ac994cceace168', name: "actions", onSlotchange: this.handleActionsSlotChange })));
28
28
  }
29
29
  static get is() { return "dso-map-message"; }
30
30
  static get encapsulation() { return "shadow"; }
@@ -27,7 +27,7 @@ export class MapOverlays {
27
27
  for (const ref in this.selectableRefs) {
28
28
  delete this.selectableRefs[ref];
29
29
  }
30
- return (h("fieldset", { key: '0a39e720ffb64020c4945522c9cf73c2ac34654d', class: "form-group dso-checkboxes" }, h("legend", { key: '2897cece9bec007a875eec269ed789583d75d5c9', class: "sr-only" }, "Kaartlagen"), h("div", { key: '5c08fc7d22478ddf09c4d4b655fbd7d8adc05967', class: "dso-label-container" }, h("span", { key: '9020955add0be098ba539f897133ce75c4369dab', class: "control-label", "aria-hidden": "true" }, this.text("title"))), h("div", { key: '1d46b41897948867eed4b95f2feb81f7bee548e7', class: "dso-field-container" }, this.overlays.map((overlay) => (h("dso-selectable", { key: overlay.id, type: "checkbox", value: overlay.name, checked: overlay.checked, disabled: overlay.disabled, name: this.group, ref: (ref) => ref && (this.selectableRefs[overlay.id] = ref), onDsoChange: (e) => this.overlayChangeHandler(overlay, e) }, overlay.name, overlay.info ? h("p", { slot: "info" }, overlay.info) : null))))));
30
+ return (h("fieldset", { key: 'b875d9db957b7c85aff87f3ef79e90b65e20a548', class: "form-group dso-checkboxes" }, h("legend", { key: '31dcc45e2cb253ca78990d097a40fa23fecfeb37', class: "sr-only" }, "Kaartlagen"), h("div", { key: '9072cd6b8adb0fe47558e775caa34168cb10ff57', class: "dso-label-container" }, h("span", { key: '70f1ee5af74eddfb45b06e00692842c6222c5ec7', class: "control-label", "aria-hidden": "true" }, this.text("title"))), h("div", { key: 'd7180472b4d9d63a652b00b6dd2a9382f888f450', class: "dso-field-container" }, this.overlays.map((overlay) => (h("dso-selectable", { key: overlay.id, type: "checkbox", value: overlay.name, checked: overlay.checked, disabled: overlay.disabled, name: this.group, ref: (ref) => ref && (this.selectableRefs[overlay.id] = ref), onDsoChange: (e) => this.overlayChangeHandler(overlay, e) }, overlay.name, overlay.info ? h("p", { slot: "info" }, overlay.info) : null))))));
31
31
  }
32
32
  static get is() { return "dso-map-overlays"; }
33
33
  static get encapsulation() { return "shadow"; }
@@ -41,7 +41,7 @@ export class MarkBar {
41
41
  render() {
42
42
  const current = this.current || 0;
43
43
  const totalCount = this.totalCount || 0;
44
- return (h("div", { key: 'e14eec6ad6de8fa15819ab39fb1830eb49a55b38', class: "dso-mark-bar" }, h("div", { key: 'e1d4c20bc0b5d73596ce9daa35eb271e1b812498', class: "dso-mark-bar-input" }, h("input", { key: '349d818a4be946b75177c7652de4de810e1ada46', type: "text", id: "search-input", value: this.value, onInput: this.handleInput, onKeyDown: this.handleKeyDown, placeholder: " ", ref: (element) => (this.inputElement = element) }), h("label", { key: 'c62c0fe8c75261d764cc9d82942f38b040dd4db6', htmlFor: "search-input" }, h("dso-icon", { key: '4baa4aa80cf1f28cc244883b39c1302e99930ae3', class: "dso-search-icon", icon: "search" }), h("span", { key: '888e55f0beb7a0c7aa7d75ccd81b21d0894d315f', class: "label-text" }, this.label)), h("dso-icon-button", { key: '29a349369cce850b7383262722e1912901d8c2e4', icon: "cross", variant: "tertiary", label: "Zoekopdracht legen", onDsoClick: (e) => this.handleClear(e.detail.originalEvent) })), h("div", { key: 'af99215c7547c8c56941775b94d6491e2ff322a2', class: "dso-button-container" }, h("span", { key: '7f9a71a536f903628d9108d1df3a5086efa0ec47', class: "divider" }), h("dso-icon-button", { key: '9319ba0b23ae0a15c195cb4e9f787528e0fbb706', icon: "chevron-up", variant: "tertiary", label: `Vorig zoekresultaat ${current - 1}/${totalCount}`, onDsoClick: (e) => this.handlePrevious(e.detail.originalEvent), disabled: current <= 1 }), h("span", { key: 'f2b4107a4f482406348532a94a61d23b21f8a29a', role: "status" }, current, "/", totalCount), h("dso-icon-button", { key: '70b698aeedf87fbd9ffa1fe4a8143703a99fbd63', icon: "chevron-down", variant: "tertiary", label: `Volgend zoekresultaat ${current + 1}/${totalCount}`, onDsoClick: (e) => this.handleNext(e.detail.originalEvent), disabled: current >= totalCount }))));
44
+ return (h("div", { key: '7818d8f7762b007d1dbc90b657f9673ab42c0234', class: "dso-mark-bar" }, h("div", { key: '01a6513b3af2f365472421554c6a2442c8f61a73', class: "dso-mark-bar-input" }, h("input", { key: '1580d1b4d30542d1ff3b12dd0551249871db145b', type: "text", id: "search-input", value: this.value, onInput: this.handleInput, onKeyDown: this.handleKeyDown, placeholder: " ", ref: (element) => (this.inputElement = element) }), h("label", { key: 'd6d87a36588e949b524214fa45dda0ee7962a031', htmlFor: "search-input" }, h("dso-icon", { key: '5fa410193b67370970cda0690c574f482a47a95d', class: "dso-search-icon", icon: "search" }), h("span", { key: '001a6eb612430876e7757cbe98ba9efd326bf19f', class: "label-text" }, this.label)), h("dso-icon-button", { key: '7ae27f8d2a5be8bc0ae59f30e036a9089c0cebcb', icon: "cross", variant: "tertiary", label: "Zoekopdracht legen", onDsoClick: (e) => this.handleClear(e.detail.originalEvent) })), h("div", { key: '3640ab6ad6b59223bd5fa02543e4eff19b25d7d0', class: "dso-button-container" }, h("span", { key: '580893adcea6d950a262e32911a1cfc9c16fb25b', class: "divider" }), h("dso-icon-button", { key: '16533f6d69a10f68b7c7773087ce8a8fe11bfa17', icon: "chevron-up", variant: "tertiary", label: `Vorig zoekresultaat ${current - 1}/${totalCount}`, onDsoClick: (e) => this.handlePrevious(e.detail.originalEvent), disabled: current <= 1 }), h("span", { key: 'b70d11b9693c5204137fefac12660589d1f8a3c4', role: "status" }, current, "/", totalCount), h("dso-icon-button", { key: 'a55ad1bfb0d5cf583be81f83abc66fe64af4881a', icon: "chevron-down", variant: "tertiary", label: `Volgend zoekresultaat ${current + 1}/${totalCount}`, onDsoClick: (e) => this.handleNext(e.detail.originalEvent), disabled: current >= totalCount }))));
45
45
  }
46
46
  static get is() { return "dso-mark-bar"; }
47
47
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,4 @@
1
+ import { h } from "@stencil/core";
2
+ export const Body = () => {
3
+ return (h("div", { class: "dso-body", tabIndex: 0 }, h("slot", { name: "body" })));
4
+ };
@@ -0,0 +1,4 @@
1
+ import { h } from "@stencil/core";
2
+ export const Footer = () => {
3
+ return (h("div", { class: "dso-footer" }, h("slot", { name: "footer" })));
4
+ };
@@ -0,0 +1,4 @@
1
+ import { h } from "@stencil/core";
2
+ export const Header = ({ modalTitle, closable, ariaId, text, dsoClose }) => {
3
+ return modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: ariaId }, modalTitle), closable && (h("dso-icon-button", { id: "close-modal", icon: "cross", variant: "tertiary", label: text("close"), onDsoClick: (e) => dsoClose.emit({ originalEvent: e }) })))) : (h("span", { class: "sr-only", id: ariaId }, text("dialog")));
4
+ };
@@ -72,6 +72,7 @@ button {
72
72
  font: inherit;
73
73
  font-family: inherit;
74
74
  font-size: inherit;
75
+ letter-spacing: inherit;
75
76
  line-height: inherit;
76
77
  margin: 0;
77
78
  overflow: visible;
@@ -101,6 +102,14 @@ button::-moz-focus-inner {
101
102
  --_dso-button-after-button-margin-block-start: 8px;
102
103
  --_dso-button-text-align: center;
103
104
  }
105
+ .dso-modal .modal-scrollable {
106
+ display: flex;
107
+ flex-direction: column;
108
+ min-block-size: 100%;
109
+ }
110
+ .dso-modal .dso-body {
111
+ flex: 1 1 auto;
112
+ }
104
113
  }
105
114
  @media screen and (max-height: 380px) {
106
115
  .dso-modal {
@@ -196,6 +205,11 @@ button::-moz-focus-inner {
196
205
  max-block-size: var(--_dso-modal-body-max-block-size, calc(70vh - 144px - 1.5em));
197
206
  min-block-size: 6.5rem;
198
207
  }
208
+ @media screen and (min-width: 480px) and (max-width: 767px) {
209
+ .dso-modal > .dso-dialog > dso-scrollable.narrow {
210
+ max-block-size: var(--_dso-modal-body-max-block-size, calc(100vh - 32px));
211
+ }
212
+ }
199
213
  .dso-modal > .dso-dialog > dso-scrollable .dso-body p {
200
214
  margin-block: 0 var(--_dso-rich-content-margin-block, 16px);
201
215
  margin-inline: 0;
@@ -1,13 +1,19 @@
1
- import { h } from "@stencil/core";
1
+ import { Fragment, h } from "@stencil/core";
2
2
  import { v4 } from "uuid";
3
3
  import { getActiveElement } from "../../utils/get-active-element";
4
4
  import { i18n } from "../../utils/i18n";
5
+ import { Body } from "./functional-components/body";
6
+ import { Footer } from "./functional-components/footer";
7
+ import { Header } from "./functional-components/header";
5
8
  import { translations } from "./modal.i18n";
6
9
  export class Modal {
7
10
  constructor() {
8
11
  this.startedMouseDownOutsideDialog = false;
9
12
  this.endedMouseUpOutsideDialog = false;
13
+ this.narrowViewBreakpoint = 768;
14
+ this.mediaCondition = `(min-width: ${this.narrowViewBreakpoint}px)`;
10
15
  this.ariaId = v4();
16
+ this.narrowView = window.innerWidth < this.narrowViewBreakpoint;
11
17
  /**
12
18
  * the role for the modal `dialog` | `alert` | `alertdialog`.
13
19
  */
@@ -27,6 +33,7 @@ export class Modal {
27
33
  */
28
34
  this.closable = false;
29
35
  this.text = i18n(() => this.host, translations);
36
+ this.changeListener = (largeScreen) => (this.narrowView = !largeScreen.matches);
30
37
  this.blockEscapeKey = (e) => {
31
38
  if (e.key === "Escape") {
32
39
  e.preventDefault();
@@ -48,7 +55,11 @@ export class Modal {
48
55
  this.htmlDialogElement.showModal();
49
56
  }
50
57
  }
58
+ connectedCallback() {
59
+ window.matchMedia(this.mediaCondition).addEventListener("change", this.changeListener);
60
+ }
51
61
  disconnectedCallback() {
62
+ window.matchMedia(this.mediaCondition).removeEventListener("change", this.changeListener);
52
63
  this.htmlDialogElement?.close();
53
64
  if (this.returnFocus === false) {
54
65
  return;
@@ -70,7 +81,7 @@ export class Modal {
70
81
  }
71
82
  }
72
83
  render() {
73
- return (h("dialog", { key: '7674d533c3fc1221e4f6b068f5a67354b63c36a6', class: "dso-modal", role: this.dialogRole ?? undefined, "aria-modal": "true", "aria-labelledby": this.ariaId, ref: (element) => (this.htmlDialogElement = element), onMouseDown: (e) => this.handleDialogMouseDown(e), onMouseUp: (e) => this.handleDialogMouseUp(e), onClick: (e) => this.handleDialogClick(e), onKeyDown: (e) => this.blockEscapeKey(e) }, h("div", { key: '65c3955ab2701ea990393b40956b5432a7ac273d', class: "dso-dialog" }, this.modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: this.ariaId }, this.modalTitle), this.closable && (h("dso-icon-button", { id: "close-modal", icon: "cross", variant: "tertiary", label: this.text("close"), onDsoClick: (e) => this.dsoClose.emit({ originalEvent: e }) })))) : (h("span", { class: "sr-only", id: this.ariaId }, this.text("dialog"))), h("dso-scrollable", { key: '827512bb8a6039edb7bb6f8f62869f125afabac0' }, h("div", { key: 'ba0044a6743cc7ed8538d4979671c1d1ef795cf6', class: "dso-body", tabIndex: 0 }, h("slot", { key: '275d29d60dc4ced698265c179a260bb3b59b4719', name: "body" }))), this.hasFooter && (h("div", { key: 'f5976fc74d442fdaa68caf85bc1eac989483034c', class: "dso-footer" }, h("slot", { key: 'f7f7eafab9d1c81a09a8103bc76baf9d87c40914', name: "footer" }))))));
84
+ return (h("dialog", { key: '5bf0dd2d3c65fbd1590b96bbe92838076246f507', class: "dso-modal", role: this.dialogRole ?? undefined, "aria-modal": "true", "aria-labelledby": this.ariaId, ref: (element) => (this.htmlDialogElement = element), onMouseDown: (e) => this.handleDialogMouseDown(e), onMouseUp: (e) => this.handleDialogMouseUp(e), onClick: (e) => this.handleDialogClick(e), onKeyDown: (e) => this.blockEscapeKey(e) }, h("div", { key: '42ca0a18d4e91eaa6e78739b20deb5bc11281599', class: "dso-dialog" }, this.narrowView ? (h("dso-scrollable", { class: "narrow" }, h("div", { class: "modal-scrollable" }, h(Header, { modalTitle: this.modalTitle, closable: this.closable, ariaId: this.ariaId, text: this.text, dsoClose: this.dsoClose }), h(Body, null), this.hasFooter && h(Footer, null)))) : (h(Fragment, null, h(Header, { modalTitle: this.modalTitle, closable: this.closable, ariaId: this.ariaId, text: this.text, dsoClose: this.dsoClose }), h("dso-scrollable", null, h(Body, null)), this.hasFooter && h(Footer, null))))));
74
85
  }
75
86
  static get is() { return "dso-modal"; }
76
87
  static get encapsulation() { return "shadow"; }
@@ -193,7 +204,8 @@ export class Modal {
193
204
  }
194
205
  static get states() {
195
206
  return {
196
- "ariaId": {}
207
+ "ariaId": {},
208
+ "narrowView": {}
197
209
  };
198
210
  }
199
211
  static get events() {
@@ -65,7 +65,7 @@ export class OnboardingTip {
65
65
  }
66
66
  render() {
67
67
  const ariaLabel = this.headingSlottedElement?.textContent;
68
- return (h(Host, { key: 'dd28aba6c94e69bce7dd91e8c3bef5327d8f84dd', popover: "manual", ready: this.ready, onAnimationend: () => (this.ready = true) }, h("div", { key: '5db73647f2c75eda6bfabda1c5c850c7fbc025ea', role: "dialog", class: "onboarding-tip", "aria-label": ariaLabel, onKeyDown: this.blockEscapeKey, tabindex: -1 }, h("div", { key: 'e694e750218315308f99e58c8ff00ac2a65529da', class: "onboarding-tip-inner" }, h("div", { key: 'a36d26c91664b584496c2d6a02bd8a3b5782d7f6', class: "onboarding-tip-content-wrapper" }, this.headingSlottedElement !== null && (h("div", { key: '594b2fe2727c65e0c8f8b4148e5271d40e57df72', class: "onboarding-tip-content-heading" }, h("dso-icon", { key: 'a682d1907a1f699c768a9663827f350d82391591', icon: "light-bulb" }), h("slot", { key: 'c968e81733173c04d8eda1fdbd94cba1c5ef4dcc', name: "heading" }))), h("dso-icon-button", { key: 'd584bee8fdb9f9d36d2fd30f453c4184f79223ba', class: "dso-close", label: "Sluiten", variant: "tertiary", icon: "cross", onDsoClick: (e) => this.dsoClose.emit({ originalEvent: e }) }), h("slot", { key: 'b9c2fe589a242f41db9df0a55dfa105a7b32c941' }))), h("div", { key: '22b2b1623a525cc7ebf6d6873fdd623afdfedd22', class: "onboarding-tip-arrow", ref: (ref) => (this.tipArrowRef = ref) }))));
68
+ return (h(Host, { key: 'efa9562670f37b9c3fcc4fdf23a0437a50adf481', popover: "manual", ready: this.ready, onAnimationend: () => (this.ready = true) }, h("div", { key: '3773eeb116a6649e3d148e3834b52b22df30ed54', role: "dialog", class: "onboarding-tip", "aria-label": ariaLabel, onKeyDown: this.blockEscapeKey, tabindex: -1 }, h("div", { key: '8fa8ac6f8dea236497cf48bc3c51a9b61de0f734', class: "onboarding-tip-inner" }, h("div", { key: '0a58c5f7a0d96730dbad3672ceef6ee5422ecb34', class: "onboarding-tip-content-wrapper" }, this.headingSlottedElement !== null && (h("div", { key: 'c29e53b3c90fab777a516997ca772751c55d12bb', class: "onboarding-tip-content-heading" }, h("dso-icon", { key: '6c8adde6c36ae5f1c9637286d59d6c0e58d4c940', icon: "light-bulb" }), h("slot", { key: 'bf42aadbcd8b94a339924a87325699f09b93c995', name: "heading" }))), h("dso-icon-button", { key: '7a2e502fa17df9ceac99610702237d37b6806408', class: "dso-close", label: "Sluiten", variant: "tertiary", icon: "cross", onDsoClick: (e) => this.dsoClose.emit({ originalEvent: e }) }), h("slot", { key: 'b584371b8e75e573b661df4b903c922d9c8f1682' }))), h("div", { key: 'c8a90fd4fcff76340bfaa7f7c89b388b7599e726', class: "onboarding-tip-arrow", ref: (ref) => (this.tipArrowRef = ref) }))));
69
69
  }
70
70
  get headingSlottedElement() {
71
71
  return this.host.querySelector("[slot='heading']");