@dso-toolkit/core 65.0.2 → 66.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/cjs/dso-alert_6.cjs.entry.js +3 -4
  2. package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +1 -1
  4. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  5. package/dist/cjs/dso-card.cjs.entry.js +7 -35
  6. package/dist/cjs/dso-card.cjs.entry.js.map +1 -1
  7. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +3 -3
  8. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  9. package/dist/cjs/dso-document-card.cjs.entry.js +45 -0
  10. package/dist/cjs/dso-document-card.cjs.entry.js.map +1 -0
  11. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  12. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
  13. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  14. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  15. package/dist/cjs/dso-info-button.cjs.entry.js +2 -2
  16. package/dist/cjs/dso-info-button.cjs.entry.js.map +1 -1
  17. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  18. package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
  19. package/dist/cjs/dso-label_2.cjs.entry.js +4 -4
  20. package/dist/cjs/dso-legend-item.cjs.entry.js +2 -2
  21. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  22. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  23. package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
  24. package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
  25. package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
  26. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  27. package/dist/cjs/dso-modal.cjs.entry.js +2 -2
  28. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +59 -0
  29. package/dist/cjs/dso-plekinfo-card.cjs.entry.js.map +1 -0
  30. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  32. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  33. package/dist/cjs/dso-renvooi_2.cjs.entry.js +1 -1
  34. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  35. package/dist/cjs/dso-scrollable.cjs.entry.js +2 -2
  36. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  37. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  38. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  39. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  40. package/dist/cjs/dso-viewer-grid.cjs.entry.js +1 -1
  41. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
  42. package/dist/cjs/loader.cjs.js +1 -1
  43. package/dist/collection/collection-manifest.json +2 -0
  44. package/dist/collection/components/card/card.css +33 -17
  45. package/dist/collection/components/card/card.interfaces.js.map +1 -1
  46. package/dist/collection/components/card/card.js +35 -79
  47. package/dist/collection/components/card/card.js.map +1 -1
  48. package/dist/collection/components/card-container/card-container.js +1 -1
  49. package/dist/collection/components/date-picker/date-picker.js +1 -1
  50. package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +3 -3
  51. package/dist/collection/components/document-card/document-card.css +90 -0
  52. package/dist/collection/components/document-card/document-card.interfaces.js +2 -0
  53. package/dist/collection/components/document-card/document-card.interfaces.js.map +1 -0
  54. package/dist/collection/components/document-card/document-card.js +111 -0
  55. package/dist/collection/components/document-card/document-card.js.map +1 -0
  56. package/dist/collection/components/document-component/document-component.js +1 -1
  57. package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
  58. package/dist/collection/components/dropdown-menu/dropdown-menu.js +1 -1
  59. package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +2 -2
  60. package/dist/collection/components/highlight-box/highlight-box.js +1 -1
  61. package/dist/collection/components/icon/icon.js +1 -1
  62. package/dist/collection/components/image-overlay/image-overlay.js +1 -2
  63. package/dist/collection/components/image-overlay/image-overlay.js.map +1 -1
  64. package/dist/collection/components/info/info.js +1 -1
  65. package/dist/collection/components/info-button/info-button.css +1 -1
  66. package/dist/collection/components/info-button/info-button.js +1 -1
  67. package/dist/collection/components/input-range/input-range.js +2 -2
  68. package/dist/collection/components/label/label.js +3 -3
  69. package/dist/collection/components/legend-item/legend-item.js +2 -2
  70. package/dist/collection/components/list-button/list-button.js +1 -1
  71. package/dist/collection/components/logo/logo.js +1 -1
  72. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  73. package/dist/collection/components/map-controls/map-controls.js +1 -1
  74. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  75. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  76. package/dist/collection/components/modal/modal.js +2 -2
  77. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  78. package/dist/collection/components/plekinfo-card/plekinfo-card.css +157 -0
  79. package/dist/collection/components/plekinfo-card/plekinfo-card.interfaces.js +2 -0
  80. package/dist/collection/components/plekinfo-card/plekinfo-card.interfaces.js.map +1 -0
  81. package/dist/collection/components/plekinfo-card/plekinfo-card.js +148 -0
  82. package/dist/collection/components/plekinfo-card/plekinfo-card.js.map +1 -0
  83. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  84. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  85. package/dist/collection/components/project-item/project-item.js +1 -1
  86. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  87. package/dist/collection/components/scrollable/scrollable.js +2 -2
  88. package/dist/collection/components/selectable/selectable.js +1 -1
  89. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  90. package/dist/collection/components/table/table.js +1 -1
  91. package/dist/collection/components/tabs/tabs.js +1 -1
  92. package/dist/collection/components/toggletip/toggletip.js +1 -1
  93. package/dist/collection/components/tooltip/tooltip.js +1 -1
  94. package/dist/collection/components/tree-view/tree-view.js +1 -1
  95. package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
  96. package/dist/components/document-component.js +1 -1
  97. package/dist/components/dropdown-menu.js +1 -1
  98. package/dist/components/dso-card-container.js +1 -1
  99. package/dist/components/dso-card.js +9 -38
  100. package/dist/components/dso-card.js.map +1 -1
  101. package/dist/components/dso-date-picker-legacy.js +3 -3
  102. package/dist/components/dso-date-picker.js +1 -1
  103. package/dist/components/dso-document-card.d.ts +11 -0
  104. package/dist/components/dso-document-card.js +68 -0
  105. package/dist/components/dso-document-card.js.map +1 -0
  106. package/dist/components/dso-helpcenter-panel.js +2 -2
  107. package/dist/components/dso-highlight-box.js +1 -1
  108. package/dist/components/dso-input-range.js +2 -2
  109. package/dist/components/dso-legend-item.js +2 -2
  110. package/dist/components/dso-list-button.js +1 -1
  111. package/dist/components/dso-logo.js +1 -1
  112. package/dist/components/dso-map-base-layers.js +1 -1
  113. package/dist/components/dso-map-controls.js +1 -1
  114. package/dist/components/dso-map-overlays.js +1 -1
  115. package/dist/components/dso-mark-bar.js +1 -1
  116. package/dist/components/dso-modal.js +2 -2
  117. package/dist/components/dso-plekinfo-card.d.ts +11 -0
  118. package/dist/components/dso-plekinfo-card.js +83 -0
  119. package/dist/components/dso-plekinfo-card.js.map +1 -0
  120. package/dist/components/dso-progress-bar.js +1 -1
  121. package/dist/components/dso-project-item.js +1 -1
  122. package/dist/components/dso-tabs.js +1 -1
  123. package/dist/components/dso-tree-view.js +1 -1
  124. package/dist/components/dso-viewer-grid.js +1 -1
  125. package/dist/components/dsot-document-component-demo.js +1 -1
  126. package/dist/components/icon.js +1 -1
  127. package/dist/components/image-overlay.js +1 -2
  128. package/dist/components/image-overlay.js.map +1 -1
  129. package/dist/components/index.d.ts +4 -0
  130. package/dist/components/index.js +2 -0
  131. package/dist/components/index.js.map +1 -1
  132. package/dist/components/info-button.js +2 -2
  133. package/dist/components/info-button.js.map +1 -1
  134. package/dist/components/info.js +1 -1
  135. package/dist/components/label.js +3 -3
  136. package/dist/components/ozon-content.js +1 -1
  137. package/dist/components/progress-indicator.js +1 -1
  138. package/dist/components/responsive-element.js +1 -1
  139. package/dist/components/scrollable.js +2 -2
  140. package/dist/components/selectable.js +1 -1
  141. package/dist/components/slide-toggle.js +1 -1
  142. package/dist/components/table.js +1 -1
  143. package/dist/components/toggletip.js +1 -1
  144. package/dist/components/tooltip.js +1 -1
  145. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  146. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  147. package/dist/dso-toolkit/p-05094f69.entry.js +2 -0
  148. package/dist/dso-toolkit/{p-9772e3b6.entry.js → p-228e4c2d.entry.js} +2 -2
  149. package/dist/dso-toolkit/{p-33629822.entry.js → p-34f1afd3.entry.js} +2 -2
  150. package/dist/dso-toolkit/{p-e4eed4a2.entry.js → p-3be4c978.entry.js} +2 -2
  151. package/dist/dso-toolkit/{p-4948f5e5.entry.js → p-3cdfb92e.entry.js} +2 -2
  152. package/dist/dso-toolkit/p-462d045d.entry.js +2 -0
  153. package/dist/dso-toolkit/p-462d045d.entry.js.map +1 -0
  154. package/dist/dso-toolkit/{p-34c19fc1.entry.js → p-64bf55d1.entry.js} +2 -2
  155. package/dist/dso-toolkit/{p-19dd99c6.entry.js → p-65f73444.entry.js} +2 -2
  156. package/dist/dso-toolkit/p-6a414b15.entry.js +2 -0
  157. package/dist/dso-toolkit/{p-d7358e77.entry.js.map → p-6a414b15.entry.js.map} +1 -1
  158. package/dist/dso-toolkit/p-6ff3146e.entry.js +2 -0
  159. package/dist/dso-toolkit/p-6ff3146e.entry.js.map +1 -0
  160. package/dist/dso-toolkit/{p-ff8a8429.entry.js → p-8b9ee8d3.entry.js} +2 -2
  161. package/dist/dso-toolkit/{p-c0460667.entry.js → p-8dbf4868.entry.js} +2 -2
  162. package/dist/dso-toolkit/{p-e563fe5b.entry.js → p-950d43d8.entry.js} +2 -2
  163. package/dist/dso-toolkit/p-9a3879d8.entry.js +2 -0
  164. package/dist/dso-toolkit/p-9a3879d8.entry.js.map +1 -0
  165. package/dist/dso-toolkit/{p-0cd85e9b.entry.js → p-9ebf26d8.entry.js} +2 -2
  166. package/dist/dso-toolkit/{p-54dd8d20.entry.js → p-a168dbd1.entry.js} +2 -2
  167. package/dist/dso-toolkit/{p-9af9870b.entry.js → p-a6f19891.entry.js} +2 -2
  168. package/dist/dso-toolkit/{p-4d1af9b6.entry.js → p-a801f428.entry.js} +2 -2
  169. package/dist/dso-toolkit/{p-afb2d842.entry.js → p-a9427715.entry.js} +2 -2
  170. package/dist/dso-toolkit/{p-e96c2531.entry.js → p-ab22347c.entry.js} +2 -2
  171. package/dist/dso-toolkit/{p-2ab51dba.entry.js → p-ae076d5b.entry.js} +2 -2
  172. package/dist/dso-toolkit/{p-f9a0b819.entry.js → p-bb87ef29.entry.js} +2 -2
  173. package/dist/dso-toolkit/p-bda2d5ce.entry.js +2 -0
  174. package/dist/dso-toolkit/{p-85d58afe.entry.js → p-c228d56a.entry.js} +2 -2
  175. package/dist/dso-toolkit/{p-2a83ec2c.entry.js → p-c7b2a5ef.entry.js} +2 -2
  176. package/dist/dso-toolkit/p-d67efa9d.entry.js +2 -0
  177. package/dist/dso-toolkit/p-d67efa9d.entry.js.map +1 -0
  178. package/dist/dso-toolkit/{p-5db11fa4.entry.js → p-d885c651.entry.js} +2 -2
  179. package/dist/dso-toolkit/{p-2f9c5d0e.entry.js → p-dd6cf2cd.entry.js} +2 -2
  180. package/dist/dso-toolkit/{p-4e6511c3.entry.js → p-e132910b.entry.js} +2 -2
  181. package/dist/dso-toolkit/{p-5fa80df5.entry.js → p-e3fea9f8.entry.js} +2 -2
  182. package/dist/dso-toolkit/{p-18318bd5.entry.js → p-e773c47e.entry.js} +2 -2
  183. package/dist/dso-toolkit/{p-d3d7cd07.entry.js → p-e96183ae.entry.js} +2 -2
  184. package/dist/dso-toolkit/{p-aa4d13b4.entry.js → p-e9896db2.entry.js} +2 -2
  185. package/dist/dso-toolkit/{p-0c228908.entry.js → p-ea46d648.entry.js} +2 -2
  186. package/dist/dso-toolkit/{p-448d84e3.entry.js → p-ef8fbe01.entry.js} +2 -2
  187. package/dist/esm/dso-alert_6.entry.js +3 -4
  188. package/dist/esm/dso-alert_6.entry.js.map +1 -1
  189. package/dist/esm/dso-annotation-locatie_2.entry.js +1 -1
  190. package/dist/esm/dso-card-container.entry.js +1 -1
  191. package/dist/esm/dso-card.entry.js +7 -35
  192. package/dist/esm/dso-card.entry.js.map +1 -1
  193. package/dist/esm/dso-date-picker-legacy.entry.js +3 -3
  194. package/dist/esm/dso-date-picker.entry.js +1 -1
  195. package/dist/esm/dso-document-card.entry.js +41 -0
  196. package/dist/esm/dso-document-card.entry.js.map +1 -0
  197. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  198. package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
  199. package/dist/esm/dso-highlight-box.entry.js +1 -1
  200. package/dist/esm/dso-icon.entry.js +1 -1
  201. package/dist/esm/dso-info-button.entry.js +2 -2
  202. package/dist/esm/dso-info-button.entry.js.map +1 -1
  203. package/dist/esm/dso-info_2.entry.js +2 -2
  204. package/dist/esm/dso-input-range.entry.js +2 -2
  205. package/dist/esm/dso-label_2.entry.js +4 -4
  206. package/dist/esm/dso-legend-item.entry.js +2 -2
  207. package/dist/esm/dso-list-button.entry.js +1 -1
  208. package/dist/esm/dso-logo.entry.js +1 -1
  209. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  210. package/dist/esm/dso-map-controls.entry.js +1 -1
  211. package/dist/esm/dso-map-overlays.entry.js +1 -1
  212. package/dist/esm/dso-mark-bar.entry.js +1 -1
  213. package/dist/esm/dso-modal.entry.js +2 -2
  214. package/dist/esm/dso-plekinfo-card.entry.js +55 -0
  215. package/dist/esm/dso-plekinfo-card.entry.js.map +1 -0
  216. package/dist/esm/dso-progress-bar.entry.js +1 -1
  217. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  218. package/dist/esm/dso-project-item.entry.js +1 -1
  219. package/dist/esm/dso-renvooi_2.entry.js +1 -1
  220. package/dist/esm/dso-responsive-element.entry.js +1 -1
  221. package/dist/esm/dso-scrollable.entry.js +2 -2
  222. package/dist/esm/dso-tabs.entry.js +1 -1
  223. package/dist/esm/dso-toggletip.entry.js +1 -1
  224. package/dist/esm/dso-toolkit.js +1 -1
  225. package/dist/esm/dso-tree-view.entry.js +1 -1
  226. package/dist/esm/dso-viewer-grid.entry.js +1 -1
  227. package/dist/esm/dsot-document-component-demo.entry.js +1 -1
  228. package/dist/esm/loader.js +1 -1
  229. package/dist/types/components/card/card.d.ts +14 -18
  230. package/dist/types/components/card/card.interfaces.d.ts +2 -3
  231. package/dist/types/components/document-card/document-card.d.ts +29 -0
  232. package/dist/types/components/document-card/document-card.interfaces.d.ts +5 -0
  233. package/dist/types/components/plekinfo-card/plekinfo-card.d.ts +34 -0
  234. package/dist/types/components/plekinfo-card/plekinfo-card.interfaces.d.ts +6 -0
  235. package/dist/types/components.d.ts +119 -21
  236. package/package.json +2 -2
  237. package/dist/dso-toolkit/p-2e413e3d.entry.js +0 -2
  238. package/dist/dso-toolkit/p-391deb2a.entry.js +0 -2
  239. package/dist/dso-toolkit/p-391deb2a.entry.js.map +0 -1
  240. package/dist/dso-toolkit/p-502f51b9.entry.js +0 -2
  241. package/dist/dso-toolkit/p-88aebd15.entry.js +0 -2
  242. package/dist/dso-toolkit/p-88aebd15.entry.js.map +0 -1
  243. package/dist/dso-toolkit/p-d7358e77.entry.js +0 -2
  244. /package/dist/dso-toolkit/{p-2e413e3d.entry.js.map → p-05094f69.entry.js.map} +0 -0
  245. /package/dist/dso-toolkit/{p-9772e3b6.entry.js.map → p-228e4c2d.entry.js.map} +0 -0
  246. /package/dist/dso-toolkit/{p-33629822.entry.js.map → p-34f1afd3.entry.js.map} +0 -0
  247. /package/dist/dso-toolkit/{p-e4eed4a2.entry.js.map → p-3be4c978.entry.js.map} +0 -0
  248. /package/dist/dso-toolkit/{p-4948f5e5.entry.js.map → p-3cdfb92e.entry.js.map} +0 -0
  249. /package/dist/dso-toolkit/{p-34c19fc1.entry.js.map → p-64bf55d1.entry.js.map} +0 -0
  250. /package/dist/dso-toolkit/{p-19dd99c6.entry.js.map → p-65f73444.entry.js.map} +0 -0
  251. /package/dist/dso-toolkit/{p-ff8a8429.entry.js.map → p-8b9ee8d3.entry.js.map} +0 -0
  252. /package/dist/dso-toolkit/{p-c0460667.entry.js.map → p-8dbf4868.entry.js.map} +0 -0
  253. /package/dist/dso-toolkit/{p-e563fe5b.entry.js.map → p-950d43d8.entry.js.map} +0 -0
  254. /package/dist/dso-toolkit/{p-0cd85e9b.entry.js.map → p-9ebf26d8.entry.js.map} +0 -0
  255. /package/dist/dso-toolkit/{p-54dd8d20.entry.js.map → p-a168dbd1.entry.js.map} +0 -0
  256. /package/dist/dso-toolkit/{p-9af9870b.entry.js.map → p-a6f19891.entry.js.map} +0 -0
  257. /package/dist/dso-toolkit/{p-4d1af9b6.entry.js.map → p-a801f428.entry.js.map} +0 -0
  258. /package/dist/dso-toolkit/{p-afb2d842.entry.js.map → p-a9427715.entry.js.map} +0 -0
  259. /package/dist/dso-toolkit/{p-e96c2531.entry.js.map → p-ab22347c.entry.js.map} +0 -0
  260. /package/dist/dso-toolkit/{p-2ab51dba.entry.js.map → p-ae076d5b.entry.js.map} +0 -0
  261. /package/dist/dso-toolkit/{p-f9a0b819.entry.js.map → p-bb87ef29.entry.js.map} +0 -0
  262. /package/dist/dso-toolkit/{p-502f51b9.entry.js.map → p-bda2d5ce.entry.js.map} +0 -0
  263. /package/dist/dso-toolkit/{p-85d58afe.entry.js.map → p-c228d56a.entry.js.map} +0 -0
  264. /package/dist/dso-toolkit/{p-2a83ec2c.entry.js.map → p-c7b2a5ef.entry.js.map} +0 -0
  265. /package/dist/dso-toolkit/{p-5db11fa4.entry.js.map → p-d885c651.entry.js.map} +0 -0
  266. /package/dist/dso-toolkit/{p-2f9c5d0e.entry.js.map → p-dd6cf2cd.entry.js.map} +0 -0
  267. /package/dist/dso-toolkit/{p-4e6511c3.entry.js.map → p-e132910b.entry.js.map} +0 -0
  268. /package/dist/dso-toolkit/{p-5fa80df5.entry.js.map → p-e3fea9f8.entry.js.map} +0 -0
  269. /package/dist/dso-toolkit/{p-18318bd5.entry.js.map → p-e773c47e.entry.js.map} +0 -0
  270. /package/dist/dso-toolkit/{p-d3d7cd07.entry.js.map → p-e96183ae.entry.js.map} +0 -0
  271. /package/dist/dso-toolkit/{p-aa4d13b4.entry.js.map → p-e9896db2.entry.js.map} +0 -0
  272. /package/dist/dso-toolkit/{p-0c228908.entry.js.map → p-ea46d648.entry.js.map} +0 -0
  273. /package/dist/dso-toolkit/{p-448d84e3.entry.js.map → p-ef8fbe01.entry.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plekinfo-card.interfaces.js","sourceRoot":"","sources":["../../../../src/components/plekinfo-card/plekinfo-card.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface PlekinfoCardClickEvent {\r\n originalEvent: MouseEvent;\r\n /** True when user clicked the card while holding Ctrl, Alt or other modifiers, or when the card is right-clicked. Can be used to determine navigation. */\r\n isModifiedEvent: boolean;\r\n}\r\n\r\nexport type PlekinfoWijzigactie = \"voegtoe\" | \"verwijder\";\r\n"]}
