@dso-toolkit/core 80.0.0 → 81.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/dso-accordion-section.js +8 -8
- package/dist/bundle/dso-accordion-section.js.map +1 -1
- package/dist/bundle/dso-action-list-item.js +1 -1
- package/dist/bundle/dso-advanced-select.js +4 -4
- package/dist/bundle/dso-alert.js +1 -1
- package/dist/bundle/dso-annotation-activiteit.js +7 -7
- package/dist/bundle/dso-annotation-activiteit.js.map +1 -1
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +7 -7
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/bundle/dso-annotation-kaart.js +4 -4
- 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 +7 -7
- 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 +3 -3
- package/dist/bundle/dso-card.js +2 -2
- package/dist/bundle/dso-card.js.map +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.js +2 -2
- package/dist/bundle/dso-icon-button.js +1 -1
- package/dist/bundle/dso-icon.js +1 -1
- package/dist/bundle/dso-image-overlay.js +1 -1
- package/dist/bundle/dso-info-button.js +1 -1
- package/dist/bundle/dso-info.js +1 -1
- package/dist/bundle/dso-input-range.js +2 -2
- package/dist/bundle/dso-label.js +1 -1
- package/dist/bundle/dso-legend-item.js +7 -7
- package/dist/bundle/dso-list-button.js +7 -7
- 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 +6 -6
- package/dist/bundle/dso-map-controls.js +4 -4
- package/dist/bundle/dso-map-controls.js.map +1 -1
- package/dist/bundle/dso-map-overlays.js +6 -6
- package/dist/bundle/dso-mark-bar.js +3 -3
- package/dist/bundle/dso-modal.js +4 -4
- package/dist/bundle/dso-onboarding-tip.js +4 -3
- package/dist/bundle/dso-onboarding-tip.js.map +1 -1
- package/dist/bundle/dso-ozon-content-toggletip.d.ts +11 -0
- package/dist/bundle/dso-ozon-content-toggletip.js +9 -0
- package/dist/bundle/dso-ozon-content-toggletip.js.map +1 -0
- 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 +5 -5
- 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 +6 -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.js +2 -2
- 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 +2 -2
- package/dist/bundle/dso-viewer-grid.js.map +1 -1
- package/dist/bundle/dsot-document-component-demo.js +36 -29
- package/dist/bundle/dsot-document-component-demo.js.map +1 -1
- package/dist/bundle/index.js +2 -2
- package/dist/bundle/{p-DroNj8WY.js → p-B4T_HZRq.js} +3 -3
- package/dist/bundle/{p-DroNj8WY.js.map → p-B4T_HZRq.js.map} +1 -1
- package/dist/bundle/{p-uFh4xT-b.js → p-BDuXq5bx.js} +9 -9
- package/dist/bundle/{p-uFh4xT-b.js.map → p-BDuXq5bx.js.map} +1 -1
- package/dist/bundle/p-BJ43Q58h.js +116 -0
- package/dist/bundle/p-BJ43Q58h.js.map +1 -0
- package/dist/bundle/{p-D-c0uqBJ.js → p-BZCmkczj.js} +3 -3
- package/dist/bundle/{p-D-c0uqBJ.js.map → p-BZCmkczj.js.map} +1 -1
- package/dist/bundle/p-BuyCa_uF.js +101 -0
- package/dist/bundle/p-BuyCa_uF.js.map +1 -0
- package/dist/bundle/{p-CsCVe62Z.js → p-BwJ60QDk.js} +4 -4
- package/dist/bundle/{p-CsCVe62Z.js.map → p-BwJ60QDk.js.map} +1 -1
- package/dist/bundle/p-CFAsG6Ok.js +332 -0
- package/dist/bundle/p-CFAsG6Ok.js.map +1 -0
- package/dist/bundle/{p-Det0hMG3.js → p-CHxXKwET.js} +3 -3
- package/dist/bundle/{p-Det0hMG3.js.map → p-CHxXKwET.js.map} +1 -1
- package/dist/bundle/p-CN3aN7RU.js +1211 -0
- package/dist/bundle/p-CN3aN7RU.js.map +1 -0
- package/dist/bundle/{p-Bl9zHNzD.js → p-CS5wngFb.js} +3 -3
- package/dist/bundle/{p-Bl9zHNzD.js.map → p-CS5wngFb.js.map} +1 -1
- package/dist/bundle/{p-DnhRCFJX.js → p-CpYhA6kG.js} +3 -3
- package/dist/bundle/{p-DnhRCFJX.js.map → p-CpYhA6kG.js.map} +1 -1
- package/dist/bundle/{p-DCUKSco0.js → p-Cpkqb2I3.js} +4 -4
- package/dist/bundle/{p-DCUKSco0.js.map → p-Cpkqb2I3.js.map} +1 -1
- package/dist/bundle/{p-9bHGEoYf.js → p-D1M1qAkT.js} +4 -4
- package/dist/bundle/{p-9bHGEoYf.js.map → p-D1M1qAkT.js.map} +1 -1
- package/dist/bundle/{p-BR7Ow0DG.js → p-DAvYoaob.js} +5 -5
- package/dist/bundle/{p-BR7Ow0DG.js.map → p-DAvYoaob.js.map} +1 -1
- package/dist/bundle/{p-BcGxHO36.js → p-DTle6By6.js} +3 -3
- package/dist/bundle/{p-BcGxHO36.js.map → p-DTle6By6.js.map} +1 -1
- package/dist/bundle/{p-DFmQ0X-A.js → p-D_6TKRgI.js} +4 -4
- package/dist/bundle/{p-DFmQ0X-A.js.map → p-D_6TKRgI.js.map} +1 -1
- package/dist/bundle/p-Dd5JHsV3.js +111 -0
- package/dist/bundle/p-Dd5JHsV3.js.map +1 -0
- package/dist/bundle/{p-Dxl03aIO.js → p-DpzeiE9g.js} +5 -5
- package/dist/bundle/{p-Dxl03aIO.js.map → p-DpzeiE9g.js.map} +1 -1
- package/dist/bundle/{p-Bp89pCCa.js → p-Dvmo0ffo.js} +7 -7
- package/dist/bundle/{p-Bp89pCCa.js.map → p-Dvmo0ffo.js.map} +1 -1
- package/dist/bundle/{p-DGFwLEIa.js → p-UaaPHvKJ.js} +3 -3
- package/dist/bundle/{p-DGFwLEIa.js.map → p-UaaPHvKJ.js.map} +1 -1
- package/dist/bundle/p-YEwuOvaY.js +86 -0
- package/dist/bundle/{p-DfqdgdtQ.js.map → p-YEwuOvaY.js.map} +1 -1
- package/dist/bundle/{p-IsED2_lv.js → p-ZFqVNkha.js} +21 -8
- package/dist/bundle/p-ZFqVNkha.js.map +1 -0
- package/dist/bundle/{p-DT_PQZdN.js → p-fTG2YwZq.js} +5 -5
- package/dist/bundle/{p-DT_PQZdN.js.map → p-fTG2YwZq.js.map} +1 -1
- package/dist/bundle/p-nPKr7LCS.js +115 -0
- package/dist/bundle/{p-BwLp1fyH.js.map → p-nPKr7LCS.js.map} +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
- 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-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-ozon-content-toggletip.dso-panel.dso-table.entry.cjs.js.map +1 -0
- package/dist/cjs/dso-alert_7.cjs.entry.js +1497 -0
- package/dist/cjs/dso-alert_7.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +13 -14
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +1 -1
- 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-card.cjs.entry.js +1 -1
- package/dist/cjs/dso-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-card.entry.cjs.js.map +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 +1 -1
- package/dist/cjs/dso-icon-button.cjs.entry.js +4 -12
- package/dist/cjs/dso-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-icon-button.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-info.dso-selectable.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +17 -4
- 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 +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +1 -1
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js +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-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 +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +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 +2 -2
- 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 +5 -5
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js.map +1 -1
- package/dist/cjs/dsot-document-component-demo.entry.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/parse-wijzigactie-from-node.function-DVYsomcI.js +29 -0
- package/dist/cjs/parse-wijzigactie-from-node.function-DVYsomcI.js.map +1 -0
- package/dist/cjs/tooltip.functional-component-CD9AUuU7.js +18 -0
- package/dist/cjs/tooltip.functional-component-CD9AUuU7.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/components/accordion-section.css +3 -2
- package/dist/collection/components/annotation/annotation.css +6 -3
- package/dist/collection/components/card/card.css +3 -3
- package/dist/collection/components/document-card/document-card.js +1 -1
- package/dist/collection/components/document-component/document-component.css +28 -102
- package/dist/collection/components/document-component/document-component.interfaces.js.map +1 -1
- package/dist/collection/components/document-component/document-component.js +44 -17
- package/dist/collection/components/document-component/document-component.js.map +1 -1
- package/dist/collection/components/document-component-demo/document-component.demo.js +38 -11
- package/dist/collection/components/document-component-demo/document-component.demo.js.map +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.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.css +11 -21
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/image-overlay/image-overlay.css +6 -0
- package/dist/collection/components/info/info.js +1 -1
- package/dist/collection/components/info-button/info-button.js +1 -1
- package/dist/collection/components/input-range/input-range.js +2 -2
- package/dist/collection/components/label/label.css +3 -0
- package/dist/collection/components/label/label.js +3 -3
- package/dist/collection/components/legend-item/legend-item.js +1 -1
- package/dist/collection/components/list-button/list-button.css +1 -14
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/logo/logo.js +1 -1
- package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
- package/dist/collection/components/map-controls/map-controls.css +19 -99
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/map-overlays/map-overlays.js +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.css +108 -0
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +109 -0
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js.map +1 -0
- package/dist/collection/components/ozon-content/nodes/int-io-ref.node.js +10 -16
- package/dist/collection/components/ozon-content/nodes/int-io-ref.node.js.map +1 -1
- package/dist/collection/components/ozon-content/nodes/int-ref.node.js +16 -16
- package/dist/collection/components/ozon-content/nodes/int-ref.node.js.map +1 -1
- package/dist/collection/components/ozon-content/nodes/noot.node.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content-context.interface.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +5 -21
- package/dist/collection/components/ozon-content/ozon-content-mapper.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content-node-context.interface.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content.css +41 -139
- package/dist/collection/components/ozon-content/ozon-content.interfaces.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content.js +29 -26
- package/dist/collection/components/ozon-content/ozon-content.js.map +1 -1
- package/dist/collection/components/plekinfo-card/plekinfo-card.css +3 -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/renvooi/renvooi.css +3 -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/survey-rating/survey-rating.css +5 -10
- package/dist/collection/components/survey-rating/survey-rating.js +2 -2
- package/dist/collection/components/table/table.css +19 -99
- 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.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js +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/viewer-grid.css +2 -16
- package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
- package/dist/collection/utils/parse-xml.js +17 -0
- package/dist/collection/utils/parse-xml.js.map +1 -0
- package/dist/components/annotation-locatie.js +1 -1
- package/dist/components/annotation-locatie.js.map +1 -1
- package/dist/components/document-component.js +32 -26
- package/dist/components/document-component.js.map +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dso-accordion-section.js +1 -1
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-annotation-activiteit.js +1 -1
- package/dist/components/dso-annotation-activiteit.js.map +1 -1
- package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
- package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/components/dso-annotation-kaart.js +1 -1
- package/dist/components/dso-annotation-kaart.js.map +1 -1
- package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
- package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -1
- package/dist/components/dso-card.js +1 -1
- package/dist/components/dso-card.js.map +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.js +1 -1
- package/dist/components/dso-input-range.js +2 -2
- package/dist/components/dso-legend-item.js +1 -1
- package/dist/components/dso-list-button.js +2 -2
- 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 +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 +1 -1
- package/dist/components/dso-mark-bar.js +1 -1
- package/dist/components/dso-modal.js +1 -1
- package/dist/components/dso-onboarding-tip.js +3 -2
- package/dist/components/dso-onboarding-tip.js.map +1 -1
- package/dist/components/dso-ozon-content-toggletip.d.ts +11 -0
- package/dist/components/dso-ozon-content-toggletip.js +9 -0
- package/dist/components/dso-ozon-content-toggletip.js.map +1 -0
- 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 +1 -1
- package/dist/components/dso-skiplink.js +1 -1
- package/dist/components/dso-survey-rating.js +3 -3
- package/dist/components/dso-survey-rating.js.map +1 -1
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tijdreis-banner.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +2 -2
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/dsot-document-component-demo.js +30 -23
- package/dist/components/dsot-document-component-demo.js.map +1 -1
- package/dist/components/icon-button.js +5 -109
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/image-overlay.js +1 -1
- package/dist/components/image-overlay.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/info-button.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/label.js +4 -4
- package/dist/components/label.js.map +1 -1
- package/dist/components/ozon-content-toggletip.js +101 -0
- package/dist/components/ozon-content-toggletip.js.map +1 -0
- package/dist/components/ozon-content.js +78 -63
- package/dist/components/ozon-content.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 +15 -2
- package/dist/components/selectable.js.map +1 -1
- package/dist/components/slide-toggle.js +1 -1
- package/dist/components/table.js +2 -2
- package/dist/components/table.js.map +1 -1
- package/dist/components/toggletip.js +1 -1
- package/dist/components/tooltip.functional-component.js +111 -0
- package/dist/components/tooltip.functional-component.js.map +1 -0
- 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-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-ozon-content-toggletip.dso-panel.dso-table.entry.esm.js.map +1 -0
- 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-card.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-icon-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-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-plekinfo-card.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-survey-rating.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/dsot-document-component-demo.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/{p-808ce903.entry.js → p-07220932.entry.js} +2 -2
- package/dist/dso-toolkit/{p-44415d94.entry.js → p-0a496a26.entry.js} +2 -2
- package/dist/dso-toolkit/p-0ee97f84.entry.js +2 -0
- package/dist/dso-toolkit/{p-ad1ddba2.entry.js.map → p-0ee97f84.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-1da633fc.entry.js → p-19019f3b.entry.js} +2 -2
- package/dist/dso-toolkit/p-24bd7e04.entry.js +2 -0
- package/dist/dso-toolkit/p-24bd7e04.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-d01cf064.entry.js → p-2787bc48.entry.js} +2 -2
- package/dist/dso-toolkit/p-27eac763.entry.js +2 -0
- package/dist/dso-toolkit/{p-0cdc3e10.entry.js.map → p-27eac763.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-e882b88b.entry.js → p-2d35ce14.entry.js} +2 -2
- package/dist/dso-toolkit/p-32b64025.entry.js +2 -0
- package/dist/dso-toolkit/{p-862f3439.entry.js.map → p-32b64025.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-eee489f1.entry.js → p-3bc30158.entry.js} +2 -2
- package/dist/dso-toolkit/{p-eee489f1.entry.js.map → p-3bc30158.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-616021ab.entry.js → p-4341eaab.entry.js} +2 -2
- package/dist/dso-toolkit/{p-efbfd246.entry.js.map → p-4341eaab.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-c6cd153d.entry.js → p-4593ea95.entry.js} +2 -2
- package/dist/dso-toolkit/{p-987406fd.entry.js → p-4a07fb41.entry.js} +2 -2
- package/dist/dso-toolkit/p-556f5935.entry.js +2 -0
- package/dist/dso-toolkit/{p-3f0c80ce.entry.js.map → p-556f5935.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-573b9046.entry.js +2 -0
- package/dist/dso-toolkit/{p-616021ab.entry.js.map → p-573b9046.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-7fd4c991.entry.js → p-6215779a.entry.js} +2 -2
- package/dist/dso-toolkit/p-622e11c0.entry.js +2 -0
- package/dist/dso-toolkit/{p-7f686292.entry.js.map → p-622e11c0.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-649ea683.entry.js → p-663fb2ee.entry.js} +2 -2
- package/dist/dso-toolkit/{p-706da18c.entry.js → p-6a578760.entry.js} +2 -2
- package/dist/dso-toolkit/{p-10e924eb.entry.js → p-70ea6c42.entry.js} +2 -2
- package/dist/dso-toolkit/{p-47713848.entry.js → p-76f0c45e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8a5f5ada.entry.js → p-7883dfda.entry.js} +2 -2
- package/dist/dso-toolkit/{p-20b31a44.entry.js → p-7fed0288.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d80d3ce8.entry.js → p-847af791.entry.js} +2 -2
- package/dist/dso-toolkit/p-9232e376.entry.js +2 -0
- package/dist/dso-toolkit/{p-bdccacb5.entry.js.map → p-9232e376.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-932b7006.entry.js +2 -0
- package/dist/dso-toolkit/p-932b7006.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-2e304f75.entry.js → p-9b37f2a1.entry.js} +2 -2
- package/dist/dso-toolkit/p-BlB0--wP.js +2 -0
- package/dist/dso-toolkit/p-BlB0--wP.js.map +1 -0
- package/dist/dso-toolkit/p-DD1v6_X_.js +2 -0
- package/dist/dso-toolkit/p-DD1v6_X_.js.map +1 -0
- package/dist/dso-toolkit/{p-26966325.entry.js → p-a2d60908.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8972246f.entry.js → p-a61e4944.entry.js} +2 -2
- package/dist/dso-toolkit/{p-33220be0.entry.js → p-a96fc5f8.entry.js} +2 -2
- package/dist/dso-toolkit/p-aa1b8321.entry.js +2 -0
- package/dist/dso-toolkit/p-aa1b8321.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-4d590a9d.entry.js → p-acdbeafd.entry.js} +2 -2
- package/dist/dso-toolkit/p-b12a966f.entry.js +2 -0
- package/dist/dso-toolkit/{p-116f645b.entry.js.map → p-b12a966f.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-9fd36887.entry.js → p-b3f2cf42.entry.js} +2 -2
- package/dist/dso-toolkit/{p-10ac0424.entry.js → p-b52165a0.entry.js} +2 -2
- package/dist/dso-toolkit/{p-43ba1098.entry.js → p-c8def649.entry.js} +2 -2
- package/dist/dso-toolkit/p-d14bcff7.entry.js +2 -0
- package/dist/dso-toolkit/{p-8e1c7f7a.entry.js.map → p-d14bcff7.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-b92a01d1.entry.js → p-d84f1295.entry.js} +2 -2
- package/dist/dso-toolkit/{p-b92a01d1.entry.js.map → p-d84f1295.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-da3c8097.entry.js +2 -0
- package/dist/dso-toolkit/p-e5f7cfd3.entry.js +2 -0
- package/dist/dso-toolkit/{p-2512c5f5.entry.js.map → p-e5f7cfd3.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-ebef2eef.entry.js +2 -0
- package/dist/dso-toolkit/p-ebef2eef.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-08643f11.entry.js → p-eceff1ea.entry.js} +2 -2
- package/dist/dso-toolkit/{p-9f178660.entry.js → p-f07bf097.entry.js} +2 -2
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-ozon-content-toggletip.dso-panel.dso-table.entry.js.map +1 -0
- package/dist/esm/dso-alert_7.entry.js +1489 -0
- package/dist/esm/dso-alert_7.entry.js.map +1 -0
- package/dist/esm/dso-annotation-activiteit.entry.js +1 -1
- package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +1 -1
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
- package/dist/esm/dso-annotation-kaart.entry.js +1 -1
- 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 +13 -14
- package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +1 -1
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -1
- package/dist/esm/dso-card.entry.js +1 -1
- package/dist/esm/dso-card.entry.js.map +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 +1 -1
- package/dist/esm/dso-icon-button.entry.js +5 -13
- package/dist/esm/dso-icon-button.entry.js.map +1 -1
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-info-button.entry.js +1 -1
- package/dist/esm/dso-info.dso-selectable.entry.js.map +1 -1
- package/dist/esm/dso-info_2.entry.js +16 -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 +1 -1
- package/dist/esm/dso-list-button.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/dso-modal.entry.js +1 -1
- package/dist/esm/dso-onboarding-tip.entry.js +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-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 +1 -1
- package/dist/esm/dso-toggletip.entry.js +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 +2 -2
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/dsot-document-component-demo.entry.js +5 -5
- package/dist/esm/dsot-document-component-demo.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/parse-wijzigactie-from-node.function-DD1v6_X_.js +26 -0
- package/dist/esm/parse-wijzigactie-from-node.function-DD1v6_X_.js.map +1 -0
- package/dist/esm/tooltip.functional-component-B6RTdaZw.js +16 -0
- package/dist/esm/tooltip.functional-component-B6RTdaZw.js.map +1 -0
- package/dist/types/components/document-component/document-component.d.ts +8 -5
- package/dist/types/components/document-component/document-component.interfaces.d.ts +4 -4
- package/dist/types/components/document-component-demo/document-component.demo.d.ts +9 -5
- package/dist/types/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.d.ts +20 -0
- package/dist/types/components/ozon-content/nodes/int-io-ref.node.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/int-ref.node.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content-context.interface.d.ts +2 -2
- package/dist/types/components/ozon-content/ozon-content-mapper.d.ts +0 -2
- package/dist/types/components/ozon-content/ozon-content-node-context.interface.d.ts +2 -2
- package/dist/types/components/ozon-content/ozon-content.d.ts +5 -5
- package/dist/types/components/ozon-content/ozon-content.interfaces.d.ts +9 -9
- package/dist/types/components.d.ts +62 -194
- package/dist/types/utils/parse-xml.d.ts +1 -0
- package/package.json +3 -3
- package/dist/bundle/dso-date-picker-legacy.d.ts +0 -11
- package/dist/bundle/dso-date-picker-legacy.js +0 -773
- package/dist/bundle/dso-date-picker-legacy.js.map +0 -1
- package/dist/bundle/p-B5BPyp6o.js +0 -220
- package/dist/bundle/p-B5BPyp6o.js.map +0 -1
- package/dist/bundle/p-B8bBvups.js +0 -326
- package/dist/bundle/p-B8bBvups.js.map +0 -1
- package/dist/bundle/p-BwLp1fyH.js +0 -115
- package/dist/bundle/p-DGU5h4Ld.js +0 -1196
- package/dist/bundle/p-DGU5h4Ld.js.map +0 -1
- package/dist/bundle/p-DSyv-znO.js +0 -18
- package/dist/bundle/p-DSyv-znO.js.map +0 -1
- package/dist/bundle/p-DfqdgdtQ.js +0 -86
- package/dist/bundle/p-IsED2_lv.js.map +0 -1
- package/dist/cjs/create-identifier-C3Yh-YGw.js +0 -20
- package/dist/cjs/create-identifier-C3Yh-YGw.js.map +0 -1
- package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +0 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +0 -1433
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +0 -1
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +0 -732
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js.map +0 -1
- package/dist/cjs/dso-date-picker-legacy.entry.cjs.js.map +0 -1
- package/dist/cjs/parse-wijzigactie-from-node.function-BSyDFa0d.js +0 -11
- package/dist/cjs/parse-wijzigactie-from-node.function-BSyDFa0d.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/date-localization.js +0 -30
- package/dist/collection/components/date-picker-legacy/date-localization.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/date-picker-day.js +0 -20
- package/dist/collection/components/date-picker-legacy/date-picker-day.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.css +0 -492
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.interfaces.js +0 -2
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.interfaces.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +0 -904
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/date-picker-month.js +0 -26
- package/dist/collection/components/date-picker-legacy/date-picker-month.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/date-utils.js +0 -155
- package/dist/collection/components/date-picker-legacy/date-utils.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/utils/month-range.js +0 -28
- package/dist/collection/components/date-picker-legacy/utils/month-range.js.map +0 -1
- package/dist/collection/components/date-picker-legacy/utils/range.js +0 -8
- package/dist/collection/components/date-picker-legacy/utils/range.js.map +0 -1
- package/dist/components/create-identifier.js +0 -18
- package/dist/components/create-identifier.js.map +0 -1
- package/dist/components/dso-date-picker-legacy.d.ts +0 -11
- package/dist/components/dso-date-picker-legacy.js +0 -773
- package/dist/components/dso-date-picker-legacy.js.map +0 -1
- package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +0 -1
- package/dist/dso-toolkit/dso-date-picker-legacy.entry.esm.js.map +0 -1
- package/dist/dso-toolkit/p-0cdc3e10.entry.js +0 -2
- package/dist/dso-toolkit/p-116f645b.entry.js +0 -2
- package/dist/dso-toolkit/p-1336708f.entry.js +0 -2
- package/dist/dso-toolkit/p-1336708f.entry.js.map +0 -1
- package/dist/dso-toolkit/p-2512c5f5.entry.js +0 -2
- package/dist/dso-toolkit/p-2bce5330.entry.js +0 -2
- package/dist/dso-toolkit/p-3f0c80ce.entry.js +0 -2
- package/dist/dso-toolkit/p-7f686292.entry.js +0 -2
- package/dist/dso-toolkit/p-862f3439.entry.js +0 -2
- package/dist/dso-toolkit/p-8e1c7f7a.entry.js +0 -2
- package/dist/dso-toolkit/p-98159a53.entry.js +0 -2
- package/dist/dso-toolkit/p-98159a53.entry.js.map +0 -1
- package/dist/dso-toolkit/p-DSyv-znO.js +0 -2
- package/dist/dso-toolkit/p-DSyv-znO.js.map +0 -1
- package/dist/dso-toolkit/p-a0cfd562.entry.js +0 -2
- package/dist/dso-toolkit/p-a0cfd562.entry.js.map +0 -1
- package/dist/dso-toolkit/p-ad1ddba2.entry.js +0 -2
- package/dist/dso-toolkit/p-bdccacb5.entry.js +0 -2
- package/dist/dso-toolkit/p-c0526066.entry.js +0 -2
- package/dist/dso-toolkit/p-c0526066.entry.js.map +0 -1
- package/dist/dso-toolkit/p-c5d287ad.entry.js +0 -2
- package/dist/dso-toolkit/p-c5d287ad.entry.js.map +0 -1
- package/dist/dso-toolkit/p-efbfd246.entry.js +0 -2
- package/dist/dso-toolkit/p-l-fQf40Y.js +0 -2
- package/dist/dso-toolkit/p-l-fQf40Y.js.map +0 -1
- package/dist/esm/create-identifier-DSyv-znO.js +0 -18
- package/dist/esm/create-identifier-DSyv-znO.js.map +0 -1
- package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +0 -1
- package/dist/esm/dso-alert_6.entry.js +0 -1426
- package/dist/esm/dso-alert_6.entry.js.map +0 -1
- package/dist/esm/dso-date-picker-legacy.entry.js +0 -730
- package/dist/esm/dso-date-picker-legacy.entry.js.map +0 -1
- package/dist/esm/parse-wijzigactie-from-node.function-l-fQf40Y.js +0 -9
- package/dist/esm/parse-wijzigactie-from-node.function-l-fQf40Y.js.map +0 -1
- package/dist/types/components/date-picker-legacy/date-localization.d.ts +0 -19
- package/dist/types/components/date-picker-legacy/date-picker-day.d.ts +0 -11
- package/dist/types/components/date-picker-legacy/date-picker-legacy.d.ts +0 -172
- package/dist/types/components/date-picker-legacy/date-picker-legacy.interfaces.d.ts +0 -14
- package/dist/types/components/date-picker-legacy/date-picker-month.d.ts +0 -20
- package/dist/types/components/date-picker-legacy/date-utils.d.ts +0 -46
- package/dist/types/components/date-picker-legacy/utils/month-range.d.ts +0 -2
- package/dist/types/components/date-picker-legacy/utils/range.d.ts +0 -1
- /package/dist/dso-toolkit/{p-808ce903.entry.js.map → p-07220932.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-44415d94.entry.js.map → p-0a496a26.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1da633fc.entry.js.map → p-19019f3b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d01cf064.entry.js.map → p-2787bc48.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e882b88b.entry.js.map → p-2d35ce14.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c6cd153d.entry.js.map → p-4593ea95.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-987406fd.entry.js.map → p-4a07fb41.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7fd4c991.entry.js.map → p-6215779a.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-649ea683.entry.js.map → p-663fb2ee.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-706da18c.entry.js.map → p-6a578760.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-10e924eb.entry.js.map → p-70ea6c42.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-47713848.entry.js.map → p-76f0c45e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8a5f5ada.entry.js.map → p-7883dfda.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-20b31a44.entry.js.map → p-7fed0288.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d80d3ce8.entry.js.map → p-847af791.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-2e304f75.entry.js.map → p-9b37f2a1.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-26966325.entry.js.map → p-a2d60908.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8972246f.entry.js.map → p-a61e4944.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-33220be0.entry.js.map → p-a96fc5f8.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4d590a9d.entry.js.map → p-acdbeafd.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9fd36887.entry.js.map → p-b3f2cf42.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-10ac0424.entry.js.map → p-b52165a0.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-43ba1098.entry.js.map → p-c8def649.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-2bce5330.entry.js.map → p-da3c8097.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-08643f11.entry.js.map → p-eceff1ea.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9f178660.entry.js.map → p-f07bf097.entry.js.map} +0 -0
|
@@ -1,732 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DvLsepiK.js');
|
|
4
|
-
var createIdentifier = require('./create-identifier-C3Yh-YGw.js');
|
|
5
|
-
|
|
6
|
-
const localization = {
|
|
7
|
-
buttonLabel: "Kies datum",
|
|
8
|
-
placeholder: "dd-mm-jjjj",
|
|
9
|
-
selectedDateMessage: "Geselecteerde datum is",
|
|
10
|
-
prevMonthLabel: "Vorige maand",
|
|
11
|
-
nextMonthLabel: "Volgende maand",
|
|
12
|
-
monthSelectLabel: "Maand",
|
|
13
|
-
yearSelectLabel: "Jaar",
|
|
14
|
-
closeLabel: "Sluiten",
|
|
15
|
-
keyboardInstruction: "Gebruik de pijltjestoetsen om een dag te kiezen",
|
|
16
|
-
calendarHeading: "Kies een datum",
|
|
17
|
-
dayNames: ["Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"],
|
|
18
|
-
monthNames: [
|
|
19
|
-
"Januari",
|
|
20
|
-
"Februari",
|
|
21
|
-
"Maart",
|
|
22
|
-
"April",
|
|
23
|
-
"Mei",
|
|
24
|
-
"Juni",
|
|
25
|
-
"Juli",
|
|
26
|
-
"Augustus",
|
|
27
|
-
"September",
|
|
28
|
-
"Oktober",
|
|
29
|
-
"November",
|
|
30
|
-
"December",
|
|
31
|
-
],
|
|
32
|
-
monthNamesShort: ["Jan", "Feb", "Mrt", "Apr", "Mei", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"],
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// eslint-disable-next-line @stencil-community/ban-exported-const-enums -- This enum is not part of public API
|
|
36
|
-
var DaysOfWeek;
|
|
37
|
-
(function (DaysOfWeek) {
|
|
38
|
-
DaysOfWeek[DaysOfWeek["Sunday"] = 0] = "Sunday";
|
|
39
|
-
DaysOfWeek[DaysOfWeek["Monday"] = 1] = "Monday";
|
|
40
|
-
DaysOfWeek[DaysOfWeek["Tuesday"] = 2] = "Tuesday";
|
|
41
|
-
DaysOfWeek[DaysOfWeek["Wednesday"] = 3] = "Wednesday";
|
|
42
|
-
DaysOfWeek[DaysOfWeek["Thursday"] = 4] = "Thursday";
|
|
43
|
-
DaysOfWeek[DaysOfWeek["Friday"] = 5] = "Friday";
|
|
44
|
-
DaysOfWeek[DaysOfWeek["Saturday"] = 6] = "Saturday";
|
|
45
|
-
})(DaysOfWeek || (DaysOfWeek = {}));
|
|
46
|
-
function createDate(year, month, day) {
|
|
47
|
-
const dayInt = parseInt(day, 10);
|
|
48
|
-
const monthInt = parseInt(month, 10);
|
|
49
|
-
const yearInt = parseInt(year, 10);
|
|
50
|
-
const isValid = Number.isInteger(yearInt) && // all parts should be integers
|
|
51
|
-
Number.isInteger(monthInt) &&
|
|
52
|
-
Number.isInteger(dayInt) &&
|
|
53
|
-
monthInt > 0 && // month must be 1-12
|
|
54
|
-
monthInt <= 12 &&
|
|
55
|
-
dayInt > 0 && // day must be 1-31
|
|
56
|
-
dayInt <= 31 &&
|
|
57
|
-
yearInt > 0;
|
|
58
|
-
if (isValid) {
|
|
59
|
-
return new Date(yearInt, monthInt - 1, dayInt);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @param value date string in Dutch format D-M-YYYY
|
|
64
|
-
*/
|
|
65
|
-
function parseDutchDate(value) {
|
|
66
|
-
if (!value) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
const matches = value.split("-");
|
|
70
|
-
if (matches.length === 3 &&
|
|
71
|
-
typeof matches[0] === "string" &&
|
|
72
|
-
typeof matches[1] === "string" &&
|
|
73
|
-
typeof matches[2] === "string" &&
|
|
74
|
-
matches[2].length === 4) {
|
|
75
|
-
return createDate(matches[2], matches[1], matches[0]);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* print date in format DD-MM-YYYY
|
|
80
|
-
* @param date
|
|
81
|
-
*/
|
|
82
|
-
function printDutchDate(date) {
|
|
83
|
-
if (!date) {
|
|
84
|
-
return "";
|
|
85
|
-
}
|
|
86
|
-
const d = date.getDate().toString(10).padStart(2, "0");
|
|
87
|
-
const m = (date.getMonth() + 1).toString(10).padStart(2, "0");
|
|
88
|
-
const y = date.getFullYear().toString(10).padStart(2, "0");
|
|
89
|
-
return `${d}-${m}-${y}`;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Compare if two dates are equal in terms of day, month, and year
|
|
93
|
-
*/
|
|
94
|
-
function isEqual(a, b) {
|
|
95
|
-
if (!a || !b) {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth() && a.getDate() === b.getDate();
|
|
99
|
-
}
|
|
100
|
-
function addDays(date, days) {
|
|
101
|
-
const d = new Date(date);
|
|
102
|
-
d.setDate(d.getDate() + days);
|
|
103
|
-
return d;
|
|
104
|
-
}
|
|
105
|
-
function startOfWeek(date, firstDayOfWeek = DaysOfWeek.Monday) {
|
|
106
|
-
const d = new Date(date);
|
|
107
|
-
const day = d.getDay();
|
|
108
|
-
const diff = (day < firstDayOfWeek ? 7 : 0) + day - firstDayOfWeek;
|
|
109
|
-
d.setDate(d.getDate() - diff);
|
|
110
|
-
return d;
|
|
111
|
-
}
|
|
112
|
-
function endOfWeek(date, firstDayOfWeek = DaysOfWeek.Monday) {
|
|
113
|
-
const d = new Date(date);
|
|
114
|
-
const day = d.getDay();
|
|
115
|
-
const diff = (day < firstDayOfWeek ? -7 : 0) + 6 - (day - firstDayOfWeek);
|
|
116
|
-
d.setDate(d.getDate() + diff);
|
|
117
|
-
return d;
|
|
118
|
-
}
|
|
119
|
-
function startOfMonth(date) {
|
|
120
|
-
return new Date(date.getFullYear(), date.getMonth(), 1);
|
|
121
|
-
}
|
|
122
|
-
function endOfMonth(date) {
|
|
123
|
-
return new Date(date.getFullYear(), date.getMonth() + 1, 0);
|
|
124
|
-
}
|
|
125
|
-
function setMonth(date, month) {
|
|
126
|
-
const d = new Date(date);
|
|
127
|
-
d.setMonth(month);
|
|
128
|
-
return d;
|
|
129
|
-
}
|
|
130
|
-
function setYear(date, year) {
|
|
131
|
-
const d = new Date(date);
|
|
132
|
-
d.setFullYear(year);
|
|
133
|
-
return d;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Check if date is within a min and max
|
|
137
|
-
*/
|
|
138
|
-
function inRange(date, min, max) {
|
|
139
|
-
return clamp(date, min, max) === date;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Ensures date is within range, returns min or max if out of bounds
|
|
143
|
-
*/
|
|
144
|
-
function clamp(date, min, max) {
|
|
145
|
-
const time = date.getTime();
|
|
146
|
-
if (min && min instanceof Date && time < min.getTime()) {
|
|
147
|
-
return min;
|
|
148
|
-
}
|
|
149
|
-
if (max && max instanceof Date && time > max.getTime()) {
|
|
150
|
-
return max;
|
|
151
|
-
}
|
|
152
|
-
return date;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* given start and end date, return an (inclusive) array of all dates in between
|
|
156
|
-
* @param start
|
|
157
|
-
* @param end
|
|
158
|
-
*/
|
|
159
|
-
function getDaysInRange(start, end) {
|
|
160
|
-
const days = [];
|
|
161
|
-
let current = start;
|
|
162
|
-
while (!isEqual(current, end)) {
|
|
163
|
-
days.push(current);
|
|
164
|
-
current = addDays(current, 1);
|
|
165
|
-
}
|
|
166
|
-
days.push(current);
|
|
167
|
-
return days;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* given a date, return an array of dates from a calendar perspective
|
|
171
|
-
* @param date
|
|
172
|
-
* @param firstDayOfWeek
|
|
173
|
-
*/
|
|
174
|
-
function getViewOfMonth(date, firstDayOfWeek = DaysOfWeek.Monday) {
|
|
175
|
-
const start = startOfWeek(startOfMonth(date), firstDayOfWeek);
|
|
176
|
-
const end = endOfWeek(endOfMonth(date), firstDayOfWeek);
|
|
177
|
-
return getDaysInRange(start, end);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
const DatePickerLegacyDay = ({ focusedDay, today, day, onDaySelect, onKeyboardNavigation, focusedDayRef, inRange, }) => {
|
|
181
|
-
const isToday = isEqual(day, today);
|
|
182
|
-
const isFocused = isEqual(day, focusedDay);
|
|
183
|
-
const notCurrentMonth = day.getMonth() !== focusedDay.getMonth();
|
|
184
|
-
const isOutsideRange = !inRange;
|
|
185
|
-
function handleClick(e) {
|
|
186
|
-
onDaySelect(e, day);
|
|
187
|
-
}
|
|
188
|
-
return (index.h("button", { class: {
|
|
189
|
-
"dso-date__day": true,
|
|
190
|
-
"is-today": isToday,
|
|
191
|
-
}, tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, disabled: isOutsideRange || notCurrentMonth, type: "button", ref: (el) => {
|
|
192
|
-
if (isFocused && el && focusedDayRef) {
|
|
193
|
-
focusedDayRef(el);
|
|
194
|
-
}
|
|
195
|
-
} },
|
|
196
|
-
index.h("span", { "aria-hidden": "true" }, day.getDate()),
|
|
197
|
-
index.h("span", { class: "dso-date__vhidden" }, printDutchDate(day))));
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
function chunk(array, chunkSize) {
|
|
201
|
-
const result = [];
|
|
202
|
-
for (let i = 0; i < array.length; i += chunkSize) {
|
|
203
|
-
result.push(array.slice(i, i + chunkSize));
|
|
204
|
-
}
|
|
205
|
-
return result;
|
|
206
|
-
}
|
|
207
|
-
function mapWithOffset(array, startingOffset, mapFn) {
|
|
208
|
-
return array.map((_, i) => {
|
|
209
|
-
const adjustedIndex = (i + startingOffset) % array.length;
|
|
210
|
-
const item = array[adjustedIndex];
|
|
211
|
-
if (!item) {
|
|
212
|
-
throw new Error("No item found");
|
|
213
|
-
}
|
|
214
|
-
return mapFn(item);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
const DatePickerLegacyMonth = ({ selectedDate, focusedDate, labelledById, localization, firstDayOfWeek, min, max, onDateSelect, onKeyboardNavigation, focusedDayRef, onMouseDown, onFocusIn, }) => {
|
|
218
|
-
const today = new Date();
|
|
219
|
-
const days = getViewOfMonth(focusedDate, firstDayOfWeek);
|
|
220
|
-
return (index.h("table", { class: "dso-date__table", role: "grid", "aria-labelledby": labelledById, onFocusin: onFocusIn, onMouseDown: onMouseDown },
|
|
221
|
-
index.h("thead", null,
|
|
222
|
-
index.h("tr", null, mapWithOffset(localization.dayNames, firstDayOfWeek, (dayName) => (index.h("th", { class: "dso-date__table-header", scope: "col" },
|
|
223
|
-
index.h("span", { "aria-hidden": "true" }, dayName.substr(0, 2)),
|
|
224
|
-
index.h("span", { class: "dso-date__vhidden" }, dayName)))))),
|
|
225
|
-
index.h("tbody", null, chunk(days, 7).map((week) => (index.h("tr", { class: "dso-date__row" }, week.map((day) => (index.h("td", { class: "dso-date__cell", role: "gridcell", "aria-selected": isEqual(day, selectedDate) ? "true" : undefined, "aria-current": isEqual(day, today) ? "date" : undefined },
|
|
226
|
-
index.h(DatePickerLegacyDay, { day: day, today: today, focusedDay: focusedDate, inRange: inRange(day, min, max), onDaySelect: onDateSelect, onKeyboardNavigation: onKeyboardNavigation, focusedDayRef: focusedDayRef }))))))))));
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
function monthRange(localization, selectedYear, minDate, maxDate) {
|
|
230
|
-
if (minDate && maxDate) {
|
|
231
|
-
const { minYear, minMonth } = { minYear: minDate.getFullYear(), minMonth: minDate.getMonth() };
|
|
232
|
-
const { maxYear, maxMonth } = { maxYear: maxDate.getFullYear(), maxMonth: maxDate.getMonth() };
|
|
233
|
-
return localization.monthNames.filter((_month, index) => {
|
|
234
|
-
if (minYear === selectedYear && maxYear === selectedYear) {
|
|
235
|
-
return index >= minMonth && index >= maxMonth;
|
|
236
|
-
}
|
|
237
|
-
if (minYear === selectedYear) {
|
|
238
|
-
return index >= minMonth;
|
|
239
|
-
}
|
|
240
|
-
if (maxYear === selectedYear) {
|
|
241
|
-
return index <= maxMonth;
|
|
242
|
-
}
|
|
243
|
-
return true;
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
if (minDate) {
|
|
247
|
-
const { minYear, minMonth } = { minYear: minDate.getFullYear(), minMonth: minDate.getMonth() };
|
|
248
|
-
return localization.monthNames.filter((_month, index) => minYear === selectedYear && index >= minMonth);
|
|
249
|
-
}
|
|
250
|
-
if (maxDate) {
|
|
251
|
-
const { maxYear, maxMonth } = { maxYear: maxDate.getFullYear(), maxMonth: maxDate.getMonth() };
|
|
252
|
-
return localization.monthNames.filter((_month, index) => maxYear === selectedYear && index <= maxMonth);
|
|
253
|
-
}
|
|
254
|
-
return localization.monthNames;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
function range(from, to) {
|
|
258
|
-
const result = [];
|
|
259
|
-
for (let i = from; i <= to; i++) {
|
|
260
|
-
result.push(i);
|
|
261
|
-
}
|
|
262
|
-
return result;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
const datePickerLegacyCss = ".sc-dso-date-picker-legacy-h{display:block}[invalid].sc-dso-date-picker-legacy-h:not([invalid=false]) .dso-date__input.sc-dso-date-picker-legacy{border-color:#ce3f51}.dso-date.sc-dso-date-picker-legacy *.sc-dso-date-picker-legacy,.dso-date.sc-dso-date-picker-legacy *.sc-dso-date-picker-legacy::before,.dso-date.sc-dso-date-picker-legacy *.sc-dso-date-picker-legacy::after{box-sizing:border-box}.dso-date.sc-dso-date-picker-legacy{box-sizing:border-box;color:#191919;display:block;font-family:\"Asap\", sans-serif;margin:0;position:relative;text-align:start;inline-size:100%}.dso-date.sc-dso-date-picker-legacy:not(.dso-visible) .dso-date__dialog.sc-dso-date-picker-legacy{display:none}.dso-date__input.sc-dso-date-picker-legacy{display:block;inline-size:100%;block-size:40px;padding-block:6px;padding-inline:14px;font-size:1rem;line-height:1.5;color:#191919;background-color:#fff;background-image:none;border:1px solid #275937;border-radius:4px;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s}.dso-date__input.sc-dso-date-picker-legacy::-moz-placeholder{color:#666;opacity:1}.dso-date__input.sc-dso-date-picker-legacy:-ms-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker-legacy::-webkit-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker-legacy::-ms-expand{background-color:transparent;border:0}.dso-date__input.sc-dso-date-picker-legacy:focus{border-color:#275937;outline:0;box-shadow:inset 0 0 0 1px #275937}.dso-date__input[disabled].sc-dso-date-picker-legacy,.dso-date__input[readonly].sc-dso-date-picker-legacy,fieldset[disabled].sc-dso-date-picker-legacy .dso-date__input.sc-dso-date-picker-legacy{background-color:#fff;opacity:1}.dso-date__input[disabled].sc-dso-date-picker-legacy,fieldset[disabled].sc-dso-date-picker-legacy .dso-date__input.sc-dso-date-picker-legacy{cursor:default}.dso-date__input[disabled].sc-dso-date-picker-legacy{border-color:#e5e5e5;color:#999}.dso-date__input[readonly].sc-dso-date-picker-legacy{border-width:1px}.dso-date__input[type=text].sc-dso-date-picker-legacy{line-height:40px}.dso-date__input[size].sc-dso-date-picker-legacy{inline-size:auto}.dso-date__toggle.sc-dso-date-picker-legacy{-moz-appearance:none;-webkit-appearance:none;-webkit-user-select:none;align-items:center;appearance:none;background:transparent;border:0;border-radius:0;border-end-end-radius:4px;border-start-end-radius:4px;color:#39870c;cursor:pointer;display:flex;block-size:38px;justify-content:center;padding:0;position:absolute;inset-inline-end:0;transform:translateY(-50%);inset-block-start:50%;user-select:none;inline-size:38px;z-index:101}.dso-date__toggle.sc-dso-date-picker-legacy:disabled{color:#afcf9d;cursor:default}.dso-date__dialog.sc-dso-date-picker-legacy{border-width:1px;display:flex;inset-inline-end:0;min-inline-size:320px;opacity:0;position:absolute;inset-block-start:100%;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;visibility:hidden;will-change:transform, opacity, visibility;z-index:210}@media (max-width: 35.9375em){.dso-date__dialog.sc-dso-date-picker-legacy{background:rgba(25, 25, 25, 0.5);inset-block-end:0;position:fixed;inset-inline-start:0;inset-inline-end:0;inset-block-start:0;transform:translateZ(0);transform-origin:bottom center}}.dso-date__dialog.is-left.sc-dso-date-picker-legacy{inset-inline-start:-11px;inset-inline-end:auto;inline-size:auto}.dso-date__dialog.is-active.sc-dso-date-picker-legacy{opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.dso-date__dialog-content.sc-dso-date-picker-legacy{background:#fff;border:1px solid rgba(0, 0, 0, 0.1);border-radius:4px;box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);margin-inline-start:auto;margin-inline-end:-1px;margin-block-start:8px;max-inline-size:310px;min-inline-size:290px;padding:16px;position:relative;transform:none;inline-size:100%;z-index:210}@media (max-width: 35.9375em){.dso-date__dialog-content.sc-dso-date-picker-legacy{border:0;border-radius:0;border-start-start-radius:4px;border-start-end-radius:4px;inset-block-end:0;inset-inline-start:0;margin:0;max-inline-size:none;min-block-size:26em;opacity:0;padding-block:0 20px;padding-inline:8%;position:absolute;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;visibility:hidden;will-change:transform, opacity, visibility}.is-active.sc-dso-date-picker-legacy .dso-date__dialog-content.sc-dso-date-picker-legacy{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}}.dso-date__table.sc-dso-date-picker-legacy{border-collapse:collapse;border-spacing:0;color:#191919;font-size:1rem;font-weight:400;line-height:1.25;min-inline-size:280px;table-layout:fixed;text-align:center;inline-size:100%}.dso-date__table-header.sc-dso-date-picker-legacy{font-size:0.875em;font-weight:600;block-size:36px;line-height:36px;text-align:center;text-decoration:none;text-transform:uppercase}.dso-date__cell.sc-dso-date-picker-legacy{block-size:40px;padding:1px;text-align:center;inline-size:40px}.dso-date__day.sc-dso-date-picker-legacy{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;box-shadow:0 0 0 1px transparent;color:#191919;cursor:pointer;display:inline-block;font-family:\"Asap\", sans-serif;font-variant-numeric:tabular-nums;font-weight:400;block-size:38px;line-height:0;padding:0;position:relative;text-align:center;vertical-align:middle;inline-size:38px;z-index:100}.dso-date__day.is-today.sc-dso-date-picker-legacy{background:transparent;block-size:36px;box-shadow:0 0 0 1px #39870c;inline-size:36px}.dso-date__day.sc-dso-date-picker-legacy:hover,.dso-date__day.sc-dso-date-picker-legacy:active{background:#39870c;color:#fff}.dso-date__day.sc-dso-date-picker-legacy:focus{background:transparent;box-shadow:0 0 0 2px #275937;color:#191919;block-size:34px;outline:0;inline-size:34px}[aria-selected=true].sc-dso-date-picker-legacy .dso-date__day.sc-dso-date-picker-legacy{background:#39870c;color:#fff}[aria-selected=true].sc-dso-date-picker-legacy .dso-date__day.sc-dso-date-picker-legacy:focus{background:transparent}[aria-selected=true].sc-dso-date-picker-legacy .dso-date__day.sc-dso-date-picker-legacy:focus span[aria-hidden=true].sc-dso-date-picker-legacy{background:#39870c;border:1px solid #fff;line-height:32px}.dso-date__day.sc-dso-date-picker-legacy:disabled{background:#fff;color:#ccc;cursor:default}.dso-date__day.sc-dso-date-picker-legacy span[aria-hidden=true].sc-dso-date-picker-legacy{border-radius:50%;display:inline-block;block-size:34px;line-height:34px;inline-size:34px}.dso-date__header.sc-dso-date-picker-legacy{align-items:center;display:flex;justify-content:space-between;margin-block-end:16px;inline-size:100%}.dso-date__header.sc-dso-date-picker-legacy span.sc-dso-date-picker-legacy{font-size:0.875rem}.dso-date__nav.sc-dso-date-picker-legacy{white-space:nowrap}.dso-date__prev.sc-dso-date-picker-legacy,.dso-date__next.sc-dso-date-picker-legacy{-moz-appearance:none;-webkit-appearance:none;align-items:center;appearance:none;background:transparent;border:1px solid #39870c;border-radius:4px;box-sizing:border-box;color:#39870c;cursor:pointer;display:inline-flex;font-size:1em;block-size:32px;justify-content:center;margin-inline-start:8px;padding:0;inline-size:32px}@media (max-width: 35.9375em){.dso-date__prev.sc-dso-date-picker-legacy,.dso-date__next.sc-dso-date-picker-legacy{block-size:40px;inline-size:40px}}.dso-date__prev.sc-dso-date-picker-legacy:hover,.dso-date__prev.sc-dso-date-picker-legacy:active,.dso-date__next.sc-dso-date-picker-legacy:hover,.dso-date__next.sc-dso-date-picker-legacy:active{background-color:#39870c;color:#fff}.dso-date__prev.sc-dso-date-picker-legacy:focus,.dso-date__next.sc-dso-date-picker-legacy:focus{background:transparent;color:#39870c}.dso-date__prev.sc-dso-date-picker-legacy:disabled,.dso-date__prev.sc-dso-date-picker-legacy:disabled:hover,.dso-date__next.sc-dso-date-picker-legacy:disabled,.dso-date__next.sc-dso-date-picker-legacy:disabled:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d;opacity:1}.dso-date__prev.sc-dso-date-picker-legacy svg.sc-dso-date-picker-legacy,.dso-date__next.sc-dso-date-picker-legacy svg.sc-dso-date-picker-legacy{margin-block:0;margin-inline:auto}.dso-date__select.sc-dso-date-picker-legacy{display:inline-flex;block-size:28px;line-height:28px;position:relative}.dso-date__select.sc-dso-date-picker-legacy span.sc-dso-date-picker-legacy{margin-inline-end:4px}.dso-date__select.sc-dso-date-picker-legacy select.sc-dso-date-picker-legacy{color:#275937;cursor:pointer;font-size:1rem;block-size:100%;inset-inline-start:0;opacity:0;position:absolute;inset-block-start:0;inline-size:100%;z-index:101}.dso-date__select.sc-dso-date-picker-legacy select.sc-dso-date-picker-legacy:focus+.dso-date__select-label.sc-dso-date-picker-legacy{box-shadow:0 0 0 2px #275937}.dso-date__select.sc-dso-date-picker-legacy select.sc-dso-date-picker-legacy:disabled{color:#afcf9d}.dso-date__select-label.sc-dso-date-picker-legacy{align-items:center;border-radius:4px;color:#39870c;display:flex;padding-block:0;padding-inline:8px 4px;pointer-events:none;position:relative;inline-size:100%;z-index:100}.dso-date__select-label.sc-dso-date-picker-legacy span.sc-dso-date-picker-legacy{font-size:1.25rem;font-weight:600;line-height:1.25}.dso-date__select-label.sc-dso-date-picker-legacy svg.sc-dso-date-picker-legacy{inline-size:16px;block-size:16px}.dso-date__mobile.sc-dso-date-picker-legacy{align-items:center;border-block-end:1px solid rgba(0, 0, 0, 0.12);display:flex;font-size:1em;justify-content:space-between;margin-block-end:20px;margin-inline-start:-10%;overflow:hidden;padding-block:12px;padding-inline:20px;position:relative;text-overflow:ellipsis;white-space:nowrap;inline-size:120%}@media (min-width: 36em){.dso-date__mobile.sc-dso-date-picker-legacy{border:0;margin:0;overflow:visible;padding:0;position:absolute;inset-inline-end:-16px;inset-block-start:-16px;inline-size:auto}}.dso-date__mobile-heading.sc-dso-date-picker-legacy{display:inline-block;font-weight:600;max-inline-size:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.dso-date__mobile-heading.sc-dso-date-picker-legacy{display:none}}.dso-date__close.sc-dso-date-picker-legacy{-webkit-appearance:none;align-items:center;appearance:none;background-color:#fff;border:0;border-radius:50%;color:#39870c;cursor:pointer;display:flex;font-size:1em;block-size:32px;justify-content:center;margin-inline-end:-4px;padding:0;inline-size:32px}@media (min-width: 36em){.dso-date__close.sc-dso-date-picker-legacy{margin-inline-end:0;opacity:0}}.dso-date__close.sc-dso-date-picker-legacy:focus{box-shadow:0 0 0 2px #275937;outline:none}@media (min-width: 36em){.dso-date__close.sc-dso-date-picker-legacy:focus{opacity:1}}.dso-date__vhidden.sc-dso-date-picker-legacy{border:0;clip:rect(1px, 1px, 1px, 1px);block-size:1px;overflow:hidden;padding:0;position:absolute;inset-block-start:0;inline-size:1px}";
|
|
266
|
-
|
|
267
|
-
const keyCode = {
|
|
268
|
-
TAB: 9,
|
|
269
|
-
ESC: 27,
|
|
270
|
-
PAGE_UP: 33,
|
|
271
|
-
PAGE_DOWN: 34,
|
|
272
|
-
END: 35,
|
|
273
|
-
HOME: 36,
|
|
274
|
-
LEFT: 37,
|
|
275
|
-
UP: 38,
|
|
276
|
-
RIGHT: 39,
|
|
277
|
-
DOWN: 40,
|
|
278
|
-
};
|
|
279
|
-
const DISALLOWED_CHARACTERS = /[^0-9-]+/g;
|
|
280
|
-
const TRANSITION_MS = 300;
|
|
281
|
-
function cleanValue(input, regex) {
|
|
282
|
-
const value = input.value;
|
|
283
|
-
const cursor = input.selectionStart;
|
|
284
|
-
if (!cursor) {
|
|
285
|
-
return value;
|
|
286
|
-
}
|
|
287
|
-
const beforeCursor = value.slice(0, cursor);
|
|
288
|
-
const afterCursor = value.slice(cursor, value.length);
|
|
289
|
-
const filteredBeforeCursor = beforeCursor.replace(regex, "");
|
|
290
|
-
const filterAfterCursor = afterCursor.replace(regex, "");
|
|
291
|
-
const newValue = filteredBeforeCursor + filterAfterCursor;
|
|
292
|
-
const newCursor = filteredBeforeCursor.length;
|
|
293
|
-
input.value = newValue;
|
|
294
|
-
input.selectionStart = input.selectionEnd = newCursor;
|
|
295
|
-
return newValue;
|
|
296
|
-
}
|
|
297
|
-
const DsoDatePickerLegacy = class {
|
|
298
|
-
constructor(hostRef) {
|
|
299
|
-
index.registerInstance(this, hostRef);
|
|
300
|
-
this.dsoDateChange = index.createEvent(this, "dsoDateChange", 7);
|
|
301
|
-
this.dsoBlur = index.createEvent(this, "dsoBlur", 7);
|
|
302
|
-
this.dsoKeyUp = index.createEvent(this, "dsoKeyUp", 7);
|
|
303
|
-
this.dsoKeyDown = index.createEvent(this, "dsoKeyDown", 7);
|
|
304
|
-
this.dsoFocus = index.createEvent(this, "dsoFocus", 7);
|
|
305
|
-
/**
|
|
306
|
-
* Own Properties
|
|
307
|
-
*/
|
|
308
|
-
this.monthSelectId = createIdentifier.createIdentifier("DsoDateMonth");
|
|
309
|
-
this.yearSelectId = createIdentifier.createIdentifier("DsoDateYear");
|
|
310
|
-
this.dialogLabelId = createIdentifier.createIdentifier("DsoDateLabel");
|
|
311
|
-
this.localization = localization;
|
|
312
|
-
this.firstDayOfWeek = DaysOfWeek.Monday;
|
|
313
|
-
/**
|
|
314
|
-
* State() variables
|
|
315
|
-
*/
|
|
316
|
-
this.activeFocus = false;
|
|
317
|
-
this.focusedDay = new Date();
|
|
318
|
-
this.open = false;
|
|
319
|
-
this.visible = false;
|
|
320
|
-
/**
|
|
321
|
-
* Public Property API
|
|
322
|
-
*/
|
|
323
|
-
/**
|
|
324
|
-
* Name of the date picker input.
|
|
325
|
-
*/
|
|
326
|
-
this.name = "date";
|
|
327
|
-
/**
|
|
328
|
-
* Makes the date picker input component disabled. This prevents users from being able to
|
|
329
|
-
* interact with the input, and conveys its inactive state to assistive technologies.
|
|
330
|
-
*/
|
|
331
|
-
this.disabled = false;
|
|
332
|
-
/**
|
|
333
|
-
* Defines a specific role attribute for the date picker input.
|
|
334
|
-
*/
|
|
335
|
-
this.role = null;
|
|
336
|
-
/**
|
|
337
|
-
* Forces the opening direction of the calendar modal to be always left or right.
|
|
338
|
-
* This setting can be useful when the input is smaller than the opening date picker
|
|
339
|
-
* would be as by default the picker always opens towards right.
|
|
340
|
-
*/
|
|
341
|
-
this.direction = "right";
|
|
342
|
-
/**
|
|
343
|
-
* Should the input be marked as required?
|
|
344
|
-
*/
|
|
345
|
-
this.required = false;
|
|
346
|
-
/**
|
|
347
|
-
* Should the input be focused on load?
|
|
348
|
-
*/
|
|
349
|
-
this.dsoAutofocus = false;
|
|
350
|
-
/**
|
|
351
|
-
* Date value. Must be in Dutch date format: DD-MM-YYYY.
|
|
352
|
-
*/
|
|
353
|
-
this.value = "";
|
|
354
|
-
/**
|
|
355
|
-
* Local methods.
|
|
356
|
-
*/
|
|
357
|
-
this.enableActiveFocus = () => {
|
|
358
|
-
this.activeFocus = true;
|
|
359
|
-
};
|
|
360
|
-
this.disableActiveFocus = () => {
|
|
361
|
-
this.activeFocus = false;
|
|
362
|
-
};
|
|
363
|
-
this.toggleOpen = (e) => {
|
|
364
|
-
e.preventDefault();
|
|
365
|
-
if (this.open) {
|
|
366
|
-
this.hide(false);
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
this.show();
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
this.handleEscKey = (event) => {
|
|
373
|
-
if (event.keyCode === keyCode.ESC) {
|
|
374
|
-
this.hide();
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
this.handleBlur = (event) => {
|
|
378
|
-
event.stopPropagation();
|
|
379
|
-
this.dsoBlur.emit({
|
|
380
|
-
component: "dso-date-picker-legacy",
|
|
381
|
-
});
|
|
382
|
-
};
|
|
383
|
-
this.handleKeyUp = (event) => {
|
|
384
|
-
event.stopPropagation();
|
|
385
|
-
this.dsoKeyUp.emit({
|
|
386
|
-
component: "dso-date-picker-legacy",
|
|
387
|
-
originalEvent: event,
|
|
388
|
-
});
|
|
389
|
-
};
|
|
390
|
-
this.handleKeyDown = (event) => {
|
|
391
|
-
event.stopPropagation();
|
|
392
|
-
this.dsoKeyDown.emit({
|
|
393
|
-
component: "dso-date-picker-legacy",
|
|
394
|
-
originalEvent: event,
|
|
395
|
-
});
|
|
396
|
-
};
|
|
397
|
-
this.handleFocus = (event) => {
|
|
398
|
-
event.stopPropagation();
|
|
399
|
-
this.dsoFocus.emit({
|
|
400
|
-
component: "dso-date-picker-legacy",
|
|
401
|
-
});
|
|
402
|
-
};
|
|
403
|
-
this.handleTouchStart = (event) => {
|
|
404
|
-
const touch = event.changedTouches[0];
|
|
405
|
-
if (!touch) {
|
|
406
|
-
throw new Error("No touch found");
|
|
407
|
-
}
|
|
408
|
-
this.initialTouchX = touch.pageX;
|
|
409
|
-
this.initialTouchY = touch.pageY;
|
|
410
|
-
};
|
|
411
|
-
this.handleTouchMove = (event) => {
|
|
412
|
-
event.preventDefault();
|
|
413
|
-
};
|
|
414
|
-
this.handleTouchEnd = (event) => {
|
|
415
|
-
var _a, _b;
|
|
416
|
-
const touch = event.changedTouches[0];
|
|
417
|
-
if (!touch) {
|
|
418
|
-
throw new Error("No touch found");
|
|
419
|
-
}
|
|
420
|
-
const distX = touch.pageX - ((_a = this.initialTouchX) !== null && _a !== void 0 ? _a : 0); // get horizontal dist traveled
|
|
421
|
-
const distY = touch.pageY - ((_b = this.initialTouchY) !== null && _b !== void 0 ? _b : 0); // get vertical dist traveled
|
|
422
|
-
const threshold = 70;
|
|
423
|
-
const isHorizontalSwipe = Math.abs(distX) >= threshold && Math.abs(distY) <= threshold;
|
|
424
|
-
const isDownwardsSwipe = Math.abs(distY) >= threshold && Math.abs(distX) <= threshold && distY > 0;
|
|
425
|
-
if (isHorizontalSwipe) {
|
|
426
|
-
this.addMonths(distX < 0 ? 1 : -1);
|
|
427
|
-
}
|
|
428
|
-
else if (isDownwardsSwipe) {
|
|
429
|
-
this.hide(false);
|
|
430
|
-
event.preventDefault();
|
|
431
|
-
}
|
|
432
|
-
this.initialTouchY = undefined;
|
|
433
|
-
this.initialTouchX = undefined;
|
|
434
|
-
};
|
|
435
|
-
this.handleNextMonthClick = (event) => {
|
|
436
|
-
event.preventDefault();
|
|
437
|
-
this.addMonths(1);
|
|
438
|
-
};
|
|
439
|
-
this.handlePreviousMonthClick = (event) => {
|
|
440
|
-
event.preventDefault();
|
|
441
|
-
this.addMonths(-1);
|
|
442
|
-
};
|
|
443
|
-
this.handleFirstFocusableKeydown = (event) => {
|
|
444
|
-
var _a;
|
|
445
|
-
// this ensures focus is trapped inside the dialog
|
|
446
|
-
if (event.keyCode === keyCode.TAB && event.shiftKey) {
|
|
447
|
-
(_a = this.focusedDayNode) === null || _a === void 0 ? void 0 : _a.focus();
|
|
448
|
-
event.preventDefault();
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
this.handleKeyboardNavigation = (event) => {
|
|
452
|
-
var _a;
|
|
453
|
-
// handle tab separately, since it needs to be treated
|
|
454
|
-
// differently to other keyboard interactions
|
|
455
|
-
if (event.keyCode === keyCode.TAB && !event.shiftKey) {
|
|
456
|
-
event.preventDefault();
|
|
457
|
-
(_a = this.firstFocusableElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
458
|
-
return;
|
|
459
|
-
}
|
|
460
|
-
let handled = true;
|
|
461
|
-
switch (event.keyCode) {
|
|
462
|
-
case keyCode.RIGHT:
|
|
463
|
-
this.addDays(1);
|
|
464
|
-
break;
|
|
465
|
-
case keyCode.LEFT:
|
|
466
|
-
this.addDays(-1);
|
|
467
|
-
break;
|
|
468
|
-
case keyCode.DOWN:
|
|
469
|
-
this.addDays(7);
|
|
470
|
-
break;
|
|
471
|
-
case keyCode.UP:
|
|
472
|
-
this.addDays(-7);
|
|
473
|
-
break;
|
|
474
|
-
case keyCode.PAGE_UP:
|
|
475
|
-
if (event.shiftKey) {
|
|
476
|
-
this.addYears(-1);
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
this.addMonths(-1);
|
|
480
|
-
}
|
|
481
|
-
break;
|
|
482
|
-
case keyCode.PAGE_DOWN:
|
|
483
|
-
if (event.shiftKey) {
|
|
484
|
-
this.addYears(1);
|
|
485
|
-
}
|
|
486
|
-
else {
|
|
487
|
-
this.addMonths(1);
|
|
488
|
-
}
|
|
489
|
-
break;
|
|
490
|
-
case keyCode.HOME:
|
|
491
|
-
this.startOfWeek();
|
|
492
|
-
break;
|
|
493
|
-
case keyCode.END:
|
|
494
|
-
this.endOfWeek();
|
|
495
|
-
break;
|
|
496
|
-
default:
|
|
497
|
-
handled = false;
|
|
498
|
-
}
|
|
499
|
-
if (handled) {
|
|
500
|
-
event.preventDefault();
|
|
501
|
-
this.enableActiveFocus();
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
|
-
this.handleDaySelect = (_event, day) => {
|
|
505
|
-
if (!inRange(day, parseDutchDate(this.min), parseDutchDate(this.max))) {
|
|
506
|
-
return;
|
|
507
|
-
}
|
|
508
|
-
if (day.getMonth() === this.focusedDay.getMonth()) {
|
|
509
|
-
this.setValue(day);
|
|
510
|
-
this.hide();
|
|
511
|
-
}
|
|
512
|
-
else {
|
|
513
|
-
this.setFocusedDay(day);
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
this.handleMonthSelect = (e) => {
|
|
517
|
-
// Todo
|
|
518
|
-
if (e.target instanceof HTMLSelectElement) {
|
|
519
|
-
this.setMonth(parseInt(e.target.value, 10));
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
this.handleYearSelect = (e) => {
|
|
523
|
-
if (e.target instanceof HTMLSelectElement) {
|
|
524
|
-
this.setYear(parseInt(e.target.value, 10));
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
this.handleInputChange = (e) => {
|
|
528
|
-
const target = e.target;
|
|
529
|
-
const cleanedValue = cleanValue(target, DISALLOWED_CHARACTERS);
|
|
530
|
-
this.setValue(cleanedValue);
|
|
531
|
-
};
|
|
532
|
-
this.prepareEvent = (value) => {
|
|
533
|
-
const event = {
|
|
534
|
-
component: "dso-date-picker-legacy",
|
|
535
|
-
value: "",
|
|
536
|
-
valueAsDate: undefined,
|
|
537
|
-
};
|
|
538
|
-
if (value instanceof Date) {
|
|
539
|
-
event.valueAsDate = value;
|
|
540
|
-
}
|
|
541
|
-
else {
|
|
542
|
-
event.value = value;
|
|
543
|
-
event.valueAsDate = parseDutchDate(value);
|
|
544
|
-
}
|
|
545
|
-
if (event.valueAsDate) {
|
|
546
|
-
event.value = printDutchDate(event.valueAsDate);
|
|
547
|
-
}
|
|
548
|
-
if (!event.valueAsDate && this.required) {
|
|
549
|
-
event.error = "required";
|
|
550
|
-
}
|
|
551
|
-
if (event.value && !event.valueAsDate) {
|
|
552
|
-
event.error = "invalid";
|
|
553
|
-
}
|
|
554
|
-
if (event.valueAsDate && (this.min || this.max)) {
|
|
555
|
-
const min = parseDutchDate(this.min);
|
|
556
|
-
const max = parseDutchDate(this.max);
|
|
557
|
-
const clampValue = clamp(event.valueAsDate, min, max);
|
|
558
|
-
if (clampValue !== event.valueAsDate && clampValue === min) {
|
|
559
|
-
event.valueAsDate = undefined;
|
|
560
|
-
event.error = "min-range";
|
|
561
|
-
}
|
|
562
|
-
else if (clampValue !== event.valueAsDate && clampValue === max) {
|
|
563
|
-
event.valueAsDate = undefined;
|
|
564
|
-
event.error = "max-range";
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
return event;
|
|
568
|
-
};
|
|
569
|
-
this.processFocusedDayNode = (element) => {
|
|
570
|
-
this.focusedDayNode = element;
|
|
571
|
-
if (this.activeFocus && this.open) {
|
|
572
|
-
setTimeout(() => element.focus(), 0);
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* Component event handling.
|
|
578
|
-
*/
|
|
579
|
-
handleDocumentClick(e) {
|
|
580
|
-
if (!this.open) {
|
|
581
|
-
return;
|
|
582
|
-
}
|
|
583
|
-
const path = e.composedPath();
|
|
584
|
-
for (const target of path) {
|
|
585
|
-
if (target instanceof Node && this.element.contains(target)) {
|
|
586
|
-
return;
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
this.hide(false);
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* Sets focus on the date picker's input. Use this method instead of the global `focus()`.
|
|
593
|
-
*/
|
|
594
|
-
async setFocus() {
|
|
595
|
-
var _a;
|
|
596
|
-
return (_a = this.datePickerLegacyInput) === null || _a === void 0 ? void 0 : _a.focus();
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Public methods API
|
|
600
|
-
*/
|
|
601
|
-
/**
|
|
602
|
-
* Show the calendar modal, moving focus to the calendar inside.
|
|
603
|
-
*/
|
|
604
|
-
async show() {
|
|
605
|
-
if (typeof this.hideTimeoutId !== "undefined") {
|
|
606
|
-
clearTimeout(this.hideTimeoutId);
|
|
607
|
-
}
|
|
608
|
-
this.visible = true;
|
|
609
|
-
setTimeout(() => {
|
|
610
|
-
this.open = true;
|
|
611
|
-
this.setFocusedDay(parseDutchDate(this.value) || new Date());
|
|
612
|
-
if (typeof this.focusTimeoutId !== "undefined") {
|
|
613
|
-
clearTimeout(this.focusTimeoutId);
|
|
614
|
-
}
|
|
615
|
-
this.focusTimeoutId = setTimeout(() => { var _a; return (_a = this.monthSelectNode) === null || _a === void 0 ? void 0 : _a.focus(); }, TRANSITION_MS);
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus
|
|
620
|
-
* returning to the date picker's button. Default is true.
|
|
621
|
-
*/
|
|
622
|
-
async hide(moveFocusToButton = true) {
|
|
623
|
-
this.open = false;
|
|
624
|
-
// in cases where calendar is quickly shown and hidden
|
|
625
|
-
// we should avoid moving focus to the button
|
|
626
|
-
if (typeof this.focusTimeoutId !== "undefined") {
|
|
627
|
-
clearTimeout(this.focusTimeoutId);
|
|
628
|
-
}
|
|
629
|
-
this.hideTimeoutId = setTimeout(() => {
|
|
630
|
-
if (moveFocusToButton && this.datePickerLegacyButton) {
|
|
631
|
-
this.datePickerLegacyButton.focus();
|
|
632
|
-
}
|
|
633
|
-
this.visible = false;
|
|
634
|
-
}, TRANSITION_MS + 200);
|
|
635
|
-
}
|
|
636
|
-
addDays(days) {
|
|
637
|
-
this.setFocusedDay(addDays(this.focusedDay, days));
|
|
638
|
-
}
|
|
639
|
-
addMonths(months) {
|
|
640
|
-
this.setMonth(this.focusedDay.getMonth() + months);
|
|
641
|
-
}
|
|
642
|
-
addYears(years) {
|
|
643
|
-
this.setYear(this.focusedDay.getFullYear() + years);
|
|
644
|
-
}
|
|
645
|
-
startOfWeek() {
|
|
646
|
-
this.setFocusedDay(startOfWeek(this.focusedDay, this.firstDayOfWeek));
|
|
647
|
-
}
|
|
648
|
-
endOfWeek() {
|
|
649
|
-
this.setFocusedDay(endOfWeek(this.focusedDay, this.firstDayOfWeek));
|
|
650
|
-
}
|
|
651
|
-
setMonth(month) {
|
|
652
|
-
const min = setMonth(startOfMonth(this.focusedDay), month);
|
|
653
|
-
const max = endOfMonth(min);
|
|
654
|
-
const date = setMonth(this.focusedDay, month);
|
|
655
|
-
this.setFocusedDay(clamp(date, min, max));
|
|
656
|
-
}
|
|
657
|
-
setYear(year) {
|
|
658
|
-
const min = setYear(startOfMonth(this.focusedDay), year);
|
|
659
|
-
const max = endOfMonth(min);
|
|
660
|
-
const date = setYear(this.focusedDay, year);
|
|
661
|
-
this.setFocusedDay(clamp(date, min, max));
|
|
662
|
-
}
|
|
663
|
-
setFocusedDay(day) {
|
|
664
|
-
this.focusedDay = clamp(day, parseDutchDate(this.min), parseDutchDate(this.max));
|
|
665
|
-
}
|
|
666
|
-
setValue(value) {
|
|
667
|
-
const event = this.prepareEvent(value);
|
|
668
|
-
this.value = typeof value === "string" ? value : event.value;
|
|
669
|
-
if (this.value !== this.previousValue) {
|
|
670
|
-
this.dsoDateChange.emit(event);
|
|
671
|
-
this.previousValue = this.value;
|
|
672
|
-
}
|
|
673
|
-
}
|
|
674
|
-
componentWillLoad() {
|
|
675
|
-
const minDate = parseDutchDate(this.min);
|
|
676
|
-
const maxDate = parseDutchDate(this.max);
|
|
677
|
-
if (minDate && minDate > this.focusedDay) {
|
|
678
|
-
this.focusedDay = minDate;
|
|
679
|
-
}
|
|
680
|
-
if (maxDate && maxDate < this.focusedDay) {
|
|
681
|
-
this.focusedDay = maxDate;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
componentDidLoad() {
|
|
685
|
-
const valueAsDate = parseDutchDate(this.value);
|
|
686
|
-
if (valueAsDate) {
|
|
687
|
-
this.previousValue = this.value = printDutchDate(valueAsDate);
|
|
688
|
-
}
|
|
689
|
-
if (this.dsoAutofocus) {
|
|
690
|
-
this.setFocus();
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
/**
|
|
694
|
-
* render() function
|
|
695
|
-
* Always the last one in the class.
|
|
696
|
-
*/
|
|
697
|
-
render() {
|
|
698
|
-
var _a, _b;
|
|
699
|
-
const valueAsDate = parseDutchDate(this.value);
|
|
700
|
-
const formattedDate = valueAsDate && printDutchDate(valueAsDate);
|
|
701
|
-
const selectedYear = (valueAsDate || this.focusedDay).getFullYear();
|
|
702
|
-
const focusedMonth = this.focusedDay.getMonth();
|
|
703
|
-
const focusedYear = this.focusedDay.getFullYear();
|
|
704
|
-
const minDate = parseDutchDate(this.min);
|
|
705
|
-
const maxDate = parseDutchDate(this.max);
|
|
706
|
-
const prevMonthDisabled = minDate && minDate.getMonth() === focusedMonth && minDate.getFullYear() === focusedYear;
|
|
707
|
-
const nextMonthDisabled = maxDate && maxDate.getMonth() === focusedMonth && maxDate.getFullYear() === focusedYear;
|
|
708
|
-
let minYear = selectedYear - 10;
|
|
709
|
-
let maxYear = selectedYear + 10;
|
|
710
|
-
if (minDate) {
|
|
711
|
-
minYear = Math.max(minYear, minDate.getFullYear());
|
|
712
|
-
}
|
|
713
|
-
if (maxDate) {
|
|
714
|
-
maxYear = Math.min(maxYear, maxDate.getFullYear());
|
|
715
|
-
}
|
|
716
|
-
return (index.h(index.Host, { key: '396b32409bc093895e3f35d18dba8bd7e6777f46' }, index.h("div", { key: 'd5a5787fcc7f6a5126a266ff5add00b7ff586cba', class: { "dso-date": true, "dso-visible": this.visible } }, index.h("div", { key: '85fd7e86974ab53580fb452ac1f18bc12a907c6d', class: "dso-date__input-wrapper" }, index.h("input", { key: 'b4f2997aa317cdf00396ff49d6c0a5f72764d503', class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: (_a = this.role) !== null && _a !== void 0 ? _a : undefined, required: this.required ? true : undefined, "aria-autocomplete": "none", "aria-invalid": (_b = this.invalid) === null || _b === void 0 ? void 0 : _b.toString(), "aria-describedby": this.describedBy, onInput: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown, autoComplete: "off", ref: (element) => (this.datePickerLegacyInput = element) }), index.h("button", { key: 'e2b34c1e6d804f6bf96aaea34daea995c59cbec5', type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: (element) => (this.datePickerLegacyButton = element) }, index.h("span", { key: '578b0315ed115d28f7906d585914bc6dae2a40cc', class: "dso-date__toggle-icon" }, index.h("dso-icon", { key: '90488726ea142805085372ed273ef6a10691f85a', icon: "calendar" })), index.h("span", { key: '34d925fe5facf889afa518e64150121df6e0ade7', class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (index.h("span", { key: '53471bfd4a6d8a3dd7a27582fadbf847f824f1dd' }, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), index.h("div", { key: '6a292ed13e8dfa5b972c8f1133238a535511cb8e', class: {
|
|
717
|
-
"dso-date__dialog": true,
|
|
718
|
-
"is-left": this.direction === "left",
|
|
719
|
-
"is-active": this.open,
|
|
720
|
-
}, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, index.h("div", { key: 'f8bb4ca24600a728f81e4247ef94641794ad84e3', class: "dso-date__dialog-content", onKeyDown: this.handleEscKey }, index.h("div", { key: '1582c6e4e4d89c4339f791c43e3fc01e18f03989', class: "dso-date__vhidden dso-date__instructions", "aria-live": "polite" }, this.localization.keyboardInstruction), index.h("div", { key: '3158d79a673e502aaa701fc41a2a15dd6ba5dc4b', class: "dso-date__mobile", onFocusin: this.disableActiveFocus }, index.h("label", { key: 'fcc075c9782196ec11a77f5d6aa703b8e48cea78', class: "dso-date__mobile-heading" }, this.localization.calendarHeading), index.h("button", { key: 'bee7a83296c5f1f3bfe498c0392f41bebb9fd27d', class: "dso-date__close", ref: (element) => (this.firstFocusableElement = element), onKeyDown: this.handleFirstFocusableKeydown, onClick: () => this.hide(), type: "button" }, index.h("dso-icon", { key: '3f66fe3d47a25baea3d7c148b1f5bec301f2bc29', icon: "times" }), index.h("span", { key: 'c5d4618409573374228a7e4489cdbfe1c66fdd7c', class: "dso-date__vhidden" }, this.localization.closeLabel))), index.h("div", { key: 'd9ba961084fb524b7f94139ce2a9857e9f7e1b0d', class: "dso-date__header", onFocusin: this.disableActiveFocus }, index.h("div", { key: '37d0dbcc0d777aafd31866d81dd758372585e908' }, index.h("h2", { key: 'de0e154dc96dc4e5cb3bcd2e588201a6cc5c9259', id: this.dialogLabelId, class: "dso-date__vhidden", "aria-live": "polite" }, this.localization.monthNames[focusedMonth], " ", this.focusedDay.getFullYear()), index.h("label", { key: 'cd0ffce7c78da9bf2d49bdca4d0394341608e249', htmlFor: this.monthSelectId, class: "dso-date__vhidden" }, this.localization.monthSelectLabel), index.h("div", { key: '48230fd3e09c932282bbb4990eda095cb95fce06', class: "dso-date__select" }, index.h("select", { key: 'f00134b32f100aefd5c61a4de98e221ed09137a2', id: this.monthSelectId, class: "dso-date__select--month", ref: (element) => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, monthRange(this.localization, selectedYear, minDate, maxDate).map((month) => {
|
|
721
|
-
const index$1 = this.localization.monthNames.indexOf(month);
|
|
722
|
-
return (index.h("option", { key: month, value: index$1, selected: index$1 === focusedMonth }, month));
|
|
723
|
-
})), index.h("div", { key: 'a1670f7170408e13a577b9bb65ce222e02341af6', class: "dso-date__select-label", "aria-hidden": "true" }, index.h("span", { key: 'c0878373562b07a3c4860c766219da9289734fd3' }, this.localization.monthNamesShort[focusedMonth]), index.h("dso-icon", { key: '64b610f732f03334432be7ccdc60fa634b83b5b1', icon: "chevron-down" }))), index.h("label", { key: 'bb21bbcb63a45b503d26f9c50fa0ab987a7d7081', htmlFor: this.yearSelectId, class: "dso-date__vhidden" }, this.localization.yearSelectLabel), index.h("div", { key: '9a2ecf4ed6c4396a15ccadd40f2c04d9bf60dcbc', class: "dso-date__select" }, index.h("select", { key: 'a1a935ba195eca516b0a94e129ed320c64dd43ef', id: this.yearSelectId, class: "dso-date__select--year", onChange: this.handleYearSelect }, range(minYear, maxYear).map((year) => (index.h("option", { key: year, selected: year === focusedYear }, year)))), index.h("div", { key: 'b16f15541e3637b65b39dd0b8e871710e36e59bb', class: "dso-date__select-label", "aria-hidden": "true" }, index.h("span", { key: '64a6a5a00cbcf3ee9268c478cf2c1ff2d40e0abe' }, this.focusedDay.getFullYear()), index.h("dso-icon", { key: 'c0744674bcbba803aeaeca6ac1d684a1e7d3894a', icon: "chevron-down" })))), index.h("div", { key: '433d90659d6521b41a8cccd7683fad3da0bd4b2a', class: "dso-date__nav" }, index.h("button", { key: 'b40b6fd0c99e18e9f033cf1d41127194404408a1', class: "dso-date__prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, type: "button" }, index.h("dso-icon", { key: 'e658b36996f0d2e3d9c164f746b66220a75dcbbf', icon: "chevron-left" }), index.h("span", { key: '499a5213ff977b13bd36ff4e91d83730a13ab51d', class: "dso-date__vhidden" }, this.localization.prevMonthLabel)), index.h("button", { key: 'dcd28b6b36bfbf16de2fe529e5dbf4e65920c66b', class: "dso-date__next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, type: "button" }, index.h("dso-icon", { key: '034b916fa47349e82bdf2a95c9dab465784f1499', icon: "chevron-right" }), index.h("span", { key: '184cef66312cdcea2a50d0dcc218a55963577398', class: "dso-date__vhidden" }, this.localization.nextMonthLabel)))), index.h(DatePickerLegacyMonth, { key: '254d598e4ed0ca17332abef195292828262712c7', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, localization: this.localization, firstDayOfWeek: this.firstDayOfWeek, focusedDayRef: this.processFocusedDayNode, min: minDate, max: maxDate }))))));
|
|
724
|
-
}
|
|
725
|
-
get element() { return index.getElement(this); }
|
|
726
|
-
};
|
|
727
|
-
DsoDatePickerLegacy.style = datePickerLegacyCss;
|
|
728
|
-
|
|
729
|
-
exports.dso_date_picker_legacy = DsoDatePickerLegacy;
|
|
730
|
-
//# sourceMappingURL=dso-date-picker-legacy.entry.cjs.js.map
|
|
731
|
-
|
|
732
|
-
//# sourceMappingURL=dso-date-picker-legacy.cjs.entry.js.map
|