@dso-toolkit/core 97.1.1 → 99.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.
- package/dist/bundle/dso-accordion-section.js +15 -14
- package/dist/bundle/dso-accordion.js +2 -276
- package/dist/bundle/dso-action-list-item.js +5 -5
- package/dist/bundle/dso-action-list.js +3 -3
- package/dist/bundle/dso-advanced-select.js +112 -235
- package/dist/bundle/dso-alert.js +1 -1
- package/dist/bundle/dso-annotation-activiteit.js +11 -11
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +10 -10
- package/dist/bundle/dso-annotation-kaart.js +7 -7
- package/dist/bundle/dso-annotation-locatie.js +1 -1
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +11 -11
- package/dist/bundle/dso-attachments-counter.js +1 -1
- package/dist/bundle/dso-autosuggest.js +27 -18
- package/dist/bundle/dso-badge.js +1 -1
- package/dist/bundle/dso-banner.js +5 -5
- package/dist/bundle/dso-button-group.js +1 -1
- package/dist/bundle/dso-card-container.js +2 -2
- package/dist/bundle/dso-card.js +5 -5
- package/dist/bundle/dso-contact-information.js +3 -3
- package/dist/bundle/dso-cursor-tooltip.js +3 -3
- package/dist/bundle/dso-date-picker.js +2 -2
- package/dist/bundle/dso-document-card.js +4 -4
- package/dist/bundle/dso-document-component.js +1 -1
- package/dist/bundle/dso-dropdown-menu-group.d.ts +11 -0
- package/dist/bundle/dso-dropdown-menu-group.js +51 -0
- package/dist/bundle/dso-dropdown-menu-item.d.ts +11 -0
- package/dist/bundle/dso-dropdown-menu-item.js +70 -0
- package/dist/bundle/dso-dropdown-menu.js +97 -108
- package/dist/bundle/dso-expandable.js +1 -1
- package/dist/bundle/dso-header.js +24 -7
- package/dist/bundle/dso-highlight-box.js +3 -3
- package/dist/bundle/dso-history-item.js +3 -3
- package/dist/bundle/dso-icon-button.js +1 -1
- package/dist/bundle/dso-icon.js +1 -1
- package/dist/bundle/dso-image-overlay.js +1 -1
- package/dist/bundle/dso-info-button.js +1 -1
- package/dist/bundle/dso-info.js +1 -1
- package/dist/bundle/dso-input-range.js +3 -3
- package/dist/bundle/dso-label.js +1 -1
- package/dist/bundle/dso-legend-group.js +5 -5
- package/dist/bundle/dso-legend-item.js +8 -8
- package/dist/bundle/dso-legend.js +7 -7
- package/dist/bundle/dso-list-button.js +9 -9
- package/dist/bundle/dso-logo.js +2 -2
- package/dist/bundle/dso-map-base-layers.js +10 -10
- package/dist/bundle/dso-map-controls.js +8 -8
- package/dist/bundle/dso-map-layer-object.js +5 -5
- package/dist/bundle/dso-map-layer.js +5 -5
- package/dist/bundle/dso-map-message.js +5 -5
- package/dist/bundle/dso-map-overlays.js +10 -10
- package/dist/bundle/dso-mark-bar.js +4 -4
- package/dist/bundle/dso-modal.js +1 -1
- package/dist/bundle/dso-onboarding-tip.js +6 -6
- package/dist/bundle/dso-ozon-content-toggletip.js +1 -1
- package/dist/bundle/dso-ozon-content.js +1 -1
- package/dist/bundle/dso-pagination.js +4 -4
- package/dist/bundle/dso-panel.js +1 -1
- package/dist/bundle/dso-plekinfo-card.js +5 -5
- package/dist/bundle/dso-progress-indicator.js +1 -1
- package/dist/bundle/dso-project-item.js +6 -6
- package/dist/bundle/dso-renvooi.js +1 -1
- package/dist/bundle/dso-responsive-element.js +1 -1
- package/dist/bundle/dso-scrollable.js +1 -1
- package/dist/bundle/dso-segmented-button.js +2 -2
- package/dist/bundle/dso-selectable.js +1 -1
- package/dist/bundle/dso-skiplink.js +4 -4
- package/dist/bundle/dso-slide-toggle.js +1 -1
- package/dist/bundle/dso-survey-rating.js +7 -7
- package/dist/bundle/dso-tab.js +1 -1
- package/dist/bundle/dso-table.js +1 -1
- package/dist/bundle/dso-tabs.js +2 -2
- package/dist/bundle/dso-tijdreis-banner.js +4 -4
- package/dist/bundle/dso-tooltip.js +3 -3
- package/dist/bundle/dso-tree-view.js +5 -5
- package/dist/bundle/dso-viewer-grid.js +4 -4
- package/dist/bundle/dsot-document-component-demo.js +19 -19
- package/dist/bundle/index.js +6 -2
- package/dist/bundle/p--cUlQ7cz.js +48 -0
- package/dist/bundle/{p-CA57bAyP.js → p-1_UAZ1k8.js} +3 -3
- package/dist/bundle/p-B2dzHUld.js +156 -0
- package/dist/{esm/index.esm-PsHl6ZhV.js → bundle/p-B7w6tF4K.js} +6 -4
- package/dist/bundle/{p-CK3_k8jD.js → p-BF0_OXTe.js} +13 -6
- package/dist/bundle/{p-C7VfGukK.js → p-BHLdB8zD.js} +3 -3
- package/dist/bundle/p-BLJDfYn6.js +341 -0
- package/dist/bundle/{p-DaRtnn5i.js → p-BO8XMsvv.js} +1 -1
- package/dist/bundle/{p-jon8ZgCu.js → p-BitwYWnu.js} +19 -5
- package/dist/bundle/p-BquLCiqR.js +1209 -0
- package/dist/bundle/{p-rHiKziuf.js → p-ByYAhz9G.js} +1 -1
- package/dist/bundle/{p-DtNjY6f6.js → p-CCT77M-p.js} +6 -6
- package/dist/bundle/{p-DwBHVuoZ.js → p-CUWMAyh7.js} +21 -9
- package/dist/bundle/p-CWeAud7S.js +122 -0
- package/dist/bundle/p-D-B4iPrZ.js +79 -0
- package/dist/bundle/p-DKxBVCbw.js +148 -0
- package/dist/bundle/{p-D1ciWwSo.js → p-DMMY0U7e.js} +2 -2
- package/dist/bundle/p-DTsQJazx.js +75 -0
- package/dist/bundle/p-DVuh3xxM.js +278 -0
- package/dist/bundle/{p-BIShp3sw.js → p-Di7uBIhp.js} +1 -1
- package/dist/bundle/{p-WEiXvjCu.js → p-DiFgvE1s.js} +1 -1
- package/dist/bundle/{p-HMxVj4ab.js → p-DkfyXO1_.js} +3 -3
- package/dist/bundle/{p-CcFEBE0l.js → p-DllcFyEo.js} +4 -4
- package/dist/bundle/{p-DYFOhFhk.js → p-Dp-4Dh4d.js} +3 -3
- package/dist/bundle/p-Dv5uebcx.js +69 -0
- package/dist/bundle/p-J9MFut03.js +166 -0
- package/dist/bundle/p-P8bro__O.js +124 -0
- package/dist/bundle/p-RWOdH6CR.js +189 -0
- package/dist/bundle/{p-D33HZm70.js → p-SOcTMGt_.js} +8 -8
- package/dist/bundle/{p-Bh_AjQ7z.js → p-SQkUa7w3.js} +7 -7
- package/dist/bundle/{p-DgKvq-q9.js → p-_Cugwqbf.js} +1 -1
- package/dist/bundle/{p-CgXakBQA.js → p-_TVwcL7Y.js} +1 -1
- package/dist/bundle/p-qW59SYSp.js +83 -0
- package/dist/bundle/{p-ChO20JhC.js → p-reu-eaRq.js} +4 -4
- package/dist/cjs/{annotation-body-DorcBRdu.js → annotation-body-CiWbOM67.js} +1 -1
- package/dist/cjs/{annotation-list-renvooi-values-DY_nt_wa.js → annotation-list-renvooi-values-BeNFLgnO.js} +1 -1
- package/dist/cjs/{annotation-watcher-DuftgGaK.js → annotation-watcher-5j3WUBEz.js} +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js +8 -7
- package/dist/cjs/dso-accordion.cjs.entry.js +3 -277
- package/dist/cjs/dso-action-list-item.cjs.entry.js +4 -4
- package/dist/cjs/dso-action-list.cjs.entry.js +3 -3
- package/dist/cjs/dso-advanced-select.cjs.entry.js +107 -230
- package/dist/cjs/dso-alert_7.cjs.entry.js +72 -31
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +6 -6
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +5 -5
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js +4 -4
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +11 -11
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +6 -6
- package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +4 -4
- package/dist/cjs/dso-autosuggest.cjs.entry.js +24 -15
- package/dist/cjs/dso-banner.cjs.entry.js +4 -4
- package/dist/cjs/dso-button-group.cjs.entry.js +3 -3
- package/dist/cjs/dso-card-container.cjs.entry.js +2 -2
- package/dist/cjs/dso-card.cjs.entry.js +4 -4
- package/dist/cjs/dso-contact-information.cjs.entry.js +3 -3
- package/dist/cjs/dso-cursor-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/dso-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/dso-document-card.cjs.entry.js +3 -3
- package/dist/cjs/dso-dropdown-menu-group.cjs.entry.js +31 -0
- package/dist/cjs/dso-dropdown-menu-item.cjs.entry.js +41 -0
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +84 -102
- package/dist/cjs/dso-header.cjs.entry.js +23 -6
- package/dist/cjs/dso-highlight-box.cjs.entry.js +3 -3
- package/dist/cjs/dso-history-item.cjs.entry.js +2 -2
- package/dist/cjs/dso-icon-button.cjs.entry.js +97 -0
- package/dist/cjs/{dso-icon_2.cjs.entry.js → dso-icon.cjs.entry.js} +2 -95
- package/dist/cjs/dso-info_3.cjs.entry.js +8 -8
- package/dist/cjs/dso-input-range.cjs.entry.js +3 -3
- package/dist/cjs/dso-label_3.cjs.entry.js +8 -8
- package/dist/cjs/dso-legend-group.cjs.entry.js +3 -3
- package/dist/cjs/dso-legend-item.cjs.entry.js +3 -3
- package/dist/cjs/dso-legend.cjs.entry.js +4 -4
- package/dist/cjs/dso-list-button.cjs.entry.js +3 -3
- package/dist/cjs/dso-logo.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +4 -4
- package/dist/cjs/dso-map-controls.cjs.entry.js +4 -4
- package/dist/cjs/dso-map-layer-object.cjs.entry.js +4 -4
- package/dist/cjs/dso-map-layer.cjs.entry.js +4 -4
- package/dist/cjs/dso-map-message.cjs.entry.js +4 -4
- package/dist/cjs/dso-map-overlays.cjs.entry.js +4 -4
- package/dist/cjs/dso-mark-bar.cjs.entry.js +2 -2
- package/dist/cjs/dso-modal.cjs.entry.js +5 -5
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js +3 -3
- package/dist/cjs/dso-pagination.cjs.entry.js +2 -2
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js +4 -4
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/dso-project-item.cjs.entry.js +3 -3
- package/dist/cjs/dso-responsive-element.cjs.entry.js +19 -5
- package/dist/cjs/dso-scrollable.cjs.entry.js +4 -4
- package/dist/cjs/dso-segmented-button.cjs.entry.js +2 -2
- package/dist/cjs/dso-skiplink.cjs.entry.js +3 -3
- package/dist/cjs/dso-survey-rating.cjs.entry.js +4 -4
- package/dist/cjs/dso-tab.cjs.entry.js +1 -1
- package/dist/cjs/dso-tabs.cjs.entry.js +2 -2
- package/dist/cjs/dso-tijdreis-banner.cjs.entry.js +3 -3
- package/dist/cjs/dso-toolkit.cjs.js +3 -3
- package/dist/cjs/dso-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/dso-tree-view.cjs.entry.js +3 -3
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +4 -4
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +2 -2
- package/dist/cjs/{i18n-5XH7oHkT.js → i18n-DK8kVhhe.js} +21 -9
- package/dist/cjs/index-D8SsuyUx.js +280 -0
- package/dist/cjs/{index-BOI4CviS.js → index-fOjUpMJG.js} +1 -1
- package/dist/cjs/{index.esm-C3mvhVxy.js → index.esm-ZWBcSumL.js} +5 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{parse-wijzigactie-from-node.function-BbYINqVA.js → parse-wijzigactie-from-node.function-Bi4NE9Tt.js} +1 -1
- package/dist/cjs/{tooltip.functional-component-CW6vXWhM.js → tooltip.functional-component-D6oJmzwD.js} +1 -1
- package/dist/cjs/{v4-_2BfiRUa.js → v4-Br3XC_0C.js} +13 -6
- package/dist/cjs/{wrap-wijzigactie.functional-component-BOafAh_v.js → wrap-wijzigactie.functional-component-CV8gX7lQ.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/accordion/components/accordion-section.css +15 -22
- package/dist/collection/components/accordion/components/accordion-section.js +6 -5
- package/dist/collection/components/action-list/action-list.css +15 -22
- package/dist/collection/components/action-list/action-list.js +1 -1
- package/dist/collection/components/action-list/components/action-list-item.css +15 -4
- package/dist/collection/components/action-list/components/action-list-item.js +2 -2
- package/dist/collection/components/advanced-select/advanced-select.css +70 -119
- package/dist/collection/components/advanced-select/advanced-select.js +2 -2
- package/dist/collection/components/alert/alert.css +102 -137
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +1 -1
- package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +1 -1
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +1 -1
- package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js +1 -1
- package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js +1 -1
- package/dist/collection/components/annotation/annotation.css +34 -48
- package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
- package/dist/collection/components/autosuggest/autosuggest.js +21 -12
- package/dist/collection/components/badge/badge.css +255 -430
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/banner/banner.css +71 -99
- package/dist/collection/components/banner/banner.js +2 -2
- package/dist/collection/components/button-group/button-group.css +11 -11
- package/dist/collection/components/button-group/button-group.js +1 -1
- package/dist/collection/components/card/card.css +17 -17
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/card-container/card-container.js +1 -1
- package/dist/collection/components/contact-information/contact-information.css +1 -1
- package/dist/collection/components/contact-information/contact-information.js +1 -1
- package/dist/collection/components/cursor-tooltip/cursor-tooltip.css +10 -17
- package/dist/collection/components/cursor-tooltip/cursor-tooltip.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/document-card/document-card.css +1 -1
- package/dist/collection/components/document-card/document-card.js +1 -1
- package/dist/collection/components/document-component/document-component.css +95 -108
- package/dist/collection/components/document-component/document-component.js +4 -4
- package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.css +16 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.js +55 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.css +80 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.js +160 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu.css +482 -2
- package/dist/collection/components/dropdown-menu/dropdown-menu.interfaces.js +1 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +137 -142
- package/dist/collection/components/expandable/expandable.js +2 -2
- package/dist/collection/components/header/header.js +19 -2
- package/dist/collection/components/highlight-box/highlight-box.css +208 -11
- package/dist/collection/components/highlight-box/highlight-box.js +1 -1
- package/dist/collection/components/history-item/history-item.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +48 -62
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/image-overlay/image-overlay.css +46 -74
- package/dist/collection/components/image-overlay/image-overlay.js +23 -4
- package/dist/collection/components/info/info.css +10 -17
- package/dist/collection/components/info/info.js +1 -1
- package/dist/collection/components/info-button/info-button.css +6 -6
- package/dist/collection/components/info-button/info-button.js +1 -1
- package/dist/collection/components/input-range/input-range.js +2 -2
- package/dist/collection/components/label/label.css +104 -174
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/legend/legend-group/legend-group.js +1 -1
- package/dist/collection/components/legend/legend-item/legend-item.js +1 -1
- package/dist/collection/components/legend/legend.css +3 -3
- package/dist/collection/components/legend/legend.js +1 -1
- package/dist/collection/components/list-button/list-button.css +9 -9
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/logo/logo.js +1 -1
- package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
- package/dist/collection/components/map-controls/map-controls.css +61 -50
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/map-layer/components/map-layer-object.css +22 -36
- package/dist/collection/components/map-layer/components/map-layer-object.js +1 -1
- package/dist/collection/components/map-layer/map-layer.css +22 -36
- package/dist/collection/components/map-layer/map-layer.js +1 -1
- package/dist/collection/components/map-message/map-message.css +10 -17
- package/dist/collection/components/map-message/map-message.js +2 -2
- package/dist/collection/components/map-overlays/map-overlays.js +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +1 -1
- package/dist/collection/components/modal/modal.css +20 -23
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/onboarding-tip/onboarding-tip.css +13 -20
- package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.css +8 -8
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +1 -1
- package/dist/collection/components/ozon-content/ozon-content.css +238 -368
- package/dist/collection/components/ozon-content/ozon-content.js +3 -3
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/panel/panel.css +10 -17
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/plekinfo-card/plekinfo-card.css +26 -40
- package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/project-item/project-item.css +22 -22
- package/dist/collection/components/project-item/project-item.js +1 -1
- package/dist/collection/components/renvooi/renvooi.css +27 -41
- package/dist/collection/components/responsive-element/responsive-element.js +18 -4
- package/dist/collection/components/scrollable/scrollable.css +7 -7
- package/dist/collection/components/scrollable/scrollable.js +2 -2
- package/dist/collection/components/segmented-button/segmented-button.js +1 -1
- package/dist/collection/components/selectable/selectable.css +3 -3
- package/dist/collection/components/selectable/selectable.js +1 -1
- package/dist/collection/components/skiplink/skiplink.css +1 -1
- package/dist/collection/components/skiplink/skiplink.js +1 -1
- package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
- package/dist/collection/components/survey-rating/survey-rating.css +76 -125
- package/dist/collection/components/survey-rating/survey-rating.js +2 -2
- package/dist/collection/components/table/table.css +69 -58
- package/dist/collection/components/table/table.js +30 -8
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tijdreis-banner/tijdreis-banner.css +10 -17
- package/dist/collection/components/tijdreis-banner/tijdreis-banner.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree-view/tree-view.js +2 -2
- package/dist/collection/components/viewer-grid/viewer-grid.css +19 -16
- package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
- package/dist/components/alert.js +1 -1
- package/dist/components/annotation-locatie.js +1 -1
- package/dist/components/attachments-counter.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/document-component.js +1 -1
- package/dist/components/dso-accordion-section.js +1 -1
- package/dist/components/dso-accordion.js +1 -1
- package/dist/components/dso-action-list-item.js +1 -1
- package/dist/components/dso-action-list.js +1 -1
- package/dist/components/dso-advanced-select.js +3 -5
- package/dist/components/dso-annotation-activiteit.js +1 -1
- package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
- package/dist/components/dso-annotation-kaart.js +1 -1
- package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
- package/dist/components/dso-autosuggest.js +1 -1
- package/dist/components/dso-banner.js +1 -1
- package/dist/components/dso-card-container.js +1 -1
- package/dist/components/dso-card.js +1 -1
- package/dist/components/dso-contact-information.js +1 -1
- package/dist/components/dso-cursor-tooltip.js +1 -1
- package/dist/components/dso-date-picker.js +1 -1
- package/dist/components/dso-document-card.js +1 -1
- package/dist/components/dso-dropdown-menu-group.d.ts +11 -0
- package/dist/components/dso-dropdown-menu-group.js +1 -0
- package/dist/components/dso-dropdown-menu-item.d.ts +11 -0
- package/dist/components/dso-dropdown-menu-item.js +1 -0
- package/dist/components/dso-dropdown-menu.js +1 -1
- package/dist/components/dso-header.js +1 -1
- package/dist/components/dso-highlight-box.js +1 -1
- package/dist/components/dso-history-item.js +1 -1
- package/dist/components/dso-input-range.js +1 -1
- package/dist/components/dso-legend-group.js +1 -1
- package/dist/components/dso-legend-item.js +1 -1
- package/dist/components/dso-legend.js +1 -1
- package/dist/components/dso-list-button.js +1 -1
- package/dist/components/dso-logo.js +1 -1
- package/dist/components/dso-map-base-layers.js +1 -1
- package/dist/components/dso-map-controls.js +1 -1
- package/dist/components/dso-map-layer-object.js +1 -1
- package/dist/components/dso-map-layer.js +1 -1
- package/dist/components/dso-map-message.js +1 -1
- package/dist/components/dso-map-overlays.js +1 -1
- package/dist/components/dso-mark-bar.js +1 -1
- package/dist/components/dso-onboarding-tip.js +1 -1
- package/dist/components/dso-pagination.js +1 -1
- package/dist/components/dso-plekinfo-card.js +1 -1
- package/dist/components/dso-project-item.js +1 -1
- package/dist/components/dso-segmented-button.js +1 -1
- package/dist/components/dso-skiplink.js +1 -1
- package/dist/components/dso-survey-rating.js +1 -1
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tijdreis-banner.js +1 -1
- package/dist/components/dso-tooltip.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +1 -1
- package/dist/components/dsot-document-component-demo.js +1 -1
- package/dist/components/expandable.js +1 -1
- package/dist/components/i18n.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/image-overlay.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.esm.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +1 -0
- package/dist/components/info-button.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/ozon-content-toggletip.js +1 -1
- package/dist/components/ozon-content.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/progress-indicator.js +1 -1
- package/dist/components/renvooi.js +1 -1
- package/dist/components/responsive-element.js +1 -1
- package/dist/components/scrollable.js +1 -1
- package/dist/components/selectable.js +1 -1
- package/dist/components/slide-toggle.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/v4.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-e1f30dbb.entry.js → p-0004b1ea.entry.js} +1 -1
- package/dist/dso-toolkit/{p-bb7ac6f7.entry.js → p-04e15a21.entry.js} +1 -1
- package/dist/dso-toolkit/p-096d178a.entry.js +1 -0
- package/dist/dso-toolkit/p-0c7c446c.entry.js +1 -0
- package/dist/dso-toolkit/p-0d59b59a.entry.js +1 -0
- package/dist/dso-toolkit/{p-7a809a49.entry.js → p-0e964c0b.entry.js} +1 -1
- package/dist/dso-toolkit/{p-e08e43be.entry.js → p-11d86ad0.entry.js} +1 -1
- package/dist/dso-toolkit/p-17d3e3e4.entry.js +1 -0
- package/dist/dso-toolkit/p-1f48029c.entry.js +1 -0
- package/dist/dso-toolkit/p-2412ccfa.entry.js +1 -0
- package/dist/dso-toolkit/p-24d0df16.entry.js +1 -0
- package/dist/dso-toolkit/p-29077405.entry.js +1 -0
- package/dist/dso-toolkit/p-291178f9.entry.js +1 -0
- package/dist/dso-toolkit/{p-875b414d.entry.js → p-2a4068d9.entry.js} +1 -1
- package/dist/dso-toolkit/p-2a4fd631.entry.js +1 -0
- package/dist/dso-toolkit/p-2d2476dd.entry.js +1 -0
- package/dist/dso-toolkit/p-2f2a920f.entry.js +5 -0
- package/dist/dso-toolkit/p-30c4f332.entry.js +1 -0
- package/dist/dso-toolkit/p-33c05ebd.entry.js +1 -0
- package/dist/dso-toolkit/{p-6ebe1b0e.entry.js → p-47c02ca5.entry.js} +1 -1
- package/dist/dso-toolkit/p-4ae8cc81.entry.js +1 -0
- package/dist/dso-toolkit/p-4d4aec48.entry.js +1 -0
- package/dist/dso-toolkit/p-4d708856.entry.js +1 -0
- package/dist/dso-toolkit/{p-e311d101.entry.js → p-4e13b5ac.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ea1f5082.entry.js → p-515149ae.entry.js} +1 -1
- package/dist/dso-toolkit/{p-8e206e7e.entry.js → p-520dc726.entry.js} +1 -1
- package/dist/dso-toolkit/{p-3047432c.entry.js → p-5616a8f0.entry.js} +1 -1
- package/dist/dso-toolkit/p-5962b2d4.entry.js +1 -0
- package/dist/dso-toolkit/p-5aedbfdc.entry.js +1 -0
- package/dist/dso-toolkit/p-5b2d4e4d.entry.js +1 -0
- package/dist/dso-toolkit/p-5d7bb03d.entry.js +1 -0
- package/dist/dso-toolkit/p-6243fe15.entry.js +1 -0
- package/dist/dso-toolkit/p-62e887fc.entry.js +1 -0
- package/dist/dso-toolkit/p-67f0dbce.entry.js +1 -0
- package/dist/dso-toolkit/p-6c9e92db.entry.js +1 -0
- package/dist/dso-toolkit/p-77b3e172.entry.js +1 -0
- package/dist/dso-toolkit/p-790477bb.entry.js +1 -0
- package/dist/dso-toolkit/p-7cd2b1be.entry.js +1 -0
- package/dist/dso-toolkit/p-86409b6e.entry.js +1 -0
- package/dist/dso-toolkit/p-9d3dcb86.entry.js +1 -0
- package/dist/dso-toolkit/p-9d41e3f8.entry.js +1 -0
- package/dist/dso-toolkit/p-9e4f0727.entry.js +1 -0
- package/dist/dso-toolkit/p-B7w6tF4K.js +5 -0
- package/dist/dso-toolkit/p-BF0_OXTe.js +1 -0
- package/dist/dso-toolkit/{p-PjubEIMY.js → p-CDgoS98P.js} +1 -1
- package/dist/dso-toolkit/{p-Chbfdofl.js → p-CHpgprST.js} +1 -1
- package/dist/dso-toolkit/p-CKvC5fms.js +1 -0
- package/dist/dso-toolkit/p-CUWMAyh7.js +1 -0
- package/dist/dso-toolkit/p-CWxbEBiv.js +1 -0
- package/dist/dso-toolkit/p-CmOx9B7G.js +1 -0
- package/dist/dso-toolkit/p-Cw_CPOlV.js +1 -0
- package/dist/dso-toolkit/p-DHGCm31c.js +1 -0
- package/dist/dso-toolkit/{p-85c2c887.entry.js → p-a624c0bd.entry.js} +1 -1
- package/dist/dso-toolkit/p-a87670b0.entry.js +1 -0
- package/dist/dso-toolkit/p-ab857666.entry.js +1 -0
- package/dist/dso-toolkit/{p-626ae90b.entry.js → p-ae83402c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-2d1eb113.entry.js → p-b2290d21.entry.js} +1 -1
- package/dist/dso-toolkit/{p-dabed551.entry.js → p-b5814f08.entry.js} +1 -1
- package/dist/dso-toolkit/{p-cce55fbb.entry.js → p-b8abe5a1.entry.js} +1 -1
- package/dist/dso-toolkit/p-c295282a.entry.js +1 -0
- package/dist/dso-toolkit/p-c97b503c.entry.js +1 -0
- package/dist/dso-toolkit/p-cfe03a4b.entry.js +1 -0
- package/dist/dso-toolkit/p-d6c8285e.entry.js +1 -0
- package/dist/dso-toolkit/p-dfc4deeb.entry.js +1 -0
- package/dist/dso-toolkit/p-e49dfe55.entry.js +1 -0
- package/dist/dso-toolkit/p-e82c870a.entry.js +1 -0
- package/dist/dso-toolkit/p-ead2f178.entry.js +1 -0
- package/dist/dso-toolkit/{p-b4747ac0.entry.js → p-eceaf04c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-fc8f252a.entry.js → p-f1bc1d9a.entry.js} +1 -1
- package/dist/dso-toolkit/{p-3fe44227.entry.js → p-f2a5beef.entry.js} +1 -1
- package/dist/dso-toolkit/p-fbf11382.entry.js +1 -0
- package/dist/dso-toolkit/p-fc9096fc.entry.js +1 -0
- package/dist/esm/{annotation-body-DeKLxp3F.js → annotation-body-DBGu5INB.js} +1 -1
- package/dist/esm/{annotation-list-renvooi-values-CGxBKqb7.js → annotation-list-renvooi-values-DoTvSWOI.js} +1 -1
- package/dist/esm/{annotation-watcher-BO_h7wWk.js → annotation-watcher-Dm4MhmMp.js} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +8 -7
- package/dist/esm/dso-accordion.entry.js +2 -276
- package/dist/esm/dso-action-list-item.entry.js +4 -4
- package/dist/esm/dso-action-list.entry.js +3 -3
- package/dist/esm/dso-advanced-select.entry.js +107 -230
- package/dist/esm/dso-alert_7.entry.js +72 -31
- package/dist/esm/dso-annotation-activiteit.entry.js +6 -6
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +5 -5
- package/dist/esm/dso-annotation-kaart.entry.js +4 -4
- package/dist/esm/dso-annotation-locatie_2.entry.js +11 -11
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +6 -6
- package/dist/esm/dso-attachments-counter_2.entry.js +4 -4
- package/dist/esm/dso-autosuggest.entry.js +24 -15
- package/dist/esm/dso-banner.entry.js +4 -4
- package/dist/esm/dso-button-group.entry.js +3 -3
- package/dist/esm/dso-card-container.entry.js +2 -2
- package/dist/esm/dso-card.entry.js +4 -4
- package/dist/esm/dso-contact-information.entry.js +3 -3
- package/dist/esm/dso-cursor-tooltip.entry.js +3 -3
- package/dist/esm/dso-date-picker.entry.js +2 -2
- package/dist/esm/dso-document-card.entry.js +3 -3
- package/dist/esm/dso-dropdown-menu-group.entry.js +29 -0
- package/dist/esm/dso-dropdown-menu-item.entry.js +39 -0
- package/dist/esm/dso-dropdown-menu.entry.js +84 -102
- package/dist/esm/dso-header.entry.js +23 -6
- package/dist/esm/dso-highlight-box.entry.js +3 -3
- package/dist/esm/dso-history-item.entry.js +2 -2
- package/dist/esm/dso-icon-button.entry.js +95 -0
- package/dist/esm/{dso-icon_2.entry.js → dso-icon.entry.js} +3 -95
- package/dist/esm/dso-info_3.entry.js +8 -8
- package/dist/esm/dso-input-range.entry.js +3 -3
- package/dist/esm/dso-label_3.entry.js +8 -8
- package/dist/esm/dso-legend-group.entry.js +3 -3
- package/dist/esm/dso-legend-item.entry.js +3 -3
- package/dist/esm/dso-legend.entry.js +4 -4
- package/dist/esm/dso-list-button.entry.js +3 -3
- package/dist/esm/dso-logo.entry.js +2 -2
- package/dist/esm/dso-map-base-layers.entry.js +4 -4
- package/dist/esm/dso-map-controls.entry.js +4 -4
- package/dist/esm/dso-map-layer-object.entry.js +4 -4
- package/dist/esm/dso-map-layer.entry.js +4 -4
- package/dist/esm/dso-map-message.entry.js +4 -4
- package/dist/esm/dso-map-overlays.entry.js +4 -4
- package/dist/esm/dso-mark-bar.entry.js +2 -2
- package/dist/esm/dso-modal.entry.js +5 -5
- package/dist/esm/dso-onboarding-tip.entry.js +3 -3
- package/dist/esm/dso-pagination.entry.js +2 -2
- package/dist/esm/dso-plekinfo-card.entry.js +4 -4
- package/dist/esm/dso-progress-indicator.entry.js +3 -3
- package/dist/esm/dso-project-item.entry.js +3 -3
- package/dist/esm/dso-responsive-element.entry.js +19 -5
- package/dist/esm/dso-scrollable.entry.js +4 -4
- package/dist/esm/dso-segmented-button.entry.js +2 -2
- package/dist/esm/dso-skiplink.entry.js +3 -3
- package/dist/esm/dso-survey-rating.entry.js +4 -4
- package/dist/esm/dso-tab.entry.js +1 -1
- package/dist/esm/dso-tabs.entry.js +2 -2
- package/dist/esm/dso-tijdreis-banner.entry.js +3 -3
- package/dist/esm/dso-toolkit.js +4 -4
- package/dist/esm/dso-tooltip.entry.js +3 -3
- package/dist/esm/dso-tree-view.entry.js +3 -3
- package/dist/esm/dso-viewer-grid.entry.js +4 -4
- package/dist/esm/dsot-document-component-demo.entry.js +2 -2
- package/dist/esm/{i18n-DwBHVuoZ.js → i18n-CUWMAyh7.js} +21 -9
- package/dist/esm/index-OTFpj3vR.js +278 -0
- package/dist/esm/{index-DrQGiJP8.js → index-pqfDfKeZ.js} +1 -1
- package/dist/{bundle/p-PsHl6ZhV.js → esm/index.esm-B7w6tF4K.js} +6 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{parse-wijzigactie-from-node.function-BroGebB4.js → parse-wijzigactie-from-node.function-Cn1GXjSM.js} +1 -1
- package/dist/esm/{tooltip.functional-component-nHAIYF3o.js → tooltip.functional-component-CsWjK64w.js} +1 -1
- package/dist/esm/{v4-CK3_k8jD.js → v4-BF0_OXTe.js} +13 -6
- package/dist/esm/{wrap-wijzigactie.functional-component-BCT1o51-.js → wrap-wijzigactie.functional-component-DzSLSv0i.js} +1 -1
- package/dist/types/components/annotation/annotation-list-renvooi-values.d.ts +2 -2
- package/dist/types/components/autosuggest/autosuggest.d.ts +2 -0
- package/dist/types/components/dropdown-menu/dropdown-menu-group/dropdown-menu-group.d.ts +12 -0
- package/dist/types/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.d.ts +31 -0
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +25 -20
- package/dist/types/components/dropdown-menu/dropdown-menu.interfaces.d.ts +10 -0
- package/dist/types/components/header/header.d.ts +3 -0
- package/dist/types/components/image-overlay/image-overlay.d.ts +3 -0
- package/dist/types/components/responsive-element/responsive-element.d.ts +3 -0
- package/dist/types/components/table/table.d.ts +3 -0
- package/dist/types/components.d.ts +99 -25
- package/dist/types/stencil-public-runtime.d.ts +1 -0
- package/package.json +17 -17
- package/dist/bundle/p-0h9cOnX9.js +0 -148
- package/dist/bundle/p-6-0kKG2F.js +0 -189
- package/dist/bundle/p-B2ZlmdWO.js +0 -69
- package/dist/bundle/p-BNEJjrr8.js +0 -75
- package/dist/bundle/p-BnDZHxeO.js +0 -166
- package/dist/bundle/p-C-8vTVVo.js +0 -79
- package/dist/bundle/p-C2l5d-V9.js +0 -341
- package/dist/bundle/p-C332B2dN.js +0 -100
- package/dist/bundle/p-CFPWVcsY.js +0 -48
- package/dist/bundle/p-CKnJRPZn.js +0 -137
- package/dist/bundle/p-HXung-P3.js +0 -1209
- package/dist/bundle/p-z2uKmX1Q.js +0 -83
- package/dist/bundle/p-zYhsKlIm.js +0 -124
- package/dist/dso-toolkit/p-0146f231.entry.js +0 -1
- package/dist/dso-toolkit/p-03922428.entry.js +0 -1
- package/dist/dso-toolkit/p-040f3f53.entry.js +0 -1
- package/dist/dso-toolkit/p-0cc62094.entry.js +0 -1
- package/dist/dso-toolkit/p-181cb6f7.entry.js +0 -1
- package/dist/dso-toolkit/p-1bb92456.entry.js +0 -7
- package/dist/dso-toolkit/p-1ea5fb0d.entry.js +0 -1
- package/dist/dso-toolkit/p-2edbfaae.entry.js +0 -1
- package/dist/dso-toolkit/p-4020bb89.entry.js +0 -1
- package/dist/dso-toolkit/p-44549e9c.entry.js +0 -1
- package/dist/dso-toolkit/p-4a493df9.entry.js +0 -1
- package/dist/dso-toolkit/p-540a8027.entry.js +0 -1
- package/dist/dso-toolkit/p-5a25d8d9.entry.js +0 -1
- package/dist/dso-toolkit/p-61fd983a.entry.js +0 -1
- package/dist/dso-toolkit/p-75e5057e.entry.js +0 -1
- package/dist/dso-toolkit/p-798eeae6.entry.js +0 -1
- package/dist/dso-toolkit/p-7f3898d7.entry.js +0 -1
- package/dist/dso-toolkit/p-84f647aa.entry.js +0 -1
- package/dist/dso-toolkit/p-869027bc.entry.js +0 -1
- package/dist/dso-toolkit/p-8b9194ca.entry.js +0 -1
- package/dist/dso-toolkit/p-9b0716d8.entry.js +0 -1
- package/dist/dso-toolkit/p-9ce75fcd.entry.js +0 -1
- package/dist/dso-toolkit/p-AZpKxz9p.js +0 -1
- package/dist/dso-toolkit/p-BKr5d3Gu.js +0 -1
- package/dist/dso-toolkit/p-CK3_k8jD.js +0 -1
- package/dist/dso-toolkit/p-Dev1bLxp.js +0 -1
- package/dist/dso-toolkit/p-DwBHVuoZ.js +0 -1
- package/dist/dso-toolkit/p-PsHl6ZhV.js +0 -5
- package/dist/dso-toolkit/p-a14ee5bd.entry.js +0 -1
- package/dist/dso-toolkit/p-a286ac17.entry.js +0 -1
- package/dist/dso-toolkit/p-a8184705.entry.js +0 -1
- package/dist/dso-toolkit/p-ab33a108.entry.js +0 -1
- package/dist/dso-toolkit/p-b2202cd6.entry.js +0 -1
- package/dist/dso-toolkit/p-b270f26b.entry.js +0 -1
- package/dist/dso-toolkit/p-b2d0319d.entry.js +0 -1
- package/dist/dso-toolkit/p-be7adaac.entry.js +0 -1
- package/dist/dso-toolkit/p-bf803e4f.entry.js +0 -1
- package/dist/dso-toolkit/p-c0111a70.entry.js +0 -1
- package/dist/dso-toolkit/p-c3d5ccc6.entry.js +0 -1
- package/dist/dso-toolkit/p-c9768843.entry.js +0 -1
- package/dist/dso-toolkit/p-d4539b83.entry.js +0 -1
- package/dist/dso-toolkit/p-d877c432.entry.js +0 -1
- package/dist/dso-toolkit/p-d87dd7c8.entry.js +0 -1
- package/dist/dso-toolkit/p-d9800183.entry.js +0 -1
- package/dist/dso-toolkit/p-db32a77a.entry.js +0 -1
- package/dist/dso-toolkit/p-e03ff53f.entry.js +0 -1
- package/dist/dso-toolkit/p-f066244e.entry.js +0 -1
- package/dist/dso-toolkit/p-go_iJ4_L.js +0 -1
- /package/dist/dso-toolkit/{p-DrQGiJP8.js → p-pqfDfKeZ.js} +0 -0
|
@@ -1,126 +1,104 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, a as Host, g as getElement } from './index-pqfDfKeZ.js';
|
|
2
2
|
import { a as autoUpdate, c as computePosition, o as offset, f as flip } from './floating-ui.dom-zRaH89Qj.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { v as v4 } from './v4-CK3_k8jD.js';
|
|
3
|
+
import { c as createStore } from './index-OTFpj3vR.js';
|
|
4
|
+
import { v as v4 } from './v4-BF0_OXTe.js';
|
|
6
5
|
|
|
7
|
-
const dropdownMenuCss = () => `:host(:focus){outline:none}:host{display:inline-block}div[popover]{margin:0 !important;border:0;padding:0;background-color:transparent;overflow:unset;inline-size:max-content}`;
|
|
6
|
+
const dropdownMenuCss = () => `:host(:focus) { outline: none; } :host { display: inline-block; } button { -webkit-appearance: button; color: inherit; cursor: pointer; font: inherit; font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; overflow: visible; text-transform: none; } button[disabled] { cursor: default; } button::-moz-focus-inner { border: 0; padding: 0; } button.dso-primary { display: inline-block; font-size: 1em; font-weight: 500; margin-block-end: 0; text-decoration: none; touch-action: manipulation; text-align: var(--_dso-button-text-align, start); user-select: none; vertical-align: middle; background-clip: padding-box; } button.dso-primary:focus, button.dso-primary:focus-visible { outline-offset: 2px; } button.dso-primary:active { outline: 0; } button.dso-primary.extern::after, button.dso-primary.download::after { content: ""; display: inline-block; } button.dso-primary { background-color: var(--_dso-button-primary-background-color, #39870c); border-color: var(--_dso-button-primary-border-color, #39870c); color: var(--_dso-button-primary-color, #fff); float: var(--_dso-button-float-primary, none); border-width: 1px; border-style: solid; border-radius: 4px; line-height: 1.5; min-inline-size: 56px; inline-size: var(--_dso-button-inline-size, auto); padding-block: 11px; padding-inline: 15px; } button.dso-primary:hover { background-color: var(--_dso-button-primary-hover-background-color, #275937); border-color: var(--_dso-button-primary-hover-border-color, #275937); color: var(--_dso-button-primary-hover-color, #fff); float: var(--_dso-button-float-primary, none); } button.dso-primary:active { background-color: var(--_dso-button-primary-active-background-color, #173521); border-color: var(--_dso-button-primary-active-border-color, #173521); color: var(--_dso-button-primary-active-color, #fff); float: var(--_dso-button-float-primary, none); } button.dso-primary[disabled], button.dso-primary[disabled]:hover { background-color: var(--_dso-button-primary-disabled-background-color, #afcf9d); border-color: var(--_dso-button-primary-disabled-border-color, #afcf9d); color: var(--_dso-button-primary-disabled-color, #fff); float: var(--_dso-button-float-primary, none); } button.dso-primary.dso-small { line-height: 1rem; } button.dso-primary.dso-small dso-icon, button.dso-primary.dso-small.extern::after, button.dso-primary.dso-small.download::after, button.dso-primary.dso-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } button.dso-primary.dso-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } button.dso-primary.dso-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } button.dso-primary.dso-extra-small { line-height: 1rem; } button.dso-primary.dso-extra-small dso-icon, button.dso-primary.dso-extra-small.extern::after, button.dso-primary.dso-extra-small.download::after, button.dso-primary.dso-extra-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } button.dso-primary.dso-extra-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } button.dso-primary.dso-extra-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } button.dso-primary.dso-extra-small { padding-block: 9px; } button.dso-primary dso-icon:has(+ span:not(.sr-only)) { margin-inline-start: -8px; } button.dso-primary span:not(.sr-only) + dso-icon { margin-inline-start: 8px; margin-inline-end: -8px; } button.dso-primary dso-icon + span:not(.sr-only) { margin-inline-start: 8px; } button.dso-primary.dso-spinner-left[disabled], button.dso-primary.dso-spinner-right[disabled] { background-color: #39870c; border-color: #39870c; color: #fff; } button.dso-primary.dso-spinner-left::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-end: 8px; } button.dso-primary.dso-spinner-right::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-start: 8px; } button.dso-secondary { display: inline-block; font-size: 1em; font-weight: 500; margin-block-end: 0; text-decoration: none; touch-action: manipulation; text-align: var(--_dso-button-text-align, start); user-select: none; vertical-align: middle; background-clip: padding-box; } button.dso-secondary:focus, button.dso-secondary:focus-visible { outline-offset: 2px; } button.dso-secondary:active { outline: 0; } button.dso-secondary.extern::after, button.dso-secondary.download::after { content: ""; display: inline-block; } button.dso-secondary { background-color: var(--_dso-button-secondary-background-color, #fff); border-color: var(--_dso-button-secondary-border-color, #39870c); color: var(--_dso-button-secondary-color, #39870c); float: var(--_dso-button-float-secondary, none); border-width: 1px; border-style: solid; border-radius: 4px; line-height: 1.5; min-inline-size: 56px; inline-size: var(--_dso-button-inline-size, auto); padding-block: 11px; padding-inline: 15px; } button.dso-secondary:hover { background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce); border-color: var(--_dso-button-secondary-hover-border-color, #275937); color: var(--_dso-button-secondary-hover-color, #275937); float: var(--_dso-button-float-secondary, none); } button.dso-secondary:active { background-color: var(--_dso-button-secondary-active-background-color, #275937); border-color: var(--_dso-button-secondary-active-border-color, #275937); color: var(--_dso-button-secondary-active-color, #fff); float: var(--_dso-button-float-secondary, none); } button.dso-secondary[disabled], button.dso-secondary[disabled]:hover { background-color: var(--_dso-button-secondary-disabled-background-color, #fff); border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d); color: var(--_dso-button-secondary-disabled-color, #afcf9d); float: var(--_dso-button-float-secondary, none); } button.dso-secondary.dso-small { line-height: 1rem; } button.dso-secondary.dso-small dso-icon, button.dso-secondary.dso-small.extern::after, button.dso-secondary.dso-small.download::after, button.dso-secondary.dso-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } button.dso-secondary.dso-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } button.dso-secondary.dso-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } button.dso-secondary.dso-extra-small { line-height: 1rem; } button.dso-secondary.dso-extra-small dso-icon, button.dso-secondary.dso-extra-small.extern::after, button.dso-secondary.dso-extra-small.download::after, button.dso-secondary.dso-extra-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } button.dso-secondary.dso-extra-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } button.dso-secondary.dso-extra-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } button.dso-secondary.dso-extra-small { padding-block: 9px; } button.dso-secondary dso-icon:has(+ span:not(.sr-only)) { margin-inline-start: -8px; } button.dso-secondary span:not(.sr-only) + dso-icon { margin-inline-start: 8px; margin-inline-end: -8px; } button.dso-secondary dso-icon + span:not(.sr-only) { margin-inline-start: 8px; } button.dso-secondary.dso-spinner-left[disabled], button.dso-secondary.dso-spinner-right[disabled] { background-color: #fff; border-color: #39870c; color: #39870c; } button.dso-secondary.dso-spinner-left::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-end: 8px; } button.dso-secondary.dso-spinner-left:not([disabled]):hover::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-end: 8px; } button.dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before { block-size: 16px; inline-size: 16px; } button.dso-secondary.dso-spinner-right::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-start: 8px; } button.dso-secondary.dso-spinner-right:not([disabled]):hover::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-start: 8px; } button.dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after { block-size: 16px; inline-size: 16px; } button.dso-tertiary { display: inline-block; font-size: 1em; font-weight: 500; margin-block-end: 0; text-decoration: none; touch-action: manipulation; text-align: var(--_dso-button-text-align, start); user-select: none; vertical-align: middle; background-clip: padding-box; } button.dso-tertiary:focus, button.dso-tertiary:focus-visible { outline-offset: 2px; } button.dso-tertiary:active { outline: 0; } button.dso-tertiary.extern::after, button.dso-tertiary.download::after { content: ""; display: inline-block; } button.dso-tertiary { display: inline-block; font-size: 1em; font-weight: 500; margin-block-end: 0; text-decoration: none; touch-action: manipulation; text-align: var(--_dso-button-text-align, start); user-select: none; vertical-align: middle; background-clip: padding-box; } button.dso-tertiary:focus, button.dso-tertiary:focus-visible { outline-offset: 2px; } button.dso-tertiary:active { outline: 0; } button.dso-tertiary.extern::after, button.dso-tertiary.download::after { content: ""; display: inline-block; } button.dso-tertiary { background-color: var(--_dso-button-tertiary-background-color, ); border-color: var(--_dso-button-tertiary-border-color, ); color: var(--_dso-button-tertiary-color, #39870c); float: var(--_dso-button-float-tertiary, none); border-width: 1px; border-style: solid; border-radius: 4px; line-height: 1.5; min-inline-size: auto; inline-size: var(--_dso-button-inline-size, auto); padding-block: 11px; padding-inline: 15px; } button.dso-tertiary:hover { background-color: var(--_dso-button-tertiary-hover-background-color, ); border-color: var(--_dso-button-tertiary-hover-border-color, ); color: var(--_dso-button-tertiary-hover-color, #275937); float: var(--_dso-button-float-tertiary, none); } button.dso-tertiary:active { background-color: var(--_dso-button-tertiary-active-background-color, ); border-color: var(--_dso-button-tertiary-active-border-color, ); color: var(--_dso-button-tertiary-active-color, #173521); float: var(--_dso-button-float-tertiary, none); } button.dso-tertiary[disabled], button.dso-tertiary[disabled]:hover { background-color: var(--_dso-button-tertiary-disabled-background-color, ); border-color: var(--_dso-button-tertiary-disabled-border-color, ); color: var(--_dso-button-tertiary-disabled-color, #afcf9d); float: var(--_dso-button-float-tertiary, none); } button.dso-tertiary.dso-small { line-height: 1rem; } button.dso-tertiary.dso-small dso-icon, button.dso-tertiary.dso-small.extern::after, button.dso-tertiary.dso-small.download::after, button.dso-tertiary.dso-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } button.dso-tertiary.dso-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } button.dso-tertiary.dso-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } button.dso-tertiary.dso-extra-small { line-height: 1rem; } button.dso-tertiary.dso-extra-small dso-icon, button.dso-tertiary.dso-extra-small.extern::after, button.dso-tertiary.dso-extra-small.download::after, button.dso-tertiary.dso-extra-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } button.dso-tertiary.dso-extra-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } button.dso-tertiary.dso-extra-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } button.dso-tertiary.dso-extra-small { padding-block: 9px; } button.dso-tertiary { border: 0; line-height: 1; padding-inline: 0; padding-block: var(--_dso-button-padding-block-tertiary, 0); background-color: transparent; } button.dso-tertiary[disabled].dso-spinner-left, button.dso-tertiary[disabled].dso-spinner-right { color: #39870c; } button.dso-tertiary:not([disabled]):hover { text-decoration: underline; text-underline-position: under; } button.dso-tertiary.dso-align { line-height: calc(1.5em - 1px); padding-block: 11px; padding-inline: 0; position: relative; } button.dso-tertiary.dso-truncate { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } button.dso-tertiary.dso-spinner-left::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: middle; inline-size: 24px; margin-inline-end: 8px; } button.dso-tertiary.dso-spinner-right::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: middle; inline-size: 24px; margin-inline-start: 8px; } button.dso-tertiary dso-icon + span:not(.sr-only), button.dso-tertiary span:not(.sr-only) + dso-icon { margin-inline-start: 8px; } button.dso-tertiary dso-icon[icon=chevron-left] + span:not(.sr-only), button.dso-tertiary dso-icon[icon=chevron-right] + span:not(.sr-only), button.dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-left], button.dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-right] { margin-inline-start: 0; } button.dso-tertiary dso-icon, button.dso-tertiary span { vertical-align: middle; } button dso-icon { margin-inline-start: 8px; } button:not(.dso-tertiary) dso-icon { margin-inline-end: 0; } .dso-dropdown-options { margin: 0 !important; overflow: unset; background-clip: padding-box; background-color: #fff; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.15); box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.4); font-size: 1rem; min-inline-size: 160px; inline-size: max-content; padding-block: 5px; padding-inline: 0; z-index: 220; } ::slotted(dso-dropdown-menu-group:not(:last-child)) { border-block-end: 1px solid #e5e5e5; margin-block-end: 11px; padding-block-end: 11px; }`;
|
|
8
7
|
|
|
9
8
|
const DropdownMenu = class {
|
|
10
9
|
constructor(hostRef) {
|
|
11
10
|
registerInstance(this, hostRef);
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
14
|
-
* This attribute is reflected and mutable.
|
|
12
|
+
* The variant of the Button to toggle the menu
|
|
15
13
|
*/
|
|
14
|
+
this.variant = "secondary";
|
|
16
15
|
this.open = false;
|
|
17
|
-
/**
|
|
18
|
-
* Alignment of the dropdown
|
|
19
|
-
*/
|
|
20
|
-
this.dropdownAlign = "left";
|
|
21
|
-
/**
|
|
22
|
-
* Space between button and dropdown options
|
|
23
|
-
*/
|
|
24
|
-
this.dropdownOptionsOffset = 2;
|
|
25
|
-
/**
|
|
26
|
-
* Whether the menu is checkable.
|
|
27
|
-
*/
|
|
28
|
-
this.checkable = false;
|
|
29
16
|
this.focusOutListener = (event) => {
|
|
30
|
-
if (this.open &&
|
|
31
|
-
(!(event.relatedTarget instanceof HTMLElement) || !this.tabbables(true).includes(event.relatedTarget))) {
|
|
17
|
+
if (this.open && !(event.relatedTarget instanceof HTMLElement)) {
|
|
32
18
|
this.toggleOptions(false);
|
|
33
19
|
}
|
|
34
20
|
};
|
|
35
|
-
this.
|
|
21
|
+
this.keyDownHandler = (event) => {
|
|
22
|
+
if (!(event.target instanceof HTMLElement)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
36
25
|
if (event.defaultPrevented || !this.open) {
|
|
37
26
|
return;
|
|
38
27
|
}
|
|
39
28
|
switch (event.key) {
|
|
40
29
|
case "Tab":
|
|
41
30
|
if (event.shiftKey) {
|
|
42
|
-
this.
|
|
31
|
+
this.moveFocusToPrevious(event.target);
|
|
43
32
|
}
|
|
44
33
|
else {
|
|
45
|
-
this.
|
|
34
|
+
this.moveFocusToNext(event.target);
|
|
46
35
|
}
|
|
47
36
|
break;
|
|
48
37
|
case "ArrowDown":
|
|
49
|
-
this.
|
|
38
|
+
this.moveFocusToNext(event.target, false);
|
|
50
39
|
break;
|
|
51
40
|
case "ArrowUp":
|
|
52
|
-
this.
|
|
41
|
+
this.moveFocusToPrevious(event.target, false);
|
|
53
42
|
break;
|
|
54
43
|
case "Escape":
|
|
55
44
|
this.escape();
|
|
56
45
|
break;
|
|
57
|
-
case " ":
|
|
58
|
-
if (event.target instanceof HTMLElement) {
|
|
59
|
-
event.target.click();
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
46
|
default:
|
|
63
47
|
return;
|
|
64
48
|
}
|
|
65
49
|
event.preventDefault();
|
|
66
50
|
};
|
|
67
51
|
this.escape = () => {
|
|
68
|
-
this.button
|
|
52
|
+
this.button?.focus();
|
|
69
53
|
this.toggleOptions(false);
|
|
70
54
|
};
|
|
55
|
+
const { state } = createStore({
|
|
56
|
+
checkable: false,
|
|
57
|
+
});
|
|
58
|
+
this.dropdownMenuState = state;
|
|
71
59
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return button;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the menu items are checkable.
|
|
62
|
+
*/
|
|
63
|
+
get checkable() {
|
|
64
|
+
return this.dropdownMenuState.checkable;
|
|
78
65
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
set checkable(value) {
|
|
67
|
+
this.dropdownMenuState.checkable = value || false;
|
|
68
|
+
forceUpdate(this.host);
|
|
82
69
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
this.button.id = v4();
|
|
88
|
-
}
|
|
89
|
-
const dropdownOptionsElement = this.host.querySelector(".dso-dropdown-options");
|
|
90
|
-
if (!(dropdownOptionsElement instanceof HTMLElement)) {
|
|
91
|
-
throw new Error("dropdown options element is not instanceof HTMLElement");
|
|
92
|
-
}
|
|
93
|
-
dropdownOptionsElement.setAttribute("role", "menu");
|
|
94
|
-
dropdownOptionsElement.setAttribute("aria-labelledby", this.button.id);
|
|
95
|
-
for (const ul of Array.from(this.host.getElementsByTagName("ul"))) {
|
|
96
|
-
ul.setAttribute("role", "group");
|
|
97
|
-
for (const li of Array.from(ul.getElementsByTagName("li"))) {
|
|
98
|
-
li.setAttribute("role", "none");
|
|
99
|
-
}
|
|
70
|
+
dsoClickHandler(event) {
|
|
71
|
+
event.stopPropagation();
|
|
72
|
+
if (this.open && event.target instanceof HTMLElement) {
|
|
73
|
+
this.toggleOptions(false);
|
|
100
74
|
}
|
|
101
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
async _getState() {
|
|
80
|
+
return this.dropdownMenuState;
|
|
81
|
+
}
|
|
82
|
+
dropdownMenuTabbables(withButton) {
|
|
83
|
+
const menuItems = this.host.isConnected
|
|
84
|
+
? Array.from(this.host.querySelectorAll(":scope > dso-dropdown-menu-group > dso-dropdown-menu-item"))
|
|
85
|
+
: [];
|
|
86
|
+
return withButton ? [this.host, ...menuItems] : menuItems;
|
|
87
|
+
}
|
|
102
88
|
componentDidRender() {
|
|
103
|
-
|
|
104
|
-
for (const tab of this.host.isConnected ? tabbable(li) : []) {
|
|
105
|
-
tab.setAttribute("role", this.checkable ? "menuitemradio" : "menuitem");
|
|
106
|
-
if (this.checkable) {
|
|
107
|
-
tab.setAttribute("aria-checked", li.classList.contains("dso-checked").toString());
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
this.button.setAttribute("aria-expanded", this.open ? "true" : "false");
|
|
112
|
-
if (this.popoverElement && !this.cleanUp) {
|
|
89
|
+
if (this.button && this.popoverElement && !this.cleanUp) {
|
|
113
90
|
const element = this.popoverElement;
|
|
114
|
-
|
|
115
|
-
|
|
91
|
+
const referenceElement = this.button;
|
|
92
|
+
this.cleanUp = autoUpdate(referenceElement, element, () => {
|
|
93
|
+
computePosition(referenceElement, element, {
|
|
116
94
|
strategy: "fixed",
|
|
117
95
|
middleware: [
|
|
118
|
-
offset(
|
|
96
|
+
offset(2),
|
|
119
97
|
flip({
|
|
120
|
-
padding:
|
|
98
|
+
padding: 2,
|
|
121
99
|
}),
|
|
122
100
|
],
|
|
123
|
-
placement:
|
|
101
|
+
placement: "bottom-start",
|
|
124
102
|
}).then(({ x, y }) => {
|
|
125
103
|
Object.assign(element.style, {
|
|
126
104
|
left: `${x}px`,
|
|
@@ -130,51 +108,55 @@ const DropdownMenu = class {
|
|
|
130
108
|
});
|
|
131
109
|
}
|
|
132
110
|
}
|
|
133
|
-
onClick(event) {
|
|
134
|
-
const composedPath = event.composedPath();
|
|
135
|
-
if (this.isToggleButtonEvent(composedPath)) {
|
|
136
|
-
this.toggleOptions();
|
|
137
|
-
}
|
|
138
|
-
else if (this.open && this.isMenuItemEvent(composedPath)) {
|
|
139
|
-
this.toggleOptions(false);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
isToggleButtonEvent(composedPath) {
|
|
143
|
-
return composedPath.includes(this.button);
|
|
144
|
-
}
|
|
145
|
-
isMenuItemEvent(composedPath) {
|
|
146
|
-
return composedPath.includes(this.host) && !this.isToggleButtonEvent(composedPath);
|
|
147
|
-
}
|
|
148
111
|
toggleOptions(force) {
|
|
149
112
|
this.open = force ?? !this.open;
|
|
150
113
|
if (this.popoverElement?.isConnected) {
|
|
151
|
-
this.popoverElement
|
|
114
|
+
this.popoverElement.togglePopover(this.open);
|
|
115
|
+
}
|
|
116
|
+
if (this.open) {
|
|
117
|
+
requestAnimationFrame(() => this.moveFocusTo(this.firstItem(false)));
|
|
152
118
|
}
|
|
153
119
|
if (!this.open && this.cleanUp) {
|
|
154
120
|
this.cleanUp();
|
|
155
121
|
this.cleanUp = undefined;
|
|
156
122
|
}
|
|
157
123
|
}
|
|
158
|
-
connectedCallback() {
|
|
159
|
-
this.host.addEventListener("keydown", this.keyDownListener);
|
|
160
|
-
}
|
|
161
124
|
disconnectedCallback() {
|
|
162
|
-
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
163
125
|
this.toggleOptions(false);
|
|
164
126
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
127
|
+
get lastItem() {
|
|
128
|
+
return this.dropdownMenuTabbables(true).at(-1);
|
|
129
|
+
}
|
|
130
|
+
firstItem(withButton) {
|
|
131
|
+
return this.dropdownMenuTabbables(withButton)[0];
|
|
132
|
+
}
|
|
133
|
+
moveFocusToPrevious(focussedElement, withButton = true) {
|
|
134
|
+
const tabbables = this.dropdownMenuTabbables(withButton);
|
|
135
|
+
const index = tabbables.findIndex((element) => element === focussedElement);
|
|
136
|
+
const next = this.dropdownMenuTabbables(withButton)[index - 1] ?? this.lastItem;
|
|
137
|
+
this.moveFocusTo(next);
|
|
138
|
+
}
|
|
139
|
+
moveFocusToNext(focussedElement, withButton = true) {
|
|
140
|
+
const tabbables = this.dropdownMenuTabbables(withButton);
|
|
141
|
+
const index = tabbables.findIndex((element) => element === focussedElement);
|
|
142
|
+
const next = this.dropdownMenuTabbables(withButton)[index + 1] ?? this.firstItem(withButton);
|
|
143
|
+
this.moveFocusTo(next);
|
|
144
|
+
}
|
|
145
|
+
moveFocusTo(element) {
|
|
146
|
+
if (!element) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (element === this.host && this.button) {
|
|
150
|
+
this.button.focus();
|
|
151
|
+
return;
|
|
170
152
|
}
|
|
171
|
-
|
|
172
|
-
|
|
153
|
+
if ("_dsoFocus" in element) {
|
|
154
|
+
element._dsoFocus();
|
|
173
155
|
}
|
|
174
|
-
tabbables[nextIndex]?.focus();
|
|
175
156
|
}
|
|
176
157
|
render() {
|
|
177
|
-
|
|
158
|
+
const buttonId = v4();
|
|
159
|
+
return (h(Host, { key: '04b9d28b55a06ae6f13811c0dd905c05ad92de25', onFocusout: this.focusOutListener, onKeyDown: this.keyDownHandler }, this.label && (h("button", { key: 'c096f5279d24ad7969f9cc18c24db374d314204f', id: buttonId, class: `dso-${this.variant}`, type: "button", onClick: () => this.toggleOptions(), "aria-expanded": this.open.toString(), "aria-haspopup": "menu", ref: (element) => (this.button = element) }, this.label, h("dso-icon", { key: '861e2eb587415cd092487e3de7438fc884ceffe4', icon: this.open ? "chevron-up" : "chevron-down" }))), h("div", { key: '8470a79b40f303020eb698c4f6727f1143fe398f', popover: "manual", class: "dso-dropdown-options", "aria-labelledby": buttonId, role: "menu", ref: (element) => (this.popoverElement = element) }, h("slot", { key: '0832da4107efa630d368c171348da1b9fb47cab6' }))));
|
|
178
160
|
}
|
|
179
161
|
get host() { return getElement(this); }
|
|
180
162
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h, r as registerInstance, d as createEvent, f as forceUpdate, a as Host, F as Fragment, g as getElement } from './index-
|
|
1
|
+
import { h, r as registerInstance, d as createEvent, f as forceUpdate, a as Host, F as Fragment, g as getElement } from './index-pqfDfKeZ.js';
|
|
2
2
|
import { a as autoUpdate, c as computePosition, o as offset, f as flip } from './floating-ui.dom-zRaH89Qj.js';
|
|
3
3
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
4
|
-
import { t as tabbable } from './index.esm-
|
|
4
|
+
import { t as tabbable } from './index.esm-B7w6tF4K.js';
|
|
5
5
|
import { g as getActiveElement } from './get-active-element-BWkWD1Z2.js';
|
|
6
|
-
import { i as i18n } from './i18n-
|
|
6
|
+
import { i as i18n } from './i18n-CUWMAyh7.js';
|
|
7
7
|
import { i as isModifiedEvent } from './is-modified-event-Hgv-pDpy.js';
|
|
8
|
-
import { v as v4 } from './v4-
|
|
8
|
+
import { v as v4 } from './v4-BF0_OXTe.js';
|
|
9
9
|
|
|
10
10
|
const translations = {
|
|
11
11
|
en: {
|
|
@@ -115,11 +115,24 @@ const Header = class {
|
|
|
115
115
|
};
|
|
116
116
|
this.menuItemElementRefs = [];
|
|
117
117
|
this.text = i18n(() => this.host, translations);
|
|
118
|
-
this.
|
|
118
|
+
this.flushResize = () => {
|
|
119
|
+
this.resizeFrameId = undefined;
|
|
120
|
+
if (!this.host.isConnected) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
119
123
|
this.resetVisibleMenuItems();
|
|
120
124
|
this.toggleOptions(false);
|
|
121
125
|
this.dropdownOptionsOffset = 0;
|
|
122
126
|
forceUpdate(this.host);
|
|
127
|
+
};
|
|
128
|
+
this.scheduleResize = () => {
|
|
129
|
+
if (this.resizeFrameId !== undefined) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
this.resizeFrameId = requestAnimationFrame(this.flushResize);
|
|
133
|
+
};
|
|
134
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
135
|
+
this.scheduleResize();
|
|
123
136
|
});
|
|
124
137
|
this.focusOutListener = (event) => {
|
|
125
138
|
if (this.open &&
|
|
@@ -199,6 +212,10 @@ const Header = class {
|
|
|
199
212
|
}
|
|
200
213
|
disconnectedCallback() {
|
|
201
214
|
this.resizeObserver.disconnect();
|
|
215
|
+
if (this.resizeFrameId !== undefined) {
|
|
216
|
+
cancelAnimationFrame(this.resizeFrameId);
|
|
217
|
+
this.resizeFrameId = undefined;
|
|
218
|
+
}
|
|
202
219
|
this.toggleOptions(false);
|
|
203
220
|
}
|
|
204
221
|
componentDidRender() {
|
|
@@ -235,7 +252,7 @@ const Header = class {
|
|
|
235
252
|
}
|
|
236
253
|
}
|
|
237
254
|
render() {
|
|
238
|
-
return (h(Host, { key: '
|
|
255
|
+
return (h(Host, { key: '99c692979885d3c2bc1f0f6950b1395fdd233c85', "is-compact": this.isCompact }, h("div", { key: '328e012a746752be0d8531d0f5b0a905a07eb825', class: "dso-header" }, h("div", { key: 'f84877cdd45325fcc7b5a5093fd40f3de83f7a6e', class: "logo-container" }, h("slot", { key: '915ff23b15413931ab9f334b46b2b3f7740706d4', name: "logo" })), this.isCompact ? this.renderCompact() : this.renderNormal())));
|
|
239
256
|
}
|
|
240
257
|
tabbables(withButton) {
|
|
241
258
|
const tabbables = this.dropdownElement ? tabbable(this.dropdownElement) : [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-pqfDfKeZ.js';
|
|
2
2
|
|
|
3
|
-
const highlightBoxCss = () => `*,*::after,*::before{box-sizing:border-box}.dso-step-counter{background-color:#275937;border:8px solid #79b929;border-radius:50%;box-sizing:content-box;inset-inline-start:16px;position:absolute;inset-block-start:-1.5rem;block-size:2rem;inline-size:2rem;color:#fff;font-size:1.25rem;font-weight:500;line-height:2rem;text-align:center}:host{margin-block-start:16px;padding:16px;margin-block-end:24px;block-size:var(--highlight-box-block-size, unset);min-block-size:var(--highlight-box-min-block-size, unset)}:host[has-counter]{block-size:var(--highlight-box-counter-block-size, unset)}:host:not([has-counter]){block-size:var(--highlight-box-nocounter-block-size, unset)}:host{
|
|
3
|
+
const highlightBoxCss = () => `*,*::after,*::before{box-sizing:border-box}.dso-step-counter{background-color:#275937;border:8px solid #79b929;border-radius:50%;box-sizing:content-box;inset-inline-start:16px;position:absolute;inset-block-start:-1.5rem;block-size:2rem;inline-size:2rem;color:#fff;font-size:1.25rem;font-weight:500;line-height:2rem;text-align:center}:host{display:block;container-type:inline-size;position:relative;z-index:1;margin-block-start:16px;padding:16px;margin-block-end:24px;block-size:var(--_dso-highlight-box-block-size, unset);min-block-size:var(--_dso-highlight-box-min-block-size, unset);--_dso-link-list-margin-block-end:0;--_dso-rich-content-margin-block-start:0}:host([has-counter]){block-size:var(--_dso-highlight-box-counter-block-size, unset);margin-block-start:48px;padding-block-start:2.5rem;position:relative}:host(:not([has-counter])){block-size:var(--_dso-highlight-box-nocounter-block-size, unset)}:host(:not([white],[yellow],[border],[green])){--_dso-alert-success-border-color:#39870c;--_dso-alert-error-border-color:#ce3f51;--_dso-alert-info-border-color:#6ca4d9;--_dso-alert-warning-border-color:#dcd400;--_dso-link-color:currentColor;--_dso-link-hover-color:currentColor;--_dso-link-visited-color:currentColor;--_dso-link-download-icon:var(--_dso-di-download-zwart);--_dso-link-extern-icon:var(--_dso-di-external-link-zwart);--_dso-link-phone-icon:var(--_dso-di-call-zwart);--_dso-link-mail-icon:var(--_dso-di-mail-outline-zwart);--_dso-link-list-chevron-icon:var(--_dso-di-chevron-right-zwart);--_dso-icon-button-secondary-active-color:#fff;--_dso-icon-button-secondary-active-background-color:#1f472c;--_dso-icon-button-secondary-toggled-color:#fff;--_dso-icon-button-secondary-toggled-background-color:#275937;--_dso-icon-button-secondary-toggled-hover-background-color:#1b3e27;--_dso-icon-button-tertiary-color:#191919;--_dso-icon-button-tertiary-hover-color:#4c4c4c;--_dso-icon-button-tertiary-active-color:#1f472c;--_dso-icon-button-tertiary-toggled-color:#275937;--_dso-icon-button-tertiary-toggled-hover-color:#1b3e27;--_dso-icon-button-tertiary-disabled-color:#999;--_dso-button-tertiary-download-icon:var(--_dso-di-download-zwart);--_dso-button-tertiary-external-link-icon:var(--_dso-di-external-link-zwart);--_dso-button-tertiary-color:#191919;--_dso-button-tertiary-hover-color:#4c4c4c;--_dso-button-tertiary-active-color:#173521;--_dso-button-tertiary-disabled-color:#999;background-color:#f2f2f2;color:#191919}:host([grey]){--_dso-alert-success-border-color:#39870c;--_dso-alert-error-border-color:#ce3f51;--_dso-alert-info-border-color:#6ca4d9;--_dso-alert-warning-border-color:#dcd400;--_dso-link-color:currentColor;--_dso-link-hover-color:currentColor;--_dso-link-visited-color:currentColor;--_dso-link-download-icon:var(--_dso-di-download-zwart);--_dso-link-extern-icon:var(--_dso-di-external-link-zwart);--_dso-link-phone-icon:var(--_dso-di-call-zwart);--_dso-link-mail-icon:var(--_dso-di-mail-outline-zwart);--_dso-link-list-chevron-icon:var(--_dso-di-chevron-right-zwart);--_dso-icon-button-secondary-active-color:#fff;--_dso-icon-button-secondary-active-background-color:#1f472c;--_dso-icon-button-secondary-toggled-color:#fff;--_dso-icon-button-secondary-toggled-background-color:#275937;--_dso-icon-button-secondary-toggled-hover-background-color:#1b3e27;--_dso-icon-button-tertiary-color:#191919;--_dso-icon-button-tertiary-hover-color:#4c4c4c;--_dso-icon-button-tertiary-active-color:#1f472c;--_dso-icon-button-tertiary-toggled-color:#275937;--_dso-icon-button-tertiary-toggled-hover-color:#1b3e27;--_dso-icon-button-tertiary-disabled-color:#999;--_dso-button-tertiary-download-icon:var(--_dso-di-download-zwart);--_dso-button-tertiary-external-link-icon:var(--_dso-di-external-link-zwart);--_dso-button-tertiary-color:#191919;--_dso-button-tertiary-hover-color:#4c4c4c;--_dso-button-tertiary-active-color:#173521;--_dso-button-tertiary-disabled-color:#999;background-color:#f2f2f2;color:#191919}:host([white]){--_dso-alert-success-border-color:initial;--_dso-alert-error-border-color:initial;--_dso-alert-info-border-color:initial;--_dso-alert-warning-border-color:initial;background-color:#fff;color:#191919}:host([yellow]){--_dso-alert-success-border-color:#39870c;--_dso-alert-error-border-color:#ce3f51;--_dso-alert-info-border-color:#6ca4d9;--_dso-alert-warning-border-color:#dcd400;--_dso-link-color:currentColor;--_dso-link-hover-color:currentColor;--_dso-link-visited-color:currentColor;--_dso-link-download-icon:var(--_dso-di-download-zwart);--_dso-link-extern-icon:var(--_dso-di-external-link-zwart);--_dso-link-phone-icon:var(--_dso-di-call-zwart);--_dso-link-mail-icon:var(--_dso-di-mail-outline-zwart);--_dso-link-list-chevron-icon:var(--_dso-di-chevron-right-zwart);--_dso-icon-button-secondary-active-color:#fff;--_dso-icon-button-secondary-active-background-color:#1f472c;--_dso-icon-button-secondary-toggled-color:#fff;--_dso-icon-button-secondary-toggled-background-color:#275937;--_dso-icon-button-secondary-toggled-hover-background-color:#1b3e27;--_dso-icon-button-tertiary-color:#191919;--_dso-icon-button-tertiary-hover-color:#4c4c4c;--_dso-icon-button-tertiary-active-color:#1f472c;--_dso-icon-button-tertiary-toggled-color:#275937;--_dso-icon-button-tertiary-toggled-hover-color:#1b3e27;--_dso-icon-button-tertiary-disabled-color:#999;--_dso-button-tertiary-download-icon:var(--_dso-di-download-zwart);--_dso-button-tertiary-external-link-icon:var(--_dso-di-external-link-zwart);--_dso-button-tertiary-color:#191919;--_dso-button-tertiary-hover-color:#4c4c4c;--_dso-button-tertiary-active-color:#173521;--_dso-button-tertiary-disabled-color:#999;background-color:#f8f6cc;color:#191919}:host([green]){--_dso-alert-success-border-color:#39870c;--_dso-alert-error-border-color:#ce3f51;--_dso-alert-info-border-color:#6ca4d9;--_dso-alert-warning-border-color:#dcd400;--_dso-link-color:currentColor;--_dso-link-hover-color:currentColor;--_dso-link-visited-color:currentColor;--_dso-link-download-icon:var(--_dso-di-download-zwart);--_dso-link-extern-icon:var(--_dso-di-external-link-zwart);--_dso-link-phone-icon:var(--_dso-di-call-zwart);--_dso-link-mail-icon:var(--_dso-di-mail-outline-zwart);--_dso-link-list-chevron-icon:var(--_dso-di-chevron-right-zwart);--_dso-icon-button-secondary-active-color:#fff;--_dso-icon-button-secondary-active-background-color:#1f472c;--_dso-icon-button-secondary-toggled-color:#fff;--_dso-icon-button-secondary-toggled-background-color:#275937;--_dso-icon-button-secondary-toggled-hover-background-color:#1b3e27;--_dso-icon-button-tertiary-color:#191919;--_dso-icon-button-tertiary-hover-color:#4c4c4c;--_dso-icon-button-tertiary-active-color:#1f472c;--_dso-icon-button-tertiary-toggled-color:#275937;--_dso-icon-button-tertiary-toggled-hover-color:#1b3e27;--_dso-icon-button-tertiary-disabled-color:#999;--_dso-button-tertiary-download-icon:var(--_dso-di-download-zwart);--_dso-button-tertiary-external-link-icon:var(--_dso-di-external-link-zwart);--_dso-button-tertiary-color:#191919;--_dso-button-tertiary-hover-color:#4c4c4c;--_dso-button-tertiary-active-color:#173521;--_dso-button-tertiary-disabled-color:#999;background-color:#ebf3e6;color:#191919}:host([drop-shadow]){box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2)}:host([border]){border:1px solid #ccc;padding:15px}:host([border]:not([grey],[yellow])){--_dso-alert-success-border-color:initial;--_dso-alert-error-border-color:initial;--_dso-alert-info-border-color:initial;--_dso-alert-warning-border-color:initial;background-color:#fff;color:#191919}::slotted([slot=icon]){margin-block-start:0.25rem}::slotted(img.dso-highlight-box-banner){aspect-ratio:2.38/1;margin-inline-start:-16px;margin-inline-end:-16px;margin-block-start:-16px;margin-block-end:8px;object-fit:cover;inline-size:calc(100% + 32px);max-inline-size:unset !important}@container (min-width: 360px) and (max-width: 470px){::slotted(img.dso-highlight-box-banner){aspect-ratio:3/1}}@container (min-width: 471px){::slotted(img.dso-highlight-box-banner){aspect-ratio:3.5/1}}::slotted(:last-child){margin-block-end:0 !important}`;
|
|
4
4
|
|
|
5
5
|
const HighlightBox = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -8,7 +8,7 @@ const HighlightBox = class {
|
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
10
|
const hasCounter = this.step || !!this.element.querySelector("[slot=icon]");
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '27ea4c91bdf1085d84282b362b3f89602746f4fb', "has-counter": hasCounter }, hasCounter && h("div", { key: '3db4a6b3308b31dcac358fdf1780112c87aae8bb', class: "dso-step-counter" }, this.step ?? h("slot", { key: 'dc604c84c19564c8e3d89b9a70aed0b31f56d3ab', name: "icon" })), h("slot", { key: '616840fc714fa75578d93a458f21584975312c2f' })));
|
|
12
12
|
}
|
|
13
13
|
get element() { return getElement(this); }
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, f as forceUpdate, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, f as forceUpdate, h, g as getElement } from './index-pqfDfKeZ.js';
|
|
2
2
|
import { i as isModifiedEvent } from './is-modified-event-Hgv-pDpy.js';
|
|
3
3
|
|
|
4
4
|
const historyItemCss = () => `:host{display:block}*,*::after,*::before{box-sizing:border-box}.history-item{border-block-end:1px solid #e5e5e5;display:flex;gap:8px;inline-size:100%;padding-block:16px;padding-inline:8px}:host(:not([type=waarschuwing])) .history-item:has(.history-item-title a:is(:hover,:focus-visible)){background-color:#f2f2f2}:host([current]:not([type=waarschuwing])) .history-item{background-color:#e5e5e5}:host([type=tijdelijk-regelingdeel]) .history-item-status-message{color:#8b4a6a}:host([type=tijdelijk-regelingdeel-besluit]) .history-item-status-message{color:#8b4a6a}:host([type=waarschuwing]) .history-item-status-message{color:#b62f41}.history-item-date,.history-item-content{display:flex;flex-direction:column}.history-item-date{flex:0 0 90px}.history-item-status-message,.history-item-warning{display:flex}.history-item-status-message dso-icon,.history-item-warning dso-icon{flex-shrink:0;margin-inline-end:8px}.history-item-warning{color:#b62f41}.history-item-title,.history-item-explanation,.history-item-warning{margin-block-start:8px;margin-inline-start:32px}.history-item-title{white-space:nowrap}.history-item-title .title-anchor{color:#275937;font-weight:600;text-decoration:none}.history-item-title .title-anchor:hover{text-decoration:underline}.history-item-title .title-anchor:visited{color:#275937}.history-item-title .history-item-title-content{white-space:normal}.history-item-title dso-icon{margin-inline-start:4px}`;
|
|
@@ -40,7 +40,7 @@ const HistoryItem = class {
|
|
|
40
40
|
return this.host.querySelector("[slot='warning']");
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h("div", { key: '
|
|
43
|
+
return (h("div", { key: '474c6444806883dd74771ec816ccbe01f73075cb', class: "history-item" }, h("div", { key: 'b072bd6ad481699e7ee3a443072dc3569838cc7d', class: "history-item-date" }, h("slot", { key: '34cc965e1782042598f0664a823903feb0a1bb30', name: "date" })), h("div", { key: '0bb62723664c1872acb7cfb3cbc1730d0549ff0d', class: "history-item-content" }, h("div", { key: '794c96ea1f178bfe0d9f8b5f25bcf5eaeb0094b2', class: "history-item-status-message" }, h("dso-icon", { key: 'd2b8aa4961541e6fda528326b0770db9b8054897', icon: this.typeIcons[this.type], "aria-hidden": "true" }), h("slot", { key: '6a51abb28d9bbfae63ab7326ffbadc4b226856b5', name: "status" })), this.titleSlottedElement !== null && this.href && (h("div", { key: '2276718ebfd802475ad7e7ee795eb2cf99ab5dc7', class: "history-item-title" }, h("a", { key: 'bfcacfb7e274ed558b781ffdb3ddf79bd6f834fa', href: this.href, class: "title-anchor", onClick: (e) => this.clickEventHandler(e), "aria-current": this.current ? "true" : undefined }, h("span", { key: '701094aa1a2ea988202cfbcb575daaac002146ce', class: "history-item-title-content" }, h("slot", { key: '53969b617a89882578a155bfe5de0968257796a8', name: "title" })), "\u2060", h("dso-icon", { key: '0589fccf0929ef1cf4bb91575faf4690bb651dd9', icon: "chevron-right", "aria-hidden": "true" })))), this.explanationSlottedElement !== null && (h("div", { key: 'efa0faee5b984d6f83a70c61bfd8fe938b20c655', class: "history-item-explanation" }, h("slot", { key: 'f2a7073ec37e3c9ee101517d1b68c10ff7fa65d8', name: "explanation" }))), this.warningSlottedElement !== null && (h("div", { key: '9296cb878614bbee53a6d3748acfc8715a2689fd', class: "history-item-warning" }, h("dso-icon", { key: 'da4745fbd7fedee971c1fef991fedf45189232bf', icon: "status-warning-red-solid", role: "img", "aria-label": "Waarschuwing" }), h("slot", { key: '836da80c55e8e5ff605b62bca756e458a589a745', name: "warning" }))))));
|
|
44
44
|
}
|
|
45
45
|
get host() { return getElement(this); }
|
|
46
46
|
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-pqfDfKeZ.js';
|
|
2
|
+
import { p as positionTooltip } from './position-tooltip.function-DoXRpCfQ.js';
|
|
3
|
+
import { T as Tooltip } from './tooltip.functional-component-CsWjK64w.js';
|
|
4
|
+
import './floating-ui.dom-zRaH89Qj.js';
|
|
5
|
+
|
|
6
|
+
const iconButtonCss = () => `.dso-tooltip { --_dso-alert-success-border-color: #39870c; --_dso-alert-error-border-color: #ce3f51; --_dso-alert-info-border-color: #6ca4d9; --_dso-alert-warning-border-color: #dcd400; --_dso-link-color: currentColor; --_dso-link-hover-color: currentColor; --_dso-link-visited-color: currentColor; --_dso-link-download-icon: var(--_dso-di-download-wit); --_dso-link-extern-icon: var(--_dso-di-external-link-wit); --_dso-link-phone-icon: var(--_dso-di-call-wit); --_dso-link-mail-icon: var(--_dso-di-mail-outline-wit); --_dso-link-list-chevron-icon: var(--_dso-di-chevron-right-wit); --_dso-icon-button-secondary-active-color: #fff; --_dso-icon-button-secondary-active-background-color: rgba(255, 255, 255, 0.4); --_dso-icon-button-secondary-toggled-color: #fff; --_dso-icon-button-secondary-toggled-background-color: rgba(255, 255, 255, 0.2); --_dso-icon-button-secondary-toggled-hover-background-color: rgba(255, 255, 255, 0.3); --_dso-icon-button-tertiary-color: #f2f2f2; --_dso-icon-button-tertiary-hover-color: #fff; --_dso-icon-button-tertiary-active-color: rgba(255, 255, 255, 0.4); --_dso-icon-button-tertiary-toggled-color: #fff; --_dso-icon-button-tertiary-toggled-hover-color: rgba(255, 255, 255, 0.3); --_dso-icon-button-tertiary-disabled-color: #b2b2b2; --_dso-button-tertiary-download-icon: var(--_dso-di-download-wit); --_dso-button-tertiary-external-link-icon: var(--_dso-di-external-link-wit); --_dso-button-primary-background-color: #fff; --_dso-button-primary-hover-background-color: rgba(255, 255, 255, 0.8); --_dso-button-primary-active-background-color: #f2f2f2; --_dso-button-primary-disabled-background-color: rgba(255, 255, 255, 0.6); --_dso-button-primary-border-color: #fff; --_dso-button-primary-hover-border-color: rgba(255, 255, 255, 0.8); --_dso-button-primary-active-border-color: #f2f2f2; --_dso-button-primary-disabled-border-color: rgba(255, 255, 255, 0.6); --_dso-button-primary-color: #191919; --_dso-button-primary-hover-color: #191919; --_dso-button-primary-active-color: #191919; --_dso-button-primary-disabled-color: #666; --_dso-button-secondary-background-color: none; --_dso-button-secondary-hover-background-color: rgba(255, 255, 255, 0.2); --_dso-button-secondary-active-background-color: rgba(255, 255, 255, 0.4); --_dso-button-secondary-disabled-background-color: none; --_dso-button-secondary-border-color: #fff; --_dso-button-secondary-hover-border-color: #fff; --_dso-button-secondary-active-border-color: rgba(255, 255, 255, 0.4); --_dso-button-secondary-disabled-border-color: rgba(255, 255, 255, 0.7); --_dso-button-secondary-color: #fff; --_dso-button-secondary-hover-color: #fff; --_dso-button-secondary-active-color: #fff; --_dso-button-secondary-disabled-color: rgba(255, 255, 255, 0.7); --_dso-button-tertiary-color: #fff; --_dso-button-tertiary-hover-color: #fff; --_dso-button-tertiary-active-color: #fff; --_dso-button-tertiary-disabled-color: #b2b2b2; background-color: #666; color: #fff; border-radius: 4px; overflow: unset; margin: 0; border: 0; padding: 0; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); opacity: 0; visibility: hidden; max-inline-size: 320px; } .dso-tooltip .tooltip-inner { --_dso-span-role-paragraph-margin-block: 8px; --_dso-alert-success-border-color: #39870c; --_dso-alert-error-border-color: #ce3f51; --_dso-alert-info-border-color: #6ca4d9; --_dso-alert-warning-border-color: #dcd400; --_dso-link-color: currentColor; --_dso-link-hover-color: currentColor; --_dso-link-visited-color: currentColor; --_dso-link-download-icon: var(--_dso-di-download-wit); --_dso-link-extern-icon: var(--_dso-di-external-link-wit); --_dso-link-phone-icon: var(--_dso-di-call-wit); --_dso-link-mail-icon: var(--_dso-di-mail-outline-wit); --_dso-link-list-chevron-icon: var(--_dso-di-chevron-right-wit); --_dso-icon-button-secondary-active-color: #fff; --_dso-icon-button-secondary-active-background-color: rgba(255, 255, 255, 0.4); --_dso-icon-button-secondary-toggled-color: #fff; --_dso-icon-button-secondary-toggled-background-color: rgba(255, 255, 255, 0.2); --_dso-icon-button-secondary-toggled-hover-background-color: rgba(255, 255, 255, 0.3); --_dso-icon-button-tertiary-color: #f2f2f2; --_dso-icon-button-tertiary-hover-color: #fff; --_dso-icon-button-tertiary-active-color: rgba(255, 255, 255, 0.4); --_dso-icon-button-tertiary-toggled-color: #fff; --_dso-icon-button-tertiary-toggled-hover-color: rgba(255, 255, 255, 0.3); --_dso-icon-button-tertiary-disabled-color: #b2b2b2; --_dso-button-tertiary-download-icon: var(--_dso-di-download-wit); --_dso-button-tertiary-external-link-icon: var(--_dso-di-external-link-wit); --_dso-button-primary-background-color: #fff; --_dso-button-primary-hover-background-color: rgba(255, 255, 255, 0.8); --_dso-button-primary-active-background-color: #f2f2f2; --_dso-button-primary-disabled-background-color: rgba(255, 255, 255, 0.6); --_dso-button-primary-border-color: #fff; --_dso-button-primary-hover-border-color: rgba(255, 255, 255, 0.8); --_dso-button-primary-active-border-color: #f2f2f2; --_dso-button-primary-disabled-border-color: rgba(255, 255, 255, 0.6); --_dso-button-primary-color: #191919; --_dso-button-primary-hover-color: #191919; --_dso-button-primary-active-color: #191919; --_dso-button-primary-disabled-color: #666; --_dso-button-secondary-background-color: none; --_dso-button-secondary-hover-background-color: rgba(255, 255, 255, 0.2); --_dso-button-secondary-active-background-color: rgba(255, 255, 255, 0.4); --_dso-button-secondary-disabled-background-color: none; --_dso-button-secondary-border-color: #fff; --_dso-button-secondary-hover-border-color: #fff; --_dso-button-secondary-active-border-color: rgba(255, 255, 255, 0.4); --_dso-button-secondary-disabled-border-color: rgba(255, 255, 255, 0.7); --_dso-button-secondary-color: #fff; --_dso-button-secondary-hover-color: #fff; --_dso-button-secondary-active-color: #fff; --_dso-button-secondary-disabled-color: rgba(255, 255, 255, 0.7); --_dso-button-tertiary-color: #fff; --_dso-button-tertiary-hover-color: #fff; --_dso-button-tertiary-active-color: #fff; --_dso-button-tertiary-disabled-color: #b2b2b2; background-color: #666; color: #fff; font-family: Asap, sans-serif; font-size: 1rem; font-weight: normal; padding-block: 0; padding-inline: 8px; border-radius: 4px; line-height: 1.5; } .dso-tooltip .tooltip-arrow { position: absolute; background-color: #666; border-start-start-radius: 4px; block-size: 8px; inline-size: 8px; pointer-events: none; z-index: -1; } :host { display: inline-block; line-height: 1; position: var(--_dso-icon-button-position, static); inset-block-start: var(--_dso-icon-button-inset-block-start, 0); inset-inline-end: var(--_dso-icon-button-inset-inline-end, 0); } *, *::after, *::before { box-sizing: border-box; } .dso-secondary { display: inline-block; font-size: 1em; font-weight: 500; margin-block-end: 0; text-decoration: none; touch-action: manipulation; text-align: var(--_dso-button-text-align, start); user-select: none; vertical-align: middle; background-clip: padding-box; } .dso-secondary:focus, .dso-secondary:focus-visible { outline-offset: 2px; } .dso-secondary:active { outline: 0; } .dso-secondary.extern::after, .dso-secondary.download::after { content: ""; display: inline-block; } .dso-secondary { background-color: var(--_dso-button-secondary-background-color, #fff); border-color: var(--_dso-button-secondary-border-color, #39870c); color: var(--_dso-button-secondary-color, #39870c); float: var(--_dso-button-float-secondary, none); border-width: 1px; border-style: solid; border-radius: 4px; line-height: 1.5; min-inline-size: 56px; inline-size: var(--_dso-button-inline-size, auto); padding-block: 11px; padding-inline: 15px; } .dso-secondary:hover { background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce); border-color: var(--_dso-button-secondary-hover-border-color, #275937); color: var(--_dso-button-secondary-hover-color, #275937); float: var(--_dso-button-float-secondary, none); } .dso-secondary:active { background-color: var(--_dso-button-secondary-active-background-color, #275937); border-color: var(--_dso-button-secondary-active-border-color, #275937); color: var(--_dso-button-secondary-active-color, #fff); float: var(--_dso-button-float-secondary, none); } .dso-secondary[disabled], .dso-secondary[disabled]:hover { background-color: var(--_dso-button-secondary-disabled-background-color, #fff); border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d); color: var(--_dso-button-secondary-disabled-color, #afcf9d); float: var(--_dso-button-float-secondary, none); } .dso-secondary.dso-small { line-height: 1rem; } .dso-secondary.dso-small dso-icon, .dso-secondary.dso-small.extern::after, .dso-secondary.dso-small.download::after, .dso-secondary.dso-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } .dso-secondary.dso-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } .dso-secondary.dso-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } .dso-secondary.dso-extra-small { line-height: 1rem; } .dso-secondary.dso-extra-small dso-icon, .dso-secondary.dso-extra-small.extern::after, .dso-secondary.dso-extra-small.download::after, .dso-secondary.dso-extra-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } .dso-secondary.dso-extra-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } .dso-secondary.dso-extra-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } .dso-secondary.dso-extra-small { padding-block: 9px; } .dso-secondary dso-icon:has(+ span:not(.sr-only)) { margin-inline-start: -8px; } .dso-secondary span:not(.sr-only) + dso-icon { margin-inline-start: 8px; margin-inline-end: -8px; } .dso-secondary dso-icon + span:not(.sr-only) { margin-inline-start: 8px; } .dso-secondary.dso-spinner-left[disabled], .dso-secondary.dso-spinner-right[disabled] { background-color: #fff; border-color: #39870c; color: #39870c; } .dso-secondary.dso-spinner-left::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-end: 8px; } .dso-secondary.dso-spinner-left:not([disabled]):hover::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-end: 8px; } .dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before { block-size: 16px; inline-size: 16px; } .dso-secondary.dso-spinner-right::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-start: 8px; } .dso-secondary.dso-spinner-right:not([disabled]):hover::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-start: 8px; } .dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after { block-size: 16px; inline-size: 16px; } .dso-secondary { padding-inline: calc(8px - 1px); padding-block: calc(8px - 1px); border-start-start-radius: var(--_dso-icon-button-border-start-start-radius, 4px); border-start-end-radius: var(--_dso-icon-button-border-start-end-radius, 4px); border-end-end-radius: var(--_dso-icon-button-border-end-end-radius, 4px); border-end-start-radius: var(--_dso-icon-button-border-end-start-radius, 4px); border-block-end-width: var(--_dso-icon-button-border-block-end-width, 1px); border-inline-end-width: var(--_dso-icon-button-border-inline-end-width, 1px); } .dso-secondary:not([disabled]):active { background-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); border-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); color: var(--_dso-icon-button-secondary-active-color, #fff); } .dso-secondary:not([disabled]).toggled { background-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937); border-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937); color: var(--_dso-icon-button-secondary-toggled-color, #fff); } .dso-secondary:not([disabled]).toggled:hover { background-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27); border-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27); } .dso-secondary:not([disabled]).toggled:active { background-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); border-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); color: var(--_dso-icon-button-secondary-active-color, #fff); } .dso-tertiary { display: inline-block; font-size: 1em; font-weight: 500; margin-block-end: 0; text-decoration: none; touch-action: manipulation; text-align: var(--_dso-button-text-align, start); user-select: none; vertical-align: middle; background-clip: padding-box; } .dso-tertiary:focus, .dso-tertiary:focus-visible { outline-offset: 2px; } .dso-tertiary:active { outline: 0; } .dso-tertiary.extern::after, .dso-tertiary.download::after { content: ""; display: inline-block; } .dso-tertiary { padding-inline: 0; padding-block: 0; color: var(--_dso-icon-button-tertiary-color, #39870c); background-color: transparent; border: 0; } .dso-tertiary:not([disabled]):hover { color: var(--_dso-icon-button-tertiary-hover-color, var(--_dso-icon-button-tertiary-color, #275937)); } .dso-tertiary:not([disabled]):active { color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #1f472c)); } .dso-tertiary:not([disabled]).toggled { color: var(--_dso-icon-button-tertiary-toggled-color, var(--_dso-icon-button-tertiary-color, #275937)); } .dso-tertiary:not([disabled]).toggled:hover { color: var(--_dso-icon-button-tertiary-toggled-hover-color, var(--_dso-icon-button-tertiary-color, #1b3e27)); } .dso-tertiary:not([disabled]).toggled:active { color: var(--_dso-icon-button-tertiary-active-color, var(--_dso-icon-button-tertiary-color, #1f472c)); } .dso-tertiary[disabled] { color: var(--_dso-icon-button-tertiary-disabled-color, var(--_dso-icon-button-tertiary-color, #afcf9d)); } .dso-map { display: inline-block; font-size: 1em; font-weight: 500; margin-block-end: 0; text-decoration: none; touch-action: manipulation; text-align: var(--_dso-button-text-align, start); user-select: none; vertical-align: middle; background-clip: padding-box; } .dso-map:focus, .dso-map:focus-visible { outline-offset: 2px; } .dso-map:active { outline: 0; } .dso-map { background-color: var(--_dso-button-secondary-background-color, #fff); border-color: var(--_dso-button-secondary-border-color, #39870c); color: var(--_dso-button-secondary-color, #39870c); float: var(--_dso-button-float-secondary, none); border-width: 1px; border-style: solid; border-radius: 4px; line-height: 1.5; min-inline-size: 56px; inline-size: var(--_dso-button-inline-size, auto); padding-block: 11px; padding-inline: 15px; } .dso-map:hover { background-color: var(--_dso-button-secondary-hover-background-color, #d7e7ce); border-color: var(--_dso-button-secondary-hover-border-color, #275937); color: var(--_dso-button-secondary-hover-color, #275937); float: var(--_dso-button-float-secondary, none); } .dso-map:active { background-color: var(--_dso-button-secondary-active-background-color, #275937); border-color: var(--_dso-button-secondary-active-border-color, #275937); color: var(--_dso-button-secondary-active-color, #fff); float: var(--_dso-button-float-secondary, none); } .dso-map[disabled], .dso-map[disabled]:hover { background-color: var(--_dso-button-secondary-disabled-background-color, #fff); border-color: var(--_dso-button-secondary-disabled-border-color, #afcf9d); color: var(--_dso-button-secondary-disabled-color, #afcf9d); float: var(--_dso-button-float-secondary, none); } .dso-map.dso-small { line-height: 1rem; } .dso-map.dso-small dso-icon, .dso-map.dso-small.extern::after, .dso-map.dso-small.download::after, .dso-map.dso-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } .dso-map.dso-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } .dso-map.dso-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } .dso-map.dso-extra-small { line-height: 1rem; } .dso-map.dso-extra-small dso-icon, .dso-map.dso-extra-small.extern::after, .dso-map.dso-extra-small.download::after, .dso-map.dso-extra-small.dso-spinner::before { margin-block-end: -4px; margin-block-start: -4px; } .dso-map.dso-extra-small.dso-spinner-left::before { block-size: 16px; inline-size: 16px; } .dso-map.dso-extra-small.dso-spinner-right::after { block-size: 16px; inline-size: 16px; } .dso-map.dso-extra-small { padding-block: 9px; } .dso-map dso-icon:has(+ span:not(.sr-only)) { margin-inline-start: -8px; } .dso-map span:not(.sr-only) + dso-icon { margin-inline-start: 8px; margin-inline-end: -8px; } .dso-map dso-icon + span:not(.sr-only) { margin-inline-start: 8px; } .dso-map.dso-spinner-left[disabled], .dso-map.dso-spinner-right[disabled] { background-color: #fff; border-color: #39870c; color: #39870c; } .dso-map.dso-spinner-left::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-end: 8px; } .dso-map.dso-spinner-left:not([disabled]):hover::before { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-end: 8px; } .dso-map.dso-spinner-left:not([disabled]).dso-small:hover::before { block-size: 16px; inline-size: 16px; } .dso-map.dso-spinner-right::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-start: 8px; } .dso-map.dso-spinner-right:not([disabled]):hover::after { background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 24 24' 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: 42.4; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 42.4; %7D 50%25 %7B stroke-dashoffset: 10.4; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 42.4; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='1.6' stroke-linecap='butt' cx='12' cy='12' r='7.2'%3E%3C/circle%3E%3C/svg%3E"); background-repeat: no-repeat; content: ""; display: inline-block; block-size: 24px; vertical-align: top; inline-size: 24px; margin-inline-start: 8px; } .dso-map.dso-spinner-right:not([disabled]).dso-small:hover::after { block-size: 16px; inline-size: 16px; } .dso-map { box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5); border: 0; font-weight: 600; margin-inline-end: 16px; padding-block: 8px; padding-inline: 16px; white-space: nowrap; } .dso-map:focus, .dso-map:focus-visible { outline-offset: -1px; } .dso-map:has(span.sr-only):has(dso-icon) { padding: 8px; min-inline-size: auto; block-size: 40px; inline-size: 40px; } .dso-map { padding-inline: 8px; padding-block: 8px; border: 0; margin-inline-end: 0; box-shadow: var(--_dso-icon-button-map-box-shadow, 0 0 8px 0 rgba(0, 0, 0, 0.3)); border-start-start-radius: var(--_dso-icon-button-border-start-start-radius, 4px); border-start-end-radius: var(--_dso-icon-button-border-start-end-radius, 4px); border-end-end-radius: var(--_dso-icon-button-border-end-end-radius, 4px); border-end-start-radius: var(--_dso-icon-button-border-end-start-radius, 4px); } .dso-map:not([disabled]):active { background-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); border-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); color: var(--_dso-icon-button-secondary-active-color, #fff); } .dso-map:not([disabled]).toggled { background-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937); border-color: var(--_dso-icon-button-secondary-toggled-background-color, #275937); color: var(--_dso-icon-button-secondary-toggled-color, #fff); } .dso-map:not([disabled]).toggled:hover { background-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27); border-color: var(--_dso-icon-button-secondary-toggled-hover-background-color, #1b3e27); } .dso-map:not([disabled]).toggled:active { background-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); border-color: var(--_dso-icon-button-secondary-active-background-color, #1f472c); } .icon-button { min-inline-size: auto; cursor: pointer; } .icon-button[disabled] { cursor: default; }`;
|
|
7
|
+
|
|
8
|
+
const IconButton = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
registerInstance(this, hostRef);
|
|
11
|
+
this.dsoClick = createEvent(this, "dsoClick", 3);
|
|
12
|
+
this.lastClickTime = 0;
|
|
13
|
+
this.tooltipShowDelay = 500;
|
|
14
|
+
/**
|
|
15
|
+
* The variant of the Icon Button.
|
|
16
|
+
*/
|
|
17
|
+
this.variant = "secondary";
|
|
18
|
+
/**
|
|
19
|
+
* The placement of the tooltip on hover and focus of the Icon Button.
|
|
20
|
+
*/
|
|
21
|
+
this.tooltipPlacement = "top";
|
|
22
|
+
/**
|
|
23
|
+
* To disable the Icon Button
|
|
24
|
+
*/
|
|
25
|
+
this.disabled = false;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the button is toggled.
|
|
28
|
+
*/
|
|
29
|
+
this.toggled = false;
|
|
30
|
+
this.handleShowTooltip = () => {
|
|
31
|
+
if (this.disabled) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
// Don't show the tooltip if the button is clicked within 500ms of the last click
|
|
35
|
+
if (Date.now() - this.lastClickTime < this.tooltipShowDelay) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
this.clearToolTipTimeout();
|
|
39
|
+
this.tooltipTimeout = window.setTimeout(() => {
|
|
40
|
+
if (!this.tooltipElRef?.isConnected) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
this.tooltipElRef?.showPopover();
|
|
44
|
+
if (!this.cleanUpFunction && this.buttonElRef && this.tooltipElRef && this.tooltipArrowElRef) {
|
|
45
|
+
this.cleanUpFunction = positionTooltip({
|
|
46
|
+
referenceElement: this.buttonElRef,
|
|
47
|
+
tipRef: this.tooltipElRef,
|
|
48
|
+
tipArrowRef: this.tooltipArrowElRef,
|
|
49
|
+
placementTip: this.tooltipPlacement,
|
|
50
|
+
topPositionSmallViewPort: false,
|
|
51
|
+
halfMainAxisOffset: false,
|
|
52
|
+
forceVisible: true,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}, this.tooltipShowDelay);
|
|
56
|
+
};
|
|
57
|
+
this.clearToolTipTimeout = () => {
|
|
58
|
+
if (this.tooltipTimeout) {
|
|
59
|
+
clearTimeout(this.tooltipTimeout);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
this.handleHideTooltip = () => {
|
|
63
|
+
this.clearToolTipTimeout();
|
|
64
|
+
if (this.tooltipElRef?.isConnected && this.tooltipElRef.matches(":popover-open")) {
|
|
65
|
+
this.tooltipElRef.hidePopover();
|
|
66
|
+
}
|
|
67
|
+
this.cleanUpTooltip();
|
|
68
|
+
};
|
|
69
|
+
this.handleClick = (event) => {
|
|
70
|
+
this.lastClickTime = Date.now();
|
|
71
|
+
this.handleHideTooltip();
|
|
72
|
+
this.dsoClick.emit({ originalEvent: event, toggled: !this.toggled });
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Focuses the button.
|
|
77
|
+
*/
|
|
78
|
+
async setFocus() {
|
|
79
|
+
this.buttonElRef?.focus();
|
|
80
|
+
}
|
|
81
|
+
cleanUpTooltip() {
|
|
82
|
+
this.cleanUpFunction?.();
|
|
83
|
+
this.cleanUpFunction = undefined;
|
|
84
|
+
}
|
|
85
|
+
disconnectedCallback() {
|
|
86
|
+
this.clearToolTipTimeout();
|
|
87
|
+
this.cleanUpTooltip();
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return (h("button", { key: 'f5126ed513558dc038953ceb269dd42017aa3ae1', ref: (element) => (this.buttonElRef = element), type: "button", disabled: this.disabled, "aria-pressed": this.toggled ? "true" : "false", "aria-label": this.label, class: `icon-button dso-${this.variant} ${this.toggled ? "toggled" : ""}`, onMouseEnter: this.handleShowTooltip, onMouseLeave: this.handleHideTooltip, onFocus: this.handleShowTooltip, onBlur: this.handleHideTooltip, onClick: this.handleClick }, h("dso-icon", { key: '3d976d48260235aea14788f699ff9573a322012f', icon: this.icon, "aria-hidden": "true" }), h(Tooltip, { key: 'ba2facdf1eea48606b3fd45102074a0d199fe9b4', tipElementRef: (element) => (this.tooltipElRef = element), tipArrowElementRef: (element) => (this.tooltipArrowElRef = element) }, this.label)));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
IconButton.style = iconButtonCss();
|
|
94
|
+
|
|
95
|
+
export { IconButton as dso_icon_button };
|