@dso-toolkit/core 51.2.1 → 51.4.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 (211) hide show
  1. package/dist/cjs/annotation.service-e980f478.js +21 -0
  2. package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
  3. package/dist/cjs/dso-accordion.cjs.entry.js +2 -192
  4. package/dist/cjs/dso-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/dso-annotation-button.cjs.entry.js +25 -0
  6. package/dist/cjs/dso-annotation-output.cjs.entry.js +35 -0
  7. package/dist/cjs/dso-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/dso-card.cjs.entry.js +5 -3
  9. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +45 -1
  10. package/dist/cjs/dso-expandable-heading.cjs.entry.js +47 -0
  11. package/dist/cjs/dso-expandable.cjs.entry.js +20 -0
  12. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  14. package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -2
  15. package/dist/cjs/dso-info_2.cjs.entry.js +4 -3
  16. package/dist/cjs/dso-label.cjs.entry.js +2 -2
  17. package/dist/cjs/dso-map-controls.cjs.entry.js +12 -4
  18. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  19. package/dist/cjs/dso-tooltip.cjs.entry.js +4 -1801
  20. package/dist/cjs/index-71b733b1.js +196 -0
  21. package/dist/cjs/index.cjs.js +7 -0
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/map-controls.interfaces-5ceec716.js +5 -0
  24. package/dist/cjs/popper-6adb1c1a.js +1803 -0
  25. package/dist/collection/collection-manifest.json +4 -0
  26. package/dist/collection/components/accordion/components/accordion-section.css +6 -11
  27. package/dist/collection/components/alert/alert.css +4 -4
  28. package/dist/collection/components/annotation-button/annotation-button.css +3 -0
  29. package/dist/collection/components/annotation-button/annotation-button.js +45 -0
  30. package/dist/collection/components/annotation-output/annotation-output.css +82 -0
  31. package/dist/collection/components/annotation-output/annotation-output.interfaces.js +1 -0
  32. package/dist/collection/components/annotation-output/annotation-output.js +126 -0
  33. package/dist/collection/components/badge/badge.css +7 -2
  34. package/dist/collection/components/badge/badge.js +2 -2
  35. package/dist/collection/components/card/card.css +0 -1
  36. package/dist/collection/components/card/card.js +22 -2
  37. package/dist/collection/components/dropdown-menu/dropdown-menu.css +0 -1
  38. package/dist/collection/components/dropdown-menu/dropdown-menu.js +64 -0
  39. package/dist/collection/components/expandable/expandable.css +24 -0
  40. package/dist/collection/components/expandable/expandable.js +42 -0
  41. package/dist/collection/components/expandable-heading/expandable-heading.css +145 -0
  42. package/dist/collection/components/expandable-heading/expandable-heading.interfaces.js +1 -0
  43. package/dist/collection/components/expandable-heading/expandable-heading.js +117 -0
  44. package/dist/collection/components/expandable-heading/heading.js +16 -0
  45. package/dist/collection/components/header/header.css +2 -2
  46. package/dist/collection/components/highlight-box/highlight-box.css +1 -0
  47. package/dist/collection/components/image-overlay/image-overlay.js +1 -3
  48. package/dist/collection/components/info/info.css +1 -0
  49. package/dist/collection/components/label/label.css +11 -10
  50. package/dist/collection/components/label/label.js +3 -3
  51. package/dist/collection/components/map-controls/map-controls.interfaces.js +1 -0
  52. package/dist/collection/components/map-controls/map-controls.js +58 -2
  53. package/dist/collection/components/selectable/selectable.css +1 -0
  54. package/dist/collection/components/selectable/selectable.js +19 -1
  55. package/dist/collection/index.js +3 -0
  56. package/dist/collection/services/annotation.service.js +16 -0
  57. package/dist/components/annotation.service.js +19 -0
  58. package/dist/components/dropdown-menu.js +47 -2
  59. package/dist/components/dso-accordion-section.js +2 -2
  60. package/dist/components/dso-accordion.js +2 -192
  61. package/dist/components/dso-alert.js +1 -1
  62. package/dist/components/dso-annotation-button.d.ts +11 -0
  63. package/dist/components/dso-annotation-button.js +45 -0
  64. package/dist/components/dso-annotation-output.d.ts +11 -0
  65. package/dist/components/dso-annotation-output.js +69 -0
  66. package/dist/components/dso-autosuggest.js +1 -1
  67. package/dist/components/dso-badge.js +1 -1
  68. package/dist/components/dso-card.js +7 -4
  69. package/dist/components/dso-expandable-heading.d.ts +11 -0
  70. package/dist/components/dso-expandable-heading.js +77 -0
  71. package/dist/components/dso-expandable.d.ts +11 -0
  72. package/dist/components/dso-expandable.js +6 -0
  73. package/dist/components/dso-header.js +2 -2
  74. package/dist/components/dso-highlight-box.js +1 -1
  75. package/dist/components/dso-image-overlay.js +2 -4
  76. package/dist/components/dso-label.js +2 -2
  77. package/dist/components/dso-map-controls.js +14 -4
  78. package/dist/components/dso-table.js +1 -1
  79. package/dist/components/expandable.js +33 -0
  80. package/dist/components/index.d.ts +4 -0
  81. package/dist/components/index.js +5 -1
  82. package/dist/components/index2.js +185 -61
  83. package/dist/components/index3.js +70 -0
  84. package/dist/components/info.js +1 -1
  85. package/dist/components/popper.js +1799 -0
  86. package/dist/components/selectable.js +4 -2
  87. package/dist/components/tooltip.js +4 -1801
  88. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  89. package/dist/dso-toolkit/index.esm.js +1 -0
  90. package/dist/dso-toolkit/p-07952ece.entry.js +1 -0
  91. package/dist/dso-toolkit/p-09424a1d.entry.js +1 -0
  92. package/dist/dso-toolkit/{p-a9baa631.entry.js → p-0af9bfb1.entry.js} +1 -1
  93. package/dist/dso-toolkit/{p-746dc38a.entry.js → p-0fce0861.entry.js} +1 -1
  94. package/dist/dso-toolkit/{p-abbcbe6a.entry.js → p-147ec7bd.entry.js} +1 -1
  95. package/dist/dso-toolkit/{p-a8cb2eae.entry.js → p-1aef13ee.entry.js} +1 -1
  96. package/dist/dso-toolkit/{p-19323600.entry.js → p-1cb94d7d.entry.js} +1 -1
  97. package/dist/dso-toolkit/p-1cea3b99.js +1 -0
  98. package/dist/dso-toolkit/{p-c846d208.entry.js → p-22f9240a.entry.js} +1 -1
  99. package/dist/dso-toolkit/p-30df5586.entry.js +1 -0
  100. package/dist/dso-toolkit/{p-427f6d90.entry.js → p-3914ad70.entry.js} +1 -1
  101. package/dist/dso-toolkit/{p-67c4987c.entry.js → p-43f3d736.entry.js} +1 -1
  102. package/dist/dso-toolkit/p-452c7fbb.entry.js +1 -0
  103. package/dist/dso-toolkit/{p-3b8cbd05.entry.js → p-494fe8e5.entry.js} +1 -1
  104. package/dist/dso-toolkit/p-4b18389c.entry.js +1 -0
  105. package/dist/dso-toolkit/p-4b8535b7.js +1 -0
  106. package/dist/dso-toolkit/p-4c8426b7.entry.js +1 -0
  107. package/dist/dso-toolkit/{p-8aa39e7f.entry.js → p-5082d823.entry.js} +1 -1
  108. package/dist/dso-toolkit/{p-ff72ee4c.entry.js → p-588bc4d7.entry.js} +1 -1
  109. package/dist/dso-toolkit/p-67df25a7.entry.js +1 -0
  110. package/dist/dso-toolkit/p-6cdc1acd.entry.js +1 -0
  111. package/dist/dso-toolkit/{p-11176cb8.entry.js → p-82465cdc.entry.js} +1 -1
  112. package/dist/dso-toolkit/p-85b18dbd.js +1 -0
  113. package/dist/dso-toolkit/p-89b97fce.js +1 -0
  114. package/dist/dso-toolkit/{p-8e9f6355.entry.js → p-96efc763.entry.js} +1 -1
  115. package/dist/dso-toolkit/{p-8f35c8f8.js → p-98fd1658.js} +1 -1
  116. package/dist/dso-toolkit/p-9b07b034.entry.js +1 -0
  117. package/dist/dso-toolkit/p-ad0b38cf.entry.js +1 -0
  118. package/dist/dso-toolkit/{p-6080bb9e.entry.js → p-ba0da696.entry.js} +1 -1
  119. package/dist/dso-toolkit/p-c1226b66.entry.js +1 -0
  120. package/dist/dso-toolkit/{p-520a2cdd.entry.js → p-c16ce11e.entry.js} +1 -1
  121. package/dist/dso-toolkit/p-c2a4f4ea.entry.js +1 -0
  122. package/dist/dso-toolkit/{p-655eff47.entry.js → p-c54ad578.entry.js} +1 -1
  123. package/dist/dso-toolkit/{p-35687d62.entry.js → p-d4772fb0.entry.js} +1 -1
  124. package/dist/dso-toolkit/{p-2fa96ac0.entry.js → p-d6ea8670.entry.js} +1 -1
  125. package/dist/dso-toolkit/{p-ec25868b.entry.js → p-d987ef37.entry.js} +1 -1
  126. package/dist/dso-toolkit/{p-92ad1cdb.entry.js → p-e00a3019.entry.js} +1 -1
  127. package/dist/dso-toolkit/p-e3c9c7d0.entry.js +1 -0
  128. package/dist/dso-toolkit/{p-ec4501bb.entry.js → p-e4f667b3.entry.js} +1 -1
  129. package/dist/dso-toolkit/p-ee1acb32.entry.js +1 -0
  130. package/dist/dso-toolkit/{p-55142124.entry.js → p-efdf5c91.entry.js} +1 -1
  131. package/dist/dso-toolkit/p-f3f0d6c9.entry.js +1 -0
  132. package/dist/dso-toolkit/p-f53860da.entry.js +1 -0
  133. package/dist/dso-toolkit/{p-76a1428a.entry.js → p-f8a08ba1.entry.js} +1 -1
  134. package/dist/esm/annotation.service-d0add3fc.js +19 -0
  135. package/dist/esm/dso-accordion-section.entry.js +2 -2
  136. package/dist/esm/dso-accordion.entry.js +2 -192
  137. package/dist/esm/dso-alert.entry.js +2 -2
  138. package/dist/esm/dso-annotation-button.entry.js +21 -0
  139. package/dist/esm/dso-annotation-output.entry.js +31 -0
  140. package/dist/esm/dso-attachments-counter.entry.js +1 -1
  141. package/dist/esm/dso-autosuggest.entry.js +1 -1
  142. package/dist/esm/dso-badge.entry.js +2 -2
  143. package/dist/esm/dso-banner.entry.js +1 -1
  144. package/dist/esm/dso-card-container.entry.js +1 -1
  145. package/dist/esm/dso-card.entry.js +6 -4
  146. package/dist/esm/dso-date-picker.entry.js +1 -1
  147. package/dist/esm/dso-dropdown-menu.entry.js +46 -2
  148. package/dist/esm/dso-expandable-heading.entry.js +43 -0
  149. package/dist/esm/dso-expandable.entry.js +16 -0
  150. package/dist/esm/dso-header.entry.js +2 -2
  151. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  152. package/dist/esm/dso-highlight-box.entry.js +2 -2
  153. package/dist/esm/dso-icon.entry.js +1 -1
  154. package/dist/esm/dso-image-overlay.entry.js +2 -3
  155. package/dist/esm/dso-info-button.entry.js +1 -1
  156. package/dist/esm/dso-info_2.entry.js +5 -4
  157. package/dist/esm/dso-label.entry.js +3 -3
  158. package/dist/esm/dso-list-button.entry.js +1 -1
  159. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  160. package/dist/esm/dso-map-controls.entry.js +11 -3
  161. package/dist/esm/dso-map-overlays.entry.js +1 -1
  162. package/dist/esm/dso-modal.entry.js +1 -1
  163. package/dist/esm/dso-ozon-content.entry.js +1 -1
  164. package/dist/esm/dso-pagination.entry.js +1 -1
  165. package/dist/esm/dso-progress-bar.entry.js +1 -1
  166. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  167. package/dist/esm/dso-responsive-element.entry.js +1 -1
  168. package/dist/esm/dso-slide-toggle.entry.js +1 -1
  169. package/dist/esm/dso-table.entry.js +1 -1
  170. package/dist/esm/dso-toggletip.entry.js +1 -1
  171. package/dist/esm/dso-toolkit.js +2 -2
  172. package/dist/esm/dso-tooltip.entry.js +2 -1799
  173. package/dist/esm/dso-tree-view.entry.js +1 -1
  174. package/dist/esm/dso-viewer-grid.entry.js +1 -1
  175. package/dist/esm/{index-1a4dda48.js → index-ac5a22a3.js} +1 -1
  176. package/dist/esm/index-d6ffb688.js +194 -0
  177. package/dist/esm/index.js +1 -1
  178. package/dist/esm/loader.js +2 -2
  179. package/dist/esm/map-controls.interfaces-2323e8ac.js +3 -0
  180. package/dist/esm/popper-467f7841.js +1799 -0
  181. package/dist/types/components/annotation-button/annotation-button.d.ts +7 -0
  182. package/dist/types/components/annotation-output/annotation-output.d.ts +12 -0
  183. package/dist/types/components/annotation-output/annotation-output.interfaces.d.ts +4 -0
  184. package/dist/types/components/badge/badge.d.ts +1 -1
  185. package/dist/types/components/card/card.d.ts +1 -0
  186. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +5 -0
  187. package/dist/types/components/expandable/expandable.d.ts +4 -0
  188. package/dist/types/components/expandable-heading/expandable-heading.d.ts +11 -0
  189. package/dist/types/components/expandable-heading/expandable-heading.interfaces.d.ts +5 -0
  190. package/dist/types/components/expandable-heading/heading.d.ts +9 -0
  191. package/dist/types/components/image-overlay/image-overlay.d.ts +0 -1
  192. package/dist/types/components/label/label.d.ts +1 -1
  193. package/dist/types/components/map-controls/map-controls.d.ts +9 -0
  194. package/dist/types/components/map-controls/map-controls.interfaces.d.ts +5 -0
  195. package/dist/types/components/selectable/selectable.d.ts +1 -0
  196. package/dist/types/components.d.ts +113 -4
  197. package/dist/types/index.d.ts +3 -0
  198. package/dist/types/services/annotation.service.d.ts +10 -0
  199. package/package.json +2 -2
  200. package/dist/dso-toolkit/p-04ffcc93.entry.js +0 -1
  201. package/dist/dso-toolkit/p-06b4f78d.entry.js +0 -1
  202. package/dist/dso-toolkit/p-0e5315a3.entry.js +0 -1
  203. package/dist/dso-toolkit/p-36cd87c4.entry.js +0 -1
  204. package/dist/dso-toolkit/p-46acc09f.entry.js +0 -1
  205. package/dist/dso-toolkit/p-6bd8515a.entry.js +0 -1
  206. package/dist/dso-toolkit/p-78ee23c5.entry.js +0 -1
  207. package/dist/dso-toolkit/p-9287b2f2.entry.js +0 -1
  208. package/dist/dso-toolkit/p-c2157b55.entry.js +0 -1
  209. package/dist/dso-toolkit/p-c7ec6e6e.entry.js +0 -1
  210. package/dist/dso-toolkit/p-ce475f06.entry.js +0 -1
  211. package/dist/dso-toolkit/p-d7b2adc3.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as o,c as t,h as n}from"./p-98fd1658.js";import{A as e}from"./p-89b97fce.js";import"./p-4b8535b7.js";const s=class{constructor(n){o(this,n),this.dsoToggle=t(this,"dsoToggle",7),this.identifier=void 0,this.annotationPrefix=void 0}async toggleAnnotation(o,t){e.toggle(t),this.dsoToggle.emit({originalEvent:o,open:e.state[this.identifier]})}toggleHandler(o){this.toggleAnnotation(o,this.identifier)}render(){return n("dso-responsive-element",null,n("dso-expandable",Object.assign({id:this.identifier},e.state[this.identifier]?{open:!0}:{}),this.annotationPrefix&&n("span",{class:"dso-annotation-prefix"},this.annotationPrefix),n("div",{class:"dso-annotation-header"},n("slot",{name:"title"}),n("slot",{name:"addons"}),n("button",{type:"button",class:"dso-tertiary dso-annotation-close-button",onClick:o=>this.toggleHandler(o)},n("dso-icon",{icon:"times"}),n("span",{class:"sr-only"},"Toelichting sluiten"))),n("div",{class:"dso-annotation-content"},n("slot",null))))}};s.style="*,*::after,*::before{box-sizing:border-box}dso-annotation-output{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-annotation-header{align-items:center;background-color:#f2f2f2;clear:both;display:flex;margin-bottom:2px;margin-top:8px;padding-left:16px;padding-right:8px;padding-top:8px;padding-bottom:8px}.dso-annotation-header>*[slot=title]{color:#000;font-size:1.25rem;margin-bottom:0;margin-top:0}.dso-annotation-header>*:nth-child(2){margin-left:auto}dso-responsive-element[small] .dso-annotation-header,dso-responsive-element[medium] .dso-annotation-header{display:grid;row-gap:8px}dso-responsive-element[small] .dso-annotation-header *[slot=title],dso-responsive-element[medium] .dso-annotation-header *[slot=title]{grid-row:1;grid-column:1}dso-responsive-element[small] .dso-annotation-header *[slot=addons],dso-responsive-element[medium] .dso-annotation-header *[slot=addons]{grid-row:2;grid-column:1;margin-left:initial}dso-responsive-element[small] .dso-annotation-header .dso-annotation-close-button,dso-responsive-element[medium] .dso-annotation-header .dso-annotation-close-button{grid-row:1;grid-column:2;margin-left:8px;text-align:end}.dso-annotation-content{background-color:#f2f2f2;padding-left:16px;padding-right:8px;padding-top:8px;padding-bottom:8px}.dso-annotation-close-button{margin-left:32px}.dso-annotation-prefix{font-style:italic}";export{s as dso_annotation_output}
