@dso-toolkit/core 62.19.0 → 62.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/dist/cjs/dso-accordion-section.cjs.entry.js +2 -2
  2. package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/dso-action-list-item.cjs.entry.js +2 -2
  4. package/dist/cjs/dso-action-list-item.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-advanced-select.cjs.entry.js +2 -2
  7. package/dist/cjs/dso-advanced-select.cjs.entry.js.map +1 -1
  8. package/dist/cjs/dso-alert_7.cjs.entry.js +55 -30
  9. package/dist/cjs/dso-alert_7.cjs.entry.js.map +1 -1
  10. package/dist/cjs/dso-annotation-output_3.cjs.entry.js +3 -3
  11. package/dist/cjs/dso-annotation-output_3.cjs.entry.js.map +1 -1
  12. package/dist/cjs/dso-attachments-counter.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-autosuggest.cjs.entry.js +1 -1
  14. package/dist/cjs/dso-banner.cjs.entry.js +2 -2
  15. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  16. package/dist/cjs/dso-card-container.cjs.entry.js.map +1 -1
  17. package/dist/cjs/dso-card.cjs.entry.js +2 -2
  18. package/dist/cjs/dso-card.cjs.entry.js.map +1 -1
  19. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +3 -3
  20. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js.map +1 -1
  21. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  22. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  23. package/dist/cjs/dso-expandable.cjs.entry.js +2 -2
  24. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
  25. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  26. package/dist/cjs/dso-highlight-box.cjs.entry.js.map +1 -1
  27. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
  29. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  30. package/dist/cjs/dso-info_2.cjs.entry.js.map +1 -1
  31. package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
  32. package/dist/cjs/dso-input-range.cjs.entry.js.map +1 -1
  33. package/dist/cjs/dso-legend-item.cjs.entry.js +46 -0
  34. package/dist/cjs/dso-legend-item.cjs.entry.js.map +1 -0
  35. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  36. package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
  37. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  38. package/dist/cjs/dso-logo.cjs.entry.js.map +1 -1
  39. package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
  40. package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
  41. package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
  42. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  43. package/dist/cjs/dso-modal.cjs.entry.js +2 -2
  44. package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
  45. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  46. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  47. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  48. package/dist/cjs/dso-scrollable.cjs.entry.js +2 -2
  49. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  50. package/dist/cjs/dso-toolkit.cjs.js +2 -2
  51. package/dist/cjs/dso-toolkit.cjs.js.map +1 -1
  52. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  53. package/dist/cjs/dso-tooltip.cjs.entry.js.map +1 -1
  54. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  55. package/dist/cjs/dso-viewer-grid.cjs.entry.js +1 -1
  56. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  57. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
  58. package/dist/cjs/dsot-document-component-demo.cjs.entry.js.map +1 -1
  59. package/dist/cjs/index-a58ba49d.js.map +1 -1
  60. package/dist/cjs/loader.cjs.js +1 -1
  61. package/dist/collection/collection-manifest.json +3 -2
  62. package/dist/collection/components/accordion/accordion.js +1 -1
  63. package/dist/collection/components/accordion/components/accordion-section.js +2 -2
  64. package/dist/collection/components/action-list/action-list.js +1 -1
  65. package/dist/collection/components/action-list/components/action-list-item.js +2 -2
  66. package/dist/collection/components/action-list/components/action-list-item.js.map +1 -1
  67. package/dist/collection/components/advanced-select/advanced-select.js +2 -2
  68. package/dist/collection/components/advanced-select/advanced-select.js.map +1 -1
  69. package/dist/collection/components/alert/alert.js +1 -1
  70. package/dist/collection/components/annotation-output/annotation-output.js +1 -1
  71. package/dist/collection/components/annotation-output/annotation-output.js.map +1 -1
  72. package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
  73. package/dist/collection/components/autosuggest/autosuggest.js +1 -1
  74. package/dist/collection/components/badge/badge.js +1 -1
  75. package/dist/collection/components/banner/banner.js +2 -2
  76. package/dist/collection/components/card/card.js +2 -2
  77. package/dist/collection/components/card/card.js.map +1 -1
  78. package/dist/collection/components/card-container/card-container.js +1 -1
  79. package/dist/collection/components/card-container/card-container.js.map +1 -1
  80. package/dist/collection/components/date-picker/date-picker.js +1 -1
  81. package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +3 -3
  82. package/dist/collection/components/document-component/document-component.js +1 -1
  83. package/dist/collection/components/document-component/document-component.js.map +1 -1
  84. package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
  85. package/dist/collection/components/document-component-demo/document-component.demo.js.map +1 -1
  86. package/dist/collection/components/dropdown-menu/dropdown-menu.js +1 -1
  87. package/dist/collection/components/expandable/expandable.js +2 -2
  88. package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +2 -2
  89. package/dist/collection/components/highlight-box/highlight-box.js +1 -1
  90. package/dist/collection/components/highlight-box/highlight-box.js.map +1 -1
  91. package/dist/collection/components/icon/icon.js +1 -1
  92. package/dist/collection/components/info/info.js +1 -1
  93. package/dist/collection/components/info/info.js.map +1 -1
  94. package/dist/collection/components/info-button/info-button.js +1 -1
  95. package/dist/collection/components/input-range/input-range.js +2 -2
  96. package/dist/collection/components/input-range/input-range.js.map +1 -1
  97. package/dist/collection/components/label/label.js +3 -3
  98. package/dist/collection/components/label/label.js.map +1 -1
  99. package/dist/collection/components/legend-item/legend-item.css +104 -0
  100. package/dist/collection/components/legend-item/legend-item.interfaces.js +2 -0
  101. package/dist/collection/components/legend-item/legend-item.interfaces.js.map +1 -0
  102. package/dist/collection/components/legend-item/legend-item.js +162 -0
  103. package/dist/collection/components/legend-item/legend-item.js.map +1 -0
  104. package/dist/collection/components/list-button/list-button.js +1 -1
  105. package/dist/collection/components/list-button/list-button.js.map +1 -1
  106. package/dist/collection/components/logo/logo.js +1 -1
  107. package/dist/collection/components/logo/logo.js.map +1 -1
  108. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  109. package/dist/collection/components/map-controls/map-controls.js +1 -1
  110. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  111. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  112. package/dist/collection/components/modal/modal.js +2 -2
  113. package/dist/collection/components/modal/modal.js.map +1 -1
  114. package/dist/collection/components/ozon-content/functional-components/wrap-wijzigactie.functional-component.js +11 -0
  115. package/dist/collection/components/ozon-content/functional-components/wrap-wijzigactie.functional-component.js.map +1 -0
  116. package/dist/collection/components/ozon-content/functions/parse-wijzigactie-from-node.function.js +5 -0
  117. package/dist/collection/components/ozon-content/functions/parse-wijzigactie-from-node.function.js.map +1 -0
  118. package/dist/collection/components/ozon-content/functions/wijzigactie-to-class-name.function.js +10 -0
  119. package/dist/collection/components/ozon-content/functions/wijzigactie-to-class-name.function.js.map +1 -0
  120. package/dist/collection/components/ozon-content/nodes/al.node.js +6 -11
  121. package/dist/collection/components/ozon-content/nodes/al.node.js.map +1 -1
  122. package/dist/collection/components/ozon-content/nodes/lijst.node.js +14 -4
  123. package/dist/collection/components/ozon-content/nodes/lijst.node.js.map +1 -1
  124. package/dist/collection/components/ozon-content/ozon-content.css +23 -2
  125. package/dist/collection/components/ozon-content/ozon-content.interfaces.js.map +1 -1
  126. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  127. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  128. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  129. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  130. package/dist/collection/components/scrollable/scrollable.js +2 -2
  131. package/dist/collection/components/selectable/selectable.js +1 -1
  132. package/dist/collection/components/selectable/selectable.js.map +1 -1
  133. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  134. package/dist/collection/components/slide-toggle/slide-toggle.js.map +1 -1
  135. package/dist/collection/components/table/table.js +1 -1
  136. package/dist/collection/components/table/table.js.map +1 -1
  137. package/dist/collection/components/toggletip/toggletip.js +1 -1
  138. package/dist/collection/components/tooltip/tooltip.js +1 -1
  139. package/dist/collection/components/tooltip/tooltip.js.map +1 -1
  140. package/dist/collection/components/tree-view/tree-view.js +1 -1
  141. package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
  142. package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
  143. package/dist/components/alert.js +1 -1
  144. package/dist/components/annotation-output.js +1 -1
  145. package/dist/components/annotation-output.js.map +1 -1
  146. package/dist/components/attachments-counter.js +1 -1
  147. package/dist/components/badge.js +1 -1
  148. package/dist/components/document-component.js +1 -1
  149. package/dist/components/document-component.js.map +1 -1
  150. package/dist/components/dropdown-menu.js +1 -1
  151. package/dist/components/dso-accordion-section.js +2 -2
  152. package/dist/components/dso-accordion.js +1 -1
  153. package/dist/components/dso-action-list-item.js +2 -2
  154. package/dist/components/dso-action-list-item.js.map +1 -1
  155. package/dist/components/dso-action-list.js +1 -1
  156. package/dist/components/dso-advanced-select.js +2 -2
  157. package/dist/components/dso-advanced-select.js.map +1 -1
  158. package/dist/components/dso-autosuggest.js +1 -1
  159. package/dist/components/dso-banner.js +2 -2
  160. package/dist/components/dso-card-container.js +1 -1
  161. package/dist/components/dso-card-container.js.map +1 -1
  162. package/dist/components/dso-card.js +2 -2
  163. package/dist/components/dso-card.js.map +1 -1
  164. package/dist/components/dso-date-picker-legacy.js +3 -3
  165. package/dist/components/dso-date-picker-legacy.js.map +1 -1
  166. package/dist/components/dso-date-picker.js +1 -1
  167. package/dist/components/dso-helpcenter-panel.js +2 -2
  168. package/dist/components/dso-highlight-box.js +1 -1
  169. package/dist/components/dso-highlight-box.js.map +1 -1
  170. package/dist/components/dso-input-range.js +2 -2
  171. package/dist/components/dso-input-range.js.map +1 -1
  172. package/dist/components/dso-legend-item.d.ts +11 -0
  173. package/dist/components/dso-legend-item.js +89 -0
  174. package/dist/components/dso-legend-item.js.map +1 -0
  175. package/dist/components/dso-list-button.js +1 -1
  176. package/dist/components/dso-list-button.js.map +1 -1
  177. package/dist/components/dso-logo.js +1 -1
  178. package/dist/components/dso-logo.js.map +1 -1
  179. package/dist/components/dso-map-base-layers.js +1 -1
  180. package/dist/components/dso-map-controls.js +1 -1
  181. package/dist/components/dso-map-overlays.js +1 -1
  182. package/dist/components/dso-mark-bar.js +1 -1
  183. package/dist/components/dso-modal.js +2 -2
  184. package/dist/components/dso-modal.js.map +1 -1
  185. package/dist/components/dso-progress-bar.js +1 -1
  186. package/dist/components/dso-toggletip.js +1 -86
  187. package/dist/components/dso-toggletip.js.map +1 -1
  188. package/dist/components/dso-tree-view.js +1 -1
  189. package/dist/components/dso-viewer-grid.js +1 -1
  190. package/dist/components/dso-viewer-grid.js.map +1 -1
  191. package/dist/components/dsot-document-component-demo.js +1 -1
  192. package/dist/components/dsot-document-component-demo.js.map +1 -1
  193. package/dist/components/expandable.js +2 -2
  194. package/dist/components/icon.js +1 -1
  195. package/dist/components/index.d.ts +2 -0
  196. package/dist/components/index.js +1 -0
  197. package/dist/components/index.js.map +1 -1
  198. package/dist/components/info-button.js +1 -1
  199. package/dist/components/info.js +1 -1
  200. package/dist/components/info.js.map +1 -1
  201. package/dist/components/label.js +3 -3
  202. package/dist/components/label.js.map +1 -1
  203. package/dist/components/ozon-content.js +49 -24
  204. package/dist/components/ozon-content.js.map +1 -1
  205. package/dist/components/progress-indicator.js +1 -1
  206. package/dist/components/responsive-element.js +1 -1
  207. package/dist/components/scrollable.js +2 -2
  208. package/dist/components/selectable.js +1 -1
  209. package/dist/components/selectable.js.map +1 -1
  210. package/dist/components/slide-toggle.js +1 -1
  211. package/dist/components/slide-toggle.js.map +1 -1
  212. package/dist/components/table.js +1 -1
  213. package/dist/components/table.js.map +1 -1
  214. package/dist/components/toggletip.js +90 -0
  215. package/dist/components/toggletip.js.map +1 -0
  216. package/dist/components/tooltip.js +1 -1
  217. package/dist/components/tooltip.js.map +1 -1
  218. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  219. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  220. package/dist/dso-toolkit/p-0142294a.entry.js +2 -0
  221. package/dist/dso-toolkit/p-0142294a.entry.js.map +1 -0
  222. package/dist/dso-toolkit/{p-69e2f1a3.entry.js → p-0308135a.entry.js} +2 -2
  223. package/dist/dso-toolkit/{p-69e2f1a3.entry.js.map → p-0308135a.entry.js.map} +1 -1
  224. package/dist/dso-toolkit/{p-590c98cb.entry.js → p-0bb4a95b.entry.js} +2 -2
  225. package/dist/dso-toolkit/{p-590c98cb.entry.js.map → p-0bb4a95b.entry.js.map} +1 -1
  226. package/dist/dso-toolkit/{p-b8be68cd.entry.js → p-0bbdb3e7.entry.js} +2 -2
  227. package/dist/dso-toolkit/{p-d6fa20f7.entry.js → p-0c1b34f6.entry.js} +2 -2
  228. package/dist/dso-toolkit/{p-d6fa20f7.entry.js.map → p-0c1b34f6.entry.js.map} +1 -1
  229. package/dist/dso-toolkit/p-10d464fa.entry.js +2 -0
  230. package/dist/dso-toolkit/{p-9f9ed7fc.entry.js → p-1cb9cd71.entry.js} +2 -2
  231. package/dist/dso-toolkit/{p-9f9ed7fc.entry.js.map → p-1cb9cd71.entry.js.map} +1 -1
  232. package/dist/dso-toolkit/{p-05115f40.entry.js → p-1f66a719.entry.js} +2 -2
  233. package/dist/dso-toolkit/{p-00f36d82.entry.js → p-28de6034.entry.js} +2 -2
  234. package/dist/dso-toolkit/{p-c435f94d.entry.js → p-435baefc.entry.js} +2 -2
  235. package/dist/dso-toolkit/{p-c435f94d.entry.js.map → p-435baefc.entry.js.map} +1 -1
  236. package/dist/dso-toolkit/{p-9579c352.entry.js → p-43bcfb18.entry.js} +2 -2
  237. package/dist/dso-toolkit/{p-9579c352.entry.js.map → p-43bcfb18.entry.js.map} +1 -1
  238. package/dist/dso-toolkit/{p-8a41761d.entry.js → p-4eaf26e3.entry.js} +2 -2
  239. package/dist/dso-toolkit/{p-0df15acb.entry.js → p-5028d1e1.entry.js} +2 -2
  240. package/dist/dso-toolkit/{p-171df922.entry.js → p-62ec675a.entry.js} +2 -2
  241. package/dist/dso-toolkit/{p-171df922.entry.js.map → p-62ec675a.entry.js.map} +1 -1
  242. package/dist/dso-toolkit/{p-ba1757f9.entry.js → p-64755e52.entry.js} +2 -2
  243. package/dist/dso-toolkit/{p-1543b25f.entry.js → p-64d88436.entry.js} +2 -2
  244. package/dist/dso-toolkit/{p-c3af1efc.entry.js → p-67480a2f.entry.js} +2 -2
  245. package/dist/dso-toolkit/{p-3b8f44b1.entry.js → p-6e7dcc0e.entry.js} +2 -2
  246. package/dist/dso-toolkit/{p-3b8f44b1.entry.js.map → p-6e7dcc0e.entry.js.map} +1 -1
  247. package/dist/dso-toolkit/p-701648d3.js.map +1 -1
  248. package/dist/dso-toolkit/{p-e1f82103.entry.js → p-7f5b0979.entry.js} +2 -2
  249. package/dist/dso-toolkit/{p-bf2ef44a.entry.js → p-86e80f9c.entry.js} +2 -2
  250. package/dist/dso-toolkit/{p-ffdcb2e4.entry.js → p-88b1db54.entry.js} +2 -2
  251. package/dist/dso-toolkit/p-906ae1e7.entry.js +2 -0
  252. package/dist/dso-toolkit/p-9709ff83.entry.js +2 -0
  253. package/dist/dso-toolkit/p-a00fb3ac.entry.js +2 -0
  254. package/dist/dso-toolkit/p-a00fb3ac.entry.js.map +1 -0
  255. package/dist/dso-toolkit/{p-ae783ec3.entry.js → p-b22757ab.entry.js} +2 -2
  256. package/dist/dso-toolkit/p-b51c4022.entry.js +2 -0
  257. package/dist/dso-toolkit/{p-e968c726.entry.js.map → p-b51c4022.entry.js.map} +1 -1
  258. package/dist/dso-toolkit/{p-0f1c1ad3.entry.js → p-b879c985.entry.js} +2 -2
  259. package/dist/dso-toolkit/{p-db0796f2.entry.js → p-bc3c966f.entry.js} +2 -2
  260. package/dist/dso-toolkit/p-bc95874a.entry.js +2 -0
  261. package/dist/dso-toolkit/{p-64ed1e16.entry.js.map → p-bc95874a.entry.js.map} +1 -1
  262. package/dist/dso-toolkit/{p-130c00f5.entry.js → p-bcc19bae.entry.js} +2 -2
  263. package/dist/dso-toolkit/{p-f3f23018.entry.js → p-bec5778a.entry.js} +2 -2
  264. package/dist/dso-toolkit/{p-f3f23018.entry.js.map → p-bec5778a.entry.js.map} +1 -1
  265. package/dist/dso-toolkit/{p-32e3c872.entry.js → p-c22965e0.entry.js} +2 -2
  266. package/dist/dso-toolkit/{p-32e3c872.entry.js.map → p-c22965e0.entry.js.map} +1 -1
  267. package/dist/dso-toolkit/p-cd466fa3.entry.js +2 -0
  268. package/dist/dso-toolkit/p-cd466fa3.entry.js.map +1 -0
  269. package/dist/dso-toolkit/{p-bb65ba35.entry.js → p-cef2a4da.entry.js} +2 -2
  270. package/dist/dso-toolkit/{p-bb65ba35.entry.js.map → p-cef2a4da.entry.js.map} +1 -1
  271. package/dist/dso-toolkit/{p-487a5da9.entry.js → p-dd9d670a.entry.js} +2 -2
  272. package/dist/dso-toolkit/{p-b73a27bc.entry.js → p-e3b54b03.entry.js} +2 -2
  273. package/dist/dso-toolkit/{p-3e0495a4.entry.js → p-e8648400.entry.js} +2 -2
  274. package/dist/dso-toolkit/p-e8ada03b.entry.js +2 -0
  275. package/dist/dso-toolkit/{p-889aa72f.entry.js.map → p-e8ada03b.entry.js.map} +1 -1
  276. package/dist/dso-toolkit/{p-0edf4492.entry.js → p-fbf6613f.entry.js} +2 -2
  277. package/dist/dso-toolkit/{p-0edf4492.entry.js.map → p-fbf6613f.entry.js.map} +1 -1
  278. package/dist/esm/dso-accordion-section.entry.js +2 -2
  279. package/dist/esm/dso-accordion.entry.js +1 -1
  280. package/dist/esm/dso-action-list-item.entry.js +2 -2
  281. package/dist/esm/dso-action-list-item.entry.js.map +1 -1
  282. package/dist/esm/dso-action-list.entry.js +1 -1
  283. package/dist/esm/dso-advanced-select.entry.js +2 -2
  284. package/dist/esm/dso-advanced-select.entry.js.map +1 -1
  285. package/dist/esm/dso-alert_7.entry.js +55 -30
  286. package/dist/esm/dso-alert_7.entry.js.map +1 -1
  287. package/dist/esm/dso-annotation-output_3.entry.js +3 -3
  288. package/dist/esm/dso-annotation-output_3.entry.js.map +1 -1
  289. package/dist/esm/dso-attachments-counter.entry.js +1 -1
  290. package/dist/esm/dso-autosuggest.entry.js +1 -1
  291. package/dist/esm/dso-banner.entry.js +2 -2
  292. package/dist/esm/dso-card-container.entry.js +1 -1
  293. package/dist/esm/dso-card-container.entry.js.map +1 -1
  294. package/dist/esm/dso-card.entry.js +2 -2
  295. package/dist/esm/dso-card.entry.js.map +1 -1
  296. package/dist/esm/dso-date-picker-legacy.entry.js +3 -3
  297. package/dist/esm/dso-date-picker-legacy.entry.js.map +1 -1
  298. package/dist/esm/dso-date-picker.entry.js +1 -1
  299. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  300. package/dist/esm/dso-expandable.entry.js +2 -2
  301. package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
  302. package/dist/esm/dso-highlight-box.entry.js +1 -1
  303. package/dist/esm/dso-highlight-box.entry.js.map +1 -1
  304. package/dist/esm/dso-icon.entry.js +1 -1
  305. package/dist/esm/dso-info-button.entry.js +1 -1
  306. package/dist/esm/dso-info_2.entry.js +2 -2
  307. package/dist/esm/dso-info_2.entry.js.map +1 -1
  308. package/dist/esm/dso-input-range.entry.js +2 -2
  309. package/dist/esm/dso-input-range.entry.js.map +1 -1
  310. package/dist/esm/dso-legend-item.entry.js +42 -0
  311. package/dist/esm/dso-legend-item.entry.js.map +1 -0
  312. package/dist/esm/dso-list-button.entry.js +1 -1
  313. package/dist/esm/dso-list-button.entry.js.map +1 -1
  314. package/dist/esm/dso-logo.entry.js +1 -1
  315. package/dist/esm/dso-logo.entry.js.map +1 -1
  316. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  317. package/dist/esm/dso-map-controls.entry.js +1 -1
  318. package/dist/esm/dso-map-overlays.entry.js +1 -1
  319. package/dist/esm/dso-mark-bar.entry.js +1 -1
  320. package/dist/esm/dso-modal.entry.js +2 -2
  321. package/dist/esm/dso-modal.entry.js.map +1 -1
  322. package/dist/esm/dso-progress-bar.entry.js +1 -1
  323. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  324. package/dist/esm/dso-responsive-element.entry.js +1 -1
  325. package/dist/esm/dso-scrollable.entry.js +2 -2
  326. package/dist/esm/dso-toggletip.entry.js +1 -1
  327. package/dist/esm/dso-toolkit.js +2 -2
  328. package/dist/esm/dso-toolkit.js.map +1 -1
  329. package/dist/esm/dso-tooltip.entry.js +1 -1
  330. package/dist/esm/dso-tooltip.entry.js.map +1 -1
  331. package/dist/esm/dso-tree-view.entry.js +1 -1
  332. package/dist/esm/dso-viewer-grid.entry.js +1 -1
  333. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  334. package/dist/esm/dsot-document-component-demo.entry.js +1 -1
  335. package/dist/esm/dsot-document-component-demo.entry.js.map +1 -1
  336. package/dist/esm/index-2e1b7388.js.map +1 -1
  337. package/dist/esm/loader.js +1 -1
  338. package/dist/types/components/legend-item/legend-item.d.ts +39 -0
  339. package/dist/types/components/legend-item/legend-item.interfaces.d.ts +3 -0
  340. package/dist/types/components/ozon-content/functional-components/wrap-wijzigactie.functional-component.d.ts +6 -0
  341. package/dist/types/components/ozon-content/functions/parse-wijzigactie-from-node.function.d.ts +2 -0
  342. package/dist/types/components/ozon-content/functions/wijzigactie-to-class-name.function.d.ts +2 -0
  343. package/dist/types/components/ozon-content/nodes/al.node.d.ts +1 -1
  344. package/dist/types/components/ozon-content/ozon-content.interfaces.d.ts +1 -0
  345. package/dist/types/components.d.ts +68 -0
  346. package/package.json +4 -4
  347. package/dist/dso-toolkit/p-30f09a47.entry.js +0 -2
  348. package/dist/dso-toolkit/p-3603f65a.entry.js +0 -2
  349. package/dist/dso-toolkit/p-3603f65a.entry.js.map +0 -1
  350. package/dist/dso-toolkit/p-535f755f.entry.js +0 -2
  351. package/dist/dso-toolkit/p-535f755f.entry.js.map +0 -1
  352. package/dist/dso-toolkit/p-64ed1e16.entry.js +0 -2
  353. package/dist/dso-toolkit/p-889aa72f.entry.js +0 -2
  354. package/dist/dso-toolkit/p-9f465136.entry.js +0 -2
  355. package/dist/dso-toolkit/p-a7ec3cce.entry.js +0 -2
  356. package/dist/dso-toolkit/p-e968c726.entry.js +0 -2
  357. /package/dist/dso-toolkit/{p-b8be68cd.entry.js.map → p-0bbdb3e7.entry.js.map} +0 -0
  358. /package/dist/dso-toolkit/{p-9f465136.entry.js.map → p-10d464fa.entry.js.map} +0 -0
  359. /package/dist/dso-toolkit/{p-05115f40.entry.js.map → p-1f66a719.entry.js.map} +0 -0
  360. /package/dist/dso-toolkit/{p-00f36d82.entry.js.map → p-28de6034.entry.js.map} +0 -0
  361. /package/dist/dso-toolkit/{p-8a41761d.entry.js.map → p-4eaf26e3.entry.js.map} +0 -0
  362. /package/dist/dso-toolkit/{p-0df15acb.entry.js.map → p-5028d1e1.entry.js.map} +0 -0
  363. /package/dist/dso-toolkit/{p-ba1757f9.entry.js.map → p-64755e52.entry.js.map} +0 -0
  364. /package/dist/dso-toolkit/{p-1543b25f.entry.js.map → p-64d88436.entry.js.map} +0 -0
  365. /package/dist/dso-toolkit/{p-c3af1efc.entry.js.map → p-67480a2f.entry.js.map} +0 -0
  366. /package/dist/dso-toolkit/{p-e1f82103.entry.js.map → p-7f5b0979.entry.js.map} +0 -0
  367. /package/dist/dso-toolkit/{p-bf2ef44a.entry.js.map → p-86e80f9c.entry.js.map} +0 -0
  368. /package/dist/dso-toolkit/{p-ffdcb2e4.entry.js.map → p-88b1db54.entry.js.map} +0 -0
  369. /package/dist/dso-toolkit/{p-a7ec3cce.entry.js.map → p-906ae1e7.entry.js.map} +0 -0
  370. /package/dist/dso-toolkit/{p-30f09a47.entry.js.map → p-9709ff83.entry.js.map} +0 -0
  371. /package/dist/dso-toolkit/{p-ae783ec3.entry.js.map → p-b22757ab.entry.js.map} +0 -0
  372. /package/dist/dso-toolkit/{p-0f1c1ad3.entry.js.map → p-b879c985.entry.js.map} +0 -0
  373. /package/dist/dso-toolkit/{p-db0796f2.entry.js.map → p-bc3c966f.entry.js.map} +0 -0
  374. /package/dist/dso-toolkit/{p-130c00f5.entry.js.map → p-bcc19bae.entry.js.map} +0 -0
  375. /package/dist/dso-toolkit/{p-487a5da9.entry.js.map → p-dd9d670a.entry.js.map} +0 -0
  376. /package/dist/dso-toolkit/{p-b73a27bc.entry.js.map → p-e3b54b03.entry.js.map} +0 -0
  377. /package/dist/dso-toolkit/{p-3e0495a4.entry.js.map → p-e8648400.entry.js.map} +0 -0
