@dso-toolkit/core 75.1.0 → 77.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (588) hide show
  1. package/dist/bundle/dso-accordion-section.js +5 -5
  2. package/dist/bundle/dso-action-list-item.js +1 -1
  3. package/dist/bundle/dso-advanced-select.js +3 -3
  4. package/dist/bundle/dso-alert.js +1 -1
  5. package/dist/bundle/dso-annotation-activiteit.js +5 -5
  6. package/dist/bundle/dso-annotation-activiteit.js.map +1 -1
  7. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +5 -5
  8. package/dist/bundle/dso-annotation-gebiedsaanwijzing.js.map +1 -1
  9. package/dist/bundle/dso-annotation-kaart.js +3 -3
  10. package/dist/bundle/dso-annotation-kaart.js.map +1 -1
  11. package/dist/bundle/dso-annotation-locatie.js +1 -1
  12. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +5 -5
  13. package/dist/bundle/dso-annotation-omgevingsnormwaarde.js.map +1 -1
  14. package/dist/bundle/dso-attachments-counter.js +1 -1
  15. package/dist/bundle/dso-autosuggest.js +3 -3
  16. package/dist/bundle/dso-button-group.d.ts +11 -0
  17. package/dist/bundle/dso-button-group.js +9 -0
  18. package/dist/bundle/dso-button-group.js.map +1 -0
  19. package/dist/bundle/dso-card-container.js +1 -1
  20. package/dist/bundle/dso-card.js +4 -4
  21. package/dist/bundle/dso-card.js.map +1 -1
  22. package/dist/bundle/dso-contact-information.js +1 -1
  23. package/dist/bundle/dso-date-picker-legacy.js +4 -4
  24. package/dist/bundle/dso-date-picker.js +1 -1
  25. package/dist/bundle/dso-document-card.js +2 -2
  26. package/dist/bundle/dso-document-component.js +1 -1
  27. package/dist/bundle/dso-dropdown-menu.js +1 -1
  28. package/dist/bundle/dso-header.js +4 -4
  29. package/dist/bundle/dso-header.js.map +1 -1
  30. package/dist/bundle/dso-highlight-box.js +1 -1
  31. package/dist/bundle/dso-icon.js +1 -1
  32. package/dist/bundle/dso-image-overlay.js +1 -1
  33. package/dist/bundle/dso-info-button.js +1 -1
  34. package/dist/bundle/dso-info.js +1 -1
  35. package/dist/bundle/dso-input-range.js +2 -2
  36. package/dist/bundle/dso-label.js +1 -1
  37. package/dist/bundle/dso-legend-item.js +23 -13
  38. package/dist/bundle/dso-legend-item.js.map +1 -1
  39. package/dist/bundle/dso-list-button.js +6 -6
  40. package/dist/bundle/dso-list-button.js.map +1 -1
  41. package/dist/bundle/dso-logo.js +1 -1
  42. package/dist/bundle/dso-map-base-layers.js +5 -5
  43. package/dist/bundle/dso-map-controls.js +12 -6
  44. package/dist/bundle/dso-map-controls.js.map +1 -1
  45. package/dist/bundle/dso-map-overlays.js +5 -5
  46. package/dist/bundle/dso-mark-bar.js +2 -2
  47. package/dist/bundle/dso-modal.js +3 -3
  48. package/dist/bundle/dso-onboarding-tip.js +3 -1661
  49. package/dist/bundle/dso-onboarding-tip.js.map +1 -1
  50. package/dist/bundle/dso-ozon-content.js +1 -1
  51. package/dist/bundle/dso-pagination.js +3 -3
  52. package/dist/bundle/dso-pagination.js.map +1 -1
  53. package/dist/bundle/dso-panel.js +1 -1
  54. package/dist/bundle/dso-plekinfo-card.js +2 -2
  55. package/dist/bundle/dso-progress-bar.js +1 -1
  56. package/dist/bundle/dso-progress-indicator.js +1 -1
  57. package/dist/bundle/dso-project-item.js +4 -4
  58. package/dist/bundle/dso-responsive-element.js +1 -1
  59. package/dist/bundle/dso-scrollable.js +1 -1
  60. package/dist/bundle/dso-selectable.js +1 -1
  61. package/dist/bundle/dso-skiplink.js +2 -2
  62. package/dist/bundle/dso-slide-toggle.js +1 -1
  63. package/dist/bundle/dso-survey-rating.js +5 -5
  64. package/dist/bundle/dso-table.js +1 -1
  65. package/dist/bundle/dso-tabs.js +1 -1
  66. package/dist/bundle/dso-toggletip.js +1 -1
  67. package/dist/bundle/dso-tooltip.js +1 -1
  68. package/dist/bundle/dso-tree-view.js +3 -3
  69. package/dist/bundle/dso-viewer-grid.js +2 -2
  70. package/dist/bundle/dsot-document-component-demo.js +15 -15
  71. package/dist/bundle/dsot-document-component-demo.js.map +1 -1
  72. package/dist/bundle/index.js +2 -0
  73. package/dist/bundle/index.js.map +1 -1
  74. package/dist/bundle/{p-Aoa5eJNp.js → p-9zjtdLN6.js} +3 -3
  75. package/dist/bundle/{p-Aoa5eJNp.js.map → p-9zjtdLN6.js.map} +1 -1
  76. package/dist/bundle/{p-C1QiwjOR.js → p-BBxSnuWP.js} +4 -4
  77. package/dist/bundle/{p-C1QiwjOR.js.map → p-BBxSnuWP.js.map} +1 -1
  78. package/dist/bundle/{p-B0a0s4C8.js → p-BGaAMVmM.js} +6 -6
  79. package/dist/bundle/{p-B0a0s4C8.js.map → p-BGaAMVmM.js.map} +1 -1
  80. package/dist/bundle/{p-CTLPOSaJ.js → p-BLcgQKpu.js} +3 -3
  81. package/dist/bundle/{p-CTLPOSaJ.js.map → p-BLcgQKpu.js.map} +1 -1
  82. package/dist/bundle/{p-DbfxMDmf.js → p-BP2p2tL5.js} +13 -20
  83. package/dist/bundle/p-BP2p2tL5.js.map +1 -0
  84. package/dist/bundle/{p-BAOb4Icr.js → p-BlvELqv3.js} +8 -8
  85. package/dist/bundle/{p-BAOb4Icr.js.map → p-BlvELqv3.js.map} +1 -1
  86. package/dist/bundle/{p-QFeeViSZ.js → p-BzRDrr-_.js} +3 -3
  87. package/dist/bundle/{p-QFeeViSZ.js.map → p-BzRDrr-_.js.map} +1 -1
  88. package/dist/bundle/{p-BX-MTpLY.js → p-CMjyxr8o.js} +4 -4
  89. package/dist/bundle/{p-BX-MTpLY.js.map → p-CMjyxr8o.js.map} +1 -1
  90. package/dist/bundle/{p-DD69Irdl.js → p-CoKesn28.js} +4 -4
  91. package/dist/bundle/{p-DD69Irdl.js.map → p-CoKesn28.js.map} +1 -1
  92. package/dist/bundle/p-Cve9JK5u.js +58 -0
  93. package/dist/bundle/p-Cve9JK5u.js.map +1 -0
  94. package/dist/bundle/{p-Cg1tXclp.js → p-CyJdlUc_.js} +3 -3
  95. package/dist/bundle/{p-Cg1tXclp.js.map → p-CyJdlUc_.js.map} +1 -1
  96. package/dist/bundle/{p-D0Ir0GXP.js → p-DJ7nyiIt.js} +4 -4
  97. package/dist/bundle/{p-D0Ir0GXP.js.map → p-DJ7nyiIt.js.map} +1 -1
  98. package/dist/bundle/{p-pVO6m7lg.js → p-DK7N75_d.js} +48 -115
  99. package/dist/bundle/p-DK7N75_d.js.map +1 -0
  100. package/dist/bundle/{p-BpUdPxfZ.js → p-DM1_b6nQ.js} +3 -3
  101. package/dist/bundle/{p-BpUdPxfZ.js.map → p-DM1_b6nQ.js.map} +1 -1
  102. package/dist/{cjs/has-overflow-B_4p67wC.js → bundle/p-DNO4kzq4.js} +311 -7
  103. package/dist/bundle/p-DNO4kzq4.js.map +1 -0
  104. package/dist/bundle/{p-CWKjZDtY.js → p-DSdjKKyW.js} +7 -7
  105. package/dist/bundle/p-DSdjKKyW.js.map +1 -0
  106. package/dist/bundle/{p-CRZudroy.js → p-DZ8OX1GG.js} +3 -3
  107. package/dist/bundle/{p-CRZudroy.js.map → p-DZ8OX1GG.js.map} +1 -1
  108. package/dist/bundle/{p-57gCBWwP.js → p-DpoKLKOQ.js} +5 -5
  109. package/dist/bundle/{p-57gCBWwP.js.map → p-DpoKLKOQ.js.map} +1 -1
  110. package/dist/bundle/{p-CCkZUAjN.js → p-DwVf2qDM.js} +6 -6
  111. package/dist/bundle/{p-CCkZUAjN.js.map → p-DwVf2qDM.js.map} +1 -1
  112. package/dist/bundle/p-DyzZdG1l.js +80 -0
  113. package/dist/bundle/{p-BvIWF0ZG.js.map → p-DyzZdG1l.js.map} +1 -1
  114. package/dist/bundle/{p-DBE1IrEJ.js → p-Hd6HHp3Q.js} +4 -4
  115. package/dist/bundle/{p-DBE1IrEJ.js.map → p-Hd6HHp3Q.js.map} +1 -1
  116. package/dist/bundle/p-gdsca1fx.js +1663 -0
  117. package/dist/bundle/p-gdsca1fx.js.map +1 -0
  118. package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +1 -1
  119. package/dist/cjs/dso-alert_6.cjs.entry.js +5 -5
  120. package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
  121. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +1 -1
  122. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js.map +1 -1
  123. package/dist/cjs/dso-annotation-activiteit.entry.cjs.js.map +1 -1
  124. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +1 -1
  125. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js.map +1 -1
  126. package/dist/cjs/dso-annotation-gebiedsaanwijzing.entry.cjs.js.map +1 -1
  127. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +1 -1
  128. package/dist/cjs/dso-annotation-kaart.cjs.entry.js.map +1 -1
  129. package/dist/cjs/dso-annotation-kaart.entry.cjs.js.map +1 -1
  130. package/dist/cjs/dso-annotation-locatie.dso-document-component.entry.cjs.js.map +1 -1
  131. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +4 -8
  132. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
  133. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +1 -1
  134. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js.map +1 -1
  135. package/dist/cjs/dso-annotation-omgevingsnormwaarde.entry.cjs.js.map +1 -1
  136. package/dist/cjs/dso-button-group.cjs.entry.js +43 -0
  137. package/dist/cjs/dso-button-group.cjs.entry.js.map +1 -0
  138. package/dist/cjs/dso-button-group.entry.cjs.js.map +1 -0
  139. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  140. package/dist/cjs/dso-card.cjs.entry.js +3 -3
  141. package/dist/cjs/dso-card.cjs.entry.js.map +1 -1
  142. package/dist/cjs/dso-card.entry.cjs.js.map +1 -1
  143. package/dist/cjs/dso-contact-information.cjs.entry.js +1 -1
  144. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +3 -3
  145. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  146. package/dist/cjs/dso-document-card.cjs.entry.js +1 -1
  147. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +44 -103
  148. package/dist/cjs/dso-dropdown-menu.cjs.entry.js.map +1 -1
  149. package/dist/cjs/dso-dropdown-menu.entry.cjs.js.map +1 -1
  150. package/dist/cjs/dso-header.cjs.entry.js +2 -2
  151. package/dist/cjs/dso-header.cjs.entry.js.map +1 -1
  152. package/dist/cjs/dso-header.entry.cjs.js.map +1 -1
  153. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  154. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  155. package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
  156. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  157. package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
  158. package/dist/cjs/dso-label.dso-renvooi.dso-slide-toggle.entry.cjs.js.map +1 -1
  159. package/dist/cjs/dso-label_3.cjs.entry.js +4 -4
  160. package/dist/cjs/dso-label_3.cjs.entry.js.map +1 -1
  161. package/dist/cjs/dso-legend-item.cjs.entry.js +15 -6
  162. package/dist/cjs/dso-legend-item.cjs.entry.js.map +1 -1
  163. package/dist/cjs/dso-legend-item.entry.cjs.js.map +1 -1
  164. package/dist/cjs/dso-list-button.cjs.entry.js +2 -2
  165. package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
  166. package/dist/cjs/dso-list-button.entry.cjs.js.map +1 -1
  167. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  168. package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
  169. package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
  170. package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
  171. package/dist/cjs/dso-map-controls.entry.cjs.js.map +1 -1
  172. package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
  173. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  174. package/dist/cjs/dso-modal.cjs.entry.js +1 -1
  175. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +9 -1667
  176. package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -1
  177. package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -1
  178. package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
  179. package/dist/cjs/dso-pagination.cjs.entry.js.map +1 -1
  180. package/dist/cjs/dso-pagination.entry.cjs.js.map +1 -1
  181. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
  182. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  183. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  184. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  185. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  186. package/dist/cjs/dso-scrollable.cjs.entry.js +2 -2
  187. package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
  188. package/dist/cjs/dso-survey-rating.cjs.entry.js +3 -3
  189. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  190. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  191. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  192. package/dist/cjs/dso-tooltip.cjs.entry.js +1802 -6
  193. package/dist/cjs/dso-tooltip.cjs.entry.js.map +1 -1
  194. package/dist/cjs/dso-tooltip.entry.cjs.js.map +1 -1
  195. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  196. package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
  197. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +3 -3
  198. package/dist/cjs/dsot-document-component-demo.cjs.entry.js.map +1 -1
  199. package/dist/cjs/dsot-document-component-demo.entry.cjs.js.map +1 -1
  200. package/dist/cjs/floating-ui.dom-uZgU2YQo.js +1671 -0
  201. package/dist/cjs/floating-ui.dom-uZgU2YQo.js.map +1 -0
  202. package/dist/cjs/loader.cjs.js +1 -1
  203. package/dist/collection/collection-manifest.json +1 -0
  204. package/dist/collection/components/annotation/annotation.css +3 -0
  205. package/dist/collection/components/button-group/button-group.css +76 -0
  206. package/dist/collection/components/button-group/button-group.interfaces.js +2 -0
  207. package/dist/collection/components/button-group/button-group.interfaces.js.map +1 -0
  208. package/dist/collection/components/button-group/button-group.js +74 -0
  209. package/dist/collection/components/button-group/button-group.js.map +1 -0
  210. package/dist/collection/components/card/card.css +3 -0
  211. package/dist/collection/components/card/card.js +2 -2
  212. package/dist/collection/components/card-container/card-container.js +1 -1
  213. package/dist/collection/components/contact-information/contact-information.js +1 -1
  214. package/dist/collection/components/date-picker/date-picker.js +1 -1
  215. package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +3 -3
  216. package/dist/collection/components/document-card/document-card.js +1 -1
  217. package/dist/collection/components/document-component/document-component-heading.js.map +1 -1
  218. package/dist/collection/components/document-component/document-component.css +228 -7
  219. package/dist/collection/components/document-component/document-component.interfaces.js +2 -0
  220. package/dist/collection/components/document-component/document-component.interfaces.js.map +1 -0
  221. package/dist/collection/components/document-component/document-component.js +28 -116
  222. package/dist/collection/components/document-component/document-component.js.map +1 -1
  223. package/dist/collection/components/document-component-demo/document-component.demo.js +9 -9
  224. package/dist/collection/components/document-component-demo/document-component.demo.js.map +1 -1
  225. package/dist/collection/components/dropdown-menu/dropdown-menu.css +8 -0
  226. package/dist/collection/components/dropdown-menu/dropdown-menu.js +43 -176
  227. package/dist/collection/components/dropdown-menu/dropdown-menu.js.map +1 -1
  228. package/dist/collection/components/header/header.js +2 -2
  229. package/dist/collection/components/header/header.js.map +1 -1
  230. package/dist/collection/components/highlight-box/highlight-box.js +1 -1
  231. package/dist/collection/components/icon/icon.js +1 -1
  232. package/dist/collection/components/image-overlay/image-overlay.css +8 -8
  233. package/dist/collection/components/info/info.js +1 -1
  234. package/dist/collection/components/info-button/info-button.js +1 -1
  235. package/dist/collection/components/input-range/input-range.js +2 -2
  236. package/dist/collection/components/label/label.js +3 -3
  237. package/dist/collection/components/label/label.js.map +1 -1
  238. package/dist/collection/components/legend-item/legend-item.css +1 -1
  239. package/dist/collection/components/legend-item/legend-item.js +36 -8
  240. package/dist/collection/components/legend-item/legend-item.js.map +1 -1
  241. package/dist/collection/components/list-button/list-button.css +1 -1
  242. package/dist/collection/components/list-button/list-button.js +1 -1
  243. package/dist/collection/components/logo/logo.js +1 -1
  244. package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
  245. package/dist/collection/components/map-controls/map-controls.css +725 -184
  246. package/dist/collection/components/map-controls/map-controls.js +3 -3
  247. package/dist/collection/components/map-controls/map-controls.js.map +1 -1
  248. package/dist/collection/components/map-overlays/map-overlays.js +1 -1
  249. package/dist/collection/components/mark-bar/mark-bar.js +1 -1
  250. package/dist/collection/components/modal/modal.js +1 -1
  251. package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
  252. package/dist/collection/components/ozon-content/ozon-content.css +226 -5
  253. package/dist/collection/components/ozon-content/ozon-content.js +1 -1
  254. package/dist/collection/components/pagination/pagination.css +1 -2
  255. package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
  256. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  257. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  258. package/dist/collection/components/project-item/project-item.js +1 -1
  259. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  260. package/dist/collection/components/scrollable/scrollable.js +2 -2
  261. package/dist/collection/components/selectable/selectable.js +1 -1
  262. package/dist/collection/components/skiplink/skiplink.js +1 -1
  263. package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
  264. package/dist/collection/components/survey-rating/survey-rating.css +4 -4
  265. package/dist/collection/components/survey-rating/survey-rating.js +2 -2
  266. package/dist/collection/components/table/table.css +223 -5
  267. package/dist/collection/components/table/table.js +1 -1
  268. package/dist/collection/components/tabs/tabs.js +1 -1
  269. package/dist/collection/components/toggletip/toggletip.js +1 -1
  270. package/dist/collection/components/tooltip/tooltip.js +1 -1
  271. package/dist/collection/components/tree-view/tree-view.js +1 -1
  272. package/dist/collection/components/viewer-grid/viewer-grid.css +4 -4
  273. package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
  274. package/dist/components/annotation-locatie.js +1 -1
  275. package/dist/components/annotation-locatie.js.map +1 -1
  276. package/dist/components/button-group.js +58 -0
  277. package/dist/components/button-group.js.map +1 -0
  278. package/dist/components/document-component.js +3 -10
  279. package/dist/components/document-component.js.map +1 -1
  280. package/dist/components/dropdown-menu.js +46 -113
  281. package/dist/components/dropdown-menu.js.map +1 -1
  282. package/dist/components/dso-annotation-activiteit.js +1 -1
  283. package/dist/components/dso-annotation-activiteit.js.map +1 -1
  284. package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
  285. package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
  286. package/dist/components/dso-annotation-kaart.js +1 -1
  287. package/dist/components/dso-annotation-kaart.js.map +1 -1
  288. package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
  289. package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -1
  290. package/dist/components/dso-button-group.d.ts +11 -0
  291. package/dist/components/dso-button-group.js +9 -0
  292. package/dist/components/dso-button-group.js.map +1 -0
  293. package/dist/components/dso-card-container.js +1 -1
  294. package/dist/components/dso-card.js +3 -3
  295. package/dist/components/dso-card.js.map +1 -1
  296. package/dist/components/dso-contact-information.js +1 -1
  297. package/dist/components/dso-date-picker-legacy.js +3 -3
  298. package/dist/components/dso-date-picker.js +1 -1
  299. package/dist/components/dso-document-card.js +1 -1
  300. package/dist/components/dso-header.js +2 -2
  301. package/dist/components/dso-header.js.map +1 -1
  302. package/dist/components/dso-highlight-box.js +1 -1
  303. package/dist/components/dso-input-range.js +2 -2
  304. package/dist/components/dso-legend-item.js +18 -8
  305. package/dist/components/dso-legend-item.js.map +1 -1
  306. package/dist/components/dso-list-button.js +2 -2
  307. package/dist/components/dso-list-button.js.map +1 -1
  308. package/dist/components/dso-logo.js +1 -1
  309. package/dist/components/dso-map-base-layers.js +1 -1
  310. package/dist/components/dso-map-controls.js +10 -4
  311. package/dist/components/dso-map-controls.js.map +1 -1
  312. package/dist/components/dso-map-overlays.js +1 -1
  313. package/dist/components/dso-mark-bar.js +1 -1
  314. package/dist/components/dso-modal.js +1 -1
  315. package/dist/components/dso-onboarding-tip.js +5 -1663
  316. package/dist/components/dso-onboarding-tip.js.map +1 -1
  317. package/dist/components/dso-pagination.js +1 -1
  318. package/dist/components/dso-pagination.js.map +1 -1
  319. package/dist/components/dso-plekinfo-card.js +1 -1
  320. package/dist/components/dso-progress-bar.js +1 -1
  321. package/dist/components/dso-project-item.js +1 -1
  322. package/dist/components/dso-skiplink.js +1 -1
  323. package/dist/components/dso-survey-rating.js +3 -3
  324. package/dist/components/dso-tabs.js +1 -1
  325. package/dist/components/dso-tree-view.js +1 -1
  326. package/dist/components/dso-viewer-grid.js +2 -2
  327. package/dist/components/dsot-document-component-demo.js +3 -3
  328. package/dist/components/dsot-document-component-demo.js.map +1 -1
  329. package/dist/components/floating-ui.dom.js +1663 -0
  330. package/dist/components/floating-ui.dom.js.map +1 -0
  331. package/dist/components/icon.js +1 -1
  332. package/dist/components/image-overlay.js +1 -1
  333. package/dist/components/index.d.ts +2 -0
  334. package/dist/components/index.js +1 -0
  335. package/dist/components/index.js.map +1 -1
  336. package/dist/components/info-button.js +1 -1
  337. package/dist/components/info.js +1 -1
  338. package/dist/components/label.js +3 -3
  339. package/dist/components/label.js.map +1 -1
  340. package/dist/components/ozon-content.js +2 -2
  341. package/dist/components/ozon-content.js.map +1 -1
  342. package/dist/components/progress-indicator.js +1 -1
  343. package/dist/components/responsive-element.js +1 -1
  344. package/dist/components/scrollable.js +2 -2
  345. package/dist/components/selectable.js +1 -1
  346. package/dist/components/slide-toggle.js +1 -1
  347. package/dist/components/table.js +2 -2
  348. package/dist/components/table.js.map +1 -1
  349. package/dist/components/toggletip.js +1 -1
  350. package/dist/components/tooltip.js +1804 -8
  351. package/dist/components/tooltip.js.map +1 -1
  352. package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +1 -1
  353. package/dist/dso-toolkit/dso-annotation-activiteit.entry.esm.js.map +1 -1
  354. package/dist/dso-toolkit/dso-annotation-gebiedsaanwijzing.entry.esm.js.map +1 -1
  355. package/dist/dso-toolkit/dso-annotation-kaart.entry.esm.js.map +1 -1
  356. package/dist/dso-toolkit/dso-annotation-locatie.dso-document-component.entry.esm.js.map +1 -1
  357. package/dist/dso-toolkit/dso-annotation-omgevingsnormwaarde.entry.esm.js.map +1 -1
  358. package/dist/dso-toolkit/dso-button-group.entry.esm.js.map +1 -0
  359. package/dist/dso-toolkit/dso-card.entry.esm.js.map +1 -1
  360. package/dist/dso-toolkit/dso-dropdown-menu.entry.esm.js.map +1 -1
  361. package/dist/dso-toolkit/dso-header.entry.esm.js.map +1 -1
  362. package/dist/dso-toolkit/dso-label.dso-renvooi.dso-slide-toggle.entry.esm.js.map +1 -1
  363. package/dist/dso-toolkit/dso-legend-item.entry.esm.js.map +1 -1
  364. package/dist/dso-toolkit/dso-list-button.entry.esm.js.map +1 -1
  365. package/dist/dso-toolkit/dso-map-controls.entry.esm.js.map +1 -1
  366. package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -1
  367. package/dist/dso-toolkit/dso-pagination.entry.esm.js.map +1 -1
  368. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  369. package/dist/dso-toolkit/dso-tooltip.entry.esm.js.map +1 -1
  370. package/dist/dso-toolkit/dsot-document-component-demo.entry.esm.js.map +1 -1
  371. package/dist/dso-toolkit/{p-7f073eed.entry.js → p-088d0493.entry.js} +2 -2
  372. package/dist/dso-toolkit/{p-08a680e3.entry.js → p-090ab6fc.entry.js} +2 -2
  373. package/dist/dso-toolkit/{p-789aee43.entry.js → p-099c6eb7.entry.js} +2 -2
  374. package/dist/dso-toolkit/{p-05982f0c.entry.js → p-10901139.entry.js} +2 -2
  375. package/dist/dso-toolkit/p-15e3e714.entry.js +2 -0
  376. package/dist/dso-toolkit/{p-554d12b7.entry.js.map → p-15e3e714.entry.js.map} +1 -1
  377. package/dist/dso-toolkit/p-221c7378.entry.js +2 -0
  378. package/dist/dso-toolkit/{p-bfaa3608.entry.js.map → p-221c7378.entry.js.map} +1 -1
  379. package/dist/dso-toolkit/{p-62ecc855.entry.js → p-2d4a4552.entry.js} +2 -2
  380. package/dist/dso-toolkit/p-2d4a4552.entry.js.map +1 -0
  381. package/dist/dso-toolkit/p-2f070718.entry.js +2 -0
  382. package/dist/dso-toolkit/p-2f070718.entry.js.map +1 -0
  383. package/dist/dso-toolkit/{p-bcc1bb8f.entry.js → p-2ff601f9.entry.js} +2 -2
  384. package/dist/dso-toolkit/p-351746ae.entry.js +2 -0
  385. package/dist/dso-toolkit/p-351746ae.entry.js.map +1 -0
  386. package/dist/dso-toolkit/{p-ac24cd1e.entry.js → p-356f8d94.entry.js} +2 -2
  387. package/dist/dso-toolkit/p-4231f2f8.entry.js +2 -0
  388. package/dist/dso-toolkit/p-4231f2f8.entry.js.map +1 -0
  389. package/dist/dso-toolkit/{p-ffa6ca48.entry.js → p-44d831b6.entry.js} +2 -2
  390. package/dist/dso-toolkit/{p-aeac51e6.entry.js → p-451f3c78.entry.js} +2 -2
  391. package/dist/dso-toolkit/p-474cc813.entry.js +2 -0
  392. package/dist/dso-toolkit/p-474cc813.entry.js.map +1 -0
  393. package/dist/dso-toolkit/{p-a82b3993.entry.js → p-517cbc20.entry.js} +2 -2
  394. package/dist/dso-toolkit/p-54820bbe.entry.js +2 -0
  395. package/dist/dso-toolkit/p-54820bbe.entry.js.map +1 -0
  396. package/dist/dso-toolkit/p-586838c3.entry.js +2 -0
  397. package/dist/dso-toolkit/p-586838c3.entry.js.map +1 -0
  398. package/dist/dso-toolkit/{p-a4618476.entry.js → p-595e12bd.entry.js} +2 -2
  399. package/dist/dso-toolkit/p-595e12bd.entry.js.map +1 -0
  400. package/dist/dso-toolkit/{p-dd5a59b3.entry.js → p-613f19f9.entry.js} +2 -2
  401. package/dist/dso-toolkit/p-6949021b.entry.js +2 -0
  402. package/dist/dso-toolkit/p-6949021b.entry.js.map +1 -0
  403. package/dist/dso-toolkit/{p-f8544d78.entry.js → p-74718de8.entry.js} +2 -2
  404. package/dist/dso-toolkit/{p-8b4a6a68.entry.js → p-83d63542.entry.js} +2 -2
  405. package/dist/dso-toolkit/p-87716442.entry.js +2 -0
  406. package/dist/dso-toolkit/p-87716442.entry.js.map +1 -0
  407. package/dist/dso-toolkit/{p-5870d108.entry.js → p-92f93d4d.entry.js} +2 -2
  408. package/dist/dso-toolkit/{p-369e9eb0.entry.js → p-9674e7d2.entry.js} +2 -2
  409. package/dist/dso-toolkit/p-9674e7d2.entry.js.map +1 -0
  410. package/dist/dso-toolkit/{p-a2800a6f.entry.js → p-97320fda.entry.js} +2 -2
  411. package/dist/dso-toolkit/{p-fe4319c2.entry.js → p-a10cea33.entry.js} +2 -2
  412. package/dist/dso-toolkit/{p-e9ea10ed.entry.js → p-a1dd8602.entry.js} +2 -2
  413. package/dist/dso-toolkit/{p-bcfeeafb.entry.js → p-a3fd0646.entry.js} +2 -2
  414. package/dist/dso-toolkit/{p-90521fc1.entry.js → p-b9b0c72d.entry.js} +2 -2
  415. package/dist/dso-toolkit/p-c7318c7e.entry.js +2 -0
  416. package/dist/dso-toolkit/{p-c93fae9e.entry.js.map → p-c7318c7e.entry.js.map} +1 -1
  417. package/dist/dso-toolkit/{p-133c1677.entry.js → p-c9389342.entry.js} +2 -2
  418. package/dist/dso-toolkit/{p-6d3d29ac.entry.js → p-c9645d23.entry.js} +2 -2
  419. package/dist/dso-toolkit/p-cf388db9.entry.js +2 -0
  420. package/dist/dso-toolkit/p-d3e56081.entry.js +2 -0
  421. package/dist/dso-toolkit/{p-fcb3d0dc.entry.js.map → p-d3e56081.entry.js.map} +1 -1
  422. package/dist/dso-toolkit/{p-124316e8.entry.js → p-e0bc1853.entry.js} +2 -2
  423. package/dist/dso-toolkit/{p-66ec457d.entry.js → p-e3883983.entry.js} +2 -2
  424. package/dist/dso-toolkit/p-e41ede6e.entry.js +2 -0
  425. package/dist/dso-toolkit/{p-11cd688b.entry.js.map → p-e41ede6e.entry.js.map} +1 -1
  426. package/dist/dso-toolkit/{p-57a2730e.entry.js → p-e9f5382c.entry.js} +2 -2
  427. package/dist/dso-toolkit/p-eca54e01.entry.js +2 -0
  428. package/dist/dso-toolkit/{p-75091e9b.entry.js.map → p-eca54e01.entry.js.map} +1 -1
  429. package/dist/dso-toolkit/p-ee48009b.entry.js +2 -0
  430. package/dist/dso-toolkit/p-ee48009b.entry.js.map +1 -0
  431. package/dist/dso-toolkit/{p-0c2176c5.entry.js → p-f0579969.entry.js} +2 -2
  432. package/dist/dso-toolkit/p-f1f414b6.entry.js +2 -0
  433. package/dist/dso-toolkit/p-ff80c101.entry.js +2 -0
  434. package/dist/dso-toolkit/{p-9cf46bde.entry.js.map → p-ff80c101.entry.js.map} +1 -1
  435. package/dist/dso-toolkit/p-gdsca1fx.js +2 -0
  436. package/dist/dso-toolkit/p-gdsca1fx.js.map +1 -0
  437. package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +1 -1
  438. package/dist/esm/dso-alert_6.entry.js +5 -5
  439. package/dist/esm/dso-alert_6.entry.js.map +1 -1
  440. package/dist/esm/dso-annotation-activiteit.entry.js +1 -1
  441. package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
  442. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +1 -1
  443. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
  444. package/dist/esm/dso-annotation-kaart.entry.js +1 -1
  445. package/dist/esm/dso-annotation-kaart.entry.js.map +1 -1
  446. package/dist/esm/dso-annotation-locatie.dso-document-component.entry.js.map +1 -1
  447. package/dist/esm/dso-annotation-locatie_2.entry.js +4 -8
  448. package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
  449. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +1 -1
  450. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -1
  451. package/dist/esm/dso-button-group.entry.js +41 -0
  452. package/dist/esm/dso-button-group.entry.js.map +1 -0
  453. package/dist/esm/dso-card-container.entry.js +1 -1
  454. package/dist/esm/dso-card.entry.js +3 -3
  455. package/dist/esm/dso-card.entry.js.map +1 -1
  456. package/dist/esm/dso-contact-information.entry.js +1 -1
  457. package/dist/esm/dso-date-picker-legacy.entry.js +3 -3
  458. package/dist/esm/dso-date-picker.entry.js +1 -1
  459. package/dist/esm/dso-document-card.entry.js +1 -1
  460. package/dist/esm/dso-dropdown-menu.entry.js +44 -103
  461. package/dist/esm/dso-dropdown-menu.entry.js.map +1 -1
  462. package/dist/esm/dso-header.entry.js +2 -2
  463. package/dist/esm/dso-header.entry.js.map +1 -1
  464. package/dist/esm/dso-highlight-box.entry.js +1 -1
  465. package/dist/esm/dso-icon.entry.js +1 -1
  466. package/dist/esm/dso-info-button.entry.js +1 -1
  467. package/dist/esm/dso-info_2.entry.js +2 -2
  468. package/dist/esm/dso-input-range.entry.js +2 -2
  469. package/dist/esm/dso-label.dso-renvooi.dso-slide-toggle.entry.js.map +1 -1
  470. package/dist/esm/dso-label_3.entry.js +4 -4
  471. package/dist/esm/dso-label_3.entry.js.map +1 -1
  472. package/dist/esm/dso-legend-item.entry.js +16 -7
  473. package/dist/esm/dso-legend-item.entry.js.map +1 -1
  474. package/dist/esm/dso-list-button.entry.js +2 -2
  475. package/dist/esm/dso-list-button.entry.js.map +1 -1
  476. package/dist/esm/dso-logo.entry.js +1 -1
  477. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  478. package/dist/esm/dso-map-controls.entry.js +3 -3
  479. package/dist/esm/dso-map-controls.entry.js.map +1 -1
  480. package/dist/esm/dso-map-overlays.entry.js +1 -1
  481. package/dist/esm/dso-mark-bar.entry.js +1 -1
  482. package/dist/esm/dso-modal.entry.js +1 -1
  483. package/dist/esm/dso-onboarding-tip.entry.js +2 -1660
  484. package/dist/esm/dso-onboarding-tip.entry.js.map +1 -1
  485. package/dist/esm/dso-pagination.entry.js +1 -1
  486. package/dist/esm/dso-pagination.entry.js.map +1 -1
  487. package/dist/esm/dso-plekinfo-card.entry.js +1 -1
  488. package/dist/esm/dso-progress-bar.entry.js +1 -1
  489. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  490. package/dist/esm/dso-project-item.entry.js +1 -1
  491. package/dist/esm/dso-responsive-element.entry.js +1 -1
  492. package/dist/esm/dso-scrollable.entry.js +2 -2
  493. package/dist/esm/dso-skiplink.entry.js +1 -1
  494. package/dist/esm/dso-survey-rating.entry.js +3 -3
  495. package/dist/esm/dso-tabs.entry.js +1 -1
  496. package/dist/esm/dso-toggletip.entry.js +1 -1
  497. package/dist/esm/dso-toolkit.js +1 -1
  498. package/dist/esm/dso-tooltip.entry.js +1800 -4
  499. package/dist/esm/dso-tooltip.entry.js.map +1 -1
  500. package/dist/esm/dso-tree-view.entry.js +1 -1
  501. package/dist/esm/dso-viewer-grid.entry.js +2 -2
  502. package/dist/esm/dsot-document-component-demo.entry.js +3 -3
  503. package/dist/esm/dsot-document-component-demo.entry.js.map +1 -1
  504. package/dist/esm/floating-ui.dom-gdsca1fx.js +1663 -0
  505. package/dist/esm/floating-ui.dom-gdsca1fx.js.map +1 -0
  506. package/dist/esm/loader.js +1 -1
  507. package/dist/types/components/button-group/button-group.d.ts +16 -0
  508. package/dist/types/components/button-group/button-group.interfaces.d.ts +1 -0
  509. package/dist/types/components/document-component/document-component-heading.d.ts +1 -1
  510. package/dist/types/components/document-component/document-component.d.ts +1 -16
  511. package/dist/types/components/document-component/{document-component.models.d.ts → document-component.interfaces.d.ts} +2 -1
  512. package/dist/types/components/document-component-demo/document-component.demo.d.ts +1 -4
  513. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +3 -20
  514. package/dist/types/components/legend-item/legend-item.d.ts +10 -3
  515. package/dist/types/components/map-controls/map-controls.d.ts +2 -2
  516. package/dist/types/components.d.ts +35 -58
  517. package/package.json +5 -5
  518. package/dist/bundle/p-BvIWF0ZG.js +0 -80
  519. package/dist/bundle/p-CTntGBuq.js +0 -314
  520. package/dist/bundle/p-CTntGBuq.js.map +0 -1
  521. package/dist/bundle/p-CWKjZDtY.js.map +0 -1
  522. package/dist/bundle/p-CsY83cJO.js +0 -1801
  523. package/dist/bundle/p-CsY83cJO.js.map +0 -1
  524. package/dist/bundle/p-DbfxMDmf.js.map +0 -1
  525. package/dist/bundle/p-pVO6m7lg.js.map +0 -1
  526. package/dist/cjs/has-overflow-B_4p67wC.js.map +0 -1
  527. package/dist/collection/components/document-component/document-component.models.js +0 -2
  528. package/dist/collection/components/document-component/document-component.models.js.map +0 -1
  529. package/dist/components/has-overflow.js +0 -1801
  530. package/dist/components/has-overflow.js.map +0 -1
  531. package/dist/dso-toolkit/p-0031a2bb.entry.js +0 -2
  532. package/dist/dso-toolkit/p-0031a2bb.entry.js.map +0 -1
  533. package/dist/dso-toolkit/p-11cd688b.entry.js +0 -2
  534. package/dist/dso-toolkit/p-221c3b8b.entry.js +0 -2
  535. package/dist/dso-toolkit/p-221c3b8b.entry.js.map +0 -1
  536. package/dist/dso-toolkit/p-23241161.entry.js +0 -2
  537. package/dist/dso-toolkit/p-23241161.entry.js.map +0 -1
  538. package/dist/dso-toolkit/p-32503cd9.entry.js +0 -2
  539. package/dist/dso-toolkit/p-32503cd9.entry.js.map +0 -1
  540. package/dist/dso-toolkit/p-369e9eb0.entry.js.map +0 -1
  541. package/dist/dso-toolkit/p-36e6a37b.entry.js +0 -2
  542. package/dist/dso-toolkit/p-36e6a37b.entry.js.map +0 -1
  543. package/dist/dso-toolkit/p-3daf3d1b.entry.js +0 -2
  544. package/dist/dso-toolkit/p-554d12b7.entry.js +0 -2
  545. package/dist/dso-toolkit/p-62ecc855.entry.js.map +0 -1
  546. package/dist/dso-toolkit/p-75091e9b.entry.js +0 -2
  547. package/dist/dso-toolkit/p-7e09098c.entry.js +0 -2
  548. package/dist/dso-toolkit/p-7e09098c.entry.js.map +0 -1
  549. package/dist/dso-toolkit/p-858970da.entry.js +0 -2
  550. package/dist/dso-toolkit/p-858970da.entry.js.map +0 -1
  551. package/dist/dso-toolkit/p-9cf46bde.entry.js +0 -2
  552. package/dist/dso-toolkit/p-CsY83cJO.js +0 -2
  553. package/dist/dso-toolkit/p-CsY83cJO.js.map +0 -1
  554. package/dist/dso-toolkit/p-a4618476.entry.js.map +0 -1
  555. package/dist/dso-toolkit/p-ad8a1705.entry.js +0 -2
  556. package/dist/dso-toolkit/p-bfaa3608.entry.js +0 -2
  557. package/dist/dso-toolkit/p-c93fae9e.entry.js +0 -2
  558. package/dist/dso-toolkit/p-fcb3d0dc.entry.js +0 -2
  559. package/dist/dso-toolkit/p-fe0021d0.entry.js +0 -2
  560. package/dist/dso-toolkit/p-fe0021d0.entry.js.map +0 -1
  561. package/dist/esm/has-overflow-CsY83cJO.js +0 -1801
  562. package/dist/esm/has-overflow-CsY83cJO.js.map +0 -1
  563. /package/dist/dso-toolkit/{p-7f073eed.entry.js.map → p-088d0493.entry.js.map} +0 -0
  564. /package/dist/dso-toolkit/{p-08a680e3.entry.js.map → p-090ab6fc.entry.js.map} +0 -0
  565. /package/dist/dso-toolkit/{p-789aee43.entry.js.map → p-099c6eb7.entry.js.map} +0 -0
  566. /package/dist/dso-toolkit/{p-05982f0c.entry.js.map → p-10901139.entry.js.map} +0 -0
  567. /package/dist/dso-toolkit/{p-bcc1bb8f.entry.js.map → p-2ff601f9.entry.js.map} +0 -0
  568. /package/dist/dso-toolkit/{p-ac24cd1e.entry.js.map → p-356f8d94.entry.js.map} +0 -0
  569. /package/dist/dso-toolkit/{p-ffa6ca48.entry.js.map → p-44d831b6.entry.js.map} +0 -0
  570. /package/dist/dso-toolkit/{p-aeac51e6.entry.js.map → p-451f3c78.entry.js.map} +0 -0
  571. /package/dist/dso-toolkit/{p-a82b3993.entry.js.map → p-517cbc20.entry.js.map} +0 -0
  572. /package/dist/dso-toolkit/{p-dd5a59b3.entry.js.map → p-613f19f9.entry.js.map} +0 -0
  573. /package/dist/dso-toolkit/{p-f8544d78.entry.js.map → p-74718de8.entry.js.map} +0 -0
  574. /package/dist/dso-toolkit/{p-8b4a6a68.entry.js.map → p-83d63542.entry.js.map} +0 -0
  575. /package/dist/dso-toolkit/{p-5870d108.entry.js.map → p-92f93d4d.entry.js.map} +0 -0
  576. /package/dist/dso-toolkit/{p-a2800a6f.entry.js.map → p-97320fda.entry.js.map} +0 -0
  577. /package/dist/dso-toolkit/{p-fe4319c2.entry.js.map → p-a10cea33.entry.js.map} +0 -0
  578. /package/dist/dso-toolkit/{p-e9ea10ed.entry.js.map → p-a1dd8602.entry.js.map} +0 -0
  579. /package/dist/dso-toolkit/{p-bcfeeafb.entry.js.map → p-a3fd0646.entry.js.map} +0 -0
  580. /package/dist/dso-toolkit/{p-90521fc1.entry.js.map → p-b9b0c72d.entry.js.map} +0 -0
  581. /package/dist/dso-toolkit/{p-133c1677.entry.js.map → p-c9389342.entry.js.map} +0 -0
  582. /package/dist/dso-toolkit/{p-6d3d29ac.entry.js.map → p-c9645d23.entry.js.map} +0 -0
  583. /package/dist/dso-toolkit/{p-ad8a1705.entry.js.map → p-cf388db9.entry.js.map} +0 -0
  584. /package/dist/dso-toolkit/{p-124316e8.entry.js.map → p-e0bc1853.entry.js.map} +0 -0
  585. /package/dist/dso-toolkit/{p-66ec457d.entry.js.map → p-e3883983.entry.js.map} +0 -0
  586. /package/dist/dso-toolkit/{p-57a2730e.entry.js.map → p-e9f5382c.entry.js.map} +0 -0
  587. /package/dist/dso-toolkit/{p-0c2176c5.entry.js.map → p-f0579969.entry.js.map} +0 -0
  588. /package/dist/dso-toolkit/{p-3daf3d1b.entry.js.map → p-f1f414b6.entry.js.map} +0 -0