@@ -0,0 +1 @@
1
+ import{r as o,c as t,h as s,H as i,g as e}from"./p-98fd1658.js";import{c as l}from"./p-6a1980b4.js";const a=class{constructor(s){o(this,s),this.dsoRemoveClick=t(this,"dsoRemoveClick",7),this.mutationObserver=new MutationObserver((()=>{this.labelText=this.host.innerText,this.truncate&&this.truncateLabel()})),this.resizeObserver=new ResizeObserver((()=>this.truncateLabel())),this.keydownListenerActive=!1,this.keyDownListener=o=>{"Escape"===o.key&&(this.textHover=!1,this.textFocus=!1)},this.compact=void 0,this.removable=void 0,this.status=void 0,this.removeHover=void 0,this.removeFocus=void 0,this.truncate=void 0,this.textHover=void 0,this.textFocus=void 0,this.truncatedContent=void 0,this.labelText=void 0}watchTruncate(o){o?this.startTruncate():this.stopTruncate()}watchTooltipActive(){this.keydownListenerActive||!this.textHover&&!this.textFocus||(document.addEventListener("keydown",this.keyDownListener),this.keydownListenerActive=!0),this.textHover||this.textFocus||(document.removeEventListener("keydown",this.keyDownListener),this.keydownListenerActive=!1)}truncateLabel(){setTimeout((()=>{var o;this.labelContent&&(this.truncatedContent=(o=this.labelContent).scrollWidth>o.clientWidth?this.host.innerText:void 0)}))}componentDidLoad(){this.labelText=this.host.innerText,this.mutationObserver.observe(this.host,{attributes:!0,subtree:!0}),this.truncate&&this.startTruncate()}disconnectedCallback(){var o;null===(o=this.mutationObserver)||void 0===o||o.disconnect(),this.stopTruncate()}startTruncate(){this.resizeObserver.observe(this.host),this.truncateLabel()}stopTruncate(){document.removeEventListener("keydown",this.keyDownListener),this.resizeObserver.unobserve(this.host),this.truncatedContent=void 0,this.keydownListenerActive=!1}render(){const o=this.status&&a.statusMap.get(this.status);return s(i,{"aria-roledescription":this.truncate&&this.truncatedContent?"Deze tekst is visueel afgekapt en wordt volledig zichtbaar bij focus.":void 0},s("span",{"aria-describedby":"toggle-anchor",class:l("dso-label",{[`dso-label-${this.status}`]:this.status,"dso-compact":this.compact&&!this.removable,"dso-hover":this.removeHover||this.removeFocus})},s("slot",{name:"symbol"}),o&&s("span",{class:"sr-only"},o,": "),s("span",{class:l("dso-label-content",{"dso-truncate":!!this.truncate}),ref:o=>this.labelContent=o,tabindex:this.truncate&&this.truncatedContent?0:void 0,onMouseEnter:()=>this.textHover=!0,onMouseLeave:()=>this.textHover=!1,onFocus:()=>this.textFocus=!0,onBlur:()=>this.textFocus=!1},s("slot",null)),this.removable&&s("button",{type:"button",onClick:o=>this.dsoRemoveClick.emit(o),onMouseEnter:()=>this.removeHover=!0,onMouseLeave:()=>this.removeHover=!1,onFocus:()=>this.removeFocus=!0,onBlur:()=>this.removeFocus=!1},s("span",{class:"sr-only"},"Verwijder: ",this.labelText),s("dso-icon",{icon:"times"}))),s("dso-tooltip",{stateless:!0,id:"toggle-anchor",active:!!this.truncatedContent&&(this.textHover||this.textFocus),position:"top",strategy:"absolute"},this.truncatedContent))}get host(){return e(this)}static get watchers(){return{truncate:["watchTruncate"],textHover:["watchTooltipActive"],textFocus:["watchTooltipActive"]}}};a.statusMap=new Map([["info","Opmerking"],["success","Gelukt"],["warning","Waarschuwing"],["danger","Fout"]]),a.style=":host{display:inline-block;max-width:100%}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-label{background-color:#f2f2f2;border-radius:4px;color:#191919;display:inline-block;line-height:1.5;max-width:100%;padding:4px 8px}.dso-label:focus-within,.dso-label.dso-hover{text-decoration:line-through}.dso-label button{background:none;border:0;border-radius:0 4px 4px 0;color:inherit;float:right;font-size:1rem;margin-bottom:-4px;margin-left:8px;margin-right:-4px;margin-top:0;padding:0}.dso-label button:hover{cursor:pointer}.dso-label button>dso-icon,.dso-label button>svg.di{display:block}.dso-label.dso-label-info{background-color:#6ca4d9;color:#000}.dso-label.dso-label-primary{background-color:#275937;color:#fff}.dso-label.dso-label-success{background-color:#39870c;color:#fff}.dso-label.dso-label-warning{background-color:#dcd400;color:#000}.dso-label.dso-label-danger{background-color:#ce3f51;color:#fff}.dso-label.dso-label-error{background-color:#ce3f51;color:#fff}.dso-label.dso-label-bright{background-color:#fff;color:#191919;outline:1px solid #ccc;outline-offset:-1px}.dso-label.dso-label-attention{background-color:#8b4a6a;color:#fff}.dso-label.dso-compact{padding:0 8px}.dso-label.dso-hover .dso-label-content{text-decoration:line-through}.dso-truncate.dso-label-content{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}:host([removable]) .dso-truncate.dso-label-content{max-width:calc(100% - 28px)}";export{a as dso_label}
@@ -1 +1 @@
1
- import{r as e,c as o,h as s}from"./p-8f35c8f8.js";import{v as i}from"./p-5d7f4ff2.js";const t=class{constructor(s){e(this,s),this.dsoToggleOverlay=o(this,"dsoToggleOverlay",7),this.selectableRefs={},this.group=i(),this.overlays=void 0}overlayChangeHandler(e,o){const s=o.detail.target instanceof HTMLInputElement&&!!o.detail.target.checked;this.dsoToggleOverlay.emit({overlay:e,checked:s})}componentDidRender(){this.overlays.filter((e=>{var o,s;return!e.disabled&&!0===(null===(s=null===(o=this.previousOverlays)||void 0===o?void 0:o.find((o=>o.id===e.id)))||void 0===s?void 0:s.disabled)})).forEach((e=>{var o;null===(o=this.selectableRefs[e.id])||void 0===o||o.toggleInfo(!1)})),this.previousOverlays=this.overlays}render(){for(const e in this.selectableRefs)delete this.selectableRefs[e];return s("fieldset",{class:"form-group dso-checkboxes"},s("legend",{class:"sr-only"},"Kaartlagen"),s("div",{class:"dso-label-container"},s("span",{class:"control-label","aria-hidden":"true"},"Kaartlagen")),s("div",{class:"dso-field-container"},this.overlays.map((e=>s("dso-selectable",{key:e.id,type:"checkbox",value:e.name,checked:e.checked,disabled:e.disabled,name:this.group,ref:o=>o&&(this.selectableRefs[e.id]=o),onDsoChange:o=>this.overlayChangeHandler(e,o)},e.name,e.info?s("p",{slot:"info"},e.info):null)))))}};t.style=":host{display:block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}fieldset{border:0;margin:0;min-width:0;padding:0}fieldset .control-label{display:inline-block;font-weight:bold;margin-bottom:8px;max-width:100%;text-align:left}p[slot=info]{margin:0}";export{t as dso_map_overlays}
1
+ import{r as e,c as o,h as s}from"./p-98fd1658.js";import{v as i}from"./p-5d7f4ff2.js";const t=class{constructor(s){e(this,s),this.dsoToggleOverlay=o(this,"dsoToggleOverlay",7),this.selectableRefs={},this.group=i(),this.overlays=void 0}overlayChangeHandler(e,o){const s=o.detail.target instanceof HTMLInputElement&&!!o.detail.target.checked;this.dsoToggleOverlay.emit({overlay:e,checked:s})}componentDidRender(){this.overlays.filter((e=>{var o,s;return!e.disabled&&!0===(null===(s=null===(o=this.previousOverlays)||void 0===o?void 0:o.find((o=>o.id===e.id)))||void 0===s?void 0:s.disabled)})).forEach((e=>{var o;null===(o=this.selectableRefs[e.id])||void 0===o||o.toggleInfo(!1)})),this.previousOverlays=this.overlays}render(){for(const e in this.selectableRefs)delete this.selectableRefs[e];return s("fieldset",{class:"form-group dso-checkboxes"},s("legend",{class:"sr-only"},"Kaartlagen"),s("div",{class:"dso-label-container"},s("span",{class:"control-label","aria-hidden":"true"},"Kaartlagen")),s("div",{class:"dso-field-container"},this.overlays.map((e=>s("dso-selectable",{key:e.id,type:"checkbox",value:e.name,checked:e.checked,disabled:e.disabled,name:this.group,ref:o=>o&&(this.selectableRefs[e.id]=o),onDsoChange:o=>this.overlayChangeHandler(e,o)},e.name,e.info?s("p",{slot:"info"},e.info):null)))))}};t.style=":host{display:block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}fieldset{border:0;margin:0;min-width:0;padding:0}fieldset .control-label{display:inline-block;font-weight:bold;margin-bottom:8px;max-width:100%;text-align:left}p[slot=info]{margin:0}";export{t as dso_map_overlays}
@@ -0,0 +1,19 @@
1
+ import { c as createStore } from './index-d6ffb688.js';
2
+
3
+ class AnnotationService {
4
+ static get state() {
5
+ if (!this._state) {
6
+ AnnotationService.initializeStore();
7
+ }
8
+ return this._state;
9
+ }
10
+ static toggle(id) {
11
+ this._state[id] = !this._state[id];
12
+ }
13
+ static initializeStore() {
14
+ const { state } = createStore({});
15
+ AnnotationService._state = state;
16
+ }
17
+ }
18
+
19
+ export { AnnotationService as A };
@@ -1,4 +1,4 @@
1
- import { h, r as registerInstance, f as forceUpdate, F as Fragment, H as Host, a as getElement } from './index-1a4dda48.js';
1
+ import { h, r as registerInstance, f as forceUpdate, F as Fragment, H as Host, g as getElement } from './index-ac5a22a3.js';
2
2
  import { d as debounce_1 } from './index-f2bf58ce.js';
