@dso-toolkit/core 62.26.0 → 62.28.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 (550) hide show
  1. package/dist/cjs/annotation-body-88802b1e.js +15 -0
  2. package/dist/cjs/annotation-body-88802b1e.js.map +1 -0
  3. package/dist/cjs/annotation-symbol-slot-939136f8.js +38 -0
  4. package/dist/cjs/annotation-symbol-slot-939136f8.js.map +1 -0
  5. package/dist/cjs/dso-accordion-section.cjs.entry.js +6 -4
  6. package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
  7. package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
  8. package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
  9. package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
  10. package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
  11. package/dist/cjs/{dso-alert_6.cjs.entry.js → dso-alert_5.cjs.entry.js} +13 -27
  12. package/dist/cjs/dso-alert_5.cjs.entry.js.map +1 -0
  13. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +14 -4
  14. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js.map +1 -1
  15. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +14 -4
  16. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js.map +1 -1
  17. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +39 -0
  18. package/dist/cjs/dso-annotation-kaart.cjs.entry.js.map +1 -0
  19. package/dist/cjs/dso-annotation-locatie.cjs.entry.js +38 -0
  20. package/dist/cjs/dso-annotation-locatie.cjs.entry.js.map +1 -0
  21. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +41 -0
  22. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js.map +1 -0
  23. package/dist/cjs/dso-annotation-output_2.cjs.entry.js +5 -5
  24. package/dist/cjs/dso-annotation-output_2.cjs.entry.js.map +1 -1
  25. package/dist/cjs/dso-attachments-counter.cjs.entry.js +2 -2
  26. package/dist/cjs/dso-autosuggest.cjs.entry.js +3 -3
  27. package/dist/cjs/dso-badge.cjs.entry.js +24 -0
  28. package/dist/cjs/dso-badge.cjs.entry.js.map +1 -0
  29. package/dist/cjs/dso-banner.cjs.entry.js +4 -4
  30. package/dist/cjs/dso-banner.cjs.entry.js.map +1 -1
  31. package/dist/cjs/dso-card-container.cjs.entry.js +2 -2
  32. package/dist/cjs/dso-card.cjs.entry.js +3 -3
  33. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +5 -5
  34. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js.map +1 -1
  35. package/dist/cjs/dso-date-picker.cjs.entry.js +3 -3
  36. package/dist/cjs/dso-date-picker.cjs.entry.js.map +1 -1
  37. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +3 -3
  38. package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
  39. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  40. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +3 -3
  41. package/dist/cjs/dso-highlight-box.cjs.entry.js +2 -2
  42. package/dist/cjs/dso-icon.cjs.entry.js +2 -2
  43. package/dist/cjs/dso-info-button.cjs.entry.js +2 -2
  44. package/dist/cjs/dso-info_2.cjs.entry.js +4 -4
  45. package/dist/cjs/dso-info_2.cjs.entry.js.map +1 -1
  46. package/dist/cjs/dso-input-range.cjs.entry.js +3 -3
  47. package/dist/cjs/dso-label_2.cjs.entry.js +252 -27
  48. package/dist/cjs/dso-label_2.cjs.entry.js.map +1 -1
  49. package/dist/cjs/dso-legend-item.cjs.entry.js +4 -4
  50. package/dist/cjs/dso-legend-item.cjs.entry.js.map +1 -1
  51. package/dist/cjs/dso-list-button.cjs.entry.js +3 -3
  52. package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
  53. package/dist/cjs/dso-logo.cjs.entry.js +3 -3
  54. package/dist/cjs/dso-map-base-layers.cjs.entry.js +3 -3
  55. package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
  56. package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
  57. package/dist/cjs/dso-map-overlays.cjs.entry.js +3 -3
  58. package/dist/cjs/dso-mark-bar.cjs.entry.js +2 -2
  59. package/dist/cjs/dso-modal.cjs.entry.js +5 -5
  60. package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
  61. package/dist/cjs/dso-pagination.cjs.entry.js +2 -2
  62. package/dist/cjs/dso-pagination.cjs.entry.js.map +1 -1
  63. package/dist/cjs/dso-progress-bar.cjs.entry.js +2 -2
  64. package/dist/cjs/dso-progress-indicator.cjs.entry.js +3 -3
  65. package/dist/cjs/dso-progress-indicator.cjs.entry.js.map +1 -1
  66. package/dist/cjs/dso-renvooi_2.cjs.entry.js +68 -0
  67. package/dist/cjs/dso-renvooi_2.cjs.entry.js.map +1 -0
  68. package/dist/cjs/dso-responsive-element.cjs.entry.js +2 -2
  69. package/dist/cjs/dso-scrollable.cjs.entry.js +3 -3
  70. package/dist/cjs/dso-toggletip.cjs.entry.js +2 -2
  71. package/dist/cjs/dso-toolkit.cjs.js +3 -3
  72. package/dist/cjs/dso-toolkit.cjs.js.map +1 -1
  73. package/dist/cjs/dso-tree-view.cjs.entry.js +2 -2
  74. package/dist/cjs/dso-viewer-grid.cjs.entry.js +3 -3
  75. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  76. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +2 -2
  77. package/dist/cjs/{index-56461a0b.js → index-ac055dd1.js} +159 -142
  78. package/dist/cjs/index-ac055dd1.js.map +1 -0
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/cjs/{v4-c23234d2.js → v4-7014b8b0.js} +27 -30
  81. package/dist/cjs/v4-7014b8b0.js.map +1 -0
  82. package/dist/collection/collection-manifest.json +5 -3
  83. package/dist/collection/components/accordion/components/accordion-section.css +11 -0
  84. package/dist/collection/components/accordion/components/accordion-section.js +44 -2
  85. package/dist/collection/components/accordion/components/accordion-section.js.map +1 -1
  86. package/dist/collection/components/alert/alert.css +46 -3
  87. package/dist/collection/components/alert/alert.js +19 -1
  88. package/dist/collection/components/alert/alert.js.map +1 -1
  89. package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +26 -16
  90. package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js.map +1 -1
  91. package/dist/collection/components/annotation/annotation-body.js +1 -1
  92. package/dist/collection/components/annotation/annotation-body.js.map +1 -1
  93. package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +17 -7
  94. package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js.map +1 -1
  95. package/dist/collection/components/annotation/annotation-gewijzigde-locatie.js.map +1 -1
  96. package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.interfaces.js +2 -0
  97. package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.interfaces.js.map +1 -0
  98. package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +128 -0
  99. package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js.map +1 -0
  100. package/dist/collection/components/annotation/{annotation-werkingsgebied/annotation-werkingsgebied.js → annotation-locatie/annotation-locatie.js} +20 -10
  101. package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js.map +1 -0
  102. package/dist/collection/components/annotation/{annotation-omgevingsnorm/annotation-omgevingsnorm.js → annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js} +52 -22
  103. package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js.map +1 -0
  104. package/dist/collection/components/annotation/annotation-symbol-slot.js +3 -0
  105. package/dist/collection/components/annotation/annotation-symbol-slot.js.map +1 -0
  106. package/dist/collection/components/annotation/annotation-watcher.js +26 -0
  107. package/dist/collection/components/annotation/annotation-watcher.js.map +1 -0
  108. package/dist/collection/components/annotation/annotation.css +56 -40
  109. package/dist/collection/components/annotation/annotation.interfaces.js.map +1 -1
  110. package/dist/collection/components/annotation-button/annotation-button.css +2 -1
  111. package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
  112. package/dist/collection/components/autosuggest/autosuggest.js +1 -1
  113. package/dist/collection/components/badge/badge.css +2 -1
  114. package/dist/collection/components/badge/badge.interfaces.js +2 -0
  115. package/dist/collection/components/badge/badge.interfaces.js.map +1 -0
  116. package/dist/collection/components/badge/badge.js +9 -3
  117. package/dist/collection/components/badge/badge.js.map +1 -1
  118. package/dist/collection/components/banner/banner.css +4 -2
  119. package/dist/collection/components/banner/banner.js +2 -2
  120. package/dist/collection/components/card/card.js +2 -2
  121. package/dist/collection/components/card-container/card-container.js +1 -1
  122. package/dist/collection/components/date-picker/date-picker.css +2 -1
  123. package/dist/collection/components/date-picker/date-picker.js +1 -1
  124. package/dist/collection/components/date-picker-legacy/date-picker-legacy.css +2 -1
  125. package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +3 -3
  126. package/dist/collection/components/document-component/document-component.css +2 -1
  127. package/dist/collection/components/document-component/document-component.js +3 -3
  128. package/dist/collection/components/document-component/document-component.js.map +1 -1
  129. package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
  130. package/dist/collection/components/dropdown-menu/dropdown-menu.js +1 -1
  131. package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +2 -2
  132. package/dist/collection/components/highlight-box/highlight-box.js +1 -1
  133. package/dist/collection/components/icon/icon.js +1 -1
  134. package/dist/collection/components/image-overlay/image-overlay.js +2 -2
  135. package/dist/collection/components/image-overlay/image-overlay.js.map +1 -1
  136. package/dist/collection/components/info/info.css +2 -1
  137. package/dist/collection/components/info/info.js +1 -1
  138. package/dist/collection/components/info-button/info-button.js +1 -1
  139. package/dist/collection/components/input-range/input-range.js +2 -2
  140. package/dist/collection/components/label/label.css +4 -2
  141. package/dist/collection/components/label/label.js +3 -3
  142. package/dist/collection/components/legend-item/legend-item.css +2 -1
  143. package/dist/collection/components/legend-item/legend-item.js +2 -2
  144. package/dist/collection/components/list-button/list-button.css +10 -5
  145. package/dist/collection/components/list-button/list-button.js +1 -1
  146. package/dist/collection/components/logo/logo.js +2 -2
  147. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  148. package/dist/collection/components/map-controls/map-controls.css +4 -2
  149. package/dist/collection/components/map-controls/map-controls.js +1 -1
  150. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  151. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  152. package/dist/collection/components/modal/modal.css +34 -10
  153. package/dist/collection/components/modal/modal.js +2 -2
  154. package/dist/collection/components/ozon-content/ozon-content.css +34 -9
  155. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  156. package/dist/collection/components/pagination/pagination.css +2 -0
  157. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  158. package/dist/collection/components/progress-indicator/progress-indicator.css +4 -2
  159. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  160. package/dist/collection/components/renvooi/renvooi.css +54 -0
  161. package/dist/collection/components/renvooi/renvooi.interfaces.js +2 -0
  162. package/dist/collection/components/renvooi/renvooi.interfaces.js.map +1 -0
  163. package/dist/collection/components/renvooi/renvooi.js +65 -0
  164. package/dist/collection/components/renvooi/renvooi.js.map +1 -0
  165. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  166. package/dist/collection/components/scrollable/scrollable.js +2 -2
  167. package/dist/collection/components/selectable/selectable.js +1 -1
  168. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  169. package/dist/collection/components/table/table.css +36 -11
  170. package/dist/collection/components/table/table.js +1 -1
  171. package/dist/collection/components/toggletip/toggletip.js +1 -1
  172. package/dist/collection/components/tooltip/tooltip.js +1 -1
  173. package/dist/collection/components/tree-view/tree-view.js +1 -1
  174. package/dist/collection/components/viewer-grid/viewer-grid.css +10 -5
  175. package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
  176. package/dist/components/alert.js +5 -3
  177. package/dist/components/alert.js.map +1 -1
  178. package/dist/components/annotation-body.js +13 -0
  179. package/dist/components/annotation-body.js.map +1 -0
  180. package/dist/components/annotation-button.js +1 -1
  181. package/dist/components/annotation-button.js.map +1 -1
  182. package/dist/components/annotation-symbol-slot.js +34 -0
  183. package/dist/components/annotation-symbol-slot.js.map +1 -0
  184. package/dist/components/attachments-counter.js +1 -1
  185. package/dist/components/badge.js +2 -2
  186. package/dist/components/badge.js.map +1 -1
  187. package/dist/components/document-component.js +4 -4
  188. package/dist/components/document-component.js.map +1 -1
  189. package/dist/components/dropdown-menu.js +1 -1
  190. package/dist/components/dso-accordion-section.js +15 -5
  191. package/dist/components/dso-accordion-section.js.map +1 -1
  192. package/dist/components/dso-annotation-activiteit.js +23 -7
  193. package/dist/components/dso-annotation-activiteit.js.map +1 -1
  194. package/dist/components/dso-annotation-gebiedsaanwijzing.js +23 -7
  195. package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
  196. package/dist/components/dso-annotation-kaart.d.ts +11 -0
  197. package/dist/components/dso-annotation-kaart.js +75 -0
  198. package/dist/components/dso-annotation-kaart.js.map +1 -0
  199. package/dist/components/dso-annotation-locatie.d.ts +11 -0
  200. package/dist/components/dso-annotation-locatie.js +87 -0
  201. package/dist/components/dso-annotation-locatie.js.map +1 -0
  202. package/dist/components/dso-annotation-omgevingsnormwaarde.d.ts +11 -0
  203. package/dist/components/dso-annotation-omgevingsnormwaarde.js +93 -0
  204. package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -0
  205. package/dist/components/dso-autosuggest.js +1 -1
  206. package/dist/components/dso-banner.js +3 -3
  207. package/dist/components/dso-banner.js.map +1 -1
  208. package/dist/components/dso-card-container.js +1 -1
  209. package/dist/components/dso-card.js +2 -2
  210. package/dist/components/dso-date-picker-legacy.js +4 -4
  211. package/dist/components/dso-date-picker-legacy.js.map +1 -1
  212. package/dist/components/dso-date-picker.js +2 -2
  213. package/dist/components/dso-date-picker.js.map +1 -1
  214. package/dist/components/dso-helpcenter-panel.js +2 -2
  215. package/dist/components/dso-highlight-box.js +1 -1
  216. package/dist/components/dso-input-range.js +2 -2
  217. package/dist/components/dso-legend-item.js +3 -3
  218. package/dist/components/dso-legend-item.js.map +1 -1
  219. package/dist/components/dso-list-button.js +2 -2
  220. package/dist/components/dso-list-button.js.map +1 -1
  221. package/dist/components/dso-logo.js +2 -2
  222. package/dist/components/dso-map-base-layers.js +1 -1
  223. package/dist/components/dso-map-controls.js +2 -2
  224. package/dist/components/dso-map-controls.js.map +1 -1
  225. package/dist/components/dso-map-overlays.js +1 -1
  226. package/dist/components/dso-mark-bar.js +1 -1
  227. package/dist/components/dso-modal.js +3 -3
  228. package/dist/components/dso-modal.js.map +1 -1
  229. package/dist/components/dso-pagination.js +1 -1
  230. package/dist/components/dso-pagination.js.map +1 -1
  231. package/dist/components/dso-progress-bar.js +1 -1
  232. package/dist/components/dso-renvooi.d.ts +11 -0
  233. package/dist/components/dso-renvooi.js +8 -0
  234. package/dist/components/dso-renvooi.js.map +1 -0
  235. package/dist/components/dso-tree-view.js +1 -1
  236. package/dist/components/dso-viewer-grid.js +2 -2
  237. package/dist/components/dso-viewer-grid.js.map +1 -1
  238. package/dist/components/dsot-document-component-demo.js +1 -1
  239. package/dist/components/icon.js +1 -1
  240. package/dist/components/image-overlay.js +2 -2
  241. package/dist/components/image-overlay.js.map +1 -1
  242. package/dist/components/index.d.ts +8 -4
  243. package/dist/components/index.js +4 -2
  244. package/dist/components/index.js.map +1 -1
  245. package/dist/components/info-button.js +1 -1
  246. package/dist/components/info.js +2 -2
  247. package/dist/components/info.js.map +1 -1
  248. package/dist/components/label.js +4 -4
  249. package/dist/components/label.js.map +1 -1
  250. package/dist/components/ozon-content.js +2 -2
  251. package/dist/components/ozon-content.js.map +1 -1
  252. package/dist/components/progress-indicator.js +2 -2
  253. package/dist/components/progress-indicator.js.map +1 -1
  254. package/dist/components/renvooi.js +54 -0
  255. package/dist/components/renvooi.js.map +1 -0
  256. package/dist/components/responsive-element.js +1 -1
  257. package/dist/components/scrollable.js +2 -2
  258. package/dist/components/selectable.js +1 -1
  259. package/dist/components/slide-toggle.js +1 -1
  260. package/dist/components/table.js +2 -2
  261. package/dist/components/table.js.map +1 -1
  262. package/dist/components/toggletip.js +1 -1
  263. package/dist/components/tooltip.js +1 -1
  264. package/dist/components/v4.js +26 -29
  265. package/dist/components/v4.js.map +1 -1
  266. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  267. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  268. package/dist/dso-toolkit/p-01daefd6.entry.js +2 -0
  269. package/dist/dso-toolkit/{p-b6292d1a.entry.js.map → p-01daefd6.entry.js.map} +1 -1
  270. package/dist/dso-toolkit/{p-cbb4f112.entry.js → p-08dba16d.entry.js} +2 -2
  271. package/dist/dso-toolkit/{p-299d8fdc.entry.js → p-0900fddd.entry.js} +2 -2
  272. package/dist/dso-toolkit/{p-ae92d7c8.entry.js → p-0bc8b0cb.entry.js} +2 -2
  273. package/dist/dso-toolkit/p-200b6f6d.entry.js +2 -0
  274. package/dist/dso-toolkit/{p-2265897c.entry.js → p-357d709b.entry.js} +2 -2
  275. package/dist/dso-toolkit/p-380eef98.entry.js +2 -0
  276. package/dist/dso-toolkit/{p-8933926d.entry.js.map → p-380eef98.entry.js.map} +1 -1
  277. package/dist/dso-toolkit/{p-deed4932.entry.js → p-3b01f2a2.entry.js} +2 -2
  278. package/dist/dso-toolkit/{p-cbcb4d1f.entry.js → p-45934ea5.entry.js} +2 -2
  279. package/dist/dso-toolkit/{p-f9865457.entry.js → p-4cfc3dba.entry.js} +2 -2
  280. package/dist/dso-toolkit/{p-f9865457.entry.js.map → p-4cfc3dba.entry.js.map} +1 -1
  281. package/dist/dso-toolkit/p-536b70d8.entry.js +2 -0
  282. package/dist/dso-toolkit/p-536b70d8.entry.js.map +1 -0
  283. package/dist/dso-toolkit/p-65103f88.entry.js +2 -0
  284. package/dist/dso-toolkit/p-65103f88.entry.js.map +1 -0
  285. package/dist/dso-toolkit/p-65c3fa6f.entry.js +2 -0
  286. package/dist/dso-toolkit/{p-3cba474c.entry.js.map → p-65c3fa6f.entry.js.map} +1 -1
  287. package/dist/dso-toolkit/p-6c73ed77.js +2 -0
  288. package/dist/dso-toolkit/p-6c73ed77.js.map +1 -0
  289. package/dist/dso-toolkit/p-6d87bed5.entry.js +2 -0
  290. package/dist/dso-toolkit/p-6d87bed5.entry.js.map +1 -0
  291. package/dist/dso-toolkit/{p-53e04851.entry.js → p-70f2eed4.entry.js} +2 -2
  292. package/dist/dso-toolkit/{p-be2de19c.entry.js → p-81790cb0.entry.js} +2 -2
  293. package/dist/dso-toolkit/p-84d7b509.entry.js +2 -0
  294. package/dist/dso-toolkit/{p-26d0cacc.entry.js.map → p-84d7b509.entry.js.map} +1 -1
  295. package/dist/dso-toolkit/{p-bdaa4b01.entry.js → p-8e4ec29c.entry.js} +2 -2
  296. package/dist/dso-toolkit/p-91f631a2.entry.js +2 -0
  297. package/dist/dso-toolkit/p-97b5ad7b.entry.js +2 -0
  298. package/dist/dso-toolkit/{p-a16adf8a.entry.js.map → p-97b5ad7b.entry.js.map} +1 -1
  299. package/dist/dso-toolkit/{p-f1c58804.entry.js → p-98325f23.entry.js} +2 -2
  300. package/dist/dso-toolkit/p-995b15a4.entry.js +2 -0
  301. package/dist/dso-toolkit/{p-b43b959f.entry.js.map → p-995b15a4.entry.js.map} +1 -1
  302. package/dist/dso-toolkit/{p-824b23ee.entry.js → p-9b698eb6.entry.js} +2 -2
  303. package/dist/dso-toolkit/p-a070bb9e.entry.js +2 -0
  304. package/dist/dso-toolkit/{p-fc3cbf49.entry.js → p-a092b873.entry.js} +2 -2
  305. package/dist/dso-toolkit/{p-9b35c459.entry.js → p-a3d88101.entry.js} +2 -2
  306. package/dist/dso-toolkit/p-a6a47dd2.entry.js +2 -0
  307. package/dist/dso-toolkit/p-ab91a31a.entry.js +2 -0
  308. package/dist/dso-toolkit/p-ab91a31a.entry.js.map +1 -0
  309. package/dist/dso-toolkit/p-ac583d76.js +2 -0
  310. package/dist/dso-toolkit/p-ac583d76.js.map +1 -0
  311. package/dist/dso-toolkit/{p-216b7e41.entry.js → p-b245e776.entry.js} +2 -2
  312. package/dist/dso-toolkit/{p-8f126e70.entry.js → p-b4452919.entry.js} +2 -2
  313. package/dist/dso-toolkit/{p-e6222cd3.entry.js → p-ba0bd24d.entry.js} +2 -2
  314. package/dist/dso-toolkit/{p-358d71cb.entry.js → p-bc3f6f57.entry.js} +2 -2
  315. package/dist/dso-toolkit/p-be09cdfb.entry.js +2 -0
  316. package/dist/dso-toolkit/{p-31a70deb.entry.js.map → p-be09cdfb.entry.js.map} +1 -1
  317. package/dist/dso-toolkit/p-c076cd49.entry.js +2 -0
  318. package/dist/dso-toolkit/p-c076cd49.entry.js.map +1 -0
  319. package/dist/dso-toolkit/p-c1ae4697.entry.js +2 -0
  320. package/dist/dso-toolkit/p-c1ae4697.entry.js.map +1 -0
  321. package/dist/dso-toolkit/p-c2f27106.entry.js +2 -0
  322. package/dist/dso-toolkit/p-c311d632.entry.js +2 -0
  323. package/dist/dso-toolkit/{p-02a600ee.entry.js.map → p-c311d632.entry.js.map} +1 -1
  324. package/dist/dso-toolkit/p-d072c749.entry.js +2 -0
  325. package/dist/dso-toolkit/{p-e737a905.entry.js.map → p-d072c749.entry.js.map} +1 -1
  326. package/dist/dso-toolkit/p-d638c2b0.js +3 -0
  327. package/dist/dso-toolkit/p-d638c2b0.js.map +1 -0
  328. package/dist/dso-toolkit/{p-31aca00a.entry.js → p-d7048b9e.entry.js} +2 -2
  329. package/dist/dso-toolkit/p-d8744e6e.entry.js +2 -0
  330. package/dist/dso-toolkit/p-d8744e6e.entry.js.map +1 -0
  331. package/dist/dso-toolkit/{p-602f573d.entry.js → p-d8cbc58f.entry.js} +2 -2
  332. package/dist/dso-toolkit/{p-618fee5c.entry.js → p-dd2e80f0.entry.js} +2 -2
  333. package/dist/dso-toolkit/p-ef8cccbd.entry.js +2 -0
  334. package/dist/dso-toolkit/p-ef8cccbd.entry.js.map +1 -0
  335. package/dist/dso-toolkit/p-f0637435.entry.js +2 -0
  336. package/dist/dso-toolkit/{p-0361ac95.entry.js.map → p-f0637435.entry.js.map} +1 -1
  337. package/dist/dso-toolkit/p-f4893ad4.entry.js +2 -0
  338. package/dist/dso-toolkit/{p-9a1dee2d.entry.js.map → p-f4893ad4.entry.js.map} +1 -1
  339. package/dist/dso-toolkit/{p-ce66b495.entry.js → p-f59101bd.entry.js} +2 -2
  340. package/dist/dso-toolkit/p-f5ff676c.js +2 -0
  341. package/dist/dso-toolkit/p-f5ff676c.js.map +1 -0
  342. package/dist/dso-toolkit/p-f850de62.entry.js +2 -0
  343. package/dist/dso-toolkit/p-f850de62.entry.js.map +1 -0
  344. package/dist/dso-toolkit/p-fb4f7c98.entry.js +2 -0
  345. package/dist/dso-toolkit/p-fb4f7c98.entry.js.map +1 -0
  346. package/dist/esm/annotation-body-a8fadf3a.js +13 -0
  347. package/dist/esm/annotation-body-a8fadf3a.js.map +1 -0
  348. package/dist/esm/annotation-symbol-slot-28380b95.js +34 -0
  349. package/dist/esm/annotation-symbol-slot-28380b95.js.map +1 -0
  350. package/dist/esm/dso-accordion-section.entry.js +6 -4
  351. package/dist/esm/dso-accordion-section.entry.js.map +1 -1
  352. package/dist/esm/dso-accordion.entry.js +1 -1
  353. package/dist/esm/dso-action-list-item.entry.js +1 -1
  354. package/dist/esm/dso-action-list.entry.js +1 -1
  355. package/dist/esm/dso-advanced-select.entry.js +1 -1
  356. package/dist/esm/{dso-alert_6.entry.js → dso-alert_5.entry.js} +14 -27
  357. package/dist/esm/dso-alert_5.entry.js.map +1 -0
  358. package/dist/esm/dso-annotation-activiteit.entry.js +14 -4
  359. package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
  360. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +14 -4
  361. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
  362. package/dist/esm/dso-annotation-kaart.entry.js +35 -0
  363. package/dist/esm/dso-annotation-kaart.entry.js.map +1 -0
  364. package/dist/esm/dso-annotation-locatie.entry.js +34 -0
  365. package/dist/esm/dso-annotation-locatie.entry.js.map +1 -0
  366. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +37 -0
  367. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -0
  368. package/dist/esm/dso-annotation-output_2.entry.js +5 -5
  369. package/dist/esm/dso-annotation-output_2.entry.js.map +1 -1
  370. package/dist/esm/dso-attachments-counter.entry.js +2 -2
  371. package/dist/esm/dso-autosuggest.entry.js +3 -3
  372. package/dist/esm/dso-badge.entry.js +20 -0
  373. package/dist/esm/dso-badge.entry.js.map +1 -0
  374. package/dist/esm/dso-banner.entry.js +4 -4
  375. package/dist/esm/dso-banner.entry.js.map +1 -1
  376. package/dist/esm/dso-card-container.entry.js +2 -2
  377. package/dist/esm/dso-card.entry.js +3 -3
  378. package/dist/esm/dso-date-picker-legacy.entry.js +5 -5
  379. package/dist/esm/dso-date-picker-legacy.entry.js.map +1 -1
  380. package/dist/esm/dso-date-picker.entry.js +3 -3
  381. package/dist/esm/dso-date-picker.entry.js.map +1 -1
  382. package/dist/esm/dso-dropdown-menu.entry.js +3 -3
  383. package/dist/esm/dso-expandable.entry.js +1 -1
  384. package/dist/esm/dso-header.entry.js +1 -1
  385. package/dist/esm/dso-helpcenter-panel.entry.js +3 -3
  386. package/dist/esm/dso-highlight-box.entry.js +2 -2
  387. package/dist/esm/dso-icon.entry.js +2 -2
  388. package/dist/esm/dso-info-button.entry.js +2 -2
  389. package/dist/esm/dso-info_2.entry.js +4 -4
  390. package/dist/esm/dso-info_2.entry.js.map +1 -1
  391. package/dist/esm/dso-input-range.entry.js +3 -3
  392. package/dist/esm/dso-label_2.entry.js +252 -27
  393. package/dist/esm/dso-label_2.entry.js.map +1 -1
  394. package/dist/esm/dso-legend-item.entry.js +4 -4
  395. package/dist/esm/dso-legend-item.entry.js.map +1 -1
  396. package/dist/esm/dso-list-button.entry.js +3 -3
  397. package/dist/esm/dso-list-button.entry.js.map +1 -1
  398. package/dist/esm/dso-logo.entry.js +3 -3
  399. package/dist/esm/dso-map-base-layers.entry.js +3 -3
  400. package/dist/esm/dso-map-controls.entry.js +3 -3
  401. package/dist/esm/dso-map-controls.entry.js.map +1 -1
  402. package/dist/esm/dso-map-overlays.entry.js +3 -3
  403. package/dist/esm/dso-mark-bar.entry.js +2 -2
  404. package/dist/esm/dso-modal.entry.js +5 -5
  405. package/dist/esm/dso-modal.entry.js.map +1 -1
  406. package/dist/esm/dso-pagination.entry.js +2 -2
  407. package/dist/esm/dso-pagination.entry.js.map +1 -1
  408. package/dist/esm/dso-progress-bar.entry.js +2 -2
  409. package/dist/esm/dso-progress-indicator.entry.js +3 -3
  410. package/dist/esm/dso-progress-indicator.entry.js.map +1 -1
  411. package/dist/esm/dso-renvooi_2.entry.js +63 -0
  412. package/dist/esm/dso-renvooi_2.entry.js.map +1 -0
  413. package/dist/esm/dso-responsive-element.entry.js +2 -2
  414. package/dist/esm/dso-scrollable.entry.js +3 -3
  415. package/dist/esm/dso-toggletip.entry.js +2 -2
  416. package/dist/esm/dso-toolkit.js +4 -4
  417. package/dist/esm/dso-toolkit.js.map +1 -1
  418. package/dist/esm/dso-tree-view.entry.js +2 -2
  419. package/dist/esm/dso-viewer-grid.entry.js +3 -3
  420. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  421. package/dist/esm/dsot-document-component-demo.entry.js +2 -2
  422. package/dist/esm/{index-93de4a35.js → index-c8e19f05.js} +159 -142
  423. package/dist/esm/index-c8e19f05.js.map +1 -0
  424. package/dist/esm/loader.js +3 -3
  425. package/dist/esm/{v4-23648a96.js → v4-a79185f4.js} +27 -30
  426. package/dist/esm/v4-a79185f4.js.map +1 -0
  427. package/dist/types/components/accordion/components/accordion-section.d.ts +9 -0
  428. package/dist/types/components/alert/alert.d.ts +4 -0
  429. package/dist/types/components/annotation/annotation-activiteit/annotation-activiteit.d.ts +9 -4
  430. package/dist/types/components/annotation/annotation-body.d.ts +3 -2
  431. package/dist/types/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.d.ts +7 -2
  432. package/dist/types/components/annotation/annotation-gewijzigde-locatie.d.ts +2 -1
  433. package/dist/types/components/annotation/annotation-kaart/annotation-kaart.d.ts +28 -0
  434. package/dist/types/components/annotation/annotation-kaart/annotation-kaart.interfaces.d.ts +5 -0
  435. package/dist/types/components/annotation/{annotation-werkingsgebied/annotation-werkingsgebied.d.ts → annotation-locatie/annotation-locatie.d.ts} +8 -3
  436. package/dist/types/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.d.ts +47 -0
  437. package/dist/types/components/annotation/annotation-symbol-slot.d.ts +2 -0
  438. package/dist/types/components/annotation/annotation-watcher.d.ts +5 -0
  439. package/dist/types/components/annotation/annotation.interfaces.d.ts +1 -9
  440. package/dist/types/components/badge/badge.d.ts +2 -1
  441. package/dist/types/components/badge/badge.interfaces.d.ts +1 -0
  442. package/dist/types/components/renvooi/renvooi.d.ts +12 -0
  443. package/dist/types/components/renvooi/renvooi.interfaces.d.ts +8 -0
  444. package/dist/types/components.d.ts +241 -102
  445. package/dist/types/stencil-public-runtime.d.ts +0 -2
  446. package/loader/index.d.ts +3 -0
  447. package/package.json +9 -9
  448. package/dist/cjs/annotation-gewijzigde-locatie-4dc4c219.js +0 -41
  449. package/dist/cjs/annotation-gewijzigde-locatie-4dc4c219.js.map +0 -1
  450. package/dist/cjs/dso-alert_6.cjs.entry.js.map +0 -1
  451. package/dist/cjs/dso-annotation-omgevingsnorm.cjs.entry.js +0 -30
  452. package/dist/cjs/dso-annotation-omgevingsnorm.cjs.entry.js.map +0 -1
  453. package/dist/cjs/dso-annotation-werkingsgebied.cjs.entry.js +0 -28
  454. package/dist/cjs/dso-annotation-werkingsgebied.cjs.entry.js.map +0 -1
  455. package/dist/cjs/dso-tooltip.cjs.entry.js +0 -267
  456. package/dist/cjs/dso-tooltip.cjs.entry.js.map +0 -1
  457. package/dist/cjs/index-56461a0b.js.map +0 -1
  458. package/dist/cjs/v4-c23234d2.js.map +0 -1
  459. package/dist/collection/components/annotation/annotation-diff-renderer.js +0 -17
  460. package/dist/collection/components/annotation/annotation-diff-renderer.js.map +0 -1
  461. package/dist/collection/components/annotation/annotation-omgevingsnorm/annotation-omgevingsnorm.js.map +0 -1
  462. package/dist/collection/components/annotation/annotation-werkingsgebied/annotation-werkingsgebied.js.map +0 -1
  463. package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js +0 -2
  464. package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js.map +0 -1
  465. package/dist/components/annotation-gewijzigde-locatie.js +0 -37
  466. package/dist/components/annotation-gewijzigde-locatie.js.map +0 -1
  467. package/dist/components/dso-annotation-omgevingsnorm.d.ts +0 -11
  468. package/dist/components/dso-annotation-omgevingsnorm.js +0 -75
  469. package/dist/components/dso-annotation-omgevingsnorm.js.map +0 -1
  470. package/dist/components/dso-annotation-werkingsgebied.d.ts +0 -11
  471. package/dist/components/dso-annotation-werkingsgebied.js +0 -71
  472. package/dist/components/dso-annotation-werkingsgebied.js.map +0 -1
  473. package/dist/dso-toolkit/p-02a600ee.entry.js +0 -2
  474. package/dist/dso-toolkit/p-0361ac95.entry.js +0 -2
  475. package/dist/dso-toolkit/p-137fc4f4.js +0 -2
  476. package/dist/dso-toolkit/p-137fc4f4.js.map +0 -1
  477. package/dist/dso-toolkit/p-14616bce.js +0 -2
  478. package/dist/dso-toolkit/p-14616bce.js.map +0 -1
  479. package/dist/dso-toolkit/p-208d5671.entry.js +0 -2
  480. package/dist/dso-toolkit/p-208d5671.entry.js.map +0 -1
  481. package/dist/dso-toolkit/p-26d0cacc.entry.js +0 -2
  482. package/dist/dso-toolkit/p-300cbb00.entry.js +0 -2
  483. package/dist/dso-toolkit/p-31a70deb.entry.js +0 -2
  484. package/dist/dso-toolkit/p-3cba474c.entry.js +0 -2
  485. package/dist/dso-toolkit/p-3e5d417d.entry.js +0 -2
  486. package/dist/dso-toolkit/p-520ac2a9.entry.js +0 -2
  487. package/dist/dso-toolkit/p-520ac2a9.entry.js.map +0 -1
  488. package/dist/dso-toolkit/p-68cbd0c9.entry.js +0 -2
  489. package/dist/dso-toolkit/p-68cbd0c9.entry.js.map +0 -1
  490. package/dist/dso-toolkit/p-74ec4384.entry.js +0 -2
  491. package/dist/dso-toolkit/p-8933926d.entry.js +0 -2
  492. package/dist/dso-toolkit/p-9a1dee2d.entry.js +0 -2
  493. package/dist/dso-toolkit/p-a16adf8a.entry.js +0 -2
  494. package/dist/dso-toolkit/p-b43b959f.entry.js +0 -2
  495. package/dist/dso-toolkit/p-b57ca08c.entry.js +0 -2
  496. package/dist/dso-toolkit/p-b57ca08c.entry.js.map +0 -1
  497. package/dist/dso-toolkit/p-b6292d1a.entry.js +0 -2
  498. package/dist/dso-toolkit/p-b886759a.entry.js +0 -2
  499. package/dist/dso-toolkit/p-c55b506b.entry.js +0 -2
  500. package/dist/dso-toolkit/p-c55b506b.entry.js.map +0 -1
  501. package/dist/dso-toolkit/p-c58ffc7a.entry.js +0 -2
  502. package/dist/dso-toolkit/p-c58ffc7a.entry.js.map +0 -1
  503. package/dist/dso-toolkit/p-c7714f92.entry.js +0 -2
  504. package/dist/dso-toolkit/p-c7714f92.entry.js.map +0 -1
  505. package/dist/dso-toolkit/p-cd598033.entry.js +0 -2
  506. package/dist/dso-toolkit/p-cd598033.entry.js.map +0 -1
  507. package/dist/dso-toolkit/p-da8e5f1c.entry.js +0 -2
  508. package/dist/dso-toolkit/p-e6cf4fdb.js +0 -3
  509. package/dist/dso-toolkit/p-e6cf4fdb.js.map +0 -1
  510. package/dist/dso-toolkit/p-e737a905.entry.js +0 -2
  511. package/dist/esm/annotation-gewijzigde-locatie-5f4be68e.js +0 -37
  512. package/dist/esm/annotation-gewijzigde-locatie-5f4be68e.js.map +0 -1
  513. package/dist/esm/dso-alert_6.entry.js.map +0 -1
  514. package/dist/esm/dso-annotation-omgevingsnorm.entry.js +0 -26
  515. package/dist/esm/dso-annotation-omgevingsnorm.entry.js.map +0 -1
  516. package/dist/esm/dso-annotation-werkingsgebied.entry.js +0 -24
  517. package/dist/esm/dso-annotation-werkingsgebied.entry.js.map +0 -1
  518. package/dist/esm/dso-tooltip.entry.js +0 -263
  519. package/dist/esm/dso-tooltip.entry.js.map +0 -1
  520. package/dist/esm/index-93de4a35.js.map +0 -1
  521. package/dist/esm/v4-23648a96.js.map +0 -1
  522. package/dist/types/components/annotation/annotation-diff-renderer.d.ts +0 -7
  523. package/dist/types/components/annotation/annotation-omgevingsnorm/annotation-omgevingsnorm.d.ts +0 -36
  524. package/dist/types/components/ozon-content/nodes/table.node/colspec/colspec.interface.d.ts +0 -12
  525. /package/dist/dso-toolkit/{p-cbb4f112.entry.js.map → p-08dba16d.entry.js.map} +0 -0
  526. /package/dist/dso-toolkit/{p-299d8fdc.entry.js.map → p-0900fddd.entry.js.map} +0 -0
  527. /package/dist/dso-toolkit/{p-ae92d7c8.entry.js.map → p-0bc8b0cb.entry.js.map} +0 -0
  528. /package/dist/dso-toolkit/{p-300cbb00.entry.js.map → p-200b6f6d.entry.js.map} +0 -0
  529. /package/dist/dso-toolkit/{p-2265897c.entry.js.map → p-357d709b.entry.js.map} +0 -0
  530. /package/dist/dso-toolkit/{p-deed4932.entry.js.map → p-3b01f2a2.entry.js.map} +0 -0
  531. /package/dist/dso-toolkit/{p-cbcb4d1f.entry.js.map → p-45934ea5.entry.js.map} +0 -0
  532. /package/dist/dso-toolkit/{p-53e04851.entry.js.map → p-70f2eed4.entry.js.map} +0 -0
  533. /package/dist/dso-toolkit/{p-be2de19c.entry.js.map → p-81790cb0.entry.js.map} +0 -0
  534. /package/dist/dso-toolkit/{p-bdaa4b01.entry.js.map → p-8e4ec29c.entry.js.map} +0 -0
  535. /package/dist/dso-toolkit/{p-da8e5f1c.entry.js.map → p-91f631a2.entry.js.map} +0 -0
  536. /package/dist/dso-toolkit/{p-f1c58804.entry.js.map → p-98325f23.entry.js.map} +0 -0
  537. /package/dist/dso-toolkit/{p-824b23ee.entry.js.map → p-9b698eb6.entry.js.map} +0 -0
  538. /package/dist/dso-toolkit/{p-b886759a.entry.js.map → p-a070bb9e.entry.js.map} +0 -0
  539. /package/dist/dso-toolkit/{p-fc3cbf49.entry.js.map → p-a092b873.entry.js.map} +0 -0
  540. /package/dist/dso-toolkit/{p-9b35c459.entry.js.map → p-a3d88101.entry.js.map} +0 -0
  541. /package/dist/dso-toolkit/{p-3e5d417d.entry.js.map → p-a6a47dd2.entry.js.map} +0 -0
  542. /package/dist/dso-toolkit/{p-216b7e41.entry.js.map → p-b245e776.entry.js.map} +0 -0
  543. /package/dist/dso-toolkit/{p-8f126e70.entry.js.map → p-b4452919.entry.js.map} +0 -0
  544. /package/dist/dso-toolkit/{p-e6222cd3.entry.js.map → p-ba0bd24d.entry.js.map} +0 -0
  545. /package/dist/dso-toolkit/{p-358d71cb.entry.js.map → p-bc3f6f57.entry.js.map} +0 -0
  546. /package/dist/dso-toolkit/{p-74ec4384.entry.js.map → p-c2f27106.entry.js.map} +0 -0
  547. /package/dist/dso-toolkit/{p-31aca00a.entry.js.map → p-d7048b9e.entry.js.map} +0 -0
  548. /package/dist/dso-toolkit/{p-602f573d.entry.js.map → p-d8cbc58f.entry.js.map} +0 -0
  549. /package/dist/dso-toolkit/{p-618fee5c.entry.js.map → p-dd2e80f0.entry.js.map} +0 -0
  550. /package/dist/dso-toolkit/{p-ce66b495.entry.js.map → p-f59101bd.entry.js.map} +0 -0