@@ -0,0 +1,162 @@
1
+ import { h, Host } from "@stencil/core";
2
+ import clsx from "clsx";
3
+ /**
4
+ * @slot - Either the label for this legend item or a `dso-selectable` holding the label.
5
+ * @slot symbol - A span where the symbol is styled upon
6
+ * @slot body - The slot to place controls in (i.e. `dso-input-range` or multiple `dso-selectable`\`s). If present, this will cause the appearance of an edit-button (three dots) to show the controls. Will not be displayed if property `disabled` is set to true.
7
+ */
8
+ export class LegendItem {
9
+ constructor() {
10
+ this.disabled = false;
11
+ this.disabledMessage = undefined;
12
+ this.removable = undefined;
13
+ this.showBody = false;
14
+ }
15
+ get symbolSlottedElement() {
16
+ return this.host.querySelector("[slot='symbol']");
17
+ }
18
+ get selectableSlottedElement() {
19
+ return this.host.querySelector(":scope > dso-selectable");
20
+ }
21
+ get bodySlottedElement() {
22
+ return this.host.querySelector("[slot='body']");
23
+ }
24
+ render() {
25
+ const hasSymbol = this.symbolSlottedElement !== null;
26
+ const hasBody = this.bodySlottedElement !== null;
27
+ const isSelectable = this.selectableSlottedElement !== null;
28
+ return (h(Host, { key: 'e50f1d84ed48c4fc88ebdf2d473ee0f67bec22fe', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h("div", { key: '98ccac5c97c900a0eefe58baa4d69747847b2fbf', class: clsx("legend-item", {
29
+ "legend-item-symbol": hasSymbol,
30
+ "legend-item-selectable": isSelectable,
31
+ }) }, h("div", { key: 'f73cdf97e65e6d50fd8c8e073c2abf902d148511', hidden: !hasSymbol }, h("slot", { key: 'd18b7efd00c137f3b9fe96b00eabbafe9f8c8ae1', name: "symbol" })), h("div", { key: '8a0a4212aa989367d869a949bba1984af4e3d2c1' }, h("slot", { key: '35285a0f129c3d0e64f5925b5e46e1d1246603fd' })), this.disabled && this.disabledMessage && (h("dso-toggletip", { key: '93727ab6ba53cd605b1a0df5a5d14b281653cef7', position: "bottom" }, this.disabledMessage)), this.removable && (h("button", { key: '5d72df7e74cc74cb2e5cdede86bace5129c97906', id: "remove-button", type: "button", onClick: (e) => this.dsoRemoveClick.emit({ originalEvent: e }) }, h("span", { key: '6cb45e90d3e30e709f6bed348ae29e2931c34f11', class: "sr-only" }, "Legenda item verwijderen"), h("dso-icon", { key: '3ec5613fc71e021bcaca961ab4d858f7aeb408c2', icon: "trash" }))), hasBody && !this.disabled && (h("button", { key: '690784310b84fa49590680db6b7ab42aec5e34e8', id: "edit-button", type: "button", onClick: () => (this.showBody = !this.showBody) }, h("span", { key: 'df9051dcd36487f51cbfb6014e4921ce405db3e3', class: "sr-only" }, "Legenda item aanpassen"), h("dso-icon", { key: '8d047e9c90f888a5b3a60c41829845bd1bcd0538', icon: this.showBody ? "times" : "more" })))), h("div", { key: '8f90acc7de95c518749e0cdbd100f38195911dbb', hidden: !hasBody || this.disabled || !this.showBody, class: "body" }, h("slot", { key: '9d743680ea76b8daec3ef131ca244603eba4a996', name: "body" }))));
32
+ }
33
+ static get is() { return "dso-legend-item"; }
34
+ static get encapsulation() { return "shadow"; }
35
+ static get originalStyleUrls() {
36
+ return {
37
+ "$": ["legend-item.scss"]
38
+ };
39
+ }
40
+ static get styleUrls() {
41
+ return {
42
+ "$": ["legend-item.css"]
43
+ };
44
+ }
45
+ static get properties() {
46
+ return {
47
+ "disabled": {
48
+ "type": "boolean",
49
+ "mutable": false,
50
+ "complexType": {
51
+ "original": "boolean",
52
+ "resolved": "boolean",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": "To disable the Legend Item"
60
+ },
61
+ "attribute": "disabled",
62
+ "reflect": true,
63
+ "defaultValue": "false"
64
+ },
65
+ "disabledMessage": {
66
+ "type": "string",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "string",
70
+ "resolved": "string | undefined",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": true,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Message to be shown behind a toggletip when the Legend Item is disabled"
78
+ },
79
+ "attribute": "disabled-message",
80
+ "reflect": false
81
+ },
82
+ "removable": {
83
+ "type": "boolean",
84
+ "mutable": false,
85
+ "complexType": {
86
+ "original": "boolean",
87
+ "resolved": "boolean | undefined",
88
+ "references": {}
89
+ },
90
+ "required": false,
91
+ "optional": true,
92
+ "docs": {
93
+ "tags": [],
94
+ "text": "Shows a trash-can that, when clicked, emits `dsoRemoveClick`."
95
+ },
96
+ "attribute": "removable",
97
+ "reflect": false
98
+ }
99
+ };
100
+ }
101
+ static get states() {
102
+ return {
103
+ "showBody": {}
104
+ };
105
+ }
106
+ static get events() {
107
+ return [{
108
+ "method": "dsoRemoveClick",
109
+ "name": "dsoRemoveClick",
110
+ "bubbles": true,
111
+ "cancelable": true,
112
+ "composed": true,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": "Emitted when the user activates the remove button."
116
+ },
117
+ "complexType": {
118
+ "original": "LegendItemRemoveClickEvent",
119
+ "resolved": "LegendItemRemoveClickEvent",
120
+ "references": {
121
+ "LegendItemRemoveClickEvent": {
122
+ "location": "import",
123
+ "path": "./legend-item.interfaces",
124
+ "id": "src/components/legend-item/legend-item.interfaces.tsx::LegendItemRemoveClickEvent"
125
+ }
126
+ }
127
+ }
128
+ }, {
129
+ "method": "dsoMouseEnter",
130
+ "name": "dsoMouseEnter",
131
+ "bubbles": true,
132
+ "cancelable": true,
133
+ "composed": true,
134
+ "docs": {
135
+ "tags": [],
136
+ "text": "Emitted when the mouse enters the Legend Item"
137
+ },
138
+ "complexType": {
139
+ "original": "any",
140
+ "resolved": "any",
141
+ "references": {}
142
+ }
143
+ }, {
144
+ "method": "dsoMouseLeave",
145
+ "name": "dsoMouseLeave",
146
+ "bubbles": true,
147
+ "cancelable": true,
148
+ "composed": true,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": "Emitted when the mouse leaves the Legend Item"
152
+ },
153
+ "complexType": {
154
+ "original": "any",
155
+ "resolved": "any",
156
+ "references": {}
157
+ }
158
+ }];
159
+ }
160
+ static get elementRef() { return "host"; }
161
+ }
162
+ //# sourceMappingURL=legend-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legend-item.js","sourceRoot":"","sources":["../../../../src/components/legend-item/legend-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClH,OAAO,IAAI,MA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AC,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;oBACrG,6DAAM,KAAK,EAAC,SAAS,+BAAgC;oBACrD,iEAAU,IAAI,EAAC,OAAO,GAAY,CAC3B,CACV;gBAEA,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAC5B,+DAAQ,EAAE,EAAC,aAAa,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACpF,6DAAM,KAAK,EAAC,SAAS,6BAA8B;oBACnD,iEAAU,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,GAAI,CAC7C,CACV,CACG;YACN,4DAAK,MAAM,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,MAAM;gBACpE,6DAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, ComponentInterface, Element, Event, EventEmitter, h, Host, Prop, State } from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport { LegendItemRemoveClickEvent } from \"./legend-item.interfaces\";\r\n\r\n/**\r\n * @slot - Either the label for this legend item or a `dso-selectable` holding the label.\r\n * @slot symbol - A span where the symbol is styled upon\r\n * @slot body - The slot to place controls in (i.e. `dso-input-range` or multiple `dso-selectable`\\`s). If present, this will cause the appearance of an edit-button (three dots) to show the controls. Will not be displayed if property `disabled` is set to true.\r\n */\r\n@Component({\r\n tag: \"dso-legend-item\",\r\n styleUrl: \"legend-item.scss\",\r\n shadow: true,\r\n})\r\nexport class LegendItem implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoLegendItemElement;\r\n\r\n /**\r\n * To disable the Legend Item\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Message to be shown behind a toggletip when the Legend Item is disabled\r\n */\r\n @Prop()\r\n disabledMessage?: string;\r\n\r\n /**\r\n * Shows a trash-can that, when clicked, emits `dsoRemoveClick`.\r\n */\r\n @Prop()\r\n removable?: boolean;\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<LegendItemRemoveClickEvent>;\r\n\r\n /**\r\n * Emitted when the mouse enters the Legend Item\r\n */\r\n @Event()\r\n dsoMouseEnter!: EventEmitter;\r\n\r\n /**\r\n * Emitted when the mouse leaves the Legend Item\r\n */\r\n @Event()\r\n dsoMouseLeave!: EventEmitter;\r\n\r\n @State()\r\n showBody = false;\r\n\r\n get symbolSlottedElement() {\r\n return this.host.querySelector(\"[slot='symbol']\");\r\n }\r\n\r\n get selectableSlottedElement() {\r\n return this.host.querySelector(\":scope > dso-selectable\");\r\n }\r\n\r\n get bodySlottedElement() {\r\n return this.host.querySelector(\"[slot='body']\");\r\n }\r\n\r\n render() {\r\n const hasSymbol = this.symbolSlottedElement !== null;\r\n const hasBody = this.bodySlottedElement !== null;\r\n const isSelectable = this.selectableSlottedElement !== null;\r\n\r\n return (\r\n <Host onMouseEnter={() => this.dsoMouseEnter.emit()} onMouseLeave={() => this.dsoMouseLeave.emit()}>\r\n <div\r\n class={clsx(\"legend-item\", {\r\n \"legend-item-symbol\": hasSymbol,\r\n \"legend-item-selectable\": isSelectable,\r\n })}\r\n >\r\n <div hidden={!hasSymbol}>\r\n <slot name=\"symbol\" />\r\n </div>\r\n <div>\r\n <slot></slot>\r\n </div>\r\n {this.disabled && this.disabledMessage && (\r\n <dso-toggletip position=\"bottom\">{this.disabledMessage}</dso-toggletip>\r\n )}\r\n {this.removable && (\r\n <button id=\"remove-button\" type=\"button\" onClick={(e) => this.dsoRemoveClick.emit({ originalEvent: e })}>\r\n <span class=\"sr-only\">Legenda item verwijderen</span>\r\n <dso-icon icon=\"trash\"></dso-icon>\r\n </button>\r\n )}\r\n\r\n {hasBody && !this.disabled && (\r\n <button id=\"edit-button\" type=\"button\" onClick={() => (this.showBody = !this.showBody)}>\r\n <span class=\"sr-only\">Legenda item aanpassen</span>\r\n <dso-icon icon={this.showBody ? \"times\" : \"more\"} />\r\n </button>\r\n )}\r\n </div>\r\n <div hidden={!hasBody || this.disabled || !this.showBody} class=\"body\">\r\n <slot name=\"body\" />\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -113,7 +113,7 @@ export class ListButton {
113
113
  render() {
114
114
  const showButtonInputs = this.manualCount === undefined;
115
115
  const selected = this.checked || (this.count !== undefined && this.count > 0);
116
- return (h("div", { key: 'abb00eecb073bbdbf9946f0680413f8016fbbb57', class: clsx(["dso-button-group", { "dso-disabled": this.disabled }]) }, h("div", { key: '9b4e286e31a96faeae6facddbdbfd395c03750a6', class: clsx(["dso-list-button", { "dso-selected": selected, "dso-single-count": this.count === 1 }]), onClick: (e) => this.handleSelectClick(e) }, h("div", { key: 'a09fc90a28eadad900cc8c548c93a5470dbc1095', class: "dso-selectable" }, h("input", { key: '4a2f352079712ea22f3083891081a4ad6b16f8e2', id: "dso-list-button-checkbox", type: "checkbox", value: "list-button", name: "naam", "aria-describedby": [this.sublabel && "sublabel", this.subcontentSlot && "description"].filter((s) => !!s).join(" ") || null, checked: selected, disabled: this.disabled }), h("label", { key: '9c8aeb62c7f366672cc8cecf66fbfe830e569381', htmlFor: "dso-list-button-checkbox" }, this.label), this.subcontentSlot && (h("div", { class: "sr-only", id: "description" }, this.subcontentPrefix && this.subcontentPrefix + ":", h("div", { innerHTML: this.subcontentSlot.innerHTML })))), this.sublabel && (h("span", { class: "dso-sublabel", id: "sublabel" }, this.sublabel)), h("slot", { key: '2e443e92565e15f9b3c5059290b4540510a14a6f', name: "subcontent" })), this.count !== undefined && this.count > 0 && (h("div", { class: "dso-input-number" }, this.manualCount === undefined && this.count > 1 && (h("button", { type: "button", class: "dso-tertiary", disabled: this.count === Number(this.min) || this.disabled, onClick: (e) => this.stepValue(e, "decrement") }, h("dso-icon", { icon: "minus-circle" }), h("span", { class: "sr-only" }, "Aantal verlagen"))), h("div", { class: "dso-input-wrapper" }, this.manualCount === undefined && this.count > 1 && (h("input", { class: "dso-input-step-counter", type: "number", tabIndex: -1, "aria-label": "Aantal", value: this.count, readOnly: true })), h("form", { onSubmit: (e) => this.setCount(e) }, h("div", { ref: (element) => (this.manualInputWrapperElement = element) }, h("input", { class: clsx("form-control", { hidden: showButtonInputs }), type: "number", "aria-label": "Aantal", value: this.manualCount, min: this.min, max: this.max, onInput: (e) => this.handleOnChange(e) })), this.manual && (h("button", { class: clsx("dso-manual-input-button", { "sr-only": !showButtonInputs }), type: !showButtonInputs ? "submit" : "button", disabled: this.disabled, onClick: () => showButtonInputs && this.startManualCountInput() }, showButtonInputs ? (h("span", { class: "sr-only" }, "Handmatig aantal invullen")) : (h("span", { class: "sr-only" }, "Zet waarde")))))), showButtonInputs && (h("button", { type: "button", class: "dso-tertiary", disabled: this.count === Number(this.max) || this.disabled, onClick: (e) => this.stepValue(e, "increment") }, h("dso-icon", { icon: "plus-circle" }), h("span", { class: "sr-only" }, "Aantal verhogen")))))));
116
+ return (h("div", { key: '595469d188c512dc1b34eda805e41c564e29ba4a', class: clsx(["dso-button-group", { "dso-disabled": this.disabled }]) }, h("div", { key: '5111da2a36969b0acae7190c2613124d9217ed8b', class: clsx(["dso-list-button", { "dso-selected": selected, "dso-single-count": this.count === 1 }]), onClick: (e) => this.handleSelectClick(e) }, h("div", { key: '4db309ba5edc6caaccc40ce6016bea0fa4997df4', class: "dso-selectable" }, h("input", { key: '6f4f46ee4fd6705e169ee622b4134e0ad561a505', id: "dso-list-button-checkbox", type: "checkbox", value: "list-button", name: "naam", "aria-describedby": [this.sublabel && "sublabel", this.subcontentSlot && "description"].filter((s) => !!s).join(" ") || null, checked: selected, disabled: this.disabled }), h("label", { key: '9fedd5d531c56983b5c89d7bf65a47fa0aca3523', htmlFor: "dso-list-button-checkbox" }, this.label), this.subcontentSlot && (h("div", { key: '002a567fe3d9504f27be61bf801a8ae48decd5d1', class: "sr-only", id: "description" }, this.subcontentPrefix && this.subcontentPrefix + ":", h("div", { key: '432d4922ddcc649daa4f1c9311250748b39b89f5', innerHTML: this.subcontentSlot.innerHTML })))), this.sublabel && (h("span", { key: '894a6fa32ca6edeab9dd436d50c7b063a1a5273b', class: "dso-sublabel", id: "sublabel" }, this.sublabel)), h("slot", { key: 'da5f033e670f95b2893df0301f3a23f37c0df382', name: "subcontent" })), this.count !== undefined && this.count > 0 && (h("div", { key: '7b4384dc1b1eaeb9255eb3e2937a95635c2567a5', class: "dso-input-number" }, this.manualCount === undefined && this.count > 1 && (h("button", { key: '479bab779cc2e589289a6fbb694c71a62194019b', type: "button", class: "dso-tertiary", disabled: this.count === Number(this.min) || this.disabled, onClick: (e) => this.stepValue(e, "decrement") }, h("dso-icon", { key: '5cff6d05687291a9bf52940a93358fe0f25a8305', icon: "minus-circle" }), h("span", { key: '5e7295c692372eba158405fdebc5c02bcc361b2f', class: "sr-only" }, "Aantal verlagen"))), h("div", { key: '057f3e693f7c5f07cef6e5d606e91b8096bb1ed8', class: "dso-input-wrapper" }, this.manualCount === undefined && this.count > 1 && (h("input", { key: '9497f8c030c2dbb6c9cc59965c83d0ea854a3e21', class: "dso-input-step-counter", type: "number", tabIndex: -1, "aria-label": "Aantal", value: this.count, readOnly: true })), h("form", { key: '1d8f5e6bdc517a893f78ce9af3175190321a82f3', onSubmit: (e) => this.setCount(e) }, h("div", { key: '80e89a920948228037750489f28a341c7eda82d2', ref: (element) => (this.manualInputWrapperElement = element) }, h("input", { key: '7540fa096742a46fe53504f08a2786d720b49a04', class: clsx("form-control", { hidden: showButtonInputs }), type: "number", "aria-label": "Aantal", value: this.manualCount, min: this.min, max: this.max, onInput: (e) => this.handleOnChange(e) })), this.manual && (h("button", { key: 'e6f3b0761e87577626308b192332adfe95771601', class: clsx("dso-manual-input-button", { "sr-only": !showButtonInputs }), type: !showButtonInputs ? "submit" : "button", disabled: this.disabled, onClick: () => showButtonInputs && this.startManualCountInput() }, showButtonInputs ? (h("span", { class: "sr-only" }, "Handmatig aantal invullen")) : (h("span", { class: "sr-only" }, "Zet waarde")))))), showButtonInputs && (h("button", { key: '8834a819b42cfe8b7d2f701927c39a2215ec86c7', type: "button", class: "dso-tertiary", disabled: this.count === Number(this.max) || this.disabled, onClick: (e) => this.stepValue(e, "increment") }, h("dso-icon", { key: 'cf26acf0a0eb6150ac6b6e76b4e1a479b5ff7516', icon: "plus-circle" }), h("span", { key: '3db09a5efa814148c99e38a181aa8d188479742c', class: "sr-only" }, "Aantal verhogen")))))));
117
117
  }