3
3
 
4
4
  /*
@@ -1368,7 +1368,7 @@ const HandleIcon = ({ state, icon, attachmentCount }) => {
1368
1368
  }
1369
1369
  };
1370
1370
 
1371
- const accordionSectionCss = "*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}:host{display:block}:host .dso-section-handle{font-size:1em;font-weight:600;line-height:1.375em;margin:0;position:relative}:host .dso-section-handle>a:active{text-decoration:none}:host .dso-section-handle a{text-decoration:none}:host .dso-section-handle a:hover,:host .dso-section-handle a:focus{text-decoration:none}:host .dso-section-handle a:active{text-decoration:underline}:host .dso-section-handle .dso-status{font-weight:400;text-decoration:underline}:host .dso-section-handle>button,:host .dso-section-handle>a{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;font-family:Asap, sans-serif;font-size:1em;font-weight:600;line-height:1.375em;margin:0;padding:12px 16px 12px;text-align:start;width:100%;word-break:break-word}:host .dso-section-handle>button dso-icon,:host .dso-section-handle>a dso-icon{flex-shrink:0}:host .dso-section-handle>button dso-icon.dso-section-handle-chevron,:host .dso-section-handle>a dso-icon.dso-section-handle-chevron{transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transform:rotate(0)}:host .dso-section-handle>button>.dso-section-handle-addons:first-child,:host .dso-section-handle>button>dso-icon:first-child,:host .dso-section-handle>a>.dso-section-handle-addons:first-child,:host .dso-section-handle>a>dso-icon:first-child{margin-right:8px}:host .dso-section-handle>button>dso-icon:last-child,:host .dso-section-handle>a>dso-icon:last-child{margin-left:auto}:host .dso-section-handle>button>.dso-section-handle-addons:last-child,:host .dso-section-handle>a>.dso-section-handle-addons:last-child{margin-left:auto}:host .dso-section-handle>button>.dso-section-handle-addons:last-child dso-attachments-counter,:host .dso-section-handle>button>.dso-section-handle-addons:last-child dso-icon,:host .dso-section-handle>a>.dso-section-handle-addons:last-child dso-attachments-counter,:host .dso-section-handle>a>.dso-section-handle-addons:last-child dso-icon{margin-left:16px}:host([open]) .dso-section-body{position:inherit;visibility:inherit}:host([open]) .dso-section-handle>button .dso-section-handle-chevron:first-child,:host([open]) .dso-section-handle>a .dso-section-handle-chevron:first-child{transform:rotate(90deg)}:host([open]) .dso-section-handle>button .dso-section-handle-chevron:last-child,:host([open]) .dso-section-handle>a .dso-section-handle-chevron:last-child{transform:rotate(-180deg)}.dso-section-body{background-color:#fff;border-top:0;margin-top:-4px;overflow-y:hidden}.dso-section-body:not(.dso-animate-ready){position:absolute;visibility:hidden}.dso-section-body .dso-section-body-content{padding:20px 16px 16px}:host(.dso-accordion-default) .dso-section-handle{background-color:#fff;border:1px solid #8b4a6a;border-radius:4px}:host(.dso-accordion-default) .dso-section-handle a,:host(.dso-accordion-default) .dso-section-handle button{color:#8b4a6a}:host(.dso-accordion-default) .dso-section-handle a:hover,:host(.dso-accordion-default) .dso-section-handle a:active,:host(.dso-accordion-default) .dso-section-handle a.active,:host(.dso-accordion-default) .dso-section-handle button:hover,:host(.dso-accordion-default) .dso-section-handle button:active,:host(.dso-accordion-default) .dso-section-handle button.active{color:#8b4a6a}:host(.dso-accordion-default) .dso-section-body{border:1px solid #8b4a6a;border-radius:0 0 4px 4px}:host(.dso-accordion-default[open])>.dso-section-handle{background-color:#8b4a6a;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}:host(.dso-accordion-default[open])>.dso-section-handle a,:host(.dso-accordion-default[open])>.dso-section-handle button{color:#fff}:host(.dso-accordion-default[open])>.dso-section-handle a dso-attachments-counter,:host(.dso-accordion-default[open])>.dso-section-handle button dso-attachments-counter{--dso-attachments-counter-color:#fff;--dso-icon:var(--di-paperclip-wit)}:host(.dso-accordion-default.dso-nested-accordion[open]) .dso-section-body{background-color:#e5e5e5}:host(.dso-accordion-compact) .dso-section-handle{border-bottom:1px solid transparent;border-top:1px solid #ccc}:host(.dso-accordion-compact) .dso-section-handle a,:host(.dso-accordion-compact) .dso-section-handle button{color:#39870c;padding-bottom:11px;padding-left:0;padding-top:11px}:host(.dso-accordion-compact) .dso-section-handle a:hover,:host(.dso-accordion-compact) .dso-section-handle a:active,:host(.dso-accordion-compact) .dso-section-handle a.active,:host(.dso-accordion-compact) .dso-section-handle button:hover,:host(.dso-accordion-compact) .dso-section-handle button:active,:host(.dso-accordion-compact) .dso-section-handle button.active{color:#39870c}:host(.dso-accordion-compact) .dso-section-body .dso-section-body-content{padding-left:32px;padding-top:0;padding-right:0}:host(.dso-accordion-compact.dso-accordion-reverse-align) .dso-section-handle a,:host(.dso-accordion-compact.dso-accordion-reverse-align) .dso-section-handle button{padding-left:16px}:host(.dso-accordion-compact.dso-accordion-reverse-align) .dso-section-body .dso-section-body-content{padding-left:16px;padding-right:0}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle{background-color:transparent}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button{color:#39870c}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a:hover,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a:active,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a.active,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button:hover,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button:active,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button.active{color:#39870c}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a dso-attachments-counter,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button dso-attachments-counter{--dso-attachments-counter-color:#666;--dso-icon:var(--di-paperclip-grijs)}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-body{border-top:0}:host(.dso-accordion-compact.dso-nested-accordion[open])>.dso-section-body{padding-bottom:0}:host(.dso-accordion-compact.dso-nested-accordion[open])>.dso-section-body dso-accordion-section:last-child{border-bottom:0}:host(.dso-accordion-conclusion) .dso-section-handle{background-color:#f2f2f2;border:1px solid #f2f2f2}:host(.dso-accordion-conclusion) .dso-section-handle a,:host(.dso-accordion-conclusion) .dso-section-handle button{color:#191919}:host(.dso-accordion-conclusion) .dso-section-handle a:hover,:host(.dso-accordion-conclusion) .dso-section-handle a:active,:host(.dso-accordion-conclusion) .dso-section-handle a.active,:host(.dso-accordion-conclusion) .dso-section-handle button:hover,:host(.dso-accordion-conclusion) .dso-section-handle button:active,:host(.dso-accordion-conclusion) .dso-section-handle button.active{background-color:#e5e5e5;color:#191919}:host(.dso-accordion-conclusion) .dso-section-body{border:2px solid #f2f2f2}:host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion))>.dso-section-handle{background-color:#f2f2f2}:host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion))>.dso-section-handle a,:host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion))>.dso-section-handle button{color:#191919}:host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion))>.dso-section-handle a dso-attachments-counter,:host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion))>.dso-section-handle button dso-attachments-counter{--dso-attachments-counter-color:#666;--dso-icon:var(--di-paperclip-grijs)}:host(.dso-accordion-conclusion.dso-nested-accordion[open]){background-color:#fff}";
1371
+ const accordionSectionCss = "*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}:host{display:block}:host .dso-section-handle{font-size:1em;font-weight:600;line-height:1.375em;margin:0;position:relative}:host .dso-section-handle>a:active{text-decoration:none}:host .dso-section-handle a{text-decoration:none}:host .dso-section-handle a:hover,:host .dso-section-handle a:focus{text-decoration:none}:host .dso-section-handle a:active{text-decoration:underline}:host .dso-section-handle .dso-status{font-weight:400;text-decoration:underline}:host .dso-section-handle>button,:host .dso-section-handle>a{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;font-family:Asap, sans-serif;font-size:1em;font-weight:600;line-height:1.375em;margin:0;padding:12px 16px 12px;text-align:start;width:100%;word-break:break-word}:host .dso-section-handle>button dso-icon,:host .dso-section-handle>a dso-icon{flex-shrink:0}:host .dso-section-handle>button dso-icon.dso-section-handle-chevron,:host .dso-section-handle>a dso-icon.dso-section-handle-chevron{transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transform:rotate(0)}:host .dso-section-handle>button>.dso-section-handle-addons:first-child,:host .dso-section-handle>button>dso-icon:first-child,:host .dso-section-handle>a>.dso-section-handle-addons:first-child,:host .dso-section-handle>a>dso-icon:first-child{margin-right:8px}:host .dso-section-handle>button>dso-icon:last-child,:host .dso-section-handle>a>dso-icon:last-child{margin-left:auto}:host .dso-section-handle>button>.dso-section-handle-addons:last-child,:host .dso-section-handle>a>.dso-section-handle-addons:last-child{margin-left:auto}:host .dso-section-handle>button>.dso-section-handle-addons:last-child dso-attachments-counter,:host .dso-section-handle>button>.dso-section-handle-addons:last-child dso-icon,:host .dso-section-handle>a>.dso-section-handle-addons:last-child dso-attachments-counter,:host .dso-section-handle>a>.dso-section-handle-addons:last-child dso-icon{margin-left:16px}:host([open]) .dso-section-body{position:inherit;visibility:inherit}:host([open]) .dso-section-handle>button .dso-section-handle-chevron:first-child,:host([open]) .dso-section-handle>a .dso-section-handle-chevron:first-child{transform:rotate(90deg)}:host([open]) .dso-section-handle>button .dso-section-handle-chevron:last-child,:host([open]) .dso-section-handle>a .dso-section-handle-chevron:last-child{transform:rotate(-180deg)}.dso-section-body{background-color:#fff;border-top:0;margin-top:-4px;overflow-y:hidden}.dso-section-body:not(.dso-animate-ready){position:absolute;visibility:hidden}.dso-section-body .dso-section-body-content{padding:20px 16px 16px}:host(.dso-accordion-default) .dso-section-handle{background-color:#fff;border:1px solid #8b4a6a;border-radius:4px}:host(.dso-accordion-default) .dso-section-handle a,:host(.dso-accordion-default) .dso-section-handle button{color:#8b4a6a}:host(.dso-accordion-default) .dso-section-handle a:hover,:host(.dso-accordion-default) .dso-section-handle a:active,:host(.dso-accordion-default) .dso-section-handle a.active,:host(.dso-accordion-default) .dso-section-handle button:hover,:host(.dso-accordion-default) .dso-section-handle button:active,:host(.dso-accordion-default) .dso-section-handle button.active{color:#8b4a6a}:host(.dso-accordion-default) .dso-section-body{border:1px solid #8b4a6a;border-radius:0 0 4px 4px}:host(.dso-accordion-default[open])>.dso-section-handle{background-color:#8b4a6a;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}:host(.dso-accordion-default[open])>.dso-section-handle a,:host(.dso-accordion-default[open])>.dso-section-handle button{color:#fff}:host(.dso-accordion-default[open])>.dso-section-handle a dso-attachments-counter,:host(.dso-accordion-default[open])>.dso-section-handle button dso-attachments-counter{--dso-attachments-counter-color:#fff;--dso-icon:var(--di-paperclip-wit)}:host(.dso-accordion-default.dso-nested-accordion[open]) .dso-section-body{background-color:#e5e5e5}:host(.dso-accordion-compact) .dso-section-handle{border-bottom:1px solid transparent;border-top:1px solid #ccc}:host(.dso-accordion-compact) .dso-section-handle a,:host(.dso-accordion-compact) .dso-section-handle button{color:#39870c;padding-bottom:11px;padding-left:0;padding-top:11px}:host(.dso-accordion-compact) .dso-section-handle a:hover,:host(.dso-accordion-compact) .dso-section-handle a:active,:host(.dso-accordion-compact) .dso-section-handle a.active,:host(.dso-accordion-compact) .dso-section-handle button:hover,:host(.dso-accordion-compact) .dso-section-handle button:active,:host(.dso-accordion-compact) .dso-section-handle button.active{color:#39870c}:host(.dso-accordion-compact) .dso-section-body .dso-section-body-content{padding-left:32px;padding-top:0;padding-right:0}:host(.dso-accordion-compact.dso-accordion-reverse-align) .dso-section-handle a,:host(.dso-accordion-compact.dso-accordion-reverse-align) .dso-section-handle button{padding-left:16px}:host(.dso-accordion-compact.dso-accordion-reverse-align) .dso-section-body .dso-section-body-content{padding-left:16px;padding-right:0}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle{background-color:transparent}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button{color:#39870c}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a:hover,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a:active,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a.active,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button:hover,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button:active,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button.active{color:#39870c}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle a dso-attachments-counter,:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-handle button dso-attachments-counter{--dso-attachments-counter-color:#666;--dso-icon:var(--di-paperclip-grijs)}:host(.dso-accordion-compact[open]:not(.dso-nested-accordion))>.dso-section-body{border-top:0}:host(.dso-accordion-compact.dso-nested-accordion[open])>.dso-section-body{padding-bottom:0}:host(.dso-accordion-compact.dso-nested-accordion[open])>.dso-section-body dso-accordion-section:last-child{border-bottom:0}:host(.dso-accordion-conclusion) .dso-section-handle{background-color:#f2f2f2;border:1px solid #f2f2f2}:host(.dso-accordion-conclusion) .dso-section-handle a,:host(.dso-accordion-conclusion) .dso-section-handle button{color:#000}:host(.dso-accordion-conclusion) .dso-section-handle a:hover,:host(.dso-accordion-conclusion) .dso-section-handle a:active,:host(.dso-accordion-conclusion) .dso-section-handle a.active,:host(.dso-accordion-conclusion) .dso-section-handle button:hover,:host(.dso-accordion-conclusion) .dso-section-handle button:active,:host(.dso-accordion-conclusion) .dso-section-handle button.active{background-color:#e5e5e5}:host(.dso-accordion-conclusion) .dso-section-handle a dso-attachments-counter,:host(.dso-accordion-conclusion) .dso-section-handle button dso-attachments-counter{--dso-attachments-counter-color:#000;--dso-icon:var(--di-paperclip-zwart)}:host(.dso-accordion-conclusion) .dso-section-body{border:2px solid #f2f2f2}:host(.dso-accordion-conclusion[open]:not(.dso-nested-accordion))>.dso-section-handle{background-color:#f2f2f2}:host(.dso-accordion-conclusion.dso-nested-accordion[open]){background-color:#fff}";
1372
1372
 
1373
1373
  const AccordionSection = class {
1374
1374
  constructor(hostRef) {
@@ -1,195 +1,5 @@
1
- import { g as getRenderingRef, f as forceUpdate, r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-1a4dda48.js';
2
-
3
- const appendToMap = (map, propName, value) => {
4
- const items = map.get(propName);
5
- if (!items) {
6
- map.set(propName, [value]);
7
- }
8
- else if (!items.includes(value)) {
9
- items.push(value);
10
- }
11
- };
12
- const debounce = (fn, ms) => {
13
- let timeoutId;
14
- return (...args) => {
15
- if (timeoutId) {
16
- clearTimeout(timeoutId);
17
- }
18
- timeoutId = setTimeout(() => {
19
- timeoutId = 0;
20
- fn(...args);
21
- }, ms);
22
- };
23
- };
24
-
25
- /**
26
- * Check if a possible element isConnected.
27
- * The property might not be there, so we check for it.
28
- *
29
- * We want it to return true if isConnected is not a property,
30
- * otherwise we would remove these elements and would not update.
31
- *
32
- * Better leak in Edge than to be useless.
33
- */
34
- const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
35
- const cleanupElements = debounce((map) => {
36
- for (let key of map.keys()) {
37
- map.set(key, map.get(key).filter(isConnected));
38
- }
39
- }, 2000);
40
- const stencilSubscription = () => {
41
- if (typeof getRenderingRef !== 'function') {
42
- // If we are not in a stencil project, we do nothing.
43
- // This function is not really exported by @stencil/core.
44
- return {};
45
- }
46
- const elmsToUpdate = new Map();
47
- return {
48
- dispose: () => elmsToUpdate.clear(),
49
- get: (propName) => {
50
- const elm = getRenderingRef();
51
- if (elm) {
52
- appendToMap(elmsToUpdate, propName, elm);
53
- }
54
- },
55
- set: (propName) => {
56
- const elements = elmsToUpdate.get(propName);
57
- if (elements) {
58
- elmsToUpdate.set(propName, elements.filter(forceUpdate));
59
- }
60
- cleanupElements(elmsToUpdate);
61
- },
62
- reset: () => {
63
- elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
64
- cleanupElements(elmsToUpdate);
65
- },
66
- };
67
- };
68
-
69
- const unwrap = (val) => (typeof val === 'function' ? val() : val);
70
- const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
71
- const unwrappedState = unwrap(defaultState);
72
- let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
73
- const handlers = {
74
- dispose: [],
75
- get: [],
76
- set: [],
77
- reset: [],
78
- };
79
- const reset = () => {
80
- var _a;
81
- // When resetting the state, the default state may be a function - unwrap it to invoke it.
82
- // otherwise, the state won't be properly reset
83
- states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
84
- handlers.reset.forEach((cb) => cb());
85
- };
86
- const dispose = () => {
87
- // Call first dispose as resetting the state would
88
- // cause less updates ;)
89
- handlers.dispose.forEach((cb) => cb());
90
- reset();
91
- };
92
- const get = (propName) => {
93
- handlers.get.forEach((cb) => cb(propName));
94
- return states.get(propName);
95
- };
96
- const set = (propName, value) => {
97
- const oldValue = states.get(propName);
98
- if (shouldUpdate(value, oldValue, propName)) {
99
- states.set(propName, value);
100
- handlers.set.forEach((cb) => cb(propName, value, oldValue));
101
- }
102
- };
103
- const state = (typeof Proxy === 'undefined'
104
- ? {}
105
- : new Proxy(unwrappedState, {
106
- get(_, propName) {
107
- return get(propName);
108
- },
109
- ownKeys(_) {
110
- return Array.from(states.keys());
111
- },
112
- getOwnPropertyDescriptor() {
113
- return {
114
- enumerable: true,
115
- configurable: true,
116
- };
117
- },
118
- has(_, propName) {
119
- return states.has(propName);
120
- },
121
- set(_, propName, value) {
122
- set(propName, value);
123
- return true;
124
- },
125
- }));
126
- const on = (eventName, callback) => {
127
- handlers[eventName].push(callback);
128
- return () => {
129
- removeFromArray(handlers[eventName], callback);
130
- };
131
- };
132
- const onChange = (propName, cb) => {
133
- const unSet = on('set', (key, newValue) => {
134
- if (key === propName) {
135
- cb(newValue);
136
- }
137
- });
138
- // We need to unwrap the defaultState because it might be a function.
139
- // Otherwise we might not be sending the right reset value.
140
- const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
141
- return () => {
142
- unSet();
143
- unReset();
144
- };
145
- };
146
- const use = (...subscriptions) => {
147
- const unsubs = subscriptions.reduce((unsubs, subscription) => {
148
- if (subscription.set) {
149
- unsubs.push(on('set', subscription.set));
150
- }
151
- if (subscription.get) {
152
- unsubs.push(on('get', subscription.get));
153
- }
154
- if (subscription.reset) {
155
- unsubs.push(on('reset', subscription.reset));
156
- }
157
- if (subscription.dispose) {
158
- unsubs.push(on('dispose', subscription.dispose));
159
- }
160
- return unsubs;
161
- }, []);
162
- return () => unsubs.forEach((unsub) => unsub());
163
- };
164
- const forceUpdate = (key) => {
165
- const oldValue = states.get(key);
166
- handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
167
- };
168
- return {
169
- state,
170
- get,
171
- set,
172
- on,
173
- onChange,
174
- use,
175
- dispose,
176
- reset,
177
- forceUpdate,
178
- };
179
- };
180
- const removeFromArray = (array, item) => {
181
- const index = array.indexOf(item);
182
- if (index >= 0) {
183
- array[index] = array[array.length - 1];
184
- array.length--;
185
- }
186
- };
187
-
188
- const createStore = (defaultState, shouldUpdate) => {
189
- const map = createObservableMap(defaultState, shouldUpdate);
190
- map.use(stencilSubscription());
191
- return map;
192
- };
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ac5a22a3.js';
2
+ import { c as createStore } from './index-d6ffb688.js';
193
3
 