@@ -11,7 +11,7 @@ const Info = class {
11
11
  this.dsoClose = index.createEvent(this, "dsoClose", 7);
12
12
  }
13
13
  render() {
14
- return (index.h(index.Fragment, { key: '3b3a3390da24484d21869661692c293f766bb06b' }, index.h("slot", { key: '83976a207e4c1505329876192c83e6eccc1f6a52' }), !this.fixed && (index.h("button", { key: 'de983b145b9a2cfd1adccc13116f0f17e8130314', type: "button", onClick: (e) => this.dsoClose.emit(e) }, index.h("dso-icon", { key: 'c34a3568d69b61537de385c4e9b6277be5ea7697', icon: "times" }), index.h("span", { key: 'bc2069fa68085e27fd9bab79d41ec801f5da1c5f', class: "sr-only" }, "Sluiten")))));
14
+ return (index.h(index.Fragment, { key: '7c3f9fed7a8ab8dbabe817e1b978e940f26f27f8' }, index.h("slot", { key: '74dbbbdf2d445f448a7de100196ef0df2305734f' }), !this.fixed && (index.h("button", { key: '5e702078b32a2d57fafb0758941c57548d7a5851', type: "button", onClick: (e) => this.dsoClose.emit(e) }, index.h("dso-icon", { key: '494887a2f0fa4ab19a2d2b448d9821a001cd9cfb', icon: "times" }), index.h("span", { key: '052dde259dd0f396097b3c3ead102bb10edda4ff', class: "sr-only" }, "Sluiten")))));
15
15
  }
