@dso-toolkit/core 79.0.1 → 79.1.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 +19 -13
- package/dist/bundle/dso-accordion-section.js.map +1 -1
- package/dist/bundle/dso-accordion.js +1 -1
- package/dist/bundle/dso-action-list-item.js +3 -3
- package/dist/bundle/dso-action-list.js +2 -2
- package/dist/bundle/dso-action-list.js.map +1 -1
- package/dist/bundle/dso-advanced-select.js +15 -9
- package/dist/bundle/dso-advanced-select.js.map +1 -1
- package/dist/bundle/dso-alert.js +1 -1
- package/dist/bundle/dso-annotation-activiteit.js +14 -8
- package/dist/bundle/dso-annotation-activiteit.js.map +1 -1
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +14 -8
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/bundle/dso-annotation-kaart.js +5 -5
- package/dist/bundle/dso-annotation-kaart.js.map +1 -1
- package/dist/bundle/dso-annotation-locatie.js +1 -1
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +14 -8
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js.map +1 -1
- package/dist/bundle/dso-attachments-counter.js +1 -1
- package/dist/bundle/dso-autosuggest.js +4 -4
- package/dist/bundle/dso-badge.js +1 -1
- package/dist/bundle/dso-banner.js +2 -2
- package/dist/bundle/dso-button-group.js +1 -1
- package/dist/bundle/dso-card-container.js +1 -1
- package/dist/bundle/dso-card.js +3 -3
- package/dist/bundle/dso-contact-information.js +1 -1
- package/dist/bundle/dso-date-picker-legacy.js +4 -4
- package/dist/bundle/dso-date-picker.js +1 -1
- package/dist/bundle/dso-document-card.js +2 -2
- package/dist/bundle/dso-document-component.js +1 -1
- package/dist/bundle/dso-dropdown-menu.js +1 -1
- package/dist/bundle/dso-header.js +3 -3
- package/dist/bundle/dso-highlight-box.js +1 -1
- package/dist/bundle/dso-history-item.d.ts +11 -0
- package/dist/bundle/dso-history-item.js +79 -0
- package/dist/bundle/dso-history-item.js.map +1 -0
- package/dist/bundle/dso-icon-button.d.ts +11 -0
- package/dist/bundle/dso-icon-button.js +9 -0
- package/dist/bundle/dso-icon-button.js.map +1 -0
- 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 +2 -2
- package/dist/bundle/dso-label.js +1 -1
- package/dist/bundle/dso-legend-item.js +14 -8
- package/dist/bundle/dso-legend-item.js.map +1 -1
- package/dist/bundle/dso-list-button.js +12 -6
- package/dist/bundle/dso-list-button.js.map +1 -1
- package/dist/bundle/dso-logo.js +1 -1
- package/dist/bundle/dso-map-base-layers.js +12 -6
- package/dist/bundle/dso-map-base-layers.js.map +1 -1
- package/dist/bundle/dso-map-controls.js +5 -5
- package/dist/bundle/dso-map-controls.js.map +1 -1
- package/dist/bundle/dso-map-overlays.js +12 -6
- package/dist/bundle/dso-map-overlays.js.map +1 -1
- package/dist/bundle/dso-mark-bar.js +16 -10
- package/dist/bundle/dso-mark-bar.js.map +1 -1
- package/dist/bundle/dso-modal.js +11 -5
- package/dist/bundle/dso-modal.js.map +1 -1
- package/dist/bundle/dso-onboarding-tip.js +19 -98
- package/dist/bundle/dso-onboarding-tip.js.map +1 -1
- package/dist/bundle/dso-ozon-content.js +1 -1
- package/dist/bundle/dso-pagination.js +2 -2
- package/dist/bundle/dso-panel.js +1 -1
- package/dist/bundle/dso-plekinfo-card.js +3 -3
- package/dist/bundle/dso-plekinfo-card.js.map +1 -1
- package/dist/bundle/dso-progress-bar.js +1 -1
- package/dist/bundle/dso-progress-indicator.js +1 -1
- package/dist/bundle/dso-project-item.js +11 -5
- package/dist/bundle/dso-project-item.js.map +1 -1
- 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-selectable.js +1 -1
- package/dist/bundle/dso-skiplink.js +2 -2
- package/dist/bundle/dso-slide-toggle.js +1 -1
- package/dist/bundle/dso-survey-rating.js +12 -6
- package/dist/bundle/dso-survey-rating.js.map +1 -1
- package/dist/bundle/dso-table.js +1 -1
- package/dist/bundle/dso-tabs.js +1 -1
- package/dist/bundle/dso-tijdreis-banner.d.ts +11 -0
- package/dist/bundle/dso-tijdreis-banner.js +42 -0
- package/dist/bundle/dso-tijdreis-banner.js.map +1 -0
- package/dist/bundle/dso-toggletip.js +1 -1
- package/dist/bundle/dso-tooltip.js +1 -1
- package/dist/bundle/dso-tree-view.js +3 -3
- package/dist/bundle/dso-viewer-grid.js +6 -16
- package/dist/bundle/dso-viewer-grid.js.map +1 -1
- package/dist/bundle/dsot-document-component-demo.js +26 -20
- package/dist/bundle/dsot-document-component-demo.js.map +1 -1
- package/dist/bundle/index.js +6 -0
- package/dist/bundle/index.js.map +1 -1
- package/dist/bundle/p--HbwCvQM.js +220 -0
- package/dist/bundle/p--HbwCvQM.js.map +1 -0
- package/dist/bundle/{p-DV5Lbo3I.js → p-8gGambFe.js} +3 -3
- package/dist/bundle/{p-DV5Lbo3I.js.map → p-8gGambFe.js.map} +1 -1
- package/dist/bundle/{p-DAJsc8Jk.js → p-B1X31Uiw.js} +3 -3
- package/dist/bundle/{p-DAJsc8Jk.js.map → p-B1X31Uiw.js.map} +1 -1
- package/dist/bundle/{p-DZfdc557.js → p-BOnELf-b.js} +3 -3
- package/dist/bundle/{p-DZfdc557.js.map → p-BOnELf-b.js.map} +1 -1
- package/dist/bundle/{p-BkcOHFAA.js → p-BaN2YPhJ.js} +13 -7
- package/dist/bundle/p-BaN2YPhJ.js.map +1 -0
- package/dist/bundle/p-CF3bHKY3.js +49 -0
- package/dist/bundle/p-CF3bHKY3.js.map +1 -0
- package/dist/bundle/p-CMO4UirQ.js +258 -0
- package/dist/bundle/p-CMO4UirQ.js.map +1 -0
- package/dist/bundle/p-CTcIwB2o.js +1196 -0
- package/dist/bundle/p-CTcIwB2o.js.map +1 -0
- package/dist/bundle/p-CVzuETs2.js +169 -0
- package/dist/bundle/p-CVzuETs2.js.map +1 -0
- package/dist/bundle/{p-bHDMgCsa.js → p-CaZRQPYD.js} +13 -7
- package/dist/bundle/p-CaZRQPYD.js.map +1 -0
- package/dist/bundle/{p-MqBCENXQ.js → p-D-Dm2Gh7.js} +3 -3
- package/dist/bundle/{p-MqBCENXQ.js.map → p-D-Dm2Gh7.js.map} +1 -1
- package/dist/bundle/{p-CTAU8JKT.js → p-DZgHugpQ.js} +4 -4
- package/dist/bundle/{p-CTAU8JKT.js.map → p-DZgHugpQ.js.map} +1 -1
- package/dist/bundle/{p-CPTuKxMx.js → p-DaQXGkxw.js} +4 -4
- package/dist/bundle/{p-CPTuKxMx.js.map → p-DaQXGkxw.js.map} +1 -1
- package/dist/bundle/p-Dd-GhTkt.js +84 -0
- package/dist/bundle/p-Dd-GhTkt.js.map +1 -0
- package/dist/bundle/p-DdLngpp0.js +154 -0
- package/dist/bundle/p-DdLngpp0.js.map +1 -0
- package/dist/bundle/{p-DiF7pR4b.js → p-DqxeHQ0G.js} +19 -11
- package/dist/bundle/p-DqxeHQ0G.js.map +1 -0
- package/dist/bundle/{p-BwZvADPO.js → p-Du2B4UJi.js} +16 -10
- package/dist/bundle/p-Du2B4UJi.js.map +1 -0
- package/dist/bundle/{p-BTM2KYEF.js → p-Dwv_hVo9.js} +8 -9
- package/dist/bundle/p-Dwv_hVo9.js.map +1 -0
- package/dist/bundle/p-LlmPNkbk.js +36 -0
- package/dist/bundle/{p-D6l-JcXE.js.map → p-LlmPNkbk.js.map} +1 -1
- package/dist/bundle/p-Vek1sFf5.js +115 -0
- package/dist/bundle/{p-DlnqD3t9.js.map → p-Vek1sFf5.js.map} +1 -1
- package/dist/bundle/{p-D_cMLm_E.js → p-ZUzIHCVc.js} +3 -3
- package/dist/bundle/p-ZUzIHCVc.js.map +1 -0
- package/dist/bundle/{p-zc-ygIe_.js → p-bxV-YGVG.js} +4 -4
- package/dist/bundle/{p-zc-ygIe_.js.map → p-bxV-YGVG.js.map} +1 -1
- package/dist/bundle/{p-BgQ0LxOv.js → p-oGRWyph0.js} +3 -3
- package/dist/bundle/{p-BgQ0LxOv.js.map → p-oGRWyph0.js.map} +1 -1
- package/dist/bundle/p-yEg3EESJ.js +70 -0
- package/dist/bundle/p-yEg3EESJ.js.map +1 -0
- package/dist/cjs/dso-accordion-section.cjs.entry.js +3 -3
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-accordion-section.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list-item.cjs.entry.js +2 -2
- package/dist/cjs/dso-action-list.cjs.entry.js +2 -2
- package/dist/cjs/dso-action-list.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-action-list.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-advanced-select.cjs.entry.js +3 -3
- package/dist/cjs/dso-advanced-select.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-advanced-select.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +20 -17
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +2 -2
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-activiteit.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +2 -2
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js +2 -2
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-kaart.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-annotation-locatie.dso-document-component.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +4 -4
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +2 -2
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +1 -1
- package/dist/cjs/dso-banner.cjs.entry.js +2 -2
- package/dist/cjs/dso-button-group.cjs.entry.js +1 -1
- package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
- package/dist/cjs/dso-card.cjs.entry.js +2 -2
- package/dist/cjs/dso-contact-information.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +3 -3
- package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/dso-document-card.cjs.entry.js +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-history-item.cjs.entry.js +54 -0
- package/dist/cjs/dso-history-item.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-history-item.entry.cjs.js.map +1 -0
- package/dist/cjs/dso-icon-button.cjs.entry.js +100 -0
- package/dist/cjs/dso-icon-button.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-icon-button.entry.cjs.js.map +1 -0
- package/dist/cjs/dso-icon.cjs.entry.js +6 -7
- package/dist/cjs/dso-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-icon.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js +9 -7
- package/dist/cjs/dso-info-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-info-button.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-info.dso-selectable.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +3 -3
- package/dist/cjs/dso-info_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
- package/dist/cjs/dso-label.dso-renvooi.dso-slide-toggle.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-label_3.cjs.entry.js +6 -6
- package/dist/cjs/dso-label_3.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-legend-item.cjs.entry.js +2 -2
- package/dist/cjs/dso-legend-item.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-legend-item.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-list-button.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-controls.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
- package/dist/cjs/dso-mark-bar.cjs.entry.js +8 -8
- package/dist/cjs/dso-mark-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-mark-bar.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +2 -2
- package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-modal.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js +13 -96
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js +2 -2
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-plekinfo-card.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-project-item.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-project-item.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
- package/dist/cjs/dso-scrollable.cjs.entry.js +2 -2
- package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
- package/dist/cjs/dso-survey-rating.cjs.entry.js +3 -3
- package/dist/cjs/dso-survey-rating.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-survey-rating.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dso-tijdreis-banner.cjs.entry.js +20 -0
- package/dist/cjs/dso-tijdreis-banner.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-tijdreis-banner.entry.cjs.js.map +1 -0
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-toggletip.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +6 -16
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-viewer-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/position-tooltip.function-CwmmCHWn.js +102 -0
- package/dist/cjs/position-tooltip.function-CwmmCHWn.js.map +1 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/components/accordion-section.css +4 -0
- package/dist/collection/components/accordion/components/accordion-section.js +2 -2
- package/dist/collection/components/action-list/action-list.css +4 -0
- package/dist/collection/components/action-list/action-list.js +1 -1
- package/dist/collection/components/action-list/components/action-list-item.js +2 -2
- package/dist/collection/components/advanced-select/advanced-select.css +16 -0
- package/dist/collection/components/advanced-select/advanced-select.js +2 -2
- package/dist/collection/components/alert/alert.css +19 -26
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/alert.js.map +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 +8 -0
- package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
- package/dist/collection/components/autosuggest/autosuggest.js +1 -1
- package/dist/collection/components/badge/badge.css +10 -0
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.js +2 -2
- package/dist/collection/components/button-group/button-group.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +3 -3
- package/dist/collection/components/document-card/document-card.js +1 -1
- package/dist/collection/components/document-component/document-component.css +122 -0
- package/dist/collection/components/document-component/document-component.js +1 -1
- package/dist/collection/components/document-component/document-component.js.map +1 -1
- package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/highlight-box/highlight-box.js +1 -1
- package/dist/collection/components/history-item/history-item.css +68 -0
- package/dist/collection/components/history-item/history-item.interfaces.js +2 -0
- package/dist/collection/components/history-item/history-item.interfaces.js.map +1 -0
- package/dist/collection/components/history-item/history-item.js +133 -0
- package/dist/collection/components/history-item/history-item.js.map +1 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +485 -0
- package/dist/collection/components/icon-button/icon-button.interfaces.js +2 -0
- package/dist/collection/components/icon-button/icon-button.interfaces.js.map +1 -0
- package/dist/collection/components/icon-button/icon-button.js +254 -0
- package/dist/collection/components/icon-button/icon-button.js.map +1 -0
- package/dist/collection/components/image-overlay/image-overlay.css +16 -278
- package/dist/collection/components/image-overlay/image-overlay.js +9 -6
- package/dist/collection/components/image-overlay/image-overlay.js.map +1 -1
- package/dist/collection/components/info/info.css +8 -26
- package/dist/collection/components/info/info.js +1 -1
- package/dist/collection/components/info/info.js.map +1 -1
- package/dist/collection/components/info-button/info-button.css +4 -3
- package/dist/collection/components/info-button/info-button.js +8 -6
- package/dist/collection/components/info-button/info-button.js.map +1 -1
- package/dist/collection/components/input-range/input-range.js +2 -2
- package/dist/collection/components/label/label.css +34 -20
- package/dist/collection/components/label/label.js +3 -3
- package/dist/collection/components/label/label.js.map +1 -1
- package/dist/collection/components/legend-item/legend-item.css +21 -86
- package/dist/collection/components/legend-item/legend-item.js +1 -1
- package/dist/collection/components/legend-item/legend-item.js.map +1 -1
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/list-button/list-button.js.map +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 +111 -0
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/map-controls/map-controls.js.map +1 -1
- package/dist/collection/components/map-overlays/map-overlays.js +1 -1
- package/dist/collection/components/mark-bar/mark-bar.css +6 -21
- package/dist/collection/components/mark-bar/mark-bar.js +7 -7
- package/dist/collection/components/mark-bar/mark-bar.js.map +1 -1
- package/dist/collection/components/modal/modal.css +4 -3
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/onboarding-tip/onboarding-tip.css +3 -25
- package/dist/collection/components/onboarding-tip/onboarding-tip.interfaces.js.map +1 -1
- package/dist/collection/components/onboarding-tip/onboarding-tip.js +15 -99
- package/dist/collection/components/onboarding-tip/onboarding-tip.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content.css +150 -1
- package/dist/collection/components/ozon-content/ozon-content.js +1 -1
- package/dist/collection/components/panel/panel.css +23 -11
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/panel.js.map +1 -1
- package/dist/collection/components/plekinfo-card/plekinfo-card.css +8 -0
- package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/project-item/project-item.js +1 -1
- package/dist/collection/components/project-item/project-item.js.map +1 -1
- package/dist/collection/components/renvooi/renvooi.css +8 -0
- package/dist/collection/components/responsive-element/responsive-element.js +1 -1
- package/dist/collection/components/scrollable/scrollable.js +2 -2
- package/dist/collection/components/selectable/selectable.js +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/slide-toggle/slide-toggle.js.map +1 -1
- package/dist/collection/components/survey-rating/survey-rating.css +35 -0
- package/dist/collection/components/survey-rating/survey-rating.js +2 -2
- package/dist/collection/components/table/table.css +111 -0
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tijdreis-banner/tijdreis-banner.css +82 -0
- package/dist/collection/components/tijdreis-banner/tijdreis-banner.js +19 -0
- package/dist/collection/components/tijdreis-banner/tijdreis-banner.js.map +1 -0
- package/dist/collection/components/toggletip/toggletip.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree-view/tree-view.js +1 -1
- package/dist/collection/components/viewer-grid/components/filter-panel.js +1 -1
- package/dist/collection/components/viewer-grid/components/filter-panel.js.map +1 -1
- package/dist/collection/components/viewer-grid/components/main-panel.js +1 -1
- package/dist/collection/components/viewer-grid/components/main-panel.js.map +1 -1
- package/dist/collection/components/viewer-grid/components/overlay.js +1 -1
- package/dist/collection/components/viewer-grid/components/overlay.js.map +1 -1
- package/dist/collection/components/viewer-grid/components/sizing-buttons.js +1 -1
- package/dist/collection/components/viewer-grid/components/sizing-buttons.js.map +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.css +10 -372
- package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
- package/dist/collection/functional-components/tooltip/position-tooltip.function.js +95 -0
- package/dist/collection/functional-components/tooltip/position-tooltip.function.js.map +1 -0
- package/dist/collection/functional-components/tooltip/tooltip.functional-component.js +9 -0
- package/dist/collection/functional-components/tooltip/tooltip.functional-component.js.map +1 -0
- package/dist/collection/functional-components/tooltip/tooltip.interfaces.js +2 -0
- package/dist/collection/functional-components/tooltip/tooltip.interfaces.js.map +1 -0
- package/dist/components/alert.js +10 -4
- package/dist/components/alert.js.map +1 -1
- package/dist/components/annotation-locatie.js +10 -4
- package/dist/components/annotation-locatie.js.map +1 -1
- package/dist/components/attachments-counter.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/badge.js.map +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/document-component.js +14 -8
- package/dist/components/document-component.js.map +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dso-accordion-section.js +15 -9
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-accordion.js +1 -1
- package/dist/components/dso-action-list-item.js +2 -2
- package/dist/components/dso-action-list.js +2 -2
- package/dist/components/dso-action-list.js.map +1 -1
- package/dist/components/dso-advanced-select.js +13 -7
- package/dist/components/dso-advanced-select.js.map +1 -1
- package/dist/components/dso-annotation-activiteit.js +10 -4
- package/dist/components/dso-annotation-activiteit.js.map +1 -1
- package/dist/components/dso-annotation-gebiedsaanwijzing.js +10 -4
- package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/components/dso-annotation-kaart.js +2 -2
- package/dist/components/dso-annotation-kaart.js.map +1 -1
- package/dist/components/dso-annotation-omgevingsnormwaarde.js +10 -4
- package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -1
- package/dist/components/dso-autosuggest.js +1 -1
- package/dist/components/dso-banner.js +2 -2
- package/dist/components/dso-card-container.js +1 -1
- package/dist/components/dso-card.js +2 -2
- package/dist/components/dso-contact-information.js +1 -1
- package/dist/components/dso-date-picker-legacy.js +3 -3
- package/dist/components/dso-date-picker.js +1 -1
- package/dist/components/dso-document-card.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.d.ts +11 -0
- package/dist/components/dso-history-item.js +79 -0
- package/dist/components/dso-history-item.js.map +1 -0
- package/dist/components/dso-icon-button.d.ts +11 -0
- package/dist/components/dso-icon-button.js +9 -0
- package/dist/components/dso-icon-button.js.map +1 -0
- package/dist/components/dso-input-range.js +2 -2
- package/dist/components/dso-legend-item.js +10 -4
- package/dist/components/dso-legend-item.js.map +1 -1
- package/dist/components/dso-list-button.js +9 -3
- package/dist/components/dso-list-button.js.map +1 -1
- package/dist/components/dso-logo.js +1 -1
- package/dist/components/dso-map-base-layers.js +9 -3
- package/dist/components/dso-map-base-layers.js.map +1 -1
- package/dist/components/dso-map-controls.js +2 -2
- package/dist/components/dso-map-controls.js.map +1 -1
- package/dist/components/dso-map-overlays.js +9 -3
- package/dist/components/dso-map-overlays.js.map +1 -1
- package/dist/components/dso-mark-bar.js +16 -10
- package/dist/components/dso-mark-bar.js.map +1 -1
- package/dist/components/dso-modal.js +10 -4
- package/dist/components/dso-modal.js.map +1 -1
- package/dist/components/dso-onboarding-tip.js +19 -98
- package/dist/components/dso-onboarding-tip.js.map +1 -1
- package/dist/components/dso-plekinfo-card.js +2 -2
- package/dist/components/dso-plekinfo-card.js.map +1 -1
- package/dist/components/dso-progress-bar.js +1 -1
- package/dist/components/dso-project-item.js +9 -3
- package/dist/components/dso-project-item.js.map +1 -1
- package/dist/components/dso-skiplink.js +1 -1
- package/dist/components/dso-survey-rating.js +11 -5
- package/dist/components/dso-survey-rating.js.map +1 -1
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tijdreis-banner.d.ts +11 -0
- package/dist/components/dso-tijdreis-banner.js +42 -0
- package/dist/components/dso-tijdreis-banner.js.map +1 -0
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +6 -16
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/dsot-document-component-demo.js +17 -11
- package/dist/components/dsot-document-component-demo.js.map +1 -1
- package/dist/components/icon-button.js +220 -0
- package/dist/components/icon-button.js.map +1 -0
- package/dist/components/icon.js +6 -7
- package/dist/components/icon.js.map +1 -1
- package/dist/components/image-overlay.js +18 -9
- package/dist/components/image-overlay.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/info-button.js +17 -9
- package/dist/components/info-button.js.map +1 -1
- package/dist/components/info.js +10 -4
- package/dist/components/info.js.map +1 -1
- package/dist/components/label.js +12 -6
- package/dist/components/label.js.map +1 -1
- package/dist/components/ozon-content.js +10 -4
- package/dist/components/ozon-content.js.map +1 -1
- package/dist/components/panel.js +10 -4
- package/dist/components/panel.js.map +1 -1
- package/dist/components/progress-indicator.js +1 -1
- package/dist/components/renvooi.js +1 -1
- package/dist/components/renvooi.js.map +1 -1
- package/dist/components/responsive-element.js +1 -1
- package/dist/components/scrollable.js +2 -2
- package/dist/components/selectable.js +9 -3
- package/dist/components/selectable.js.map +1 -1
- package/dist/components/slide-toggle.js +1 -1
- package/dist/components/slide-toggle.js.map +1 -1
- package/dist/components/table.js +2 -2
- package/dist/components/table.js.map +1 -1
- package/dist/components/toggletip.js +9 -3
- package/dist/components/toggletip.js.map +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/dso-toolkit/dso-accordion-section.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-action-list.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-advanced-select.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-annotation-activiteit.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-annotation-gebiedsaanwijzing.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-annotation-kaart.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-annotation-locatie.dso-document-component.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-annotation-omgevingsnormwaarde.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-history-item.entry.esm.js.map +1 -0
- package/dist/dso-toolkit/dso-icon-button.entry.esm.js.map +1 -0
- package/dist/dso-toolkit/dso-icon.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-info-button.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-info.dso-selectable.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-label.dso-renvooi.dso-slide-toggle.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-legend-item.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-list-button.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-map-controls.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-mark-bar.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-modal.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-plekinfo-card.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-project-item.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-survey-rating.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-tijdreis-banner.entry.esm.js.map +1 -0
- package/dist/dso-toolkit/dso-toggletip.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/dso-viewer-grid.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/p-04a52f3c.entry.js +2 -0
- package/dist/dso-toolkit/p-04a52f3c.entry.js.map +1 -0
- package/dist/dso-toolkit/p-0565847a.entry.js +2 -0
- package/dist/dso-toolkit/p-0565847a.entry.js.map +1 -0
- package/dist/dso-toolkit/p-06c5c71d.entry.js +2 -0
- package/dist/dso-toolkit/p-06c5c71d.entry.js.map +1 -0
- package/dist/dso-toolkit/p-0ccf331b.entry.js +2 -0
- package/dist/dso-toolkit/{p-cc1abdf3.entry.js.map → p-0ccf331b.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-ef007619.entry.js → p-1e4f1515.entry.js} +2 -2
- package/dist/dso-toolkit/{p-710a47f1.entry.js → p-1f7492cd.entry.js} +2 -2
- package/dist/dso-toolkit/{p-fb60be4e.entry.js → p-20459167.entry.js} +2 -2
- package/dist/dso-toolkit/{p-0a4afa12.entry.js → p-2512c5f5.entry.js} +2 -2
- package/dist/dso-toolkit/p-2796b6d5.entry.js +2 -0
- package/dist/dso-toolkit/p-2796b6d5.entry.js.map +1 -0
- package/dist/dso-toolkit/p-2f8cc334.entry.js +2 -0
- package/dist/dso-toolkit/p-2f8cc334.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-068320ab.entry.js → p-353feb5d.entry.js} +2 -2
- package/dist/dso-toolkit/p-365e9e81.entry.js +2 -0
- package/dist/dso-toolkit/p-365e9e81.entry.js.map +1 -0
- package/dist/dso-toolkit/p-3fd63c50.entry.js +2 -0
- package/dist/dso-toolkit/{p-2bd67420.entry.js.map → p-3fd63c50.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-4229552b.entry.js +2 -0
- package/dist/dso-toolkit/{p-8936cf2f.entry.js.map → p-4229552b.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-c8ca21c3.entry.js → p-426cf574.entry.js} +2 -2
- package/dist/dso-toolkit/p-45046e40.entry.js +2 -0
- package/dist/dso-toolkit/p-45046e40.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-cd149043.entry.js → p-46de999c.entry.js} +2 -2
- package/dist/dso-toolkit/p-46de999c.entry.js.map +1 -0
- package/dist/dso-toolkit/p-4a4f56ed.entry.js +2 -0
- package/dist/dso-toolkit/{p-f65ace88.entry.js → p-4c1c2071.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d8df33bb.entry.js → p-50292d0e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-71eae744.entry.js → p-57a9ed50.entry.js} +2 -2
- package/dist/dso-toolkit/{p-71eae744.entry.js.map → p-57a9ed50.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-5ab79fb4.entry.js +2 -0
- package/dist/dso-toolkit/p-5ab79fb4.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-b6d75e39.entry.js → p-71c54b0e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f4d66373.entry.js → p-7229ccdf.entry.js} +2 -2
- package/dist/dso-toolkit/p-7229ccdf.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-f5f8682c.entry.js → p-734acd5e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-070eb5c1.entry.js → p-79616f47.entry.js} +2 -2
- package/dist/dso-toolkit/{p-b96ae76d.entry.js → p-798a1b91.entry.js} +2 -2
- package/dist/dso-toolkit/{p-c6413a5c.entry.js → p-7c9c4915.entry.js} +2 -2
- package/dist/dso-toolkit/{p-c6413a5c.entry.js.map → p-7c9c4915.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-f3e22802.entry.js → p-80e3a910.entry.js} +2 -2
- package/dist/dso-toolkit/p-829b8003.entry.js +2 -0
- package/dist/dso-toolkit/p-829b8003.entry.js.map +1 -0
- package/dist/dso-toolkit/p-83448a26.entry.js +2 -0
- package/dist/dso-toolkit/p-8972246f.entry.js +2 -0
- package/dist/dso-toolkit/{p-5960a967.entry.js.map → p-8972246f.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-8ed2e508.entry.js +2 -0
- package/dist/dso-toolkit/{p-16a365f4.entry.js.map → p-8ed2e508.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-4d1a7934.entry.js → p-91fc3638.entry.js} +2 -2
- package/dist/dso-toolkit/p-93fc1c1d.entry.js +2 -0
- package/dist/dso-toolkit/{p-d45bf6f4.entry.js.map → p-93fc1c1d.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-d947dd25.entry.js → p-94fdb7a5.entry.js} +2 -2
- package/dist/dso-toolkit/p-95fc086e.entry.js +2 -0
- package/dist/dso-toolkit/p-95fc086e.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-0982f8a3.entry.js → p-9d79a107.entry.js} +2 -2
- package/dist/dso-toolkit/p-9f138ac0.entry.js +2 -0
- package/dist/dso-toolkit/{p-9a7ab5aa.entry.js.map → p-9f138ac0.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-B31olq-p.js +2 -0
- package/dist/dso-toolkit/p-B31olq-p.js.map +1 -0
- package/dist/dso-toolkit/{p-e8a735ce.entry.js → p-a7057d38.entry.js} +2 -2
- package/dist/dso-toolkit/{p-97e7153c.entry.js → p-a926abc4.entry.js} +2 -2
- package/dist/dso-toolkit/{p-4735ca42.entry.js → p-aa5787d4.entry.js} +2 -2
- package/dist/dso-toolkit/p-abfdf382.entry.js +2 -0
- package/dist/dso-toolkit/{p-4c57777f.entry.js.map → p-abfdf382.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-535232c4.entry.js → p-bea9eb4c.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6362810d.entry.js → p-bfde6737.entry.js} +2 -2
- package/dist/dso-toolkit/p-c123217b.entry.js +2 -0
- package/dist/dso-toolkit/{p-d90537b3.entry.js → p-c5d287ad.entry.js} +2 -2
- package/dist/dso-toolkit/p-cef6e3bf.entry.js +2 -0
- package/dist/dso-toolkit/p-cef6e3bf.entry.js.map +1 -0
- package/dist/dso-toolkit/p-d1bbcada.entry.js +2 -0
- package/dist/dso-toolkit/{p-340eb5f3.entry.js.map → p-d1bbcada.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-e2ec593d.entry.js +2 -0
- package/dist/dso-toolkit/{p-693cd313.entry.js.map → p-e2ec593d.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-ac5a1a15.entry.js → p-e9f750f2.entry.js} +2 -2
- package/dist/dso-toolkit/p-fa4a3a93.entry.js +2 -0
- package/dist/dso-toolkit/p-fa4a3a93.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-c7920b34.entry.js → p-fbd357bb.entry.js} +2 -2
- package/dist/dso-toolkit/p-fc1ff757.entry.js +2 -0
- package/dist/dso-toolkit/{p-e798a831.entry.js.map → p-fc1ff757.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-fda214fa.entry.js +2 -0
- package/dist/dso-toolkit/{p-5852fa1a.entry.js.map → p-fda214fa.entry.js.map} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +3 -3
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-accordion.entry.js +1 -1
- package/dist/esm/dso-action-list-item.entry.js +2 -2
- package/dist/esm/dso-action-list.entry.js +2 -2
- package/dist/esm/dso-action-list.entry.js.map +1 -1
- package/dist/esm/dso-advanced-select.entry.js +3 -3
- package/dist/esm/dso-advanced-select.entry.js.map +1 -1
- package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +1 -1
- package/dist/esm/dso-alert_6.entry.js +20 -17
- package/dist/esm/dso-alert_6.entry.js.map +1 -1
- package/dist/esm/dso-annotation-activiteit.entry.js +2 -2
- package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +2 -2
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
- package/dist/esm/dso-annotation-kaart.entry.js +2 -2
- package/dist/esm/dso-annotation-kaart.entry.js.map +1 -1
- package/dist/esm/dso-annotation-locatie.dso-document-component.entry.js.map +1 -1
- package/dist/esm/dso-annotation-locatie_2.entry.js +4 -4
- package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +2 -2
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -1
- package/dist/esm/dso-attachments-counter_2.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +1 -1
- package/dist/esm/dso-banner.entry.js +2 -2
- package/dist/esm/dso-button-group.entry.js +1 -1
- package/dist/esm/dso-card-container.entry.js +1 -1
- package/dist/esm/dso-card.entry.js +2 -2
- package/dist/esm/dso-contact-information.entry.js +1 -1
- package/dist/esm/dso-date-picker-legacy.entry.js +3 -3
- package/dist/esm/dso-date-picker.entry.js +1 -1
- package/dist/esm/dso-document-card.entry.js +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +1 -1
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-history-item.entry.js +52 -0
- package/dist/esm/dso-history-item.entry.js.map +1 -0
- package/dist/esm/dso-icon-button.entry.js +98 -0
- package/dist/esm/dso-icon-button.entry.js.map +1 -0
- package/dist/esm/dso-icon.entry.js +6 -7
- package/dist/esm/dso-icon.entry.js.map +1 -1
- package/dist/esm/dso-info-button.entry.js +9 -7
- package/dist/esm/dso-info-button.entry.js.map +1 -1
- package/dist/esm/dso-info.dso-selectable.entry.js.map +1 -1
- package/dist/esm/dso-info_2.entry.js +3 -3
- package/dist/esm/dso-info_2.entry.js.map +1 -1
- package/dist/esm/dso-input-range.entry.js +2 -2
- package/dist/esm/dso-label.dso-renvooi.dso-slide-toggle.entry.js.map +1 -1
- package/dist/esm/dso-label_3.entry.js +6 -6
- package/dist/esm/dso-label_3.entry.js.map +1 -1
- package/dist/esm/dso-legend-item.entry.js +2 -2
- package/dist/esm/dso-legend-item.entry.js.map +1 -1
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js.map +1 -1
- package/dist/esm/dso-logo.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +2 -2
- package/dist/esm/dso-map-controls.entry.js.map +1 -1
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-mark-bar.entry.js +8 -8
- package/dist/esm/dso-mark-bar.entry.js.map +1 -1
- package/dist/esm/dso-modal.entry.js +2 -2
- package/dist/esm/dso-modal.entry.js.map +1 -1
- package/dist/esm/dso-onboarding-tip.entry.js +13 -96
- package/dist/esm/dso-onboarding-tip.entry.js.map +1 -1
- package/dist/esm/dso-plekinfo-card.entry.js +2 -2
- package/dist/esm/dso-plekinfo-card.entry.js.map +1 -1
- package/dist/esm/dso-progress-bar.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-project-item.entry.js +1 -1
- package/dist/esm/dso-project-item.entry.js.map +1 -1
- package/dist/esm/dso-responsive-element.entry.js +1 -1
- package/dist/esm/dso-scrollable.entry.js +2 -2
- package/dist/esm/dso-skiplink.entry.js +1 -1
- package/dist/esm/dso-survey-rating.entry.js +3 -3
- package/dist/esm/dso-survey-rating.entry.js.map +1 -1
- package/dist/esm/dso-tabs.entry.js +1 -1
- package/dist/esm/dso-tijdreis-banner.entry.js +18 -0
- package/dist/esm/dso-tijdreis-banner.entry.js.map +1 -0
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js.map +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-tooltip.entry.js +1 -1
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +6 -16
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/dsot-document-component-demo.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/position-tooltip.function-CozxeEX7.js +100 -0
- package/dist/esm/position-tooltip.function-CozxeEX7.js.map +1 -0
- package/dist/types/components/history-item/history-item.d.ts +33 -0
- package/dist/types/components/history-item/history-item.interfaces.d.ts +6 -0
- package/dist/types/components/icon-button/icon-button.d.ts +45 -0
- package/dist/types/components/icon-button/icon-button.interfaces.d.ts +4 -0
- package/dist/types/components/image-overlay/image-overlay.d.ts +1 -1
- package/dist/types/components/info-button/info-button.d.ts +1 -0
- package/dist/types/components/onboarding-tip/onboarding-tip.d.ts +3 -7
- package/dist/types/components/onboarding-tip/onboarding-tip.interfaces.d.ts +0 -1
- package/dist/types/components/tijdreis-banner/tijdreis-banner.d.ts +4 -0
- package/dist/types/components.d.ts +153 -4
- package/dist/types/functional-components/tooltip/position-tooltip.function.d.ts +8 -0
- package/dist/types/functional-components/tooltip/tooltip.functional-component.d.ts +9 -0
- package/dist/types/functional-components/tooltip/tooltip.interfaces.d.ts +12 -0
- package/package.json +3 -3
- package/dist/bundle/p-B7tl4vEP.js +0 -1190
- package/dist/bundle/p-B7tl4vEP.js.map +0 -1
- package/dist/bundle/p-BTM2KYEF.js.map +0 -1
- package/dist/bundle/p-BkcOHFAA.js.map +0 -1
- package/dist/bundle/p-BwZvADPO.js.map +0 -1
- package/dist/bundle/p-CVyaeh1_.js +0 -163
- package/dist/bundle/p-CVyaeh1_.js.map +0 -1
- package/dist/bundle/p-CovD19j0.js +0 -252
- package/dist/bundle/p-CovD19j0.js.map +0 -1
- package/dist/bundle/p-D6l-JcXE.js +0 -36
- package/dist/bundle/p-DPxeR0Ey.js +0 -78
- package/dist/bundle/p-DPxeR0Ey.js.map +0 -1
- package/dist/bundle/p-D_cMLm_E.js.map +0 -1
- package/dist/bundle/p-DiF7pR4b.js.map +0 -1
- package/dist/bundle/p-DlnqD3t9.js +0 -115
- package/dist/bundle/p-XWtPZYtK.js +0 -64
- package/dist/bundle/p-XWtPZYtK.js.map +0 -1
- package/dist/bundle/p-ZJRJQtDU.js +0 -43
- package/dist/bundle/p-ZJRJQtDU.js.map +0 -1
- package/dist/bundle/p-bHDMgCsa.js.map +0 -1
- package/dist/bundle/p-piO4yUd2.js +0 -145
- package/dist/bundle/p-piO4yUd2.js.map +0 -1
- package/dist/dso-toolkit/p-16a365f4.entry.js +0 -2
- package/dist/dso-toolkit/p-2bd67420.entry.js +0 -2
- package/dist/dso-toolkit/p-340eb5f3.entry.js +0 -2
- package/dist/dso-toolkit/p-3885ca9b.entry.js +0 -2
- package/dist/dso-toolkit/p-3885ca9b.entry.js.map +0 -1
- package/dist/dso-toolkit/p-3e8dbe03.entry.js +0 -2
- package/dist/dso-toolkit/p-3e8dbe03.entry.js.map +0 -1
- package/dist/dso-toolkit/p-4c57777f.entry.js +0 -2
- package/dist/dso-toolkit/p-4e578d5c.entry.js +0 -2
- package/dist/dso-toolkit/p-4e578d5c.entry.js.map +0 -1
- package/dist/dso-toolkit/p-5852fa1a.entry.js +0 -2
- package/dist/dso-toolkit/p-5960a967.entry.js +0 -2
- package/dist/dso-toolkit/p-693cd313.entry.js +0 -2
- package/dist/dso-toolkit/p-81e4a548.entry.js +0 -2
- package/dist/dso-toolkit/p-81e4a548.entry.js.map +0 -1
- package/dist/dso-toolkit/p-8936cf2f.entry.js +0 -2
- package/dist/dso-toolkit/p-9a7ab5aa.entry.js +0 -2
- package/dist/dso-toolkit/p-a835d419.entry.js +0 -2
- package/dist/dso-toolkit/p-a835d419.entry.js.map +0 -1
- package/dist/dso-toolkit/p-b0953d50.entry.js +0 -2
- package/dist/dso-toolkit/p-b154c6d6.entry.js +0 -2
- package/dist/dso-toolkit/p-b154c6d6.entry.js.map +0 -1
- package/dist/dso-toolkit/p-b680b169.entry.js +0 -2
- package/dist/dso-toolkit/p-cb354556.entry.js +0 -2
- package/dist/dso-toolkit/p-cb354556.entry.js.map +0 -1
- package/dist/dso-toolkit/p-cc1abdf3.entry.js +0 -2
- package/dist/dso-toolkit/p-cd149043.entry.js.map +0 -1
- package/dist/dso-toolkit/p-d2a54c44.entry.js +0 -2
- package/dist/dso-toolkit/p-d2a54c44.entry.js.map +0 -1
- package/dist/dso-toolkit/p-d45bf6f4.entry.js +0 -2
- package/dist/dso-toolkit/p-e1801352.entry.js +0 -2
- package/dist/dso-toolkit/p-e798a831.entry.js +0 -2
- package/dist/dso-toolkit/p-f14e03b2.entry.js +0 -2
- package/dist/dso-toolkit/p-f14e03b2.entry.js.map +0 -1
- package/dist/dso-toolkit/p-f4d66373.entry.js.map +0 -1
- /package/dist/dso-toolkit/{p-ef007619.entry.js.map → p-1e4f1515.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-710a47f1.entry.js.map → p-1f7492cd.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-fb60be4e.entry.js.map → p-20459167.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-0a4afa12.entry.js.map → p-2512c5f5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-068320ab.entry.js.map → p-353feb5d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c8ca21c3.entry.js.map → p-426cf574.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b0953d50.entry.js.map → p-4a4f56ed.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f65ace88.entry.js.map → p-4c1c2071.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d8df33bb.entry.js.map → p-50292d0e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b6d75e39.entry.js.map → p-71c54b0e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f5f8682c.entry.js.map → p-734acd5e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-070eb5c1.entry.js.map → p-79616f47.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b96ae76d.entry.js.map → p-798a1b91.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f3e22802.entry.js.map → p-80e3a910.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e1801352.entry.js.map → p-83448a26.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4d1a7934.entry.js.map → p-91fc3638.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d947dd25.entry.js.map → p-94fdb7a5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-0982f8a3.entry.js.map → p-9d79a107.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e8a735ce.entry.js.map → p-a7057d38.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-97e7153c.entry.js.map → p-a926abc4.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4735ca42.entry.js.map → p-aa5787d4.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-535232c4.entry.js.map → p-bea9eb4c.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6362810d.entry.js.map → p-bfde6737.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b680b169.entry.js.map → p-c123217b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d90537b3.entry.js.map → p-c5d287ad.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ac5a1a15.entry.js.map → p-e9f750f2.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c7920b34.entry.js.map → p-fbd357bb.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image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GAAG,CACjB,CACP;gBACD,WAAK,KAAK,EAAC,mBAAmB,EAAC,MAAM,EAAE,CAAC,IAAI,CAAC,cAAc;oBACzD,YAAM,IAAI,EAAC,YAAY,GAAG,CACtB,CACC;YACT,eAAQ;YACP,MAAM,CACF,CACR,CAAC;IACJ,CAAC;IAED,kBAAkB;;QAChB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACrD,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC,cAAc,EAAE;gBAC/C,iBAAiB,EAAE,IAAI;gBACvB,uBAAuB,EAAE,CAAC,CAAC,EAAE,EAAE;oBAC7B,IAAI,CAAC,YAAY,UAAU,IAAI,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,cAAc,EAAE,CAAC;wBAC3E,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;wBAEpB,OAAO,KAAK,CAAC;oBACf,CAAC;oBAED,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,cAAc,EAAE,MAAA,IAAI,CAAC,aAAa,mCAAI,KAAK;gBAC3C,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;aAC1C,CAAC,CAAC,QAAQ,EAAE,CAAC;QAChB,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACrC,MAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,EAAE,CAAC;YAExB,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n FunctionalComponent,\r\n Host,\r\n Listen,\r\n Prop,\r\n State,\r\n forceUpdate,\r\n h,\r\n} from \"@stencil/core\";\r\nimport debounce from \"debounce\";\r\nimport { FocusTrap, createFocusTrap } from \"focus-trap\";\r\n\r\ntype ImageOverlayWijzigactie = \"voegtoe\" | \"verwijder\";\r\n\r\nconst wijzigactieLabels: { [wijzigactie in ImageOverlayWijzigactie]: string } = {\r\n verwijder: \"Verwijderd\",\r\n voegtoe: \"Toegevoegd\",\r\n};\r\n\r\nconst Dimmer: FunctionalComponent<{\r\n active: boolean;\r\n src: string | undefined;\r\n alt: string | undefined;\r\n ref: (element: HTMLHeadingElement | undefined) => void;\r\n click: () => void;\r\n}> = ({ active, src, alt, ref, click }, children) =>\r\n active &&\r\n src && (\r\n <div class=\"dimmer\">\r\n <div class=\"wrapper\" ref={ref}>\r\n {children[2]}\r\n {children[0]}\r\n <img src={src} alt={alt} />\r\n <button type=\"button\" class=\"close\" onClick={click}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span>Sluiten</span>\r\n </button>\r\n {children[1]}\r\n </div>\r\n </div>\r\n );\r\n\r\n@Component({\r\n tag: \"dso-image-overlay\",\r\n styleUrl: \"./image-overlay.scss\",\r\n shadow: true,\r\n})\r\nexport class ImageOverlay implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoImageOverlayElement;\r\n\r\n /**\r\n * The wijzigactie.\r\n */\r\n @Prop()\r\n wijzigactie?: string;\r\n\r\n @State()\r\n active = false;\r\n\r\n @State()\r\n zoomable = false;\r\n\r\n private buttonElement: HTMLButtonElement | undefined;\r\n\r\n private wrapperElement: HTMLDivElement | undefined;\r\n\r\n private trap: FocusTrap | undefined;\r\n\r\n private titelSlot: HTMLElement | null = null;\r\n\r\n private bijschriftSlot: HTMLElement | null = null;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private resizeObserver?: ResizeObserver;\r\n\r\n @Listen(\"load\", { capture: true })\r\n loadListener(event: Event) {\r\n if (event.target instanceof HTMLImageElement) {\r\n this.setZoomable(event.target);\r\n }\r\n }\r\n\r\n connectedCallback() {\r\n this.titelSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='titel']\");\r\n\r\n this.bijschriftSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='bijschrift']\");\r\n }\r\n\r\n componentDidLoad() {\r\n this.resizeObserver = new ResizeObserver(\r\n debounce(() => {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (imgElement instanceof HTMLImageElement) {\r\n this.setZoomable(imgElement);\r\n }\r\n }, 200),\r\n );\r\n\r\n this.mutationObserver = new MutationObserver((e) => {\r\n forceUpdate(this.host);\r\n\r\n if (e[0]?.type === \"childList\") {\r\n this.resizeObserver?.disconnect();\r\n // <img> is gone or a new element.\r\n this.initZoomableImage();\r\n }\r\n });\r\n\r\n this.mutationObserver.observe(this.host, {\r\n attributes: true,\r\n subtree: true,\r\n attributeFilter: [\"src\", \"alt\"],\r\n childList: true,\r\n });\r\n\r\n this.initZoomableImage();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.trap?.deactivate();\r\n this.mutationObserver?.disconnect();\r\n this.resizeObserver?.disconnect();\r\n }\r\n\r\n private initZoomableImage(): void {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (!(imgElement instanceof HTMLImageElement)) {\r\n return;\r\n }\r\n\r\n // Due to timing issues where the image is loaded before we listen to load events we double check if the image is already complete.\r\n if (imgElement.complete) {\r\n this.setZoomable(imgElement);\r\n }\r\n\r\n this.resizeObserver?.observe(imgElement);\r\n }\r\n\r\n private setZoomable(imageElement: HTMLImageElement): void {\r\n const { width, naturalWidth, height, naturalHeight } = imageElement;\r\n\r\n this.zoomable = width < naturalWidth || height < naturalHeight;\r\n }\r\n\r\n private isWijzigactie(wijzigactie: string): wijzigactie is ImageOverlayWijzigactie {\r\n return wijzigactie === \"voegtoe\" || wijzigactie === \"verwijder\";\r\n }\r\n\r\n render() {\r\n const { src, alt } = this.host.querySelector(\"img\") ?? {};\r\n\r\n const editActionLabel: string | undefined =\r\n (this.wijzigactie && this.isWijzigactie(this.wijzigactie) && wijzigactieLabels[this.wijzigactie]) || undefined;\r\n\r\n const button = this.zoomable && (\r\n <button\r\n type=\"button\"\r\n class=\"open\"\r\n ref={(element) => (this.buttonElement = element)}\r\n onClick={() => (this.active = true)}\r\n >\r\n <dso-icon icon=\"external-link\"></dso-icon>\r\n <span>Afbeelding vergroot weergeven</span>\r\n </button>\r\n );\r\n\r\n if (this.wijzigactie === \"verwijder\") {\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <del class=\"editaction-remove\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </del>\r\n </Host>\r\n );\r\n }\r\n\r\n if (this.wijzigactie === \"voegtoe\") {\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <ins class=\"editaction-add\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </ins>\r\n </Host>\r\n );\r\n }\r\n\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </Host>\r\n );\r\n }\r\n\r\n componentDidRender() {\r\n if (this.active && this.wrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.wrapperElement, {\r\n escapeDeactivates: true,\r\n clickOutsideDeactivates: (e) => {\r\n if (e instanceof MouseEvent && e.composedPath()[0] === this.wrapperElement) {\r\n this.active = false;\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n setReturnFocus: this.buttonElement ?? false,\r\n onDeactivate: () => (this.active = false),\r\n }).activate();\r\n } else if (!this.active && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"image-overlay.js","sourceRoot":"","sources":["../../../../src/components/image-overlay/image-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EAEP,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,WAAW,EACX,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAa,eAAe,EAAE,MAAM,YAAY,CAAC;AAIxD,MAAM,iBAAiB,GAAyD;IAC9E,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,YAAY;CACtB,CAAC;AAEF,MAAM,MAAM,GAMP,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,CAClD,MAAM;IACN,GAAG,IAAI,CACL,WAAK,KAAK,EAAC,QAAQ;IACjB,WAAK,KA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C;wBAC3E,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;wBAEpB,OAAO,KAAK,CAAC;oBACf,CAAC;oBAED,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,cAAc,EAAE,MAAA,IAAI,CAAC,iBAAiB,mCAAI,KAAK;gBAC/C,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;gBACzC,eAAe,EAAE;oBACf,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,UAAU,mCAAI,SAAS,CAAA,EAAA;iBACtD;aACF,CAAC,CAAC,QAAQ,EAAE,CAAC;QAChB,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACrC,MAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,EAAE,CAAC;YAExB,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n FunctionalComponent,\r\n Host,\r\n Listen,\r\n Prop,\r\n State,\r\n forceUpdate,\r\n h,\r\n} from \"@stencil/core\";\r\nimport debounce from \"debounce\";\r\nimport { FocusTrap, createFocusTrap } from \"focus-trap\";\r\n\r\ntype ImageOverlayWijzigactie = \"voegtoe\" | \"verwijder\";\r\n\r\nconst wijzigactieLabels: { [wijzigactie in ImageOverlayWijzigactie]: string } = {\r\n verwijder: \"Verwijderd\",\r\n voegtoe: \"Toegevoegd\",\r\n};\r\n\r\nconst Dimmer: FunctionalComponent<{\r\n active: boolean;\r\n src: string | undefined;\r\n alt: string | undefined;\r\n ref: (element: HTMLHeadingElement | undefined) => void;\r\n click: () => void;\r\n}> = ({ active, src, alt, ref, click }, children) =>\r\n active &&\r\n src && (\r\n <div class=\"dimmer\">\r\n <div class=\"wrapper\" ref={ref}>\r\n {children[2]}\r\n {children[0]}\r\n <img src={src} alt={alt} />\r\n <dso-icon-button icon=\"times\" variant=\"map\" class=\"close\" label=\"Sluiten\" onDsoClick={click} />\r\n {children[1]}\r\n </div>\r\n </div>\r\n );\r\n\r\n@Component({\r\n tag: \"dso-image-overlay\",\r\n styleUrl: \"./image-overlay.scss\",\r\n shadow: true,\r\n})\r\nexport class ImageOverlay implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoImageOverlayElement;\r\n\r\n /**\r\n * The wijzigactie.\r\n */\r\n @Prop()\r\n wijzigactie?: string;\r\n\r\n @State()\r\n active = false;\r\n\r\n @State()\r\n zoomable = false;\r\n\r\n private iconButtonElement: HTMLDsoIconButtonElement | undefined;\r\n\r\n private wrapperElement: HTMLDivElement | undefined;\r\n\r\n private trap: FocusTrap | undefined;\r\n\r\n private titelSlot: HTMLElement | null = null;\r\n\r\n private bijschriftSlot: HTMLElement | null = null;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private resizeObserver?: ResizeObserver;\r\n\r\n @Listen(\"load\", { capture: true })\r\n loadListener(event: Event) {\r\n if (event.target instanceof HTMLImageElement) {\r\n this.setZoomable(event.target);\r\n }\r\n }\r\n\r\n connectedCallback() {\r\n this.titelSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='titel']\");\r\n\r\n this.bijschriftSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='bijschrift']\");\r\n }\r\n\r\n componentDidLoad() {\r\n this.resizeObserver = new ResizeObserver(\r\n debounce(() => {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (imgElement instanceof HTMLImageElement) {\r\n this.setZoomable(imgElement);\r\n }\r\n }, 200),\r\n );\r\n\r\n this.mutationObserver = new MutationObserver((e) => {\r\n forceUpdate(this.host);\r\n\r\n if (e[0]?.type === \"childList\") {\r\n this.resizeObserver?.disconnect();\r\n // <img> is gone or a new element.\r\n this.initZoomableImage();\r\n }\r\n });\r\n\r\n this.mutationObserver.observe(this.host, {\r\n attributes: true,\r\n subtree: true,\r\n attributeFilter: [\"src\", \"alt\"],\r\n childList: true,\r\n });\r\n\r\n this.initZoomableImage();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.trap?.deactivate();\r\n this.mutationObserver?.disconnect();\r\n this.resizeObserver?.disconnect();\r\n }\r\n\r\n private initZoomableImage(): void {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (!(imgElement instanceof HTMLImageElement)) {\r\n return;\r\n }\r\n\r\n // Due to timing issues where the image is loaded before we listen to load events we double check if the image is already complete.\r\n if (imgElement.complete) {\r\n this.setZoomable(imgElement);\r\n }\r\n\r\n this.resizeObserver?.observe(imgElement);\r\n }\r\n\r\n private setZoomable(imageElement: HTMLImageElement): void {\r\n const { width, naturalWidth, height, naturalHeight } = imageElement;\r\n\r\n this.zoomable = width < naturalWidth || height < naturalHeight;\r\n }\r\n\r\n private isWijzigactie(wijzigactie: string): wijzigactie is ImageOverlayWijzigactie {\r\n return wijzigactie === \"voegtoe\" || wijzigactie === \"verwijder\";\r\n }\r\n\r\n render() {\r\n const { src, alt } = this.host.querySelector(\"img\") ?? {};\r\n\r\n const editActionLabel: string | undefined =\r\n (this.wijzigactie && this.isWijzigactie(this.wijzigactie) && wijzigactieLabels[this.wijzigactie]) || undefined;\r\n\r\n const button = this.zoomable && (\r\n <dso-icon-button\r\n icon=\"external-link\"\r\n class=\"open\"\r\n variant=\"map\"\r\n label=\"Afbeelding vergroot weergeven\"\r\n ref={(element) => (this.iconButtonElement = element)}\r\n onDsoClick={() => (this.active = true)}\r\n />\r\n );\r\n\r\n if (this.wijzigactie === \"verwijder\") {\r\n return (\r\n <Host onClick={() => this.iconButtonElement?.setFocus()}>\r\n <del class=\"editaction-remove\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </del>\r\n </Host>\r\n );\r\n }\r\n\r\n if (this.wijzigactie === \"voegtoe\") {\r\n return (\r\n <Host onClick={() => this.iconButtonElement?.setFocus()}>\r\n <ins class=\"editaction-add\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </ins>\r\n </Host>\r\n );\r\n }\r\n\r\n return (\r\n <Host onClick={() => this.iconButtonElement?.setFocus()}>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </Host>\r\n );\r\n }\r\n\r\n componentDidRender() {\r\n if (this.active && this.wrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.wrapperElement, {\r\n escapeDeactivates: true,\r\n clickOutsideDeactivates: (e) => {\r\n if (e instanceof MouseEvent && e.composedPath()[0] === this.wrapperElement) {\r\n this.active = false;\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n setReturnFocus: this.iconButtonElement ?? false,\r\n onDeactivate: () => (this.active = false),\r\n tabbableOptions: {\r\n getShadowRoot: (node) => node.shadowRoot ?? undefined,\r\n },\r\n }).activate();\r\n } else if (!this.active && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
--link-color: currentColor;
|
|
9
9
|
--link-hover-color: currentColor;
|
|
10
10
|
--link-visited-color: currentColor;
|
|
11
|
+
--_dso-icon-button-tertiary-color: #191919;
|
|
12
|
+
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
13
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
14
|
+
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
11
15
|
background-color: #f2f2f2;
|
|
12
16
|
border-color: #f2f2f2;
|
|
13
17
|
color: #191919;
|
|
@@ -24,14 +28,6 @@
|
|
|
24
28
|
:host a:not(.dso-primary, .dso-secondary, .dso-tertiary):is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
25
29
|
background-image: var(--_dso-di-background-image, url("./di.svg#email-zwart"));
|
|
26
30
|
}
|
|
27
|
-
:host > button {
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
border-style: none;
|
|
30
|
-
padding: 0;
|
|
31
|
-
position: absolute;
|
|
32
|
-
inset-inline-end: 8px;
|
|
33
|
-
inset-block-start: 8px;
|
|
34
|
-
}
|
|
35
31
|
|
|
36
32
|
:host(:not([active], [fixed])),
|
|
37
33
|
:host([active=false]:not([fixed])),
|
|
@@ -39,24 +35,10 @@
|
|
|
39
35
|
display: none;
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
button {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
font: inherit;
|
|
47
|
-
font-family: inherit;
|
|
48
|
-
font-size: inherit;
|
|
49
|
-
line-height: inherit;
|
|
50
|
-
margin: 0;
|
|
51
|
-
overflow: visible;
|
|
52
|
-
text-transform: none;
|
|
53
|
-
}
|
|
54
|
-
button[disabled] {
|
|
55
|
-
cursor: default;
|
|
56
|
-
}
|
|
57
|
-
button::-moz-focus-inner {
|
|
58
|
-
border: 0;
|
|
59
|
-
padding: 0;
|
|
38
|
+
dso-icon-button {
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset-inline-end: 8px;
|
|
41
|
+
inset-block-start: 8px;
|
|
60
42
|
}
|
|
61
43
|
|
|
62
44
|
*,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, h } from "@stencil/core";
|
|
2
2
|
export class Info {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Fragment, { key: '
|
|
4
|
+
return (h(Fragment, { key: 'ef05039995b42879c537eb147fea4e0d3050bc68' }, h("slot", { key: '0f1477b6b3809a2600fd85fb7690bfc8a41e5851' }), !this.fixed && (h("dso-icon-button", { key: 'efb099b477dcd030afaf73abc83c174e1a4c0c4d', label: "Sluiten", variant: "tertiary", icon: "times", onDsoClick: (e) => this.dsoClose.emit(e.detail.originalEvent) }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "dso-info"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/components/info/info.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOlF,MAAM,OAAO,IAAI;IAmBf,MAAM;QACJ,OAAO,CACL,EAAC,QAAQ;YACP,8DAAa;YACZ,CAAC,IAAI,CAAC,KAAK,IAAI,CACd
|
|
1
|
+
{"version":3,"file":"info.js","sourceRoot":"","sources":["../../../../src/components/info/info.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOlF,MAAM,OAAO,IAAI;IAmBf,MAAM;QACJ,OAAO,CACL,EAAC,QAAQ;YACP,8DAAa;YACZ,CAAC,IAAI,CAAC,KAAK,IAAI,CACd,wEACE,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,OAAO,EACZ,UAAU,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,GAC7D,CACH,CACQ,CACZ,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Fragment, Prop, h } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"dso-info\",\r\n styleUrl: \"./info.scss\",\r\n shadow: true,\r\n})\r\nexport class Info {\r\n /**\r\n * Set to true if the Info should not be toggled and always visible.\r\n */\r\n @Prop({ reflect: true })\r\n fixed?: boolean;\r\n\r\n /**\r\n * Whether the Info is active.\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when the user activates the close button.\r\n */\r\n @Event()\r\n dsoClose!: EventEmitter<MouseEvent>;\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <slot></slot>\r\n {!this.fixed && (\r\n <dso-icon-button\r\n label=\"Sluiten\"\r\n variant=\"tertiary\"\r\n icon=\"times\"\r\n onDsoClick={(e) => this.dsoClose.emit(e.detail.originalEvent)}\r\n />\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -25,13 +25,14 @@ button {
|
|
|
25
25
|
border: 0;
|
|
26
26
|
margin-inline-start: var(--_dt-info-button-margin-inline-start, 8px);
|
|
27
27
|
padding: 0;
|
|
28
|
-
cursor: pointer;
|
|
29
28
|
vertical-align: top;
|
|
29
|
+
line-height: 1;
|
|
30
30
|
}
|
|
31
31
|
button.dso-info-secondary {
|
|
32
32
|
color: #666;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
dso-icon {
|
|
36
|
-
|
|
35
|
+
dso-icon-button {
|
|
36
|
+
margin-inline-start: var(--_dt-info-button-margin-inline-start, 8px);
|
|
37
|
+
vertical-align: top;
|
|
37
38
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
-
import clsx from "clsx";
|
|
3
2
|
export class InfoButton {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.hover = false;
|
|
@@ -12,15 +11,18 @@ export class InfoButton {
|
|
|
12
11
|
* To set focus to the toggle button.
|
|
13
12
|
*/
|
|
14
13
|
async setFocus() {
|
|
15
|
-
var _a;
|
|
16
|
-
(_a = this.button) === null || _a === void 0 ? void 0 : _a.
|
|
14
|
+
var _a, _b;
|
|
15
|
+
(_a = this.button) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
16
|
+
(_b = this.buttonSecondary) === null || _b === void 0 ? void 0 : _b.focus();
|
|
17
17
|
}
|
|
18
|
-
handleToggle(
|
|
18
|
+
handleToggle(originalEvent) {
|
|
19
19
|
this.active = !this.active;
|
|
20
|
-
this.dsoToggle.emit({ originalEvent
|
|
20
|
+
this.dsoToggle.emit({ originalEvent, active: this.active });
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '6387050fefb7b82f81bb3ff2b7ce41add76c42e6', onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, !this.secondary ? (h("dso-icon-button", { variant: "tertiary", label: this.label, onDsoClick: (e) => this.handleToggle(e.detail.originalEvent), icon: this.active || this.hover ? "info-active" : "info", ref: (element) => (this.button = element) })) : (
|
|
24
|
+
// ToDo: remove this part in https://github.com/dso-toolkit/dso-toolkit/issues/3350. Tertiary on color already working
|
|
25
|
+
h("button", { type: "button", class: "dso-info-secondary", "aria-expanded": typeof this.active === "boolean" ? this.active.toString() : undefined, onClick: (e) => this.handleToggle(e), ref: (element) => (this.buttonSecondary = element) }, h("dso-icon", { icon: this.active || this.hover ? "info-active" : "info" }), h("span", { class: "sr-only" }, this.label)))));
|
|
24
26
|
}
|
|
25
27
|
static get is() { return "dso-info-button"; }
|
|
26
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-button.js","sourceRoot":"","sources":["../../../../src/components/info-button/info-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"info-button.js","sourceRoot":"","sources":["../../../../src/components/info-button/info-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAS7F,MAAM,OAAO,UAAU;IALvB;QAgBE,UAAK,GAAG,KAAK,CAAC;QAQd;;WAEG;QAEH,UAAK,GAAG,uBAAuB,CAAC;KAiDjC;IAzCC;;OAEG;IAEH,KAAK,CAAC,QAAQ;;QACZ,MAAA,IAAI,CAAC,MAAM,0CAAE,QAAQ,EAAE,CAAC;QACxB,MAAA,IAAI,CAAC,eAAe,0CAAE,KAAK,EAAE,CAAC;IAChC,CAAC;IAEO,YAAY,CAAC,aAAyB;QAC5C,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EA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CACV,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, Method, Prop, State, h } from \"@stencil/core\";\r\n\r\nimport { InfoButtonToggleEvent } from \"./info-button.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-info-button\",\r\n shadow: true,\r\n styleUrl: \"info-button.scss\",\r\n})\r\nexport class InfoButton {\r\n private button?: HTMLDsoIconButtonElement;\r\n private buttonSecondary?: HTMLButtonElement;\r\n\r\n /**\r\n * Whether the InfoButton is active.\r\n */\r\n @Prop({ mutable: true, reflect: true })\r\n active?: boolean;\r\n\r\n @State()\r\n hover = false;\r\n\r\n /**\r\n * For secondary Info Button.\r\n */\r\n @Prop()\r\n secondary?: boolean;\r\n\r\n /**\r\n * The label.\r\n */\r\n @Prop()\r\n label = \"Toelichting bij optie\";\r\n\r\n /**\r\n * Emitted when the user activates the Info Button.\r\n */\r\n @Event()\r\n dsoToggle!: EventEmitter<InfoButtonToggleEvent>;\r\n\r\n /**\r\n * To set focus to the toggle button.\r\n */\r\n @Method()\r\n async setFocus() {\r\n this.button?.setFocus();\r\n this.buttonSecondary?.focus();\r\n }\r\n\r\n private handleToggle(originalEvent: MouseEvent) {\r\n this.active = !this.active;\r\n this.dsoToggle.emit({ originalEvent, active: this.active });\r\n }\r\n\r\n render() {\r\n return (\r\n <Host onMouseenter={() => (this.hover = true)} onMouseleave={() => (this.hover = false)}>\r\n {!this.secondary ? (\r\n <dso-icon-button\r\n variant=\"tertiary\"\r\n label={this.label}\r\n onDsoClick={(e) => this.handleToggle(e.detail.originalEvent)}\r\n icon={this.active || this.hover ? \"info-active\" : \"info\"}\r\n ref={(element) => (this.button = element)}\r\n />\r\n ) : (\r\n // ToDo: remove this part in https://github.com/dso-toolkit/dso-toolkit/issues/3350. Tertiary on color already working\r\n <button\r\n type=\"button\"\r\n class=\"dso-info-secondary\"\r\n aria-expanded={typeof this.active === \"boolean\" ? this.active.toString() : undefined}\r\n onClick={(e) => this.handleToggle(e)}\r\n ref={(element) => (this.buttonSecondary = element)}\r\n >\r\n <dso-icon icon={this.active || this.hover ? \"info-active\" : \"info\"}></dso-icon>\r\n <span class=\"sr-only\">{this.label}</span>\r\n </button>\r\n )}\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -10,13 +10,13 @@ export class InputRange {
|
|
|
10
10
|
const min = this.min || 0;
|
|
11
11
|
const max = this.max || 100;
|
|
12
12
|
const step = this.step || 1;
|
|
13
|
-
return (h(Fragment, null, this.description && (h("span", { key: '
|
|
13
|
+
return (h(Fragment, null, this.description && (h("span", { key: '098b822ccb2f239856ca274aaec653cfe246b752', id: "description", hidden: true }, this.description)), h("span", { key: '622dc86272619d04bc0b3598e860710192d29978', class: "counter min", "aria-hidden": "true" }, min, this.unit), h("input", { key: 'af033e92eee7428ae9f574670da849edc5a9bcda', type: "range", min: this.min, max: this.max, value: this.value, class: "input", "aria-label": this.label, "aria-describedby": this.description ? "description" : undefined, onChange: (event) => this.dsoChange.emit({
|
|
14
14
|
originalEvent: event,
|
|
15
15
|
value: event.target instanceof HTMLInputElement ? parseInt(event.target.value, 10) : undefined,
|
|
16
16
|
max,
|
|
17
17
|
min,
|
|
18
18
|
step,
|
|
19
|
-
}) }), h("span", { key: '
|
|
19
|
+
}) }), h("span", { key: 'ef0e067089568fba4bf42f8a749944e49929781f', class: "counter max", "aria-hidden": "true" }, max, this.unit)));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "dso-input-range"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,52 +31,47 @@
|
|
|
31
31
|
.dso-label:focus-within, .dso-label.dso-hover {
|
|
32
32
|
text-decoration: line-through;
|
|
33
33
|
}
|
|
34
|
-
.dso-label button {
|
|
35
|
-
background: none;
|
|
36
|
-
border: 0;
|
|
37
|
-
border-radius: 0 4px 4px 0;
|
|
38
|
-
color: inherit;
|
|
39
|
-
float: inline-end;
|
|
40
|
-
font-size: 1rem;
|
|
41
|
-
margin-block-end: -4px;
|
|
42
|
-
margin-inline-start: 8px;
|
|
43
|
-
margin-inline-end: -4px;
|
|
44
|
-
margin-block-start: 0;
|
|
45
|
-
padding: 0;
|
|
46
|
-
}
|
|
47
|
-
.dso-label button:hover {
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
}
|
|
50
|
-
.dso-label button > dso-icon,
|
|
51
|
-
.dso-label button > svg.di {
|
|
52
|
-
display: block;
|
|
53
|
-
}
|
|
54
34
|
.dso-label {
|
|
35
|
+
--_dso-icon-button-tertiary-color: #191919;
|
|
36
|
+
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
37
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
38
|
+
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
55
39
|
background-color: #f2f2f2;
|
|
56
40
|
border-color: #f2f2f2;
|
|
57
41
|
color: #191919;
|
|
58
42
|
}
|
|
59
43
|
.dso-label.dso-label-info {
|
|
44
|
+
--_dso-icon-button-tertiary-color: #191919;
|
|
45
|
+
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
46
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
47
|
+
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
60
48
|
background-color: #6ca4d9;
|
|
61
49
|
border-color: #6ca4d9;
|
|
62
50
|
color: #191919;
|
|
63
51
|
}
|
|
64
52
|
.dso-label.dso-label-primary {
|
|
53
|
+
--_dso-icon-button-tertiary-color: #fff;
|
|
65
54
|
background-color: #275937;
|
|
66
55
|
border-color: #275937;
|
|
67
56
|
color: #fff;
|
|
68
57
|
}
|
|
69
58
|
.dso-label.dso-label-success {
|
|
59
|
+
--_dso-icon-button-tertiary-color: #fff;
|
|
70
60
|
background-color: #39870c;
|
|
71
61
|
border-color: #39870c;
|
|
72
62
|
color: #fff;
|
|
73
63
|
}
|
|
74
64
|
.dso-label.dso-label-warning {
|
|
65
|
+
--_dso-icon-button-tertiary-color: #191919;
|
|
66
|
+
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
67
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
68
|
+
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
75
69
|
background-color: #dcd400;
|
|
76
70
|
border-color: #dcd400;
|
|
77
71
|
color: #191919;
|
|
78
72
|
}
|
|
79
73
|
.dso-label.dso-label-error {
|
|
74
|
+
--_dso-icon-button-tertiary-color: #fff;
|
|
80
75
|
background-color: #ce3f51;
|
|
81
76
|
border-color: #ce3f51;
|
|
82
77
|
color: #fff;
|
|
@@ -91,11 +86,16 @@
|
|
|
91
86
|
outline-offset: -1px;
|
|
92
87
|
}
|
|
93
88
|
.dso-label.dso-label-attention {
|
|
89
|
+
--_dso-icon-button-tertiary-color: #fff;
|
|
94
90
|
background-color: #8b4a6a;
|
|
95
91
|
border-color: #8b4a6a;
|
|
96
92
|
color: #fff;
|
|
97
93
|
}
|
|
98
94
|
.dso-label.dso-label-filter {
|
|
95
|
+
--_dso-icon-button-tertiary-color: #191919;
|
|
96
|
+
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
97
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
98
|
+
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
99
99
|
background-color: #e1ecf7;
|
|
100
100
|
border-color: #e1ecf7;
|
|
101
101
|
color: #191919;
|
|
@@ -107,6 +107,10 @@
|
|
|
107
107
|
--link-color: currentColor;
|
|
108
108
|
--link-hover-color: currentColor;
|
|
109
109
|
--link-visited-color: currentColor;
|
|
110
|
+
--_dso-icon-button-tertiary-color: #191919;
|
|
111
|
+
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
112
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
113
|
+
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
110
114
|
background-color: #e4f1d4;
|
|
111
115
|
border-color: #e4f1d4;
|
|
112
116
|
color: #191919;
|
|
@@ -130,6 +134,10 @@
|
|
|
130
134
|
--link-color: currentColor;
|
|
131
135
|
--link-hover-color: currentColor;
|
|
132
136
|
--link-visited-color: currentColor;
|
|
137
|
+
--_dso-icon-button-tertiary-color: #191919;
|
|
138
|
+
--_dso-icon-button-tertiary-hover-color: #4c4c4c;
|
|
139
|
+
--_dso-icon-button-tertiary-active-color: #173521;
|
|
140
|
+
--_dso-icon-button-tertiary-disabled-color: #999;
|
|
133
141
|
background-color: #f5d8dc;
|
|
134
142
|
border-color: #f5d8dc;
|
|
135
143
|
color: #191919;
|
|
@@ -173,4 +181,10 @@
|
|
|
173
181
|
|
|
174
182
|
:host([removable]) .dso-truncate.dso-label-content {
|
|
175
183
|
max-inline-size: calc(100% - 28px);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
dso-icon-button {
|
|
187
|
+
float: inline-end;
|
|
188
|
+
margin-inline-start: 8px;
|
|
189
|
+
margin-inline-end: -4px;
|
|
176
190
|
}
|
|
@@ -94,13 +94,13 @@ export class Label {
|
|
|
94
94
|
this.isTruncated = false;
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return (h(Fragment, { key: '
|
|
97
|
+
return (h(Fragment, { key: '0b6cf34b6aefcbb4957ba2e6b9d163a2d6918fa2' }, h("span", { key: '9eec335d89922ffd095b36f8cb34fa5fc226510c', "aria-describedby": this.isTruncated ? "toggle-anchor" : null, class: clsx("dso-label", {
|
|
98
98
|
[`dso-label-${this.status}`]: this.status,
|
|
99
99
|
"dso-compact": this.compact && !this.removable,
|
|
100
100
|
"dso-hover": this.removeHover || this.removeFocus,
|
|
101
|
-
}) }, h("slot", { key: '
|
|
101
|
+
}) }, h("slot", { key: 'f79b2c501b4cea497996c2488e014e0542c367e7', name: "symbol" }), h("span", { key: '87b4b6fabc51e6c5f1e4f803ecedd2737b0cc492', class: clsx("dso-label-content", {
|
|
102
102
|
"dso-truncate": !!this.truncate,
|
|
103
|
-
}), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", { key: '
|
|
103
|
+
}), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", { key: '7026faaf04f728f6a322d1e33ab7f7dbe449552e' })), this.removable && (h("dso-icon-button", { key: '3f587acbe6b4b0e08f1f4c7c64fbd27efa2445f7', variant: "tertiary", icon: "times", label: `Verwijder: ${this.labelText}`, onDsoClick: (e) => this.dsoRemoveClick.emit(e.detail.originalEvent), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }))), this.isTruncated && (h("dso-tooltip", { key: '9ba3f90d4484c61d4757c9dc7929d9c583ef598d', stateless: true, id: "toggle-anchor", active: this.textHover || this.textFocus, position: "top", strategy: "absolute" }, this.labelText))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "dso-label"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../../src/components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAIhC,MAAM,cAAc,GAAG,IAAI,c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n Listen,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nimport { LabelStatus } from \"./label.interfaces\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop({ reflect: true })\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: LabelStatus;\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby={this.isTruncated ? \"toggle-anchor\" : null}\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../../src/components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,KAAK,EACL,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,QAAQ,MAAM,UAAU,CAAC;AAIhC,MAAM,cAAc,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r\n Listen,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nimport { LabelStatus } from \"./label.interfaces\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop({ reflect: true })\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: LabelStatus;\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby={this.isTruncated ? \"toggle-anchor\" : null}\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <dso-icon-button\r\n variant=\"tertiary\"\r\n icon=\"times\"\r\n label={`Verwijder: ${this.labelText}`}\r\n onDsoClick={(e) => this.dsoRemoveClick.emit(e.detail.originalEvent)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n />\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
::slotted(span[slot=symbol]) {
|
|
14
|
+
background-color: #fff;
|
|
15
|
+
display: block;
|
|
16
|
+
float: inline-start;
|
|
17
|
+
block-size: 26px;
|
|
18
|
+
margin-block-start: 0;
|
|
19
|
+
margin-inline-end: 8px;
|
|
20
|
+
inline-size: 30px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
13
25
|
.legend-item {
|
|
14
26
|
display: flex;
|
|
15
27
|
position: relative;
|
|
@@ -17,98 +29,21 @@
|
|
|
17
29
|
.legend-item.legend-item-symbol + .options {
|
|
18
30
|
margin-block-start: 8px;
|
|
19
31
|
}
|
|
32
|
+
.legend-item dso-icon-button.active {
|
|
33
|
+
--_dso-icon-button-tertiary-color: #173521;
|
|
34
|
+
}
|
|
20
35
|
|
|
21
36
|
.legend-item-right-content {
|
|
22
37
|
margin-inline-start: auto;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
font-weight: 500;
|
|
28
|
-
margin-block-end: 0;
|
|
29
|
-
text-decoration: none;
|
|
30
|
-
touch-action: manipulation;
|
|
31
|
-
text-align: start;
|
|
32
|
-
user-select: none;
|
|
33
|
-
vertical-align: middle;
|
|
34
|
-
}
|
|
35
|
-
.legend-item-right-content button:focus, .legend-item-right-content button:focus-visible {
|
|
36
|
-
outline-offset: 2px;
|
|
37
|
-
}
|
|
38
|
-
.legend-item-right-content button:active {
|
|
39
|
-
outline: 0;
|
|
40
|
-
}
|
|
41
|
-
.legend-item-right-content button {
|
|
42
|
-
border: 0;
|
|
43
|
-
color: #39870c;
|
|
44
|
-
line-height: 1;
|
|
45
|
-
padding: 0;
|
|
46
|
-
background-color: transparent;
|
|
47
|
-
}
|
|
48
|
-
.legend-item-right-content button[disabled] {
|
|
49
|
-
color: #afcf9d;
|
|
50
|
-
}
|
|
51
|
-
.legend-item-right-content button[disabled].dso-spinner-left, .legend-item-right-content button[disabled].dso-spinner-right {
|
|
52
|
-
color: #39870c;
|
|
53
|
-
}
|
|
54
|
-
.legend-item-right-content button:not([disabled]):hover {
|
|
55
|
-
color: #275937;
|
|
56
|
-
text-decoration: underline;
|
|
57
|
-
text-underline-position: under;
|
|
58
|
-
}
|
|
59
|
-
.legend-item-right-content button:not([disabled]):active {
|
|
60
|
-
color: #173521;
|
|
61
|
-
}
|
|
62
|
-
.legend-item-right-content button.dso-align {
|
|
63
|
-
line-height: calc(1.5em - 1px);
|
|
64
|
-
padding-block: 11px;
|
|
65
|
-
padding-inline: 0;
|
|
66
|
-
position: relative;
|
|
67
|
-
}
|
|
68
|
-
.legend-item-right-content button.dso-truncate {
|
|
69
|
-
max-inline-size: 100%;
|
|
70
|
-
overflow: hidden;
|
|
71
|
-
text-overflow: ellipsis;
|
|
72
|
-
white-space: nowrap;
|
|
73
|
-
}
|
|
74
|
-
.legend-item-right-content button.dso-spinner-left::before {
|
|
75
|
-
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
76
|
-
background-repeat: no-repeat;
|
|
77
|
-
content: "";
|
|
78
|
-
display: inline-block;
|
|
79
|
-
block-size: 24px;
|
|
80
|
-
vertical-align: middle;
|
|
81
|
-
inline-size: 24px;
|
|
82
|
-
margin-inline-end: 8px;
|
|
83
|
-
}
|
|
84
|
-
.legend-item-right-content button.dso-spinner-right::after {
|
|
85
|
-
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
86
|
-
background-repeat: no-repeat;
|
|
87
|
-
content: "";
|
|
88
|
-
display: inline-block;
|
|
89
|
-
block-size: 24px;
|
|
90
|
-
vertical-align: middle;
|
|
91
|
-
inline-size: 24px;
|
|
92
|
-
margin-inline-start: 8px;
|
|
93
|
-
}
|
|
94
|
-
.legend-item-right-content button > span {
|
|
95
|
-
position: absolute;
|
|
96
|
-
inline-size: 1px;
|
|
97
|
-
block-size: 1px;
|
|
98
|
-
padding: 0;
|
|
99
|
-
margin: -1px;
|
|
100
|
-
overflow: hidden;
|
|
101
|
-
clip: rect(0, 0, 0, 0);
|
|
102
|
-
border: 0;
|
|
103
|
-
}
|
|
104
|
-
.legend-item-right-content button {
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
}
|
|
107
|
-
.legend-item-right-content button.active {
|
|
108
|
-
color: #173521;
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-content: center;
|
|
41
|
+
align-items: center;
|
|
109
42
|
}
|
|
110
43
|
.legend-item-right-content dso-slide-toggle {
|
|
44
|
+
display: flex;
|
|
111
45
|
align-self: center;
|
|
46
|
+
line-height: 1;
|
|
112
47
|
margin-inline-start: 8px;
|
|
113
48
|
padding-block-start: 0 !important;
|
|
114
49
|
}
|
|
@@ -31,7 +31,7 @@ export class LegendItem {
|
|
|
31
31
|
render() {
|
|
32
32
|
const hasSymbol = this.symbolSlottedElement !== null;
|
|
33
33
|
const hasOptions = this.optionsSlottedElement !== null;
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'bb29c154cabdd5638eceb98f115f47ffdc849f19', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h("div", { key: 'fcc8adc7e164038c43702e6c894cb4c99a2fa87d', class: clsx("legend-item", { "legend-item-symbol": hasSymbol }) }, hasSymbol && (h("div", { key: 'd697b6969913b69eb382042d3c9872d7a055b3e2' }, h("slot", { key: '4b6a6ca641bdd2db1add8228012c26fb367252fd', name: "symbol" }))), h("div", { key: '4cb27d216c269153de29456506ed3283ec5b4ab3' }, h("slot", { key: '10daf3e2bef4dd1242823dff74451744cc602705' })), this.disabled && this.disabledMessage && (h("dso-toggletip", { key: '5e74c5da1011113459866077ae3f748fec94ef06', position: "bottom" }, this.disabledMessage)), h("div", { key: 'fae4cbfad614f554e081759fe7b437a7d4b96608', class: "legend-item-right-content" }, hasOptions && !this.disabled && (h("dso-icon-button", { key: '58f75ebffb71903c24498cf517970dfb960d9447', label: "Opties", icon: "more", variant: "tertiary", class: { active: this.showOptions }, id: "edit-button", onDsoClick: () => (this.showOptions = !this.showOptions) })), this.activatable && (h("dso-slide-toggle", { key: '331c30242153ea9e87063b8a784406bc527b543a', accessibleLabel: "Maak actief", checked: this.active, disabled: this.disabled, onDsoActiveChange: (e) => this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e }) })))), hasOptions && (h("div", { key: '7800987198ece6fb7127d576b1f2c92fa812d511', hidden: this.disabled || !this.showOptions, class: "options" }, h("slot", { key: '00faad1a8a92ea7d3f5ff32e770f16004cb13b37', name: "options" })))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "dso-legend-item"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legend-item.js","sourceRoot":"","sources":["../../../../src/components/legend-item/legend-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB;;;;GAIG;AAMH,MAAM,OAAO,UAAU;IALvB;QASE;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAuCjB,gBAAW,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"legend-item.js","sourceRoot":"","sources":["../../../../src/components/legend-item/legend-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,CAAC,GACF,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB;;;;GAIG;AAMH,MAAM,OAAO,UAAU;IALvB;QASE;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAuCjB,gBAAW,GAAG,KAAK,CAAC;KA0ErB;IAtEC,iBAAiB;QACf,IAAI,CAAC,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAE3E,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,gBAAgB,0CAAE,UAAU,EAAE,CAAC;QAEpC,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED,IAAI,oBAAoB;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACpD,CAAC;IAED,IAAI,qBAAqB;QACvB,OAAO,IAAI,C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I,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,GAEpG,CACH,CACG,CACF;YACL,UAAU,IAAI,CACb,4DAAK,MAAM,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,EAAC,SAAS;gBAC9D,6DAAM,IAAI,EAAC,SAAS,GAAG,CACnB,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Host,\r\n Prop,\r\n State,\r\n forceUpdate,\r\n h,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\nimport { LegendItemActiveChangeEvent } from \"./legend-item.interfaces\";\r\n\r\n/**\r\n * @slot The label for this Legend Item\r\n * @slot symbol - A span where the symbol is styled upon\r\n * @slot options - The slot to place controls in (i.e. `dso-input-range`). If present, this will cause the appearance of an edit-button (three dots) to show the controls. Will not be displayed if property `disabled` is set to true.\r\n */\r\n@Component({\r\n tag: \"dso-legend-item\",\r\n styleUrl: \"legend-item.scss\",\r\n shadow: true,\r\n})\r\nexport class LegendItem implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoLegendItemElement;\r\n\r\n /**\r\n * To disable the Legend Item\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Message to be shown behind a toggletip when the Legend Item is disabled\r\n */\r\n @Prop()\r\n disabledMessage?: string;\r\n\r\n /**\r\n * Controls whether this Legend Item can be active or not\r\n */\r\n @Prop({ reflect: true })\r\n activatable?: boolean;\r\n\r\n /**\r\n * Controls whether this Legend Item is active or not\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event()\r\n dsoActiveChange!: EventEmitter<LegendItemActiveChangeEvent>;\r\n\r\n /**\r\n * Emitted when the mouse enters the Legend Item\r\n */\r\n @Event()\r\n dsoMouseEnter!: EventEmitter;\r\n\r\n /**\r\n * Emitted when the mouse leaves the Legend Item\r\n */\r\n @Event()\r\n dsoMouseLeave!: EventEmitter;\r\n\r\n @State()\r\n showOptions = false;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n connectedCallback(): void {\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n\r\n this.mutationObserver.observe(this.host, { attributes: true, childList: true });\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n\r\n get symbolSlottedElement() {\r\n return this.host.querySelector(\"[slot='symbol']\");\r\n }\r\n\r\n get optionsSlottedElement() {\r\n return this.host.querySelector(\"[slot='options']\");\r\n }\r\n\r\n render() {\r\n const hasSymbol = this.symbolSlottedElement !== null;\r\n const hasOptions = this.optionsSlottedElement !== null;\r\n\r\n return (\r\n <Host onMouseEnter={() => this.dsoMouseEnter.emit()} onMouseLeave={() => this.dsoMouseLeave.emit()}>\r\n <div class={clsx(\"legend-item\", { \"legend-item-symbol\": hasSymbol })}>\r\n {hasSymbol && (\r\n <div>\r\n <slot name=\"symbol\" />\r\n </div>\r\n )}\r\n <div>\r\n <slot />\r\n </div>\r\n {this.disabled && this.disabledMessage && (\r\n <dso-toggletip position=\"bottom\">{this.disabledMessage}</dso-toggletip>\r\n )}\r\n\r\n <div class=\"legend-item-right-content\">\r\n {hasOptions && !this.disabled && (\r\n <dso-icon-button\r\n label=\"Opties\"\r\n icon=\"more\"\r\n variant=\"tertiary\"\r\n class={{ active: this.showOptions }}\r\n id=\"edit-button\"\r\n onDsoClick={() => (this.showOptions = !this.showOptions)}\r\n />\r\n )}\r\n {this.activatable && (\r\n <dso-slide-toggle\r\n accessibleLabel=\"Maak actief\"\r\n checked={this.active}\r\n disabled={this.disabled}\r\n onDsoActiveChange={(e) =>\r\n this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e })\r\n }\r\n />\r\n )}\r\n </div>\r\n </div>\r\n {hasOptions && (\r\n <div hidden={this.disabled || !this.showOptions} class=\"options\">\r\n <slot name=\"options\" />\r\n </div>\r\n )}\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|