@@ -1,42 +1,41 @@
1
1
  'use strict';
2
2
 
3
+ /**
4
+ * Convert array of 16 byte values to UUID string format of the form:
5
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
6
+ */
7
+ var byteToHex = [];
8
+ for (var i = 0; i < 256; ++i) {
9
+ byteToHex.push((i + 0x100).toString(16).slice(1));
10
+ }
11
+ function unsafeStringify(arr, offset = 0) {
12
+ // Note: Be careful editing this code! It's been tuned for performance
13
+ // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
14
+ //
15
+ // Note to future-self: No, you can't remove the `toLowerCase()` call.
16
+ // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351
17
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
18
+ }
19
+
3
20
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
4
21
  // require the crypto API and do not support built-in fallback to lower quality random number
5
22
  // generators (like Math.random()).
6
- let getRandomValues;
7
- const rnds8 = new Uint8Array(16);
23
+
24
+ var getRandomValues;
25
+ var rnds8 = new Uint8Array(16);
8
26
  function rng() {
9
27
  // lazy load so that environments that need to polyfill have a chance to do so
10
28
  if (!getRandomValues) {
11
29
  // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
12
30
  getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
13
-
14
31
  if (!getRandomValues) {
15
32
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
16
33
  }
17
34
  }
18
-
19
35
  return getRandomValues(rnds8);
20
36
  }