118
118
  static get is() { return "dso-list-button"; }
119
119
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"list-button.js","sourceRoot":"","sources":["../../../../src/components/list-button/list-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,KAAK,EACL,KAAK,EACL,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,eAAe,EAAa,MAAM,YAAY,CAAC;AACxD,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,MAAM,OAAO,UAAU;;;;;;;;;uBAsDX,KAAK;wBAMJ,KAAK;;sBAcP,IAAI;;IAlEb,IAAY,cAAc;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAc,qBAAqB,CAAC,CAAC;IACrE,CAAC;IAiFD,mBAAmB;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,EAAE,CA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yB,EAAE,EAAE,SAAS,EAAE,CAAC,gBAAgB,EAAE,CAAC,EACxE,IAAI,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAC7C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,IAAI,IAAI,CAAC,qBAAqB,EAAE,IAE9D,gBAAgB,CAAC,CAAC,CAAC,CAClB,YAAM,KAAK,EAAC,SAAS,gCAAiC,CACvD,CAAC,CAAC,CAAC,CACF,YAAM,KAAK,EAAC,SAAS,iBAAkB,CACxC,CACM,CACV,CACI,CACH;gBAEL,gBAAgB,IAAI,CACnB,cACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,cAAc,EACpB,QAAQ,EAAE,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,EAC1D,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC;oBAE9C,gBAAU,IAAI,EAAC,aAAa,GAAY;oBACxC,YAAM,KAAK,EAAC,SAAS,sBAAuB,CACrC,CACV,CACG,CACP,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n h,\r\n Prop,\r\n Event,\r\n EventEmitter,\r\n State,\r\n Watch,\r\n forceUpdate,\r\n} from \"@stencil/core\";\r\nimport { ListButtonChangeEvent, ListButtonSelectedEvent } from \"./list-button.interfaces\";\r\n\r\nimport { createFocusTrap, FocusTrap } from \"focus-trap\";\r\nimport clsx from \"clsx\";\r\n\r\n@Component({\r\n tag: \"dso-list-button\",\r\n shadow: true,\r\n styleUrl: \"list-button.scss\",\r\n})\r\nexport class ListButton implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoListButtonElement;\r\n\r\n private trap?: FocusTrap;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private get subcontentSlot() {\r\n return this.host.querySelector<HTMLElement>(\"[slot='subcontent']\");\r\n }\r\n\r\n @State()\r\n private manualInputWrapperElement?: HTMLDivElement;\r\n\r\n private manualInputButtonElement?: HTMLButtonElement;\r\n\r\n @State()\r\n manualCount?: number;\r\n\r\n /**\r\n * The label of the List Button.\r\n */\r\n @Prop()\r\n label?: string;\r\n\r\n /**\r\n * The sublabel of the List Button.\r\n */\r\n @Prop()\r\n sublabel?: string;\r\n\r\n /**\r\n * When defined the count can show on the List Button.\r\n */\r\n @Prop()\r\n count?: number;\r\n\r\n /**\r\n * The minimum value.\r\n */\r\n @Prop()\r\n min?: string | number;\r\n\r\n /**\r\n * The maximum value.\r\n */\r\n @Prop()\r\n max?: string | number;\r\n\r\n /**\r\n * Whether the List Button is checked.\r\n */\r\n @Prop({ reflect: true })\r\n checked = false;\r\n\r\n /**\r\n * Whether the List Button is disabled.\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Prefix to subcontent for the purpose of screenreading.\r\n */\r\n @Prop()\r\n subcontentPrefix?: string;\r\n\r\n /**\r\n * Allow user to directly input a value.\r\n *\r\n * Set to `false` to force users to use plus/minus buttons.\r\n */\r\n @Prop()\r\n manual = true;\r\n\r\n /**\r\n * Emitted when the user changes the count.\r\n */\r\n @Event()\r\n dsoCountChange!: EventEmitter<ListButtonChangeEvent>;\r\n\r\n /**\r\n * Emitted when the user activates the List Button itself.\r\n *\r\n * Does not fire when the user activates the count controls.\r\n */\r\n @Event()\r\n dsoSelectedChange!: EventEmitter<ListButtonSelectedEvent>;\r\n\r\n @Watch(\"manual\")\r\n watchManualCallback() {\r\n if (!this.manual && this.manualCount) {\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n connectedCallback() {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n }\r\n\r\n componentDidRender(): void {\r\n if (this.manualCount !== undefined && this.manualInputWrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.manualInputWrapperElement, {\r\n escapeDeactivates: true,\r\n setReturnFocus: false,\r\n\r\n clickOutsideDeactivates: (e) => {\r\n this.setCount(e);\r\n\r\n return true;\r\n },\r\n onDeactivate: () => this.stopManualCountInput(),\r\n onPostDeactivate: () => this.manualInputButtonElement?.focus(),\r\n }).activate();\r\n } else if (this.manualCount === undefined && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n\r\n this.subcontentSlot?.setAttribute(\"aria-hidden\", \"true\");\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.trap?.deactivate();\r\n\r\n this.mutationObserver?.disconnect();\r\n delete this.mutationObserver;\r\n }\r\n\r\n private handleOnChange({ target }: Event): void {\r\n if (target instanceof HTMLInputElement) {\r\n this.manualCount = target.valueAsNumber;\r\n }\r\n }\r\n\r\n private stepValue(e: Event, direction: \"increment\" | \"decrement\"): void {\r\n if (typeof this.count === \"number\") {\r\n const newValue = direction === \"increment\" ? this.count + 1 : this.count - 1;\r\n\r\n if (!this.isNewCountValid(newValue)) {\r\n return;\r\n }\r\n\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: newValue,\r\n });\r\n }\r\n }\r\n\r\n private setCount(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (typeof this.manualCount === \"number\" && this.isNewCountValid(this.manualCount)) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.manualCount,\r\n });\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n private handleSelectClick(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (this.count !== undefined) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.count > 0 ? 0 : 1,\r\n });\r\n\r\n return;\r\n }\r\n\r\n this.dsoSelectedChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n private startManualCountInput(): void {\r\n this.manualCount = this.count;\r\n }\r\n\r\n private stopManualCountInput(): void {\r\n this.manualCount = undefined;\r\n }\r\n\r\n private isNewCountValid(newValue: number): boolean {\r\n return !(\r\n this.min !== undefined &&\r\n this.max !== undefined &&\r\n (newValue < Number(this.min) || newValue > Number(this.max))\r\n );\r\n }\r\n\r\n render() {\r\n const showButtonInputs = this.manualCount === undefined;\r\n\r\n const selected = this.checked || (this.count !== undefined && this.count > 0);\r\n\r\n return (\r\n <div class={clsx([\"dso-button-group\", { \"dso-disabled\": this.disabled }])}>\r\n <div\r\n class={clsx([\"dso-list-button\", { \"dso-selected\": selected, \"dso-single-count\": this.count === 1 }])}\r\n onClick={(e) => this.handleSelectClick(e)}\r\n >\r\n <div class=\"dso-selectable\">\r\n <input\r\n id=\"dso-list-button-checkbox\"\r\n type=\"checkbox\"\r\n value=\"list-button\"\r\n name=\"naam\"\r\n aria-describedby={\r\n [this.sublabel && \"sublabel\", this.subcontentSlot && \"description\"].filter((s) => !!s).join(\" \") || null\r\n }\r\n checked={selected}\r\n disabled={this.disabled}\r\n />\r\n <label htmlFor=\"dso-list-button-checkbox\">{this.label}</label>\r\n {this.subcontentSlot && (\r\n <div class=\"sr-only\" id=\"description\">\r\n {this.subcontentPrefix && this.subcontentPrefix + \":\"}\r\n <div innerHTML={this.subcontentSlot.innerHTML}></div>\r\n </div>\r\n )}\r\n </div>\r\n {this.sublabel && (\r\n <span class=\"dso-sublabel\" id=\"sublabel\">\r\n {this.sublabel}\r\n </span>\r\n )}\r\n <slot name=\"subcontent\" />\r\n </div>\r\n\r\n {this.count !== undefined && this.count > 0 && (\r\n <div class=\"dso-input-number\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.min) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"decrement\")}\r\n >\r\n <dso-icon icon=\"minus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verlagen</span>\r\n </button>\r\n )}\r\n\r\n <div class=\"dso-input-wrapper\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <input\r\n class=\"dso-input-step-counter\"\r\n type=\"number\"\r\n tabIndex={-1}\r\n aria-label=\"Aantal\"\r\n value={this.count}\r\n readOnly\r\n />\r\n )}\r\n\r\n <form onSubmit={(e) => this.setCount(e)}>\r\n <div ref={(element) => (this.manualInputWrapperElement = element)}>\r\n <input\r\n class={clsx(\"form-control\", { hidden: showButtonInputs })}\r\n type=\"number\"\r\n aria-label=\"Aantal\"\r\n value={this.manualCount}\r\n min={this.min}\r\n max={this.max}\r\n onInput={(e) => this.handleOnChange(e)}\r\n />\r\n </div>\r\n\r\n {this.manual && (\r\n <button\r\n class={clsx(\"dso-manual-input-button\", { \"sr-only\": !showButtonInputs })}\r\n type={!showButtonInputs ? \"submit\" : \"button\"}\r\n disabled={this.disabled}\r\n onClick={() => showButtonInputs && this.startManualCountInput()}\r\n >\r\n {showButtonInputs ? (\r\n <span class=\"sr-only\">Handmatig aantal invullen</span>\r\n ) : (\r\n <span class=\"sr-only\">Zet waarde</span>\r\n )}\r\n </button>\r\n )}\r\n </form>\r\n </div>\r\n\r\n {showButtonInputs && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.max) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"increment\")}\r\n >\r\n <dso-icon icon=\"plus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verhogen</span>\r\n </button>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"list-button.js","sourceRoot":"","sources":["../../../../src/components/list-button/list-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,KAAK,EACL,KAAK,EACL,WAAW,GACZ,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,eAAe,EAAa,MAAM,YAAY,CAAC;AACxD,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,MAAM,OAAO,UAAU;;;;;;;;;uBAsDX,KAAK;wBAMJ,KAAK;;sBAcP,IAAI;;IAlEb,IAAY,cAAc;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAc,qBAAqB,CAAC,CAAC;IACrE,CAAC;IAiFD,mBAAmB;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrC,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAE3E,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE;YACvC,aAAa,EAAE,IAAI;YACnB,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;IACL,CAAC;IAED,kBAAkB;;QAChB,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,IAAI,IAAI,CAAC,yBAAyB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACnF,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,yBAAyB,EAAE;gBAC1D,iBAAiB,EAAE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,EAC1D,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW,CAAC;oBAE9C,iEAAU,IAAI,EAAC,aAAa,GAAY;oBACxC,6DAAM,KAAK,EAAC,SAAS,sBAAuB,CACrC,CACV,CACG,CACP,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n h,\r\n Prop,\r\n Event,\r\n EventEmitter,\r\n State,\r\n Watch,\r\n forceUpdate,\r\n} from \"@stencil/core\";\r\nimport { ListButtonChangeEvent, ListButtonSelectedEvent } from \"./list-button.interfaces\";\r\n\r\nimport { createFocusTrap, FocusTrap } from \"focus-trap\";\r\nimport clsx from \"clsx\";\r\n\r\n@Component({\r\n tag: \"dso-list-button\",\r\n shadow: true,\r\n styleUrl: \"list-button.scss\",\r\n})\r\nexport class ListButton implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoListButtonElement;\r\n\r\n private trap?: FocusTrap;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private get subcontentSlot() {\r\n return this.host.querySelector<HTMLElement>(\"[slot='subcontent']\");\r\n }\r\n\r\n @State()\r\n private manualInputWrapperElement?: HTMLDivElement;\r\n\r\n private manualInputButtonElement?: HTMLButtonElement;\r\n\r\n @State()\r\n manualCount?: number;\r\n\r\n /**\r\n * The label of the List Button.\r\n */\r\n @Prop()\r\n label?: string;\r\n\r\n /**\r\n * The sublabel of the List Button.\r\n */\r\n @Prop()\r\n sublabel?: string;\r\n\r\n /**\r\n * When defined the count can show on the List Button.\r\n */\r\n @Prop()\r\n count?: number;\r\n\r\n /**\r\n * The minimum value.\r\n */\r\n @Prop()\r\n min?: string | number;\r\n\r\n /**\r\n * The maximum value.\r\n */\r\n @Prop()\r\n max?: string | number;\r\n\r\n /**\r\n * Whether the List Button is checked.\r\n */\r\n @Prop({ reflect: true })\r\n checked = false;\r\n\r\n /**\r\n * Whether the List Button is disabled.\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Prefix to subcontent for the purpose of screenreading.\r\n */\r\n @Prop()\r\n subcontentPrefix?: string;\r\n\r\n /**\r\n * Allow user to directly input a value.\r\n *\r\n * Set to `false` to force users to use plus/minus buttons.\r\n */\r\n @Prop()\r\n manual = true;\r\n\r\n /**\r\n * Emitted when the user changes the count.\r\n */\r\n @Event()\r\n dsoCountChange!: EventEmitter<ListButtonChangeEvent>;\r\n\r\n /**\r\n * Emitted when the user activates the List Button itself.\r\n *\r\n * Does not fire when the user activates the count controls.\r\n */\r\n @Event()\r\n dsoSelectedChange!: EventEmitter<ListButtonSelectedEvent>;\r\n\r\n @Watch(\"manual\")\r\n watchManualCallback() {\r\n if (!this.manual && this.manualCount) {\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n connectedCallback() {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n }\r\n\r\n componentDidRender(): void {\r\n if (this.manualCount !== undefined && this.manualInputWrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.manualInputWrapperElement, {\r\n escapeDeactivates: true,\r\n setReturnFocus: false,\r\n\r\n clickOutsideDeactivates: (e) => {\r\n this.setCount(e);\r\n\r\n return true;\r\n },\r\n onDeactivate: () => this.stopManualCountInput(),\r\n onPostDeactivate: () => this.manualInputButtonElement?.focus(),\r\n }).activate();\r\n } else if (this.manualCount === undefined && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n\r\n this.subcontentSlot?.setAttribute(\"aria-hidden\", \"true\");\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.trap?.deactivate();\r\n\r\n this.mutationObserver?.disconnect();\r\n delete this.mutationObserver;\r\n }\r\n\r\n private handleOnChange({ target }: Event): void {\r\n if (target instanceof HTMLInputElement) {\r\n this.manualCount = target.valueAsNumber;\r\n }\r\n }\r\n\r\n private stepValue(e: Event, direction: \"increment\" | \"decrement\"): void {\r\n if (typeof this.count === \"number\") {\r\n const newValue = direction === \"increment\" ? this.count + 1 : this.count - 1;\r\n\r\n if (!this.isNewCountValid(newValue)) {\r\n return;\r\n }\r\n\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: newValue,\r\n });\r\n }\r\n }\r\n\r\n private setCount(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (typeof this.manualCount === \"number\" && this.isNewCountValid(this.manualCount)) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.manualCount,\r\n });\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n private handleSelectClick(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (this.count !== undefined) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.count > 0 ? 0 : 1,\r\n });\r\n\r\n return;\r\n }\r\n\r\n this.dsoSelectedChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n private startManualCountInput(): void {\r\n this.manualCount = this.count;\r\n }\r\n\r\n private stopManualCountInput(): void {\r\n this.manualCount = undefined;\r\n }\r\n\r\n private isNewCountValid(newValue: number): boolean {\r\n return !(\r\n this.min !== undefined &&\r\n this.max !== undefined &&\r\n (newValue < Number(this.min) || newValue > Number(this.max))\r\n );\r\n }\r\n\r\n render() {\r\n const showButtonInputs = this.manualCount === undefined;\r\n\r\n const selected = this.checked || (this.count !== undefined && this.count > 0);\r\n\r\n return (\r\n <div class={clsx([\"dso-button-group\", { \"dso-disabled\": this.disabled }])}>\r\n <div\r\n class={clsx([\"dso-list-button\", { \"dso-selected\": selected, \"dso-single-count\": this.count === 1 }])}\r\n onClick={(e) => this.handleSelectClick(e)}\r\n >\r\n <div class=\"dso-selectable\">\r\n <input\r\n id=\"dso-list-button-checkbox\"\r\n type=\"checkbox\"\r\n value=\"list-button\"\r\n name=\"naam\"\r\n aria-describedby={\r\n [this.sublabel && \"sublabel\", this.subcontentSlot && \"description\"].filter((s) => !!s).join(\" \") || null\r\n }\r\n checked={selected}\r\n disabled={this.disabled}\r\n />\r\n <label htmlFor=\"dso-list-button-checkbox\">{this.label}</label>\r\n {this.subcontentSlot && (\r\n <div class=\"sr-only\" id=\"description\">\r\n {this.subcontentPrefix && this.subcontentPrefix + \":\"}\r\n <div innerHTML={this.subcontentSlot.innerHTML}></div>\r\n </div>\r\n )}\r\n </div>\r\n {this.sublabel && (\r\n <span class=\"dso-sublabel\" id=\"sublabel\">\r\n {this.sublabel}\r\n </span>\r\n )}\r\n <slot name=\"subcontent\" />\r\n </div>\r\n\r\n {this.count !== undefined && this.count > 0 && (\r\n <div class=\"dso-input-number\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.min) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"decrement\")}\r\n >\r\n <dso-icon icon=\"minus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verlagen</span>\r\n </button>\r\n )}\r\n\r\n <div class=\"dso-input-wrapper\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <input\r\n class=\"dso-input-step-counter\"\r\n type=\"number\"\r\n tabIndex={-1}\r\n aria-label=\"Aantal\"\r\n value={this.count}\r\n readOnly\r\n />\r\n )}\r\n\r\n <form onSubmit={(e) => this.setCount(e)}>\r\n <div ref={(element) => (this.manualInputWrapperElement = element)}>\r\n <input\r\n class={clsx(\"form-control\", { hidden: showButtonInputs })}\r\n type=\"number\"\r\n aria-label=\"Aantal\"\r\n value={this.manualCount}\r\n min={this.min}\r\n max={this.max}\r\n onInput={(e) => this.handleOnChange(e)}\r\n />\r\n </div>\r\n\r\n {this.manual && (\r\n <button\r\n class={clsx(\"dso-manual-input-button\", { \"sr-only\": !showButtonInputs })}\r\n type={!showButtonInputs ? \"submit\" : \"button\"}\r\n disabled={this.disabled}\r\n onClick={() => showButtonInputs && this.startManualCountInput()}\r\n >\r\n {showButtonInputs ? (\r\n <span class=\"sr-only\">Handmatig aantal invullen</span>\r\n ) : (\r\n <span class=\"sr-only\">Zet waarde</span>\r\n )}\r\n </button>\r\n )}\r\n </form>\r\n </div>\r\n\r\n {showButtonInputs && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.max) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"increment\")}\r\n >\r\n <dso-icon icon=\"plus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verhogen</span>\r\n </button>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
@@ -5,7 +5,7 @@ export class Logo {
5
5
  this.ribbon = undefined;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '7d963df6078fe26d426b724823c6d20ac2ecd93f', "aria-label": ["Omgevingsloket", this.label, this.ribbon && `(${this.ribbon})`].filter((s) => !!s).join(" ") }, h("svg", { key: '44344080efd6fb06474ae683d93ffa0dcfba87f9', fill: "none", viewBox: "0 0 48 48", height: "100%", class: "logo-target" }, h("path", { key: '28249a7cbe723deee785fb73e6932c4faf400255', class: "outer", d: "M26 0a24 24 0 1 0 0 47.9A24 24 0 0 0 24 0Z" }), h("path", { key: 'fa62a33b745ae96b0587cb07b3dd49baa8a0df97', class: "middle", d: "M24 8A16 16 0 0 0 8 24 16 16 0 1 0 24 8Z" }), h("path", { key: 'ee977aa7631f709552894c6900b79c0d0af3fbc7', class: "inner", d: "M24 32a8 8 0 0 0 0-16 8 8 0 0 0 0 16Z" })), h("div", { key: 'de5b1bf4f71b308b1fdd91684bc54835338db8e7', class: "logo-wordmark" }, h("span", { key: '700b20c7ac65b93c7263b03f308362f3809d9833', class: "logo-wordmark-omgevings" }, "Omgevings"), h("span", { key: 'be5d651e4577c1c6d8957f32285f8a6c3075ba49', class: "logo-wordmark-loket" }, "loket")), this.label && h("span", { class: "logo-label" }, this.label), this.ribbon && h("div", { class: "logo-ribbon" }, this.ribbon)));
