@dso-toolkit/core 99.1.0 → 99.3.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 +2 -2
- package/dist/bundle/dso-advanced-select.js +3 -3
- package/dist/bundle/dso-annotation-activiteit.js +1 -1
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +1 -1
- package/dist/bundle/dso-annotation-kaart.js +1 -1
- package/dist/bundle/dso-annotation-locatie.js +1 -1
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +1 -1
- package/dist/bundle/dso-autosuggest.js +20 -4
- package/dist/bundle/dso-badge.js +1 -1
- package/dist/bundle/dso-document-component.js +1 -1
- package/dist/bundle/dso-dropdown-menu-item.js +1 -1
- package/dist/bundle/dso-dropdown-menu.js +2 -2
- package/dist/bundle/dso-header.js +2 -2
- package/dist/bundle/dso-info-button.js +1 -1
- package/dist/bundle/dso-legend-item.js +15 -8
- package/dist/bundle/dso-legend.js +2 -2
- package/dist/bundle/dso-list-button.js +18 -10
- package/dist/bundle/dso-logo.js +1 -1
- package/dist/bundle/dso-map-base-layers.js +4 -4
- package/dist/bundle/dso-map-controls.js +3 -3
- package/dist/bundle/dso-map-layer-object.js +2 -2
- package/dist/bundle/dso-map-layer.js +2 -2
- package/dist/bundle/dso-map-message.js +2 -2
- package/dist/bundle/dso-map-overlays.js +4 -4
- package/dist/bundle/dso-mark-bar.js +1 -1
- package/dist/bundle/dso-modal.js +1 -1
- package/dist/bundle/dso-onboarding-tip.js +1 -1
- package/dist/bundle/dso-ozon-content-toggletip.js +1 -1
- package/dist/bundle/dso-ozon-content.js +1 -1
- package/dist/bundle/dso-pagination.js +1 -1
- package/dist/bundle/dso-panel.js +1 -1
- package/dist/bundle/dso-plekinfo-card.js +1 -1
- package/dist/bundle/dso-progress-indicator.js +1 -1
- package/dist/bundle/dso-project-item.js +1 -1
- package/dist/bundle/dso-responsive-element.js +1 -1
- package/dist/bundle/dso-scrollable.js +1 -1
- package/dist/bundle/dso-segmented-button.js +1 -1
- package/dist/bundle/dso-selectable.js +1 -1
- package/dist/bundle/dso-skiplink.js +1 -1
- package/dist/bundle/dso-slide-toggle.js +1 -1
- package/dist/bundle/dso-survey-rating.js +4 -4
- package/dist/bundle/dso-tab.js +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 +1 -1
- package/dist/bundle/dso-tooltip.js +1 -1
- package/dist/bundle/dso-tree-view.js +2 -2
- package/dist/bundle/dso-viewer-grid.js +3 -3
- package/dist/bundle/dsot-document-component-demo.js +11 -11
- package/dist/bundle/p-46yF0HRA.js +1209 -0
- package/dist/bundle/{p-B985IZ5E.js → p-BXj3KQLr.js} +1 -1
- package/dist/bundle/p-BgSoLhHt.js +122 -0
- package/dist/bundle/{p-CaqgkKJr.js → p-BnKQUOO3.js} +1 -1
- package/dist/bundle/{p-CjzslTc7.js → p-BuYJl3wN.js} +5 -2
- package/dist/bundle/{p-CWULuYeZ.js → p-Bw8_UiAv.js} +1 -1
- package/dist/bundle/{p-DP30G93t.js → p-Cc1GnE4g.js} +1 -1
- package/dist/bundle/{p-Q0QoAbtJ.js → p-DjHplS8O.js} +2 -2
- package/dist/bundle/{p-C4ybibNA.js → p-DpwxsXR-.js} +1 -1
- package/dist/bundle/{p-D3Aw2q6j.js → p-WTVvB0zs.js} +3 -3
- package/dist/bundle/p-YGjRwvU1.js +161 -0
- package/dist/bundle/p-qKhyhLEu.js +341 -0
- package/dist/bundle/{p-BzYOu3k2.js → p-ryJKPQPH.js} +1 -1
- package/dist/bundle/{p-D7MKa3Zt.js → p-y0R9QGf7.js} +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
- package/dist/cjs/dso-alert_7.cjs.entry.js +6 -6
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +17 -1
- package/dist/cjs/dso-dropdown-menu-item.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-info_3.cjs.entry.js +1 -1
- package/dist/cjs/dso-label_3.cjs.entry.js +1 -1
- package/dist/cjs/dso-legend-item.cjs.entry.js +11 -4
- package/dist/cjs/dso-legend.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +9 -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-layer-object.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-layer.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-message.cjs.entry.js +2 -2
- 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 +22 -2
- 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-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 +4 -2
- package/dist/cjs/dso-segmented-button.cjs.entry.js +1 -1
- 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-tab.cjs.entry.js +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-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 +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/components/accordion-section.css +1 -0
- package/dist/collection/components/advanced-select/advanced-select.css +2 -0
- package/dist/collection/components/autosuggest/autosuggest.js +23 -1
- package/dist/collection/components/document-component/document-component.css +1 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu-item/dropdown-menu-item.css +1 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu.css +1 -0
- package/dist/collection/components/header/header.css +9 -4
- package/dist/collection/components/legend/legend-item/legend-item.css +14 -1
- package/dist/collection/components/legend/legend-item/legend-item.i18n.js +4 -0
- package/dist/collection/components/legend/legend-item/legend-item.js +7 -4
- package/dist/collection/components/legend/legend.css +1 -0
- package/dist/collection/components/list-button/list-button.js +15 -7
- 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 +1 -0
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/map-layer/components/map-layer-object.js +1 -1
- package/dist/collection/components/map-layer/map-layer.js +1 -1
- package/dist/collection/components/map-message/map-message.js +2 -2
- package/dist/collection/components/map-overlays/map-overlays.js +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +1 -1
- package/dist/collection/components/modal/functional-components/body.js +4 -0
- package/dist/collection/components/modal/functional-components/footer.js +4 -0
- package/dist/collection/components/modal/functional-components/header.js +4 -0
- package/dist/collection/components/modal/modal.css +14 -0
- package/dist/collection/components/modal/modal.js +15 -3
- package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
- package/dist/collection/components/ozon-content/components/ozon-content-toggletip/ozon-content-toggletip.js +1 -1
- package/dist/collection/components/ozon-content/ozon-content.css +1 -0
- package/dist/collection/components/ozon-content/ozon-content.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/project-item/project-item.js +1 -1
- package/dist/collection/components/responsive-element/responsive-element.js +1 -1
- package/dist/collection/components/scrollable/scrollable.js +31 -2
- package/dist/collection/components/segmented-button/segmented-button.js +1 -1
- 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 +1 -0
- package/dist/collection/components/survey-rating/survey-rating.js +2 -2
- package/dist/collection/components/table/table.css +1 -0
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/components/tab.css +1 -0
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tijdreis-banner/tijdreis-banner.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 +1 -0
- package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
- package/dist/components/document-component.js +1 -1
- package/dist/components/dso-accordion-section.js +1 -1
- package/dist/components/dso-advanced-select.js +1 -1
- package/dist/components/dso-autosuggest.js +1 -1
- package/dist/components/dso-dropdown-menu-item.js +1 -1
- package/dist/components/dso-dropdown-menu.js +1 -1
- package/dist/components/dso-header.js +1 -1
- package/dist/components/dso-legend-item.js +1 -1
- package/dist/components/dso-legend.js +1 -1
- package/dist/components/dso-list-button.js +1 -1
- package/dist/components/dso-logo.js +1 -1
- package/dist/components/dso-map-base-layers.js +1 -1
- package/dist/components/dso-map-controls.js +1 -1
- package/dist/components/dso-map-layer-object.js +1 -1
- package/dist/components/dso-map-layer.js +1 -1
- package/dist/components/dso-map-message.js +1 -1
- package/dist/components/dso-map-overlays.js +1 -1
- package/dist/components/dso-mark-bar.js +1 -1
- package/dist/components/dso-onboarding-tip.js +1 -1
- package/dist/components/dso-plekinfo-card.js +1 -1
- package/dist/components/dso-project-item.js +1 -1
- package/dist/components/dso-segmented-button.js +1 -1
- package/dist/components/dso-skiplink.js +1 -1
- package/dist/components/dso-survey-rating.js +1 -1
- package/dist/components/dso-tab.js +1 -1
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tijdreis-banner.js +1 -1
- package/dist/components/dso-tooltip.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +1 -1
- package/dist/components/modal.js +1 -1
- package/dist/components/ozon-content-toggletip.js +1 -1
- package/dist/components/ozon-content.js +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/progress-indicator.js +1 -1
- package/dist/components/responsive-element.js +1 -1
- package/dist/components/scrollable.js +1 -1
- package/dist/components/selectable.js +1 -1
- package/dist/components/slide-toggle.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-58d26e4a.entry.js → p-09fee564.entry.js} +1 -1
- package/dist/dso-toolkit/p-0c07dd43.entry.js +1 -0
- package/dist/dso-toolkit/{p-77193722.entry.js → p-10360fa4.entry.js} +1 -1
- package/dist/dso-toolkit/{p-04a866ad.entry.js → p-1cf76eb8.entry.js} +1 -1
- package/dist/dso-toolkit/p-1d2e543a.entry.js +1 -0
- package/dist/dso-toolkit/{p-527fd9ad.entry.js → p-2ac35007.entry.js} +1 -1
- package/dist/dso-toolkit/{p-39146a21.entry.js → p-2dcc260e.entry.js} +1 -1
- package/dist/dso-toolkit/{p-f0c4bac8.entry.js → p-3959d0b8.entry.js} +1 -1
- package/dist/dso-toolkit/{p-906a2b17.entry.js → p-3b620a1f.entry.js} +1 -1
- package/dist/dso-toolkit/{p-a8d13aa8.entry.js → p-3d1b5a25.entry.js} +1 -1
- package/dist/dso-toolkit/p-3f6ddf06.entry.js +1 -0
- package/dist/dso-toolkit/{p-a9a82876.entry.js → p-40d5fc69.entry.js} +1 -1
- package/dist/dso-toolkit/{p-64b2d182.entry.js → p-415db2f9.entry.js} +1 -1
- package/dist/dso-toolkit/p-4de1556f.entry.js +1 -0
- package/dist/dso-toolkit/{p-5fee14bc.entry.js → p-6b59eed1.entry.js} +1 -1
- package/dist/dso-toolkit/p-6fdad8bd.entry.js +1 -0
- package/dist/dso-toolkit/p-73c95410.entry.js +1 -0
- package/dist/dso-toolkit/{p-520dc726.entry.js → p-828dc3d2.entry.js} +1 -1
- package/dist/dso-toolkit/{p-74c17d50.entry.js → p-8c52725c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-f0ad44a4.entry.js → p-929ef098.entry.js} +1 -1
- package/dist/dso-toolkit/{p-87346597.entry.js → p-9330b7e6.entry.js} +1 -1
- package/dist/dso-toolkit/p-93aee600.entry.js +1 -0
- package/dist/dso-toolkit/{p-adaff168.entry.js → p-a10dddce.entry.js} +1 -1
- package/dist/dso-toolkit/{p-b01a50e9.entry.js → p-b2cf776e.entry.js} +1 -1
- package/dist/dso-toolkit/p-c10f35d7.entry.js +1 -0
- package/dist/dso-toolkit/{p-7277bc47.entry.js → p-c56e654d.entry.js} +1 -1
- package/dist/dso-toolkit/{p-bc465094.entry.js → p-d2a0c83c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-154cd858.entry.js → p-d728026a.entry.js} +1 -1
- package/dist/dso-toolkit/{p-81c897d5.entry.js → p-e452dd0a.entry.js} +1 -1
- package/dist/dso-toolkit/{p-b32fac41.entry.js → p-e782f187.entry.js} +1 -1
- package/dist/dso-toolkit/p-ec9ca424.entry.js +1 -0
- package/dist/dso-toolkit/p-f2a9cf31.entry.js +1 -0
- package/dist/dso-toolkit/p-f31456c8.entry.js +1 -0
- package/dist/dso-toolkit/p-f3798508.entry.js +1 -0
- package/dist/dso-toolkit/{p-ecec7172.entry.js → p-f8d2c3d6.entry.js} +1 -1
- package/dist/dso-toolkit/{p-d1d52478.entry.js → p-f8ed1a64.entry.js} +1 -1
- package/dist/dso-toolkit/{p-d9147307.entry.js → p-ffc60fb8.entry.js} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-advanced-select.entry.js +1 -1
- package/dist/esm/dso-alert_7.entry.js +6 -6
- package/dist/esm/dso-annotation-locatie_2.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +17 -1
- package/dist/esm/dso-dropdown-menu-item.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-info_3.entry.js +1 -1
- package/dist/esm/dso-label_3.entry.js +1 -1
- package/dist/esm/dso-legend-item.entry.js +12 -5
- package/dist/esm/dso-legend.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js +9 -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-layer-object.entry.js +1 -1
- package/dist/esm/dso-map-layer.entry.js +1 -1
- package/dist/esm/dso-map-message.entry.js +2 -2
- 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 +23 -3
- 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-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 +4 -2
- package/dist/esm/dso-segmented-button.entry.js +1 -1
- package/dist/esm/dso-skiplink.entry.js +1 -1
- package/dist/esm/dso-survey-rating.entry.js +3 -3
- package/dist/esm/dso-tab.entry.js +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-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 +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/autosuggest/autosuggest.d.ts +2 -0
- package/dist/types/components/list-button/list-button.d.ts +2 -0
- package/dist/types/components/modal/functional-components/body.d.ts +2 -0
- package/dist/types/components/modal/functional-components/footer.d.ts +2 -0
- package/dist/types/components/modal/functional-components/header.d.ts +10 -0
- package/dist/types/components/modal/modal.d.ts +5 -0
- package/dist/types/components/scrollable/scrollable.d.ts +2 -0
- package/dist/types/components.d.ts +8 -1
- package/package.json +4 -4
- package/dist/bundle/p-BUP7ETj9.js +0 -122
- package/dist/bundle/p-CA2_39GL.js +0 -341
- package/dist/bundle/p-CWNtCf83.js +0 -140
- package/dist/bundle/p-Cj4wP5c0.js +0 -1209
- package/dist/dso-toolkit/p-00ba5390.entry.js +0 -1
- package/dist/dso-toolkit/p-1bfcb6a3.entry.js +0 -1
- package/dist/dso-toolkit/p-30ae4567.entry.js +0 -1
- package/dist/dso-toolkit/p-3f42436c.entry.js +0 -1
- package/dist/dso-toolkit/p-47ec99e5.entry.js +0 -1
- package/dist/dso-toolkit/p-499a175a.entry.js +0 -1
- package/dist/dso-toolkit/p-53ae7599.entry.js +0 -1
- package/dist/dso-toolkit/p-6bec3683.entry.js +0 -1
- package/dist/dso-toolkit/p-a87670b0.entry.js +0 -1
- package/dist/dso-toolkit/p-a9e9e3df.entry.js +0 -1
- package/dist/dso-toolkit/p-b680dd08.entry.js +0 -1
- package/dist/dso-toolkit/p-c2f33a71.entry.js +0 -1
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
line-height: inherit;
|
|
33
33
|
font-family: inherit;
|
|
34
34
|
font-size: inherit;
|
|
35
|
+
letter-spacing: inherit;
|
|
35
36
|
}
|
|
36
37
|
.active-option.open {
|
|
37
38
|
border-radius: 4px 4px 0 0;
|
|
@@ -478,6 +479,7 @@
|
|
|
478
479
|
line-height: inherit;
|
|
479
480
|
font-family: inherit;
|
|
480
481
|
font-size: inherit;
|
|
482
|
+
letter-spacing: inherit;
|
|
481
483
|
border: none;
|
|
482
484
|
text-align: start;
|
|
483
485
|
background-color: #fff;
|
|
@@ -77,6 +77,7 @@ export class Autosuggest {
|
|
|
77
77
|
this.debouncedEmitValue(event.target.value.match(/(\S+)/g) ? event.target.value : "");
|
|
78
78
|
};
|
|
79
79
|
this.onFocusIn = () => {
|
|
80
|
+
this.input?.select();
|
|
80
81
|
if (this.suggestions && this.suggestions.length > 1) {
|
|
81
82
|
this.openSuggestions();
|
|
82
83
|
}
|
|
@@ -133,6 +134,21 @@ export class Autosuggest {
|
|
|
133
134
|
this.closeSuggestions();
|
|
134
135
|
}
|
|
135
136
|
}
|
|
137
|
+
handleSearchBarButtonKeydown(event) {
|
|
138
|
+
if (event.defaultPrevented || this.loading || (event.key !== "ArrowDown" && event.key !== "ArrowUp")) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (!this.input || event.target === this.input || !this.isEventInOwnSearchBar(event)) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
event.preventDefault();
|
|
145
|
+
this.input.focus();
|
|
146
|
+
this.openSuggestions(event.key === "ArrowDown" ? "first" : "last");
|
|
147
|
+
}
|
|
148
|
+
isEventInOwnSearchBar(event) {
|
|
149
|
+
const searchBar = this.host.closest(".dso-search-bar");
|
|
150
|
+
return !!searchBar && event.composedPath().includes(searchBar);
|
|
151
|
+
}
|
|
136
152
|
onDocumentClick(event) {
|
|
137
153
|
if ((this.showSuggestions || this.notFound) &&
|
|
138
154
|
this.listbox &&
|
|
@@ -486,7 +502,7 @@ export class Autosuggest {
|
|
|
486
502
|
else if (this.input) {
|
|
487
503
|
this.input.removeAttribute("aria-controls");
|
|
488
504
|
}
|
|
489
|
-
return (h(Fragment, null, h("slot", { key: '
|
|
505
|
+
return (h(Fragment, null, h("slot", { key: '27cfa8bc81482dca996532582d210a0edcee11b2' }), this.loading && this.showLoading ? (h("div", { class: "autosuggest-progress-box" }, h("dso-progress-indicator", { label: this.loadingLabel }))) : (showListbox && (h(Fragment, null, h("dso-scrollable", { class: "listbox-container", ref: (element) => (this.listboxContainer = element), _preventFocus: true }, h("div", { class: "listbox", role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: (element) => (this.listbox = element) }, (flat &&
|
|
490
506
|
this.showSuggestions &&
|
|
491
507
|
this.suggestions &&
|
|
492
508
|
this.suggestions.map((suggestion) => (h(Option, { id: this.listboxItemId(suggestion), mouseEnter: () => this.selectSuggestion(suggestion), mouseLeave: () => this.resetSelectedSuggestion(), click: this.onOptionClick, selected: (suggestion === this.selectedSuggestion).toString(), suggestion: suggestion, ref: (element) => element && this.listboxItems.push(element), markedSuggestion: this.getMarkedSuggestions(suggestion) })))) ||
|
|
@@ -722,6 +738,12 @@ export class Autosuggest {
|
|
|
722
738
|
}
|
|
723
739
|
static get listeners() {
|
|
724
740
|
return [{
|
|
741
|
+
"name": "keydown",
|
|
742
|
+
"method": "handleSearchBarButtonKeydown",
|
|
743
|
+
"target": "window",
|
|
744
|
+
"capture": false,
|
|
745
|
+
"passive": false
|
|
746
|
+
}, {
|
|
725
747
|
"name": "click",
|
|
726
748
|
"method": "onDocumentClick",
|
|
727
749
|
"target": "document",
|
|
@@ -107,6 +107,7 @@ div[popover] {
|
|
|
107
107
|
font-size: 1rem;
|
|
108
108
|
font-weight: 600;
|
|
109
109
|
line-height: normal;
|
|
110
|
+
letter-spacing: inherit;
|
|
110
111
|
position: relative;
|
|
111
112
|
}
|
|
112
113
|
.dropdown-menu button::after {
|
|
@@ -189,18 +190,22 @@ div[popover] {
|
|
|
189
190
|
background-color: #39870c;
|
|
190
191
|
color: #fff;
|
|
191
192
|
}
|
|
193
|
+
.dropdown-menu .dropdown-menu-options ul li a:hover, .dropdown-menu .dropdown-menu-options ul li a:hover:visited,
|
|
194
|
+
.dropdown-menu .dropdown-menu-options ul li button:hover,
|
|
195
|
+
.dropdown-menu .dropdown-menu-options ul li button:hover:visited {
|
|
196
|
+
color: #275937;
|
|
197
|
+
}
|
|
192
198
|
.dropdown-menu .dropdown-menu-options ul li a:hover,
|
|
193
199
|
.dropdown-menu .dropdown-menu-options ul li button:hover {
|
|
194
200
|
background-color: #fff;
|
|
195
|
-
color: #275937;
|
|
196
201
|
text-decoration: underline;
|
|
197
202
|
}
|
|
198
203
|
.dropdown-menu .dropdown-menu-options ul li a:visited,
|
|
199
204
|
.dropdown-menu .dropdown-menu-options ul li button:visited {
|
|
200
|
-
color: #
|
|
205
|
+
color: #fff;
|
|
201
206
|
}
|
|
202
|
-
.dropdown-menu .dropdown-menu-options ul li a:visited:not(:hover):not(:focus-visible),
|
|
203
|
-
.dropdown-menu .dropdown-menu-options ul li button:visited:not(:hover):not(:focus-visible) {
|
|
207
|
+
.dropdown-menu .dropdown-menu-options ul li a:visited:not(:hover):not(:focus):not(:focus-visible),
|
|
208
|
+
.dropdown-menu .dropdown-menu-options ul li button:visited:not(:hover):not(:focus):not(:focus-visible) {
|
|
204
209
|
color: #275937;
|
|
205
210
|
}
|
|
206
211
|
.dropdown-menu .dropdown-menu-options ul li.dso-active a {
|
|
@@ -9,6 +9,17 @@
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.sr-only {
|
|
13
|
+
position: absolute;
|
|
14
|
+
inline-size: 1px;
|
|
15
|
+
block-size: 1px;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: -1px;
|
|
18
|
+
border: 0;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
clip-path: rect(0 0 0 0);
|
|
21
|
+
}
|
|
22
|
+
|
|
12
23
|
::slotted(span[slot=symbol]) {
|
|
13
24
|
background-color: #fff;
|
|
14
25
|
display: block;
|
|
@@ -43,6 +54,8 @@
|
|
|
43
54
|
}
|
|
44
55
|
.legend-item-right-content dso-slide-toggle {
|
|
45
56
|
line-height: 1;
|
|
46
|
-
margin-inline-start: 8px;
|
|
47
57
|
padding-block-start: 0 !important;
|
|
58
|
+
}
|
|
59
|
+
.legend-item-right-content dso-icon-button {
|
|
60
|
+
margin-inline-start: 4px;
|
|
48
61
|
}
|
|
@@ -4,6 +4,8 @@ export const translations = {
|
|
|
4
4
|
delete: "Remove layer",
|
|
5
5
|
disabledInfo: "More info",
|
|
6
6
|
options: "Edit layer",
|
|
7
|
+
optionsAvailable: "Edit layer button is now available",
|
|
8
|
+
optionsUnavailable: "Edit layer button is now disabled",
|
|
7
9
|
makeActive: "Make {{label}} active",
|
|
8
10
|
makeActiveDefault: "Make active",
|
|
9
11
|
},
|
|
@@ -13,6 +15,8 @@ export const translations = {
|
|
|
13
15
|
delete: "Kaartlaag verwijderen",
|
|
14
16
|
disabledInfo: "Meer informatie",
|
|
15
17
|
options: "Kaartlaag bewerken",
|
|
18
|
+
optionsAvailable: "De knop Kaartlaag bewerken is nu beschikbaar",
|
|
19
|
+
optionsUnavailable: "De knop Kaartlaag bewerken is nu uitgeschakeld",
|
|
16
20
|
makeActive: "Maak {{label}} actief",
|
|
17
21
|
makeActiveDefault: "Maak actief",
|
|
18
22
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Host, forceUpdate, h, } from "@stencil/core";
|
|
1
|
+
import { Fragment, Host, forceUpdate, h, } from "@stencil/core";
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
import { i18n } from "../../../utils/i18n";
|
|
4
4
|
import { translations } from "./legend-item.i18n";
|
|
@@ -36,9 +36,12 @@ export class LegendItem {
|
|
|
36
36
|
return (h("dso-icon-button", { label: this.text("delete"), icon: "trash", variant: "tertiary", id: "delete-button", onDsoClick: (e) => this.dsoDelete.emit({ originalEvent: e.detail.originalEvent }) }));
|
|
37
37
|
}
|
|
38
38
|
renderViewMode(hasOptions, accessibleLabel) {
|
|
39
|
+
if (!this.activatable) {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
39
42
|
return [
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
h("dso-slide-toggle", { accessibleLabel: accessibleLabel, checked: this.active, disabled: this.disabled, onDsoActiveChange: (e) => this.dsoActiveChange.emit({ current: Boolean(this.active), next: !this.active, originalEvent: e }) }),
|
|
44
|
+
hasOptions && (h(Fragment, null, h("span", { class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.active ? this.text("optionsAvailable") : this.text("optionsUnavailable")), h("dso-icon-button", { disabled: !this.active || this.disabled, label: this.text("options"), icon: "more-horizontal", variant: "tertiary", toggled: this.showOptions, id: "options-button", onDsoClick: () => (this.showOptions = !this.showOptions) }))),
|
|
42
45
|
];
|
|
43
46
|
}
|
|
44
47
|
renderRightContent(hasOptions, accessibleLabel) {
|
|
@@ -57,7 +60,7 @@ export class LegendItem {
|
|
|
57
60
|
const accessibleLabel = label?.textContent
|
|
58
61
|
? this.text("makeActive", { label: label.textContent.toLowerCase() })
|
|
59
62
|
: this.text("makeActiveDefault");
|
|
60
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'df30f74d55cc77242dd6267a7c41cdddc10e17e0', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h("div", { key: 'cc6af5ca94841169aa8e79abcf94c7570dabb2cc', class: clsx("legend-item", { "legend-item-symbol": hasSymbol }) }, hasSymbol && (h("div", { key: 'd6ffae918a8cd36041a7af742fcc61e5db64a3d9' }, h("slot", { key: '3405be5254e5b39c6931b15a8b678720b313d353', name: "symbol" }))), h("div", { key: 'cc6c17f5c8e5b7ab4c95ca778ab9b4f15eecf5f7' }, h("slot", { key: 'e23881446ce219a1c2132b098383e36b45772a5f', name: "label" })), this.disabled && this.disabledMessage && (h("dso-info-button", { key: '30e37a1e3e9039a515e6c6e97503b968466cfc26', label: this.text("disabledInfo"), toggletipPlacement: "bottom" }, h("div", { key: '5b04a862380380febc92818bde9fb983129c7e82', slot: "toggletip" }, this.disabledMessage))), h("div", { key: 'f4804b908b16ae8e9cd19a27a2370cdedd5199b3', class: "legend-item-right-content" }, this.renderRightContent(hasOptions, accessibleLabel))), hasOptions && (h("div", { key: 'c45e84d5f3b2c9369fe62158e7d97dcf09ff6943', hidden: this.disabled || !this.showOptions, class: "options" }, h("slot", { key: '15cbfda78a1b8ff642086ad62c64a6c8f35cf56d', name: "options" })))));
|
|
61
64
|
}
|
|
62
65
|
static get is() { return "dso-legend-item"; }
|
|
63
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,6 +2,7 @@ import { Fragment, forceUpdate, h, } from "@stencil/core";
|
|
|
2
2
|
import { clsx } from "clsx";
|
|
3
3
|
export class ListButton {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.focusIncrementButtonAfterRender = false;
|
|
5
6
|
/**
|
|
6
7
|
* Whether the List Button is checked.
|
|
7
8
|
*/
|
|
@@ -27,6 +28,10 @@ export class ListButton {
|
|
|
27
28
|
if (!this.subcontentSlot?.hasAttribute("aria-hidden")) {
|
|
28
29
|
this.subcontentSlot?.setAttribute("aria-hidden", "true");
|
|
29
30
|
}
|
|
31
|
+
if (this.focusIncrementButtonAfterRender) {
|
|
32
|
+
this.focusIncrementButtonAfterRender = false;
|
|
33
|
+
void this.incrementButton?.setFocus();
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
disconnectedCallback() {
|
|
32
37
|
this.mutationObserver?.disconnect();
|
|
@@ -38,6 +43,9 @@ export class ListButton {
|
|
|
38
43
|
if (!this.isNewCountValid(newValue)) {
|
|
39
44
|
return;
|
|
40
45
|
}
|
|
46
|
+
if (direction === "decrement" && newValue === 1) {
|
|
47
|
+
this.focusIncrementButtonAfterRender = true;
|
|
48
|
+
}
|
|
41
49
|
this.dsoCountChange.emit({
|
|
42
50
|
originalEvent: e,
|
|
43
51
|
count: newValue,
|
|
@@ -65,7 +73,7 @@ export class ListButton {
|
|
|
65
73
|
}
|
|
66
74
|
render() {
|
|
67
75
|
const selected = this.checked || (this.count !== undefined && this.count > 0);
|
|
68
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: '28dc8cacf3635cf83f3bc526cce61870c16213d7', class: clsx(["dso-button-group", { "dso-disabled": this.disabled }]) }, h("div", { key: '80788b4dae346a6ca92c37d3a23f58993a6f061b', class: clsx(["dso-list-button", { "dso-selected": selected, "dso-single-count": this.count === 1 }]), onClick: (e) => this.handleSelectClick(e) }, h("dso-selectable", { key: '123ae2c35a23673eeaa39a42e021edabb4b240a2', type: "checkbox", value: "list-button", name: "naam", checked: selected, disabled: this.disabled }, h("span", { key: 'a882a847c1e0a0da71d45afa5f6bdca506655c9d' }, this.label, this.sublabel && h("span", { key: 'c87a1d5a74e8f76943943f21eda4ca70977a120b', class: "sr-only" }, " ", this.sublabel), this.subcontentSlot && (h("span", { key: '8f11fd1a6285c3ef92d61679c2f28b4875ddbe5c', class: "sr-only" }, this.subcontentPrefix && this.subcontentPrefix + ":", " ", h("span", { key: '987ab02881c3e7eaf6efb1a16fbbd75855be2959', innerHTML: this.subcontentSlot.innerHTML }))))), this.sublabel && h("span", { key: 'f58beece16efb79cf8c169fd48430ad64be5fe56', class: "dso-sublabel" }, this.sublabel), this.subcontentSlot && (h("div", { key: 'f4c6f59c9a327ac075608952ab81c9f38c886464', class: "subcontent" }, h("slot", { key: 'e0d025b91a7f60170dce5975a31926673e00f6f1', name: "subcontent" })))), this.count !== undefined && this.count > 0 && (h("div", { key: 'ce9f805f4cca58986ea9a1c18b5c6f982325b4d2', class: "dso-input-number" }, this.count > 1 && (h(Fragment, { key: 'baa2dbcef366d7da042161dacdfe6548aa2e7667' }, h("dso-icon-button", { key: '98c240428924462f07caabbd3187409c08147062', label: "Aantal verlagen", variant: "tertiary", icon: "minus-circle-outline", disabled: this.count === Number(this.min) || this.disabled, onDsoClick: (e) => this.stepValue(e, "decrement") }), h("span", { key: '4ce7451b2740c43259a610077a7d37022607764f', class: "dso-input-step-counter", "aria-hidden": "true" }, this.count))), h("span", { key: '340c4db349360e7adab309d84fe02a40795237ac', class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }, this.count), h("dso-icon-button", { key: 'd1365a96fb41df03e35ce8687d994d102e338f84', ref: (element) => (this.incrementButton = element), label: "Aantal verhogen", variant: "tertiary", icon: "plus-circle-outline", disabled: this.count === Number(this.max) || this.disabled, onDsoClick: (e) => this.stepValue(e, "increment") })))));
|
|
69
77
|
}
|
|
70
78
|
static get is() { return "dso-list-button"; }
|
|
71
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,7 +105,7 @@ export class ListButton {
|
|
|
97
105
|
},
|
|
98
106
|
"getter": false,
|
|
99
107
|
"setter": false,
|
|
100
|
-
"reflect":
|
|
108
|
+
"reflect": true,
|
|
101
109
|
"attribute": "label"
|
|
102
110
|
},
|
|
103
111
|
"sublabel": {
|
|
@@ -116,7 +124,7 @@ export class ListButton {
|
|
|
116
124
|
},
|
|
117
125
|
"getter": false,
|
|
118
126
|
"setter": false,
|
|
119
|
-
"reflect":
|
|
127
|
+
"reflect": true,
|
|
120
128
|
"attribute": "sublabel"
|
|
121
129
|
},
|
|
122
130
|
"count": {
|
|
@@ -135,7 +143,7 @@ export class ListButton {
|
|
|
135
143
|
},
|
|
136
144
|
"getter": false,
|
|
137
145
|
"setter": false,
|
|
138
|
-
"reflect":
|
|
146
|
+
"reflect": true,
|
|
139
147
|
"attribute": "count"
|
|
140
148
|
},
|
|
141
149
|
"min": {
|
|
@@ -154,7 +162,7 @@ export class ListButton {
|
|
|
154
162
|
},
|
|
155
163
|
"getter": false,
|
|
156
164
|
"setter": false,
|
|
157
|
-
"reflect":
|
|
165
|
+
"reflect": true,
|
|
158
166
|
"attribute": "min"
|
|
159
167
|
},
|
|
160
168
|
"max": {
|
|
@@ -173,7 +181,7 @@ export class ListButton {
|
|
|
173
181
|
},
|
|
174
182
|
"getter": false,
|
|
175
183
|
"setter": false,
|
|
176
|
-
"reflect":
|
|
184
|
+
"reflect": true,
|
|
177
185
|
"attribute": "max"
|
|
178
186
|
},
|
|
179
187
|
"checked": {
|
|
@@ -232,7 +240,7 @@ export class ListButton {
|
|
|
232
240
|
},
|
|
233
241
|
"getter": false,
|
|
234
242
|
"setter": false,
|
|
235
|
-
"reflect":
|
|
243
|
+
"reflect": true,
|
|
236
244
|
"attribute": "subcontent-prefix"
|
|
237
245
|
}
|
|
238
246
|
};
|
|
@@ -23,7 +23,7 @@ export class Logo {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
return (h(Fragment, null, this.logoUrl ? (h("a", { class: "logo-url", href: this.logoUrl, onClick: this.handleLogoClick }, h(DsoLogo, { name: this.name }))) : (h(DsoLogo, { name: this.name })), this.label &&
|
|
26
|
-
(!this.labelUrl ? (h("span", { class: "logo-label" }, this.label)) : (h("a", { class: "logo-label-url", href: this.labelUrl, onClick: this.handleLabelClick }, h("span", { class: "logo-label" }, this.label)))), this.ribbon && h("div", { key: '
|
|
26
|
+
(!this.labelUrl ? (h("span", { class: "logo-label" }, this.label)) : (h("a", { class: "logo-label-url", href: this.labelUrl, onClick: this.handleLabelClick }, h("span", { class: "logo-label" }, this.label)))), this.ribbon && h("div", { key: 'd9b8e664223d4763b318ca259cd3090ccc3b0a96', class: "logo-ribbon" }, this.ribbon)));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "dso-logo"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,7 +26,7 @@ export class MapBaseLayers {
|
|
|
26
26
|
for (const ref in this.selectableRefs) {
|
|
27
27
|
delete this.selectableRefs[ref];
|
|
28
28
|
}
|
|
29
|
-
return (h("fieldset", { key: '
|
|
29
|
+
return (h("fieldset", { key: '26e0f25a4b9d26dfe2ad804c65253a08205909d4', class: "form-group dso-radios" }, h("legend", { key: 'fe913ce00c8ace09909deffc9e7e39a8891fe7f9', class: "sr-only" }, "Achtergrond"), h("div", { key: '7ecc76a72df6571c43902b8431bbf579259204c7', class: "dso-label-container" }, h("span", { key: 'abd27ffee2fa309cf2248a8f11a3e20e2053a1b2', class: "control-label", "aria-hidden": "true" }, this.text("background"))), h("div", { key: 'fa9c69b1cd28e2646c8a92cbd6550d39c1ba3113', class: "dso-field-container" }, this.baseLayers.map((baseLayer) => (h("dso-selectable", { key: baseLayer.id, type: "radio", value: baseLayer.name, checked: baseLayer.checked, disabled: baseLayer.disabled, name: this.group, ref: (ref) => ref && (this.selectableRefs[baseLayer.id] = ref), onDsoChange: () => this.baseLayerChangeHandler(baseLayer) }, baseLayer.name, baseLayer.info ? h("p", { slot: "info" }, baseLayer.info) : null))))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "dso-map-base-layers"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -102,7 +102,7 @@ export class MapControls {
|
|
|
102
102
|
this.clearPostTransitionTimeout();
|
|
103
103
|
}
|
|
104
104
|
render() {
|
|
105
|
-
return (h(Fragment, { key: '
|
|
105
|
+
return (h(Fragment, { key: 'df742112e2025fdbb83de9414b0d6ca52d997826' }, h("dso-icon-button", { key: '213c786fdd190c1c7d176d897cdce2ddce007f21', label: this.text("layersButton"), icon: "layers", variant: "map", "aria-controls": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), "aria-expanded": this.open, tooltipPlacement: "left", class: "toggle-visibility-icon-button", onDsoClick: (e) => this.toggleVisibilityInternal(e.detail.originalEvent, __classPrivateFieldGet(this, _MapControls_toggleIconButtonElement, "f")), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleIconButtonElement, element, "f")) }), h("button", { key: 'e08ce9dbbc17469f0cb103e38a6603b2f6752725', type: "button", class: "dso-map toggle-visibility-button", "aria-controls": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), "aria-expanded": this.open, onClick: (e) => this.toggleVisibilityInternal(e, __classPrivateFieldGet(this, _MapControls_toggleButtonElement, "f")), ref: (element) => (__classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f")) }, h("dso-icon", { key: 'e22486c5b4ec4de15d389d4349c2c987cbabd760', icon: "layers" }), h("span", { key: '876c81f18078ad0f316d1d33883fd01aba0c1b65' }, this.text("layersButton"))), h("dso-button-group", { key: '411ee5039d8e818cbca28ed237d0d5c54ab0c463', class: "zoom-buttons", direction: "column" }, h("dso-icon-button", { key: 'ee2f5435b15e91beef74f20ade813801c2237b32', label: this.text("zoomIn"), icon: "plus", variant: "map", tooltipPlacement: "left", onDsoClick: (e) => this.dsoZoomIn.emit(e.detail.originalEvent), disabled: this.disableZoom === "in" || this.disableZoom === "both" }), h("dso-icon-button", { key: 'b51b4d38ecf01cdf1f414e0699c1809e86b7ff87', label: this.text("zoomOut"), icon: "minus", variant: "map", tooltipPlacement: "left", onDsoClick: (e) => this.dsoZoomOut.emit(e.detail.originalEvent), disabled: this.disableZoom === "out" || this.disableZoom === "both" })), h("section", { key: 'ad07928c1d78c7e562f792bba2b6c18ba401ce75', id: __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f"), hidden: this.hideContent, role: "region", onKeyDown: this.handlePanelKeyDown, "aria-labelledby": __classPrivateFieldGet(this, _MapControls_mapLayersPanelId, "f") }, h("header", { key: '462993fe80b521ea3c032940087a1240040d08ed' }, h("h2", { key: 'edf05e60556acaf9295f4a5f53edfe5f93759c7d', id: __classPrivateFieldGet(this, _MapControls_mapLayersTitleId, "f"), tabIndex: -1 }, this.text("title")), h("dso-icon-button", { key: '8883ececf16dee517102d9c27ca0cde32f412c78', class: "close-button", label: this.text("hidePanel", { title: this.text("title") }), icon: "cross", variant: "tertiary", onDsoClick: (e) => this.toggleVisibility(e.detail.originalEvent), ref: (element) => (__classPrivateFieldSet(this, _MapControls_closeIconButtonElement, element, "f")) })), h("dso-scrollable", { key: 'ee13b3dc2596f06e99bf0e48d1f080018f1bedca' }, h("div", { key: 'e79644ff58ff6408cbc2dd0e3f8cef853807619c', class: "content" }, h("slot", { key: 'c721808970823379205241f527b917ead66f9d15' }))))));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "dso-map-controls"; }
|
|
108
108
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class MapLayerObject {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '7fbc1ef74509e1b4f80d56905fa764a34a333740', onMouseEnter: () => this.dsoMouseEnter.emit(), onMouseLeave: () => this.dsoMouseLeave.emit() }, h(WrapWijzigactie, { key: '86a25068d41d0113456e7705b522d343e7642127', wijzigactie: this.wijzigactie }, h("div", { key: 'aa6678b819aa10f8a1c2cc8bca459aa95deac593', class: "map-layer-object" }, h("div", { key: '38fbefa271b39f82918dae41eb66b58492ba5574' }, h("slot", { key: '95385dd080311a6601799a49451fbed2830d8203', name: "symbol" })), h("div", { key: 'e35e66f79ee298235be738d265017f5cf1564559', class: "map-layer-object-heading" }, h("slot", { key: '2a99347bb68d8e5bffe168587042f3f601ac4456' }), h("slot", { key: '5105e4e49f5d644c70f09df20569ccca5c0e550a', name: "label" })), h("div", { key: 'b91932b72b31233927163885102039924098ad0c', class: "slide-toggle-container" }, h("dso-slide-toggle", { key: '9087cd162ea7434ee1d7f4b977cbb75b7a2ab4ef', accessibleLabel: "Toon op kaart", checked: this.active, onDsoActiveChange: this.handleActiveChange }))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "dso-map-layer-object"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class MapLayer {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(WrapWijzigactie, { key: '
|
|
24
|
+
return (h(WrapWijzigactie, { key: '58b032ccf7677ede268d977e40284fce488001cf', wijzigactie: this.wijzigactie }, h("div", { key: 'dfa603d5ff4e738955330e539cb27c04a06eb361', class: "map-layer" }, h("div", { key: 'd5b744910ec3ffbf76a1bc5e06c7c8a2862d7d33', class: "map-layer-heading" }, h("slot", { key: 'e52c97abb2ffd3dbeb8a1691567499d5b03628be', name: "name" }), h("slot", { key: 'f81a9b8d10970365dbc4a6d9e335cca4e2db6bd9', name: "label" })), this.activatable && (h("div", { key: 'db93351178c6ff143098d07bc1efb4aab486f97c', class: "slide-toggle-container" }, h("dso-slide-toggle", { key: 'ab49a0cfd4105c9133a1c50da4496fddee2550fe', accessibleLabel: "Toon op kaart", checked: this.active, onDsoActiveChange: this.handleActiveChange })))), h("slot", { key: 'a9b8d33ee9c50c461c136a392fd57f177f84302a' })));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "dso-map-layer"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,11 +20,11 @@ export class MapMessage {
|
|
|
20
20
|
render() {
|
|
21
21
|
const iconName = this.variant ? iconMap[this.variant] : undefined;
|
|
22
22
|
const role = this.variant === "error" ? "alert" : "status";
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: 'c38f46748c57f3034e24cacaa91b5f792dab80dc', class: {
|
|
24
24
|
"map-message-content": true,
|
|
25
25
|
"has-icon": iconName !== undefined,
|
|
26
26
|
"has-actions": this.hasActions,
|
|
27
|
-
}, role: role, "aria-atomic": "true" }, h("div", { key: '
|
|
27
|
+
}, role: role, "aria-atomic": "true" }, h("div", { key: 'ca8ee505450598fb4a8271fcd89a54b46d7ba1c3', class: "map-message-body" }, iconName && h("dso-icon", { key: '8de97522b21cd5138769c72d424724a9ae28a958', class: "map-message-icon", icon: iconName, "aria-hidden": "true" }), h("span", { key: '2c22435cc51763c2eb070d228bf1f7cd44d6b3a3', class: "map-message-text" }, h("slot", { key: '1a0dc7b8f5a5c1ffaaeffdbd5c0a74f3a6048640', name: "message" }))), h("slot", { key: '0c3387b08b5f8f0196f2d09bb6ac994cceace168', name: "actions", onSlotchange: this.handleActionsSlotChange })));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "dso-map-message"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class MapOverlays {
|
|
|
27
27
|
for (const ref in this.selectableRefs) {
|
|
28
28
|
delete this.selectableRefs[ref];
|
|
29
29
|
}
|
|
30
|
-
return (h("fieldset", { key: '
|
|
30
|
+
return (h("fieldset", { key: 'b875d9db957b7c85aff87f3ef79e90b65e20a548', class: "form-group dso-checkboxes" }, h("legend", { key: '31dcc45e2cb253ca78990d097a40fa23fecfeb37', class: "sr-only" }, "Kaartlagen"), h("div", { key: '9072cd6b8adb0fe47558e775caa34168cb10ff57', class: "dso-label-container" }, h("span", { key: '70f1ee5af74eddfb45b06e00692842c6222c5ec7', class: "control-label", "aria-hidden": "true" }, this.text("title"))), h("div", { key: 'd7180472b4d9d63a652b00b6dd2a9382f888f450', class: "dso-field-container" }, this.overlays.map((overlay) => (h("dso-selectable", { key: overlay.id, type: "checkbox", value: overlay.name, checked: overlay.checked, disabled: overlay.disabled, name: this.group, ref: (ref) => ref && (this.selectableRefs[overlay.id] = ref), onDsoChange: (e) => this.overlayChangeHandler(overlay, e) }, overlay.name, overlay.info ? h("p", { slot: "info" }, overlay.info) : null))))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "dso-map-overlays"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +41,7 @@ export class MarkBar {
|
|
|
41
41
|
render() {
|
|
42
42
|
const current = this.current || 0;
|
|
43
43
|
const totalCount = this.totalCount || 0;
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '7818d8f7762b007d1dbc90b657f9673ab42c0234', class: "dso-mark-bar" }, h("div", { key: '01a6513b3af2f365472421554c6a2442c8f61a73', class: "dso-mark-bar-input" }, h("input", { key: '1580d1b4d30542d1ff3b12dd0551249871db145b', type: "text", id: "search-input", value: this.value, onInput: this.handleInput, onKeyDown: this.handleKeyDown, placeholder: " ", ref: (element) => (this.inputElement = element) }), h("label", { key: 'd6d87a36588e949b524214fa45dda0ee7962a031', htmlFor: "search-input" }, h("dso-icon", { key: '5fa410193b67370970cda0690c574f482a47a95d', class: "dso-search-icon", icon: "search" }), h("span", { key: '001a6eb612430876e7757cbe98ba9efd326bf19f', class: "label-text" }, this.label)), h("dso-icon-button", { key: '7ae27f8d2a5be8bc0ae59f30e036a9089c0cebcb', icon: "cross", variant: "tertiary", label: "Zoekopdracht legen", onDsoClick: (e) => this.handleClear(e.detail.originalEvent) })), h("div", { key: '3640ab6ad6b59223bd5fa02543e4eff19b25d7d0', class: "dso-button-container" }, h("span", { key: '580893adcea6d950a262e32911a1cfc9c16fb25b', class: "divider" }), h("dso-icon-button", { key: '16533f6d69a10f68b7c7773087ce8a8fe11bfa17', icon: "chevron-up", variant: "tertiary", label: `Vorig zoekresultaat ${current - 1}/${totalCount}`, onDsoClick: (e) => this.handlePrevious(e.detail.originalEvent), disabled: current <= 1 }), h("span", { key: 'b70d11b9693c5204137fefac12660589d1f8a3c4', role: "status" }, current, "/", totalCount), h("dso-icon-button", { key: 'a55ad1bfb0d5cf583be81f83abc66fe64af4881a', icon: "chevron-down", variant: "tertiary", label: `Volgend zoekresultaat ${current + 1}/${totalCount}`, onDsoClick: (e) => this.handleNext(e.detail.originalEvent), disabled: current >= totalCount }))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "dso-mark-bar"; }
|
|
47
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const Header = ({ modalTitle, closable, ariaId, text, dsoClose }) => {
|
|
3
|
+
return modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: ariaId }, modalTitle), closable && (h("dso-icon-button", { id: "close-modal", icon: "cross", variant: "tertiary", label: text("close"), onDsoClick: (e) => dsoClose.emit({ originalEvent: e }) })))) : (h("span", { class: "sr-only", id: ariaId }, text("dialog")));
|
|
4
|
+
};
|
|
@@ -72,6 +72,7 @@ button {
|
|
|
72
72
|
font: inherit;
|
|
73
73
|
font-family: inherit;
|
|
74
74
|
font-size: inherit;
|
|
75
|
+
letter-spacing: inherit;
|
|
75
76
|
line-height: inherit;
|
|
76
77
|
margin: 0;
|
|
77
78
|
overflow: visible;
|
|
@@ -101,6 +102,14 @@ button::-moz-focus-inner {
|
|
|
101
102
|
--_dso-button-after-button-margin-block-start: 8px;
|
|
102
103
|
--_dso-button-text-align: center;
|
|
103
104
|
}
|
|
105
|
+
.dso-modal .modal-scrollable {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
min-block-size: 100%;
|
|
109
|
+
}
|
|
110
|
+
.dso-modal .dso-body {
|
|
111
|
+
flex: 1 1 auto;
|
|
112
|
+
}
|
|
104
113
|
}
|
|
105
114
|
@media screen and (max-height: 380px) {
|
|
106
115
|
.dso-modal {
|
|
@@ -196,6 +205,11 @@ button::-moz-focus-inner {
|
|
|
196
205
|
max-block-size: var(--_dso-modal-body-max-block-size, calc(70vh - 144px - 1.5em));
|
|
197
206
|
min-block-size: 6.5rem;
|
|
198
207
|
}
|
|
208
|
+
@media screen and (min-width: 480px) and (max-width: 767px) {
|
|
209
|
+
.dso-modal > .dso-dialog > dso-scrollable.narrow {
|
|
210
|
+
max-block-size: var(--_dso-modal-body-max-block-size, calc(100vh - 32px));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
199
213
|
.dso-modal > .dso-dialog > dso-scrollable .dso-body p {
|
|
200
214
|
margin-block: 0 var(--_dso-rich-content-margin-block, 16px);
|
|
201
215
|
margin-inline: 0;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { Fragment, h } from "@stencil/core";
|
|
2
2
|
import { v4 } from "uuid";
|
|
3
3
|
import { getActiveElement } from "../../utils/get-active-element";
|
|
4
4
|
import { i18n } from "../../utils/i18n";
|
|
5
|
+
import { Body } from "./functional-components/body";
|
|
6
|
+
import { Footer } from "./functional-components/footer";
|
|
7
|
+
import { Header } from "./functional-components/header";
|
|
5
8
|
import { translations } from "./modal.i18n";
|
|
6
9
|
export class Modal {
|
|
7
10
|
constructor() {
|
|
8
11
|
this.startedMouseDownOutsideDialog = false;
|
|
9
12
|
this.endedMouseUpOutsideDialog = false;
|
|
13
|
+
this.narrowViewBreakpoint = 768;
|
|
14
|
+
this.mediaCondition = `(min-width: ${this.narrowViewBreakpoint}px)`;
|
|
10
15
|
this.ariaId = v4();
|
|
16
|
+
this.narrowView = window.innerWidth < this.narrowViewBreakpoint;
|
|
11
17
|
/**
|
|
12
18
|
* the role for the modal `dialog` | `alert` | `alertdialog`.
|
|
13
19
|
*/
|
|
@@ -27,6 +33,7 @@ export class Modal {
|
|
|
27
33
|
*/
|
|
28
34
|
this.closable = false;
|
|
29
35
|
this.text = i18n(() => this.host, translations);
|
|
36
|
+
this.changeListener = (largeScreen) => (this.narrowView = !largeScreen.matches);
|
|
30
37
|
this.blockEscapeKey = (e) => {
|
|
31
38
|
if (e.key === "Escape") {
|
|
32
39
|
e.preventDefault();
|
|
@@ -48,7 +55,11 @@ export class Modal {
|
|
|
48
55
|
this.htmlDialogElement.showModal();
|
|
49
56
|
}
|
|
50
57
|
}
|
|
58
|
+
connectedCallback() {
|
|
59
|
+
window.matchMedia(this.mediaCondition).addEventListener("change", this.changeListener);
|
|
60
|
+
}
|
|
51
61
|
disconnectedCallback() {
|
|
62
|
+
window.matchMedia(this.mediaCondition).removeEventListener("change", this.changeListener);
|
|
52
63
|
this.htmlDialogElement?.close();
|
|
53
64
|
if (this.returnFocus === false) {
|
|
54
65
|
return;
|
|
@@ -70,7 +81,7 @@ export class Modal {
|
|
|
70
81
|
}
|
|
71
82
|
}
|
|
72
83
|
render() {
|
|
73
|
-
return (h("dialog", { key: '
|
|
84
|
+
return (h("dialog", { key: '5bf0dd2d3c65fbd1590b96bbe92838076246f507', class: "dso-modal", role: this.dialogRole ?? undefined, "aria-modal": "true", "aria-labelledby": this.ariaId, ref: (element) => (this.htmlDialogElement = element), onMouseDown: (e) => this.handleDialogMouseDown(e), onMouseUp: (e) => this.handleDialogMouseUp(e), onClick: (e) => this.handleDialogClick(e), onKeyDown: (e) => this.blockEscapeKey(e) }, h("div", { key: '42ca0a18d4e91eaa6e78739b20deb5bc11281599', class: "dso-dialog" }, this.narrowView ? (h("dso-scrollable", { class: "narrow" }, h("div", { class: "modal-scrollable" }, h(Header, { modalTitle: this.modalTitle, closable: this.closable, ariaId: this.ariaId, text: this.text, dsoClose: this.dsoClose }), h(Body, null), this.hasFooter && h(Footer, null)))) : (h(Fragment, null, h(Header, { modalTitle: this.modalTitle, closable: this.closable, ariaId: this.ariaId, text: this.text, dsoClose: this.dsoClose }), h("dso-scrollable", null, h(Body, null)), this.hasFooter && h(Footer, null))))));
|
|
74
85
|
}
|
|
75
86
|
static get is() { return "dso-modal"; }
|
|
76
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -193,7 +204,8 @@ export class Modal {
|
|
|
193
204
|
}
|
|
194
205
|
static get states() {
|
|
195
206
|
return {
|
|
196
|
-
"ariaId": {}
|
|
207
|
+
"ariaId": {},
|
|
208
|
+
"narrowView": {}
|
|
197
209
|
};
|
|
198
210
|
}
|
|
199
211
|
static get events() {
|
|
@@ -65,7 +65,7 @@ export class OnboardingTip {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
const ariaLabel = this.headingSlottedElement?.textContent;
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: 'efa9562670f37b9c3fcc4fdf23a0437a50adf481', popover: "manual", ready: this.ready, onAnimationend: () => (this.ready = true) }, h("div", { key: '3773eeb116a6649e3d148e3834b52b22df30ed54', role: "dialog", class: "onboarding-tip", "aria-label": ariaLabel, onKeyDown: this.blockEscapeKey, tabindex: -1 }, h("div", { key: '8fa8ac6f8dea236497cf48bc3c51a9b61de0f734', class: "onboarding-tip-inner" }, h("div", { key: '0a58c5f7a0d96730dbad3672ceef6ee5422ecb34', class: "onboarding-tip-content-wrapper" }, this.headingSlottedElement !== null && (h("div", { key: 'c29e53b3c90fab777a516997ca772751c55d12bb', class: "onboarding-tip-content-heading" }, h("dso-icon", { key: '6c8adde6c36ae5f1c9637286d59d6c0e58d4c940', icon: "light-bulb" }), h("slot", { key: 'bf42aadbcd8b94a339924a87325699f09b93c995', name: "heading" }))), h("dso-icon-button", { key: '7a2e502fa17df9ceac99610702237d37b6806408', class: "dso-close", label: "Sluiten", variant: "tertiary", icon: "cross", onDsoClick: (e) => this.dsoClose.emit({ originalEvent: e }) }), h("slot", { key: 'b584371b8e75e573b661df4b903c922d9c8f1682' }))), h("div", { key: 'c8a90fd4fcff76340bfaa7f7c89b388b7599e726', class: "onboarding-tip-arrow", ref: (ref) => (this.tipArrowRef = ref) }))));
|
|
69
69
|
}
|
|
70
70
|
get headingSlottedElement() {
|
|
71
71
|
return this.host.querySelector("[slot='heading']");
|