@@ -0,0 +1,148 @@
1
+ import { h, Host, forceUpdate, } from "@stencil/core";
2
+ import { isModifiedEvent } from "../../utils/is-modified-event";
3
+ const WrapWijzigactie = ({ wijzigactie }, children) => {
4
+ if (wijzigactie === "voegtoe") {
5
+ return h("ins", { class: "dso-plekinfo-card-container" }, children);
6
+ }
7
+ if (wijzigactie === "verwijder") {
8
+ return h("del", { class: "dso-plekinfo-card-container" }, children);
9
+ }
10
+ return h("div", { class: "dso-plekinfo-card-container" }, children);
11
+ };
12
+ /**
13
+ * @slot symbol - An optional slot to place a symbol, representing the plekinfo item, in.
14
+ * @slot heading - A slot to place the title of the card in.
15
+ * @slot meta - An optional slot to place a `Label` in.
16
+ * @slot content - An optional slot to place `Rich Content` in.
17
+ */
18
+ export class PlekinfoCard {
19
+ constructor() {
20
+ this.wijzigactie = undefined;
21
+ this.href = undefined;
22
+ this.active = undefined;
23
+ }
24
+ connectedCallback() {
25
+ this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));
26
+ this.mutationObserver.observe(this.host, { attributes: true, childList: true });
27
+ }
28
+ disconnectedCallback() {
29
+ var _a;
30
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
31
+ delete this.mutationObserver;
32
+ }
33
+ clickEventHandler(e) {
34
+ if (!(e.target instanceof HTMLElement) || !this.href) {
35
+ return;
36
+ }
37
+ return this.dsoPlekinfoCardClick.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });
38
+ }
39
+ get symbolSlottedElement() {
40
+ return this.host.querySelector("[slot='symbol']");
41
+ }
42
+ get metaSlottedElement() {
43
+ return this.host.querySelector("[slot='meta']");
44
+ }
45
+ render() {
46
+ const hasSymbol = this.symbolSlottedElement !== null;
47
+ return (h(Host, { key: '37cd380e9794177ebec616327eabaedbbe5d7fc5', "has-symbol": hasSymbol }, h(WrapWijzigactie, { key: '349d9142ce7a49ec456b2d2431fe690b31dff7db', wijzigactie: this.wijzigactie }, h("div", { key: '4f7a68e5fbdcdd1cedad76e15949d1073b79d246', class: "dso-plekinfo-card-symbol", hidden: !hasSymbol }, h("slot", { key: '3fdc691ed1a17ee8d580a3d70cf343e5c115f3c2', name: "symbol" })), h("div", { key: 'b0d118f634389a8eff0ab0997f98ce9badac3ff3', class: "dso-plekinfo-card-heading" }, h("a", { key: 'c7d18df577714e0afe5c62a33be189f4681343c5', href: this.href, class: "heading-anchor", onClick: (e) => this.clickEventHandler(e) }, h("slot", { key: '3d8318ec4f0bf9e0479067a90a990ffbfcb49d53', name: "heading" }), h("dso-icon", { key: 'a1b5beefcd8ffbfc05f41e15a018a1c6fb41e4dd', icon: "chevron-right" })), this.metaSlottedElement !== null && h("slot", { key: 'dfb3867000025ad5aa55e2bccd7257d1ad27d340', name: "meta" })), h("div", { key: 'c1237a91ede9d02c37036383642635db0d5501c9', class: "dso-plekinfo-card-content" }, h("slot", { key: 'f168d9ce668308ec4afe95b6f893de53cecf49d5', name: "content" })))));
48
+ }
49
+ static get is() { return "dso-plekinfo-card"; }
50
+ static get encapsulation() { return "shadow"; }
51
+ static get originalStyleUrls() {
52
+ return {
53
+ "$": ["plekinfo-card.scss"]
54
+ };
55
+ }
56
+ static get styleUrls() {
57
+ return {
58
+ "$": ["plekinfo-card.css"]
59
+ };
60
+ }
61
+ static get properties() {
62
+ return {
63
+ "wijzigactie": {
64
+ "type": "string",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "PlekinfoWijzigactie",
68
+ "resolved": "\"verwijder\" | \"voegtoe\" | undefined",
69
+ "references": {
70
+ "PlekinfoWijzigactie": {
71
+ "location": "import",
72
+ "path": "./plekinfo-card.interfaces",
73
+ "id": "src/components/plekinfo-card/plekinfo-card.interfaces.ts::PlekinfoWijzigactie"
74
+ }
75
+ }
76
+ },
77
+ "required": false,
78
+ "optional": true,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": "An optional 'wijzigactie' that signals if the plekinfo on the card is added or removed."
82
+ },
83
+ "attribute": "wijzigactie",
84
+ "reflect": true
85
+ },
86
+ "href": {
87
+ "type": "string",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string | undefined",
91
+ "resolved": "string | undefined",
92
+ "references": {}
93
+ },
94
+ "required": true,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": "The URL to which the PlekinfoCard heading links."
99
+ },
100
+ "attribute": "href",
101
+ "reflect": true
102
+ },
103
+ "active": {
104
+ "type": "boolean",
105
+ "mutable": false,
106
+ "complexType": {
107
+ "original": "boolean",
108
+ "resolved": "boolean | undefined",
109
+ "references": {}
110
+ },
111
+ "required": false,
112
+ "optional": true,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": "Makes the PlekinfoCard active."
116
+ },
117
+ "attribute": "active",
118
+ "reflect": true
119
+ }
120
+ };
121
+ }
122
+ static get events() {
123
+ return [{
124
+ "method": "dsoPlekinfoCardClick",
125
+ "name": "dsoPlekinfoCardClick",
126
+ "bubbles": true,
127
+ "cancelable": true,
128
+ "composed": true,
129
+ "docs": {
130
+ "tags": [],
131
+ "text": "Emitted when the PlekinfoCard heading is clicked."
132
+ },
133
+ "complexType": {
134
+ "original": "PlekinfoCardClickEvent",
135
+ "resolved": "PlekinfoCardClickEvent",
136
+ "references": {
137
+ "PlekinfoCardClickEvent": {
138
+ "location": "import",
139
+ "path": "./plekinfo-card.interfaces",
140
+ "id": "src/components/plekinfo-card/plekinfo-card.interfaces.ts::PlekinfoCardClickEvent"
141
+ }
142
+ }
143
+ }
144
+ }];
145
+ }
146
+ static get elementRef() { return "host"; }
147
+ }
148
+ //# sourceMappingURL=plekinfo-card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plekinfo-card.js","sourceRoot":"","sources":["../../../../src/components/plekinfo-card/plekinfo-card.tsx"],"names":[],"mappings":"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","sourcesContent":["import {\r\n h,\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Host,\r\n Prop,\r\n forceUpdate,\r\n FunctionalComponent,\r\n} from \"@stencil/core\";\r\n\r\nimport { isModifiedEvent } from \"../../utils/is-modified-event\";\r\n\r\nimport { PlekinfoCardClickEvent, PlekinfoWijzigactie } from \"./plekinfo-card.interfaces\";\r\n\r\ninterface WrapWijzigactieProps {\r\n wijzigactie: PlekinfoWijzigactie | undefined;\r\n}\r\n\r\nconst WrapWijzigactie: FunctionalComponent<WrapWijzigactieProps> = ({ wijzigactie }, children) => {\r\n if (wijzigactie === \"voegtoe\") {\r\n return <ins class=\"dso-plekinfo-card-container\">{children}</ins>;\r\n }\r\n\r\n if (wijzigactie === \"verwijder\") {\r\n return <del class=\"dso-plekinfo-card-container\">{children}</del>;\r\n }\r\n\r\n return <div class=\"dso-plekinfo-card-container\">{children}</div>;\r\n};\r\n\r\n/**\r\n * @slot symbol - An optional slot to place a symbol, representing the plekinfo item, in.\r\n * @slot heading - A slot to place the title of the card in.\r\n * @slot meta - An optional slot to place a `Label` in.\r\n * @slot content - An optional slot to place `Rich Content` in.\r\n */\r\n@Component({\r\n tag: \"dso-plekinfo-card\",\r\n styleUrl: \"plekinfo-card.scss\",\r\n shadow: true,\r\n})\r\nexport class PlekinfoCard implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoPlekinfoCardElement;\r\n\r\n /**\r\n * An optional 'wijzigactie' that signals if the plekinfo on the card is added or removed.\r\n */\r\n @Prop({ reflect: true })\r\n wijzigactie?: PlekinfoWijzigactie;\r\n\r\n /**\r\n * The URL to which the PlekinfoCard heading links.\r\n */\r\n @Prop({ reflect: true })\r\n href!: string | undefined;\r\n\r\n /**\r\n * Makes the PlekinfoCard active.\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when the PlekinfoCard heading is clicked.\r\n */\r\n @Event()\r\n dsoPlekinfoCardClick!: EventEmitter<PlekinfoCardClickEvent>;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n connectedCallback(): void {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, { attributes: true, childList: true });\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n\r\n private clickEventHandler(e: MouseEvent) {\r\n if (!(e.target instanceof HTMLElement) || !this.href) {\r\n return;\r\n }\r\n\r\n return this.dsoPlekinfoCardClick.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });\r\n }\r\n\r\n get symbolSlottedElement() {\r\n return this.host.querySelector(\"[slot='symbol']\");\r\n }\r\n\r\n get metaSlottedElement() {\r\n return this.host.querySelector(\"[slot='meta']\");\r\n }\r\n\r\n render() {\r\n const hasSymbol = this.symbolSlottedElement !== null;\r\n\r\n return (\r\n <Host has-symbol={hasSymbol}>\r\n <WrapWijzigactie wijzigactie={this.wijzigactie}>\r\n <div class=\"dso-plekinfo-card-symbol\" hidden={!hasSymbol}>\r\n <slot name=\"symbol\" />\r\n </div>\r\n <div class=\"dso-plekinfo-card-heading\">\r\n <a href={this.href} class=\"heading-anchor\" onClick={(e) => this.clickEventHandler(e)}>\r\n <slot name=\"heading\" />\r\n <dso-icon icon=\"chevron-right\"></dso-icon>\r\n </a>\r\n {this.metaSlottedElement !== null && <slot name=\"meta\" />}\r\n </div>\r\n <div class=\"dso-plekinfo-card-content\">\r\n <slot name=\"content\" />\r\n </div>\r\n </WrapWijzigactie>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -8,7 +8,7 @@ export class ProgressBar {
8
8
  render() {
9
9
  const progressNumber = Math.round(this.progress);
10
10
  const progressPercentage = `${progressNumber}%`;
11
- return (h("div", { key: 'd1b4e6eb8fc5a1ee9b96f0774474420c271f759b', class: "progress" }, h("span", { key: 'b7a00ad201b2c7001c6ec7286b4aed496b7d8d2a', class: "progress-bar", role: "progressbar", "aria-labelledby": "progress-bar-label", "aria-valuenow": progressNumber, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("span", { key: '471b0487eeec277707610bc0b81bb2c860fe02ac', style: { width: `${progressPercentage}` } })), h("span", { key: '513aa7c0f9881c9d95d54264553b16ddf0121e42', id: "progress-bar-label" }, h("slot", { key: '6ad0ef5debf6fb5d67c3b38ab0ad148c855a4242' }))));
11
+ return (h("div", { key: '6a49ff9babffe7922e2a3a5b545cd3d132e39787', class: "progress" }, h("span", { key: 'e5a05911d83b5ffcc9c9fe800944b30ba74ca19a', class: "progress-bar", role: "progressbar", "aria-labelledby": "progress-bar-label", "aria-valuenow": progressNumber, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("span", { key: '425b8690e838da624b0436fe6b50fc0383d05cf4', style: { width: `${progressPercentage}` } })), h("span", { key: 'ad1bbcaed9fc43340b1e6a21a7d82ccef0cf4256', id: "progress-bar-label" }, h("slot", { key: '12c73a2b1de830c868f72d9c40b50808958955eb' }))));
12
12
  }
13
13
  static get is() { return "dso-progress-bar"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -6,7 +6,7 @@ export class Progressindicator {
6
6
  this.block = undefined;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: '440766221ff19b173b505532d6b60be79b623317' }, h("span", { key: '781521a235e3b3c364366557640730aee91bccd7', class: "dso-progress-indicator-spinner", role: "progressbar", "aria-labelledby": "progress-indicator-label" }, h("dso-icon", { key: 'ceecb6ba70c42f432d59ae0fc12402c4e35034c2', icon: "spinner" })), h("span", { key: '0ef394a7b0d5923b4553d281a4f867b0e89fa441', id: "progress-indicator-label", class: "dso-progress-indicator-label" }, this.label)));
9
+ return (h(Host, { key: '883509272d723b8104ffbcb476d6ba9007104088' }, h("span", { key: '27bc8c852af735c19e928e5bf07ca856f26846ae', class: "dso-progress-indicator-spinner", role: "progressbar", "aria-labelledby": "progress-indicator-label" }, h("dso-icon", { key: '21d86cd9a6573926b376e4e478945477ea191776', icon: "spinner" })), h("span", { key: '2957362f7e96d955310de9821f7744e88892324c', id: "progress-indicator-label", class: "dso-progress-indicator-label" }, this.label)));
10
10
  }