21
37
 
22
- /**
23
- * Convert array of 16 byte values to UUID string format of the form:
24
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
25
- */
26
-
27
- const byteToHex = [];
28
-
29
- for (let i = 0; i < 256; ++i) {
30
- byteToHex.push((i + 0x100).toString(16).slice(1));
31
- }
32
-
33
- function unsafeStringify(arr, offset = 0) {
34
- // Note: Be careful editing this code! It's been tuned for performance
35
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
36
- return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
37
- }
38
-
39
- const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
38
+ var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
40
39
  const native = {
41
40
  randomUUID
42
41
  };
@@ -45,26 +44,24 @@ function v4(options, buf, offset) {
45
44
  if (native.randomUUID && !buf && !options) {
46
45
  return native.randomUUID();
47
46
  }
48
-
49
47
  options = options || {};
50
- const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
48
+ var rnds = options.random || (options.rng || rng)();
51
49
 
50
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
52
51
  rnds[6] = rnds[6] & 0x0f | 0x40;
53
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
52
+ rnds[8] = rnds[8] & 0x3f | 0x80;
54
53
 
54
+ // Copy bytes to buffer, if provided
55
55
  if (buf) {
56
56
  offset = offset || 0;
57
-
58
- for (let i = 0; i < 16; ++i) {
57
+ for (var i = 0; i < 16; ++i) {
59
58
  buf[offset + i] = rnds[i];
60
59
  }
61
-
62
60
  return buf;
63
61
  }
64
-
65
62
  return un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AAE,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;AAC1B,EAAE,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,GAAG,CAAC;AACtD;AACA;AACA,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAClC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAClC;AACA;AACA,EAAE,IAAI,GAAG,EAAE;AACX,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;AACzB,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE;AACjC,MAAM,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AAChC,KAAK;AACL,IAAI,OAAO,GAAG,CAAC;AACf,GAAG;AACH,EAAE,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAC/B;;;;","names":[],"sources":["../../node_modules/uuid/dist/esm-browser/stringify.js","../../node_modules/uuid/dist/esm-browser/rng.js","../../node_modules/uuid/dist/esm-browser/native.js","../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import validate from './validate.js';\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\nvar byteToHex = [];\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n //\n // Note to future-self: No, you can't remove the `toLowerCase()` call.\n // REF: https://github.com/uuidjs/uuid/pull/677#issuecomment-1757351351\n return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();\n}\nfunction stringify(arr, offset = 0) {\n var uuid = unsafeStringify(arr, offset);\n // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n return uuid;\n}\nexport default stringify;","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\n\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n return getRandomValues(rnds8);\n}","var randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n var rnds = options.random || (options.rng || rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n offset = offset || 0;\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;"],"version":3}
@@ -11,8 +11,9 @@
11
11
  "components/alert/alert.js",
12
12
  "components/annotation/annotation-activiteit/annotation-activiteit.js",
13
13
  "components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js",
14
- "components/annotation/annotation-omgevingsnorm/annotation-omgevingsnorm.js",
15
- "components/annotation/annotation-werkingsgebied/annotation-werkingsgebied.js",
14
+ "components/annotation/annotation-kaart/annotation-kaart.js",
15
+ "components/annotation/annotation-locatie/annotation-locatie.js",
16
+ "components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js",
16
17
  "components/attachments-counter/attachments-counter.js",
17
18
  "components/autosuggest/autosuggest.js",
18
19
  "components/badge/badge.js",
@@ -45,6 +46,7 @@
45
46
  "components/pagination/pagination.js",
46
47
  "components/progress-bar/progress-bar.js",
47
48
  "components/progress-indicator/progress-indicator.js",
49
+ "components/renvooi/renvooi.js",
48
50
  "components/responsive-element/responsive-element.js",
49
51
  "components/scrollable/scrollable.js",
50
52
  "components/selectable/selectable.js",
@@ -57,7 +59,7 @@
57
59
  ],
58
60
  "compiler": {
59
61
  "name": "@stencil/core",
60
- "version": "4.18.3",
62
+ "version": "4.19.2",
61
63
  "typescriptVersion": "5.4.5"
62
64
  },
63
65
  "collections": [],
@@ -88,6 +88,17 @@
88
88
  :host .dso-section-handle > a > .dso-section-handle-addons:last-child dso-icon {
89
89
  margin-inline-start: 16px;
90
90
  }
91
+ :host .dso-section-handle > button > dso-badge,
92
+ :host .dso-section-handle > a > dso-badge {
93
+ margin-inline-start: auto;
94
+ padding-inline-start: 8px;
95
+ word-break: normal;
96
+ }
97
+ :host .dso-section-handle > button > dso-badge + dso-icon:last-child, :host .dso-section-handle > button > dso-badge + .dso-section-handle-addons:last-child,
98
+ :host .dso-section-handle > a > dso-badge + dso-icon:last-child,
99
+ :host .dso-section-handle > a > dso-badge + .dso-section-handle-addons:last-child {
100
+ margin-inline-start: 8px;
101
+ }
91
102
 
92
103
  :host([open]:not([open=false])) .dso-section-handle > button .dso-section-handle-chevron:first-child,
93
104
  :host([open]:not([open=false])) .dso-section-handle > a .dso-section-handle-chevron:first-child {
@@ -78,6 +78,8 @@ export class AccordionSection {
78
78
  this.statusDescription = undefined;
79
79
  this.open = false;
80
80
  this.hasNestedAccordion = false;
81
+ this.badgeMessage = undefined;
82
+ this.badgeStatus = undefined;
81
83
  this.hover = false;
82
84
  }
83
85
  /**
@@ -149,12 +151,12 @@ export class AccordionSection {
149
151
  var _a;
150
152
  const { variant, reverseAlign } = (_a = this.accordionState) !== null && _a !== void 0 ? _a : {};
151
153
  const hasAddons = !!this.statusDescription || !!this.status || !!this.icon || !!this.attachmentCount;
152
- return (h(Host, { key: 'e6d935b422454ca54ef161939dbe7ff8707cd336', class: {
154
+ return (h(Host, { key: 'bb2ed90d426b9a5e64024f49286757f125eb1a84', class: {
153
155
  "dso-accordion-section": true,
154
156
  ["dso-accordion-" + variant]: true,
155
157
  "dso-nested-accordion": this.hasNestedAccordion || this.containsNestedAccordion,
156
158
  "dso-accordion-reverse-align": reverseAlign !== null && reverseAlign !== void 0 ? reverseAlign : false,
157
- }, hidden: !variant, onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, h(Handle, { key: 'df0aade07259ea950aa2d5af7fc78d318607f99f', heading: this.heading, ref: (element) => (this.sectionHeading = element) }, h(HandleElement, { key: 'c3113baab09dcb2429f2755558f47bd5cd0f81f2', handleUrl: this.handleUrl, onClick: this.handleClick, open: this.open, handleElementRef: (e) => (this.handleElementRef = e) }, reverseAlign ? (h(Fragment, null, hasAddons && (h("div", { class: "dso-section-handle-addons" }, h(HandleIcon, { icon: this.icon }))), h("span", null, this.handleTitle), h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-down" }))) : (h(Fragment, null, h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-right" }), this.status && h("span", { class: "sr-only" }, stateMap[this.status]), h("span", null, this.handleTitle, this.isNeutral && (h("dso-icon", { class: "info-icon", icon: this.open || this.hover ? "info-active" : "info" }))), hasAddons && (h("div", { class: "dso-section-handle-addons" }, this.statusDescription && h("span", { class: "dso-status" }, this.statusDescription), h(HandleIcon, { state: this.status, icon: this.icon, attachmentCount: this.attachmentCount }))))))), h("dso-expandable", { key: 'fc46969992194a44e6118eae4d1ad7c52c4d5105', class: "dso-section-body", open: this.open, enableAnimation: true, minimumHeight: this.isNeutral ? 0 : 4, onDsoExpandableAnimationStart: this.handleExpandableAnimationStart, onDsoExpandableAnimationEnd: this.handleExpandableAnimationEnd }, h("div", { key: '72b09c8a6e9121e3454b796cfcc4b248cae2733f', class: "dso-section-body-content", ref: (element) => (this.sectionBody = element) }, h("slot", { key: 'a45f7c226d70d44f86e58c960c486960586fd62f' })))));
159
+ }, hidden: !variant, onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, h(Handle, { key: 'dab26c8dc0994c6735a5c1dc718a520d580c7b53', heading: this.heading, ref: (element) => (this.sectionHeading = element) }, h(HandleElement, { key: '95694c9be44d7c6cd9d7c0ad17f7fe234008f7dc', handleUrl: this.handleUrl, onClick: this.handleClick, open: this.open, handleElementRef: (e) => (this.handleElementRef = e) }, reverseAlign ? (h(Fragment, null, hasAddons && (h("div", { class: "dso-section-handle-addons" }, h(HandleIcon, { icon: this.icon }))), h("span", null, this.handleTitle), this.badgeMessage && h("dso-badge", { status: this.badgeStatus }, this.badgeMessage), h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-down" }))) : (h(Fragment, null, h("dso-icon", { class: "dso-section-handle-chevron", icon: "chevron-right" }), this.status && h("span", { class: "sr-only" }, stateMap[this.status]), h("span", null, this.handleTitle, this.isNeutral && (h("dso-icon", { class: "info-icon", icon: this.open || this.hover ? "info-active" : "info" }))), this.badgeMessage && h("dso-badge", { status: this.badgeStatus }, this.badgeMessage), hasAddons && (h("div", { class: "dso-section-handle-addons" }, this.statusDescription && h("span", { class: "dso-status" }, this.statusDescription), h(HandleIcon, { state: this.status, icon: this.icon, attachmentCount: this.attachmentCount }))))))), h("dso-expandable", { key: '641a2a58e61b2b23c8bf8de4977d8b74e997cc6d', class: "dso-section-body", open: this.open, enableAnimation: true, minimumHeight: this.isNeutral ? 0 : 4, onDsoExpandableAnimationStart: this.handleExpandableAnimationStart, onDsoExpandableAnimationEnd: this.handleExpandableAnimationEnd }, h("div", { key: '7e58a976e58482227bb39e6662933b0d5e2d45a0', class: "dso-section-body-content", ref: (element) => (this.sectionBody = element) }, h("slot", { key: '4bf440484e9e086430b3d7f4d55772b46d4b0e40' })))));
158
160
  }
159
161
  static get is() { return "dso-accordion-section"; }
160
162
  static get encapsulation() { return "shadow"; }
@@ -337,6 +339,46 @@ export class AccordionSection {
337
339
  "attribute": "has-nested-accordion",
338
340
  "reflect": true,
339
341
  "defaultValue": "false"
342
+ },
343
+ "badgeMessage": {
344
+ "type": "string",
345
+ "mutable": false,
346
+ "complexType": {
347
+ "original": "string",
348
+ "resolved": "string | undefined",
349
+ "references": {}
350
+ },
351
+ "required": false,
352
+ "optional": true,
353
+ "docs": {
354
+ "tags": [],
355
+ "text": "A message to be displayed in the heading handle inside a Badge (optional)"
356
+ },
357
+ "attribute": "badge-message",
358
+ "reflect": false
359
+ },
360
+ "badgeStatus": {
361
+ "type": "string",
362
+ "mutable": false,
363
+ "complexType": {
364
+ "original": "BadgeStatus",
365
+ "resolved": "\"attention\" | \"danger\" | \"error\" | \"info\" | \"outline\" | \"primary\" | \"success\" | \"warning\" | undefined",
366
+ "references": {
367
+ "BadgeStatus": {
368
+ "location": "import",
369
+ "path": "../../badge/badge.interfaces",
370
+ "id": "src/components/badge/badge.interfaces.ts::BadgeStatus"
371
+ }
372
+ }
373
+ },
374
+ "required": false,
375
+ "optional": true,
376
+ "docs": {
377
+ "tags": [],
378
+ "text": "The status of the Badge in the heading handle (optional)"
379
+ },
380
+ "attribute": "badge-status",
381
+ "reflect": false
340
382
  }
341
383
  };
342
384
  }
@@ -1 +1 @@
1
- {"version":3,"file":"accordion-section.js","sourceRoot":"","sources":["../../../../../src/components/accordion/components/accordion-section.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,CAAC,EACD,SAAS,EAET,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,KAAK,EAGL,MAAM,GACP,MAAM,eAAe,CAAC;AAGvB,OAAO,EAML,QAAQ,GACT,MAAM,gCAAgC,CAAC;AAGxC,sCAAsC;AACtC,MAAM,GAAG,GAAI,MAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,cAAa,CAAC,CAAC;AAEjG,MAAM,aAAa,GAKd,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,QAAQ,EAAE,EAAE;IAChE,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,CACL,SAAG,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,mBAAiB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,gBAAgB,IAChG,QAAQ,CACP,CACL,CAAC;IACJ,CAAC;IAED,OAAO,CACL,cAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,OAAO,mBAAiB,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,gBAAgB,IAClG,QAAQ,CACF,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAGP,CAAC,EAAE,O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r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n forceUpdate,\r\n Fragment,\r\n Host,\r\n Prop,\r\n State,\r\n EventEmitter,\r\n FunctionalComponent,\r\n Method,\r\n} from \"@stencil/core\";\r\n\r\nimport { AccordionInternalState } from \"../accordion.interfaces\";\r\nimport {\r\n AccordionHeading,\r\n AccordionSectionAnimationEndEvent,\r\n AccordionSectionState,\r\n AccordionSectionToggleClickEvent,\r\n AccordionSectionAnimationStartEvent,\r\n stateMap,\r\n} from \"./accordion-section.interfaces\";\r\nimport { ExpandableAnimationEndEvent } from \"../../expandable/expandable\";\r\n\r\n// eslint-disable-next-line no-console\r\nconst log = (window as any)[\"_dsoLog\"] === true ? console.log.bind(console.log) : function () {};\r\n\r\nconst HandleElement: FunctionalComponent<{\r\n handleUrl: string | undefined;\r\n open: boolean;\r\n handleElementRef: (element: HTMLAnchorElement | HTMLButtonElement | undefined) => void;\r\n onClick: (e: MouseEvent) => void;\r\n}> = ({ handleUrl, onClick, open, handleElementRef }, children) => {\r\n if (handleUrl) {\r\n return (\r\n <a href={handleUrl} onClick={onClick} aria-expanded={open ? \"true\" : \"false\"} ref={handleElementRef}>\r\n {children}\r\n </a>\r\n );\r\n }\r\n\r\n return (\r\n <button type=\"button\" onClick={onClick} aria-expanded={open ? \"true\" : \"false\"} ref={handleElementRef}>\r\n {children}\r\n </button>\r\n );\r\n};\r\n\r\nconst Handle: FunctionalComponent<{\r\n heading: AccordionHeading;\r\n ref: (element: HTMLHeadingElement | undefined) => void;\r\n}> = ({ heading, ref }, children) => {\r\n switch (heading) {\r\n default:\r\n case \"h2\":\r\n return (\r\n <h2 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h2>\r\n );\r\n case \"h3\":\r\n return (\r\n <h3 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h3>\r\n );\r\n case \"h4\":\r\n return (\r\n <h4 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h4>\r\n );\r\n case \"h5\":\r\n return (\r\n <h5 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h5>\r\n );\r\n }\r\n};\r\n\r\nconst HandleIcon: FunctionalComponent<{\r\n state?: AccordionSectionState;\r\n icon?: string;\r\n attachmentCount?: number;\r\n}> = ({ state, icon, attachmentCount }) => {\r\n if (state) {\r\n return <HandleStateIcon state={state} />;\r\n }\r\n\r\n if (attachmentCount) {\r\n return <dso-attachments-counter count={attachmentCount}></dso-attachments-counter>;\r\n }\r\n\r\n if (icon) {\r\n return <dso-icon icon={icon}></dso-icon>;\r\n }\r\n};\r\n\r\nconst HandleStateIcon: FunctionalComponent<{ state: AccordionSectionState }> = ({ state }) => {\r\n if (state === \"error\") {\r\n return <dso-icon icon=\"status-error\"></dso-icon>;\r\n }\r\n\r\n if (state === \"danger\") {\r\n return <dso-icon icon=\"status-danger\"></dso-icon>;\r\n }\r\n\r\n if (state === \"success\") {\r\n return <dso-icon icon=\"status-success\"></dso-icon>;\r\n }\r\n\r\n if (state === \"info\") {\r\n return <dso-icon icon=\"status-info\"></dso-icon>;\r\n }\r\n\r\n if (state === \"warning\") {\r\n return <dso-icon icon=\"status-warning\"></dso-icon>;\r\n }\r\n};\r\n\r\n@Component({\r\n tag: \"dso-accordion-section\",\r\n styleUrl: \"accordion-section.scss\",\r\n shadow: true,\r\n})\r\nexport class AccordionSection implements ComponentInterface {\r\n private accordionState?: AccordionInternalState;\r\n\r\n private sectionBody?: HTMLDivElement;\r\n\r\n private sectionHeading?: HTMLHeadingElement;\r\n\r\n @Element()\r\n host!: HTMLDsoAccordionSectionElement;\r\n\r\n /**\r\n * The title of the handle\r\n */\r\n @Prop()\r\n handleTitle?: string;\r\n\r\n /**\r\n * Which heading element to use.\r\n */\r\n @Prop()\r\n heading: AccordionHeading = \"h2\";\r\n\r\n /**\r\n * When set the handle will render as a `<a>`. When undefined it renders as a `<button>`\r\n */\r\n @Prop()\r\n handleUrl?: string;\r\n\r\n /**\r\n * `state` takes precedence over `attachmentCount` and `icon`\r\n */\r\n @Prop()\r\n status?: AccordionSectionState;\r\n\r\n /**\r\n * `attachmentCount` takes precedence over `icon`\r\n */\r\n @Prop()\r\n attachmentCount?: number;\r\n\r\n /**\r\n * To set an icon in the heading handle.\r\n */\r\n @Prop()\r\n icon?: string;\r\n\r\n /**\r\n * The status of the section.\r\n */\r\n @Prop()\r\n statusDescription?: string;\r\n\r\n /**\r\n * Set the Accordion Section open.\r\n */\r\n @Prop({ reflect: true })\r\n open = false;\r\n\r\n /**\r\n * Set when this Accordion Section contains or will contain an Accordion.\r\n */\r\n @Prop({ reflect: true })\r\n hasNestedAccordion = false;\r\n\r\n /**\r\n * Calling this method will set focus to the handle.\r\n */\r\n @Method()\r\n async focusHandle() {\r\n this.handleElementRef?.focus();\r\n }\r\n\r\n @State()\r\n hover = false;\r\n\r\n get containsNestedAccordion() {\r\n return this.host.querySelector(\"dso-accordion\") !== null;\r\n }\r\n\r\n componentWillLoad() {\r\n this.accordion?._getState().then((state) => {\r\n this.accordionState = state;\r\n\r\n forceUpdate(this.host);\r\n });\r\n }\r\n\r\n get isNeutral() {\r\n return this.accordionState?.variant === \"neutral\";\r\n }\r\n\r\n private async scrollIntoView(bodyHeight: number | undefined, behavior: ScrollBehavior = \"auto\"): Promise<void> {\r\n log(\r\n `DSO Toolkit [Accordion Section] scrollIntoView(bodyHeight: ${JSON.stringify(\r\n bodyHeight,\r\n )}, behavior: ${JSON.stringify(behavior)})`,\r\n );\r\n\r\n const bodyClientRect = this.sectionBody?.getBoundingClientRect();\r\n const headingClientRect = this.sectionHeading?.getBoundingClientRect();\r\n\r\n log(`DSO Toolkit [Accordion Section] const bodyClientRect = ${JSON.stringify(bodyClientRect)};`);\r\n log(`DSO Toolkit [Accordion Section] const headingClientRect = ${JSON.stringify(headingClientRect)};`);\r\n log(`DSO Toolkit [Accordion Section] this.accordionState = ${JSON.stringify(this.accordionState)};`);\r\n log(`DSO Toolkit [Accordion Section] this.open = ${JSON.stringify(this.open)};`);\r\n\r\n if (!bodyClientRect || !headingClientRect || !this.accordionState) {\r\n log(`DSO Toolkit [Accordion Section] returning`);\r\n\r\n return;\r\n }\r\n\r\n // this y is relative to the top of the viewport.\r\n const sectionBottomY = headingClientRect.top + headingClientRect.height + (this.open ? bodyHeight ?? 0 : 0);\r\n\r\n log(`DSO Toolkit [Accordion Section] const sectionBottomY = ${JSON.stringify(sectionBottomY)};`);\r\n log(`DSO Toolkit [Accordion Section] window.innerHeight = ${JSON.stringify(window.innerHeight)};`);\r\n\r\n const box = this.host.getBoundingClientRect();\r\n\r\n const scrollTop = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop;\r\n const clientTop = document.documentElement.clientTop || document.body.clientTop || 0;\r\n const top = box.top + scrollTop - clientTop;\r\n\r\n log(\"DSO Toolkit [Accordion Section] scroll\", { box, scrollTop, clientTop, top });\r\n\r\n if (sectionBottomY > window.innerHeight) {\r\n log(\r\n `DSO Toolkit [Accordion Section] sectionBottomY > window.innerHeight === ${JSON.stringify(\r\n sectionBottomY > window.innerHeight,\r\n )};`,\r\n );\r\n\r\n const expandedAccordionHeight = sectionBottomY - headingClientRect.top;\r\n const shouldScrollToTopOfSection = expandedAccordionHeight > window.innerHeight;\r\n\r\n log(\r\n `DSO Toolkit [Accordion Section] const expandedAccordionHeight = ${JSON.stringify(expandedAccordionHeight)};`,\r\n );\r\n log(\r\n `DSO Toolkit [Accordion Section] const shouldScrollToTopOfSection = ${JSON.stringify(\r\n shouldScrollToTopOfSection,\r\n )};`,\r\n );\r\n\r\n window.scrollTo({\r\n top: shouldScrollToTopOfSection ? top : top - (window.innerHeight - expandedAccordionHeight),\r\n behavior,\r\n });\r\n } else if (headingClientRect.top < 0) {\r\n log(\r\n `DSO Toolkit [Accordion Section] headingClientRect.top < 0 === ${JSON.stringify(headingClientRect.top < 0)};`,\r\n );\r\n\r\n window.scrollTo({\r\n top,\r\n behavior,\r\n });\r\n }\r\n }\r\n\r\n private get accordion() {\r\n return this.host.closest(\"dso-accordion\");\r\n }\r\n\r\n private handleClick = (event: MouseEvent) => {\r\n this.dsoToggleClick.emit({\r\n originalEvent: event,\r\n open: !this.open,\r\n });\r\n };\r\n\r\n private handleExpandableAnimationStart = (e: CustomEvent<any>) => {\r\n this.dsoAnimationStart.emit({\r\n animation: this.open ? \"opening\" : \"closing\",\r\n scrollIntoView: (behavior: ScrollBehavior = \"auto\") => this.scrollIntoView(e.detail.bodyHeight, behavior),\r\n });\r\n };\r\n\r\n private handleExpandableAnimationEnd = (e: CustomEvent<ExpandableAnimationEndEvent>) => {\r\n this.dsoAnimationEnd.emit({\r\n open: this.open,\r\n scrollIntoView: (behavior: ScrollBehavior = \"auto\") => this.scrollIntoView(e.detail.bodyHeight, behavior),\r\n });\r\n };\r\n\r\n /**\r\n * Emitted when the user activates the toggle button.\r\n */\r\n @Event({ bubbles: false })\r\n dsoToggleClick!: EventEmitter<AccordionSectionToggleClickEvent>;\r\n\r\n /**\r\n * Event emitted when the Accordion Section starts its toggle animation.\r\n */\r\n @Event({ bubbles: false })\r\n dsoAnimationStart!: EventEmitter<AccordionSectionAnimationStartEvent>;\r\n\r\n /**\r\n * Event emitted when the Accordion Section completes its toggle animation.\r\n */\r\n @Event({ bubbles: false })\r\n dsoAnimationEnd!: EventEmitter<AccordionSectionAnimationEndEvent>;\r\n\r\n private handleElementRef?: HTMLAnchorElement | HTMLButtonElement;\r\n\r\n render() {\r\n const { variant, reverseAlign } = this.accordionState ?? {};\r\n const hasAddons = !!this.statusDescription || !!this.status || !!this.icon || !!this.attachmentCount;\r\n\r\n return (\r\n <Host\r\n class={{\r\n \"dso-accordion-section\": true,\r\n [\"dso-accordion-\" + variant]: true,\r\n \"dso-nested-accordion\": this.hasNestedAccordion || this.containsNestedAccordion,\r\n \"dso-accordion-reverse-align\": reverseAlign ?? false,\r\n }}\r\n hidden={!variant}\r\n onMouseenter={() => (this.hover = true)}\r\n onMouseleave={() => (this.hover = false)}\r\n >\r\n <Handle heading={this.heading} ref={(element) => (this.sectionHeading = element)}>\r\n <HandleElement\r\n handleUrl={this.handleUrl}\r\n onClick={this.handleClick}\r\n open={this.open}\r\n handleElementRef={(e) => (this.handleElementRef = e)}\r\n >\r\n {reverseAlign ? (\r\n <Fragment>\r\n {hasAddons && (\r\n <div class=\"dso-section-handle-addons\">\r\n <HandleIcon icon={this.icon} />\r\n </div>\r\n )}\r\n\r\n <span>{this.handleTitle}</span>\r\n\r\n <dso-icon class=\"dso-section-handle-chevron\" icon=\"chevron-down\"></dso-icon>\r\n </Fragment>\r\n ) : (\r\n <Fragment>\r\n <dso-icon class=\"dso-section-handle-chevron\" icon=\"chevron-right\"></dso-icon>\r\n\r\n {this.status && <span class=\"sr-only\">{stateMap[this.status]}</span>}\r\n\r\n <span>\r\n {this.handleTitle}\r\n {this.isNeutral && (\r\n <dso-icon class=\"info-icon\" icon={this.open || this.hover ? \"info-active\" : \"info\"} />\r\n )}\r\n </span>\r\n\r\n {hasAddons && (\r\n <div class=\"dso-section-handle-addons\">\r\n {this.statusDescription && <span class=\"dso-status\">{this.statusDescription}</span>}\r\n <HandleIcon state={this.status} icon={this.icon} attachmentCount={this.attachmentCount} />\r\n </div>\r\n )}\r\n </Fragment>\r\n )}\r\n </HandleElement>\r\n </Handle>\r\n <dso-expandable\r\n class=\"dso-section-body\"\r\n open={this.open}\r\n enableAnimation\r\n minimumHeight={this.isNeutral ? 0 : 4}\r\n onDsoExpandableAnimationStart={this.handleExpandableAnimationStart}\r\n onDsoExpandableAnimationEnd={this.handleExpandableAnimationEnd}\r\n >\r\n <div class=\"dso-section-body-content\" ref={(element) => (this.sectionBody = element)}>\r\n <slot />\r\n </div>\r\n </dso-expandable>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"accordion-section.js","sourceRoot":"","sources":["../../../../../src/components/accordion/components/accordion-section.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,CAAC,EACD,SAAS,EAET,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,I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ter,\r\n FunctionalComponent,\r\n Method,\r\n} from \"@stencil/core\";\r\n\r\nimport { AccordionInternalState } from \"../accordion.interfaces\";\r\nimport {\r\n AccordionHeading,\r\n AccordionSectionAnimationEndEvent,\r\n AccordionSectionState,\r\n AccordionSectionToggleClickEvent,\r\n AccordionSectionAnimationStartEvent,\r\n stateMap,\r\n} from \"./accordion-section.interfaces\";\r\nimport { ExpandableAnimationEndEvent } from \"../../expandable/expandable\";\r\nimport { BadgeStatus } from \"../../badge/badge.interfaces\";\r\n\r\n// eslint-disable-next-line no-console\r\nconst log = (window as any)[\"_dsoLog\"] === true ? console.log.bind(console.log) : function () {};\r\n\r\nconst HandleElement: FunctionalComponent<{\r\n handleUrl: string | undefined;\r\n open: boolean;\r\n handleElementRef: (element: HTMLAnchorElement | HTMLButtonElement | undefined) => void;\r\n onClick: (e: MouseEvent) => void;\r\n}> = ({ handleUrl, onClick, open, handleElementRef }, children) => {\r\n if (handleUrl) {\r\n return (\r\n <a href={handleUrl} onClick={onClick} aria-expanded={open ? \"true\" : \"false\"} ref={handleElementRef}>\r\n {children}\r\n </a>\r\n );\r\n }\r\n\r\n return (\r\n <button type=\"button\" onClick={onClick} aria-expanded={open ? \"true\" : \"false\"} ref={handleElementRef}>\r\n {children}\r\n </button>\r\n );\r\n};\r\n\r\nconst Handle: FunctionalComponent<{\r\n heading: AccordionHeading;\r\n ref: (element: HTMLHeadingElement | undefined) => void;\r\n}> = ({ heading, ref }, children) => {\r\n switch (heading) {\r\n default:\r\n case \"h2\":\r\n return (\r\n <h2 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h2>\r\n );\r\n case \"h3\":\r\n return (\r\n <h3 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h3>\r\n );\r\n case \"h4\":\r\n return (\r\n <h4 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h4>\r\n );\r\n case \"h5\":\r\n return (\r\n <h5 ref={ref} class=\"dso-section-handle\">\r\n {children}\r\n </h5>\r\n );\r\n }\r\n};\r\n\r\nconst HandleIcon: FunctionalComponent<{\r\n state?: AccordionSectionState;\r\n icon?: string;\r\n attachmentCount?: number;\r\n}> = ({ state, icon, attachmentCount }) => {\r\n if (state) {\r\n return <HandleStateIcon state={state} />;\r\n }\r\n\r\n if (attachmentCount) {\r\n return <dso-attachments-counter count={attachmentCount}></dso-attachments-counter>;\r\n }\r\n\r\n if (icon) {\r\n return <dso-icon icon={icon}></dso-icon>;\r\n }\r\n};\r\n\r\nconst HandleStateIcon: FunctionalComponent<{ state: AccordionSectionState }> = ({ state }) => {\r\n if (state === \"error\") {\r\n return <dso-icon icon=\"status-error\"></dso-icon>;\r\n }\r\n\r\n if (state === \"danger\") {\r\n return <dso-icon icon=\"status-danger\"></dso-icon>;\r\n }\r\n\r\n if (state === \"success\") {\r\n return <dso-icon icon=\"status-success\"></dso-icon>;\r\n }\r\n\r\n if (state === \"info\") {\r\n return <dso-icon icon=\"status-info\"></dso-icon>;\r\n }\r\n\r\n if (state === \"warning\") {\r\n return <dso-icon icon=\"status-warning\"></dso-icon>;\r\n }\r\n};\r\n\r\n@Component({\r\n tag: \"dso-accordion-section\",\r\n styleUrl: \"accordion-section.scss\",\r\n shadow: true,\r\n})\r\nexport class AccordionSection implements ComponentInterface {\r\n private accordionState?: AccordionInternalState;\r\n\r\n private sectionBody?: HTMLDivElement;\r\n\r\n private sectionHeading?: HTMLHeadingElement;\r\n\r\n @Element()\r\n host!: HTMLDsoAccordionSectionElement;\r\n\r\n /**\r\n * The title of the handle\r\n */\r\n @Prop()\r\n handleTitle?: string;\r\n\r\n /**\r\n * Which heading element to use.\r\n */\r\n @Prop()\r\n heading: AccordionHeading = \"h2\";\r\n\r\n /**\r\n * When set the handle will render as a `<a>`. When undefined it renders as a `<button>`\r\n */\r\n @Prop()\r\n handleUrl?: string;\r\n\r\n /**\r\n * `state` takes precedence over `attachmentCount` and `icon`\r\n */\r\n @Prop()\r\n status?: AccordionSectionState;\r\n\r\n /**\r\n * `attachmentCount` takes precedence over `icon`\r\n */\r\n @Prop()\r\n attachmentCount?: number;\r\n\r\n /**\r\n * To set an icon in the heading handle.\r\n */\r\n @Prop()\r\n icon?: string;\r\n\r\n /**\r\n * The status of the section.\r\n */\r\n @Prop()\r\n statusDescription?: string;\r\n\r\n /**\r\n * Set the Accordion Section open.\r\n */\r\n @Prop({ reflect: true })\r\n open = false;\r\n\r\n /**\r\n * Set when this Accordion Section contains or will contain an Accordion.\r\n */\r\n @Prop({ reflect: true })\r\n hasNestedAccordion = false;\r\n\r\n /**\r\n * A message to be displayed in the heading handle inside a Badge (optional)\r\n */\r\n @Prop()\r\n badgeMessage?: string;\r\n\r\n /**\r\n * The status of the Badge in the heading handle (optional)\r\n */\r\n @Prop()\r\n badgeStatus?: BadgeStatus;\r\n\r\n /**\r\n * Calling this method will set focus to the handle.\r\n */\r\n @Method()\r\n async focusHandle() {\r\n this.handleElementRef?.focus();\r\n }\r\n\r\n @State()\r\n hover = false;\r\n\r\n get containsNestedAccordion() {\r\n return this.host.querySelector(\"dso-accordion\") !== null;\r\n }\r\n\r\n componentWillLoad() {\r\n this.accordion?._getState().then((state) => {\r\n this.accordionState = state;\r\n\r\n forceUpdate(this.host);\r\n });\r\n }\r\n\r\n get isNeutral() {\r\n return this.accordionState?.variant === \"neutral\";\r\n }\r\n\r\n private async scrollIntoView(bodyHeight: number | undefined, behavior: ScrollBehavior = \"auto\"): Promise<void> {\r\n log(\r\n `DSO Toolkit [Accordion Section] scrollIntoView(bodyHeight: ${JSON.stringify(\r\n bodyHeight,\r\n )}, behavior: ${JSON.stringify(behavior)})`,\r\n );\r\n\r\n const bodyClientRect = this.sectionBody?.getBoundingClientRect();\r\n const headingClientRect = this.sectionHeading?.getBoundingClientRect();\r\n\r\n log(`DSO Toolkit [Accordion Section] const bodyClientRect = ${JSON.stringify(bodyClientRect)};`);\r\n log(`DSO Toolkit [Accordion Section] const headingClientRect = ${JSON.stringify(headingClientRect)};`);\r\n log(`DSO Toolkit [Accordion Section] this.accordionState = ${JSON.stringify(this.accordionState)};`);\r\n log(`DSO Toolkit [Accordion Section] this.open = ${JSON.stringify(this.open)};`);\r\n\r\n if (!bodyClientRect || !headingClientRect || !this.accordionState) {\r\n log(`DSO Toolkit [Accordion Section] returning`);\r\n\r\n return;\r\n }\r\n\r\n // this y is relative to the top of the viewport.\r\n const sectionBottomY = headingClientRect.top + headingClientRect.height + (this.open ? bodyHeight ?? 0 : 0);\r\n\r\n log(`DSO Toolkit [Accordion Section] const sectionBottomY = ${JSON.stringify(sectionBottomY)};`);\r\n log(`DSO Toolkit [Accordion Section] window.innerHeight = ${JSON.stringify(window.innerHeight)};`);\r\n\r\n const box = this.host.getBoundingClientRect();\r\n\r\n const scrollTop = window.scrollY || document.documentElement.scrollTop || document.body.scrollTop;\r\n const clientTop = document.documentElement.clientTop || document.body.clientTop || 0;\r\n const top = box.top + scrollTop - clientTop;\r\n\r\n log(\"DSO Toolkit [Accordion Section] scroll\", { box, scrollTop, clientTop, top });\r\n\r\n if (sectionBottomY > window.innerHeight) {\r\n log(\r\n `DSO Toolkit [Accordion Section] sectionBottomY > window.innerHeight === ${JSON.stringify(\r\n sectionBottomY > window.innerHeight,\r\n )};`,\r\n );\r\n\r\n const expandedAccordionHeight = sectionBottomY - headingClientRect.top;\r\n const shouldScrollToTopOfSection = expandedAccordionHeight > window.innerHeight;\r\n\r\n log(\r\n `DSO Toolkit [Accordion Section] const expandedAccordionHeight = ${JSON.stringify(expandedAccordionHeight)};`,\r\n );\r\n log(\r\n `DSO Toolkit [Accordion Section] const shouldScrollToTopOfSection = ${JSON.stringify(\r\n shouldScrollToTopOfSection,\r\n )};`,\r\n );\r\n\r\n window.scrollTo({\r\n top: shouldScrollToTopOfSection ? top : top - (window.innerHeight - expandedAccordionHeight),\r\n behavior,\r\n });\r\n } else if (headingClientRect.top < 0) {\r\n log(\r\n `DSO Toolkit [Accordion Section] headingClientRect.top < 0 === ${JSON.stringify(headingClientRect.top < 0)};`,\r\n );\r\n\r\n window.scrollTo({\r\n top,\r\n behavior,\r\n });\r\n }\r\n }\r\n\r\n private get accordion() {\r\n return this.host.closest(\"dso-accordion\");\r\n }\r\n\r\n private handleClick = (event: MouseEvent) => {\r\n this.dsoToggleClick.emit({\r\n originalEvent: event,\r\n open: !this.open,\r\n });\r\n };\r\n\r\n private handleExpandableAnimationStart = (e: CustomEvent<any>) => {\r\n this.dsoAnimationStart.emit({\r\n animation: this.open ? \"opening\" : \"closing\",\r\n scrollIntoView: (behavior: ScrollBehavior = \"auto\") => this.scrollIntoView(e.detail.bodyHeight, behavior),\r\n });\r\n };\r\n\r\n private handleExpandableAnimationEnd = (e: CustomEvent<ExpandableAnimationEndEvent>) => {\r\n this.dsoAnimationEnd.emit({\r\n open: this.open,\r\n scrollIntoView: (behavior: ScrollBehavior = \"auto\") => this.scrollIntoView(e.detail.bodyHeight, behavior),\r\n });\r\n };\r\n\r\n /**\r\n * Emitted when the user activates the toggle button.\r\n */\r\n @Event({ bubbles: false })\r\n dsoToggleClick!: EventEmitter<AccordionSectionToggleClickEvent>;\r\n\r\n /**\r\n * Event emitted when the Accordion Section starts its toggle animation.\r\n */\r\n @Event({ bubbles: false })\r\n dsoAnimationStart!: EventEmitter<AccordionSectionAnimationStartEvent>;\r\n\r\n /**\r\n * Event emitted when the Accordion Section completes its toggle animation.\r\n */\r\n @Event({ bubbles: false })\r\n dsoAnimationEnd!: EventEmitter<AccordionSectionAnimationEndEvent>;\r\n\r\n private handleElementRef?: HTMLAnchorElement | HTMLButtonElement;\r\n\r\n render() {\r\n const { variant, reverseAlign } = this.accordionState ?? {};\r\n const hasAddons = !!this.statusDescription || !!this.status || !!this.icon || !!this.attachmentCount;\r\n\r\n return (\r\n <Host\r\n class={{\r\n \"dso-accordion-section\": true,\r\n [\"dso-accordion-\" + variant]: true,\r\n \"dso-nested-accordion\": this.hasNestedAccordion || this.containsNestedAccordion,\r\n \"dso-accordion-reverse-align\": reverseAlign ?? false,\r\n }}\r\n hidden={!variant}\r\n onMouseenter={() => (this.hover = true)}\r\n onMouseleave={() => (this.hover = false)}\r\n >\r\n <Handle heading={this.heading} ref={(element) => (this.sectionHeading = element)}>\r\n <HandleElement\r\n handleUrl={this.handleUrl}\r\n onClick={this.handleClick}\r\n open={this.open}\r\n handleElementRef={(e) => (this.handleElementRef = e)}\r\n >\r\n {reverseAlign ? (\r\n <Fragment>\r\n {hasAddons && (\r\n <div class=\"dso-section-handle-addons\">\r\n <HandleIcon icon={this.icon} />\r\n </div>\r\n )}\r\n\r\n <span>{this.handleTitle}</span>\r\n\r\n {this.badgeMessage && <dso-badge status={this.badgeStatus}>{this.badgeMessage}</dso-badge>}\r\n\r\n <dso-icon class=\"dso-section-handle-chevron\" icon=\"chevron-down\"></dso-icon>\r\n </Fragment>\r\n ) : (\r\n <Fragment>\r\n <dso-icon class=\"dso-section-handle-chevron\" icon=\"chevron-right\"></dso-icon>\r\n\r\n {this.status && <span class=\"sr-only\">{stateMap[this.status]}</span>}\r\n\r\n <span>\r\n {this.handleTitle}\r\n {this.isNeutral && (\r\n <dso-icon class=\"info-icon\" icon={this.open || this.hover ? \"info-active\" : \"info\"} />\r\n )}\r\n </span>\r\n\r\n {this.badgeMessage && <dso-badge status={this.badgeStatus}>{this.badgeMessage}</dso-badge>}\r\n\r\n {hasAddons && (\r\n <div class=\"dso-section-handle-addons\">\r\n {this.statusDescription && <span class=\"dso-status\">{this.statusDescription}</span>}\r\n <HandleIcon state={this.status} icon={this.icon} attachmentCount={this.attachmentCount} />\r\n </div>\r\n )}\r\n </Fragment>\r\n )}\r\n </HandleElement>\r\n </Handle>\r\n <dso-expandable\r\n class=\"dso-section-body\"\r\n open={this.open}\r\n enableAnimation\r\n minimumHeight={this.isNeutral ? 0 : 4}\r\n onDsoExpandableAnimationStart={this.handleExpandableAnimationStart}\r\n onDsoExpandableAnimationEnd={this.handleExpandableAnimationEnd}\r\n >\r\n <div class=\"dso-section-body-content\" ref={(element) => (this.sectionBody = element)}>\r\n <slot />\r\n </div>\r\n </dso-expandable>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
@@ -6,6 +6,23 @@
6
6
  margin-block-start: 24px;
7
7
  }