194
4
  const accordionCss = ":host{display:block}*,*::after,*::before{box-sizing:border-box}";
195
5
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h } from './index-1a4dda48.js';
1
+ import { r as registerInstance, h } from './index-ac5a22a3.js';
2
2
  import { c as clsx } from './clsx.m-25174a58.js';
3
3
 
4
- const alertCss = ":host{display:block}:host(:not(:first-child)){margin-top:24px}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.alert{border:1px solid transparent;line-height:1.5;margin-bottom:24px;min-height:64px;position:relative}@media screen and (min-width: 481px){.alert{padding:19px 16px 19px 63px}}@media screen and (max-width: 480px){.alert{padding:63px 16px 16px}}.alert:not(:first-child){margin-top:24px}.alert.alert-success{color:#191919;background-color:#e4f1d4;border-color:#e4f1d4}.alert.alert-error{color:#191919;background-color:#f5d8dc;border-color:#f5d8dc}.alert.alert-warning{color:#191919;background-color:#f8f6cc;border-color:#f8f6cc}.alert.alert-info{color:#191919;background-color:#e1ecf7;border-color:#e1ecf7}.alert dso-icon{left:15px;position:absolute;top:15px;height:32px;width:32px}";
4
+ const alertCss = ":host{display:block}:host(:not(:first-child)){margin-top:24px}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.alert{border:1px solid transparent;line-height:1.5;margin-bottom:24px;min-height:64px;position:relative}@media screen and (min-width: 481px){.alert{padding:19px 16px 19px 63px}}@media screen and (max-width: 480px){.alert{padding:63px 16px 16px}}.alert:not(:first-child){margin-top:24px}.alert.alert-success{color:#000;background-color:#e4f1d4;border-color:#e4f1d4}.alert.alert-error{color:#000;background-color:#f5d8dc;border-color:#f5d8dc}.alert.alert-warning{color:#000;background-color:#f8f6cc;border-color:#f8f6cc}.alert.alert-info{color:#000;background-color:#e1ecf7;border-color:#e1ecf7}.alert dso-icon{left:15px;position:absolute;top:15px;height:32px;width:32px}";
5
5
 