8
+ return (h(Host, { key: 'af3e148d5fd223144d72c846976442e016f1da95', "aria-label": ["Omgevingsloket", this.label, this.ribbon && `(${this.ribbon})`].filter((s) => !!s).join(" ") }, h("svg", { key: '636c66dfbc9ba81c24db337ae9827e9703080da7', fill: "none", viewBox: "0 0 48 48", height: "100%", class: "logo-target" }, h("path", { key: 'a96d2501cef73c91f6862e7f7d61e895104924ed', class: "outer", d: "M26 0a24 24 0 1 0 0 47.9A24 24 0 0 0 24 0Z" }), h("path", { key: 'fc0bfede97df907f8aa774d63b4dbc8f9ab0aac2', class: "middle", d: "M24 8A16 16 0 0 0 8 24 16 16 0 1 0 24 8Z" }), h("path", { key: '7922d7a863ac62e71564d18bf329f6ebda55f29c', class: "inner", d: "M24 32a8 8 0 0 0 0-16 8 8 0 0 0 0 16Z" })), h("div", { key: '988ba3831261216e3b5c1b9a5647480bc9d7b817', class: "logo-wordmark" }, h("span", { key: '84388d709db2ecb31be51cbe1736d03e59cdf1e7', class: "logo-wordmark-omgevings" }, "Omgevings"), h("span", { key: '8b0718c57cfb095972c2a5c4edb87f411896bdd4', class: "logo-wordmark-loket" }, "loket")), this.label && h("span", { key: '36ba8516b43749b5b0a53c00dcdfe6e6ce2f7b02', class: "logo-label" }, this.label), this.ribbon && h("div", { key: 'c86c6c5df017f3297f9f7a775bcd746a9fe8893b', class: "logo-ribbon" }, this.ribbon)));
9
9
  }
