@dso-toolkit/core 78.1.0 → 79.0.0-pre.1
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 +5 -5
- package/dist/bundle/dso-action-list-item.js +1 -1
- package/dist/bundle/dso-advanced-select.js +3 -3
- package/dist/bundle/dso-alert.js +1 -1
- package/dist/bundle/dso-annotation-activiteit.js +4 -4
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +4 -4
- package/dist/bundle/dso-annotation-kaart.js +2 -2
- package/dist/bundle/dso-annotation-locatie.js +1 -1
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +4 -4
- package/dist/bundle/dso-attachments-counter.js +1 -1
- package/dist/bundle/dso-autosuggest.js +3 -3
- package/dist/bundle/dso-card.js +1 -1
- package/dist/bundle/dso-date-picker-legacy.js +1 -1
- package/dist/bundle/dso-document-card.js +1 -1
- package/dist/bundle/dso-document-component.js +1 -1
- package/dist/bundle/dso-dropdown-menu.js +1 -1
- package/dist/bundle/dso-header.js +98 -97
- package/dist/bundle/dso-header.js.map +1 -1
- package/dist/bundle/dso-highlight-box.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 +6 -6
- package/dist/bundle/dso-list-button.js +5 -5
- package/dist/bundle/dso-logo.js +2 -2
- package/dist/bundle/dso-logo.js.map +1 -1
- package/dist/bundle/dso-map-base-layers.js +5 -5
- package/dist/bundle/dso-map-controls.js +3 -3
- package/dist/bundle/dso-map-overlays.js +5 -5
- package/dist/bundle/dso-mark-bar.js +2 -2
- package/dist/bundle/dso-modal.js +3 -3
- package/dist/bundle/dso-onboarding-tip.js +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +4 -4
- package/dist/bundle/dso-table.js +1 -1
- package/dist/bundle/dso-tabs.js +1 -1
- 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 +1 -1
- package/dist/bundle/dsot-document-component-demo.js +12 -12
- package/dist/bundle/{p-lE-KxpG-.js → p-7ffg336s.js} +3 -3
- package/dist/bundle/{p-lE-KxpG-.js.map → p-7ffg336s.js.map} +1 -1
- package/dist/bundle/{p-BZUv4Fwx.js → p-B3Alb07i.js} +6 -6
- package/dist/bundle/{p-BZUv4Fwx.js.map → p-B3Alb07i.js.map} +1 -1
- package/dist/bundle/{p-CUZmPl-a.js → p-BELL2NPR.js} +7 -7
- package/dist/bundle/{p-CUZmPl-a.js.map → p-BELL2NPR.js.map} +1 -1
- package/dist/bundle/{p-BQF5fCSD.js → p-BOvMM9C8.js} +3 -3
- package/dist/bundle/{p-BQF5fCSD.js.map → p-BOvMM9C8.js.map} +1 -1
- package/dist/bundle/{p-BnSdv9VD.js → p-B_9Gan2F.js} +10 -10
- package/dist/bundle/{p-BnSdv9VD.js.map → p-B_9Gan2F.js.map} +1 -1
- package/dist/bundle/{p-D0gB2lgu.js → p-Bgqhjszl.js} +3 -3
- package/dist/bundle/{p-D0gB2lgu.js.map → p-Bgqhjszl.js.map} +1 -1
- package/dist/bundle/{p-D92MZVkr.js → p-BqKuHNTU.js} +3 -3
- package/dist/bundle/{p-D92MZVkr.js.map → p-BqKuHNTU.js.map} +1 -1
- package/dist/bundle/{p-DNULhBX2.js → p-BrQ3aUVb.js} +3 -3
- package/dist/bundle/{p-DNULhBX2.js.map → p-BrQ3aUVb.js.map} +1 -1
- package/dist/bundle/{p-C2Ek2dWW.js → p-Bxrualn7.js} +40 -36
- package/dist/bundle/p-Bxrualn7.js.map +1 -0
- package/dist/bundle/{p-DcxEm1dI.js → p-C5KKL3gn.js} +7 -7
- package/dist/bundle/{p-DcxEm1dI.js.map → p-C5KKL3gn.js.map} +1 -1
- package/dist/bundle/{p-CwKyBrf3.js → p-CEFYoazH.js} +4 -4
- package/dist/bundle/{p-CwKyBrf3.js.map → p-CEFYoazH.js.map} +1 -1
- package/dist/bundle/{p-CXEXoC_s.js → p-CeXiA7z5.js} +3 -3
- package/dist/bundle/{p-CXEXoC_s.js.map → p-CeXiA7z5.js.map} +1 -1
- package/dist/bundle/{p-WmD5BfeO.js → p-CynPODEC.js} +4 -4
- package/dist/bundle/{p-WmD5BfeO.js.map → p-CynPODEC.js.map} +1 -1
- package/dist/bundle/{p-Dt1j98T1.js → p-DAJsc8Jk.js} +3 -3
- package/dist/bundle/{p-Dt1j98T1.js.map → p-DAJsc8Jk.js.map} +1 -1
- package/dist/bundle/{p--iZjxqv3.js → p-DrWTFwlB.js} +4 -4
- package/dist/bundle/{p--iZjxqv3.js.map → p-DrWTFwlB.js.map} +1 -1
- package/dist/bundle/{p-D3I3eS2K.js → p-DrrX-h-R.js} +4 -4
- package/dist/bundle/{p-D3I3eS2K.js.map → p-DrrX-h-R.js.map} +1 -1
- package/dist/bundle/{p-BLPc0VWK.js → p-S0YMB18e.js} +6 -6
- package/dist/bundle/{p-BLPc0VWK.js.map → p-S0YMB18e.js.map} +1 -1
- package/dist/bundle/{p-CH8BjCNJ.js → p-X4ksz0z1.js} +6 -6
- package/dist/bundle/{p-CH8BjCNJ.js.map → p-X4ksz0z1.js.map} +1 -1
- package/dist/bundle/{p-CYNNmESE.js → p-_H6ui1La.js} +3 -3
- package/dist/bundle/{p-CYNNmESE.js.map → p-_H6ui1La.js.map} +1 -1
- package/dist/bundle/{p-ChsWtZdt.js → p-uUOjJ6kU.js} +4 -4
- package/dist/bundle/{p-ChsWtZdt.js.map → p-uUOjJ6kU.js.map} +1 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +2 -2
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +37 -33
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-dropdown-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +91 -89
- package/dist/cjs/dso-header.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-header.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +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_2.cjs.entry.js +2 -2
- package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
- package/dist/cjs/dso-label_3.cjs.entry.js +4 -4
- package/dist/cjs/dso-legend-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +2 -2
- package/dist/cjs/dso-logo.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-logo.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +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 +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 +2 -2
- package/dist/cjs/dso-tabs.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 +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +37 -39
- package/dist/collection/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/collection/components/header/header.css +28 -28
- package/dist/collection/components/header/header.interfaces.js.map +1 -1
- package/dist/collection/components/header/header.js +126 -107
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/header/menu-item.functional-component.js +6 -0
- package/dist/collection/components/header/menu-item.functional-component.js.map +1 -0
- package/dist/collection/components/highlight-box/highlight-box.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- 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.js +3 -3
- package/dist/collection/components/legend-item/legend-item.js +1 -1
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/logo/logo.css +2 -8
- 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.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/ozon-content.js +1 -1
- 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/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.js +2 -2
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.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.js +1 -1
- package/dist/components/dropdown-menu.js +38 -34
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/dso-header.js +96 -95
- package/dist/components/dso-header.js.map +1 -1
- package/dist/components/dso-highlight-box.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 +1 -1
- package/dist/components/dso-logo.js +2 -2
- package/dist/components/dso-logo.js.map +1 -1
- package/dist/components/dso-map-base-layers.js +1 -1
- package/dist/components/dso-map-controls.js +1 -1
- package/dist/components/dso-map-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 +1 -1
- package/dist/components/dso-plekinfo-card.js +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 +2 -2
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/info-button.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/label.js +3 -3
- package/dist/components/ozon-content.js +1 -1
- package/dist/components/progress-indicator.js +1 -1
- package/dist/components/responsive-element.js +1 -1
- package/dist/components/scrollable.js +2 -2
- package/dist/components/selectable.js +1 -1
- package/dist/components/slide-toggle.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/toggletip.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/dso-toolkit/dso-dropdown-menu.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-header.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-logo.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-53466f70.entry.js → p-01e90e48.entry.js} +2 -2
- package/dist/dso-toolkit/{p-78a12530.entry.js → p-071846be.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8128fe57.entry.js → p-08efe022.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f055ab17.entry.js → p-1cc4cc04.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6aff6420.entry.js → p-257a4650.entry.js} +2 -2
- package/dist/dso-toolkit/p-2660ebab.entry.js +2 -0
- package/dist/dso-toolkit/p-2660ebab.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-443a78e5.entry.js → p-275e5ec7.entry.js} +2 -2
- package/dist/dso-toolkit/{p-3300fe1e.entry.js → p-2cec1fea.entry.js} +2 -2
- package/dist/dso-toolkit/{p-53a81213.entry.js → p-445aba67.entry.js} +2 -2
- package/dist/dso-toolkit/{p-7731d7bb.entry.js → p-55637fe3.entry.js} +2 -2
- package/dist/dso-toolkit/{p-c359f83e.entry.js → p-67b6a838.entry.js} +2 -2
- package/dist/dso-toolkit/{p-b245449a.entry.js → p-6902ffb5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-17219f16.entry.js → p-81711068.entry.js} +2 -2
- package/dist/dso-toolkit/p-82a89d77.entry.js +2 -0
- package/dist/dso-toolkit/p-82a89d77.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-afaee982.entry.js → p-898de91a.entry.js} +2 -2
- package/dist/dso-toolkit/{p-02491a35.entry.js → p-9566b0a7.entry.js} +2 -2
- package/dist/dso-toolkit/p-9b2ca189.entry.js +2 -0
- package/dist/dso-toolkit/{p-3522c1dd.entry.js.map → p-9b2ca189.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-16255f29.entry.js → p-a38fbc5c.entry.js} +2 -2
- package/dist/dso-toolkit/{p-5c0322dc.entry.js → p-a62f368d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d51d9d66.entry.js → p-add3ca45.entry.js} +2 -2
- package/dist/dso-toolkit/{p-04d6ae97.entry.js → p-b4931ff4.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f8557ec8.entry.js → p-b4ba87ac.entry.js} +2 -2
- package/dist/dso-toolkit/{p-ea71badf.entry.js → p-c45258d3.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d0e82c62.entry.js → p-d864f7da.entry.js} +2 -2
- package/dist/dso-toolkit/{p-4d885de2.entry.js → p-d947dd25.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1aa49aa7.entry.js → p-e299ac60.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8fd586d4.entry.js → p-ef042313.entry.js} +2 -2
- package/dist/dso-toolkit/{p-fd42a8cd.entry.js → p-f2a61198.entry.js} +2 -2
- package/dist/dso-toolkit/{p-218b1fe3.entry.js → p-f4a1a07b.entry.js} +2 -2
- package/dist/dso-toolkit/p-f65ace88.entry.js +2 -0
- package/dist/dso-toolkit/p-f65ace88.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-43564b05.entry.js → p-f9bc4e87.entry.js} +2 -2
- package/dist/esm/dso-alert_6.entry.js +2 -2
- package/dist/esm/dso-dropdown-menu.entry.js +37 -33
- package/dist/esm/dso-dropdown-menu.entry.js.map +1 -1
- package/dist/esm/dso-header.entry.js +92 -90
- package/dist/esm/dso-header.entry.js.map +1 -1
- package/dist/esm/dso-highlight-box.entry.js +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_2.entry.js +2 -2
- package/dist/esm/dso-input-range.entry.js +2 -2
- package/dist/esm/dso-label_3.entry.js +4 -4
- package/dist/esm/dso-legend-item.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-logo.entry.js +2 -2
- package/dist/esm/dso-logo.entry.js.map +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +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 +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 +2 -2
- package/dist/esm/dso-tabs.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 +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +2 -1
- package/dist/types/components/header/header.d.ts +38 -26
- package/dist/types/components/header/header.interfaces.d.ts +2 -0
- package/dist/types/components/header/menu-item.functional-component.d.ts +9 -0
- package/dist/types/components.d.ts +20 -18
- package/package.json +3 -3
- package/dist/bundle/p-C2Ek2dWW.js.map +0 -1
- package/dist/dso-toolkit/p-1a06ea3b.entry.js +0 -2
- package/dist/dso-toolkit/p-1a06ea3b.entry.js.map +0 -1
- package/dist/dso-toolkit/p-3522c1dd.entry.js +0 -2
- package/dist/dso-toolkit/p-6a813c6c.entry.js +0 -2
- package/dist/dso-toolkit/p-6a813c6c.entry.js.map +0 -1
- package/dist/dso-toolkit/p-a85afaa8.entry.js +0 -2
- package/dist/dso-toolkit/p-a85afaa8.entry.js.map +0 -1
- /package/dist/dso-toolkit/{p-53466f70.entry.js.map → p-01e90e48.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-78a12530.entry.js.map → p-071846be.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8128fe57.entry.js.map → p-08efe022.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f055ab17.entry.js.map → p-1cc4cc04.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6aff6420.entry.js.map → p-257a4650.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-443a78e5.entry.js.map → p-275e5ec7.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3300fe1e.entry.js.map → p-2cec1fea.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-53a81213.entry.js.map → p-445aba67.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7731d7bb.entry.js.map → p-55637fe3.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c359f83e.entry.js.map → p-67b6a838.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b245449a.entry.js.map → p-6902ffb5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-17219f16.entry.js.map → p-81711068.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-afaee982.entry.js.map → p-898de91a.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-02491a35.entry.js.map → p-9566b0a7.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-16255f29.entry.js.map → p-a38fbc5c.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-5c0322dc.entry.js.map → p-a62f368d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d51d9d66.entry.js.map → p-add3ca45.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-04d6ae97.entry.js.map → p-b4931ff4.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f8557ec8.entry.js.map → p-b4ba87ac.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ea71badf.entry.js.map → p-c45258d3.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d0e82c62.entry.js.map → p-d864f7da.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4d885de2.entry.js.map → p-d947dd25.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1aa49aa7.entry.js.map → p-e299ac60.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8fd586d4.entry.js.map → p-ef042313.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-fd42a8cd.entry.js.map → p-f2a61198.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-218b1fe3.entry.js.map → p-f4a1a07b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-43564b05.entry.js.map → p-f9bc4e87.entry.js.map} +0 -0
|
@@ -23,22 +23,29 @@
|
|
|
23
23
|
display: block;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
:host([is-compact]) ::slotted([slot=logo]) {
|
|
27
|
+
--_dso-logo-block-size: 2.5rem !important;
|
|
28
|
+
}
|
|
29
|
+
:host([is-compact]) .dso-header {
|
|
30
|
+
flex-wrap: nowrap;
|
|
31
|
+
}
|
|
32
|
+
:host([is-compact]) dso-dropdown-menu .dso-dropdown-options {
|
|
33
|
+
inline-size: 100%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(:not([is-compact])) .dso-header {
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
:host(:not([is-compact])) dso-dropdown-menu .dso-dropdown-options {
|
|
40
|
+
inline-size: 375px;
|
|
41
|
+
}
|
|
42
|
+
|
|
26
43
|
.dso-header {
|
|
27
44
|
border-block-end: 1px solid #ccc;
|
|
28
45
|
display: flex;
|
|
29
46
|
flex-wrap: wrap;
|
|
30
47
|
position: relative;
|
|
31
48
|
}
|
|
32
|
-
@media screen and (min-width: 768px) {
|
|
33
|
-
.dso-header {
|
|
34
|
-
align-items: center;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
@media screen and (max-width: 991px) {
|
|
38
|
-
.dso-header.use-drop-down {
|
|
39
|
-
flex-wrap: nowrap;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
49
|
.dso-header .dso-nav {
|
|
43
50
|
border: 0;
|
|
44
51
|
}
|
|
@@ -93,6 +100,8 @@
|
|
|
93
100
|
|
|
94
101
|
.dso-navbar {
|
|
95
102
|
flex-basis: 100%;
|
|
103
|
+
max-inline-size: 100%;
|
|
104
|
+
position: relative;
|
|
96
105
|
}
|
|
97
106
|
|
|
98
107
|
dso-dropdown-menu > button:not(.dso-primary):not(.dso-secondary):not(.dso-tertiary),
|
|
@@ -207,16 +216,6 @@ dso-dropdown-menu .dso-dropdown-options {
|
|
|
207
216
|
border-radius: 0;
|
|
208
217
|
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.4);
|
|
209
218
|
}
|
|
210
|
-
@media screen and (min-width: 768px) {
|
|
211
|
-
dso-dropdown-menu .dso-dropdown-options {
|
|
212
|
-
inline-size: 375px;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
@media screen and (max-width: 767px) {
|
|
216
|
-
dso-dropdown-menu .dso-dropdown-options {
|
|
217
|
-
inline-size: 100%;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
219
|
dso-dropdown-menu .dso-dropdown-options ul {
|
|
221
220
|
margin: 0;
|
|
222
221
|
padding: 0;
|
|
@@ -242,8 +241,8 @@ dso-dropdown-menu .dso-dropdown-options ul li button:hover {
|
|
|
242
241
|
color: #275937;
|
|
243
242
|
text-decoration: underline;
|
|
244
243
|
}
|
|
245
|
-
dso-dropdown-menu .dso-dropdown-options ul li a:visited,
|
|
246
|
-
dso-dropdown-menu .dso-dropdown-options ul li button:visited {
|
|
244
|
+
dso-dropdown-menu .dso-dropdown-options ul li a:visited:not(:hover):not(:focus-visible),
|
|
245
|
+
dso-dropdown-menu .dso-dropdown-options ul li button:visited:not(:hover):not(:focus-visible) {
|
|
247
246
|
color: #275937;
|
|
248
247
|
}
|
|
249
248
|
dso-dropdown-menu .dso-dropdown-options ul li button {
|
|
@@ -301,6 +300,9 @@ dso-dropdown-menu .dso-dropdown-options ul li + li {
|
|
|
301
300
|
margin-block-start: 0;
|
|
302
301
|
padding-inline-start: 0;
|
|
303
302
|
}
|
|
303
|
+
.dso-nav.ready .menu-user-home {
|
|
304
|
+
margin-inline-start: auto;
|
|
305
|
+
}
|
|
304
306
|
.dso-nav > li {
|
|
305
307
|
margin-block-end: 4px;
|
|
306
308
|
}
|
|
@@ -324,7 +326,6 @@ dso-dropdown-menu .dso-dropdown-options ul li + li {
|
|
|
324
326
|
text-decoration: none;
|
|
325
327
|
font-size: 1.25em;
|
|
326
328
|
line-height: 1;
|
|
327
|
-
margin-block-start: 8px;
|
|
328
329
|
padding-block: 16px;
|
|
329
330
|
padding-inline: 0;
|
|
330
331
|
white-space: nowrap;
|
|
@@ -339,7 +340,6 @@ dso-dropdown-menu .dso-dropdown-options ul li + li {
|
|
|
339
340
|
.dso-nav.dso-nav-main dso-dropdown-menu button {
|
|
340
341
|
font-size: 1.25em;
|
|
341
342
|
line-height: 1;
|
|
342
|
-
margin-block-start: 8px;
|
|
343
343
|
padding-block: 16px;
|
|
344
344
|
padding-inline: 0;
|
|
345
345
|
align-items: flex-end;
|
|
@@ -356,13 +356,13 @@ dso-dropdown-menu .dso-dropdown-options ul li + li {
|
|
|
356
356
|
inset-block-start: auto;
|
|
357
357
|
transform: none;
|
|
358
358
|
}
|
|
359
|
-
.dso-nav .menu-
|
|
360
|
-
margin-inline-start: auto;
|
|
361
|
-
}
|
|
362
|
-
.dso-nav .menu-user-home dso-icon {
|
|
359
|
+
.dso-nav .main-menu-item-icon {
|
|
363
360
|
block-size: 1em;
|
|
364
361
|
margin-inline-end: 8px;
|
|
365
362
|
position: relative;
|
|
366
363
|
inset-block-start: -2px;
|
|
367
364
|
inline-size: 1.2em;
|
|
365
|
+
}
|
|
366
|
+
.dso-nav .dropdown-menu-item .main-menu-item-icon {
|
|
367
|
+
margin-inline-end: 0;
|
|
368
368
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.interfaces.js","sourceRoot":"","sources":["../../../../src/components/header/header.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface HeaderMenuItem {\r\n label: string;\r\n url: string;\r\n active?: boolean;\r\n}\r\n\r\nexport type HeaderNavigationType = \"menuItem\" | \"profile\" | \"logout\" | \"login\" | \"userHome\" | \"help\";\r\n\r\nexport interface HeaderClickEvent {\r\n originalEvent: MouseEvent;\r\n type: HeaderNavigationType;\r\n /** True when user selected the page holding Ctrl, Alt or other modifiers. Can be used to determine navigation. */\r\n isModifiedEvent: boolean;\r\n /** Url of the selected item. */\r\n url?: string;\r\n}\r\n\r\nexport interface HeaderClickMenuItemEvent extends HeaderClickEvent {\r\n menuItem: HeaderMenuItem;\r\n}\r\n\r\nexport type HeaderEvent = HeaderClickEvent | HeaderClickMenuItemEvent;\r\n"]}
|
|
1
|
+
{"version":3,"file":"header.interfaces.js","sourceRoot":"","sources":["../../../../src/components/header/header.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface HeaderMenuItem {\r\n label: string;\r\n url: string;\r\n active?: boolean;\r\n}\r\n\r\nexport type HeaderAuthStatus = \"none\" | \"loggedOut\" | \"loggedIn\";\r\n\r\nexport type HeaderCompactMode = \"always\" | \"auto\";\r\n\r\nexport type HeaderNavigationType = \"menuItem\" | \"profile\" | \"logout\" | \"login\" | \"userHome\" | \"help\";\r\n\r\nexport interface HeaderClickEvent {\r\n originalEvent: MouseEvent;\r\n type: HeaderNavigationType;\r\n /** True when user selected the page holding Ctrl, Alt or other modifiers. Can be used to determine navigation. */\r\n isModifiedEvent: boolean;\r\n /** Url of the selected item. */\r\n url?: string;\r\n}\r\n\r\nexport interface HeaderClickMenuItemEvent extends HeaderClickEvent {\r\n menuItem: HeaderMenuItem;\r\n}\r\n\r\nexport type HeaderEvent = HeaderClickEvent | HeaderClickMenuItemEvent;\r\n"]}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Fragment, h } from "@stencil/core";
|
|
1
|
+
import { Fragment, Host, forceUpdate, h, } from "@stencil/core";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import debounce from "debounce";
|
|
4
4
|
import { i18n } from "../../utils/i18n";
|
|
5
5
|
import { isModifiedEvent } from "../../utils/is-modified-event";
|
|
6
6
|
import { translations } from "./header.i18n";
|
|
7
|
+
import { MenuItem } from "./menu-item.functional-component";
|
|
7
8
|
const minDesktopViewportWidth = 992;
|
|
8
9
|
export class Header {
|
|
9
10
|
constructor() {
|
|
@@ -12,9 +13,10 @@ export class Header {
|
|
|
12
13
|
*/
|
|
13
14
|
this.mainMenu = [];
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Set to "always" to force the header to be compact. Otherwise it will be compact when
|
|
17
|
+
* the viewport is smaller than 992px.
|
|
16
18
|
*/
|
|
17
|
-
this.
|
|
19
|
+
this.compact = "auto";
|
|
18
20
|
/**
|
|
19
21
|
* Used to show the login/logout option. 'none' renders nothing.
|
|
20
22
|
*/
|
|
@@ -23,83 +25,73 @@ export class Header {
|
|
|
23
25
|
* Show a help-button or link in the header
|
|
24
26
|
*/
|
|
25
27
|
this.showHelp = false;
|
|
26
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Set this to true when the user is at "Mijn Omgevingsloket".
|
|
30
|
+
*/
|
|
31
|
+
this.userHomeActive = false;
|
|
32
|
+
this.visibleMenuItemsCount = undefined;
|
|
27
33
|
this.dropdownOptionsOffset = 0;
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
34
|
+
this.onWindowResize = debounce(() => this.resetVisibleMenuItems(), 20);
|
|
35
|
+
this.resetVisibleMenuItems = () => {
|
|
36
|
+
this.visibleMenuItemsCount = undefined;
|
|
37
|
+
forceUpdate(this.host);
|
|
38
|
+
};
|
|
39
|
+
this.clickHandler = (e, type, options) => {
|
|
30
40
|
var _a, _b;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
}, 100);
|
|
39
|
-
this.MenuItem = (item) => {
|
|
40
|
-
return (h("li", { class: item.active ? "dso-active" : undefined }, h("a", { href: item.url, "aria-current": item.active ? "page" : undefined, onClick: (e) => this.clickHandler(e, "menuItem", { menuItem: item }) }, item.label)));
|
|
41
|
+
this.dsoHeaderClick.emit({
|
|
42
|
+
originalEvent: e,
|
|
43
|
+
isModifiedEvent: isModifiedEvent(e),
|
|
44
|
+
type,
|
|
45
|
+
menuItem: options === null || options === void 0 ? void 0 : options.menuItem,
|
|
46
|
+
url: (_a = options === null || options === void 0 ? void 0 : options.url) !== null && _a !== void 0 ? _a : (_b = options === null || options === void 0 ? void 0 : options.menuItem) === null || _b === void 0 ? void 0 : _b.url,
|
|
47
|
+
});
|
|
41
48
|
};
|
|
49
|
+
this.menuItemElementRefs = [];
|
|
50
|
+
this.text = i18n(() => this.host, translations);
|
|
42
51
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.dsoHeaderClick.emit({
|
|
46
|
-
originalEvent: e,
|
|
47
|
-
isModifiedEvent: isModifiedEvent(e),
|
|
48
|
-
type,
|
|
49
|
-
menuItem: options === null || options === void 0 ? void 0 : options.menuItem,
|
|
50
|
-
url: (_a = options === null || options === void 0 ? void 0 : options.url) !== null && _a !== void 0 ? _a : (_b = options === null || options === void 0 ? void 0 : options.menuItem) === null || _b === void 0 ? void 0 : _b.url,
|
|
51
|
-
});
|
|
52
|
+
mainMenuChanged() {
|
|
53
|
+
this.resetVisibleMenuItems();
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
this.setDropDownMenu();
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
this.showDropDown = value === "always";
|
|
55
|
+
resizeListener() {
|
|
56
|
+
this.onWindowResize();
|
|
59
57
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
if (this.wrapper.clientWidth >= this.nav.clientWidth) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (this.mainMenu && this.overflowMenuItems >= this.mainMenu.length) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
this.overflowMenuItems++;
|
|
58
|
+
get isCompact() {
|
|
59
|
+
return this.compact === "always" || window.innerWidth < minDesktopViewportWidth;
|
|
71
60
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (this.showDropDown) {
|
|
90
|
-
return;
|
|
61
|
+
/**
|
|
62
|
+
* Before determining the visible menu items, all the menu items are rendered (including the dropdown menu item and the user home menu item).
|
|
63
|
+
* Then the visible menu items are calculated in componentDidRender() and ONLY when the visibleMenuItemsCount is undefined.
|
|
64
|
+
*
|
|
65
|
+
* When the window resizes or this.mainMenu changes, a reset is triggered to recalculate the visible menu items.
|
|
66
|
+
*
|
|
67
|
+
* @param navElement The navigation element to calculate the overflow menu item count for.
|
|
68
|
+
* @returns The number of menu items that can fit in the available space.
|
|
69
|
+
*/
|
|
70
|
+
calculateOverflowMenuItemCount(navElement) {
|
|
71
|
+
var _a;
|
|
72
|
+
const availableWidth = navElement.offsetWidth;
|
|
73
|
+
const lastMenuItem = this.menuItemElementRefs[this.menuItemElementRefs.length - 1];
|
|
74
|
+
const mostRightMenuItem = (_a = this.userHomeMenuItemElementRef) !== null && _a !== void 0 ? _a : lastMenuItem;
|
|
75
|
+
const dropdownMenuItem = this.dropdownMenuItemElementRef;
|
|
76
|
+
if (!mostRightMenuItem || !dropdownMenuItem || !lastMenuItem) {
|
|
77
|
+
return this.menuItemElementRefs.length;
|
|
91
78
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
79
|
+
const dropdownMenuItemEffectiveWidth = dropdownMenuItem.offsetLeft + dropdownMenuItem.offsetWidth - (lastMenuItem.offsetLeft + lastMenuItem.offsetWidth);
|
|
80
|
+
const requiredWidth = mostRightMenuItem.offsetLeft + mostRightMenuItem.offsetWidth - dropdownMenuItemEffectiveWidth;
|
|
81
|
+
if (requiredWidth <= availableWidth) {
|
|
82
|
+
return this.menuItemElementRefs.length;
|
|
95
83
|
}
|
|
96
|
-
this.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
84
|
+
const userHomeMenuItemEffectiveWidth = this.userHomeMenuItemElementRef
|
|
85
|
+
? this.userHomeMenuItemElementRef.offsetLeft +
|
|
86
|
+
this.userHomeMenuItemElementRef.offsetWidth -
|
|
87
|
+
(dropdownMenuItem.offsetLeft + dropdownMenuItem.offsetWidth)
|
|
88
|
+
: 0;
|
|
89
|
+
const remainingWidth = availableWidth - dropdownMenuItemEffectiveWidth - userHomeMenuItemEffectiveWidth;
|
|
90
|
+
const visibleMenuItems = this.menuItemElementRefs.findIndex((menuItem) => menuItem && menuItem.offsetLeft + menuItem.offsetWidth > remainingWidth);
|
|
91
|
+
if (visibleMenuItems < 0) {
|
|
92
|
+
return this.menuItemElementRefs.length;
|
|
101
93
|
}
|
|
102
|
-
|
|
94
|
+
return visibleMenuItems;
|
|
103
95
|
}
|
|
104
96
|
calculateDropdownOptionsOffset() {
|
|
105
97
|
var _a;
|
|
@@ -109,28 +101,34 @@ export class Header {
|
|
|
109
101
|
return (this.host.clientHeight -
|
|
110
102
|
(((_a = this.dropdownElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().bottom) - this.host.getBoundingClientRect().top));
|
|
111
103
|
}
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
get visibleMainMenuItems() {
|
|
105
|
+
return typeof this.visibleMenuItemsCount === "number"
|
|
106
|
+
? this.mainMenu.slice(0, this.visibleMenuItemsCount)
|
|
107
|
+
: this.mainMenu;
|
|
114
108
|
}
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
get hiddenMainMenuItems() {
|
|
110
|
+
return typeof this.visibleMenuItemsCount === "number" ? this.mainMenu.slice(this.visibleMenuItemsCount) : [];
|
|
117
111
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (this.showDropDown === undefined) {
|
|
112
|
+
componentDidRender() {
|
|
113
|
+
if (!this.host.isConnected) {
|
|
121
114
|
return;
|
|
122
115
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
116
|
+
if (this.isCompact && this.dropdownElement) {
|
|
117
|
+
this.dropdownElement.dropdownOptionsOffset = this.calculateDropdownOptionsOffset();
|
|
118
|
+
}
|
|
119
|
+
if (typeof this.visibleMenuItemsCount === "undefined" && this.navElement) {
|
|
120
|
+
this.visibleMenuItemsCount = this.calculateOverflowMenuItemCount(this.navElement);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
render() {
|
|
124
|
+
return (h(Host, { key: '8e00a5489946b71addacb1b71c2f9f36d443c14f', "is-compact": this.isCompact }, h("div", { key: '220b6faaeb955c2631dd038434fb91f74f90f233', class: "dso-header" }, h("div", { key: '00800011fd196a1c59e6401309ecbd3e97d7be6f', class: "logo-container" }, h("slot", { key: '6285ba06ebca475c7d38d3fb4ab60fdbb82a60e3', name: "logo" })), this.isCompact ? this.renderCompact() : this.renderNormal())));
|
|
125
|
+
}
|
|
126
|
+
renderCompact() {
|
|
127
|
+
return ((this.mainMenu.length > 0 || this.userHomeUrl || this.authStatus !== "none") && (h("div", { class: "dropdown" }, h("dso-dropdown-menu", { "dropdown-align": "right", dropdownOptionsOffset: this.dropdownOptionsOffset, ref: (element) => (this.dropdownElement = element) }, h("button", { type: "button", slot: "toggle" }, h("span", null, this.text("menu")), h("dso-icon", { icon: "chevron-down" })), h("div", { class: "dso-dropdown-options" }, h("ul", null, this.mainMenu.map((menuItem) => (h(MenuItem, { item: menuItem, onClick: (e) => this.clickHandler(e, "menuItem", { menuItem }) }))), this.userHomeUrl && (h("li", null, h("a", { href: this.userHomeUrl, onClick: (e) => this.clickHandler(e, "userHome", { url: this.userHomeUrl }) }, this.text("userHome")))), this.userProfileUrl && this.userProfileName && this.authStatus === "loggedIn" && (h("li", null, h("a", { href: this.userProfileUrl, onClick: (e) => this.clickHandler(e, "profile", { url: this.userProfileUrl }) }, this.userProfileName, h("span", { class: "profile-label" }, " - Mijn profiel")))), this.authStatus === "loggedOut" && (h("li", null, this.loginUrl ? (h("a", { href: this.loginUrl, onClick: (e) => this.clickHandler(e, "login", { url: this.loginUrl }) }, this.text("login"))) : (h("button", { type: "button", onClick: (e) => this.clickHandler(e, "login") }, this.text("login"))))), this.authStatus === "loggedIn" && (h("li", null, this.logoutUrl ? (h("a", { href: this.logoutUrl, onClick: (e) => this.clickHandler(e, "logout", { url: this.logoutUrl }) }, this.text("logout"))) : (h("button", { type: "button", onClick: (e) => this.clickHandler(e, "logout") }, this.text("logout"))))), this.showHelp && (h("li", null, this.helpUrl ? (h("a", { href: this.helpUrl, class: "dso-tertiary", onClick: (e) => this.clickHandler(e, "help", { url: this.helpUrl }) }, h("span", null, this.text("help")), h("dso-icon", { icon: "help" }))) : (h("button", { type: "button", class: "dso-tertiary", onClick: (e) => this.clickHandler(e, "help") }, h("span", null, this.text("help")), h("dso-icon", { icon: "help" })))))))))));
|
|
128
|
+
}
|
|
129
|
+
renderNormal() {
|
|
130
|
+
this.menuItemElementRefs = [];
|
|
131
|
+
return (h(Fragment, null, h("div", { class: "dso-header-session" }, this.userProfileUrl && this.userProfileName && this.authStatus === "loggedIn" && (h("div", { class: "profile" }, h("a", { href: this.userProfileUrl, class: "dso-tertiary", onClick: (e) => this.clickHandler(e, "profile", { url: this.userProfileUrl }) }, this.userProfileName))), this.authStatus === "loggedOut" && (h("div", { class: "login" }, this.loginUrl ? (h("a", { href: this.loginUrl, class: "dso-tertiary", onClick: (e) => this.clickHandler(e, "login", { url: this.loginUrl }) }, this.text("login"))) : (h("button", { class: "dso-tertiary", type: "button", onClick: (e) => this.clickHandler(e, "login") }, this.text("login"))))), this.authStatus === "loggedIn" && (h("div", { class: "logout" }, this.logoutUrl ? (h("a", { href: this.logoutUrl, class: "dso-tertiary", onClick: (e) => this.clickHandler(e, "logout", { url: this.logoutUrl }) }, this.text("logout"))) : (h("button", { class: "dso-tertiary", type: "button", onClick: (e) => this.clickHandler(e, "logout") }, this.text("logout"))))), this.showHelp && (h("div", { class: "help" }, this.helpUrl ? (h("a", { href: this.helpUrl, class: "dso-tertiary", onClick: (e) => this.clickHandler(e, "help", { url: this.helpUrl }) }, h("span", null, this.text("help")), h("dso-icon", { icon: "help" }))) : (h("button", { class: "dso-tertiary", type: "button", onClick: (e) => this.clickHandler(e, "help") }, h("span", null, this.text("help")), h("dso-icon", { icon: "help" })))))), (this.mainMenu.length > 0 || this.userHomeUrl) && (h("nav", { class: "dso-navbar" }, h("ul", { class: clsx("dso-nav", "dso-nav-main", { ready: this.visibleMenuItemsCount !== undefined }), ref: (element) => (this.navElement = element) }, this.visibleMainMenuItems.map((menuItem, i) => (h(MenuItem, { item: menuItem, onClick: (e) => this.clickHandler(e, "menuItem", { menuItem }), key: menuItem.label, ref: (el) => (this.menuItemElementRefs[i] = el) }))), (this.visibleMenuItemsCount === undefined || this.hiddenMainMenuItems.length > 0) && (h("li", { "aria-hidden": this.visibleMenuItemsCount === undefined, ref: (el) => (this.dropdownMenuItemElementRef = el), class: "dropdown-menu-item" }, h("dso-dropdown-menu", null, h("button", { type: "button", slot: "toggle" }, h("span", null, this.text("overflowMenu")), h("dso-icon", { icon: "chevron-down", class: "main-menu-item-icon" })), h("div", { class: "dso-dropdown-options" }, h("ul", null, this.hiddenMainMenuItems.map((menuItem) => (h(MenuItem, { item: menuItem, onClick: (e) => this.clickHandler(e, "menuItem", { menuItem }) })))))))), this.userHomeUrl && (h("li", { class: clsx("menu-user-home", { "dso-active": this.userHomeActive }), ref: (el) => (this.userHomeMenuItemElementRef = el) }, h("a", { href: this.userHomeUrl, "aria-current": this.userHomeActive ? "page" : undefined, onClick: (e) => this.clickHandler(e, "userHome", { url: this.userHomeUrl }) }, h("dso-icon", { icon: "user-line", class: "main-menu-item-icon" }), this.text("userHome")))))))));
|
|
134
132
|
}
|
|
135
133
|
static get is() { return "dso-header"; }
|
|
136
134
|
static get encapsulation() { return "shadow"; }
|
|
@@ -152,7 +150,7 @@ export class Header {
|
|
|
152
150
|
"mutable": false,
|
|
153
151
|
"complexType": {
|
|
154
152
|
"original": "HeaderMenuItem[]",
|
|
155
|
-
"resolved": "HeaderMenuItem[]
|
|
153
|
+
"resolved": "HeaderMenuItem[]",
|
|
156
154
|
"references": {
|
|
157
155
|
"HeaderMenuItem": {
|
|
158
156
|
"location": "import",
|
|
@@ -162,7 +160,7 @@ export class Header {
|
|
|
162
160
|
}
|
|
163
161
|
},
|
|
164
162
|
"required": false,
|
|
165
|
-
"optional":
|
|
163
|
+
"optional": false,
|
|
166
164
|
"docs": {
|
|
167
165
|
"tags": [],
|
|
168
166
|
"text": "The main menu items."
|
|
@@ -171,20 +169,26 @@ export class Header {
|
|
|
171
169
|
"setter": false,
|
|
172
170
|
"defaultValue": "[]"
|
|
173
171
|
},
|
|
174
|
-
"
|
|
172
|
+
"compact": {
|
|
175
173
|
"type": "string",
|
|
176
|
-
"attribute": "
|
|
174
|
+
"attribute": "compact",
|
|
177
175
|
"mutable": false,
|
|
178
176
|
"complexType": {
|
|
179
|
-
"original": "
|
|
177
|
+
"original": "HeaderCompactMode",
|
|
180
178
|
"resolved": "\"always\" | \"auto\"",
|
|
181
|
-
"references": {
|
|
179
|
+
"references": {
|
|
180
|
+
"HeaderCompactMode": {
|
|
181
|
+
"location": "import",
|
|
182
|
+
"path": "./header.interfaces",
|
|
183
|
+
"id": "src/components/header/header.interfaces.ts::HeaderCompactMode"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
182
186
|
},
|
|
183
187
|
"required": false,
|
|
184
188
|
"optional": false,
|
|
185
189
|
"docs": {
|
|
186
190
|
"tags": [],
|
|
187
|
-
"text": "
|
|
191
|
+
"text": "Set to \"always\" to force the header to be compact. Otherwise it will be compact when\r\nthe viewport is smaller than 992px."
|
|
188
192
|
},
|
|
189
193
|
"getter": false,
|
|
190
194
|
"setter": false,
|
|
@@ -196,9 +200,15 @@ export class Header {
|
|
|
196
200
|
"attribute": "auth-status",
|
|
197
201
|
"mutable": false,
|
|
198
202
|
"complexType": {
|
|
199
|
-
"original": "
|
|
203
|
+
"original": "HeaderAuthStatus",
|
|
200
204
|
"resolved": "\"loggedIn\" | \"loggedOut\" | \"none\"",
|
|
201
|
-
"references": {
|
|
205
|
+
"references": {
|
|
206
|
+
"HeaderAuthStatus": {
|
|
207
|
+
"location": "import",
|
|
208
|
+
"path": "./header.interfaces",
|
|
209
|
+
"id": "src/components/header/header.interfaces.ts::HeaderAuthStatus"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
202
212
|
},
|
|
203
213
|
"required": false,
|
|
204
214
|
"optional": false,
|
|
@@ -254,12 +264,12 @@ export class Header {
|
|
|
254
264
|
"attribute": "show-help",
|
|
255
265
|
"mutable": false,
|
|
256
266
|
"complexType": {
|
|
257
|
-
"original": "boolean
|
|
258
|
-
"resolved": "boolean
|
|
267
|
+
"original": "boolean",
|
|
268
|
+
"resolved": "boolean",
|
|
259
269
|
"references": {}
|
|
260
270
|
},
|
|
261
271
|
"required": false,
|
|
262
|
-
"optional":
|
|
272
|
+
"optional": false,
|
|
263
273
|
"docs": {
|
|
264
274
|
"tags": [],
|
|
265
275
|
"text": "Show a help-button or link in the header"
|
|
@@ -351,25 +361,25 @@ export class Header {
|
|
|
351
361
|
"mutable": false,
|
|
352
362
|
"complexType": {
|
|
353
363
|
"original": "boolean",
|
|
354
|
-
"resolved": "boolean
|
|
364
|
+
"resolved": "boolean",
|
|
355
365
|
"references": {}
|
|
356
366
|
},
|
|
357
367
|
"required": false,
|
|
358
|
-
"optional":
|
|
368
|
+
"optional": false,
|
|
359
369
|
"docs": {
|
|
360
370
|
"tags": [],
|
|
361
371
|
"text": "Set this to true when the user is at \"Mijn Omgevingsloket\"."
|
|
362
372
|
},
|
|
363
373
|
"getter": false,
|
|
364
374
|
"setter": false,
|
|
365
|
-
"reflect": false
|
|
375
|
+
"reflect": false,
|
|
376
|
+
"defaultValue": "false"
|
|
366
377
|
}
|
|
367
378
|
};
|
|
368
379
|
}
|
|
369
380
|
static get states() {
|
|
370
381
|
return {
|
|
371
|
-
"
|
|
372
|
-
"overflowMenuItems": {},
|
|
382
|
+
"visibleMenuItemsCount": {},
|
|
373
383
|
"dropdownOptionsOffset": {}
|
|
374
384
|
};
|
|
375
385
|
}
|
|
@@ -400,8 +410,17 @@ export class Header {
|
|
|
400
410
|
static get elementRef() { return "host"; }
|
|
401
411
|
static get watchers() {
|
|
402
412
|
return [{
|
|
403
|
-
"propName": "
|
|
404
|
-
"methodName": "
|
|
413
|
+
"propName": "mainMenu",
|
|
414
|
+
"methodName": "mainMenuChanged"
|
|
415
|
+
}];
|
|
416
|
+
}
|
|
417
|
+
static get listeners() {
|
|
418
|
+
return [{
|
|
419
|
+
"name": "resize",
|
|
420
|
+
"method": "resizeListener",
|
|
421
|
+
"target": "window",
|
|
422
|
+
"capture": false,
|
|
423
|
+
"passive": true
|
|
405
424
|
}];
|
|
406
425
|
}
|
|
407
426
|
}
|