8
8
 
9
+ :host([compact]:not([compact=false])) {
10
+ position: relative;
11
+ border-end-end-radius: 8px;
12
+ border-start-end-radius: 8px;
13
+ margin-inline-start: 8px;
14
+ }
15
+ :host([compact]:not([compact=false]))::before {
16
+ border-end-start-radius: 8px;
17
+ border-start-start-radius: 8px;
18
+ inset-block-end: 0;
19
+ content: "";
20
+ inset-inline-start: -8px;
21
+ position: absolute;
22
+ inset-block-start: 0;
23
+ inline-size: 8px;
24
+ }
25
+
9
26
  :host([status=success]) {
10
27
  --link-color: currentColor;
11
28
  --link-hover-color: currentColor;
@@ -27,6 +44,10 @@
27
44
  background-image: url("./dso-icons.svg#img-email-zwart");
28
45
  }
29
46
 
47
+ :host([status=success][compact]:not([compact=false]))::before {
48
+ background-color: #39870c;
49
+ }
50
+
30
51
  :host([status=error]) {
31
52
  --link-color: currentColor;
32
53
  --link-hover-color: currentColor;
@@ -48,6 +69,10 @@
48
69
  background-image: url("./dso-icons.svg#img-email-zwart");
49
70
  }
50
71
 