16
16
  };
17
17
  Info.style = infoCss;
@@ -64,7 +64,7 @@ const Selectable = class {
64
64
  render() {
65
65
  var _a;
66
66
  const hasInfo = !!this.host.querySelector('[slot="info"]');
67
- return (index.h(index.Fragment, { key: '2534184be166622bdaadee8f12acc8677838ba36' }, index.h("div", { key: '2e2819d9cb5410f204e8e82db3fe117205a983d9', class: "dso-selectable-container" }, index.h("div", { key: '56d506c5aa7d8d74afc03e6b38ef2589b8ffb717', class: "dso-selectable-input-wrapper" }, index.h("input", { key: '96c54d64e1a6c85f21bb34e2338024d07ce35736', type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: this.handleOnChange, ref: (el) => (this.input = el) }), !this.labelledById ? (index.h("label", { htmlFor: this.getIdentifier() }, index.h("slot", null))) : (index.h("label", null, index.h("slot", null)))), hasInfo && !this.infoFixed && (index.h("dso-info-button", { key: '8d4d6efa50d4db12e0fa2dbca4f9ba1feef350a2', active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) }))), hasInfo && (index.h("dso-info", { key: 'f1c1d611553a67a8144c85c62f26cdec60b725f1', id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, index.h("div", { key: 'f226b76f318df6542efdc89ea71dc5f5beb0f0bc' }, index.h("slot", { key: '8285d8bd98be43832dc6b381a83c441d282845f9', name: "info" })))), index.h("slot", { key: '9497982a5ffb4b53295e0ef170e8034114cb0f83', name: "options" })));
67
+ return (index.h(index.Fragment, { key: 'd1ac7e7b96a5ae26b6bcbbd6be4e831d9f17073e' }, index.h("div", { key: '790e415174f84dd639429fa110edc78359e8bc1e', class: "dso-selectable-container" }, index.h("div", { key: 'c9092d85b8067406ad5e5fa289d3d3c445ed1061', class: "dso-selectable-input-wrapper" }, index.h("input", { key: '2804a9faced594cd59cf79a8a7d189a2ff43b7f3', type: this.type, id: this.getIdentifier(), value: this.value, name: this.name, "aria-invalid": (_a = this.invalid) === null || _a === void 0 ? void 0 : _a.toString(), "aria-describedby": hasInfo && this.infoFixed ? this.describedById : undefined, "aria-labelledBy": this.labelledById, disabled: this.disabled, required: this.required, checked: this.checked, onChange: this.handleOnChange, ref: (el) => (this.input = el) }), !this.labelledById ? (index.h("label", { htmlFor: this.getIdentifier() }, index.h("slot", null))) : (index.h("label", null, index.h("slot", null)))), hasInfo && !this.infoFixed && (index.h("dso-info-button", { key: '628b1c558a78e2cddf2582edb3898415cb5093b6', active: this.infoActive, onDsoToggle: (e) => (this.infoActive = e.detail.active) }))), hasInfo && (index.h("dso-info", { key: '1547be169f3f85655025bf031333565298425b81', id: hasInfo && this.infoFixed ? this.describedById : undefined, fixed: this.infoFixed, active: this.infoActive, onDsoClose: () => (this.infoActive = false) }, index.h("div", { key: '26d8eb7d5938f1c79e86425eaa59c6b9430484f0' }, index.h("slot", { key: 'ca9a1ba6b6b4124a05784780e193b81f1a9c16c1', name: "info" })))), index.h("slot", { key: 'f0e200a88d892b50e41cb9b129a41b9fb6055f84', name: "options" })));
68
68
  }
69
69
  componentDidRender() {
70
70
  if (this.input && typeof this.checked === "boolean" && this.input.checked !== this.checked) {
@@ -17,13 +17,13 @@ const InputRange = class {
17
17
  const min = this.min || 0;
18
18
  const max = this.max || 100;
19
19
  const step = this.step || 1;
20
- return (index.h(index.Fragment, null, this.description && (index.h("span", { key: '4a0c928f94f1c99d5bb031fe9afb95993b3386cb', id: "description", hidden: true }, this.description)), index.h("span", { key: '8c132c422e427494ecd404357974aacf0db3ca41', class: "counter min", "aria-hidden": "true" }, min, this.unit), index.h("input", { key: 'e5591337e5f45fde80f3f95aa72b3a6eeecf0c82', type: "range", min: this.min, max: this.max, value: this.value, class: "input", "aria-label": this.label, "aria-describedby": this.description ? "description" : undefined, onChange: (event) => this.dsoChange.emit({
20
+ return (index.h(index.Fragment, null, this.description && (index.h("span", { key: 'bd3e2d52c55adab4c14bb2b2e77fd03d786a5963', id: "description", hidden: true }, this.description)), index.h("span", { key: 'f882c7f95664ab0bc13ff5025f9cc29d2d6d7350', class: "counter min", "aria-hidden": "true" }, min, this.unit), index.h("input", { key: '0618bbb18445fc1284a8ff569fa1d29cbdc36edd', type: "range", min: this.min, max: this.max, value: this.value, class: "input", "aria-label": this.label, "aria-describedby": this.description ? "description" : undefined, onChange: (event) => this.dsoChange.emit({
21
21
  originalEvent: event,
22
22
  value: event.target instanceof HTMLInputElement ? parseInt(event.target.value, 10) : undefined,
23
23
  max,
24
24
  min,
25
25
  step,
26
- }) }), index.h("span", { key: '08348b0b850bfbdf964541a10b7602ad602b3621', class: "counter max", "aria-hidden": "true" }, max, this.unit)));
26
+ }) }), index.h("span", { key: '6ebeab32da3617ea9c7c1fa192e018fb30ca815e', class: "counter max", "aria-hidden": "true" }, max, this.unit)));
27
27
  }
28
28
  get host() { return index.getElement(this); }
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dso-label.dso-renvooi.dso-slide-toggle.entry.cjs.js","sources":["src/components/label/label.scss?tag=dso-label&encapsulation=shadow","src/components/label/label.tsx","src/components/renvooi/renvooi-render-text.tsx","src/components/renvooi/renvooi-render.tsx","src/components/renvooi/renvooi.scss?tag=dso-renvooi&encapsulation=shadow","src/components/renvooi/renvooi.tsx","src/components/slide-toggle/slide-toggle.scss?tag=dso-slide-toggle&encapsulation=scoped","src/components/slide-toggle/slide-toggle.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/label\";\r\n\r\n:host {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n// Todo: Replace .sr-only selector with web component specific selector, no need for .sr-only if we can generate the SCSS\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.dso-label {\r\n @include label.root();\r\n\r\n &.dso-hover {\r\n .dso-label-content {\r\n text-decoration: line-through;\r\n }\r\n }\r\n}\r\n\r\n.dso-truncate.dso-label-content {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n vertical-align: bottom;\r\n white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n}\r\n\r\n:host([removable]) {\r\n .dso-truncate.dso-label-content {\r\n max-inline-size: calc(100% - (units.$u3 + 4px));\r\n }\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Listen,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nimport { LabelStatus } from \"./label.interfaces\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop({ reflect: true })\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: LabelStatus;\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby=\"toggle-anchor\"\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderMarkFunction } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderTextProps {\r\n text: string;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, ref: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRenderText: FunctionalComponent<RenvooiRenderTextProps> = ({ text, mark, onMarkItemHighlight }) => {\r\n if (!mark) {\r\n return <>{text}</>;\r\n }\r\n\r\n const result = mark(text);\r\n\r\n if (!result) {\r\n return <>{text}</>;\r\n }\r\n\r\n return (\r\n <>\r\n {result.map((renvooiText) => {\r\n if (typeof renvooiText === \"string\") {\r\n return <>{renvooiText}</>;\r\n }\r\n\r\n return (\r\n <mark\r\n class={renvooiText.highlight ? \"dso-highlight\" : undefined}\r\n ref={(ref) => renvooiText.highlight && ref && onMarkItemHighlight(renvooiText.text, ref)}\r\n >\r\n {renvooiText.text}\r\n </mark>\r\n );\r\n })}\r\n </>\r\n );\r\n};\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderText } from \"./renvooi-render-text\";\r\nimport { RenvooiRenderMarkFunction, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderProps {\r\n value: RenvooiValue;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, elementRef: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRender: FunctionalComponent<RenvooiRenderProps> = ({ value, mark, onMarkItemHighlight }) => {\r\n if (typeof value === \"string\" || !value) {\r\n // This element is used for --_dso-renvooi-text-decoration\r\n return (\r\n <span class=\"text\">\r\n <RenvooiRenderText text={value} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </span>\r\n );\r\n }\r\n\r\n if (\"toegevoegd\" in value) {\r\n return (\r\n <ins>\r\n <RenvooiRenderText text={value.toegevoegd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n );\r\n }\r\n\r\n if (\"verwijderd\" in value) {\r\n return (\r\n <del>\r\n <RenvooiRenderText text={value.verwijderd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n );\r\n }\r\n\r\n return (\r\n <>\r\n <del>\r\n <RenvooiRenderText text={value.was} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n <ins>\r\n <RenvooiRenderText text={value.wordt} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n </>\r\n );\r\n};\r\n","@use \"~dso-toolkit/src/utilities\";\r\n\r\n@use \"~dso-toolkit/src/components/insert/insert\";\r\n@use \"~dso-toolkit/src/components/delete/delete\";\r\n@use \"~dso-toolkit/src/components/mark/mark\";\r\n\r\n:host {\r\n display: inline;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.text {\r\n text-decoration: var(--_dso-renvooi-text-decoration);\r\n}\r\n","import { Component, ComponentInterface, Event, EventEmitter, Fragment, Prop, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRender } from \"./renvooi-render\";\r\nimport { RenvooiMarkFunction, RenvooiMarkItemHighlightEvent, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\n/**\r\n * Met dit component kan een `RenvooiValue` worden gepresenteerd.\r\n */\r\n@Component({\r\n tag: \"dso-renvooi\",\r\n styleUrl: \"renvooi.scss\",\r\n shadow: true,\r\n})\r\nexport class Renvooi implements ComponentInterface {\r\n /**\r\n * The renvooi value to render.\r\n */\r\n @Prop()\r\n value?: RenvooiValue | RenvooiValue[];\r\n\r\n /**\r\n * To mark text.\r\n */\r\n @Prop()\r\n mark?: RenvooiMarkFunction;\r\n\r\n /**\r\n * Emitted when a marked item is highlighted.\r\n */\r\n @Event({ bubbles: false })\r\n dsoRenvooiMarkItemHighlight!: EventEmitter<RenvooiMarkItemHighlightEvent>;\r\n\r\n get values(): RenvooiValue[] {\r\n if (!this.value) {\r\n return [];\r\n }\r\n\r\n return Array.isArray(this.value) ? this.value : [this.value];\r\n }\r\n\r\n private handleMarkItemHighlight = (text: string, elementRef: HTMLElement) => {\r\n this.dsoRenvooiMarkItemHighlight.emit({ text, elementRef });\r\n };\r\n\r\n render() {\r\n return (\r\n <>\r\n {this.values.map((v) => (\r\n <RenvooiRender\r\n value={v}\r\n mark={this.mark && ((text) => this.mark?.(text, v, this.values))}\r\n onMarkItemHighlight={this.handleMarkItemHighlight}\r\n />\r\n ))}\r\n </>\r\n );\r\n }\r\n}\r\n","@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n\r\n$slide-toggle-height: 20px;\r\n\r\n:host {\r\n display: inline-block;\r\n padding-block-start: (typography.$line-height-base * typography.$font-size-base - $slide-toggle-height) * 0.5;\r\n}\r\n\r\nbutton.dso-slider {\r\n border: 0;\r\n padding: 0;\r\n\r\n &:focus-visible {\r\n outline: 2px solid colors.$grijs-80;\r\n outline-offset: 1px;\r\n }\r\n\r\n svg {\r\n rect {\r\n fill: colors.$grijs-40;\r\n transition: fill 0.25s;\r\n }\r\n\r\n circle {\r\n @include utilities.transition(transform);\r\n\r\n transform: translateX(10px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen;\r\n }\r\n\r\n circle {\r\n transform: translateX(30px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[disabled] svg {\r\n rect {\r\n fill: colors.$grijs-20;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n\r\n &[disabled][aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen-40;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n}\r\n\r\n.dso-slider {\r\n border-radius: units.$u3;\r\n display: inline-flex;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n}\r\n","import { Component, ComponentInterface, Element, Event, EventEmitter, Fragment, Prop, State, h } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\n\r\nimport { SlideToggleActiveEvent } from \"./slide-toggle.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-slide-toggle\",\r\n styleUrl: \"slide-toggle.scss\",\r\n scoped: true,\r\n shadow: false,\r\n})\r\nexport class SlideToggle implements ComponentInterface {\r\n @Element()\r\n private host!: HTMLDsoSlideToggleElement;\r\n\r\n /**\r\n * Set to true if Slide Toggle is checked.\r\n */\r\n @Prop()\r\n checked = false;\r\n\r\n /**\r\n * Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events.\r\n */\r\n @Prop()\r\n disabled = false;\r\n\r\n /**\r\n * When provided the `<button>` will be labelled with `aria-label`. For a visible label provide a `<span>` inside the component.\r\n */\r\n @Prop()\r\n accessibleLabel?: string;\r\n\r\n /**\r\n * Provide the `id` of the element that labels this element. this property sets the `aria-labelledby` on the switch button.\r\n */\r\n @Prop()\r\n labelledbyId?: string;\r\n\r\n @State()\r\n hasVisibleLabel?: boolean;\r\n\r\n /**\r\n * Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for=\"id\">`.\r\n */\r\n @Prop()\r\n identifier = v4();\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event({ composed: false })\r\n dsoActiveChange!: EventEmitter<SlideToggleActiveEvent>;\r\n\r\n private handleSwitch(e: Event): void {\r\n this.dsoActiveChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.hasVisibleLabel = this.host.querySelector(\"*\") !== null;\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <button\r\n id={this.identifier}\r\n role=\"switch\"\r\n class=\"dso-slider\"\r\n aria-checked={\"\" + this.checked}\r\n disabled={this.disabled}\r\n onClick={(e) => this.handleSwitch(e)}\r\n {...(this.accessibleLabel ? { \"aria-label\": this.accessibleLabel } : {})}\r\n {...(this.labelledbyId ? { \"aria-labelledby\": this.labelledbyId } : {})}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"20\" viewBox=\"0 0 40 20\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <rect width=\"40\" height=\"20\" fill=\"currentColor\" rx=\"10\" />\r\n <circle cy=\"10\" r=\"8\" fill=\"currentColor\" />\r\n </g>\r\n </svg>\r\n </button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C,cAAc,EAAG,CAAA,CAC1C,CACA,CACC,EACR,IAAI,CAAC,eAAe,KACnBA,sEAAO,OAAO,EAAE,IAAI,CAAC,UAAU,EAAA,EAC7BA,SAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACF,CACT,CACA;;;;;;;;;;"}
1
+ {"version":3,"file":"dso-label.dso-renvooi.dso-slide-toggle.entry.cjs.js","sources":["src/components/label/label.scss?tag=dso-label&encapsulation=shadow","src/components/label/label.tsx","src/components/renvooi/renvooi-render-text.tsx","src/components/renvooi/renvooi-render.tsx","src/components/renvooi/renvooi.scss?tag=dso-renvooi&encapsulation=shadow","src/components/renvooi/renvooi.tsx","src/components/slide-toggle/slide-toggle.scss?tag=dso-slide-toggle&encapsulation=scoped","src/components/slide-toggle/slide-toggle.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/label\";\r\n\r\n:host {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n// Todo: Replace .sr-only selector with web component specific selector, no need for .sr-only if we can generate the SCSS\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.dso-label {\r\n @include label.root();\r\n\r\n &.dso-hover {\r\n .dso-label-content {\r\n text-decoration: line-through;\r\n }\r\n }\r\n}\r\n\r\n.dso-truncate.dso-label-content {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n vertical-align: bottom;\r\n white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n}\r\n\r\n:host([removable]) {\r\n .dso-truncate.dso-label-content {\r\n max-inline-size: calc(100% - (units.$u3 + 4px));\r\n }\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Listen,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nimport { LabelStatus } from \"./label.interfaces\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop({ reflect: true })\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: LabelStatus;\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby={this.isTruncated ? \"toggle-anchor\" : null}\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderMarkFunction } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderTextProps {\r\n text: string;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, ref: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRenderText: FunctionalComponent<RenvooiRenderTextProps> = ({ text, mark, onMarkItemHighlight }) => {\r\n if (!mark) {\r\n return <>{text}</>;\r\n }\r\n\r\n const result = mark(text);\r\n\r\n if (!result) {\r\n return <>{text}</>;\r\n }\r\n\r\n return (\r\n <>\r\n {result.map((renvooiText) => {\r\n if (typeof renvooiText === \"string\") {\r\n return <>{renvooiText}</>;\r\n }\r\n\r\n return (\r\n <mark\r\n class={renvooiText.highlight ? \"dso-highlight\" : undefined}\r\n ref={(ref) => renvooiText.highlight && ref && onMarkItemHighlight(renvooiText.text, ref)}\r\n >\r\n {renvooiText.text}\r\n </mark>\r\n );\r\n })}\r\n </>\r\n );\r\n};\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderText } from \"./renvooi-render-text\";\r\nimport { RenvooiRenderMarkFunction, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderProps {\r\n value: RenvooiValue;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, elementRef: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRender: FunctionalComponent<RenvooiRenderProps> = ({ value, mark, onMarkItemHighlight }) => {\r\n if (typeof value === \"string\" || !value) {\r\n // This element is used for --_dso-renvooi-text-decoration\r\n return (\r\n <span class=\"text\">\r\n <RenvooiRenderText text={value} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </span>\r\n );\r\n }\r\n\r\n if (\"toegevoegd\" in value) {\r\n return (\r\n <ins>\r\n <RenvooiRenderText text={value.toegevoegd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n );\r\n }\r\n\r\n if (\"verwijderd\" in value) {\r\n return (\r\n <del>\r\n <RenvooiRenderText text={value.verwijderd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n );\r\n }\r\n\r\n return (\r\n <>\r\n <del>\r\n <RenvooiRenderText text={value.was} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n <ins>\r\n <RenvooiRenderText text={value.wordt} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n </>\r\n );\r\n};\r\n","@use \"~dso-toolkit/src/utilities\";\r\n\r\n@use \"~dso-toolkit/src/components/insert/insert\";\r\n@use \"~dso-toolkit/src/components/delete/delete\";\r\n@use \"~dso-toolkit/src/components/mark/mark\";\r\n\r\n:host {\r\n display: inline;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.text {\r\n text-decoration: var(--_dso-renvooi-text-decoration);\r\n}\r\n","import { Component, ComponentInterface, Event, EventEmitter, Fragment, Prop, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRender } from \"./renvooi-render\";\r\nimport { RenvooiMarkFunction, RenvooiMarkItemHighlightEvent, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\n/**\r\n * Met dit component kan een `RenvooiValue` worden gepresenteerd.\r\n */\r\n@Component({\r\n tag: \"dso-renvooi\",\r\n styleUrl: \"renvooi.scss\",\r\n shadow: true,\r\n})\r\nexport class Renvooi implements ComponentInterface {\r\n /**\r\n * The renvooi value to render.\r\n */\r\n @Prop()\r\n value?: RenvooiValue | RenvooiValue[];\r\n\r\n /**\r\n * To mark text.\r\n */\r\n @Prop()\r\n mark?: RenvooiMarkFunction;\r\n\r\n /**\r\n * Emitted when a marked item is highlighted.\r\n */\r\n @Event({ bubbles: false })\r\n dsoRenvooiMarkItemHighlight!: EventEmitter<RenvooiMarkItemHighlightEvent>;\r\n\r\n get values(): RenvooiValue[] {\r\n if (!this.value) {\r\n return [];\r\n }\r\n\r\n return Array.isArray(this.value) ? this.value : [this.value];\r\n }\r\n\r\n private handleMarkItemHighlight = (text: string, elementRef: HTMLElement) => {\r\n this.dsoRenvooiMarkItemHighlight.emit({ text, elementRef });\r\n };\r\n\r\n render() {\r\n return (\r\n <>\r\n {this.values.map((v) => (\r\n <RenvooiRender\r\n value={v}\r\n mark={this.mark && ((text) => this.mark?.(text, v, this.values))}\r\n onMarkItemHighlight={this.handleMarkItemHighlight}\r\n />\r\n ))}\r\n </>\r\n );\r\n }\r\n}\r\n","@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n\r\n$slide-toggle-height: 20px;\r\n\r\n:host {\r\n display: inline-block;\r\n padding-block-start: (typography.$line-height-base * typography.$font-size-base - $slide-toggle-height) * 0.5;\r\n}\r\n\r\nbutton.dso-slider {\r\n border: 0;\r\n padding: 0;\r\n\r\n &:focus-visible {\r\n outline: 2px solid colors.$grijs-80;\r\n outline-offset: 1px;\r\n }\r\n\r\n svg {\r\n rect {\r\n fill: colors.$grijs-40;\r\n transition: fill 0.25s;\r\n }\r\n\r\n circle {\r\n @include utilities.transition(transform);\r\n\r\n transform: translateX(10px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen;\r\n }\r\n\r\n circle {\r\n transform: translateX(30px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[disabled] svg {\r\n rect {\r\n fill: colors.$grijs-20;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n\r\n &[disabled][aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen-40;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n}\r\n\r\n.dso-slider {\r\n border-radius: units.$u3;\r\n display: inline-flex;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n}\r\n","import { Component, ComponentInterface, Element, Event, EventEmitter, Fragment, Prop, State, h } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\n\r\nimport { SlideToggleActiveEvent } from \"./slide-toggle.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-slide-toggle\",\r\n styleUrl: \"slide-toggle.scss\",\r\n scoped: true,\r\n shadow: false,\r\n})\r\nexport class SlideToggle implements ComponentInterface {\r\n @Element()\r\n private host!: HTMLDsoSlideToggleElement;\r\n\r\n /**\r\n * Set to true if Slide Toggle is checked.\r\n */\r\n @Prop()\r\n checked = false;\r\n\r\n /**\r\n * Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events.\r\n */\r\n @Prop()\r\n disabled = false;\r\n\r\n /**\r\n * When provided the `<button>` will be labelled with `aria-label`. For a visible label provide a `<span>` inside the component.\r\n */\r\n @Prop()\r\n accessibleLabel?: string;\r\n\r\n /**\r\n * Provide the `id` of the element that labels this element. this property sets the `aria-labelledby` on the switch button.\r\n */\r\n @Prop()\r\n labelledbyId?: string;\r\n\r\n @State()\r\n hasVisibleLabel?: boolean;\r\n\r\n /**\r\n * Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for=\"id\">`.\r\n */\r\n @Prop()\r\n identifier = v4();\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event({ composed: false })\r\n dsoActiveChange!: EventEmitter<SlideToggleActiveEvent>;\r\n\r\n private handleSwitch(e: Event): void {\r\n this.dsoActiveChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.hasVisibleLabel = this.host.querySelector(\"*\") !== null;\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <button\r\n id={this.identifier}\r\n role=\"switch\"\r\n class=\"dso-slider\"\r\n aria-checked={\"\" + this.checked}\r\n disabled={this.disabled}\r\n onClick={(e) => this.handleSwitch(e)}\r\n {...(this.accessibleLabel ? { \"aria-label\": this.accessibleLabel } : {})}\r\n {...(this.labelledbyId ? { \"aria-labelledby\": this.labelledbyId } : {})}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"20\" viewBox=\"0 0 40 20\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <rect width=\"40\" height=\"20\" fill=\"currentColor\" rx=\"10\" />\r\n <circle cy=\"10\" r=\"8\" fill=\"currentColor\" />\r\n </g>\r\n </svg>\r\n </button>\r\n {this.hasVisibleLabel && (\r\n <label htmlFor={this.identifier}>\r\n <slot />\r\n </label>\r\n )}\r\n </>\r\n );\r\n }\r\n}\r\n"],"names":["debounce","h","Fragment","clsx","v4"],"mappings":";;;;;;;;AAAA,MAAM,QAAQ,GAAG,o+DAAo+D;;ACmBr/D,MAAM,cAAc,GAAG,IAAI,cAAc,CACvCA,cAAQ,CAAC,CAAC,OAA8B,KAAI;IAC1C,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,KAAI;AAC7B,QAAA,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;YAC/B,MAAM,CAAC,cAAc,EAAE;;AAE3B,KAAC,CAAC;AACJ,CAAC,EAAE,GAAG,CAAC,CACR;AAED,SAAS,mBAAmB,CAAC,OAAgB,EAAA;AAC3C,IAAA,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;AACxC;AAEA,SAAS,WAAW,CAAC,EAAe,EAAA;AAClC,IAAA,OAAO,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW;AACxC;MAOa,KAAK,GAAA,MAAA;AALlB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAwDE,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAGnB,QAAA,IAAS,CAAA,SAAA,GAAG,EAAE;AAiJf;AA9IC,IAAA,cAAc,CAAC,SAAkB,EAAA;QAC/B,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,qBAAqB,EAAE;;aACvB;YACL,IAAI,CAAC,oBAAoB,EAAE;;;AAK/B,IAAA,aAAa,CAAC,QAAiB,EAAA;QAC7B,IAAI,QAAQ,EAAE;YACZ,IAAI,CAAC,aAAa,EAAE;;aACf;YACL,IAAI,CAAC,YAAY,EAAE;;;AAKvB,IAAA,eAAe,CAAC,KAAoB,EAAA;AAClC,QAAA,IAAI,KAAK,CAAC,GAAG,KAAK,QAA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AAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAC,cAAc,EAAG,CAAA,CAC1C,CACA,CACC,EACR,IAAI,CAAC,eAAe,KACnBA,sEAAO,OAAO,EAAE,IAAI,CAAC,UAAU,EAAA,EAC7BA,SAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACF,CACT,CACA;;;;;;;;;;"}
@@ -103,13 +103,13 @@ const Label = class {
103
103
  this.isTruncated = false;
104
104
  }
105
105
  render() {
106
- return (index$1.h(index$1.Fragment, { key: 'd89597ffc51b15962f552c29f36f521bdaf39c50' }, index$1.h("span", { key: 'f1e469e66f240054f1dfde27fdc8b8ab2420ff66', "aria-describedby": "toggle-anchor", class: clsx.clsx("dso-label", {
106
+ return (index$1.h(index$1.Fragment, { key: '7f5b7dff373ee8c80f77bb57f7b0df84a3fc2c26' }, index$1.h("span", { key: 'b2d2ba725922928570ecc4702755853c7adbfd6d', "aria-describedby": this.isTruncated ? "toggle-anchor" : null, class: clsx.clsx("dso-label", {
107
107
  [`dso-label-${this.status}`]: this.status,
108
108
  "dso-compact": this.compact && !this.removable,
109
109
  "dso-hover": this.removeHover || this.removeFocus,
110
- }) }, index$1.h("slot", { key: '45f7379dff3dc6b90427bc6c16cae56f20c361bd', name: "symbol" }), index$1.h("span", { key: '881082872c27e2ded34841d16789e14a406769fc', class: clsx.clsx("dso-label-content", {
110
+ }) }, index$1.h("slot", { key: '3386ac158e8cb260583c8248ac942d7eaa2a865c', name: "symbol" }), index$1.h("span", { key: 'ba633553bc2faef796752d952ccdcc5ed0d786c8', class: clsx.clsx("dso-label-content", {
111
111
  "dso-truncate": !!this.truncate,
112
- }), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, index$1.h("slot", { key: 'd39c1578c6da70686cd0f29bc1c11ea3fabce7b1' })), this.removable && (index$1.h("button", { key: '54c612faadd4f9c6c857d7a615f9272bd27b54d0', type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, index$1.h("span", { key: 'c0c9ba47faa4fe975a44082d137737d556c78634', class: "sr-only" }, "Verwijder: ", this.labelText), index$1.h("dso-icon", { key: '6120cb63ec101cccb6e36349576866cd5f8a5672', icon: "times" })))), this.isTruncated && (index$1.h("dso-tooltip", { key: 'ae3d3d54388e85890b9a536557f27a084175ac6d', stateless: true, id: "toggle-anchor", active: this.textHover || this.textFocus, position: "top", strategy: "absolute" }, this.labelText))));
112
+ }), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, index$1.h("slot", { key: '29a3c0dd5e3c2cc1f6738c0c090e3136b067d054' })), this.removable && (index$1.h("button", { key: '5bd9daa44ce5b74dd96b08f80162dcd4dd93a34b', type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, index$1.h("span", { key: '1abd5d4c0c1b70dc7b873682e6a025dc071146d6', class: "sr-only" }, "Verwijder: ", this.labelText), index$1.h("dso-icon", { key: '217b6c9ed632ffceb90a88c2e6bdca2fb5119563', icon: "times" })))), this.isTruncated && (index$1.h("dso-tooltip", { key: '5dc1852e817a09ba28ef534e3c474a1b7588bc0d', stateless: true, id: "toggle-anchor", active: this.textHover || this.textFocus, position: "top", strategy: "absolute" }, this.labelText))));
113
113
  }
114
114
  get host() { return index$1.getElement(this); }
115
115
  static get watchers() { return {
@@ -207,7 +207,7 @@ const SlideToggle = class {
207
207
  this.hasVisibleLabel = this.host.querySelector("*") !== null;
208
208
  }
209
209
  render() {
210
- return (index$1.h(index$1.Fragment, null, index$1.h("button", Object.assign({ key: 'dbbdfa26429a8f68cd9c1785c0083dbe715595ae', id: this.identifier, role: "switch", class: "dso-slider", "aria-checked": "" + this.checked, disabled: this.disabled, onClick: (e) => this.handleSwitch(e) }, (this.accessibleLabel ? { "aria-label": this.accessibleLabel } : {}), (this.labelledbyId ? { "aria-labelledby": this.labelledbyId } : {})), index$1.h("svg", { key: 'e52d22c5011f22d56f276f04dd88418ca9fa9bd3', xmlns: "http://www.w3.org/2000/svg", width: "40", height: "20", viewBox: "0 0 40 20" }, index$1.h("g", { key: 'f94f10415a5159b5629f5ebd5dee4c69b2743528', fill: "none", "fill-rule": "evenodd" }, index$1.h("rect", { key: 'd67b7ed2762f2031bb83cb5d8bcd1fa478a7b652', width: "40", height: "20", fill: "currentColor", rx: "10" }), index$1.h("circle", { key: '11931b9b335f08c61398c3742a1970811009f6e3', cy: "10", r: "8", fill: "currentColor" })))), this.hasVisibleLabel && (index$1.h("label", { key: '1a87390566ff4e48a4196f9a665b59ede9a811cc', htmlFor: this.identifier }, index$1.h("slot", { key: '6041e9938f97b0c1730c9824357a431d40498e59' })))));
210
+ return (index$1.h(index$1.Fragment, null, index$1.h("button", Object.assign({ key: '2687a8e260347da037c9042e52e77671b67ecb7f', id: this.identifier, role: "switch", class: "dso-slider", "aria-checked": "" + this.checked, disabled: this.disabled, onClick: (e) => this.handleSwitch(e) }, (this.accessibleLabel ? { "aria-label": this.accessibleLabel } : {}), (this.labelledbyId ? { "aria-labelledby": this.labelledbyId } : {})), index$1.h("svg", { key: '0274a0de7b39ca3c8d49498e6d9f8f20feedb3d9', xmlns: "http://www.w3.org/2000/svg", width: "40", height: "20", viewBox: "0 0 40 20" }, index$1.h("g", { key: '29a2cd9081df854eeb432313ede37642f1940d27', fill: "none", "fill-rule": "evenodd" }, index$1.h("rect", { key: '676f0c561f27aae117d52017b0988cc2715f44dd', width: "40", height: "20", fill: "currentColor", rx: "10" }), index$1.h("circle", { key: '7e55a33bb6e47a543e6c9f1b0f3c3271b714cba6', cy: "10", r: "8", fill: "currentColor" })))), this.hasVisibleLabel && (index$1.h("label", { key: '20928974be6f841a43d41a23a980070d9df81b42', htmlFor: this.identifier }, index$1.h("slot", { key: '6b00a5c5956eb38d2a05c02e8b44fd38a38c428a' })))));
211
211
  }
212
212
  get host() { return index$1.getElement(this); }
213
213
  };
@@ -1 +1 @@
1
- {"file":"dso-label.dso-renvooi.dso-slide-toggle.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,QAAQ,GAAG,o+DAAo+D;;ACmBr/D,MAAM,cAAc,GAAG,IAAI,cAAc,CACvCA,cAAQ,CAAC,CAAC,OAA8B,KAAI;IAC1C,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,KAAI;AAC7B,QAAA,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;YAC/B,MAAM,CAAC,cAAc,EAAE;;AAE3B,KAAC,CAAC;AACJ,CAAC,EAAE,GAAG,CAAC,CACR;AAED,SAAS,mBAAmB,CAAC,OAAgB,EAAA;AAC3C,IAAA,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;AACxC;AAEA,SAAS,WAAW,CAAC,EAAe,EAAA;AAClC,IAAA,OAAO,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW;AACxC;MAOa,KAAK,GAAA,MAAA;AALlB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAwDE,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAGnB,QAAA,IAAS,CAAA,SAAA,GAAG,EAAE;AAiJf;AA9IC,IAAA,cAAc,CAAC,SAAkB,EAAA;QAC/B,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,qBAAqB,EAAE;;aACvB;YACL,IAAI,CAAC,oBAAoB,EAAE;;;AAK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A,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,EAAC,EAAE,EAAC,IAAI,EAAG,CAAA,EAC3DA,SAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAC,cAAc,EAAG,CAAA,CAC1C,CACA,CACC,EACR,IAAI,CAAC,eAAe,KACnBA,sEAAO,OAAO,EAAE,IAAI,CAAC,UAAU,EAAA,EAC7BA,SAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACF,CACT,CACA;;;;;;;;;;","names":["debounce","h","Fragment","clsx","v4"],"sources":["src/components/label/label.scss?tag=dso-label&encapsulation=shadow","src/components/label/label.tsx","src/components/renvooi/renvooi-render-text.tsx","src/components/renvooi/renvooi-render.tsx","src/components/renvooi/renvooi.scss?tag=dso-renvooi&encapsulation=shadow","src/components/renvooi/renvooi.tsx","src/components/slide-toggle/slide-toggle.scss?tag=dso-slide-toggle&encapsulation=scoped","src/components/slide-toggle/slide-toggle.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/label\";\r\n\r\n:host {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n// Todo: Replace .sr-only selector with web component specific selector, no need for .sr-only if we can generate the SCSS\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.dso-label {\r\n @include label.root();\r\n\r\n &.dso-hover {\r\n .dso-label-content {\r\n text-decoration: line-through;\r\n }\r\n }\r\n}\r\n\r\n.dso-truncate.dso-label-content {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n vertical-align: bottom;\r\n white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n}\r\n\r\n:host([removable]) {\r\n .dso-truncate.dso-label-content {\r\n max-inline-size: calc(100% - (units.$u3 + 4px));\r\n }\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Listen,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nimport { LabelStatus } from \"./label.interfaces\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop({ reflect: true })\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: LabelStatus;\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby=\"toggle-anchor\"\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderMarkFunction } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderTextProps {\r\n text: string;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, ref: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRenderText: FunctionalComponent<RenvooiRenderTextProps> = ({ text, mark, onMarkItemHighlight }) => {\r\n if (!mark) {\r\n return <>{text}</>;\r\n }\r\n\r\n const result = mark(text);\r\n\r\n if (!result) {\r\n return <>{text}</>;\r\n }\r\n\r\n return (\r\n <>\r\n {result.map((renvooiText) => {\r\n if (typeof renvooiText === \"string\") {\r\n return <>{renvooiText}</>;\r\n }\r\n\r\n return (\r\n <mark\r\n class={renvooiText.highlight ? \"dso-highlight\" : undefined}\r\n ref={(ref) => renvooiText.highlight && ref && onMarkItemHighlight(renvooiText.text, ref)}\r\n >\r\n {renvooiText.text}\r\n </mark>\r\n );\r\n })}\r\n </>\r\n );\r\n};\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderText } from \"./renvooi-render-text\";\r\nimport { RenvooiRenderMarkFunction, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderProps {\r\n value: RenvooiValue;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, elementRef: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRender: FunctionalComponent<RenvooiRenderProps> = ({ value, mark, onMarkItemHighlight }) => {\r\n if (typeof value === \"string\" || !value) {\r\n // This element is used for --_dso-renvooi-text-decoration\r\n return (\r\n <span class=\"text\">\r\n <RenvooiRenderText text={value} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </span>\r\n );\r\n }\r\n\r\n if (\"toegevoegd\" in value) {\r\n return (\r\n <ins>\r\n <RenvooiRenderText text={value.toegevoegd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n );\r\n }\r\n\r\n if (\"verwijderd\" in value) {\r\n return (\r\n <del>\r\n <RenvooiRenderText text={value.verwijderd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n );\r\n }\r\n\r\n return (\r\n <>\r\n <del>\r\n <RenvooiRenderText text={value.was} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n <ins>\r\n <RenvooiRenderText text={value.wordt} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n </>\r\n );\r\n};\r\n","@use \"~dso-toolkit/src/utilities\";\r\n\r\n@use \"~dso-toolkit/src/components/insert/insert\";\r\n@use \"~dso-toolkit/src/components/delete/delete\";\r\n@use \"~dso-toolkit/src/components/mark/mark\";\r\n\r\n:host {\r\n display: inline;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.text {\r\n text-decoration: var(--_dso-renvooi-text-decoration);\r\n}\r\n","import { Component, ComponentInterface, Event, EventEmitter, Fragment, Prop, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRender } from \"./renvooi-render\";\r\nimport { RenvooiMarkFunction, RenvooiMarkItemHighlightEvent, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\n/**\r\n * Met dit component kan een `RenvooiValue` worden gepresenteerd.\r\n */\r\n@Component({\r\n tag: \"dso-renvooi\",\r\n styleUrl: \"renvooi.scss\",\r\n shadow: true,\r\n})\r\nexport class Renvooi implements ComponentInterface {\r\n /**\r\n * The renvooi value to render.\r\n */\r\n @Prop()\r\n value?: RenvooiValue | RenvooiValue[];\r\n\r\n /**\r\n * To mark text.\r\n */\r\n @Prop()\r\n mark?: RenvooiMarkFunction;\r\n\r\n /**\r\n * Emitted when a marked item is highlighted.\r\n */\r\n @Event({ bubbles: false })\r\n dsoRenvooiMarkItemHighlight!: EventEmitter<RenvooiMarkItemHighlightEvent>;\r\n\r\n get values(): RenvooiValue[] {\r\n if (!this.value) {\r\n return [];\r\n }\r\n\r\n return Array.isArray(this.value) ? this.value : [this.value];\r\n }\r\n\r\n private handleMarkItemHighlight = (text: string, elementRef: HTMLElement) => {\r\n this.dsoRenvooiMarkItemHighlight.emit({ text, elementRef });\r\n };\r\n\r\n render() {\r\n return (\r\n <>\r\n {this.values.map((v) => (\r\n <RenvooiRender\r\n value={v}\r\n mark={this.mark && ((text) => this.mark?.(text, v, this.values))}\r\n onMarkItemHighlight={this.handleMarkItemHighlight}\r\n />\r\n ))}\r\n </>\r\n );\r\n }\r\n}\r\n","@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n\r\n$slide-toggle-height: 20px;\r\n\r\n:host {\r\n display: inline-block;\r\n padding-block-start: (typography.$line-height-base * typography.$font-size-base - $slide-toggle-height) * 0.5;\r\n}\r\n\r\nbutton.dso-slider {\r\n border: 0;\r\n padding: 0;\r\n\r\n &:focus-visible {\r\n outline: 2px solid colors.$grijs-80;\r\n outline-offset: 1px;\r\n }\r\n\r\n svg {\r\n rect {\r\n fill: colors.$grijs-40;\r\n transition: fill 0.25s;\r\n }\r\n\r\n circle {\r\n @include utilities.transition(transform);\r\n\r\n transform: translateX(10px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen;\r\n }\r\n\r\n circle {\r\n transform: translateX(30px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[disabled] svg {\r\n rect {\r\n fill: colors.$grijs-20;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n\r\n &[disabled][aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen-40;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n}\r\n\r\n.dso-slider {\r\n border-radius: units.$u3;\r\n display: inline-flex;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n}\r\n","import { Component, ComponentInterface, Element, Event, EventEmitter, Fragment, Prop, State, h } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\n\r\nimport { SlideToggleActiveEvent } from \"./slide-toggle.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-slide-toggle\",\r\n styleUrl: \"slide-toggle.scss\",\r\n scoped: true,\r\n shadow: false,\r\n})\r\nexport class SlideToggle implements ComponentInterface {\r\n @Element()\r\n private host!: HTMLDsoSlideToggleElement;\r\n\r\n /**\r\n * Set to true if Slide Toggle is checked.\r\n */\r\n @Prop()\r\n checked = false;\r\n\r\n /**\r\n * Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events.\r\n */\r\n @Prop()\r\n disabled = false;\r\n\r\n /**\r\n * When provided the `<button>` will be labelled with `aria-label`. For a visible label provide a `<span>` inside the component.\r\n */\r\n @Prop()\r\n accessibleLabel?: string;\r\n\r\n /**\r\n * Provide the `id` of the element that labels this element. this property sets the `aria-labelledby` on the switch button.\r\n */\r\n @Prop()\r\n labelledbyId?: string;\r\n\r\n @State()\r\n hasVisibleLabel?: boolean;\r\n\r\n /**\r\n * Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for=\"id\">`.\r\n */\r\n @Prop()\r\n identifier = v4();\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event({ composed: false })\r\n dsoActiveChange!: EventEmitter<SlideToggleActiveEvent>;\r\n\r\n private handleSwitch(e: Event): void {\r\n this.dsoActiveChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.hasVisibleLabel = this.host.querySelector(\"*\") !== null;\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <button\r\n id={this.identifier}\r\n role=\"switch\"\r\n class=\"dso-slider\"\r\n aria-checked={\"\" + this.checked}\r\n disabled={this.disabled}\r\n onClick={(e) => this.handleSwitch(e)}\r\n {...(this.accessibleLabel ? { \"aria-label\": this.accessibleLabel } : {})}\r\n {...(this.labelledbyId ? { \"aria-labelledby\": this.labelledbyId } : {})}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"20\" viewBox=\"0 0 40 20\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <rect width=\"40\" height=\"20\" fill=\"currentColor\" rx=\"10\" />\r\n <circle cy=\"10\" r=\"8\" fill=\"currentColor\" />\r\n </g>\r\n </svg>\r\n </button>\r\n {this.hasVisibleLabel && (\r\n <label htmlFor={this.identifier}>\r\n <slot />\r\n </label>\r\n )}\r\n </>\r\n );\r\n }\r\n}\r\n"],"version":3}
1
+ {"file":"dso-label.dso-renvooi.dso-slide-toggle.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,QAAQ,GAAG,o+DAAo+D;;ACmBr/D,MAAM,cAAc,GAAG,IAAI,cAAc,CACvCA,cAAQ,CAAC,CAAC,OAA8B,KAAI;IAC1C,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,KAAI;AAC7B,QAAA,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;YAC/B,MAAM,CAAC,cAAc,EAAE;;AAE3B,KAAC,CAAC;AACJ,CAAC,EAAE,GAAG,CAAC,CACR;AAED,SAAS,mBAAmB,CAAC,OAAgB,EAAA;AAC3C,IAAA,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;AACxC;AAEA,SAAS,WAAW,CAAC,EAAe,EAAA;AAClC,IAAA,OAAO,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW;AACxC;MAOa,KAAK,GAAA,MAAA;AALlB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAwDE,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAGnB,QAAA,IAAS,CAAA,SAAA,GAAG,EAAE;AAiJf;AA9IC,IAAA,cAAc,CAAC,SAAkB,EAAA;QAC/B,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,qBAAqB,EAA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GAAA,EAAA,0CAAA,EAAG,IAAI,EAAC,MAAM,EAAA,WAAA,EAAW,SAAS,EAAA,EAChCA,SAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,cAAc,EAAC,EAAE,EAAC,IAAI,EAAG,CAAA,EAC3DA,SAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAC,cAAc,EAAG,CAAA,CAC1C,CACA,CACC,EACR,IAAI,CAAC,eAAe,KACnBA,sEAAO,OAAO,EAAE,IAAI,CAAC,UAAU,EAAA,EAC7BA,SAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACF,CACT,CACA;;;;;;;;;;","names":["debounce","h","Fragment","clsx","v4"],"sources":["src/components/label/label.scss?tag=dso-label&encapsulation=shadow","src/components/label/label.tsx","src/components/renvooi/renvooi-render-text.tsx","src/components/renvooi/renvooi-render.tsx","src/components/renvooi/renvooi.scss?tag=dso-renvooi&encapsulation=shadow","src/components/renvooi/renvooi.tsx","src/components/slide-toggle/slide-toggle.scss?tag=dso-slide-toggle&encapsulation=scoped","src/components/slide-toggle/slide-toggle.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/label\";\r\n\r\n:host {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n// Todo: Replace .sr-only selector with web component specific selector, no need for .sr-only if we can generate the SCSS\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.dso-label {\r\n @include label.root();\r\n\r\n &.dso-hover {\r\n .dso-label-content {\r\n text-decoration: line-through;\r\n }\r\n }\r\n}\r\n\r\n.dso-truncate.dso-label-content {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n vertical-align: bottom;\r\n white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n}\r\n\r\n:host([removable]) {\r\n .dso-truncate.dso-label-content {\r\n max-inline-size: calc(100% - (units.$u3 + 4px));\r\n }\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Listen,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nimport { LabelStatus } from \"./label.interfaces\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop({ reflect: true })\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: LabelStatus;\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby={this.isTruncated ? \"toggle-anchor\" : null}\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderMarkFunction } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderTextProps {\r\n text: string;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, ref: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRenderText: FunctionalComponent<RenvooiRenderTextProps> = ({ text, mark, onMarkItemHighlight }) => {\r\n if (!mark) {\r\n return <>{text}</>;\r\n }\r\n\r\n const result = mark(text);\r\n\r\n if (!result) {\r\n return <>{text}</>;\r\n }\r\n\r\n return (\r\n <>\r\n {result.map((renvooiText) => {\r\n if (typeof renvooiText === \"string\") {\r\n return <>{renvooiText}</>;\r\n }\r\n\r\n return (\r\n <mark\r\n class={renvooiText.highlight ? \"dso-highlight\" : undefined}\r\n ref={(ref) => renvooiText.highlight && ref && onMarkItemHighlight(renvooiText.text, ref)}\r\n >\r\n {renvooiText.text}\r\n </mark>\r\n );\r\n })}\r\n </>\r\n );\r\n};\r\n","import { Fragment, FunctionalComponent, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRenderText } from \"./renvooi-render-text\";\r\nimport { RenvooiRenderMarkFunction, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\ninterface RenvooiRenderProps {\r\n value: RenvooiValue;\r\n mark: RenvooiRenderMarkFunction | undefined;\r\n onMarkItemHighlight: (text: string, elementRef: HTMLElement) => void | undefined;\r\n}\r\n\r\nexport const RenvooiRender: FunctionalComponent<RenvooiRenderProps> = ({ value, mark, onMarkItemHighlight }) => {\r\n if (typeof value === \"string\" || !value) {\r\n // This element is used for --_dso-renvooi-text-decoration\r\n return (\r\n <span class=\"text\">\r\n <RenvooiRenderText text={value} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </span>\r\n );\r\n }\r\n\r\n if (\"toegevoegd\" in value) {\r\n return (\r\n <ins>\r\n <RenvooiRenderText text={value.toegevoegd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n );\r\n }\r\n\r\n if (\"verwijderd\" in value) {\r\n return (\r\n <del>\r\n <RenvooiRenderText text={value.verwijderd} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n );\r\n }\r\n\r\n return (\r\n <>\r\n <del>\r\n <RenvooiRenderText text={value.was} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </del>\r\n <ins>\r\n <RenvooiRenderText text={value.wordt} mark={mark} onMarkItemHighlight={onMarkItemHighlight} />\r\n </ins>\r\n </>\r\n );\r\n};\r\n","@use \"~dso-toolkit/src/utilities\";\r\n\r\n@use \"~dso-toolkit/src/components/insert/insert\";\r\n@use \"~dso-toolkit/src/components/delete/delete\";\r\n@use \"~dso-toolkit/src/components/mark/mark\";\r\n\r\n:host {\r\n display: inline;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.text {\r\n text-decoration: var(--_dso-renvooi-text-decoration);\r\n}\r\n","import { Component, ComponentInterface, Event, EventEmitter, Fragment, Prop, h } from \"@stencil/core\";\r\n\r\nimport { RenvooiRender } from \"./renvooi-render\";\r\nimport { RenvooiMarkFunction, RenvooiMarkItemHighlightEvent, RenvooiValue } from \"./renvooi.interfaces\";\r\n\r\n/**\r\n * Met dit component kan een `RenvooiValue` worden gepresenteerd.\r\n */\r\n@Component({\r\n tag: \"dso-renvooi\",\r\n styleUrl: \"renvooi.scss\",\r\n shadow: true,\r\n})\r\nexport class Renvooi implements ComponentInterface {\r\n /**\r\n * The renvooi value to render.\r\n */\r\n @Prop()\r\n value?: RenvooiValue | RenvooiValue[];\r\n\r\n /**\r\n * To mark text.\r\n */\r\n @Prop()\r\n mark?: RenvooiMarkFunction;\r\n\r\n /**\r\n * Emitted when a marked item is highlighted.\r\n */\r\n @Event({ bubbles: false })\r\n dsoRenvooiMarkItemHighlight!: EventEmitter<RenvooiMarkItemHighlightEvent>;\r\n\r\n get values(): RenvooiValue[] {\r\n if (!this.value) {\r\n return [];\r\n }\r\n\r\n return Array.isArray(this.value) ? this.value : [this.value];\r\n }\r\n\r\n private handleMarkItemHighlight = (text: string, elementRef: HTMLElement) => {\r\n this.dsoRenvooiMarkItemHighlight.emit({ text, elementRef });\r\n };\r\n\r\n render() {\r\n return (\r\n <>\r\n {this.values.map((v) => (\r\n <RenvooiRender\r\n value={v}\r\n mark={this.mark && ((text) => this.mark?.(text, v, this.values))}\r\n onMarkItemHighlight={this.handleMarkItemHighlight}\r\n />\r\n ))}\r\n </>\r\n );\r\n }\r\n}\r\n","@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n\r\n$slide-toggle-height: 20px;\r\n\r\n:host {\r\n display: inline-block;\r\n padding-block-start: (typography.$line-height-base * typography.$font-size-base - $slide-toggle-height) * 0.5;\r\n}\r\n\r\nbutton.dso-slider {\r\n border: 0;\r\n padding: 0;\r\n\r\n &:focus-visible {\r\n outline: 2px solid colors.$grijs-80;\r\n outline-offset: 1px;\r\n }\r\n\r\n svg {\r\n rect {\r\n fill: colors.$grijs-40;\r\n transition: fill 0.25s;\r\n }\r\n\r\n circle {\r\n @include utilities.transition(transform);\r\n\r\n transform: translateX(10px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen;\r\n }\r\n\r\n circle {\r\n transform: translateX(30px);\r\n fill: colors.$wit;\r\n }\r\n }\r\n\r\n &[disabled] svg {\r\n rect {\r\n fill: colors.$grijs-20;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n\r\n &[disabled][aria-checked=\"true\"] svg {\r\n rect {\r\n fill: colors.$bosgroen-40;\r\n }\r\n\r\n circle {\r\n fill: colors.$grijs-10;\r\n }\r\n }\r\n}\r\n\r\n.dso-slider {\r\n border-radius: units.$u3;\r\n display: inline-flex;\r\n\r\n &:hover {\r\n cursor: pointer;\r\n }\r\n}\r\n","import { Component, ComponentInterface, Element, Event, EventEmitter, Fragment, Prop, State, h } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\n\r\nimport { SlideToggleActiveEvent } from \"./slide-toggle.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-slide-toggle\",\r\n styleUrl: \"slide-toggle.scss\",\r\n scoped: true,\r\n shadow: false,\r\n})\r\nexport class SlideToggle implements ComponentInterface {\r\n @Element()\r\n private host!: HTMLDsoSlideToggleElement;\r\n\r\n /**\r\n * Set to true if Slide Toggle is checked.\r\n */\r\n @Prop()\r\n checked = false;\r\n\r\n /**\r\n * Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events.\r\n */\r\n @Prop()\r\n disabled = false;\r\n\r\n /**\r\n * When provided the `<button>` will be labelled with `aria-label`. For a visible label provide a `<span>` inside the component.\r\n */\r\n @Prop()\r\n accessibleLabel?: string;\r\n\r\n /**\r\n * Provide the `id` of the element that labels this element. this property sets the `aria-labelledby` on the switch button.\r\n */\r\n @Prop()\r\n labelledbyId?: string;\r\n\r\n @State()\r\n hasVisibleLabel?: boolean;\r\n\r\n /**\r\n * Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for=\"id\">`.\r\n */\r\n @Prop()\r\n identifier = v4();\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event({ composed: false })\r\n dsoActiveChange!: EventEmitter<SlideToggleActiveEvent>;\r\n\r\n private handleSwitch(e: Event): void {\r\n this.dsoActiveChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.hasVisibleLabel = this.host.querySelector(\"*\") !== null;\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <button\r\n id={this.identifier}\r\n role=\"switch\"\r\n class=\"dso-slider\"\r\n aria-checked={\"\" + this.checked}\r\n disabled={this.disabled}\r\n onClick={(e) => this.handleSwitch(e)}\r\n {...(this.accessibleLabel ? { \"aria-label\": this.accessibleLabel } : {})}\r\n {...(this.labelledbyId ? { \"aria-labelledby\": this.labelledbyId } : {})}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"20\" viewBox=\"0 0 40 20\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <rect width=\"40\" height=\"20\" fill=\"currentColor\" rx=\"10\" />\r\n <circle cy=\"10\" r=\"8\" fill=\"currentColor\" />\r\n </g>\r\n </svg>\r\n </button>\r\n {this.hasVisibleLabel && (\r\n <label htmlFor={this.identifier}>\r\n <slot />\r\n </label>\r\n )}\r\n </>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -3,7 +3,7 @@
3
3
  var index = require('./index-Bfuot2fD.js');
4
4
  var clsx = require('./clsx-BtxeOLZW.js');
5
5
 
6
- const legendItemCss = "@charset \"UTF-8\";\n/* Genereert een `transition` met vaste easing en optionele duur en delay per property.\n**\n** @param {ArgList} $transitions...\n** - \"property\": gebruikt standaard duur (260ms) en delay (0ms)\n** - (\"property\", duur): eigen duur, geen delay\n** - (\"property\", duur, delay): eigen duur én delay\n**\n** @example\n** @include transition(opacity, (\"transform\", 300ms), (\"color\", 500ms, 200ms));\n**\n** @output\n** transition: [property] [duration] cubic-bezier(0.4, 0, 0.2, 1) [delay];\n**\n*/\n:host {\n display: block;\n padding-block: 4px;\n padding-inline: 4px;\n}\n\n*,\n*::after,\n*::before {\n box-sizing: border-box;\n}\n\n.legend-item {\n display: flex;\n position: relative;\n}\n.legend-item.legend-item-symbol + .body {\n margin-block-start: 8px;\n}\n\n.legend-item-right-content {\n margin-inline-start: auto;\n}\n.legend-item-right-content button {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-block-end: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: start;\n user-select: none;\n vertical-align: middle;\n}\n.legend-item-right-content button:focus, .legend-item-right-content button:focus-visible {\n outline-offset: 2px;\n}\n.legend-item-right-content button:active {\n outline: 0;\n}\n.legend-item-right-content button {\n border: 0;\n color: #39870c;\n line-height: 1;\n padding: 0;\n background-color: transparent;\n}\n.legend-item-right-content button[disabled] {\n color: #afcf9d;\n}\n.legend-item-right-content button[disabled].dso-spinner-left, .legend-item-right-content button[disabled].dso-spinner-right {\n color: #39870c;\n}\n.legend-item-right-content button:not([disabled]):hover {\n color: #275937;\n text-decoration: underline;\n text-underline-position: under;\n}\n.legend-item-right-content button:not([disabled]):active {\n color: #173521;\n}\n.legend-item-right-content button.dso-align {\n line-height: calc(1.5em - 1px);\n padding-block: 11px;\n padding-inline: 0;\n position: relative;\n}\n.legend-item-right-content button.dso-truncate {\n max-inline-size: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.legend-item-right-content button.dso-spinner-left::before {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: middle;\n inline-size: 24px;\n margin-inline-end: 8px;\n}\n.legend-item-right-content button.dso-spinner-right::after {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: middle;\n inline-size: 24px;\n margin-inline-start: 8px;\n}\n.legend-item-right-content button > span {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n.legend-item-right-content button {\n cursor: pointer;\n}\n.legend-item-right-content button.active {\n color: #173521;\n}\n.legend-item-right-content dso-slide-toggle {\n align-self: center;\n margin-inline-start: 8px;\n padding-block-start: 0 !important;\n}";
6
+ const legendItemCss = "@charset \"UTF-8\";\n/* Genereert een `transition` met vaste easing en optionele duur en delay per property.\n**\n** @param {ArgList} $transitions...\n** - \"property\": gebruikt standaard duur (260ms) en delay (0ms)\n** - (\"property\", duur): eigen duur, geen delay\n** - (\"property\", duur, delay): eigen duur én delay\n**\n** @example\n** @include transition(opacity, (\"transform\", 300ms), (\"color\", 500ms, 200ms));\n**\n** @output\n** transition: [property] [duration] cubic-bezier(0.4, 0, 0.2, 1) [delay];\n**\n*/\n:host {\n display: block;\n padding-block: 4px;\n padding-inline: 4px;\n}\n\n*,\n*::after,\n*::before {\n box-sizing: border-box;\n}\n\n.legend-item {\n display: flex;\n position: relative;\n}\n.legend-item.legend-item-symbol + .options {\n margin-block-start: 8px;\n}\n\n.legend-item-right-content {\n margin-inline-start: auto;\n}\n.legend-item-right-content button {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-block-end: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: start;\n user-select: none;\n vertical-align: middle;\n}\n.legend-item-right-content button:focus, .legend-item-right-content button:focus-visible {\n outline-offset: 2px;\n}\n.legend-item-right-content button:active {\n outline: 0;\n}\n.legend-item-right-content button {\n border: 0;\n color: #39870c;\n line-height: 1;\n padding: 0;\n background-color: transparent;\n}\n.legend-item-right-content button[disabled] {\n color: #afcf9d;\n}\n.legend-item-right-content button[disabled].dso-spinner-left, .legend-item-right-content button[disabled].dso-spinner-right {\n color: #39870c;\n}\n.legend-item-right-content button:not([disabled]):hover {\n color: #275937;\n text-decoration: underline;\n text-underline-position: under;\n}\n.legend-item-right-content button:not([disabled]):active {\n color: #173521;\n}\n.legend-item-right-content button.dso-align {\n line-height: calc(1.5em - 1px);\n padding-block: 11px;\n padding-inline: 0;\n position: relative;\n}\n.legend-item-right-content button.dso-truncate {\n max-inline-size: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.legend-item-right-content button.dso-spinner-left::before {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: middle;\n inline-size: 24px;\n margin-inline-end: 8px;\n}\n.legend-item-right-content button.dso-spinner-right::after {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: middle;\n inline-size: 24px;\n margin-inline-start: 8px;\n}\n.legend-item-right-content button > span {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n.legend-item-right-content button {\n cursor: pointer;\n}\n.legend-item-right-content button.active {\n color: #173521;\n}\n.legend-item-right-content dso-slide-toggle {\n align-self: center;\n margin-inline-start: 8px;\n padding-block-start: 0 !important;\n}";
7
7
 
8
8
  const LegendItem = class {
9
9
  constructor(hostRef) {
@@ -15,18 +15,27 @@ const LegendItem = class {
15
15
  * To disable the Legend Item
16
16
  */
17
17
  this.disabled = false;
18
- this.showBody = false;
18
+ this.showOptions = false;
19
+ }
20
+ connectedCallback() {
21
+ this.mutationObserver = new MutationObserver(() => index.forceUpdate(this.host));
22
+ this.mutationObserver.observe(this.host, { attributes: true, childList: true });
23
+ }
24
+ disconnectedCallback() {
25
+ var _a;
26
+ (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
27
+ delete this.mutationObserver;
19
28
  }
20
29
  get symbolSlottedElement() {
21
30
  return this.host.querySelector("[slot='symbol']");
22
31
  }
23
- get bodySlottedElement() {
24
- return this.host.querySelector("[slot='body']");
32
+ get optionsSlottedElement() {
33
+ return this.host.querySelector("[slot='options']");
25
34
  }
26
35
  render() {
27
36
  const hasSymbol = this.symbolSlottedElement !== null;
28
- const hasBody = this.bodySlottedElement !== null;
29
- return (index.h(index.Host, { key: '67814413c80d68a1b04cae35bbe937d31c949329', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, index.h("div", { key: '282c637320cfeb0b4a58579acaf5ad7124700654', class: clsx.clsx("legend-item", { "legend-item-symbol": hasSymbol }) }, index.h("div", { key: '290b0c6a3b11d0c47ca7d226c4847743edd901a7', hidden: !hasSymbol }, index.h("slot", { key: '8dec6a89a72f546b34d1a2e47ad34e65ed50047e', name: "symbol" })), index.h("div", { key: '5161253e1df39357fc9dd68f8cf8e87167034d29' }, index.h("slot", { key: '98139f7cc6b6884d1529f996e4679e7278e4f0df' })), this.disabled && this.disabledMessage && (index.h("dso-toggletip", { key: '6673f0115a44d5d15b34f870aebf8fa4014d8785', position: "bottom" }, this.disabledMessage)), index.h("div", { key: '22ed1d4da22b0961e920eb5d38928d27d9e64eaa', class: "legend-item-right-content" }, hasBody && !this.disabled && (index.h("button", { key: 'e3e78dfb48a68378673fbaa23245cff7b8bbe589', id: "edit-button", type: "button", onClick: () => (this.showBody = !this.showBody), class: { active: this.showBody } }, index.h("span", { key: 'fe61e8c16730bca25956415f6fc9d557b6448637', class: "sr-only" }, "Legenda item aanpassen"), index.h("dso-icon", { key: '8073e744e0c9810dcd42e8132b074a583b85c54f', icon: "more" }))), index.h("dso-slide-toggle", { key: '5e752a57ae9c8be4561fa49b722b9307121674c0', accessibleLabel: "Maak actief", checked: this.active, disabled: this.disabled, onDsoActiveChange: (e) => this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e }) }))), index.h("div", { key: '5d7189d66641b58de83e9068037134b52ec28e8f', hidden: !hasBody || this.disabled || !this.showBody, class: "body" }, index.h("slot", { key: 'ad3a9f9d77eaf06b4e9dd6fca086bb668071ba71', name: "body" }))));
37
+ const hasOptions = this.optionsSlottedElement !== null;
38
+ return (index.h(index.Host, { key: '48bb0757b6716a84776a90df42c5cedbe1132e88', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, index.h("div", { key: '83a4982542080f2e0eb06d9aea7757b571054b7d', class: clsx.clsx("legend-item", { "legend-item-symbol": hasSymbol }) }, hasSymbol && (index.h("div", { key: 'f75b796cafd2bb3d20a1f010af0ae6a755dd8cf2' }, index.h("slot", { key: 'd3e9246d6cb03a005d9709a3e3af9532ff466bfe', name: "symbol" }))), index.h("div", { key: '37a1d1f933c02d60d14c4f9ef922652dda5b5f82' }, index.h("slot", { key: '7f8c13ac2371171e1a294419b3999e0f74b94878' })), this.disabled && this.disabledMessage && (index.h("dso-toggletip", { key: 'a96f549a20f2571378c8cc5c4dec54c7f99a4287', position: "bottom" }, this.disabledMessage)), index.h("div", { key: 'd68c0a13bc1e83f6ff7b8ae7b2788c8b8dd4c6de', class: "legend-item-right-content" }, hasOptions && !this.disabled && (index.h("button", { key: 'd89bd6c87a72b48ff57d5969e4237a30bceb63c5', id: "edit-button", type: "button", onClick: () => (this.showOptions = !this.showOptions), class: { active: this.showOptions } }, index.h("span", { key: '987354c4a06854060b57648f07eb6825ea246a9a', class: "sr-only" }, "Legenda item aanpassen"), index.h("dso-icon", { key: '88ab0f66103f3b75edc0d58ccca744abe9ce6fed', icon: "more" }))), this.activatable && (index.h("dso-slide-toggle", { key: 'f000ae71b5b095b25f833db0bb6f0eed6a7b42c4', accessibleLabel: "Maak actief", checked: this.active, disabled: this.disabled, onDsoActiveChange: (e) => this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e }) })))), hasOptions && (index.h("div", { key: '2d7e760c836b57e2fd91ea96cb5b9191549153a0', hidden: this.disabled || !this.showOptions, class: "options" }, index.h("slot", { key: '8561f4039c6d1422e5d2cfd4d0e86792e8aa343d', name: "options" })))));
30
39
  }
31
40
  get host() { return index.getElement(this); }
32
41
  };
@@ -1 +1 @@
1
- {"file":"dso-legend-item.entry.cjs.js","mappings":";;;;;AAAA,MAAM,aAAa,GAAG,qpJAAqpJ;;MCe9pJ,UAAU,GAAA,MAAA;AALvB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AASE;;AAEG;AAEH,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAiChB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAuDjB;AArDC,IAAA,IAAI,oBAAoB,GAAA;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC;;AAGnD,IAAA,IAAI,kBAAkB,GAAA;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC;;IAGjD,MAAM,GAAA;AACJ,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,oBAAoB,KAAK,IAAI;AACpD,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,KAAK,IAAI;AAEhD,QAAA,QACEA,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,YAAY,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,EAAA,EAChGD,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAEE,S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e,EAAC,aAAa,EAC7B,OAAO,EAAE,IAAI,CAAC,MAAM,EACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,iBAAiB,EAAE,CAAC,CAAC,KACnB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,EAEpG,CAAA,CACE,CACF,EACNA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,MAAM,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,EAAA,EACpEA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACD;;;;;;;;","names":["h","Host","clsx"],"sources":["src/components/legend-item/legend-item.scss?tag=dso-legend-item&encapsulation=shadow","src/components/legend-item/legend-item.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/components/legend-item/legend-item.variables\" as legend-item-variables;\r\n\r\n:host {\r\n display: block;\r\n padding-block: units.$u1 * 0.5;\r\n padding-inline: units.$u1 * 0.5;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.legend-item {\r\n display: flex;\r\n position: relative;\r\n\r\n &.legend-item-symbol + .body {\r\n margin-block-start: units.$u1;\r\n }\r\n}\r\n\r\n.legend-item-right-content {\r\n margin-inline-start: auto;\r\n\r\n button {\r\n @include button.tertiary($icon-only: true, $modifiers: false);\r\n\r\n // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724\r\n & {\r\n cursor: pointer;\r\n }\r\n\r\n &.active {\r\n color: colors.$bosgroen-140;\r\n }\r\n }\r\n\r\n dso-slide-toggle {\r\n align-self: center;\r\n margin-inline-start: 8px;\r\n padding-block-start: 0 !important;\r\n }\r\n}\r\n","import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, State, h } from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\nimport { LegendItemActiveChangeEvent } from \"./legend-item.interfaces\";\r\n\r\n/**\r\n * @slot The label for this Legend Item\r\n * @slot symbol - A span where the symbol is styled upon\r\n * @slot body - The slot to place controls in (i.e. `dso-input-range`). If present, this will cause the appearance of an edit-button (three dots) to show the controls. Will not be displayed if property `disabled` is set to true.\r\n */\r\n@Component({\r\n tag: \"dso-legend-item\",\r\n styleUrl: \"legend-item.scss\",\r\n shadow: true,\r\n})\r\nexport class LegendItem implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoLegendItemElement;\r\n\r\n /**\r\n * To disable the Legend Item\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Message to be shown behind a toggletip when the Legend Item is disabled\r\n */\r\n @Prop()\r\n disabledMessage?: string;\r\n\r\n /**\r\n * Controls whether this Legend Item is active or not\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event()\r\n dsoActiveChange!: EventEmitter<LegendItemActiveChangeEvent>;\r\n\r\n /**\r\n * Emitted when the mouse enters the Legend Item\r\n */\r\n @Event()\r\n dsoMouseEnter!: EventEmitter;\r\n\r\n /**\r\n * Emitted when the mouse leaves the Legend Item\r\n */\r\n @Event()\r\n dsoMouseLeave!: EventEmitter;\r\n\r\n @State()\r\n showBody = false;\r\n\r\n get symbolSlottedElement() {\r\n return this.host.querySelector(\"[slot='symbol']\");\r\n }\r\n\r\n get bodySlottedElement() {\r\n return this.host.querySelector(\"[slot='body']\");\r\n }\r\n\r\n render() {\r\n const hasSymbol = this.symbolSlottedElement !== null;\r\n const hasBody = this.bodySlottedElement !== null;\r\n\r\n return (\r\n <Host onMouseEnter={() => this.dsoMouseEnter.emit()} onMouseLeave={() => this.dsoMouseLeave.emit()}>\r\n <div class={clsx(\"legend-item\", { \"legend-item-symbol\": hasSymbol })}>\r\n <div hidden={!hasSymbol}>\r\n <slot name=\"symbol\" />\r\n </div>\r\n <div>\r\n <slot />\r\n </div>\r\n {this.disabled && this.disabledMessage && (\r\n <dso-toggletip position=\"bottom\">{this.disabledMessage}</dso-toggletip>\r\n )}\r\n\r\n <div class=\"legend-item-right-content\">\r\n {hasBody && !this.disabled && (\r\n <button\r\n id=\"edit-button\"\r\n type=\"button\"\r\n onClick={() => (this.showBody = !this.showBody)}\r\n class={{ active: this.showBody }}\r\n >\r\n <span class=\"sr-only\">Legenda item aanpassen</span>\r\n <dso-icon icon=\"more\" />\r\n </button>\r\n )}\r\n <dso-slide-toggle\r\n accessibleLabel=\"Maak actief\"\r\n checked={this.active}\r\n disabled={this.disabled}\r\n onDsoActiveChange={(e) =>\r\n this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e })\r\n }\r\n />\r\n </div>\r\n </div>\r\n <div hidden={!hasBody || this.disabled || !this.showBody} class=\"body\">\r\n <slot name=\"body\" />\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
1
+ {"file":"dso-legend-item.entry.cjs.js","mappings":";;;;;AAAA,MAAM,aAAa,GAAG,wpJAAwpJ;;MC0BjqJ,UAAU,GAAA,MAAA;AALvB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AASE;;AAEG;AAEH,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAuChB,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AA2EpB;IAvEC,iBAAiB,GAAA;AACf,QAAA,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,MAAMA,iBA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M,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,EAAA,CAEpG,CACH,CACG,CACF,EACL,UAAU,KACTA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,MAAM,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,EAAC,SAAS,EAAA,EAC9DA,OAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EAAA,CAAG,CACnB,CACP,CACI;;;;;;;;","names":["forceUpdate","h","Host","clsx"],"sources":["src/components/legend-item/legend-item.scss?tag=dso-legend-item&encapsulation=shadow","src/components/legend-item/legend-item.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/components/legend-item/legend-item.variables\" as legend-item-variables;\r\n\r\n:host {\r\n display: block;\r\n padding-block: units.$u1 * 0.5;\r\n padding-inline: units.$u1 * 0.5;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.legend-item {\r\n display: flex;\r\n position: relative;\r\n\r\n &.legend-item-symbol + .options {\r\n margin-block-start: units.$u1;\r\n }\r\n}\r\n\r\n.legend-item-right-content {\r\n margin-inline-start: auto;\r\n\r\n button {\r\n @include button.tertiary($icon-only: true, $modifiers: false);\r\n\r\n // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724\r\n & {\r\n cursor: pointer;\r\n }\r\n\r\n &.active {\r\n color: colors.$bosgroen-140;\r\n }\r\n }\r\n\r\n dso-slide-toggle {\r\n align-self: center;\r\n margin-inline-start: 8px;\r\n padding-block-start: 0 !important;\r\n }\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Host,\r\n Prop,\r\n State,\r\n forceUpdate,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\nimport { LegendItemActiveChangeEvent } from \"./legend-item.interfaces\";\r\n\r\n/**\r\n * @slot The label for this Legend Item\r\n * @slot symbol - A span where the symbol is styled upon\r\n * @slot options - The slot to place controls in (i.e. `dso-input-range`). If present, this will cause the appearance of an edit-button (three dots) to show the controls. Will not be displayed if property `disabled` is set to true.\r\n */\r\n@Component({\r\n tag: \"dso-legend-item\",\r\n styleUrl: \"legend-item.scss\",\r\n shadow: true,\r\n})\r\nexport class LegendItem implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoLegendItemElement;\r\n\r\n /**\r\n * To disable the Legend Item\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Message to be shown behind a toggletip when the Legend Item is disabled\r\n */\r\n @Prop()\r\n disabledMessage?: string;\r\n\r\n /**\r\n * Controls whether this Legend Item can be active or not\r\n */\r\n @Prop({ reflect: true })\r\n activatable?: boolean;\r\n\r\n /**\r\n * Controls whether this Legend Item is active or not\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event()\r\n dsoActiveChange!: EventEmitter<LegendItemActiveChangeEvent>;\r\n\r\n /**\r\n * Emitted when the mouse enters the Legend Item\r\n */\r\n @Event()\r\n dsoMouseEnter!: EventEmitter;\r\n\r\n /**\r\n * Emitted when the mouse leaves the Legend Item\r\n */\r\n @Event()\r\n dsoMouseLeave!: EventEmitter;\r\n\r\n @State()\r\n showOptions = false;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n connectedCallback(): void {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, { attributes: true, childList: true });\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n\r\n get symbolSlottedElement() {\r\n return this.host.querySelector(\"[slot='symbol']\");\r\n }\r\n\r\n get optionsSlottedElement() {\r\n return this.host.querySelector(\"[slot='options']\");\r\n }\r\n\r\n render() {\r\n const hasSymbol = this.symbolSlottedElement !== null;\r\n const hasOptions = this.optionsSlottedElement !== null;\r\n\r\n return (\r\n <Host onMouseEnter={() => this.dsoMouseEnter.emit()} onMouseLeave={() => this.dsoMouseLeave.emit()}>\r\n <div class={clsx(\"legend-item\", { \"legend-item-symbol\": hasSymbol })}>\r\n {hasSymbol && (\r\n <div>\r\n <slot name=\"symbol\" />\r\n </div>\r\n )}\r\n <div>\r\n <slot />\r\n </div>\r\n {this.disabled && this.disabledMessage && (\r\n <dso-toggletip position=\"bottom\">{this.disabledMessage}</dso-toggletip>\r\n )}\r\n\r\n <div class=\"legend-item-right-content\">\r\n {hasOptions && !this.disabled && (\r\n <button\r\n id=\"edit-button\"\r\n type=\"button\"\r\n onClick={() => (this.showOptions = !this.showOptions)}\r\n class={{ active: this.showOptions }}\r\n >\r\n <span class=\"sr-only\">Legenda item aanpassen</span>\r\n <dso-icon icon=\"more\" />\r\n </button>\r\n )}\r\n {this.activatable && (\r\n <dso-slide-toggle\r\n accessibleLabel=\"Maak actief\"\r\n checked={this.active}\r\n disabled={this.disabled}\r\n onDsoActiveChange={(e) =>\r\n this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e })\r\n }\r\n />\r\n )}\r\n </div>\r\n </div>\r\n {hasOptions && (\r\n <div hidden={this.disabled || !this.showOptions} class=\"options\">\r\n <slot name=\"options\" />\r\n </div>\r\n )}\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"dso-legend-item.entry.cjs.js","sources":["src/components/legend-item/legend-item.scss?tag=dso-legend-item&encapsulation=shadow","src/components/legend-item/legend-item.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/components/legend-item/legend-item.variables\" as legend-item-variables;\r\n\r\n:host {\r\n display: block;\r\n padding-block: units.$u1 * 0.5;\r\n padding-inline: units.$u1 * 0.5;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.legend-item {\r\n display: flex;\r\n position: relative;\r\n\r\n &.legend-item-symbol + .body {\r\n margin-block-start: units.$u1;\r\n }\r\n}\r\n\r\n.legend-item-right-content {\r\n margin-inline-start: auto;\r\n\r\n button {\r\n @include button.tertiary($icon-only: true, $modifiers: false);\r\n\r\n // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724\r\n & {\r\n cursor: pointer;\r\n }\r\n\r\n &.active {\r\n color: colors.$bosgroen-140;\r\n }\r\n }\r\n\r\n dso-slide-toggle {\r\n align-self: center;\r\n margin-inline-start: 8px;\r\n padding-block-start: 0 !important;\r\n }\r\n}\r\n","import { Component, ComponentInterface, Element, Event, EventEmitter, Host, Prop, State, h } from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\nimport { LegendItemActiveChangeEvent } from \"./legend-item.interfaces\";\r\n\r\n/**\r\n * @slot The label for this Legend Item\r\n * @slot symbol - A span where the symbol is styled upon\r\n * @slot body - The slot to place controls in (i.e. `dso-input-range`). If present, this will cause the appearance of an edit-button (three dots) to show the controls. Will not be displayed if property `disabled` is set to true.\r\n */\r\n@Component({\r\n tag: \"dso-legend-item\",\r\n styleUrl: \"legend-item.scss\",\r\n shadow: true,\r\n})\r\nexport class LegendItem implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoLegendItemElement;\r\n\r\n /**\r\n * To disable the Legend Item\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Message to be shown behind a toggletip when the Legend Item is disabled\r\n */\r\n @Prop()\r\n disabledMessage?: string;\r\n\r\n /**\r\n * Controls whether this Legend Item is active or not\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event()\r\n dsoActiveChange!: EventEmitter<LegendItemActiveChangeEvent>;\r\n\r\n /**\r\n * Emitted when the mouse enters the Legend Item\r\n */\r\n @Event()\r\n dsoMouseEnter!: EventEmitter;\r\n\r\n /**\r\n * Emitted when the mouse leaves the Legend Item\r\n */\r\n @Event()\r\n dsoMouseLeave!: EventEmitter;\r\n\r\n @State()\r\n showBody = false;\r\n\r\n get symbolSlottedElement() {\r\n return this.host.querySelector(\"[slot='symbol']\");\r\n }\r\n\r\n get bodySlottedElement() {\r\n return this.host.querySelector(\"[slot='body']\");\r\n }\r\n\r\n render() {\r\n const hasSymbol = this.symbolSlottedElement !== null;\r\n const hasBody = this.bodySlottedElement !== null;\r\n\r\n return (\r\n <Host onMouseEnter={() => this.dsoMouseEnter.emit()} onMouseLeave={() => this.dsoMouseLeave.emit()}>\r\n <div class={clsx(\"legend-item\", { \"legend-item-symbol\": hasSymbol })}>\r\n <div hidden={!hasSymbol}>\r\n <slot name=\"symbol\" />\r\n </div>\r\n <div>\r\n <slot />\r\n </div>\r\n {this.disabled && this.disabledMessage && (\r\n <dso-toggletip position=\"bottom\">{this.disabledMessage}</dso-toggletip>\r\n )}\r\n\r\n <div class=\"legend-item-right-content\">\r\n {hasBody && !this.disabled && (\r\n <button\r\n id=\"edit-button\"\r\n type=\"button\"\r\n onClick={() => (this.showBody = !this.showBody)}\r\n class={{ active: this.showBody }}\r\n >\r\n <span class=\"sr-only\">Legenda item aanpassen</span>\r\n <dso-icon icon=\"more\" />\r\n </button>\r\n )}\r\n <dso-slide-toggle\r\n accessibleLabel=\"Maak actief\"\r\n checked={this.active}\r\n disabled={this.disabled}\r\n onDsoActiveChange={(e) =>\r\n this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e })\r\n }\r\n />\r\n </div>\r\n </div>\r\n <div hidden={!hasBody || this.disabled || !this.showBody} class=\"body\">\r\n <slot name=\"body\" />\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"names":["h","Host","clsx"],"mappings":";;;;;AAAA,MAAM,aAAa,GAAG,qpJAAqpJ;;MCe9pJ,UAAU,GAAA,MAAA;AALvB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AASE;;AAEG;AAEH,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAiChB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAuDjB;AArDC,IAAA,IAAI,oBAAoB,GAAA;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC;;AAGnD,IAAA,IAAI,kBAAkB,GAAA;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC;;IAGjD,MAAM,GAAA;AACJ,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,oBAAoB,KAAK,IAAI;AACpD,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,KAAK,IAAI;AAEhD,QAAA,QACEA,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,YAAY,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,EAAA,EAChGD,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAEE,SAAI,CAAC,aAAa,EAAE,EAAE,oBAAoB,EAAE,SAAS,EAAE,CAAC,EAAA,EAClEF,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,MAAM,EAAE,CAAC,SAAS,EAAA,EACrBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,E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IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,EAEpG,CAAA,CACE,CACF,EACNA,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,MAAM,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,EAAA,EACpEA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACD;;;;;;;;"}
1
+ {"version":3,"file":"dso-legend-item.entry.cjs.js","sources":["src/components/legend-item/legend-item.scss?tag=dso-legend-item&encapsulation=shadow","src/components/legend-item/legend-item.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/typography\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/components/legend-item/legend-item.variables\" as legend-item-variables;\r\n\r\n:host {\r\n display: block;\r\n padding-block: units.$u1 * 0.5;\r\n padding-inline: units.$u1 * 0.5;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.legend-item {\r\n display: flex;\r\n position: relative;\r\n\r\n &.legend-item-symbol + .options {\r\n margin-block-start: units.$u1;\r\n }\r\n}\r\n\r\n.legend-item-right-content {\r\n margin-inline-start: auto;\r\n\r\n button {\r\n @include button.tertiary($icon-only: true, $modifiers: false);\r\n\r\n // stylelint-disable-next-line no-duplicate-selectors -- needed to fix sass deprecation warnings: #2724\r\n & {\r\n cursor: pointer;\r\n }\r\n\r\n &.active {\r\n color: colors.$bosgroen-140;\r\n }\r\n }\r\n\r\n dso-slide-toggle {\r\n align-self: center;\r\n margin-inline-start: 8px;\r\n padding-block-start: 0 !important;\r\n }\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Host,\r\n Prop,\r\n State,\r\n forceUpdate,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\nimport { LegendItemActiveChangeEvent } from \"./legend-item.interfaces\";\r\n\r\n/**\r\n * @slot The label for this Legend Item\r\n * @slot symbol - A span where the symbol is styled upon\r\n * @slot options - The slot to place controls in (i.e. `dso-input-range`). If present, this will cause the appearance of an edit-button (three dots) to show the controls. Will not be displayed if property `disabled` is set to true.\r\n */\r\n@Component({\r\n tag: \"dso-legend-item\",\r\n styleUrl: \"legend-item.scss\",\r\n shadow: true,\r\n})\r\nexport class LegendItem implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoLegendItemElement;\r\n\r\n /**\r\n * To disable the Legend Item\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Message to be shown behind a toggletip when the Legend Item is disabled\r\n */\r\n @Prop()\r\n disabledMessage?: string;\r\n\r\n /**\r\n * Controls whether this Legend Item can be active or not\r\n */\r\n @Prop({ reflect: true })\r\n activatable?: boolean;\r\n\r\n /**\r\n * Controls whether this Legend Item is active or not\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event()\r\n dsoActiveChange!: EventEmitter<LegendItemActiveChangeEvent>;\r\n\r\n /**\r\n * Emitted when the mouse enters the Legend Item\r\n */\r\n @Event()\r\n dsoMouseEnter!: EventEmitter;\r\n\r\n /**\r\n * Emitted when the mouse leaves the Legend Item\r\n */\r\n @Event()\r\n dsoMouseLeave!: EventEmitter;\r\n\r\n @State()\r\n showOptions = false;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n connectedCallback(): void {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, { attributes: true, childList: true });\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n\r\n get symbolSlottedElement() {\r\n return this.host.querySelector(\"[slot='symbol']\");\r\n }\r\n\r\n get optionsSlottedElement() {\r\n return this.host.querySelector(\"[slot='options']\");\r\n }\r\n\r\n render() {\r\n const hasSymbol = this.symbolSlottedElement !== null;\r\n const hasOptions = this.optionsSlottedElement !== null;\r\n\r\n return (\r\n <Host onMouseEnter={() => this.dsoMouseEnter.emit()} onMouseLeave={() => this.dsoMouseLeave.emit()}>\r\n <div class={clsx(\"legend-item\", { \"legend-item-symbol\": hasSymbol })}>\r\n {hasSymbol && (\r\n <div>\r\n <slot name=\"symbol\" />\r\n </div>\r\n )}\r\n <div>\r\n <slot />\r\n </div>\r\n {this.disabled && this.disabledMessage && (\r\n <dso-toggletip position=\"bottom\">{this.disabledMessage}</dso-toggletip>\r\n )}\r\n\r\n <div class=\"legend-item-right-content\">\r\n {hasOptions && !this.disabled && (\r\n <button\r\n id=\"edit-button\"\r\n type=\"button\"\r\n onClick={() => (this.showOptions = !this.showOptions)}\r\n class={{ active: this.showOptions }}\r\n >\r\n <span class=\"sr-only\">Legenda item aanpassen</span>\r\n <dso-icon icon=\"more\" />\r\n </button>\r\n )}\r\n {this.activatable && (\r\n <dso-slide-toggle\r\n accessibleLabel=\"Maak actief\"\r\n checked={this.active}\r\n disabled={this.disabled}\r\n onDsoActiveChange={(e) =>\r\n this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e })\r\n }\r\n />\r\n )}\r\n </div>\r\n </div>\r\n {hasOptions && (\r\n <div hidden={this.disabled || !this.showOptions} class=\"options\">\r\n <slot name=\"options\" />\r\n </div>\r\n )}\r\n </Host>\r\n );\r\n }\r\n}\r\n"],"names":["forceUpdate","h","Host","clsx"],"mappings":";;;;;AAAA,MAAM,aAAa,GAAG,wpJAAwpJ;;MC0BjqJ,UAAU,GAAA,MAAA;AALvB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AASE;;AAEG;AAEH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