10
10
  static get is() { return "dso-logo"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"logo.js","sourceRoot":"","sources":["../../../../src/components/logo/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO7E,MAAM,OAAO,IAAI;;;;;IAgBf,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,mEAAa,CAAC,gBAAgB,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YAC9G,4DAAK,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,aAAa;gBACpE,6DAAM,KAAK,EAAC,OAAO,EAAC,CAAC,EAAC,4CAA4C,GAAG;gBACrE,6DAAM,KAAK,EAAC,QAAQ,EAAC,CAAC,EAAC,0CAA0C,GAAG;gBACpE,6DAAM,KAAK,EAAC,OAAO,EAAC,CAAC,EAAC,uCAAuC,GAAG,CAC5D;YAEN,4DAAK,KAAK,EAAC,eAAe;gBACxB,6DAAM,KAAK,EAAC,yBAAyB,gBAAiB;gBACtD,6DAAM,KAAK,EAAC,qBAAqB,YAAa,CAC1C;YAEL,IAAI,CAAC,KAAK,IAAI,YAAM,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,KAAK,CAAQ;YAC1D,IAAI,CAAC,MAAM,IAAI,WAAK,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,MAAM,CAAO,CACvD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, ComponentInterface, Host, Prop, h } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"dso-logo\",\r\n styleUrl: \"logo.scss\",\r\n shadow: true,\r\n})\r\nexport class Logo implements ComponentInterface {\r\n /**\r\n * The label clarifies the service within the Omgevingsloket, shown\r\n * as a subtitle (and on smaller screens as the main wordmark itself).\r\n */\r\n @Prop({ reflect: true })\r\n label?: string;\r\n\r\n /**\r\n * The ribbon contains the text for a possible 'sticker' on top of the logo.\r\n * Used to clarify the (non-production) server environment (\"int\", \"kta\", \"pfm\", \"pre\", or \"dmo\")\r\n *\r\n */\r\n @Prop()\r\n ribbon?: string;\r\n\r\n render() {\r\n return (\r\n <Host aria-label={[\"Omgevingsloket\", this.label, this.ribbon && `(${this.ribbon})`].filter((s) => !!s).join(\" \")}>\r\n <svg fill=\"none\" viewBox=\"0 0 48 48\" height=\"100%\" class=\"logo-target\">\r\n <path class=\"outer\" d=\"M26 0a24 24 0 1 0 0 47.9A24 24 0 0 0 24 0Z\" />\r\n <path class=\"middle\" d=\"M24 8A16 16 0 0 0 8 24 16 16 0 1 0 24 8Z\" />\r\n <path class=\"inner\" d=\"M24 32a8 8 0 0 0 0-16 8 8 0 0 0 0 16Z\" />\r\n </svg>\r\n\r\n <div class=\"logo-wordmark\">\r\n <span class=\"logo-wordmark-omgevings\">Omgevings</span>\r\n <span class=\"logo-wordmark-loket\">loket</span>\r\n </div>\r\n\r\n {this.label && <span class=\"logo-label\">{this.label}</span>}\r\n {this.ribbon && <div class=\"logo-ribbon\">{this.ribbon}</div>}\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"logo.js","sourceRoot":"","sources":["../../../../src/components/logo/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO7E,MAAM,OAAO,IAAI;;;;;IAgBf,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,mEAAa,CAAC,gBAAgB,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;YAC9G,4DAAK,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,EAAC,aAAa;gBACpE,6DAAM,KAAK,EAAC,OAAO,EAAC,CAAC,EAAC,4CAA4C,GAAG;gBACrE,6DAAM,KAAK,EAAC,QAAQ,EAAC,CAAC,EAAC,0CAA0C,GAAG;gBACpE,6DAAM,KAAK,EAAC,OAAO,EAAC,CAAC,EAAC,uCAAuC,GAAG,CAC5D;YAEN,4DAAK,KAAK,EAAC,eAAe;gBACxB,6DAAM,KAAK,EAAC,yBAAyB,gBAAiB;gBACtD,6DAAM,KAAK,EAAC,qBAAqB,YAAa,CAC1C;YAEL,IAAI,CAAC,KAAK,IAAI,6DAAM,KAAK,EAAC,YAAY,IAAE,IAAI,CAAC,KAAK,CAAQ;YAC1D,IAAI,CAAC,MAAM,IAAI,4DAAK,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,MAAM,CAAO,CACvD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, ComponentInterface, Host, Prop, h } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"dso-logo\",\r\n styleUrl: \"logo.scss\",\r\n shadow: true,\r\n})\r\nexport class Logo implements ComponentInterface {\r\n /**\r\n * The label clarifies the service within the Omgevingsloket, shown\r\n * as a subtitle (and on smaller screens as the main wordmark itself).\r\n */\r\n @Prop({ reflect: true })\r\n label?: string;\r\n\r\n /**\r\n * The ribbon contains the text for a possible 'sticker' on top of the logo.\r\n * Used to clarify the (non-production) server environment (\"int\", \"kta\", \"pfm\", \"pre\", or \"dmo\")\r\n *\r\n */\r\n @Prop()\r\n ribbon?: string;\r\n\r\n render() {\r\n return (\r\n <Host aria-label={[\"Omgevingsloket\", this.label, this.ribbon && `(${this.ribbon})`].filter((s) => !!s).join(\" \")}>\r\n <svg fill=\"none\" viewBox=\"0 0 48 48\" height=\"100%\" class=\"logo-target\">\r\n <path class=\"outer\" d=\"M26 0a24 24 0 1 0 0 47.9A24 24 0 0 0 24 0Z\" />\r\n <path class=\"middle\" d=\"M24 8A16 16 0 0 0 8 24 16 16 0 1 0 24 8Z\" />\r\n <path class=\"inner\" d=\"M24 32a8 8 0 0 0 0-16 8 8 0 0 0 0 16Z\" />\r\n </svg>\r\n\r\n <div class=\"logo-wordmark\">\r\n <span class=\"logo-wordmark-omgevings\">Omgevings</span>\r\n <span class=\"logo-wordmark-loket\">loket</span>\r\n </div>\r\n\r\n {this.label && <span class=\"logo-label\">{this.label}</span>}\r\n {this.ribbon && <div class=\"logo-ribbon\">{this.ribbon}</div>}\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -22,7 +22,7 @@ export class MapBaseLayers {
22
22
  for (const ref in this.selectableRefs) {
23
23
  delete this.selectableRefs[ref];
24
24
  }
25
- return (h("fieldset", { key: '2c3eb77f06a5a6918a707c3fffc05832154bef12', class: "form-group dso-radios" }, h("legend", { key: '2461330d29840218a28a9245e86fa7bfdb70ff23', class: "sr-only" }, "Achtergrond"), h("div", { key: '161c6b20780e78eaee6c7e3b7ca22a553548df96', class: "dso-label-container" }, h("span", { key: '4590f83f5b52c509d46cf1327efa3fe45b12b292', class: "control-label", "aria-hidden": "true" }, "Achtergrond")), h("div", { key: '348a852299628632afa8c8237b136abe53494df5', 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))))));
25
+ return (h("fieldset", { key: 'de1069481148768ce882022e2439d10c78dea353', class: "form-group dso-radios" }, h("legend", { key: 'c26522cddd21cfb5d35f8ccd7a4d39951b3e1e79', class: "sr-only" }, "Achtergrond"), h("div", { key: '81ad22334e84f5bda6b1987f62ed95d89c269872', class: "dso-label-container" }, h("span", { key: 'f982b307e6b7bff5f97658cf9b7be43aa4d9ca3f', class: "control-label", "aria-hidden": "true" }, "Achtergrond")), h("div", { key: '4c8562c76ecb35a7a16b08580c0d0b032a93048f', 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))))));
26
26
  }