11
11
  static get is() { return "dso-progress-indicator"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,7 @@ export class ProjectItem {
4
4
  this.label = undefined;
5
5
  }
6
6
  render() {
7
- return (h(Fragment, null, h("div", { key: '7e8ce0768a4d29b8f0e0870e514fb0cb839dca70', class: "project-item-header" }, h("div", { key: '5c7b01e378c96a972b1780aff226af0437569148', class: "project-item-title" }, h("slot", { key: 'e8af48f1b1ef400f6598b299dc424e1c068c493a', name: "title" }), this.label && (h("dso-label", { key: '7d4d6bfb4104391af6feeef50c8abfdf0112a19c', status: "danger", compact: true }, this.label))), h("div", { key: 'cb66a125f18494e5504a86a530a92fc07b972fd9', class: "project-item-actions" }, h("slot", { key: '3fd674fe94215b163cbd741febf8a255d2e69ee6', name: "actions" }))), h("div", { key: 'cee317bf938c9d5f3943f2f5df46377748963108', class: "project-item-info" }, h("div", { key: '91402c05f20e06d21e219be63da508c2116beb45', class: "project-item-progress" }, h("slot", { key: '60fe0fa198bd97e757ce867460ef1b0124a56129', name: "progress" })), h("div", { key: '2f2252fe030f12d87d956848aca9bd6559794fbf', class: "project-item-status" }, h("slot", { key: '7e15b524f5ca6d20dc8b9550dd80162614e1c3c6', name: "status" })))));
7
+ return (h(Fragment, null, h("div", { key: '86884445244ba13707f047d729a8b193ee381635', class: "project-item-header" }, h("div", { key: '326f36e6b4765e903f18781a8c465b4741153a50', class: "project-item-title" }, h("slot", { key: 'd48ca3b2801f525970effc4f6c48caf6f467a12c', name: "title" }), this.label && (h("dso-label", { key: '046b005d9a0dcae01c34c6549878fc4205a1f24d', status: "danger", compact: true }, this.label))), h("div", { key: 'f2e5e03cfa19b75fea2e7da0d20a44fb23e28573', class: "project-item-actions" }, h("slot", { key: '939dcd5c9312905143d429ef25acbcb9b71d68dc', name: "actions" }))), h("div", { key: '116ad5128076f3c07d5a7314a6aae6d35c4003b2', class: "project-item-info" }, h("div", { key: 'e827260fe0ddc522827433e26cf8521400f5ca0b', class: "project-item-progress" }, h("slot", { key: '91113a46e216c0fb1a7b27ed997e77ac3e33cfa1', name: "progress" })), h("div", { key: 'bc23f3f23342c7f1285839406cf1a0108d546fdd', class: "project-item-status" }, h("slot", { key: '865229ea9fcf2243778e4e4d52a67941c9cc6604', name: "status" })))));
8
8
  }
9
9
  static get is() { return "dso-project-item"; }
10
10
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class ResponsiveElement {
40
40
  this.observer.unobserve(this.host);
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: 'da7d53fadbf366d94af9b81a7fbe82d5b841fae6', small: this.sizeAlias === "small", medium: this.sizeAlias === "medium", large: this.sizeAlias === "large" }, h("slot", { key: '7f5760e962121bb49d6df0bbec7480f8cdca2e0b' })));
43
+ return (h(Host, { key: '7df8a0107dec10534a1ee68c12b0718675ca37d0', small: this.sizeAlias === "small", medium: this.sizeAlias === "medium", large: this.sizeAlias === "large" }, h("slot", { key: '376cdb5c8b4b349877b7289b9bb5b0ae597620b6' })));
44
44
  }