6
6
  const Alert = class {
7
7
  constructor(hostRef) {
@@ -0,0 +1,21 @@
1
+ import { r as registerInstance, h } from './index-ac5a22a3.js';
2
+ import { A as AnnotationService } from './annotation.service-d0add3fc.js';
3
+ import './index-d6ffb688.js';
4
+
5
+ const annotationButtonCss = "dso-annotation-button{display:block}";
6
+
7
+ const AnnotationButton = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.identifier = undefined;
11
+ }
12
+ componentDidLoad() {
13
+ this.annotationOutput = document.querySelector(`dso-annotation-output[identifier='${this.identifier}']`);
14
+ }
15
+ render() {
16
+ return (h("button", { type: "button", class: "dso-tertiary", "aria-controls": this.identifier, "aria-expanded": AnnotationService.state[this.identifier] ? "true" : "false", onClick: (e) => { var _a; return (_a = this.annotationOutput) === null || _a === void 0 ? void 0 : _a.toggleAnnotation(e, this.identifier); } }, h("dso-icon", { icon: "label" }), h("span", { class: "sr-only" }, "Toelichting bekijken")));
17
+ }
18
+ };
19
+ AnnotationButton.style = annotationButtonCss;
20
+
21
+ export { AnnotationButton as dso_annotation_button };
@@ -0,0 +1,31 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-ac5a22a3.js';
2
+ import { A as AnnotationService } from './annotation.service-d0add3fc.js';
3
+ import './index-d6ffb688.js';
4
+
5
+ const annotationOutputCss = "*,*::after,*::before{box-sizing:border-box}dso-annotation-output{display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-annotation-header{align-items:center;background-color:#f2f2f2;clear:both;display:flex;margin-bottom:2px;margin-top:8px;padding-left:16px;padding-right:8px;padding-top:8px;padding-bottom:8px}.dso-annotation-header>*[slot=title]{color:#000;font-size:1.25rem;margin-bottom:0;margin-top:0}.dso-annotation-header>*:nth-child(2){margin-left:auto}dso-responsive-element[small] .dso-annotation-header,dso-responsive-element[medium] .dso-annotation-header{display:grid;row-gap:8px}dso-responsive-element[small] .dso-annotation-header *[slot=title],dso-responsive-element[medium] .dso-annotation-header *[slot=title]{grid-row:1;grid-column:1}dso-responsive-element[small] .dso-annotation-header *[slot=addons],dso-responsive-element[medium] .dso-annotation-header *[slot=addons]{grid-row:2;grid-column:1;margin-left:initial}dso-responsive-element[small] .dso-annotation-header .dso-annotation-close-button,dso-responsive-element[medium] .dso-annotation-header .dso-annotation-close-button{grid-row:1;grid-column:2;margin-left:8px;text-align:end}.dso-annotation-content{background-color:#f2f2f2;padding-left:16px;padding-right:8px;padding-top:8px;padding-bottom:8px}.dso-annotation-close-button{margin-left:32px}.dso-annotation-prefix{font-style:italic}";
6
+
7
+ const AnnotationOutput = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.dsoToggle = createEvent(this, "dsoToggle", 7);
11
+ this.identifier = undefined;
12
+ this.annotationPrefix = undefined;
13
+ }
14
+ async toggleAnnotation(e, identifier) {
15
+ AnnotationService.toggle(identifier);
16
+ this.dsoToggle.emit({
17
+ originalEvent: e,
18
+ open: AnnotationService.state[this.identifier],
19
+ });
20
+ }
21
+ toggleHandler(e) {
22
+ this.toggleAnnotation(e, this.identifier);
23
+ }
24
+ render() {
25
+ const expandableProperties = AnnotationService.state[this.identifier] ? { open: true } : {};
26
+ return (h("dso-responsive-element", null, h("dso-expandable", Object.assign({ id: this.identifier }, expandableProperties), this.annotationPrefix && h("span", { class: "dso-annotation-prefix" }, this.annotationPrefix), h("div", { class: "dso-annotation-header" }, h("slot", { name: "title" }), h("slot", { name: "addons" }), h("button", { type: "button", class: "dso-tertiary dso-annotation-close-button", onClick: (e) => this.toggleHandler(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Toelichting sluiten"))), h("div", { class: "dso-annotation-content" }, h("slot", null)))));
27
+ }
28
+ };
29
+ AnnotationOutput.style = annotationOutputCss;
30
+
31
+ export { AnnotationOutput as dso_annotation_output };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-1a4dda48.js';
1
+ import { r as registerInstance, h } from './index-ac5a22a3.js';
2
2
 
3
3
  const attachmentsCounterCss = ":host{display:inline-block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-attachments{color:var(--dso-attachments-counter-color, #666);display:inline-block;font-weight:400;text-decoration:none;white-space:nowrap}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement } from './index-1a4dda48.js';
1
+ import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-ac5a22a3.js';
2
2
  import { d as debounce_1 } from './index-f2bf58ce.js';
3
3
  import { v as v4 } from './v4-d398bde5.js';
4
4
 
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h } from './index-1a4dda48.js';
1
+ import { r as registerInstance, h } from './index-ac5a22a3.js';
2
2
  import { c as clsx } from './clsx.m-25174a58.js';
3
3
 
4
- const badgeCss = ":host{display:inline-block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-badge{background-color:#666;border:1px solid #666;border-radius:1em;color:#fff;display:inline-block;font-size:0.875em;line-height:1;min-width:1.5rem;padding:4px 8px;text-align:center}.dso-badge.badge-info{background-color:#6ca4d9;border-color:#6ca4d9;color:#191919}.dso-badge.badge-primary{background-color:#275937;border-color:#275937;color:#fff}.dso-badge.badge-success{background-color:#39870c;border-color:#39870c;color:#fff}.dso-badge.badge-warning{background-color:#dcd400;border-color:#dcd400;color:#191919}.dso-badge.badge-danger{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-error{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-outline{background-color:#fff;border-color:#191919;color:#191919}";
4
+ const badgeCss = ":host{display:inline-block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-badge{background-color:#666;border:1px solid #666;border-radius:1em;color:#fff;display:inline-block;font-size:0.875em;line-height:1;min-width:1.5rem;padding:4px 8px;text-align:center}.dso-badge.badge-info{background-color:#6ca4d9;border-color:#6ca4d9;color:#000}.dso-badge.badge-primary{background-color:#275937;border-color:#275937;color:#fff}.dso-badge.badge-success{background-color:#39870c;border-color:#39870c;color:#fff}.dso-badge.badge-warning{background-color:#dcd400;border-color:#dcd400;color:#000}.dso-badge.badge-danger{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-error{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-badge.badge-outline{background-color:#fff;border-color:#191919;color:#191919}.dso-badge.badge-attention{background-color:#8b4a6a;border-color:#8b4a6a;color:#fff}";
5
5
 
6
6
  const Badge = class {
7
7
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-1a4dda48.js';
1
+ import { r as registerInstance, h } from './index-ac5a22a3.js';
2
2
  import { c as clsx } from './clsx.m-25174a58.js';
3
3
 
4
4
  const bannerCss = ":host{display:block}*,*::after,*::before{box-sizing:border-box}.dso-banner{padding:16px 0;position:relative}";
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, F as Fragment } from './index-1a4dda48.js';
1
+ import { r as registerInstance, h, F as Fragment } from './index-ac5a22a3.js';
2
2
 
3
3
  const cardContainerCss = ":host .dso-card-list{padding-left:0;list-style:none;border-bottom:1px solid #ccc;margin-top:-1px}:host .dso-card-grid{display:grid;gap:32px;grid-template-columns:repeat(3, 1fr);grid-auto-rows:1fr}";
4
4
 
@@ -1,4 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-1a4dda48.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ac5a22a3.js';
2
+ import { c as clsx } from './clsx.m-25174a58.js';
2
3
  import { i as isModifiedEvent } from './is-modified-event-34370220.js';
3
4
 
4
5
  const isInteractiveElement = (element) => {
@@ -8,7 +9,7 @@ const isInteractiveElement = (element) => {
8
9
  element.tagName.startsWith("DSO-TOGGLETIP"));
9
10
  };
10
11
 
11
- const cardCss = ":host .dso-card-selectable,:host .dso-card-image{grid-row:span 2}*,*::after,*::before{box-sizing:border-box}:host{display:block}:host .dso-card-heading{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}@media screen and (max-width: 480px){:host .dso-card-heading{flex-wrap:wrap}}:host .dso-card-image{margin-right:8px}";
12
+ const cardCss = ":host .dso-card-selectable,:host .dso-card-image{grid-row:span 2}*,*::after,*::before{box-sizing:border-box}:host{display:block}:host .dso-card-heading{align-items:center;display:flex;margin-bottom:8px}@media screen and (max-width: 480px){:host .dso-card-heading{flex-wrap:wrap}}:host .dso-card-image{margin-right:8px}";
12
13
 
13
14
  const Card = class {
14
15
  constructor(hostRef) {
@@ -16,9 +17,10 @@ const Card = class {
16
17
  this.dsoCardClicked = createEvent(this, "dsoCardClicked", 7);
17
18
  this.isSelectable = false;
18
19
  this.hasImage = false;
20
+ this.clickable = true;
19
21
  }
20
22
  clickEventHandler(e) {
21
- if (!(e.target instanceof HTMLElement)) {
23
+ if (!(e.target instanceof HTMLElement) || !this.clickable) {
22
24
  return;
23
25
  }
24
26
  let element = e.target;
@@ -40,7 +42,7 @@ const Card = class {
40
42
  this.hasImage = this.host.querySelector("*[slot = 'image']") !== null;
41
43
  }
42
44
  render() {
43
- return (h(Host, { onClick: (e) => this.clickEventHandler(e) }, h("div", { class: "dso-card-selectable", hidden: !this.isSelectable }, h("slot", { name: "selectable" })), h("div", { class: "dso-card-image", hidden: !this.hasImage }, h("slot", { name: "image" })), h("div", { class: "dso-card-heading" }, h("slot", { name: "heading" }), h("slot", { name: "interactions" })), h("div", { class: "dso-card-content" }, h("slot", { name: "content" }))));
45
+ return (h(Host, { class: clsx({ "dso-not-clickable": !this.clickable }), onClick: (e) => this.clickEventHandler(e) }, h("div", { class: "dso-card-selectable", hidden: !this.isSelectable }, h("slot", { name: "selectable" })), h("div", { class: "dso-card-image", hidden: !this.hasImage }, h("slot", { name: "image" })), h("div", { class: "dso-card-heading" }, h("slot", { name: "heading" }), h("slot", { name: "interactions" })), h("div", { class: "dso-card-content" }, h("slot", { name: "content" }))));
44
46
  }
45
47
  get host() { return getElement(this); }
46
48
  };
@@ -1,4 +1,4 @@
1
- import { h, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-1a4dda48.js';
1
+ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-ac5a22a3.js';
2
2
  import { c as createIdentifier } from './create-identifier-51ee50c4.js';
3
3
 
4
4
  var DaysOfWeek;
@@ -1,8 +1,9 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-1a4dda48.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-ac5a22a3.js';
2
2
  import { t as tabbable } from './index.esm-8fc07ad8.js';
3
3
  import { v as v4 } from './v4-d398bde5.js';
4
+ import { c as createPopper } from './popper-467f7841.js';
4
5
 
5
- const dropdownMenuCss = ":host(:focus){outline:none}:host{display:inline-block;position:relative}";
6
+ const dropdownMenuCss = ":host(:focus){outline:none}:host{display:inline-block}";
6
7
 
7
8
  const DropdownMenu = class {
8
9
  constructor(hostRef) {
@@ -43,6 +44,15 @@ const DropdownMenu = class {
43
44
  this.open = false;
44
45
  this.dropdownAlign = "left";
45
46
  this.checkable = false;
47
+ this.boundary = undefined;
48
+ }
49
+ watchPosition() {
50
+ if (!this.popper) {
51
+ return;
52
+ }
53
+ this.popper.setOptions({
54
+ placement: this.dropdownAlign === "right" ? "bottom-end" : "bottom-start",
55
+ });
46
56
  }
47
57
  get button() {
48
58
  const button = this.host.querySelector('button[slot="toggle"]');
@@ -75,8 +85,35 @@ const DropdownMenu = class {
75
85
  li.setAttribute("role", "none");
76
86
  }
77
87
  }
88
+ if (this.popper) {
89
+ return;
90
+ }
91
+ const dropdownOptions = this.host.querySelector(".dso-dropdown-options");
92
+ if (!(dropdownOptions instanceof HTMLElement)) {
93
+ throw new Error("dropdown options element is not instanceof HTMLElement");
94
+ }
95
+ this.popper = createPopper(this.button, dropdownOptions, {
96
+ placement: this.dropdownAlign === "right" ? "bottom-end" : "bottom-start",
97
+ modifiers: [
98
+ {
99
+ name: "offset",
100
+ options: {
101
+ offset: [0, 2], // 2px margin between button and options
102
+ },
103
+ },
104
+ {
105
+ name: "preventOverflow",
106
+ options: {
107
+ boundary: this.boundary ? document.querySelector(this.boundary) : null,
108
+ },
109
+ enabled: this.boundary !== undefined,
110
+ },
111
+ ],
112
+ });
78
113
  }
79
114
  componentDidRender() {
115
+ var _a;
116
+ (_a = this.popper) === null || _a === void 0 ? void 0 : _a.update();
80
117
  for (const li of Array.from(this.host.getElementsByTagName("li"))) {
81
118
  for (const tab of tabbable(li)) {
82
119
  tab.setAttribute("role", this.checkable ? "menuitemradio" : "menuitem");
@@ -97,6 +134,10 @@ const DropdownMenu = class {
97
134
  }
98
135
  });
99
136
  }
137
+ disconnectedCallback() {
138
+ var _a;
139
+ (_a = this.popper) === null || _a === void 0 ? void 0 : _a.destroy();
140
+ }
100
141
  getActiveElement(root = document) {
101
142
  const activeEl = root.activeElement;
102
143
  if (!activeEl) {
@@ -123,6 +164,9 @@ const DropdownMenu = class {
123
164
  return (h(Host, { onFocusout: this.focusOutListener, tabindex: this.open ? "-1" : undefined }, h("slot", { name: "toggle" }), h("div", { hidden: !this.open }, h("slot", null))));
124
165
  }
125
166
  get host() { return getElement(this); }
167
+ static get watchers() { return {
168
+ "dropdownAlign": ["watchPosition"]
169
+ }; }
126
170
  };
127
171
  DropdownMenu.style = dropdownMenuCss;
128
172
 
@@ -0,0 +1,43 @@
1
+ import { h, r as registerInstance, c as createEvent, F as Fragment } from './index-ac5a22a3.js';
2
+ import { c as clsx } from './clsx.m-25174a58.js';
3
+ import { v as v4 } from './v4-d398bde5.js';
4
+
5
+ const Heading = ({ heading, ref, className }, children) => {
6
+ switch (heading) {
7
+ default:
8
+ case "h2":
9
+ return (h("h2", { ref: ref, class: className }, children));
10
+ case "h3":
11
+ return (h("h3", { ref: ref, class: className }, children));
12
+ case "h4":
13
+ return (h("h4", { ref: ref, class: className }, children));
14
+ case "h5":
15
+ return (h("h5", { ref: ref, class: className }, children));
16
+ case "h6":
17
+ return (h("h6", { ref: ref, class: className }, children));
18
+ }
19
+ };
20
+
21
+ const expandableHeadingCss = "h1,.h1,h2,.h2,h3,.h3{margin-bottom:16px;margin-top:24px}h1,.h1{line-height:1.25}h1{color:#275937;font-size:2rem;font-weight:700}h2,.h2{line-height:1.33}h2{color:#275937;font-size:1.5rem;font-weight:700}h3,.h3{line-height:1.2}h3{color:#275937;font-size:1.25rem;font-weight:600}h4,.h4,h5,.h5,h6,.h6{margin-bottom:16px;margin-top:12px}h4,.h4{line-height:1.5}h4{color:#275937;font-size:1rem;font-weight:600}h5,.h5{line-height:1.5}h5{color:#191919;font-size:1rem;font-weight:600}h6,.h6{line-height:1.5}:host{display:block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.expandable-heading{align-items:center;display:flex;margin-bottom:8px;margin-top:8px}.expandable-heading h2,.expandable-heading h3,.expandable-heading h4,.expandable-heading h5,.expandable-heading h6{font-size:1rem;margin-bottom:0;margin-right:8px;margin-top:0}.expandable-heading button{align-items:flex-start;cursor:pointer;background-color:transparent;border:0;color:inherit;display:flex;line-height:24px;font-size:inherit;font-weight:inherit;padding:0;text-align:left}.expandable-heading button>dso-icon{flex-shrink:0}.expandable-heading.dso-expandable-heading-black button{color:#000}dso-expandable{padding-left:24px}.addons-end{display:inline-block;margin-left:auto}";
22
+
23
+ const ExpandableHeading = class {
24
+ constructor(hostRef) {
25
+ registerInstance(this, hostRef);
26
+ this.dsoToggle = createEvent(this, "dsoToggle", 7);
27
+ this.identifier = v4();
28
+ this.open = undefined;
29
+ this.heading = "h2";
30
+ this.color = "default";
31
+ }
32
+ toggle(e) {
33
+ this.open = !this.open;
34
+ this.dsoToggle.emit({ originalEvent: e, open: this.open });
35
+ }
36
+ render() {
37
+ const expandableProperties = this.open ? { open: true } : {};
38
+ return (h(Fragment, null, h("div", { class: clsx("expandable-heading", this.color === "black" ? "dso-expandable-heading-black" : "") }, h(Heading, { heading: this.heading }, h("button", { type: "button", "aria-expanded": this.open ? "true" : "false", "aria-controls": this.identifier, onClick: (e) => this.toggle(e) }, h("dso-icon", { icon: this.open ? "chevron-down" : "chevron-right" }), h("slot", { name: "title" }))), h("slot", { name: "addons-start" }), h("div", { class: "addons-end" }, h("slot", { name: "addons-end" }))), h("dso-expandable", Object.assign({ id: this.identifier }, expandableProperties), h("slot", null))));
39
+ }
40
+ };
41
+ ExpandableHeading.style = expandableHeadingCss;
42
+
43
+ export { ExpandableHeading as dso_expandable_heading };
@@ -0,0 +1,16 @@
1
+ import { r as registerInstance, h, H as Host } from './index-ac5a22a3.js';
2
+
3
+ const expandableCss = ":host{display:none}:host([open]){display:block}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
4
+
5
+ const Expandable = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.open = undefined;
9
+ }
10
+ render() {
11
+ return (h(Host, { "aria-hidden": this.open ? "false" : "true" }, h("slot", null)));
12
+ }
13
+ };
14
+ Expandable.style = expandableCss;
15
+
16
+ export { Expandable as dso_expandable };