27
27
  static get is() { return "dso-map-base-layers"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -54,7 +54,7 @@ export class MapControls {
54
54
  });
55
55
  }
56
56
  render() {
57
- return (h(Host, { key: 'd5257802545ac7c3ce214c1d777a9046e4e4ed53' }, h("button", { key: '10c981feea6e98d70038b7e41eadcfcda69e561f', type: "button", id: "toggle-visibility-button", class: "toggle-visibility-button", onClick: (e) => this.toggleVisibility(e), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { key: 'b0ad518b178e141183e940d4a93fb86cb7e669cb', icon: "layers" }), h("span", { key: '3a08741b4e7b68c1268563ab3b42437346250754' }, "Kaartlagen")), h("div", { key: 'a45cd401ca5dbaa8a1701f71020c08f9a1c12a3a', class: "zoom-buttons" }, h("button", { key: 'cffa9f861933fcca241882794bc38534255a0093', type: "button", onClick: (e) => this.dsoZoomIn.emit(e), disabled: this.disableZoom === "in" || this.disableZoom === "both" }, h("span", { key: '745758853f317c4d094a6ef0ec7548583d419075' }, "Zoom in"), h("dso-icon", { key: 'edf7d7b7cf782d192c913b03febdc1b0b7a5905b', icon: "plus" })), h("button", { key: 'a0d1b719f4811a7223d042b7c45fcc055e6a6ae0', type: "button", onClick: (e) => this.dsoZoomOut.emit(e), disabled: this.disableZoom === "out" || this.disableZoom === "both" }, h("span", { key: '942d4d278889974dc336ace6f885cbf12af55bc5' }, "Zoom uit"), h("dso-icon", { key: '59c74add8be0224ff1c16bd03e3bd3697b4db484', icon: "minus" }))), h("section", { key: 'd17562e23bd26af09fe618f00974e5b1a5c4086e', hidden: this.hideContent }, h("header", { key: '16bf4efe6dfbe09fa7dd53e0156733d23fff5f43' }, h("h2", { key: '6e2913bf9c56d4b3e40c7ce7d4f3e0b4e69c9d1c' }, this.panelTitle), h("button", { key: '1e1be94fea1cd8336552d490369f9c2c28ef1d21', type: "button", class: "close-button", onClick: (e) => this.toggleVisibility(e), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeButtonElement, element, "f")) }, h("span", { key: '135b23785f61713876fa8ba41767b4f423339573' }, "Verberg paneel ", this.panelTitle), h("dso-icon", { key: '5221aa8c44ce86583c1fca8d30234df499046708', icon: "times" }))), h("dso-scrollable", { key: '9a0f92768fe2b9b55218187547757c14088da249' }, h("div", { key: 'd04dcd91a2553ce5568b2535e53206012efc7bf8', class: "content" }, h("slot", { key: 'e44aef4d314f64e66b3d192b7601eae462c7169f' }))))));
57
+ return (h(Host, { key: '6950f24986448fe7b9ad55e63a27c3435582078f' }, h("button", { key: '5b1fd3a10690d47db03b4e80fe30beffc4ab9658', type: "button", id: "toggle-visibility-button", class: "toggle-visibility-button", onClick: (e) => this.toggleVisibility(e), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { key: '364f0679306f247a5c6a589ad0885b014e0be5f5', icon: "layers" }), h("span", { key: '5409d0555edd3e7406b215fb430c9a4d71943460' }, "Kaartlagen")), h("div", { key: '0e9db2dca0b5065f86926232138933b402eb73df', class: "zoom-buttons" }, h("button", { key: 'd8bb302ba4d9a3719c6525cea58da8cc98620e34', type: "button", onClick: (e) => this.dsoZoomIn.emit(e), disabled: this.disableZoom === "in" || this.disableZoom === "both" }, h("span", { key: '3bdb813abd79cd05a2290068d0bd76410679f293' }, "Zoom in"), h("dso-icon", { key: '853a2cf598baf24e6d152611fe9b663a674db6e8', icon: "plus" })), h("button", { key: '909320d8ecd4edb12d0bb33e90300f36a2e49c6c', type: "button", onClick: (e) => this.dsoZoomOut.emit(e), disabled: this.disableZoom === "out" || this.disableZoom === "both" }, h("span", { key: '2b83cf1a9c8c869684c166f2faa5eaebaef965e4' }, "Zoom uit"), h("dso-icon", { key: '03145fbd10e9fa812984e0ec30bc36e015df61d7', icon: "minus" }))), h("section", { key: '3c2ade46c0f4d60f2e8cd983e549206ea8f71a62', hidden: this.hideContent }, h("header", { key: '80e7a2df9559af79525e8d5feb128a906c44c102' }, h("h2", { key: '1b68c5f1edc27316bd88aecdfb087f4b3d20ef94' }, this.panelTitle), h("button", { key: '9b99c5cd792825d6fcf1612394a762a4bb5780d3', type: "button", class: "close-button", onClick: (e) => this.toggleVisibility(e), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeButtonElement, element, "f")) }, h("span", { key: '218e01f23755c5ced6fc97fdbee6f4c5e53fb993' }, "Verberg paneel ", this.panelTitle), h("dso-icon", { key: '9c296759f7088b175c64883fa6dfc489d66b4392', icon: "times" }))), h("dso-scrollable", { key: '9f1426e147a8a9904e55d4280194ae256c842d5d' }, h("div", { key: '2f9d201a4e1d20265297de0c7b9431ba368fff0a', class: "content" }, h("slot", { key: '6ad26388a3c216ff78395567597ddb93320f1223' }))))));
58
58
  }
59
59
  static get is() { return "dso-map-controls"; }
60
60
  static get encapsulation() { return "shadow"; }
@@ -23,7 +23,7 @@ export class MapOverlays {
23
23
  for (const ref in this.selectableRefs) {
24
24
  delete this.selectableRefs[ref];
25
25
  }
26
- return (h("fieldset", { key: '922be44c70151498b93a9e860282660855ce6da2', class: "form-group dso-checkboxes" }, h("legend", { key: 'f76555b38b08fb94816434a298a9dc7d566722e8', class: "sr-only" }, "Kaartlagen"), h("div", { key: '13d611600240b497d9f1c0c35f2f431c64465ff4', class: "dso-label-container" }, h("span", { key: '046447606bf77abaf50f9959af64f60a028fcf34', class: "control-label", "aria-hidden": "true" }, "Kaartlagen")), h("div", { key: '47126e80ffa9af8a5e33ae5e456cc043db1dfeb4', 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))))));
26
+ return (h("fieldset", { key: '10c6cf654992a23a91582f496988e177c552e61d', class: "form-group dso-checkboxes" }, h("legend", { key: '237e7234834b820a80caa38b47cdc33be2dc4c85', class: "sr-only" }, "Kaartlagen"), h("div", { key: '944be0a8c38661e31d5f2d190d17ea9b9367bc2d', class: "dso-label-container" }, h("span", { key: '659a031232613acaefe79d54fed0365d1b19d20f', class: "control-label", "aria-hidden": "true" }, "Kaartlagen")), h("div", { key: 'de713bcb3827c8df631e67fda81eb0b734fb8492', 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))))));
27
27
  }
28
28
  static get is() { return "dso-map-overlays"; }
29
29
  static get encapsulation() { return "shadow"; }