45
45
  static get is() { return "dso-responsive-element"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -81,9 +81,9 @@ export class Scrollable {
81
81
  this.slottedElements.forEach((element) => resizeObserver.unobserve(element));
82
82
  }
83
83
  render() {
84
- return (h("div", { key: 'b786c2765a723299a16956239d0a3f2814bdb365', ref: (el) => (this.shadowContainerDiv = el), class: "dso-shadow-container" }, h("div", { key: '32629e90bd713faf99192825f4d5f6b730949724', ref: (el) => (this.scrollContainerDiv = el), class: clsx("dso-scroll-container", {
84
+ return (h("div", { key: 'ff6794620912d49f124f4bac4222fd278dbd6b29', ref: (el) => (this.shadowContainerDiv = el), class: "dso-shadow-container" }, h("div", { key: '532d8178bd3755a10e3d3adbe582c8dfa894347a', ref: (el) => (this.scrollContainerDiv = el), class: clsx("dso-scroll-container", {
85
85
  [`dso-scroll-${this.scrollPosition}`]: this.scrollPosition !== "noScroll",
86
- }), onScroll: () => this._setScrollState() }, h("slot", { key: '3d02e6603fb849f9535529ae5143452e0ee0484e' }))));
86
+ }), onScroll: () => this._setScrollState() }, h("slot", { key: 'ae425415162ffd8d13adae1e42c9e4728106d5d5' }))));
87
87
  }
88
88
  static get is() { return "dso-scrollable"; }
89
89
  static get encapsulation() { return "shadow"; }
@@ -63,7 +63,7 @@ export class Selectable {
63
63
  render() {
64
64
  var _a;
65
65
  const hasInfo = !!this.host.querySelector('[slot="info"]');
66
- return (h(Fragment, { key: '7bc5f9b9e029af047da32ea329ec28ef5a1b9a6e' }, h("div", { key: 'e1d8151cfc4a179c574cdd22f5b8a522433f9896', class: "dso-selectable-container" }, h("div", { key: 'b7089b2e8b02bacaf0485351726d019b2d3faaf3', class: clsx("dso-selectable-input-wrapper", { "dso-keyboard-focus": this.keyboardFocus }) }, h("input", { key: 'bbf2571b7578706abf523f5fc0d66435159b5ab5', type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: this.handleOnChange, onBlur: () => (this.keyboardFocus = false), onKeyUp: () => (this.keyboardFocus = true), ref: (el) => (this.input = el) }), !this.labelledById ? (h("label", { htmlFor: this.getIdentifier() }, h("slot", null))) : (h("label", null, h("slot", null)))), hasInfo && !this.infoFixed && (h("dso-info-button", { key: 'c03e4642630e5a7dfd902af7389eb8eefedef6f7', active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) }))), hasInfo && (h("dso-info", { key: 'bd49a93be3a86178bb3b3ea6df7744baeb746d3d', id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", { key: 'a34fe7983e523fcb8b07d90bcd3b48a4359abb31' }, h("slot", { key: 'd733610afc9465da63844b0c8430ddde7227fae5', name: "info" })))), h("slot", { key: '7af6229ca414ff808ea348d396f51f6674ba30e1', name: "options" })));
66
+ return (h(Fragment, { key: '8eaf459e1b418a9c5eb61c12939aa137b1e9a9b7' }, h("div", { key: 'ecbf02645dd338d6071fb06426662d78649bd8c8', class: "dso-selectable-container" }, h("div", { key: 'c244e0254c468e30c22ec958c6be91e532d77392', class: clsx("dso-selectable-input-wrapper", { "dso-keyboard-focus": this.keyboardFocus }) }, h("input", { key: 'df920ead7e69f3e136a058cd5ab7953ecad8c707', type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: this.handleOnChange, onBlur: () => (this.keyboardFocus = false), onKeyUp: () => (this.keyboardFocus = true), ref: (el) => (this.input = el) }), !this.labelledById ? (h("label", { htmlFor: this.getIdentifier() }, h("slot", null))) : (h("label", null, h("slot", null)))), hasInfo && !this.infoFixed && (h("dso-info-button", { key: 'f539a4ea7af6bb4c1412895c2af316b9014d8420', active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) }))), hasInfo && (h("dso-info", { key: '69bde115eba8f18261c79886654defb9f0f703f6', id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, h("div", { key: '9d92cccb1adfd77adc579f57281dddc56a2225ba' }, h("slot", { key: '4fee8b038cb69e5321c23502eb6a5dad31c3c9ee', name: "info" })))), h("slot", { key: 'fd69188bb07390259d9ac58f328d3a7c8b42fe12', name: "options" })));
67
67
  }
68
68
  componentDidRender() {
69
69
  if (this.input && typeof this.checked === "boolean" && this.input.checked !== this.checked) {
@@ -19,7 +19,7 @@ export class SlideToggle {
19
19
  this.hasVisibleLabel = this.host.querySelector("*") !== null;
20
20
  }
21
21
  render() {
22
- return (h(Fragment, null, h("button", Object.assign({ key: '2a589d57cb3a34fbc7d545ba463eb5dfdc7c8e3b', id: this.identifier, role: "switch", class: "dso-slider", "aria-checked": "" + this.checked, disabled: this.disabled, onClick: (e) => this.handleSwitch(e) }, (this.accessibleLabel ? { "aria-label": this.accessibleLabel } : {}), (this.labelledbyId ? { "aria-labelledby": this.labelledbyId } : {})), h("svg", { key: 'daeae3ad7945cca85dbcfcd0393088c2247d3063', xmlns: "http://www.w3.org/2000/svg", width: "40", height: "20", viewBox: "0 0 40 20" }, h("g", { key: '1dc77f9db7e0c8e8a4118a12dd7e153092fd7c3d', fill: "none", "fill-rule": "evenodd" }, h("rect", { key: '44f1f0491a5e32eea07435b4bb5d2ac5e10e5dc1', width: "40", height: "20", fill: "currentColor", rx: "10" }), h("circle", { key: '4a5c4a0f67804163ae09155e1fa1bad50d7b6202', cy: "10", r: "8", fill: "currentColor" })))), this.hasVisibleLabel && (h("label", { key: '4a68fb9b36dc403cfb3f48614b603a218453454f', htmlFor: this.identifier }, h("slot", { key: 'b41750cfec394016cfd4b9dd75b5ffa8c8dad754' })))));
22
+ return (h(Fragment, null, h("button", Object.assign({ key: '1d0bd72208407db78bf18151ca091cc52ee8fb01', id: this.identifier, role: "switch", class: "dso-slider", "aria-checked": "" + this.checked, disabled: this.disabled, onClick: (e) => this.handleSwitch(e) }, (this.accessibleLabel ? { "aria-label": this.accessibleLabel } : {}), (this.labelledbyId ? { "aria-labelledby": this.labelledbyId } : {})), h("svg", { key: 'aeab86c82b268e0090b94867fd8f404cc2c52ba2', xmlns: "http://www.w3.org/2000/svg", width: "40", height: "20", viewBox: "0 0 40 20" }, h("g", { key: '8ba58bfc4e94d0ef9ed98a2a3a6c6820f7ad0e43', fill: "none", "fill-rule": "evenodd" }, h("rect", { key: '992551dcb7d56e2db0f71816b2d7af218dc1b1f3', width: "40", height: "20", fill: "currentColor", rx: "10" }), h("circle", { key: 'a3aca9759480ab267897c3d156945e8df7f6af70', cy: "10", r: "8", fill: "currentColor" })))), this.hasVisibleLabel && (h("label", { key: '688ed90390ee4454f4361b8d44018a7f40502886', htmlFor: this.identifier }, h("slot", { key: '1681d2d582523acb101921eb6653328676213392' })))));
23
23
  }
24
24
  static get is() { return "dso-slide-toggle"; }
25
25
  static get originalStyleUrls() {
@@ -30,7 +30,7 @@ export class Table {
30
30
  render() {
31
31
  var _a, _b;
32
32
  const caption = (_b = (_a = this.host.querySelector(":scope > table > caption")) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim();
33
- return (h(Host, { key: '72635aa7a0e69c5aaba5d8818d4cf62722f4d730' }, this.modalActive && this.placeholderHeight && (h("div", { key: '661735ad5d092ce7abfebca3d9ecab571cbb667c', class: "dso-table-placeholder", style: { height: `${this.placeholderHeight}px` } })), this.modalActive && h("div", { key: '00fb6d4496cabe0e0614630440d741e6b277b734', class: "dso-modal-overlay" }), h("div", { key: 'efcf1cf01e0d826bfd1ca59ed1b64518b9a3d2cf', class: { "dso-modal": this.modalActive } }, h("div", Object.assign({ key: '485a98cdddd01b8975f0967b4efc3b71f7b94979', class: { "dso-dialog": this.modalActive, "dso-table-dialog": true }, ref: (element) => (this.focusTrapElement = element) }, (this.modalActive ? { ["aria-labelledby"]: this.labelledbyId, role: "dialog" } : {})), (this.isResponsive || !this.noModal) && (h("div", { key: '0d0db83cdae29e609aca0047473ba3b209522cf6', class: "dso-table-utilities", style: this.modalActive ? { display: "none" } : undefined }, this.isResponsive && (h("div", { key: '5392a5016adf8dffc44b513142d5a1aebc2cb51b', class: "dso-responsive-message" }, h("span", { key: '00d8a2c83a3e75700f454f446bcf1aed3d3f5024' }, "beweeg de tabel van links naar rechts"))), !this.noModal && (h("button", { key: '6b7eaf6b69966dfd468ca9eaad10c7c3b8a95d1c', type: "button", class: "dso-tertiary open-modal-button", ref: (element) => (this.buttonElement = element), onClick: () => this.openModal() }, h("span", { key: '5d6bb7e0b1bc9f409529ddd1f2db88e0528a0951', class: "sr-only" }, "tabel ", caption !== null && caption !== void 0 ? caption : "", " "), h("span", { key: 'f316e9cf2d53ce38daf9c444c876e5c7cf01fdcc' }, "vergroten"), h("dso-icon", { key: '347b3aeb40a7dc074f95c70a90c42e329239f348', icon: "external-link" }))))), this.modalActive && (h("div", { key: 'd26f367ffa7b39e840c1fd071e7262d6dfa606ef', class: "dso-header" }, h("h2", { key: '965cdd0b891b2ae8d5888e920b9e8d3e5da24c7a', id: this.labelledbyId, class: { "sr-only": !caption } }, caption || "Uitvergrote tabel dialoog"), h("button", { key: '0952fbb314ec2457d9508f285dad1e323ab15c39', type: "button", class: "dso-close", onClick: () => this.closeModal() }, h("dso-icon", { key: 'd8d5ec0de5eedd1f17a2ba6ac7765a59e90f831c', icon: "times" }), h("span", { key: '02d4fd9da8af57960e68a32f82fa30f475d1e87f', class: "sr-only" }, "Sluiten")))), h("div", { key: 'cae5e1e2daa69351b1f4f157382fa2102fa24657', class: { "dso-body": this.modalActive, "dso-table-body": true } }, h("slot", { key: '3bb8855a6ea597457abdf28d146c9dc61c8bab6f' }))))));
33
+ return (h(Host, { key: 'fc92288fe7d379ec8b56dbb49931b023a1aa669c' }, this.modalActive && this.placeholderHeight && (h("div", { key: '651f19822424b8385f4854840100fceb3b6819ca', class: "dso-table-placeholder", style: { height: `${this.placeholderHeight}px` } })), this.modalActive && h("div", { key: '80c8515444552216f26e5733d2c928cc4c7b3822', class: "dso-modal-overlay" }), h("div", { key: '82f023fb532ebbe9b8192229d5db55e555ec5f93', class: { "dso-modal": this.modalActive } }, h("div", Object.assign({ key: 'b150734ceb13ddfa0ff8412961917869273c7c34', class: { "dso-dialog": this.modalActive, "dso-table-dialog": true }, ref: (element) => (this.focusTrapElement = element) }, (this.modalActive ? { ["aria-labelledby"]: this.labelledbyId, role: "dialog" } : {})), (this.isResponsive || !this.noModal) && (h("div", { key: '35c156e2e76ebee21a56700e0265bb2e0270b69c', class: "dso-table-utilities", style: this.modalActive ? { display: "none" } : undefined }, this.isResponsive && (h("div", { key: '49984412ae1616077b9934babd0e2b3bc518d151', class: "dso-responsive-message" }, h("span", { key: '6ed229941d728f12a068b489534e41b60e2b4ff9' }, "beweeg de tabel van links naar rechts"))), !this.noModal && (h("button", { key: '2f412f2795b0410883f975721e51ebebf1dddcc5', type: "button", class: "dso-tertiary open-modal-button", ref: (element) => (this.buttonElement = element), onClick: () => this.openModal() }, h("span", { key: '2332690378cead455b420576bf9cd5f68d993278', class: "sr-only" }, "tabel ", caption !== null && caption !== void 0 ? caption : "", " "), h("span", { key: '90351eded6efd138705cf08bfadc6ee9109a0e69' }, "vergroten"), h("dso-icon", { key: 'd314dfede218f9258a3ca2e109c6e93dfde97b81', icon: "external-link" }))))), this.modalActive && (h("div", { key: '05890549bb56488890bc886989b524bdeed073d4', class: "dso-header" }, h("h2", { key: '271ad27174b676b41cb20de4c1f579e999b61ce0', id: this.labelledbyId, class: { "sr-only": !caption } }, caption || "Uitvergrote tabel dialoog"), h("button", { key: 'd42b834be57bb606eeb52f68ef8a5f23bf4b2668', type: "button", class: "dso-close", onClick: () => this.closeModal() }, h("dso-icon", { key: '947a77978e4b53e615a1f785721b4bb7e615d120', icon: "times" }), h("span", { key: 'e19dd743a47fc7df5ab9a6b3fd9bf8ba5cb0cff8', class: "sr-only" }, "Sluiten")))), h("div", { key: '30f4d60debabc4919fbd4350ad3fa750da006936', class: { "dso-body": this.modalActive, "dso-table-body": true } }, h("slot", { key: '084aec8bb7315257e20414361124419ef555201c' }))))));
34
34
  }
35
35
  openModal() {
36
36
  this.placeholderHeight = this.host.clientHeight;
@@ -64,7 +64,7 @@ export class Tabs {
64
64
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
65
65
  }
66
66
  render() {
67
- return (h(Host, { key: 'ce49553d33f63de258e8ff3466fa37d539e4734f' }, h("div", { key: '22a863b05306509b718237a071a072a52c3cfd73', class: "tabs", role: "tablist", onKeyUp: this.keyUpHandler }, h("slot", { key: '75d01af59d70f79e059948d9239c7c9ccdef297b' })), h("div", { key: '2304bbce1b0c27566ae04f7c1c5dd13cd9e588eb', role: "tabpanel", tabindex: "0" }, h("slot", { key: 'bc1a82a606d37dd50beb5f5acd575cc57b41182e', name: "panel" }))));
67
+ return (h(Host, { key: 'd115f11054298f6f4ba09e97f0e8c1b726aac09c' }, h("div", { key: '74e724fc01facb00f7ca14f3420b68172c313927', class: "tabs", role: "tablist", onKeyUp: this.keyUpHandler }, h("slot", { key: '7d65307f3dd7372b30eccf57ae2c552451d0920f' })), h("div", { key: '251184652aace25225b69336bf9c0bae0ab98e68', role: "tabpanel", tabindex: "0" }, h("slot", { key: '79e95365db5486bd5e54161919f653df5ac525cc', name: "panel" }))));
68
68
  }
69
69
  static get is() { return "dso-tabs"; }
70
70
  static get encapsulation() { return "shadow"; }
@@ -40,7 +40,7 @@ export class Toggletip {
40
40
  this.secondary = undefined;
41
41
  }
42
42
  render() {
43
- return (h(Fragment, null, h("dso-info-button", { key: 'd814dd230c0a2b7dd143f0c461a7c35c5a0e8256', "aria-describedby": "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary, ref: (element) => (this.infoButton = element) }), h("dso-tooltip", { key: '8335db4a80d8bf7fdec4251caa9a3d4c5520b8f4', stateless: true, descriptive: true, id: "toggle", strategy: "absolute", active: this.active, position: this.position, small: this.small }, h("slot", { key: 'e4f9747977cd810999eb63ee413e63827ce106e3' }))));
43
+ return (h(Fragment, null, h("dso-info-button", { key: 'f7e6f87ddaa464cbf64ca4b18341a33611e3f72a', "aria-describedby": "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary, ref: (element) => (this.infoButton = element) }), h("dso-tooltip", { key: '29128e6c5cc5c3ea6d17aa3a27f76b09c00b059f', stateless: true, descriptive: true, id: "toggle", strategy: "absolute", active: this.active, position: this.position, small: this.small }, h("slot", { key: '6d4157cdfa69e23487aa758fbd8d8f3dac612bea' }))));
44
44
  }
45
45
  static get is() { return "dso-toggletip"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -168,7 +168,7 @@ export class Tooltip {
168
168
  }
169
169
  }
170
170
  render() {
171
- return (h(Host, { key: '1dd2e74dbeb0555c9ddf87f129fa0c71761a1838', class: { hidden: this.hidden }, role: "tooltip", onClick: this.listenClick }, h("div", { key: 'ee9a42aebfda6d2b72b9ca2843997c543b534ee8', class: clsx("tooltip", { in: this.active }) }, !this.noArrow && h("div", { key: '3f692092ef311ed2c23f24c4c039cd690a1456cd', "data-popper-arrow": true, class: "tooltip-arrow" }), h("div", { key: '1f47431cd04dffd0f6eec3728c140e0e2bbbd2c5', "aria-hidden": !this.descriptive || undefined, class: clsx("tooltip-inner", { "dso-small": this.small }) }, h("slot", { key: 'a1e76e41487efc675edd80608d610e4fbf0f227e' })))));
171
+ return (h(Host, { key: '01e63a4cd76dca4d1d07bbbb35c8e67f7c4883e7', class: { hidden: this.hidden }, role: "tooltip", onClick: this.listenClick }, h("div", { key: '39c3989e697df79021b782aa1ba0100f352fef0c', class: clsx("tooltip", { in: this.active }) }, !this.noArrow && h("div", { key: 'ce11016b943b0a32bde7da78a1a039cec0523681', "data-popper-arrow": true, class: "tooltip-arrow" }), h("div", { key: 'e2fff499e2bbf78bb4c542f6cd4b23b30c26ba50', "aria-hidden": !this.descriptive || undefined, class: clsx("tooltip-inner", { "dso-small": this.small }) }, h("slot", { key: '54ff66606cc1dc120768ee6b9f3cd4f66cec1aec' })))));
172
172
  }
173
173
  activatePopper() {
174
174
  var _a;
@@ -175,7 +175,7 @@ export class TreeView {
175
175
  }
176
176
  render() {
177
177
  var _a;
178
- return (h("div", { key: '297a05e4f779433dea7c7e297200b5205c9a835e', id: "tree", class: "dso-tree", onKeyDown: (e) => this.keyDownListener(e), ref: (element) => (this.tree = element) }, h("ul", { key: '095ee29e9af3861b29e413e7120e79ca32a46364', role: "tree", "aria-label": "Objectenboom" }, (_a = this.collection) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h(DsoTreeItem, { owner: this, ancestors: [], item: item, index: index, level: 1, setSize: this.collection.length }))))));
178
+ return (h("div", { key: '733757192ac89c90806872d71a6b9d1079a33514', id: "tree", class: "dso-tree", onKeyDown: (e) => this.keyDownListener(e), ref: (element) => (this.tree = element) }, h("ul", { key: '29f84b165163e1ada0f411e8127ac3e213a775b0', role: "tree", "aria-label": "Objectenboom" }, (_a = this.collection) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h(DsoTreeItem, { owner: this, ancestors: [], item: item, index: index, level: 1, setSize: this.collection.length }))))));
179
179
  }
180
180
  static get is() { return "dso-tree-view"; }
181
181
  static get encapsulation() { return "shadow"; }
@@ -154,7 +154,7 @@ export class ViewerGrid {
154
154
  }
155
155
  render() {
156
156
  const tabLabels = this.mode === "vdk" ? viewerGridVdkTabs : viewerGridVrkTabs;
157
- return (h(Fragment, null, this.tabView && (h("nav", { key: '8ca85b7872476a2afdcb8d41d9d7d3d8fd9d130c', class: "dso-navbar" }, h("ul", { key: '83195a76dbb5770f6a38fe8feec3c1f85a70f102', class: "dso-nav dso-nav-sub" }, tabLabels.map((tab) => (h("li", { key: tab, class: clsx({ "dso-active": this.activeTab === tab }) }, h("button", { type: "button", class: "dso-tertiary", onClick: () => this.switchActiveTab(tab) }, viewerGridTabLabelMap[tab]))))))), (!this.tabView || (this.tabView && (this.activeTab === "main" || this.activeTab === "search"))) && (h(MainPanel, { key: '2b13de9e342ee70f4b6f225742f19f4a48387f49', mode: this.mode, tabView: this.tabView, mainSize: this.mainSize, documentPanelOpen: this.documentPanelOpen, mainPanelExpanded: this.mainPanelExpanded, mainPanelHidden: this.mainPanelHidden, shrinkMain: this.emitShrinkMain, expandMain: this.emitExpandMain, toggleMainPanel: this.toggleMainPanel, dsoMainSizeChangeAnimationEnd: this.dsoMainSizeChangeAnimationEnd })), h(Filterpanel, { key: 'c31ce856aacd1c762e4988187e71533c09a554f6', ref: (element) => (this.filterpanel = element), onApply: this.handleFilterpanelApply, onCancel: this.handleFilterpanelCancel }), (!this.tabView || (this.tabView && this.activeTab === "map")) && (h("div", { key: '31e87407557de7024832b5cc57b8e4d0cd882e6f', class: "map", ref: (element) => (this.mapElement = element) }, h("slot", { key: '6ed2d2a928d67f175293c4b16dffc5f836a1beba', name: "map" }))), ((!this.tabView && this.documentPanelOpen) || (this.tabView && this.activeTab === "document")) && (h(DocumentPanel, { key: '32d6858043486f36421a73ab0431cf49db6d0d8b', tabView: this.tabView, panelSize: this.documentPanelSize, shrinkDocumentPanel: this.shrinkDocumentPanel, expandDocumentPanel: this.expandDocumentPanel, dsoDocumentPanelSizeChangeAnimationEnd: this.dsoDocumentPanelSizeChangeAnimationEnd })), h(Overlay, { key: '3e947e34d6693ecfef90f1606d5e8af37fd28efc', ref: (element) => (this.overlay = element), dsoCloseOverlay: (e) => this.dsoCloseOverlay.emit({ originalEvent: e }) })));
157
+ return (h(Fragment, null, this.tabView && (h("nav", { key: '5bb28bca2da923349ff553a3e32ad6afc6292189', class: "dso-navbar" }, h("ul", { key: '0ec74cb43fb25056ca47b063c94e19deaf12e5a2', class: "dso-nav dso-nav-sub" }, tabLabels.map((tab) => (h("li", { key: tab, class: clsx({ "dso-active": this.activeTab === tab }) }, h("button", { type: "button", class: "dso-tertiary", onClick: () => this.switchActiveTab(tab) }, viewerGridTabLabelMap[tab]))))))), (!this.tabView || (this.tabView && (this.activeTab === "main" || this.activeTab === "search"))) && (h(MainPanel, { key: '92b77fad12d794fe466f0eefb1c077545887970b', mode: this.mode, tabView: this.tabView, mainSize: this.mainSize, documentPanelOpen: this.documentPanelOpen, mainPanelExpanded: this.mainPanelExpanded, mainPanelHidden: this.mainPanelHidden, shrinkMain: this.emitShrinkMain, expandMain: this.emitExpandMain, toggleMainPanel: this.toggleMainPanel, dsoMainSizeChangeAnimationEnd: this.dsoMainSizeChangeAnimationEnd })), h(Filterpanel, { key: 'ecb109bf285a6838c5ec84ef069bd53ba581c5a7', ref: (element) => (this.filterpanel = element), onApply: this.handleFilterpanelApply, onCancel: this.handleFilterpanelCancel }), (!this.tabView || (this.tabView && this.activeTab === "map")) && (h("div", { key: 'b4a056be215b05ffb730f82aee8eebb7adf1c7b1', class: "map", ref: (element) => (this.mapElement = element) }, h("slot", { key: '26a55ded1adf6f6d12814c4f327538e6cc14dbe8', name: "map" }))), ((!this.tabView && this.documentPanelOpen) || (this.tabView && this.activeTab === "document")) && (h(DocumentPanel, { key: 'b2ebd498fa85c639196525cda9f4386613bae869', tabView: this.tabView, panelSize: this.documentPanelSize, shrinkDocumentPanel: this.shrinkDocumentPanel, expandDocumentPanel: this.expandDocumentPanel, dsoDocumentPanelSizeChangeAnimationEnd: this.dsoDocumentPanelSizeChangeAnimationEnd })), h(Overlay, { key: '718aa0f258d94bad2336b14f13cd0ba26d465205', ref: (element) => (this.overlay = element), dsoCloseOverlay: (e) => this.dsoCloseOverlay.emit({ originalEvent: e }) })));
158
158
  }
159
159
  static get is() { return "dso-viewer-grid"; }
160
160
  static get encapsulation() { return "shadow"; }
@@ -115,7 +115,7 @@ const DocumentComponent = /*@__PURE__*/ proxyCustomElement(class DocumentCompone
115
115
  this.alternativeTitle ||
116
116
  this.bevatOntwerpInformatie ||
117
117
  this.annotated);
118
- return (h(Host, { key: 'd9fbf327a2334fa789aca4e287edb2a72b7a143c', "not-collapsible": !collapsible }, showHeading && (h("div", { key: 'be06c84763a0ebeb4b737b35199143e3dfd2df69', class: "heading-container", part: "_heading-container" }, this.wijzigactie && h("span", { key: 'a49b41ed8dedf72c8e7c4d2ca6a7ad4b74896d2f', class: "editaction-label" }, this.wijzigactieLabel, ":"), h("div", { key: '6c527436ab28110f2a567f5324f645ccadd7b2af', class: "heading" }, h(Heading, { key: 'af14361336a0bec3938f6fdbef68486c0f665839', heading: this.heading, class: "heading-element", onClick: this.handleHeadingClick }, collapsible && (h("button", { key: 'ec14fa46b5523db43ecf2a0f5872f683b15c3044', type: "button", class: "toggle-button", "aria-describedby": "heading-title", "aria-expanded": this.open.toString() }, h("dso-icon", { key: '530c11c39efb69202d495013a16d08203dc2a47a', icon: this.open ? "chevron-down" : "chevron-right" }), h("span", { key: '526ab6032c2882649ff40b2a6a167b1bba5b0ce0', class: "sr-only" }, this.open ? "Invouwen" : "Uitvouwen"))), h("div", { key: '11d2b4d495a0fbdbf1aced54151382ac9e3aa72b', id: "heading-title" }, this.notApplicable && h("span", { key: '4e5cc5d128833bf15d58a2fb30072c586ff980c2', class: "sr-only" }, "Niet van toepassing:"), this.label || this.nummer || this.opschrift ? (h(Fragment, null, this.label && (h(Fragment, null, " ", h("dso-ozon-content", { content: this.label, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "label"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "label" })), inline: true }))), this.nummer && (h(Fragment, null, " ", h("dso-ozon-content", { content: this.nummer, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "nummer"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "nummer" })), inline: true }))), this.opschrift && (h(Fragment, null, " ", h("dso-ozon-content", { content: this.opschrift, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "opschrift"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "opschrift" })), inline: true }))))) : (this.alternativeTitle), suffix && h("span", { key: 'e8849ad89494fbeb22dab9f94d7bb20ae8c620ab' }, " - [", suffix, "]"))), this.recursiveToggle !== undefined && this.open && (h("button", { key: 'a607765c7d38fd1f797aad54ddbb42ef0b67721a', type: "button", class: "recursive-toggle", title: this.recursiveToggle === true ? "Verberg alles" : "Toon alles", onClick: this.handleRecursiveToggleClick }, h("dso-icon", { key: 'c28e4caab77b5f6732dfd6cb0c9188655ff13545', icon: this.recursiveToggle === true ? "eye" : "eye-slash" }))), this.genesteOntwerpInformatie && !this.open && !this.bevatOntwerpInformatie && (h(Fragment, null, h("dso-badge", { key: 'c1ecb135adb76ebe9632326a33e0dfd236f78694', status: "warning", "aria-describedby": "nested-draft-description" }, "!"), h("dso-tooltip", { key: 'd054622128abb03799737d27efb3158eb9fbfbbe', id: "nested-draft-description" }, "Er is een ontwerp beschikbaar."))), (this.bevatOntwerpInformatie || this.annotated) && (h("div", { key: '4e861bf2b1e823cabb145dc2e2fd3d58278028c1', class: "addons" }, this.bevatOntwerpInformatie && (h("dso-label", { key: '27fb8767f9fbe08b6b06b6651db4250e30c6979f', status: "warning", compact: true }, "Ontwerp")), this.annotated && (h("button", { key: '32cabfce40e57be32a8e20fb252e15b08dbf1b69', type: "button", class: "dso-tertiary", "aria-controls": this.openAnnotation ? "annotations" : undefined, "aria-expanded": this.openAnnotation.toString(), onClick: (e) => this.dsoAnnotationToggle.emit({ originalEvent: e }) }, h("dso-icon", { key: '4352ff84f9a43767dc1bb87b668f06719bffebc8', icon: "label" }), h("span", { key: '4ec23888f3ed5586d47bd4f08c098c2c1a8db8c5', class: "sr-only" }, "Toelichting bekijken")))))))), h("div", { key: '486702c5974c32bcea89085de489aaeac40e6682', class: "annotation-container", part: "_annotation-container" }, this.openAnnotation && (h("dso-panel", { key: 'deab6e1cd15335e369d152d0ee79880bcac0f4e2', id: "annotations", onDsoCloseClick: (e) => this.dsoAnnotationToggle.emit({ originalEvent: e }) }, h("h2", { key: '5716abe7b4ca874aedd6cb17be11e14ece1dd572', slot: "heading" }, "Kenmerken en kaart"), h("slot", { key: 'c583bb579656312b42e3ead86418c7bd223a343a', name: "annotations" })))), this.open && (this.inhoud || this.gereserveerd || this.vervallen) && (h("div", { key: '57de95eda0b81b91cd1340ace254b33caa065e88', class: "content", part: "_content" }, this.gereserveerd && (h("dso-alert", { key: 'f16856d048e45802fc325c90d2d879d7a5fe7a0e', status: "info" }, "Dit onderdeel is gereserveerd voor toekomstige toevoeging.")), this.vervallen && h("dso-alert", { key: '65354d50e70d74a0d30f1e6209f9babe93b74d95', status: "info" }, "Dit onderdeel is vervallen."), this.inhoud && (h("dso-ozon-content", { key: '1e7631193b8dafdd830df9ec5d6d1bbb37eba878', content: this.inhoud, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "inhoud"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "inhoud" })) })))), h("div", { key: 'ae7be71e5be0c8e8d16362a29614dc57a19b17e7', class: "children-container", part: "_children-container" }, h("slot", { key: 'f5dcb7db6079a27530176e06c8726fca11525bd5' }))));
118
+ return (h(Host, { key: '454b2c4cc8879b27b38703cfe0b3756601810ee1', "not-collapsible": !collapsible }, showHeading && (h("div", { key: '62ee2cff584b63870a2a0df52dd1cebf898c9b28', class: "heading-container", part: "_heading-container" }, this.wijzigactie && h("span", { key: '9c2319ad86578a39c8bbb69ee42bc42e010ed484', class: "editaction-label" }, this.wijzigactieLabel, ":"), h("div", { key: 'd994741900d6fba0f0bf3ae280cc6d56a9926c7d', class: "heading" }, h(Heading, { key: 'e000edf94a35473b069ae2cb196b6457067612f0', heading: this.heading, class: "heading-element", onClick: this.handleHeadingClick }, collapsible && (h("button", { key: 'e5716f83a5293cb3309965e878d2c64a90bd8ed1', type: "button", class: "toggle-button", "aria-describedby": "heading-title", "aria-expanded": this.open.toString() }, h("dso-icon", { key: 'f261ee091922aec9deec0a4fb4307f5b495fe847', icon: this.open ? "chevron-down" : "chevron-right" }), h("span", { key: '82b86c5affd64ce0c0bdcd9214c2b01a0e5f4e86', class: "sr-only" }, this.open ? "Invouwen" : "Uitvouwen"))), h("div", { key: 'c159d449cb9f8f01a111a30263dcc1e2be6f567f', id: "heading-title" }, this.notApplicable && h("span", { key: '0e1e63f4c1ddf643d029d790676416a06f8c312e', class: "sr-only" }, "Niet van toepassing:"), this.label || this.nummer || this.opschrift ? (h(Fragment, null, this.label && (h(Fragment, null, " ", h("dso-ozon-content", { content: this.label, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "label"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "label" })), inline: true }))), this.nummer && (h(Fragment, null, " ", h("dso-ozon-content", { content: this.nummer, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "nummer"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "nummer" })), inline: true }))), this.opschrift && (h(Fragment, null, " ", h("dso-ozon-content", { content: this.opschrift, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "opschrift"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "opschrift" })), inline: true }))))) : (this.alternativeTitle), suffix && h("span", { key: '553ea20e34bba57d8c90e46a7eb143447603af06' }, " - [", suffix, "]"))), this.recursiveToggle !== undefined && this.open && (h("button", { key: 'b1fd46c196bf2ba1a4347bd0935d60cffd17af6a', type: "button", class: "recursive-toggle", title: this.recursiveToggle === true ? "Verberg alles" : "Toon alles", onClick: this.handleRecursiveToggleClick }, h("dso-icon", { key: '4b9471a9be31a9c51be8300f314f82dc6c05cf10', icon: this.recursiveToggle === true ? "eye" : "eye-slash" }))), this.genesteOntwerpInformatie && !this.open && !this.bevatOntwerpInformatie && (h(Fragment, null, h("dso-badge", { key: 'b14d09ace537d589d60070fa0923d897baf68fef', status: "warning", "aria-describedby": "nested-draft-description" }, "!"), h("dso-tooltip", { key: '666cb91533260f0a29741c9cf1749e3d278b2741', id: "nested-draft-description" }, "Er is een ontwerp beschikbaar."))), (this.bevatOntwerpInformatie || this.annotated) && (h("div", { key: '978194b4bb83c9042e9c3fc36bc31200a194c747', class: "addons" }, this.bevatOntwerpInformatie && (h("dso-label", { key: '34eab91249174975102aa44cad1285556e6baf08', status: "warning", compact: true }, "Ontwerp")), this.annotated && (h("button", { key: '56b143f002b280d0582d82f18f978ea2e1ef758a', type: "button", class: "dso-tertiary", "aria-controls": this.openAnnotation ? "annotations" : undefined, "aria-expanded": this.openAnnotation.toString(), onClick: (e) => this.dsoAnnotationToggle.emit({ originalEvent: e }) }, h("dso-icon", { key: '503b5e8a37b7715d01a07ac078c41ed4023c9ccb', icon: "label" }), h("span", { key: 'c18f084470886ac1243f9febd73a959294d9dcec', class: "sr-only" }, "Toelichting bekijken")))))))), h("div", { key: '633a2dfb0b7227bc569e63f8d93dd1fa878d433f', class: "annotation-container", part: "_annotation-container" }, this.openAnnotation && (h("dso-panel", { key: 'd745d46f1818ba0345a06b09012e1005742efd2b', id: "annotations", onDsoCloseClick: (e) => this.dsoAnnotationToggle.emit({ originalEvent: e }) }, h("h2", { key: 'e2aaddbc260cd3e3e52406f5453f2bc2ed34f715', slot: "heading" }, "Kenmerken en kaart"), h("slot", { key: 'ca21b2b9122cc86319ab5c67bfbecab1130c5d09', name: "annotations" })))), this.open && (this.inhoud || this.gereserveerd || this.vervallen) && (h("div", { key: 'a5c0d164071d9fb7ce27342ee7fd134306cc2c47', class: "content", part: "_content" }, this.gereserveerd && (h("dso-alert", { key: 'b6d664fde60e0d66d186b59b08473e1a1d70593d', status: "info" }, "Dit onderdeel is gereserveerd voor toekomstige toevoeging.")), this.vervallen && h("dso-alert", { key: '5d3a5a5ad7ed7674f55cea7f10d168db0f1e3b22', status: "info" }, "Dit onderdeel is vervallen."), this.inhoud && (h("dso-ozon-content", { key: 'c727f90a691d2dd51a781f51108527e1ec9a7add', content: this.inhoud, onDsoAnchorClick: this.handleOzonContentAnchorClick, mark: this.mark && ((text) => { var _a; return (_a = this.mark) === null || _a === void 0 ? void 0 : _a.call(this, text, "inhoud"); }), onDsoOzonContentMarkItemHighlight: (e) => this.dsoMarkItemHighlight.emit(Object.assign(Object.assign({}, e.detail), { source: "inhoud" })) })))), h("div", { key: '31490b68a47c3d82698753ebeee4f148318e0287', class: "children-container", part: "_children-container" }, h("slot", { key: 'a21bfcf50d1757300acd7babe15b87f5ced436b7' }))));
119
119
  }