72
+ :host([status=error][compact]:not([compact=false]))::before {
73
+ background-color: #ce3f51;
74
+ }
75
+
51
76
  :host([status=warning]) {
52
77
  --link-color: currentColor;
53
78
  --link-hover-color: currentColor;
@@ -69,6 +94,10 @@
69
94
  background-image: url("./dso-icons.svg#img-email-zwart");
70
95
  }
71
96
 
97
+ :host([status=warning][compact]:not([compact=false]))::before {
98
+ background-color: #dcd400;
99
+ }
100
+
72
101
  :host([status=info]) {
73
102
  --link-color: currentColor;
74
103
  --link-hover-color: currentColor;
@@ -90,6 +119,10 @@
90
119
  background-image: url("./dso-icons.svg#img-email-zwart");
91
120
  }
92
121
 
122
+ :host([status=info][compact]:not([compact=false]))::before {
123
+ background-color: #6ca4d9;
124
+ }
125
+
93
126
  *,
94
127
  *::after,
95
128
  *::before {
@@ -108,7 +141,6 @@
108
141
  }
109
142
 
110
143
  .alert {
111
- border: 1px solid transparent;
112
144
  line-height: 1.5;
113
145
  margin-block-end: 24px;
114
146
  min-block-size: 64px;
@@ -119,20 +151,31 @@
119
151
  padding-block: 19px;
120
152
  padding-inline: 63px 16px;
121
153
  }
