@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,122 +1,100 @@
|
|
|
1
1
|
import { autoUpdate, computePosition, flip, offset } from "@floating-ui/dom";
|
|
2
|
-
import { Host, h } from "@stencil/core";
|
|
3
|
-
import {
|
|
2
|
+
import { Host, forceUpdate, h, } from "@stencil/core";
|
|
3
|
+
import { createStore } from "@stencil/store";
|
|
4
4
|
import { v4 as uuidv4 } from "uuid";
|
|
5
|
-
import { getActiveElement } from "../../utils/get-active-element";
|
|
6
5
|
export class DropdownMenu {
|
|
7
6
|
constructor() {
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
10
|
-
* This attribute is reflected and mutable.
|
|
8
|
+
* The variant of the Button to toggle the menu
|
|
11
9
|
*/
|
|
10
|
+
this.variant = "secondary";
|
|
12
11
|
this.open = false;
|
|
13
|
-
/**
|
|
14
|
-
* Alignment of the dropdown
|
|
15
|
-
*/
|
|
16
|
-
this.dropdownAlign = "left";
|
|
17
|
-
/**
|
|
18
|
-
* Space between button and dropdown options
|
|
19
|
-
*/
|
|
20
|
-
this.dropdownOptionsOffset = 2;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the menu is checkable.
|
|
23
|
-
*/
|
|
24
|
-
this.checkable = false;
|
|
25
12
|
this.focusOutListener = (event) => {
|
|
26
|
-
if (this.open &&
|
|
27
|
-
(!(event.relatedTarget instanceof HTMLElement) || !this.tabbables(true).includes(event.relatedTarget))) {
|
|
13
|
+
if (this.open && !(event.relatedTarget instanceof HTMLElement)) {
|
|
28
14
|
this.toggleOptions(false);
|
|
29
15
|
}
|
|
30
16
|
};
|
|
31
|
-
this.
|
|
17
|
+
this.keyDownHandler = (event) => {
|
|
18
|
+
if (!(event.target instanceof HTMLElement)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
32
21
|
if (event.defaultPrevented || !this.open) {
|
|
33
22
|
return;
|
|
34
23
|
}
|
|
35
24
|
switch (event.key) {
|
|
36
25
|
case "Tab":
|
|
37
26
|
if (event.shiftKey) {
|
|
38
|
-
this.
|
|
27
|
+
this.moveFocusToPrevious(event.target);
|
|
39
28
|
}
|
|
40
29
|
else {
|
|
41
|
-
this.
|
|
30
|
+
this.moveFocusToNext(event.target);
|
|
42
31
|
}
|
|
43
32
|
break;
|
|
44
33
|
case "ArrowDown":
|
|
45
|
-
this.
|
|
34
|
+
this.moveFocusToNext(event.target, false);
|
|
46
35
|
break;
|
|
47
36
|
case "ArrowUp":
|
|
48
|
-
this.
|
|
37
|
+
this.moveFocusToPrevious(event.target, false);
|
|
49
38
|
break;
|
|
50
39
|
case "Escape":
|
|
51
40
|
this.escape();
|
|
52
41
|
break;
|
|
53
|
-
case " ":
|
|
54
|
-
if (event.target instanceof HTMLElement) {
|
|
55
|
-
event.target.click();
|
|
56
|
-
}
|
|
57
|
-
break;
|
|
58
42
|
default:
|
|
59
43
|
return;
|
|
60
44
|
}
|
|
61
45
|
event.preventDefault();
|
|
62
46
|
};
|
|
63
47
|
this.escape = () => {
|
|
64
|
-
this.button
|
|
48
|
+
this.button?.focus();
|
|
65
49
|
this.toggleOptions(false);
|
|
66
50
|
};
|
|
51
|
+
const { state } = createStore({
|
|
52
|
+
checkable: false,
|
|
53
|
+
});
|
|
54
|
+
this.dropdownMenuState = state;
|
|
67
55
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return button;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the menu items are checkable.
|
|
58
|
+
*/
|
|
59
|
+
get checkable() {
|
|
60
|
+
return this.dropdownMenuState.checkable;
|
|
74
61
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
set checkable(value) {
|
|
63
|
+
this.dropdownMenuState.checkable = value || false;
|
|
64
|
+
forceUpdate(this.host);
|
|
78
65
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
this.
|
|
82
|
-
|
|
83
|
-
this.button.id = uuidv4();
|
|
84
|
-
}
|
|
85
|
-
const dropdownOptionsElement = this.host.querySelector(".dso-dropdown-options");
|
|
86
|
-
if (!(dropdownOptionsElement instanceof HTMLElement)) {
|
|
87
|
-
throw new Error("dropdown options element is not instanceof HTMLElement");
|
|
88
|
-
}
|
|
89
|
-
dropdownOptionsElement.setAttribute("role", "menu");
|
|
90
|
-
dropdownOptionsElement.setAttribute("aria-labelledby", this.button.id);
|
|
91
|
-
for (const ul of Array.from(this.host.getElementsByTagName("ul"))) {
|
|
92
|
-
ul.setAttribute("role", "group");
|
|
93
|
-
for (const li of Array.from(ul.getElementsByTagName("li"))) {
|
|
94
|
-
li.setAttribute("role", "none");
|
|
95
|
-
}
|
|
66
|
+
dsoClickHandler(event) {
|
|
67
|
+
event.stopPropagation();
|
|
68
|
+
if (this.open && event.target instanceof HTMLElement) {
|
|
69
|
+
this.toggleOptions(false);
|
|
96
70
|
}
|
|
97
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
async _getState() {
|
|
76
|
+
return this.dropdownMenuState;
|
|
77
|
+
}
|
|
78
|
+
dropdownMenuTabbables(withButton) {
|
|
79
|
+
const menuItems = this.host.isConnected
|
|
80
|
+
? Array.from(this.host.querySelectorAll(":scope > dso-dropdown-menu-group > dso-dropdown-menu-item"))
|
|
81
|
+
: [];
|
|
82
|
+
return withButton ? [this.host, ...menuItems] : menuItems;
|
|
83
|
+
}
|
|
98
84
|
componentDidRender() {
|
|
99
|
-
|
|
100
|
-
for (const tab of this.host.isConnected ? tabbable(li) : []) {
|
|
101
|
-
tab.setAttribute("role", this.checkable ? "menuitemradio" : "menuitem");
|
|
102
|
-
if (this.checkable) {
|
|
103
|
-
tab.setAttribute("aria-checked", li.classList.contains("dso-checked").toString());
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
this.button.setAttribute("aria-expanded", this.open ? "true" : "false");
|
|
108
|
-
if (this.popoverElement && !this.cleanUp) {
|
|
85
|
+
if (this.button && this.popoverElement && !this.cleanUp) {
|
|
109
86
|
const element = this.popoverElement;
|
|
110
|
-
|
|
111
|
-
|
|
87
|
+
const referenceElement = this.button;
|
|
88
|
+
this.cleanUp = autoUpdate(referenceElement, element, () => {
|
|
89
|
+
computePosition(referenceElement, element, {
|
|
112
90
|
strategy: "fixed",
|
|
113
91
|
middleware: [
|
|
114
|
-
offset(
|
|
92
|
+
offset(2),
|
|
115
93
|
flip({
|
|
116
|
-
padding:
|
|
94
|
+
padding: 2,
|
|
117
95
|
}),
|
|
118
96
|
],
|
|
119
|
-
placement:
|
|
97
|
+
placement: "bottom-start",
|
|
120
98
|
}).then(({ x, y }) => {
|
|
121
99
|
Object.assign(element.style, {
|
|
122
100
|
left: `${x}px`,
|
|
@@ -126,51 +104,55 @@ export class DropdownMenu {
|
|
|
126
104
|
});
|
|
127
105
|
}
|
|
128
106
|
}
|
|
129
|
-
onClick(event) {
|
|
130
|
-
const composedPath = event.composedPath();
|
|
131
|
-
if (this.isToggleButtonEvent(composedPath)) {
|
|
132
|
-
this.toggleOptions();
|
|
133
|
-
}
|
|
134
|
-
else if (this.open && this.isMenuItemEvent(composedPath)) {
|
|
135
|
-
this.toggleOptions(false);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
isToggleButtonEvent(composedPath) {
|
|
139
|
-
return composedPath.includes(this.button);
|
|
140
|
-
}
|
|
141
|
-
isMenuItemEvent(composedPath) {
|
|
142
|
-
return composedPath.includes(this.host) && !this.isToggleButtonEvent(composedPath);
|
|
143
|
-
}
|
|
144
107
|
toggleOptions(force) {
|
|
145
108
|
this.open = force ?? !this.open;
|
|
146
109
|
if (this.popoverElement?.isConnected) {
|
|
147
|
-
this.popoverElement
|
|
110
|
+
this.popoverElement.togglePopover(this.open);
|
|
111
|
+
}
|
|
112
|
+
if (this.open) {
|
|
113
|
+
requestAnimationFrame(() => this.moveFocusTo(this.firstItem(false)));
|
|
148
114
|
}
|
|
149
115
|
if (!this.open && this.cleanUp) {
|
|
150
116
|
this.cleanUp();
|
|
151
117
|
this.cleanUp = undefined;
|
|
152
118
|
}
|
|
153
119
|
}
|
|
154
|
-
connectedCallback() {
|
|
155
|
-
this.host.addEventListener("keydown", this.keyDownListener);
|
|
156
|
-
}
|
|
157
120
|
disconnectedCallback() {
|
|
158
|
-
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
159
121
|
this.toggleOptions(false);
|
|
160
122
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
123
|
+
get lastItem() {
|
|
124
|
+
return this.dropdownMenuTabbables(true).at(-1);
|
|
125
|
+
}
|
|
126
|
+
firstItem(withButton) {
|
|
127
|
+
return this.dropdownMenuTabbables(withButton)[0];
|
|
128
|
+
}
|
|
129
|
+
moveFocusToPrevious(focussedElement, withButton = true) {
|
|
130
|
+
const tabbables = this.dropdownMenuTabbables(withButton);
|
|
131
|
+
const index = tabbables.findIndex((element) => element === focussedElement);
|
|
132
|
+
const next = this.dropdownMenuTabbables(withButton)[index - 1] ?? this.lastItem;
|
|
133
|
+
this.moveFocusTo(next);
|
|
134
|
+
}
|
|
135
|
+
moveFocusToNext(focussedElement, withButton = true) {
|
|
136
|
+
const tabbables = this.dropdownMenuTabbables(withButton);
|
|
137
|
+
const index = tabbables.findIndex((element) => element === focussedElement);
|
|
138
|
+
const next = this.dropdownMenuTabbables(withButton)[index + 1] ?? this.firstItem(withButton);
|
|
139
|
+
this.moveFocusTo(next);
|
|
140
|
+
}
|
|
141
|
+
moveFocusTo(element) {
|
|
142
|
+
if (!element) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (element === this.host && this.button) {
|
|
146
|
+
this.button.focus();
|
|
147
|
+
return;
|
|
166
148
|
}
|
|
167
|
-
|
|
168
|
-
|
|
149
|
+
if ("_dsoFocus" in element) {
|
|
150
|
+
element._dsoFocus();
|
|
169
151
|
}
|
|
170
|
-
tabbables[nextIndex]?.focus();
|
|
171
152
|
}
|
|
172
153
|
render() {
|
|
173
|
-
|
|
154
|
+
const buttonId = uuidv4();
|
|
155
|
+
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' }))));
|
|
174
156
|
}
|
|
175
157
|
static get is() { return "dso-dropdown-menu"; }
|
|
176
158
|
static get encapsulation() { return "shadow"; }
|
|
@@ -186,9 +168,9 @@ export class DropdownMenu {
|
|
|
186
168
|
}
|
|
187
169
|
static get properties() {
|
|
188
170
|
return {
|
|
189
|
-
"
|
|
171
|
+
"checkable": {
|
|
190
172
|
"type": "boolean",
|
|
191
|
-
"mutable":
|
|
173
|
+
"mutable": false,
|
|
192
174
|
"complexType": {
|
|
193
175
|
"original": "boolean",
|
|
194
176
|
"resolved": "boolean",
|
|
@@ -198,82 +180,95 @@ export class DropdownMenu {
|
|
|
198
180
|
"optional": false,
|
|
199
181
|
"docs": {
|
|
200
182
|
"tags": [],
|
|
201
|
-
"text": "Whether the menu
|
|
183
|
+
"text": "Whether the menu items are checkable."
|
|
202
184
|
},
|
|
203
|
-
"getter":
|
|
204
|
-
"setter":
|
|
185
|
+
"getter": true,
|
|
186
|
+
"setter": true,
|
|
205
187
|
"reflect": true,
|
|
206
|
-
"attribute": "
|
|
207
|
-
"defaultValue": "false"
|
|
188
|
+
"attribute": "checkable"
|
|
208
189
|
},
|
|
209
|
-
"
|
|
190
|
+
"label": {
|
|
210
191
|
"type": "string",
|
|
211
192
|
"mutable": false,
|
|
212
193
|
"complexType": {
|
|
213
|
-
"original": "
|
|
214
|
-
"resolved": "
|
|
194
|
+
"original": "string | undefined",
|
|
195
|
+
"resolved": "string | undefined",
|
|
215
196
|
"references": {}
|
|
216
197
|
},
|
|
217
198
|
"required": false,
|
|
218
199
|
"optional": false,
|
|
219
200
|
"docs": {
|
|
220
201
|
"tags": [],
|
|
221
|
-
"text": "
|
|
202
|
+
"text": "The label of the Dropdown Menu Button"
|
|
222
203
|
},
|
|
223
204
|
"getter": false,
|
|
224
205
|
"setter": false,
|
|
225
|
-
"reflect":
|
|
226
|
-
"attribute": "
|
|
227
|
-
"defaultValue": "\"left\""
|
|
206
|
+
"reflect": true,
|
|
207
|
+
"attribute": "label"
|
|
228
208
|
},
|
|
229
|
-
"
|
|
230
|
-
"type": "
|
|
209
|
+
"variant": {
|
|
210
|
+
"type": "string",
|
|
231
211
|
"mutable": false,
|
|
232
212
|
"complexType": {
|
|
233
|
-
"original": "
|
|
234
|
-
"resolved": "
|
|
213
|
+
"original": "\"primary\" | \"secondary\" | \"tertiary\"",
|
|
214
|
+
"resolved": "\"primary\" | \"secondary\" | \"tertiary\"",
|
|
235
215
|
"references": {}
|
|
236
216
|
},
|
|
237
217
|
"required": false,
|
|
238
218
|
"optional": false,
|
|
239
219
|
"docs": {
|
|
240
220
|
"tags": [],
|
|
241
|
-
"text": "
|
|
221
|
+
"text": "The variant of the Button to toggle the menu"
|
|
242
222
|
},
|
|
243
223
|
"getter": false,
|
|
244
224
|
"setter": false,
|
|
245
|
-
"reflect":
|
|
246
|
-
"attribute": "
|
|
247
|
-
"defaultValue": "
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
225
|
+
"reflect": true,
|
|
226
|
+
"attribute": "variant",
|
|
227
|
+
"defaultValue": "\"secondary\""
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
static get states() {
|
|
232
|
+
return {
|
|
233
|
+
"open": {}
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
static get methods() {
|
|
237
|
+
return {
|
|
238
|
+
"_getState": {
|
|
252
239
|
"complexType": {
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"references": {
|
|
240
|
+
"signature": "() => Promise<DropdownMenuInternalState>",
|
|
241
|
+
"parameters": [],
|
|
242
|
+
"references": {
|
|
243
|
+
"Promise": {
|
|
244
|
+
"location": "global",
|
|
245
|
+
"id": "global::Promise"
|
|
246
|
+
},
|
|
247
|
+
"DropdownMenuInternalState": {
|
|
248
|
+
"location": "import",
|
|
249
|
+
"path": "./dropdown-menu.interfaces",
|
|
250
|
+
"id": "src/components/dropdown-menu/dropdown-menu.interfaces.ts::DropdownMenuInternalState",
|
|
251
|
+
"referenceLocation": "DropdownMenuInternalState"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"return": "Promise<DropdownMenuInternalState>"
|
|
256
255
|
},
|
|
257
|
-
"required": false,
|
|
258
|
-
"optional": false,
|
|
259
256
|
"docs": {
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
"attribute": "checkable",
|
|
267
|
-
"defaultValue": "false"
|
|
257
|
+
"text": "",
|
|
258
|
+
"tags": [{
|
|
259
|
+
"name": "internal",
|
|
260
|
+
"text": undefined
|
|
261
|
+
}]
|
|
262
|
+
}
|
|
268
263
|
}
|
|
269
264
|
};
|
|
270
265
|
}
|
|
271
266
|
static get elementRef() { return "host"; }
|
|
272
267
|
static get listeners() {
|
|
273
268
|
return [{
|
|
274
|
-
"name": "
|
|
275
|
-
"method": "
|
|
276
|
-
"target":
|
|
269
|
+
"name": "dsoClick",
|
|
270
|
+
"method": "dsoClickHandler",
|
|
271
|
+
"target": undefined,
|
|
277
272
|
"capture": false,
|
|
278
273
|
"passive": false
|
|
279
274
|
}];
|
|
@@ -36,10 +36,10 @@ export class Expandable {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '81871d9f6ecc0d82d23bc4053c56ae8e926103a0', "aria-hidden": this.open ? "false" : "true", class: clsx({
|
|
40
40
|
"dso-animate-ready": this.enableAnimation,
|
|
41
41
|
"dso-hide": this.isClosed,
|
|
42
|
-
}) }, h("div", { key: '
|
|
42
|
+
}) }, h("div", { key: '634796c608f209081fcf15656df273f1f2cc5d3b', class: "slot-container" }, h("slot", { key: '898f4edc0f9d35de7d8d35fdbcde576aeac9e503' }))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "dso-expandable"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,11 +86,24 @@ export class Header {
|
|
|
86
86
|
};
|
|
87
87
|
this.menuItemElementRefs = [];
|
|
88
88
|
this.text = i18n(() => this.host, translations);
|
|
89
|
-
this.
|
|
89
|
+
this.flushResize = () => {
|
|
90
|
+
this.resizeFrameId = undefined;
|
|
91
|
+
if (!this.host.isConnected) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
90
94
|
this.resetVisibleMenuItems();
|
|
91
95
|
this.toggleOptions(false);
|
|
92
96
|
this.dropdownOptionsOffset = 0;
|
|
93
97
|
forceUpdate(this.host);
|
|
98
|
+
};
|
|
99
|
+
this.scheduleResize = () => {
|
|
100
|
+
if (this.resizeFrameId !== undefined) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
this.resizeFrameId = requestAnimationFrame(this.flushResize);
|
|
104
|
+
};
|
|
105
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
106
|
+
this.scheduleResize();
|
|
94
107
|
});
|
|
95
108
|
this.focusOutListener = (event) => {
|
|
96
109
|
if (this.open &&
|
|
@@ -170,6 +183,10 @@ export class Header {
|
|
|
170
183
|
}
|
|
171
184
|
disconnectedCallback() {
|
|
172
185
|
this.resizeObserver.disconnect();
|
|
186
|
+
if (this.resizeFrameId !== undefined) {
|
|
187
|
+
cancelAnimationFrame(this.resizeFrameId);
|
|
188
|
+
this.resizeFrameId = undefined;
|
|
189
|
+
}
|
|
173
190
|
this.toggleOptions(false);
|
|
174
191
|
}
|
|
175
192
|
componentDidRender() {
|
|
@@ -206,7 +223,7 @@ export class Header {
|
|
|
206
223
|
}
|
|
207
224
|
}
|
|
208
225
|
render() {
|
|
209
|
-
return (h(Host, { key: '
|
|
226
|
+
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())));
|
|
210
227
|
}
|
|
211
228
|
tabbables(withButton) {
|
|
212
229
|
const tabbables = this.dropdownElement ? tabbable(this.dropdownElement) : [];
|