120
120
  static get style() { return DsoDocumentComponentStyle0; }
121
121
  }, [1, "dso-document-component", {
@@ -214,7 +214,7 @@ const DropdownMenu = /*@__PURE__*/ proxyCustomElement(class DropdownMenu extends
214
214
  (_a = tabbables[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
215
215
  }
216
216
  render() {
217
- return (h(Host, { key: '64730f2a5269c26f82cc98c16a6706aea0d85139', onFocusout: this.focusOutListener }, h("slot", { key: 'b1ea51163d8aaa0a1bdebe8450d916fa004750d7', name: "toggle" }), h("div", { key: '50d3b624f62dc610657bcc91d9c1613b1f635a4e', hidden: !this.open }, h("slot", { key: '05fc1a75012d442384a58313a5908a1c77f486b0' }))));
217
+ return (h(Host, { key: 'ebc0df48bddf5e5af45882ab477933600f51bc8d', onFocusout: this.focusOutListener }, h("slot", { key: 'f301473bc073577fb97836bb23d4cb2da3f3f513', name: "toggle" }), h("div", { key: 'd19647c158cd6c41a40760c27399e071d2e15df3', hidden: !this.open }, h("slot", { key: 'f82e6a4557fd6db74c47ad22c1742d8e0a1033e3' }))));
218
218
  }
219
219
  get host() { return this; }
220
220
  static get watchers() { return {
@@ -11,7 +11,7 @@ const CardContainer = /*@__PURE__*/ proxyCustomElement(class CardContainer exten
11
11
  this.mode = "list";
12
12
  }
13
13
  render() {
14
- return (h(Fragment, null, this.mode === "list" && (h("ul", { key: '54a6e926c22a118a77119add63558c55a7ef2cf9', class: "dso-card-list" }, h("slot", { key: '63777d504620cbc54a94a95bbada8b7028ef5d92' }))), this.mode === "grid" && (h("div", { key: '3b0feb3331f54fb7f084ad4c1e3bb18ddca6ee9d', class: "dso-card-grid" }, h("slot", { key: '0bc1a70a40326d61cfa9af7b8cdf8e73bb8d39cf' })))));
14
+ return (h(Fragment, null, this.mode === "list" && (h("ul", { key: '32d6c14a02ed4aa3a12a4a987b099ba7f786ab26', class: "dso-card-list" }, h("slot", { key: 'f9e8072d7f3dffbcf4e47b19bccc50377dfc8b90' }))), this.mode === "grid" && (h("div", { key: 'b0f534dc19d2c781eab8b13a01d222ee263a53e8', class: "dso-card-grid" }, h("slot", { key: '347c56580c98cd25a2241f7fc7ed36f868005378' })))));
15
15
  }
16
16
  static get style() { return DsoCardContainerStyle0; }
17
17
  }, [1, "dso-card-container", {
@@ -2,14 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } fr
2
2
  import { i as isModifiedEvent } from './is-modified-event.js';
3
3
  import { d as defineCustomElement$2 } from './icon.js';
4
4
 
5
- const isInteractiveElement = (element) => {
6
- return (element instanceof HTMLButtonElement ||
7
- element instanceof HTMLAnchorElement ||
8
- element instanceof HTMLInputElement ||
9
- element.tagName.startsWith("DSO-TOGGLETIP"));
10
- };
11
-
12
- const cardCss = ":host .dso-card-selectable,:host .dso-card-image{grid-row:span 2}a{background-color:transparent;color:var(--link-color);text-decoration:underline}a:hover,a:focus-visible{color:var(--link-hover-color);text-decoration:underline}a:active{text-decoration:none}a:visited{color:var(--link-visited-color)}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-end:1.5em;background-position:bottom 0 right 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download{background-image:url(\"./dso-icons.svg#img-download\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download:focus-visible{background-image:url(\"./dso-icons.svg#img-download-scampi\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-end:1.5em;background-position:bottom 0 right 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern{background-image:url(\"./dso-icons.svg#img-external-link\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern:focus-visible{background-image:url(\"./dso-icons.svg#img-external-link-scampi\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-start:1.5em;background-position:bottom 0 left 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]{background-image:url(\"./dso-icons.svg#img-call-grasgroen\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]:focus-visible{background-image:url(\"./dso-icons.svg#img-call-scampi\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-start:1.5em;background-position:bottom 0 left 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]{background-image:url(\"./dso-icons.svg#img-email-grasgroen\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]:focus-visible{background-image:url(\"./dso-icons.svg#img-email-scampi\")}*,*::after,*::before{box-sizing:border-box}:host{display:block}:host .dso-card-heading{align-items:center;display:flex;margin-block-end:8px}@media screen and (max-width: 480px){:host .dso-card-heading{flex-wrap:wrap}}:host .dso-card-image{margin-inline-end:8px}:host(:hover) .dso-card-heading a{color:#275937;text-decoration:underline}.dso-card-heading a{text-decoration:none}.heading-anchor{color:#275937;display:flex}.heading-anchor:visited{color:#275937}.heading-anchor dso-icon{flex-shrink:0}.heading-anchor .sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
5
+ const cardCss = "a{background-color:transparent;color:var(--link-color);text-decoration:underline}a:hover,a:focus-visible{color:var(--link-hover-color);text-decoration:underline}a:active{text-decoration:none}a:visited{color:var(--link-visited-color)}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-end:1.5em;background-position:bottom 0 right 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download{background-image:url(\"./dso-icons.svg#img-download\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).download:focus-visible{background-image:url(\"./dso-icons.svg#img-download-scampi\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-end:1.5em;background-position:bottom 0 right 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern{background-image:url(\"./dso-icons.svg#img-external-link\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary)).extern:focus-visible{background-image:url(\"./dso-icons.svg#img-external-link-scampi\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-start:1.5em;background-position:bottom 0 left 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]{background-image:url(\"./dso-icons.svg#img-call-grasgroen\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"tel:\"]:focus-visible{background-image:url(\"./dso-icons.svg#img-call-scampi\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]{background-repeat:no-repeat;background-size:1.25em 1.25em;padding-inline-start:1.5em;background-position:bottom 0 left 0}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]{background-image:url(\"./dso-icons.svg#img-email-grasgroen\")}a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]:hover,a:where(:not(.dso-primary,.dso-secondary,.dso-tertiary))[href^=\"mailto:\"]:focus-visible{background-image:url(\"./dso-icons.svg#img-email-scampi\")}*,*::after,*::before{box-sizing:border-box}:host{display:block}:host([is-selectable]:not([is-selectable=false])) .dso-card-container{display:grid;grid-template-columns:1fr minmax(0, 100%)}:host([is-selectable]:not([is-selectable=false])) .dso-card-container .dso-card-heading,:host([is-selectable]:not([is-selectable=false])) .dso-card-container .dso-card-content{grid-column:2/-1}:host([is-selectable]:not([is-selectable=false])) .dso-card-container .dso-card-selectable{grid-row:span 2}:host([active]:not([active=false])) .dso-card-container{background-color:#e5e5e5}.dso-card-container{padding-block:16px 8px;padding-inline:16px;inline-size:100%;block-size:100%}.dso-card-container:has(.dso-card-heading a:is(:hover,:focus-visible)){background-color:#f2f2f2}.dso-card-container .dso-card-heading{align-items:center;display:flex;margin-block-end:8px}@media screen and (max-width: 480px){.dso-card-container .dso-card-heading{flex-wrap:wrap}}.heading-anchor{display:flex;gap:4px;color:#275937;text-decoration:none}.heading-anchor:hover{color:#275937;text-decoration:underline}.heading-anchor:visited{color:#275937}.heading-anchor dso-icon{flex-shrink:0}.heading-anchor .sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
13
6
  const DsoCardStyle0 = cardCss;
14
7
 
15
8
  const Card = /*@__PURE__*/ proxyCustomElement(class Card extends HTMLElement {
@@ -17,11 +10,10 @@ const Card = /*@__PURE__*/ proxyCustomElement(class Card extends HTMLElement {
17
10
  super();
18
11
  this.__registerHost();
19
12
  this.__attachShadow();
20
- this.dsoCardClicked = createEvent(this, "dsoCardClicked", 7);
21
- this.clickable = true;
22
- this.imageShape = "normal";
13
+ this.dsoCardClick = createEvent(this, "dsoCardClick", 7);
23
14
  this.href = undefined;
24
15
  this.mode = undefined;
16
+ this.active = undefined;
25
17
  }
26
18
  connectedCallback() {
27
19
  this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));
@@ -33,49 +25,28 @@ const Card = /*@__PURE__*/ proxyCustomElement(class Card extends HTMLElement {
33
25
  delete this.mutationObserver;
34
26
  }
35
27
  clickEventHandler(e) {
36
- if (!(e.target instanceof HTMLElement) || (!this.clickable && !this.href)) {
28
+ if (!(e.target instanceof HTMLElement) || !this.href) {
37
29
  return;
38
30
  }
39
- let element = e.target;
40
- while (element !== this.host && element !== null) {
41
- if (isInteractiveElement(element) || element === null) {
42
- return;
43
- }
44
- if (element.parentNode instanceof ShadowRoot && element.parentNode.host instanceof HTMLElement) {
45
- element = element.parentNode.host;
46
- }
47
- else {
48
- element = element.parentElement;
49
- }
50
- }
51
- return this.dsoCardClicked.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });
31
+ return this.dsoCardClick.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });
52
32
  }
53
33
  get selectableSlottedElement() {
54
34
  return this.host.querySelector("[slot='selectable']");
55
35
  }
56
- get imageSlottedElement() {
57
- return this.host.querySelector("[slot='image']");
58
- }
59
- get headingSlottedElement() {
60
- return this.host.querySelector("[slot='heading']");
61
- }
62
36
  get interactionsSlottedElement() {
63
37
  return this.host.querySelector("[slot='interactions']");
64
38
  }
65
39
  render() {
66
40
  const isSelectable = this.selectableSlottedElement !== null;
67
- const hasImage = this.imageSlottedElement !== null;
68
- return (h(Host, { key: 'b9cc1a47bc39e6e2011ba6412436ab855d9819cf', onClick: (e) => this.clickEventHandler(e), "is-selectable": isSelectable, "has-image": hasImage }, h("div", { key: 'b8a059c5b2cc2f29392e0311fcbb3a02b1b39580', class: "dso-card-selectable", hidden: !isSelectable }, h("slot", { key: '304c0dad6a73ebb2ad12f7c4e0a807d53c7ca660', name: "selectable" })), h("div", { key: '3e976d9e8eb0fbc3578a8fc6f32687f97ca6fc69', class: "dso-card-image", hidden: !hasImage }, h("slot", { key: 'e10f2acff35dcd3316f0cb14575d5d2e4ab86c95', name: "image" })), h("div", { key: 'c7d437cc6d54eab8e9d6ad45411230498b243466', class: "dso-card-heading" }, this.headingSlottedElement instanceof HTMLAnchorElement || !this.href ? (h("slot", { name: "heading" })) : (((!this.mode || !["download", "extern"].includes(this.mode)) && (h("a", { href: this.href, class: "heading-anchor" }, h("slot", { name: "heading" }), h("dso-icon", { icon: "chevron-right" })))) ||
69
- (this.mode === "extern" && (h("a", { href: this.href, class: "heading-anchor", target: "_blank", rel: "noopener noreferrer" }, h("slot", { name: "heading" }), h("dso-icon", { icon: "external-link" }), h("span", { class: "sr-only" }, "(Opent andere website in nieuw tabblad)")))) ||
70
- (this.mode === "download" && (h("a", { href: this.href, class: "heading-anchor" }, h("slot", { name: "heading" }), h("dso-icon", { icon: "download" }))))), this.interactionsSlottedElement !== null && h("slot", { key: 'f318d02fe89a6aa2a9377e2f32d72726c848c42f', name: "interactions" })), h("div", { key: '7b725b7edeee93b237352eff09ae2574647b9a3b', class: "dso-card-content" }, h("slot", { key: '9f855efe124e2a273b1ecb465b27bc7e01ac10e9', name: "content" }))));
41
+ return (h(Host, { key: '10c83534a51247b21f0cd43788b5401bb3b7cfe4', "is-selectable": isSelectable }, h("div", { key: '1777c1843f484ca91631c8a177af1e596515313d', class: "dso-card-container" }, h("div", { key: 'da813c4a48eceb0a2032717c92f06b710241ed70', class: "dso-card-selectable", hidden: !isSelectable }, h("slot", { key: '5c9332821517bd1a472b2ecd1ab2614adee16927', name: "selectable" })), h("div", { key: '701a3a2dc0d013bfa1f50eddcb4cf8759c7f4241', class: "dso-card-heading" }, (this.mode === "extern" && (h("a", { key: '760d6e6a0ab5acc994ed46a50a792db3c6647b6a', href: this.href, class: "heading-anchor", target: "_blank", rel: "noopener noreferrer", onClick: (e) => this.clickEventHandler(e) }, h("slot", { key: 'd7c1eb29fc027e72c33efc97aa43d82d8a852b64', name: "heading" }), h("dso-icon", { key: '47bb43f25b70e3389f0f021cfd184d21b5ce4c25', icon: "external-link" }), h("span", { key: '7ca3f4c4974342f115a608729e2df6bcf24a88df', class: "sr-only" }, "(Opent andere website in nieuw tabblad)")))) ||
42
+ (this.mode === "download" && (h("a", { key: '4ae333ab348d7d8c3a4bf1dae8ac9dd923a226e0', href: this.href, class: "heading-anchor", onClick: (e) => this.clickEventHandler(e) }, h("slot", { key: '0d6308ffb5d5151865ca5080834d68742cc4e90a', name: "heading" }), h("dso-icon", { key: '51317cdfc3378774e61950e9e344df659727d003', icon: "download" })))) || (h("a", { key: 'cbf7cfe050923e32a0b4322cf73a98450defa97f', href: this.href, class: "heading-anchor", onClick: (e) => this.clickEventHandler(e) }, h("slot", { key: '99a1e24503833f13756b0d6e8433d314865f1fe8', name: "heading" }), h("dso-icon", { key: '5425cb2e9285b8252de9ee13dd08b51e834d89d3', icon: "chevron-right" }))), this.interactionsSlottedElement !== null && h("slot", { key: 'ce04ab4923fd97fbbea799d4937d0a2f73c781a3', name: "interactions" })), h("div", { key: '232a855da9fead8f448bbea8729231688387f4a7', class: "dso-card-content" }, h("slot", { key: '73fd2ccecbd49456b44c42c737f4aa75922910eb', name: "content" })))));
71
43
  }
72
44
  get host() { return this; }
73
45
  static get style() { return DsoCardStyle0; }
74
46
  }, [1, "dso-card", {
75
- "clickable": [516],
76
- "imageShape": [513, "image-shape"],
77
47
  "href": [513],
78
- "mode": [513]
48
+ "mode": [513],
49
+ "active": [516]
79
50
  }]);
80
51
  function defineCustomElement$1() {
81
52
  if (typeof customElements === "undefined") {
@@ -1 +1 @@
1
- {"file":"dso-card.js","mappings":"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","names":[],"sources":["src/utils/is-interactive-element.ts","src/components/card/card.scss?tag=dso-card&encapsulation=shadow","src/components/card/card.tsx"],"sourcesContent":["export const isInteractiveElement = (element: HTMLElement): boolean => {\r\n return (\r\n element instanceof HTMLButtonElement ||\r\n element instanceof HTMLAnchorElement ||\r\n element instanceof HTMLInputElement ||\r\n element.tagName.startsWith(\"DSO-TOGGLETIP\")\r\n );\r\n};\r\n","@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/card\";\r\n@use \"~dso-toolkit/src/components/anchor/anchor\";\r\n\r\n@include utilities.box-sizing();\r\n\r\n:host {\r\n @include card.root();\r\n\r\n display: block;\r\n}\r\n\r\n:host(:hover) {\r\n .dso-card-heading a {\r\n color: card.$heading-anchor-hover-color;\r\n text-decoration: underline;\r\n }\r\n}\r\n\r\n.dso-card-heading a {\r\n text-decoration: none;\r\n}\r\n\r\n.heading-anchor {\r\n color: card.$heading-anchor-color;\r\n display: flex;\r\n\r\n &:visited {\r\n color: card.$heading-anchor-color;\r\n }\r\n\r\n dso-icon {\r\n flex-shrink: 0;\r\n }\r\n\r\n .sr-only {\r\n @include utilities.sr-only();\r\n }\r\n}\r\n","import { h, Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, forceUpdate } from \"@stencil/core\";\r\n\r\nimport { isInteractiveElement } from \"../../utils/is-interactive-element\";\r\nimport { isModifiedEvent } from \"../../utils/is-modified-event\";\r\n\r\nimport { DsoCardClickedEvent, ImageShape } from \"./card.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-card\",\r\n styleUrl: \"card.scss\",\r\n shadow: true,\r\n})\r\nexport class Card implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoCardElement;\r\n\r\n /**\r\n * Whether or not the Card is clickable. This is NOT a boolean attribute. Set to \"false\" to make the Card non-clickable.\r\n *\r\n * @deprecated Use `href` instead and `<ELEMENT_TYPE slot=\"heading\">` should NOT be of element type `a` (anchor).\r\n */\r\n @Prop({ reflect: true })\r\n clickable = true;\r\n\r\n /**\r\n * Presentation of image in header.\r\n * - \"normal\" (\"24 x 24\").\r\n * - \"wide\" (\"30 x 26\")\r\n */\r\n @Prop({ reflect: true })\r\n imageShape: ImageShape = \"normal\";\r\n\r\n /**\r\n * The URL to which the Card heading links.\r\n */\r\n @Prop({ reflect: true })\r\n href?: string;\r\n\r\n /**\r\n * Display the link as an external link or a download link\r\n * - \"download\"\r\n * - \"extern\"\r\n */\r\n @Prop({ reflect: true })\r\n mode?: string;\r\n\r\n /**\r\n * Emitted when the Card is clickable and the user clicked the Card.\r\n */\r\n @Event()\r\n dsoCardClicked!: EventEmitter<DsoCardClickedEvent>;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n connectedCallback(): void {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, { attributes: true, childList: true });\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n\r\n private clickEventHandler(e: MouseEvent) {\r\n if (!(e.target instanceof HTMLElement) || (!this.clickable && !this.href)) {\r\n return;\r\n }\r\n\r\n let element: HTMLElement | null = e.target;\r\n\r\n while (element !== this.host && element !== null) {\r\n if (isInteractiveElement(element) || element === null) {\r\n return;\r\n }\r\n\r\n if (element.parentNode instanceof ShadowRoot && element.parentNode.host instanceof HTMLElement) {\r\n element = element.parentNode.host;\r\n } else {\r\n element = element.parentElement;\r\n }\r\n }\r\n\r\n return this.dsoCardClicked.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });\r\n }\r\n\r\n get selectableSlottedElement() {\r\n return this.host.querySelector(\"[slot='selectable']\");\r\n }\r\n\r\n get imageSlottedElement() {\r\n return this.host.querySelector(\"[slot='image']\");\r\n }\r\n\r\n get headingSlottedElement() {\r\n return this.host.querySelector(\"[slot='heading']\");\r\n }\r\n\r\n get interactionsSlottedElement() {\r\n return this.host.querySelector(\"[slot='interactions']\");\r\n }\r\n\r\n render() {\r\n const isSelectable = this.selectableSlottedElement !== null;\r\n const hasImage = this.imageSlottedElement !== null;\r\n\r\n return (\r\n <Host onClick={(e: MouseEvent) => this.clickEventHandler(e)} is-selectable={isSelectable} has-image={hasImage}>\r\n <div class=\"dso-card-selectable\" hidden={!isSelectable}>\r\n <slot name=\"selectable\" />\r\n </div>\r\n <div class=\"dso-card-image\" hidden={!hasImage}>\r\n <slot name=\"image\" />\r\n </div>\r\n <div class=\"dso-card-heading\">\r\n {this.headingSlottedElement instanceof HTMLAnchorElement || !this.href ? (\r\n <slot name=\"heading\" />\r\n ) : (\r\n ((!this.mode || ![\"download\", \"extern\"].includes(this.mode)) && (\r\n <a href={this.href} class=\"heading-anchor\">\r\n <slot name=\"heading\" />\r\n <dso-icon icon=\"chevron-right\"></dso-icon>\r\n </a>\r\n )) ||\r\n (this.mode === \"extern\" && (\r\n <a href={this.href} class=\"heading-anchor\" target=\"_blank\" rel=\"noopener noreferrer\">\r\n <slot name=\"heading\" />\r\n <dso-icon icon=\"external-link\"></dso-icon>\r\n <span class=\"sr-only\">(Opent andere website in nieuw tabblad)</span>\r\n </a>\r\n )) ||\r\n (this.mode === \"download\" && (\r\n <a href={this.href} class=\"heading-anchor\">\r\n <slot name=\"heading\" />\r\n <dso-icon icon=\"download\"></dso-icon>\r\n </a>\r\n ))\r\n )}\r\n {this.interactionsSlottedElement !== null && <slot name=\"interactions\" />}\r\n </div>\r\n <div class=\"dso-card-content\">\r\n <slot name=\"content\" />\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
1
+ {"file":"dso-card.js","mappings":";;;;AAAA,MAAM,OAAO,GAAG,8mHAA8mH,CAAC;AAC/nH,sBAAe,OAAO;;MCgBT,IAAI;;;;;;;;;;IAgCf,iBAAiB;QACf,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,MAAM,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAE3E,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;KACjF;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EAAE,CAAC;QAEpC,OAAO,IAAI,CAAC,gBAAgB,CAAC;KAC9B;IAEO,iBAAiB,CAAC,CAAa;QACrC,IAAI,EAAE,CAAC,CAAC,MAAM,YAAY,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACpD,OAAO;SACR;QAED,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAC1F;IAED,IAAI,wBAAwB;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;KACvD;IAED,IAAI,0BAA0B;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;KACzD;IAED,MAAM;QACJ,MAAM,YAAY,GAAG,IAAI,CAAC,wBAAwB,KAAK,IAAI,CAAC;QAE5D,QACE,EAAC,IAAI,sEAAgB,YAAY,IAC/B,4DAAK,KAAK,EAAC,oBAAoB,IAC7B,4DAAK,KAAK,EAAC,qBAAqB,EAAC,MAAM,EAAE,CAAC,YAAY,IACpD,6DAAM,IAAI,EAAC,YAAY,GAAG,CACtB,EACN,4DAAK,KAAK,EAAC,kBAAkB,IAC1B,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,KACtB,0DACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAC,gBAAgB,EACtB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,EACzB,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAEzC,6DAAM,IAAI,EAAC,SAAS,GAAG,EACvB,iEAAU,IAAI,EAAC,eAAe,GAAY,EAC1C,6DAAM,KAAK,EAAC,SAAS,8CAA+C,CAClE,CACL;aACE,IAAI,CAAC,IAAI,KAAK,UAAU,KACvB,0DAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,gBAAgB,EAAC,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAClF,6DAAM,IAAI,EAAC,SAAS,GAAG,EACvB,iEAAU,IAAI,EAAC,UAAU,GAAY,CACnC,CACL,CAAC,KACA,0DAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,gBAAgB,EAAC,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAClF,6DAAM,IAAI,EAAC,SAAS,GAAG,EACvB,iEAAU,IAAI,EAAC,eAAe,GAAY,CACxC,CACL,EACF,IAAI,CAAC,0BAA0B,KAAK,IAAI,IAAI,6DAAM,IAAI,EAAC,cAAc,GAAG,CACrE,EACN,4DAAK,KAAK,EAAC,kBAAkB,IAC3B,6DAAM,IAAI,EAAC,SAAS,GAAG,CACnB,CACF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/card/card.scss?tag=dso-card&encapsulation=shadow","src/components/card/card.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/components/card\";\r\n@use \"~dso-toolkit/src/components/anchor/anchor\";\r\n@use \"~dso-toolkit/src/variables/media-query-breakpoints\";\r\n\r\n@include utilities.box-sizing();\r\n\r\n:host {\r\n display: block;\r\n}\r\n\r\n:host([is-selectable]:not([is-selectable=\"false\"])) {\r\n .dso-card-container {\r\n display: grid;\r\n grid-template-columns: 1fr minmax(0, 100%);\r\n\r\n .dso-card-heading,\r\n .dso-card-content {\r\n grid-column: 2 /-1;\r\n }\r\n\r\n .dso-card-selectable {\r\n grid-row: span 2;\r\n }\r\n }\r\n}\r\n\r\n:host([active]:not([active=\"false\"])) {\r\n .dso-card-container {\r\n background-color: card.$background-color-active;\r\n }\r\n}\r\n\r\n.dso-card-container {\r\n padding-block: units.$u2 units.$u1;\r\n padding-inline: units.$u2;\r\n inline-size: 100%;\r\n block-size: 100%;\r\n\r\n &:has(.dso-card-heading a:is(:hover, :focus-visible)) {\r\n background-color: card.$background-color-hover;\r\n }\r\n\r\n .dso-card-heading {\r\n align-items: center;\r\n display: flex;\r\n margin-block-end: units.$u1;\r\n\r\n @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {\r\n flex-wrap: wrap;\r\n }\r\n }\r\n}\r\n\r\n.heading-anchor {\r\n display: flex;\r\n gap: units.$u1 * 0.5;\r\n\r\n color: card.$heading-anchor-color;\r\n text-decoration: none;\r\n\r\n &:hover {\r\n color: card.$heading-anchor-hover-color;\r\n text-decoration: underline;\r\n }\r\n\r\n &:visited {\r\n color: card.$heading-anchor-color;\r\n }\r\n\r\n dso-icon {\r\n flex-shrink: 0;\r\n }\r\n\r\n .sr-only {\r\n @include utilities.sr-only();\r\n }\r\n}\r\n","import { h, Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, forceUpdate } from \"@stencil/core\";\r\n\r\nimport { isModifiedEvent } from \"../../utils/is-modified-event\";\r\n\r\nimport { CardClickEvent } from \"./card.interfaces\";\r\n\r\n/**\r\n * @slot selectable - An optional slot to place a `Selectable` in.\r\n * @slot heading - A slot to place the title of the card in.\r\n * @slot interactions - An optional slot for one or more `Button`s, `Label`s, `Toggletip`s or `SlideToggle`s.\r\n * @slot content - An optional slot to place `Rich Content` in.\r\n */\r\n@Component({\r\n tag: \"dso-card\",\r\n styleUrl: \"card.scss\",\r\n shadow: true,\r\n})\r\nexport class Card implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoCardElement;\r\n\r\n /**\r\n * The URL to which the Card heading links.\r\n */\r\n @Prop({ reflect: true })\r\n href!: string | undefined;\r\n\r\n /**\r\n * Display the link as an external link or a download link\r\n * - \"download\"\r\n * - \"extern\"\r\n */\r\n @Prop({ reflect: true })\r\n mode?: string;\r\n\r\n /**\r\n * Makes the Card active.\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when the Card heading is clicked.\r\n */\r\n @Event()\r\n dsoCardClick!: EventEmitter<CardClickEvent>;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n connectedCallback(): void {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, { attributes: true, childList: true });\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n\r\n private clickEventHandler(e: MouseEvent) {\r\n if (!(e.target instanceof HTMLElement) || !this.href) {\r\n return;\r\n }\r\n\r\n return this.dsoCardClick.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });\r\n }\r\n\r\n get selectableSlottedElement() {\r\n return this.host.querySelector(\"[slot='selectable']\");\r\n }\r\n\r\n get interactionsSlottedElement() {\r\n return this.host.querySelector(\"[slot='interactions']\");\r\n }\r\n\r\n render() {\r\n const isSelectable = this.selectableSlottedElement !== null;\r\n\r\n return (\r\n <Host is-selectable={isSelectable}>\r\n <div class=\"dso-card-container\">\r\n <div class=\"dso-card-selectable\" hidden={!isSelectable}>\r\n <slot name=\"selectable\" />\r\n </div>\r\n <div class=\"dso-card-heading\">\r\n {(this.mode === \"extern\" && (\r\n <a\r\n href={this.href}\r\n class=\"heading-anchor\"\r\n target=\"_blank\"\r\n rel=\"noopener noreferrer\"\r\n onClick={(e) => this.clickEventHandler(e)}\r\n >\r\n <slot name=\"heading\" />\r\n <dso-icon icon=\"external-link\"></dso-icon>\r\n <span class=\"sr-only\">(Opent andere website in nieuw tabblad)</span>\r\n </a>\r\n )) ||\r\n (this.mode === \"download\" && (\r\n <a href={this.href} class=\"heading-anchor\" onClick={(e) => this.clickEventHandler(e)}>\r\n <slot name=\"heading\" />\r\n <dso-icon icon=\"download\"></dso-icon>\r\n </a>\r\n )) || (\r\n <a href={this.href} class=\"heading-anchor\" onClick={(e) => this.clickEventHandler(e)}>\r\n <slot name=\"heading\" />\r\n <dso-icon icon=\"chevron-right\"></dso-icon>\r\n </a>\r\n )}\r\n {this.interactionsSlottedElement !== null && <slot name=\"interactions\" />}\r\n </div>\r\n <div class=\"dso-card-content\">\r\n <slot name=\"content\" />\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}