154
+ .alert.dso-compact {
155
+ padding-block: 9.5px;
156
+ padding-inline: 16px;
157
+ }
122
158
  }
123
159
  @media screen and (max-width: 480px) {
124
160
  .alert {
125
161
  padding-block: 63px 16px;
126
162
  padding-inline: 16px;
127
163
  }
164
+ .alert.dso-compact {
165
+ padding-block: 9.5px;
166
+ padding-inline: 16px;
167
+ }
128
168
  }
129
169
  .alert:not(:first-child) {
130
170
  margin-block-start: 24px;
131
171
  }
132
172
  .alert dso-icon {
133
- inset-inline-start: 15px;
173
+ inset-block-start: 16px;
174
+ inset-inline-start: 16px;
134
175
  position: absolute;
135
- inset-block-start: 15px;
136
176
  block-size: 32px;
137
177
  inline-size: 32px;
178
+ }
179
+ .alert.dso-compact {
180
+ min-block-size: 16px;
138
181
  }
@@ -4,13 +4,14 @@ export class Alert {
4
4
  constructor() {
5
5
  this.status = undefined;
6
6
  this.roleAlert = undefined;
7
+ this.compact = undefined;
7
8
  }
8
9
  render() {
9
10
  const status = Alert.statusMap.get(this.status);
10
11
  if (!status) {
11
12
  throw new Error(`Invalid status ${this.status}`);
12
13
  }
13
- return (h("div", { key: '01e29736f5e523a65eb9f36e6958c5c5fed5dc5b', class: clsx("alert", `alert-${this.status}`), role: this.roleAlert ? "alert" : undefined }, h("dso-icon", { key: 'dc160d1ab1c32ce9007a05c4304a9ced3dc85a19', icon: "status-" + this.status }), h("span", { key: '26d986b2d19d17984353cf853c71e148201590eb', class: "sr-only" }, status, ":"), h("slot", { key: '2b468fc1267d5d485dea09eac739d333286229bc' })));
14
+ return (h("div", { key: '417e26be9e6ff6536cc8c2afb9ce0122f44ecdde', class: clsx("alert", `alert-${this.status}`, { "dso-compact": this.compact }), role: this.roleAlert ? "alert" : undefined }, !this.compact && h("dso-icon", { key: 'bfa8f41e437b89708eba82ba1a9607cc6fb006a8', icon: "status-" + this.status }), h("span", { key: '1ed463e8789085f4dce8e2ce47540f3e171760b3', class: "sr-only" }, status, ":"), h("slot", { key: '9892c04178c20fafea1969feb551fc4917e1b915' })));
14
15
  }
15
16
  static get is() { return "dso-alert"; }
16
17
  static get encapsulation() { return "shadow"; }
@@ -59,6 +60,23 @@ export class Alert {
59
60
  },
60
61
  "attribute": "role-alert",
61
62
  "reflect": false
63
+ },
64
+ "compact": {
65
+ "type": "boolean",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "boolean",
69
+ "resolved": "boolean | undefined",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": true,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": "Show alert as compact variant (without icon)"
77
+ },
78
+ "attribute": "compact",
79
+ "reflect": true
62
80
  }