@@ -42,7 +42,7 @@ export class MarkBar {
42
42
  render() {
43
43
  const current = this.current || 0;
44
44
  const totalCount = this.totalCount || 0;
45
- return (h("div", { key: 'efdf7f83749340df8019025992167f5d85c3b345', class: "dso-mark-bar" }, h("div", { key: '0e80bcb1859584ba0ef3a77f7c1e1154886433d6', class: "dso-mark-bar-input" }, h("input", { key: 'fa7112771eec26a46b6b3723b1fead205d364835', type: "text", id: "search-input", value: this.value, onInput: this.handleInput, onKeyDown: this.handleKeyDown, placeholder: " ", ref: (element) => (this.inputElement = element) }), h("label", { key: '91e2661d9926d1a022c199c6441f38bc51b297a9', htmlFor: "search-input" }, h("dso-icon", { key: '25d5ae45bacae6454510187fec58a4b6168bd037', class: "dso-search-icon", icon: "search" }), h("span", { key: 'd8591b4f24d9fa1f37d95b83c0d40859cb8bf4db', class: "label-text" }, this.label)), h("button", { key: 'b2cff0ce11313010ec20e16f972216901efb0c8a', type: "button", onClick: this.handleClear }, h("dso-icon", { key: '9599e5ff9225d9549c2138a788665d232c77991b', icon: "times" }), h("span", { key: '4b0aeef7c3196f8cd8d1bfa815fdc68e26fbd2c8', class: "sr-only" }, "Zoekopdracht legen"))), h("div", { key: '901be078c668f6386095df22efcd4d1760516e30', class: "dso-button-container" }, h("span", { key: '22616246e5c1e69caecc69ec5c13290fc4699835', class: "divider" }), h("button", { key: 'b8acc81707e87213fc77ca3858179ae46c939160', type: "button", onClick: this.handlePrevious, disabled: current <= 1 }, h("dso-icon", { key: 'ae6eebabf4bcd7454c81f131e13649b85f0d8a24', icon: "chevron-up", class: "hydrated" }), h("span", { key: '4d437f856a43918075e110c99381705855eba8a2', class: "sr-only" }, "Vorig zoekresultaat")), h("span", { key: 'c60458ada935126bd1908fb5b3adc616d3a86bde' }, current, "/", totalCount), h("button", { key: '212d6d2b04bf1023a6c3ce68e11e68e06e03149d', type: "button", onClick: this.handleNext, disabled: current >= totalCount }, h("dso-icon", { key: '50dc0c18de000a9b128f70815425267bd7bfad4d', icon: "chevron-down", class: "hydrated" }), h("span", { key: 'ae6835ce1e8b52d5a65e79f5711b51a4fbe08821', class: "sr-only" }, "Volgend zoekresultaat")))));
45
+ return (h("div", { key: '24dc8038f3ee6abcc9f741d5eb47f9c2e0135efb', class: "dso-mark-bar" }, h("div", { key: 'abc17c6f14fea338d11ad733a755e5e6eeb1eb55', class: "dso-mark-bar-input" }, h("input", { key: '59c4971ea6b4b07344caa6c76971b3360196d792', type: "text", id: "search-input", value: this.value, onInput: this.handleInput, onKeyDown: this.handleKeyDown, placeholder: " ", ref: (element) => (this.inputElement = element) }), h("label", { key: '2fc4531e3bf8541f1366d201b7ec7bf8b917687d', htmlFor: "search-input" }, h("dso-icon", { key: 'a9d9683f5f8522a5f9c0ce9e59ca23b811add5c4', class: "dso-search-icon", icon: "search" }), h("span", { key: '8b31e9004a25da808e3f93ef2344602533780014', class: "label-text" }, this.label)), h("button", { key: '43a739a7c5a1ee6f8f3334b61f5ef8c8638cfd49', type: "button", onClick: this.handleClear }, h("dso-icon", { key: '99185e5c9156d6523cdbca83ffe8b2ba19c29e8b', icon: "times" }), h("span", { key: '3e4302d15330cf0c5b3fdd9bd6e4b1e7c31ca7de', class: "sr-only" }, "Zoekopdracht legen"))), h("div", { key: '9b18e0ec50751d65912a37482a82fb1cfad4b78d', class: "dso-button-container" }, h("span", { key: 'ea1a85c0d4a720ffe735533bcdc5e56008b6c02a', class: "divider" }), h("button", { key: '1cd2151bd34b81941719217223cef8585f8b19f2', type: "button", onClick: this.handlePrevious, disabled: current <= 1 }, h("dso-icon", { key: '2b13fb24497a4bc17919daa8212b1fefbc21d8ab', icon: "chevron-up", class: "hydrated" }), h("span", { key: '91a30e14a97470eaac9a926b8ab3a184e2fda3ad', class: "sr-only" }, "Vorig zoekresultaat")), h("span", { key: '20f4c22c90979c2355a84149d22bc4dc87952036' }, current, "/", totalCount), h("button", { key: '7133c71bf1d4711765ff2d98dd1622908416835e', type: "button", onClick: this.handleNext, disabled: current >= totalCount }, h("dso-icon", { key: 'ce73fa26896a6a713c3b33e7e92f7677b57bd21e', icon: "chevron-down", class: "hydrated" }), h("span", { key: 'a5ecabff6c0256ef69afe697e4982f37e88d5e78', class: "sr-only" }, "Volgend zoekresultaat")))));
46
46
  }
47
47
  static get is() { return "dso-mark-bar"; }
48
48
  static get encapsulation() { return "shadow"; }
@@ -33,10 +33,10 @@ export class Modal {
33
33
  }
34
34
  render() {
35
35
  var _a;
36
- return (h("dialog", { key: 'f0ccbff21b54af2caccfc5a5a1749fa16ecdadc4', class: "dso-modal", role: (_a = this.role) !== null && _a !== void 0 ? _a : undefined, "aria-modal": "true", "aria-labelledby": this.ariaId, ref: (element) => (this.htmlDialogElement = element), onCancel: (e) => {
36
+ return (h("dialog", { key: '6072654b30fb1d5d37a85e415cc8238d9737fb62', class: "dso-modal", role: (_a = this.role) !== null && _a !== void 0 ? _a : undefined, "aria-modal": "true", "aria-labelledby": this.ariaId, ref: (element) => (this.htmlDialogElement = element), onCancel: (e) => {
37
37
  e.preventDefault();
38
38
  this.dsoClose.emit({ originalEvent: e });
39
- } }, h("div", { key: 'cfc5a8d6c6820353513ce8707c7b206d5f0d8873', class: "dso-dialog", role: "document" }, this.modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: this.ariaId }, this.modalTitle), this.showCloseButton && (h("button", { type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Sluiten"))))) : (h("span", { class: "sr-only", id: this.ariaId }, "Dialoog")), h("dso-scrollable", { key: 'b7fa1c5d7780c2b186823766c7f3ae838b979662' }, h("div", { key: '74234bf59cb07100cc0e4e28f39f5fb00488c1cf', class: "dso-body", tabIndex: 0 }, h("slot", { key: '88a8a67e2f89d673d8d6af6565660240d6f02e6c', name: "body" }))), this.hasFooter && (h("div", { class: "dso-footer" }, h("slot", { name: "footer" }))))));
39
+ } }, h("div", { key: 'f1332e303c002cdc221237f69691c339fe6b629f', class: "dso-dialog", role: "document" }, this.modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: this.ariaId }, this.modalTitle), this.showCloseButton && (h("button", { type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Sluiten"))))) : (h("span", { class: "sr-only", id: this.ariaId }, "Dialoog")), h("dso-scrollable", { key: '8ada9f86ded3d0b35cfcc2df1edcd2c969864d00' }, h("div", { key: 'b3845f15bdb227ade9a13ef4e718c6a13b0e21b8', class: "dso-body", tabIndex: 0 }, h("slot", { key: '5b55389b43bcaa09eabef43e16cb2d298e9d47dd', name: "body" }))), this.hasFooter && (h("div", { key: '135742b97efe4617a4ec7f64b86461fa69b5ab4a', class: "dso-footer" }, h("slot", { key: '6ddd36972880b56bc98764da436872a38664ad44', name: "footer" }))))));
40
40
  }
41
41
  static get is() { return "dso-modal"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAOlE,MAAM,OAAO,KAAK;;sBAOP,EAAE,EAAE;;;oBAmBS,QAAQ;2BAUiB,SAAS;+BAQtC,IAAI;;IAUtB,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7D,CAAC;IAED,gBAAgB;;QACd,IAAI,MAAA,IAAI,CAAC,iBAAiB,0CAAE,WAAW,EAAE,CAAC;YACxC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;YACzC,IAAI,aAAa,YAAY,WAAW,EAAE,CAAC;gBACzC,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC;YAC1C,CAAC;YAED,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAA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AAC,CAAC,CACF,YAAM,KAAK,EAAC,SAAS,EAAC,EAAE,EAAE,IAAI,CAAC,MAAM,cAE9B,CACR;gBAED;oBACE,4DAAK,KAAK,EAAC,UAAU,EAAC,QAAQ,EAAE,CAAC;wBAC/B,6DAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACS;gBAEhB,IAAI,CAAC,SAAS,IAAI,CACjB,WAAK,KAAK,EAAC,YAAY;oBACrB,YAAM,IAAI,EAAC,QAAQ,GAAG,CAClB,CACP,CACG,CACC,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, ComponentInterface, Element, Event, EventEmitter, Prop, State } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\n\r\nimport { ModalCloseEvent } from \"./modal.interfaces\";\r\nimport { getActiveElement } from \"../../utils/get-active-element\";\r\n\r\n@Component({\r\n tag: \"dso-modal\",\r\n styleUrl: \"modal.scss\",\r\n shadow: true,\r\n})\r\nexport class Modal implements ComponentInterface {\r\n private htmlDialogElement?: HTMLDialogElement;\r\n\r\n @Element()\r\n host!: HTMLDsoModalElement;\r\n\r\n @State()\r\n ariaId = v4();\r\n\r\n /**\r\n * when set the modal will be shown in fullscreen.\r\n */\r\n @Prop({ reflect: true })\r\n fullscreen?: boolean;\r\n\r\n /**\r\n * The title of the Modal.\r\n */\r\n @Prop()\r\n modalTitle?: string;\r\n\r\n /**\r\n * the role for the modal `dialog` | `alert` | `alertdialog`.\r\n */\r\n @Prop()\r\n // eslint-disable-next-line @stencil-community/reserved-member-names\r\n role: string | null = \"dialog\";\r\n\r\n /**\r\n * The element to return focus to after the modal is closed.\r\n *\r\n * * `undefined` will return focus to the previously focused element (default).\r\n * * `false` will not return focus to any element.\r\n * * or, provide your own `HTMLElement` that will receive focus upon closing.\r\n */\r\n @Prop()\r\n returnFocus: false | HTMLElement | undefined = undefined;\r\n\r\n /**\r\n * when `false` the close button in the header will not be rendered. Defaults to `true`.\r\n *\r\n * Needs `modalTitle` to be set.\r\n */\r\n @Prop()\r\n showCloseButton = true;\r\n\r\n private returnFocusElement: HTMLElement | undefined;\r\n\r\n /**\r\n * Emitted when the user wants to close the Modal.\r\n */\r\n @Event()\r\n dsoClose!: EventEmitter<ModalCloseEvent>;\r\n\r\n get hasFooter() {\r\n return this.host.querySelector(\"[slot='footer']\") !== null;\r\n }\r\n\r\n componentDidLoad(): void {\r\n if (this.htmlDialogElement?.isConnected) {\r\n const activeElement = getActiveElement();\r\n if (activeElement instanceof HTMLElement) {\r\n this.returnFocusElement = activeElement;\r\n }\r\n\r\n this.htmlDialogElement.showModal();\r\n }\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.htmlDialogElement?.close();\r\n\r\n if (this.returnFocus === false) {\r\n return;\r\n }\r\n\r\n (this.returnFocus ?? this.returnFocusElement)?.focus();\r\n }\r\n\r\n render() {\r\n return (\r\n <dialog\r\n class=\"dso-modal\"\r\n role={this.role ?? undefined}\r\n aria-modal=\"true\"\r\n aria-labelledby={this.ariaId}\r\n ref={(element) => (this.htmlDialogElement = element)}\r\n onCancel={(e) => {\r\n e.preventDefault();\r\n\r\n this.dsoClose.emit({ originalEvent: e });\r\n }}\r\n >\r\n <div class=\"dso-dialog\" role=\"document\">\r\n {this.modalTitle ? (\r\n <div class=\"dso-header\">\r\n <h2 id={this.ariaId}>{this.modalTitle}</h2>\r\n {this.showCloseButton && (\r\n <button type=\"button\" class=\"dso-close\" onClick={(e) => this.dsoClose.emit({ originalEvent: e })}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">Sluiten</span>\r\n </button>\r\n )}\r\n </div>\r\n ) : (\r\n <span class=\"sr-only\" id={this.ariaId}>\r\n Dialoog\r\n </span>\r\n )}\r\n\r\n <dso-scrollable>\r\n <div class=\"dso-body\" tabIndex={0}>\r\n <slot name=\"body\" />\r\n </div>\r\n </dso-scrollable>\r\n\r\n {this.hasFooter && (\r\n <div class=\"dso-footer\">\r\n <slot name=\"footer\" />\r\n </div>\r\n )}\r\n </div>\r\n </dialog>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAsB,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5G,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAOlE,MAAM,OAAO,KAAK;;sBAOP,EAAE,EAAE;;;oBAmBS,QAAQ;2BAUiB,SAAS;+BAQtC,IAAI;;IAUtB,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7D,CAAC;IAED,gBAAgB;;QACd,IAAI,MAAA,IAAI,CAAC,iBAAiB,0CAAE,WAAW,EAAE,CAAC;YACxC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;YACzC,IAAI,aAAa,YAAY,WAAW,EAAE,CAAC;gBACzC,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC;YAC1C,CAAC;YAED,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,CAAC;QACrC,CAAC;IACH,CAAC;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,iBAAiB,0CAAE,KAAK,EAAE,CAAC;QAEhC,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,EAAE,CAAC;YAC/B,OAAO;QACT,CAAC;QAED,MAAA,CAAC,MAAA,IAAI,CAAC,WAAW,mCAAI,IAAI,CAAC,kBAAkB,CAAC,0CAAE,KAAK,EA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DAAM,IAAI,EAAC,QAAQ,GAAG,CAClB,CACP,CACG,CACC,CACV,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, ComponentInterface, Element, Event, EventEmitter, Prop, State } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\n\r\nimport { ModalCloseEvent } from \"./modal.interfaces\";\r\nimport { getActiveElement } from \"../../utils/get-active-element\";\r\n\r\n@Component({\r\n tag: \"dso-modal\",\r\n styleUrl: \"modal.scss\",\r\n shadow: true,\r\n})\r\nexport class Modal implements ComponentInterface {\r\n private htmlDialogElement?: HTMLDialogElement;\r\n\r\n @Element()\r\n host!: HTMLDsoModalElement;\r\n\r\n @State()\r\n ariaId = v4();\r\n\r\n /**\r\n * when set the modal will be shown in fullscreen.\r\n */\r\n @Prop({ reflect: true })\r\n fullscreen?: boolean;\r\n\r\n /**\r\n * The title of the Modal.\r\n */\r\n @Prop()\r\n modalTitle?: string;\r\n\r\n /**\r\n * the role for the modal `dialog` | `alert` | `alertdialog`.\r\n */\r\n @Prop()\r\n // eslint-disable-next-line @stencil-community/reserved-member-names\r\n role: string | null = \"dialog\";\r\n\r\n /**\r\n * The element to return focus to after the modal is closed.\r\n *\r\n * * `undefined` will return focus to the previously focused element (default).\r\n * * `false` will not return focus to any element.\r\n * * or, provide your own `HTMLElement` that will receive focus upon closing.\r\n */\r\n @Prop()\r\n returnFocus: false | HTMLElement | undefined = undefined;\r\n\r\n /**\r\n * when `false` the close button in the header will not be rendered. Defaults to `true`.\r\n *\r\n * Needs `modalTitle` to be set.\r\n */\r\n @Prop()\r\n showCloseButton = true;\r\n\r\n private returnFocusElement: HTMLElement | undefined;\r\n\r\n /**\r\n * Emitted when the user wants to close the Modal.\r\n */\r\n @Event()\r\n dsoClose!: EventEmitter<ModalCloseEvent>;\r\n\r\n get hasFooter() {\r\n return this.host.querySelector(\"[slot='footer']\") !== null;\r\n }\r\n\r\n componentDidLoad(): void {\r\n if (this.htmlDialogElement?.isConnected) {\r\n const activeElement = getActiveElement();\r\n if (activeElement instanceof HTMLElement) {\r\n this.returnFocusElement = activeElement;\r\n }\r\n\r\n this.htmlDialogElement.showModal();\r\n }\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.htmlDialogElement?.close();\r\n\r\n if (this.returnFocus === false) {\r\n return;\r\n }\r\n\r\n (this.returnFocus ?? this.returnFocusElement)?.focus();\r\n }\r\n\r\n render() {\r\n return (\r\n <dialog\r\n class=\"dso-modal\"\r\n role={this.role ?? undefined}\r\n aria-modal=\"true\"\r\n aria-labelledby={this.ariaId}\r\n ref={(element) => (this.htmlDialogElement = element)}\r\n onCancel={(e) => {\r\n e.preventDefault();\r\n\r\n this.dsoClose.emit({ originalEvent: e });\r\n }}\r\n >\r\n <div class=\"dso-dialog\" role=\"document\">\r\n {this.modalTitle ? (\r\n <div class=\"dso-header\">\r\n <h2 id={this.ariaId}>{this.modalTitle}</h2>\r\n {this.showCloseButton && (\r\n <button type=\"button\" class=\"dso-close\" onClick={(e) => this.dsoClose.emit({ originalEvent: e })}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">Sluiten</span>\r\n </button>\r\n )}\r\n </div>\r\n ) : (\r\n <span class=\"sr-only\" id={this.ariaId}>\r\n Dialoog\r\n </span>\r\n )}\r\n\r\n <dso-scrollable>\r\n <div class=\"dso-body\" tabIndex={0}>\r\n <slot name=\"body\" />\r\n </div>\r\n </dso-scrollable>\r\n\r\n {this.hasFooter && (\r\n <div class=\"dso-footer\">\r\n <slot name=\"footer\" />\r\n </div>\r\n )}\r\n </div>\r\n </dialog>\r\n );\r\n }\r\n}\r\n"]}
@@ -0,0 +1,11 @@
1
+ import { h } from "@stencil/core";
2
+ export const WrapWijzigactie = ({ wijzigactie }, children) => {
3
+ if (wijzigactie === "voegtoe") {
4
+ return h("ins", null, children);
5
+ }
6
+ if (wijzigactie === "verwijder") {
7
+ return h("del", null, children);
8
+ }
9
+ return children;
10
+ };
11
+ //# sourceMappingURL=wrap-wijzigactie.functional-component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrap-wijzigactie.functional-component.js","sourceRoot":"","sources":["../../../../../src/components/ozon-content/functional-components/wrap-wijzigactie.functional-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,CAAC,EAAE,MAAM,eAAe,CAAC;AAOvD,MAAM,CAAC,MAAM,eAAe,GAA8C,CAAC,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,EAAE;IACtG,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,eAAM,QAAQ,CAAO,CAAC;IAC/B,CAAC;IAED,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,eAAM,QAAQ,CAAO,CAAC;IAC/B,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC","sourcesContent":["import { FunctionalComponent, h } from \"@stencil/core\";\r\nimport { OzonContentWijzigActie } from \"../ozon-content.interfaces\";\r\n\r\nexport interface WrapWijzigactieProps {\r\n wijzigactie: OzonContentWijzigActie | undefined;\r\n}\r\n\r\nexport const WrapWijzigactie: FunctionalComponent<WrapWijzigactieProps> = ({ wijzigactie }, children) => {\r\n if (wijzigactie === \"voegtoe\") {\r\n return <ins>{children}</ins>;\r\n }\r\n\r\n if (wijzigactie === \"verwijder\") {\r\n return <del>{children}</del>;\r\n }\r\n\r\n return children;\r\n};\r\n"]}
@@ -0,0 +1,5 @@
1
+ export function parseWijzigactieFromNode(node) {
2
+ const wijzigactie = node instanceof Element ? node.getAttribute("wijzigactie") : undefined;
3
+ return wijzigactie === "voegtoe" || wijzigactie === "verwijder" ? wijzigactie : undefined;
4
+ }
5
+ //# sourceMappingURL=parse-wijzigactie-from-node.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-wijzigactie-from-node.function.js","sourceRoot":"","sources":["../../../../../src/components/ozon-content/functions/parse-wijzigactie-from-node.function.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,wBAAwB,CAAC,IAAU;IACjD,MAAM,WAAW,GAAG,IAAI,YAAY,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE3F,OAAO,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5F,CAAC","sourcesContent":["import { OzonContentWijzigActie } from \"../ozon-content.interfaces\";\r\n\r\nexport function parseWijzigactieFromNode(node: Node): OzonContentWijzigActie | undefined {\r\n const wijzigactie = node instanceof Element ? node.getAttribute(\"wijzigactie\") : undefined;\r\n\r\n return wijzigactie === \"voegtoe\" || wijzigactie === \"verwijder\" ? wijzigactie : undefined;\r\n}\r\n"]}
@@ -0,0 +1,10 @@
1
+ export function wijzigactieToClassName(wijzigactie) {
2
+ if (wijzigactie === "voegtoe") {
3
+ return "editaction-add";
4
+ }
5
+ if (wijzigactie === "verwijder") {
6
+ return "editaction-remove";
7
+ }
8
+ return undefined;
9
+ }
10
+ //# sourceMappingURL=wijzigactie-to-class-name.function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wijzigactie-to-class-name.function.js","sourceRoot":"","sources":["../../../../../src/components/ozon-content/functions/wijzigactie-to-class-name.function.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,sBAAsB,CAAC,WAA+C;IACpF,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import { OzonContentWijzigActie } from \"../ozon-content.interfaces\";\r\n\r\nexport function wijzigactieToClassName(wijzigactie: OzonContentWijzigActie | undefined): string | undefined {\r\n if (wijzigactie === \"voegtoe\") {\r\n return \"editaction-add\";\r\n }\r\n\r\n if (wijzigactie === \"verwijder\") {\r\n return \"editaction-remove\";\r\n }\r\n\r\n return undefined;\r\n}\r\n"]}
@@ -1,6 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { getNodeName } from "../get-node-name.function";
3
- import clsx from "clsx";
3
+ import { wijzigactieToClassName } from "../functions/wijzigactie-to-class-name.function";
4
+ import { parseWijzigactieFromNode } from "../functions/parse-wijzigactie-from-node.function";
5
+ import { WrapWijzigactie } from "../functional-components/wrap-wijzigactie.functional-component";
4
6
  function isNestedAl(path) {
5
7
  return path.some((n) => {
6
8
  const nodeName = getNodeName(n);
@@ -13,22 +15,15 @@ export class OzonContentAlNode {
13
15
  }
14
16
  render(node, { mapNodeToJsx, path, inline }) {
15
17
  let content = mapNodeToJsx(node.childNodes);
16
- const wijzigactie = node.getAttribute("wijzigactie");
17
- const className = clsx({ "editaction-add": wijzigactie === "voegtoe", "editaction-remove": wijzigactie === "verwijder" }) ||
18
- undefined;
18
+ const wijzigactie = parseWijzigactieFromNode(node);
19
+ const className = wijzigactieToClassName(wijzigactie);
19
20
  if (inline || isNestedAl(path)) {
20
21
  content = (h("span", { role: "paragraph", class: className }, content));
21
22
  }
22
23
  else {
23
24
  content = h("p", { class: className }, content);
24
25
  }
25
- if (wijzigactie === "voegtoe") {
26
- content = h("ins", null, content);
27
- }
28
- else if (wijzigactie === "verwijder") {
29
- content = h("del", null, content);
30
- }
31
- return content;
26
+ return h(WrapWijzigactie, { wijzigactie: wijzigactie }, content);
32
27
  }
33
28
  }
34
29
  //# sourceMappingURL=al.node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"al.node.js","sourceRoot":"","sources":["../../../../../src/components/ozon-content/nodes/al.node.tsx"],"names":[],"mappings":"AAAA,OA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CAAO,CAAC;QACjC,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF","sourcesContent":["import { h } from \"@stencil/core\";\r\n\r\nimport { getNodeName } from \"../get-node-name.function\";\r\nimport { OzonContentNodeContext } from \"../ozon-content-node-context.interface\";\r\nimport { OzonContentNode } from \"../ozon-content-node.interface\";\r\nimport clsx from \"clsx\";\r\n\r\nfunction isNestedAl(path: Node[]) {\r\n return path.some((n) => {\r\n const nodeName = getNodeName(n);\r\n\r\n return nodeName === \"Al\" || nodeName === \"Opschrift\";\r\n });\r\n}\r\n\r\nexport class OzonContentAlNode implements OzonContentNode {\r\n name = \"Al\";\r\n\r\n render(node: Element, { mapNodeToJsx, path, inline }: OzonContentNodeContext) {\r\n let content = mapNodeToJsx(node.childNodes);\r\n const wijzigactie = node.getAttribute(\"wijzigactie\");\r\n\r\n const className =\r\n clsx({ \"editaction-add\": wijzigactie === \"voegtoe\", \"editaction-remove\": wijzigactie === \"verwijder\" }) ||\r\n undefined;\r\n\r\n if (inline || isNestedAl(path)) {\r\n content = (\r\n <span role=\"paragraph\" class={className}>\r\n {content}\r\n </span>\r\n );\r\n } else {\r\n content = <p class={className}>{content}</p>;\r\n }\r\n\r\n if (wijzigactie === \"voegtoe\") {\r\n content = <ins>{content}</ins>;\r\n } else if (wijzigactie === \"verwijder\") {\r\n content = <del>{content}</del>;\r\n }\r\n\r\n return content;\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"al.node.js","sourceRoot":"","sources":["../../../../../src/components/ozon-content/nodes/al.node.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAIxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,MAAM,gEAAgE,CAAC;AAEjG,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAEhC,OAAO,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,WAAW,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,OAAO,iBAAiB;IAA9B;QACE,SAAI,GAAG,IAAI,CAAC;IAmBd,CAAC;IAjBC,MAAM,CAAC,IAAa,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAA0B;QAC1E,IAAI,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;QACnD,MAAM,SAAS,GAAG,sBAAsB,CAAC,WAAW,CAAC,CAAC;QAEtD,IAAI,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,OAAO,GAAG,CACR,YAAM,IAAI,EAAC,WAAW,EAAC,KAAK,EAAE,SAAS,IACpC,OAAO,CACH,CACR,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,GAAG,SAAG,KAAK,EAAE,SAAS,IAAG,OAAO,CAAK,CAAC;QAC/C,CAAC;QAED,OAAO,EAAC,eAAe,IAAC,WAAW,EAAE,WAAW,IAAG,OAAO,CAAmB,CAAC;IAChF,CAAC;CACF","sourcesContent":["import { h } from \"@stencil/core\";\r\n\r\nimport { getNodeName } from \"../get-node-name.function\";\r\nimport { OzonContentNodeContext } from \"../ozon-content-node-context.interface\";\r\nimport { OzonContentNode } from \"../ozon-content-node.interface\";\r\n\r\nimport { wijzigactieToClassName } from \"../functions/wijzigactie-to-class-name.function\";\r\nimport { parseWijzigactieFromNode } from \"../functions/parse-wijzigactie-from-node.function\";\r\nimport { WrapWijzigactie } from \"../functional-components/wrap-wijzigactie.functional-component\";\r\n\r\nfunction isNestedAl(path: Node[]) {\r\n return path.some((n) => {\r\n const nodeName = getNodeName(n);\r\n\r\n return nodeName === \"Al\" || nodeName === \"Opschrift\";\r\n });\r\n}\r\n\r\nexport class OzonContentAlNode implements OzonContentNode {\r\n name = \"Al\";\r\n\r\n render(node: Element, { mapNodeToJsx, path, inline }: OzonContentNodeContext) {\r\n let content = mapNodeToJsx(node.childNodes);\r\n const wijzigactie = parseWijzigactieFromNode(node);\r\n const className = wijzigactieToClassName(wijzigactie);\r\n\r\n if (inline || isNestedAl(path)) {\r\n content = (\r\n <span role=\"paragraph\" class={className}>\r\n {content}\r\n </span>\r\n );\r\n } else {\r\n content = <p class={className}>{content}</p>;\r\n }\r\n\r\n return <WrapWijzigactie wijzigactie={wijzigactie}>{content}</WrapWijzigactie>;\r\n }\r\n}\r\n"]}
@@ -1,21 +1,31 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { getNodeName } from "../get-node-name.function";
3
+ import { parseWijzigactieFromNode } from "../functions/parse-wijzigactie-from-node.function";
4
+ import clsx from "clsx";
5
+ import { wijzigactieToClassName } from "../functions/wijzigactie-to-class-name.function";
6
+ import { WrapWijzigactie } from "../functional-components/wrap-wijzigactie.functional-component";
3
7
  export class OzonContentLijstNode {
4
8
  constructor() {
5
9
  this.name = "Lijst";
6
10
  }
7
11
  render(node, { mapNodeToJsx }) {
8
- var _a;
12
+ const wijzigactie = parseWijzigactieFromNode(node);
9
13
  const childNodes = Array.from(node.childNodes);
14
+ const type = parseTypeFromLijstNode(node);
10
15
  const aanhef = childNodes.find((n) => getNodeName(n) === "Lijstaanhef");
11
16
  const sluiting = childNodes.find((n) => getNodeName(n) === "Lijstsluiting");
12
17
  const listItems = childNodes.filter((n) => getNodeName(n) === "Li");
13
- return (h("div", { class: "dso-ozon-lijst od-Lijst" }, aanhef && mapNodeToJsx(aanhef), h("ul", { class: (_a = node.getAttribute("type")) !== null && _a !== void 0 ? _a : "" }, listItems.map((item) => {
18
+ return (h(WrapWijzigactie, { wijzigactie: wijzigactie }, h("div", { class: clsx("dso-ozon-lijst od-Lijst", wijzigactieToClassName(wijzigactie)) }, aanhef && mapNodeToJsx(aanhef), h("ul", { class: type }, listItems.map((item) => {
14
19
  var _a;
15
20
  const itemNodes = Array.from(item.childNodes);
16
21
  const liNummer = (_a = itemNodes.find((n) => getNodeName(n) === "LiNummer")) === null || _a === void 0 ? void 0 : _a.childNodes;
17
- return (h("li", { class: "od-Li" }, liNummer && h("span", { class: "od-LiNummer" }, mapNodeToJsx(liNummer)), mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer"))));
18
- })), sluiting && mapNodeToJsx(sluiting)));
22
+ const liWijzigactie = parseWijzigactieFromNode(item);
23
+ return (h("li", { class: clsx("od-Li", wijzigactieToClassName(liWijzigactie)) }, liNummer && h("span", { class: "od-LiNummer" }, mapNodeToJsx(liNummer)), h(WrapWijzigactie, { wijzigactie: liWijzigactie }, mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer")))));
24
+ })), sluiting && mapNodeToJsx(sluiting))));
19
25
  }
20
26
  }
27
+ function parseTypeFromLijstNode(node) {
28
+ const type = node instanceof Element ? node.getAttribute("type") : undefined;
29
+ return type === "expliciet" || type === "ongemarkeerd" ? type : undefined;
30
+ }
21
31
  //# sourceMappingURL=lijst.node.js.map