63
81
  };
64
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,MAAM,OAAO,KAAK;;;;;IAoBhB,MAAM;QACJ,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,CACL,4DAAK,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YAC3F,iEAAU,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC,MAAM,GAAa;YACpD,6DAAM,KAAK,EAAC,SAAS;gBAAE,MAAM;oBAAS;YACtC,8DAAa,CACT,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AApBc,eAAS,GAAG,IAAI,GAAG,CAAiB;IACjD,CAAC,SAAS,EAAE,QAAQ,CAAC;IACrB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,SAAS,EAAE,cAAc,CAAC;IAC3B,CAAC,OAAO,EAAE,MAAM,CAAC;CAClB,CAAC,AALsB,CAKrB","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\n@Component({\r\n tag: \"dso-alert\",\r\n styleUrl: \"alert.scss\",\r\n shadow: true,\r\n})\r\nexport class Alert {\r\n /**\r\n * Set status of alert\r\n */\r\n @Prop({ reflect: true })\r\n status!: \"success\" | \"info\" | \"warning\" | \"error\";\r\n\r\n /**\r\n * Whether or not to show the role attribute with value \"alert\". To control the tooltip add the `role-alert` attribute.\r\n */\r\n @Prop()\r\n roleAlert?: boolean;\r\n\r\n private static statusMap = new Map<string, string>([\r\n [\"success\", \"Gelukt\"],\r\n [\"info\", \"Opmerking\"],\r\n [\"warning\", \"Waarschuwing\"],\r\n [\"error\", \"Fout\"],\r\n ]);\r\n\r\n render() {\r\n const status = Alert.statusMap.get(this.status);\r\n if (!status) {\r\n throw new Error(`Invalid status ${this.status}`);\r\n }\r\n\r\n return (\r\n <div class={clsx(\"alert\", `alert-${this.status}`)} role={this.roleAlert ? \"alert\" : undefined}>\r\n <dso-icon icon={\"status-\" + this.status}></dso-icon>\r\n <span class=\"sr-only\">{status}:</span>\r\n <slot></slot>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,MAAM,OAAO,KAAK;;;;;;IA0BhB,MAAM;QACJ,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,CACL,4DACE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,EAC7E,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YAEzC,CAAC,IAAI,CAAC,OAAO,IAAI,iEAAU,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC,MAAM,GAAa;YACtE,6DAAM,KAAK,EAAC,SAAS;gBAAE,MAAM;oBAAS;YACtC,8DAAa,CACT,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvBc,eAAS,GAAG,IAAI,GAAG,CAAiB;IACjD,CAAC,SAAS,EAAE,QAAQ,CAAC;IACrB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,SAAS,EAAE,cAAc,CAAC;IAC3B,CAAC,OAAO,EAAE,MAAM,CAAC;CAClB,CAAC,AALsB,CAKrB","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\n@Component({\r\n tag: \"dso-alert\",\r\n styleUrl: \"alert.scss\",\r\n shadow: true,\r\n})\r\nexport class Alert {\r\n /**\r\n * Set status of alert\r\n */\r\n @Prop({ reflect: true })\r\n status!: \"success\" | \"info\" | \"warning\" | \"error\";\r\n\r\n /**\r\n * Whether or not to show the role attribute with value \"alert\". To control the tooltip add the `role-alert` attribute.\r\n */\r\n @Prop()\r\n roleAlert?: boolean;\r\n\r\n /**\r\n * Show alert as compact variant (without icon)\r\n */\r\n @Prop({ reflect: true })\r\n compact?: boolean;\r\n\r\n private static statusMap = new Map<string, string>([\r\n [\"success\", \"Gelukt\"],\r\n [\"info\", \"Opmerking\"],\r\n [\"warning\", \"Waarschuwing\"],\r\n [\"error\", \"Fout\"],\r\n ]);\r\n\r\n render() {\r\n const status = Alert.statusMap.get(this.status);\r\n if (!status) {\r\n throw new Error(`Invalid status ${this.status}`);\r\n }\r\n\r\n return (\r\n <div\r\n class={clsx(\"alert\", `alert-${this.status}`, { \"dso-compact\": this.compact })}\r\n role={this.roleAlert ? \"alert\" : undefined}\r\n >\r\n {!this.compact && <dso-icon icon={\"status-\" + this.status}></dso-icon>}\r\n <span class=\"sr-only\">{status}:</span>\r\n <slot></slot>\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
@@ -1,12 +1,14 @@
1
1
  import { h, Fragment } from "@stencil/core";
2
- import { AnnotationDiffRenderer } from "../annotation-diff-renderer";
3
2
  import { AnnotationBody } from "../annotation-body";
4
3
  import { AnnotationGewijzigdeLocatie } from "../annotation-gewijzigde-locatie";
4
+ import { watcher } from "../annotation-watcher";
5
+ import { AnnotationSymbolSlot } from "../annotation-symbol-slot";
5
6
  /**
6
7
  * @slot symbool - Een optionele afbeelding die de annotatie symboliseert.
7
8
  */
8
9
  export class AnnotationActiviteit {
9
10
  constructor() {
11
+ this.watcher = watcher(this.host);
10
12
  this.wijzigactie = undefined;
11
13
  this.active = undefined;
12
14
  this.gewijzigdeLocatie = undefined;
@@ -15,8 +17,15 @@ export class AnnotationActiviteit {
15
17
  this.locatieNoemers = undefined;
16
18
  this.regelKwalificatieVoorzetsel = undefined;
17
19
  }
20
+ connectedCallback() {
21
+ this.watcher.watch();
22
+ }
23
+ disconnectedCallback() {
24
+ this.watcher.unwatch();
25
+ }
18
26
  render() {
19
- return (h(AnnotationBody, { key: 'b99fc074965b115131391ba52320a959340bb399', active: this.active, dsoActiveChange: this.dsoActiveChange, title: h(AnnotationDiffRenderer, { value: this.naam }), data: h(Fragment, null, h("span", { class: "content" }, this.regelKwalificatie && (h(Fragment, null, h(AnnotationDiffRenderer, { value: this.regelKwalificatie }), " ")), this.regelKwalificatieVoorzetsel && `${this.regelKwalificatieVoorzetsel}: `, h(AnnotationDiffRenderer, { value: this.locatieNoemers })), this.gewijzigdeLocatie && h(AnnotationGewijzigdeLocatie, null)) }));
27
+ const hasSymbool = this.watcher.hasSymbool();
28
+ return (h(AnnotationBody, { key: '0e09fda2e18c4f6e4e38c85983df8b6862438f8d', symbol: hasSymbool ? h(AnnotationSymbolSlot, null) : undefined, active: this.active, dsoActiveChange: this.dsoActiveChange, title: h("dso-renvooi", { value: this.naam }), data: h(Fragment, null, h("span", { class: "content" }, this.regelKwalificatie && (h(Fragment, null, h("dso-renvooi", { value: this.regelKwalificatie }), " ")), this.regelKwalificatieVoorzetsel && `${this.regelKwalificatieVoorzetsel}: `, h("dso-renvooi", { value: this.locatieNoemers })), this.gewijzigdeLocatie && h(AnnotationGewijzigdeLocatie, null)) }));
20
29
  }
21
30
  static get is() { return "dso-annotation-activiteit"; }
22
31
  static get encapsulation() { return "shadow"; }
@@ -37,7 +46,7 @@ export class AnnotationActiviteit {
37
46
  "mutable": false,
38
47
  "complexType": {
39
48
  "original": "AnnotationWijzigactie",
40
- "resolved": "\"verwijderd\" | \"voegtoe\" | undefined",
49
+ "resolved": "\"verwijder\" | \"voegtoe\" | undefined",
41
50
  "references": {
42
51
  "AnnotationWijzigactie": {
43
52
  "location": "import",
@@ -93,13 +102,13 @@ export class AnnotationActiviteit {
93
102
  "type": "string",
94
103
  "mutable": false,
95
104
  "complexType": {
96
- "original": "AnnotationDiff | string",
105
+ "original": "RenvooiValue | string",
97
106
  "resolved": "string | undefined | { toegevoegd: string; } | { verwijderd: string; } | { was: string; wordt: string; }",
98
107
  "references": {
99
- "AnnotationDiff": {
108
+ "RenvooiValue": {
100
109
  "location": "import",
101
- "path": "../annotation.interfaces",
102
- "id": "src/components/annotation/annotation.interfaces.ts::AnnotationDiff"
110
+ "path": "../../renvooi/renvooi.interfaces",
111
+ "id": "src/components/renvooi/renvooi.interfaces.ts::RenvooiValue"
103
112
  }
104
113
  }
105
114
  },
@@ -116,13 +125,13 @@ export class AnnotationActiviteit {
116
125
  "type": "string",
117
126
  "mutable": false,
118
127
  "complexType": {
119
- "original": "AnnotationDiff | string",
128
+ "original": "RenvooiValue | string",
120
129
  "resolved": "string | undefined | { toegevoegd: string; } | { verwijderd: string; } | { was: string; wordt: string; }",
121
130
  "references": {
122
- "AnnotationDiff": {
131
+ "RenvooiValue": {
123
132
  "location": "import",
124
- "path": "../annotation.interfaces",
125
- "id": "src/components/annotation/annotation.interfaces.ts::AnnotationDiff"
133
+ "path": "../../renvooi/renvooi.interfaces",
134
+ "id": "src/components/renvooi/renvooi.interfaces.ts::RenvooiValue"
126
135
  }
127
136
  }
128
137
  },
@@ -139,17 +148,17 @@ export class AnnotationActiviteit {
139
148
  "type": "unknown",
140
149
  "mutable": false,
141
150
  "complexType": {
142
- "original": "Array<AnnotationDiff | string>",
143
- "resolved": "(string | AnnotationDiff)[] | undefined",
151
+ "original": "Array<RenvooiValue | string>",
152
+ "resolved": "RenvooiValue[] | undefined",
144
153
  "references": {
145
154
  "Array": {
146
155
  "location": "global",
147
156
  "id": "global::Array"
148
157
  },
149
- "AnnotationDiff": {
158
+ "RenvooiValue": {
150
159
  "location": "import",
151
- "path": "../annotation.interfaces",
152
- "id": "src/components/annotation/annotation.interfaces.ts::AnnotationDiff"
160
+ "path": "../../renvooi/renvooi.interfaces",
161
+ "id": "src/components/renvooi/renvooi.interfaces.ts::RenvooiValue"
153
162
  }
154
163
  }
155
164
  },
@@ -203,5 +212,6 @@ export class AnnotationActiviteit {
203
212
  }
204
213
  }];
205
214
  }
215
+ static get elementRef() { return "host"; }
206
216
  }
207
217
  //# sourceMappingURL=annotation-activiteit.js.map