dso-toolkit 34.1.0 → 34.2.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/components/Componenten/anchor/anchor.njk +1 -1
- package/components/Componenten/link-list/link-list.njk +6 -0
- package/components/Voorbeelden/20-Toepassingen/30-Vergunningcheck/resultaat.njk +46 -47
- package/components/Voorbeelden/20-Toepassingen/40-Mijn-Omgevingsloket/Project overzicht.config.yml +14 -0
- package/components/Voorbeelden/20-Toepassingen/40-Mijn-Omgevingsloket/Project overzicht.njk +21 -22
- package/dist/library/@dso-toolkit/core/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-info_2.cjs.entry.js +4 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-map-base-layers.cjs.entry.js +14 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-map-overlays.cjs.entry.js +14 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-viewer-grid.cjs.entry.js +56 -19
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +2 -2
- package/dist/library/@dso-toolkit/core/collection/components/header/header.css +21 -13
- package/dist/library/@dso-toolkit/core/collection/components/info/info.css +20 -0
- package/dist/library/@dso-toolkit/core/collection/components/map-base-layers/map-base-layers.js +16 -1
- package/dist/library/@dso-toolkit/core/collection/components/map-overlays/map-overlays.js +16 -1
- package/dist/library/@dso-toolkit/core/collection/components/selectable/selectable.js +25 -1
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid-filterpanel-buttons.js +7 -0
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.css +323 -3
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.js +109 -19
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.stories.js +48 -1
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.template.js +7 -3
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +90 -24
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-3c4dbd89.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-50b63cf4.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-8b6e3abc.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-ad540748.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-de3ab027.entry.js +5 -0
- package/dist/library/@dso-toolkit/core/esm/dso-header.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-info_2.entry.js +4 -1
- package/dist/library/@dso-toolkit/core/esm/dso-map-base-layers.entry.js +14 -1
- package/dist/library/@dso-toolkit/core/esm/dso-map-overlays.entry.js +14 -1
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-viewer-grid.entry.js +57 -20
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/map-base-layers/map-base-layers.d.ts +7 -2
- package/dist/library/@dso-toolkit/core/types/components/map-overlays/map-overlays.d.ts +7 -2
- package/dist/library/@dso-toolkit/core/types/components/selectable/selectable.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/viewer-grid/viewer-grid-filterpanel-buttons.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/viewer-grid/viewer-grid.d.ts +14 -3
- package/dist/library/@dso-toolkit/core/types/components/viewer-grid/viewer-grid.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components.d.ts +6 -0
- package/dist/library/components/detail/anchor--default.html +1 -1
- package/dist/library/components/detail/anchor--download.html +1 -1
- package/dist/library/components/detail/anchor--extern.html +1 -1
- package/dist/library/components/detail/anchor--icon.html +1 -1
- package/dist/library/components/detail/anchor--iconlabel.html +1 -1
- package/dist/library/components/detail/anchor--label.html +1 -1
- package/dist/library/components/detail/anchor.html +1 -1
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +1 -1
- package/dist/library/components/detail/form--form-vertical.html +1 -1
- package/dist/library/components/detail/form--multi-page.html +1 -1
- package/dist/library/components/detail/form--sections.html +1 -1
- package/dist/library/components/detail/form--simple-form.html +1 -1
- package/dist/library/components/detail/form--single-page.html +1 -1
- package/dist/library/components/detail/form.html +1 -1
- package/dist/library/components/detail/highlight-box--link-list.html +4 -0
- package/dist/library/components/detail/highlight-box.html +4 -0
- package/dist/library/components/detail/link-list.html +8 -2
- package/dist/library/components/detail/project-overzicht.html +86 -50
- package/dist/library/components/detail/resultaat.html +92 -94
- package/dist/library/components/preview/404pagina.html +1 -1
- package/dist/library/components/preview/anchor--default.html +1 -1
- package/dist/library/components/preview/anchor--download.html +1 -1
- package/dist/library/components/preview/anchor--extern.html +1 -1
- package/dist/library/components/preview/anchor--icon.html +1 -1
- package/dist/library/components/preview/anchor--iconlabel.html +1 -1
- package/dist/library/components/preview/anchor--label.html +1 -1
- package/dist/library/components/preview/anchor.html +6 -6
- package/dist/library/components/preview/anchors.html +17 -17
- package/dist/library/components/preview/begrippen.html +8 -8
- package/dist/library/components/preview/beheer-basis.html +1 -1
- package/dist/library/components/preview/buttons.html +15 -15
- package/dist/library/components/preview/full-width.html +4 -4
- package/dist/library/components/preview/header.html +1 -1
- package/dist/library/components/preview/link-list.html +6 -4
- package/dist/library/components/preview/mijn-projecten.html +5 -5
- package/dist/library/components/preview/overzicht-samenwerkingen.html +3 -3
- package/dist/library/components/preview/project-overzicht.html +79 -64
- package/dist/library/components/preview/resultaat.html +46 -47
- package/dist/library/components/preview/subtitel--default.html +1 -1
- package/dist/library/components/preview/subtitel--subtitel-before-definition-list.html +1 -1
- package/dist/library/components/preview/subtitel--subtitel-before-text.html +1 -1
- package/dist/library/components/preview/subtitel.html +3 -3
- package/dist/library/components/preview/verzoek-detail.html +7 -7
- package/dist/library/components/preview/whitebox-regular--default.html +1 -1
- package/dist/library/components/preview/whitebox-regular--whitebox-counter.html +1 -1
- package/dist/library/components/preview/whitebox-regular--whitebox-icon.html +1 -1
- package/dist/library/components/preview/whitebox.html +15 -15
- package/dist/library/components/render/404pagina.html +1 -1
- package/dist/library/components/render/anchor--default.html +1 -1
- package/dist/library/components/render/anchor--download.html +1 -1
- package/dist/library/components/render/anchor--extern.html +1 -1
- package/dist/library/components/render/anchor--icon.html +1 -1
- package/dist/library/components/render/anchor--iconlabel.html +1 -1
- package/dist/library/components/render/anchor--label.html +1 -1
- package/dist/library/components/render/anchor.html +6 -6
- package/dist/library/components/render/anchors.html +17 -17
- package/dist/library/components/render/begrippen.html +8 -8
- package/dist/library/components/render/beheer-basis.html +1 -1
- package/dist/library/components/render/buttons.html +15 -15
- package/dist/library/components/render/full-width.html +4 -4
- package/dist/library/components/render/header.html +1 -1
- package/dist/library/components/render/homepage.html +3 -3
- package/dist/library/components/render/landingspagina.html +1 -1
- package/dist/library/components/render/link-list.html +5 -3
- package/dist/library/components/render/mijn-projecten.html +5 -5
- package/dist/library/components/render/overzicht-samenwerkingen.html +3 -3
- package/dist/library/components/render/pagina-met-banner.html +1 -1
- package/dist/library/components/render/project-overzicht.html +52 -27
- package/dist/library/components/render/resultaat.html +46 -47
- package/dist/library/components/render/rich-content.html +1 -1
- package/dist/library/components/render/row-equal-heights.html +4 -4
- package/dist/library/components/render/subtitel--default.html +1 -1
- package/dist/library/components/render/subtitel--subtitel-before-definition-list.html +1 -1
- package/dist/library/components/render/subtitel--subtitel-before-text.html +1 -1
- package/dist/library/components/render/subtitel.html +3 -3
- package/dist/library/components/render/verzoek-detail.html +7 -7
- package/dist/library/components/render/whitebox-regular--default.html +1 -1
- package/dist/library/components/render/whitebox-regular--whitebox-counter.html +1 -1
- package/dist/library/components/render/whitebox-regular--whitebox-icon.html +1 -1
- package/dist/library/components/render/whitebox.html +15 -15
- package/dist/library/components/render/zoeken-in-lijst-cards.html +1 -1
- package/dist/library/styles/dso.css +29 -5
- package/dist/toolkit/core/dso-toolkit.css +1 -1
- package/dist/toolkit/core/dso-toolkit.esm.js +1 -1
- package/dist/toolkit/core/p-3c4dbd89.entry.js +1 -0
- package/dist/toolkit/core/p-50b63cf4.entry.js +1 -0
- package/dist/toolkit/core/p-8b6e3abc.entry.js +1 -0
- package/dist/toolkit/core/p-ad540748.entry.js +1 -0
- package/dist/toolkit/core/p-de3ab027.entry.js +5 -0
- package/dist/toolkit/styles/dso.css +29 -5
- package/hydrate/index.js +94 -26
- package/libs/@dso-toolkit/css/src/components/accordion/accordion.scss +0 -5
- package/libs/@dso-toolkit/sources/src/components/anchor/anchor.args.ts +8 -1
- package/libs/@dso-toolkit/sources/src/components/anchor/anchor.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/link-list/link-list.args.ts +15 -4
- package/libs/@dso-toolkit/sources/src/components/link-list/link-list.content.ts +24 -0
- package/libs/@dso-toolkit/sources/src/components/link-list/link-list.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/link-list/link-list.scss +4 -0
- package/libs/@dso-toolkit/sources/src/components/link-list/link-list.stories.ts +16 -0
- package/libs/@dso-toolkit/sources/src/components/map-controls/map-controls.stories.ts +2 -1
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.args.ts +16 -0
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.models.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.stories.ts +2 -1
- package/libs/@dso-toolkit/sources/src/styling/global/dl.scss +27 -1
- package/libs/@dso-toolkit/sources/src/styling/global/nav.scss +6 -0
- package/libs/@dso-toolkit/sources/src/styling/mixins/rich-content.scss +1 -0
- package/package.json +2 -2
- package/reference/render/mijn-projecten.html +1 -1
- package/reference/render/project-overzicht.html +41 -26
- package/reference/render/resultaat.html +46 -46
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-06de0fa1.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-17f073d1.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-7b006b11.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-aadc4f8e.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-b69134ed.entry.js +0 -5
- package/dist/toolkit/core/p-06de0fa1.entry.js +0 -1
- package/dist/toolkit/core/p-17f073d1.entry.js +0 -1
- package/dist/toolkit/core/p-7b006b11.entry.js +0 -1
- package/dist/toolkit/core/p-aadc4f8e.entry.js +0 -1
- package/dist/toolkit/core/p-b69134ed.entry.js +0 -5
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { h, Component, Prop, State, Host, Element, Event, } from "@stencil/core";
|
|
2
|
-
import
|
|
2
|
+
import { createFocusTrap } from "focus-trap";
|
|
3
|
+
import { ViewerGridFilterpanelButtons } from './viewer-grid-filterpanel-buttons';
|
|
3
4
|
export class ViewerGrid {
|
|
4
5
|
constructor() {
|
|
6
|
+
this.filterpanelOpen = false;
|
|
5
7
|
this.overlayOpen = false;
|
|
6
8
|
this.mainSize = "large";
|
|
9
|
+
this.filterpanelSlot = null;
|
|
10
|
+
this.overlaySlot = null;
|
|
7
11
|
this.shrinkMain = () => {
|
|
8
12
|
this.mainSize = this.mainSize == "large" ? "medium" : "small";
|
|
9
13
|
};
|
|
@@ -18,40 +22,65 @@ export class ViewerGrid {
|
|
|
18
22
|
};
|
|
19
23
|
}
|
|
20
24
|
updateFocusTrap() {
|
|
21
|
-
|
|
25
|
+
var _a, _b;
|
|
26
|
+
if (this.filterpanelOpen && this.overlayOpen) {
|
|
22
27
|
return;
|
|
23
28
|
}
|
|
24
|
-
if (this.
|
|
25
|
-
this.
|
|
26
|
-
|
|
29
|
+
if (this.filterpanelFocustrap) {
|
|
30
|
+
if (this.filterpanelOpen && !((_a = this.filterpanel) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
31
|
+
this.filterpanelFocustrap.activate();
|
|
32
|
+
this.host.addEventListener("keydown", this.keyDownListener);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.filterpanelFocustrap.deactivate();
|
|
36
|
+
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
37
|
+
}
|
|
27
38
|
}
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
|
|
39
|
+
if (this.overlayFocustrap) {
|
|
40
|
+
if (this.overlayOpen && !((_b = this.overlay) === null || _b === void 0 ? void 0 : _b.hidden)) {
|
|
41
|
+
this.overlayFocustrap.activate();
|
|
42
|
+
this.host.addEventListener("keydown", this.keyDownListener);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.overlayFocustrap.deactivate();
|
|
46
|
+
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
47
|
+
}
|
|
31
48
|
}
|
|
32
49
|
}
|
|
33
50
|
connectedCallback() {
|
|
34
|
-
this.
|
|
51
|
+
this.filterpanelSlot = this.host.querySelector("div[slot='filterpanel']");
|
|
52
|
+
this.overlaySlot = this.host.querySelector("div[slot='overlay']");
|
|
35
53
|
}
|
|
36
54
|
componentDidLoad() {
|
|
37
|
-
if (
|
|
38
|
-
|
|
55
|
+
if (this.filterpanel && this.filterpanelSlot) {
|
|
56
|
+
this.filterpanelFocustrap = createFocusTrap([this.filterpanel, this.filterpanelSlot], {
|
|
57
|
+
escapeDeactivates: false,
|
|
58
|
+
allowOutsideClick: true,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (this.overlay && this.overlaySlot) {
|
|
62
|
+
this.overlayFocustrap = createFocusTrap([this.overlay, this.overlaySlot], {
|
|
63
|
+
escapeDeactivates: false,
|
|
64
|
+
allowOutsideClick: true,
|
|
65
|
+
});
|
|
39
66
|
}
|
|
40
|
-
this.trap = focusTrap.createFocusTrap([this.overlay, this.overlaySlot], {
|
|
41
|
-
escapeDeactivates: false,
|
|
42
|
-
allowOutsideClick: true,
|
|
43
|
-
});
|
|
44
67
|
this.updateFocusTrap();
|
|
45
68
|
}
|
|
46
69
|
componentDidUpdate() {
|
|
47
70
|
this.updateFocusTrap();
|
|
48
71
|
}
|
|
49
72
|
disconnectedCallback() {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
73
|
+
var _a, _b;
|
|
74
|
+
(_a = this.overlayFocustrap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
75
|
+
(_b = this.filterpanelFocustrap) === null || _b === void 0 ? void 0 : _b.deactivate();
|
|
53
76
|
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
54
77
|
}
|
|
78
|
+
handleFilterpanelApply(mouseEvent) {
|
|
79
|
+
this.filterpanelApply.emit({ originalEvent: mouseEvent });
|
|
80
|
+
}
|
|
81
|
+
handleFilterpanelCancel(mouseEvent) {
|
|
82
|
+
this.filterpanelCancel.emit({ originalEvent: mouseEvent });
|
|
83
|
+
}
|
|
55
84
|
render() {
|
|
56
85
|
return (h(Host, Object.assign({}, { [this.mainSize]: true }),
|
|
57
86
|
h("div", { class: "dso-map-panel" },
|
|
@@ -62,6 +91,11 @@ export class ViewerGrid {
|
|
|
62
91
|
h("dso-icon", { icon: "chevron-right" }))),
|
|
63
92
|
h("div", { class: "main" },
|
|
64
93
|
h("slot", { name: "main" }))),
|
|
94
|
+
h("div", { id: "filterpanel", hidden: !this.filterpanelOpen || !this.filterpanelSlot, ref: (element) => this.filterpanel = element },
|
|
95
|
+
h("h2", null, "Uw keuzes"),
|
|
96
|
+
h(ViewerGridFilterpanelButtons, { onApply: e => this.handleFilterpanelApply(e), onCancel: e => this.handleFilterpanelCancel(e) }),
|
|
97
|
+
h("slot", { name: "filterpanel" }),
|
|
98
|
+
h(ViewerGridFilterpanelButtons, { onApply: e => this.handleFilterpanelApply(e), onCancel: e => this.handleFilterpanelCancel(e) })),
|
|
65
99
|
h("div", { class: "map" },
|
|
66
100
|
h("slot", { name: "map" })),
|
|
67
101
|
h("div", { class: "overlay", hidden: !this.overlayOpen || !this.overlaySlot, ref: (element) => (this.overlay = element) },
|
|
@@ -79,6 +113,24 @@ export class ViewerGrid {
|
|
|
79
113
|
"$": ["viewer-grid.css"]
|
|
80
114
|
}; }
|
|
81
115
|
static get properties() { return {
|
|
116
|
+
"filterpanelOpen": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"mutable": false,
|
|
119
|
+
"complexType": {
|
|
120
|
+
"original": "boolean",
|
|
121
|
+
"resolved": "boolean",
|
|
122
|
+
"references": {}
|
|
123
|
+
},
|
|
124
|
+
"required": false,
|
|
125
|
+
"optional": false,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": ""
|
|
129
|
+
},
|
|
130
|
+
"attribute": "filterpanel-open",
|
|
131
|
+
"reflect": true,
|
|
132
|
+
"defaultValue": "false"
|
|
133
|
+
},
|
|
82
134
|
"overlayOpen": {
|
|
83
135
|
"type": "boolean",
|
|
84
136
|
"mutable": false,
|
|
@@ -94,7 +146,7 @@ export class ViewerGrid {
|
|
|
94
146
|
"text": ""
|
|
95
147
|
},
|
|
96
148
|
"attribute": "overlay-open",
|
|
97
|
-
"reflect":
|
|
149
|
+
"reflect": true,
|
|
98
150
|
"defaultValue": "false"
|
|
99
151
|
}
|
|
100
152
|
}; }
|
|
@@ -123,6 +175,44 @@ export class ViewerGrid {
|
|
|
123
175
|
}
|
|
124
176
|
}
|
|
125
177
|
}
|
|
178
|
+
}, {
|
|
179
|
+
"method": "filterpanelCancel",
|
|
180
|
+
"name": "filterpanelCancel",
|
|
181
|
+
"bubbles": true,
|
|
182
|
+
"cancelable": true,
|
|
183
|
+
"composed": true,
|
|
184
|
+
"docs": {
|
|
185
|
+
"tags": [],
|
|
186
|
+
"text": ""
|
|
187
|
+
},
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "FilterpanelEvent",
|
|
190
|
+
"resolved": "FilterpanelEvent",
|
|
191
|
+
"references": {
|
|
192
|
+
"FilterpanelEvent": {
|
|
193
|
+
"location": "local"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
"method": "filterpanelApply",
|
|
199
|
+
"name": "filterpanelApply",
|
|
200
|
+
"bubbles": true,
|
|
201
|
+
"cancelable": true,
|
|
202
|
+
"composed": true,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": ""
|
|
206
|
+
},
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "FilterpanelEvent",
|
|
209
|
+
"resolved": "FilterpanelEvent",
|
|
210
|
+
"references": {
|
|
211
|
+
"FilterpanelEvent": {
|
|
212
|
+
"location": "local"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
126
216
|
}]; }
|
|
127
217
|
static get elementRef() { return "host"; }
|
|
128
218
|
}
|
package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.stories.js
CHANGED
|
@@ -141,6 +141,49 @@ function viewerGridMainDemoTemplate(filterblokAllOptions, filterblokDeleteActive
|
|
|
141
141
|
</ul>
|
|
142
142
|
`;
|
|
143
143
|
}
|
|
144
|
+
const filterpanel = html `
|
|
145
|
+
<hr>
|
|
146
|
+
<dso-alert status="info">
|
|
147
|
+
Dit is het "Filterpaneel"
|
|
148
|
+
</dso-alert>
|
|
149
|
+
<dso-highlight-box yellow>
|
|
150
|
+
<div class="dso-rich-content">
|
|
151
|
+
<p>Dit is een stukje tekst om voor wat vulling te zorgen.</p>
|
|
152
|
+
</div>
|
|
153
|
+
</dso-highlight-box>
|
|
154
|
+
<div class="dso-rich-content">
|
|
155
|
+
<ol>
|
|
156
|
+
<li>Een</li>
|
|
157
|
+
<li>Twee</li>
|
|
158
|
+
<li>Drie</li>
|
|
159
|
+
</ol>
|
|
160
|
+
<p>
|
|
161
|
+
Ut elit purus, scelerisque nec tincidunt id, dictum at sapien. Nulla at
|
|
162
|
+
felis quam. Nullam commodo ex ultrices, viverra urna a, pretium arcu. Nunc
|
|
163
|
+
eget cursus lorem. Sed massa nunc, maximus sodales ultrices nec, luctus et
|
|
164
|
+
lectus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
|
|
165
|
+
Morbi ultrices tincidunt ipsum, sit amet ultricies nulla pulvinar nec.
|
|
166
|
+
Cras sed tellus in nunc viverra aliquam. Aenean sed libero nulla.
|
|
167
|
+
Curabitur placerat ullamcorper nisl, ut facilisis tortor rhoncus a. Etiam
|
|
168
|
+
vel ex nec eros porttitor aliquam. Duis blandit vel ex at venenatis.
|
|
169
|
+
Pellentesque habitant morbi tristique senectus et netus et malesuada fames
|
|
170
|
+
ac turpis egestas. Nulla sodales facilisis hendrerit.
|
|
171
|
+
</p>
|
|
172
|
+
<p>
|
|
173
|
+
Ut elit purus, scelerisque nec tincidunt id, dictum at sapien. Nulla at
|
|
174
|
+
felis quam. Nullam commodo ex ultrices, viverra urna a, pretium arcu. Nunc
|
|
175
|
+
eget cursus lorem. Sed massa nunc, maximus sodales ultrices nec, luctus et
|
|
176
|
+
lectus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
|
|
177
|
+
Morbi ultrices tincidunt ipsum, sit amet ultricies nulla pulvinar nec.
|
|
178
|
+
Cras sed tellus in nunc viverra aliquam. Aenean sed libero nulla.
|
|
179
|
+
Curabitur placerat ullamcorper nisl, ut facilisis tortor rhoncus a. Etiam
|
|
180
|
+
vel ex nec eros porttitor aliquam. Duis blandit vel ex at venenatis.
|
|
181
|
+
Pellentesque habitant morbi tristique senectus et netus et malesuada fames
|
|
182
|
+
ac turpis egestas. Nulla sodales facilisis hendrerit.
|
|
183
|
+
</p>
|
|
184
|
+
</div>
|
|
185
|
+
<hr>
|
|
186
|
+
`;
|
|
144
187
|
const map = html `
|
|
145
188
|
<div class="alert alert-success">
|
|
146
189
|
Hier komt de kaart. Dit paneel heeft maximale breedte/hoogte en
|
|
@@ -208,9 +251,13 @@ storiesOfViewerGrid({
|
|
|
208
251
|
storiesOf,
|
|
209
252
|
readme,
|
|
210
253
|
}, {
|
|
211
|
-
viewerGridDemoTemplate: ({ closeOverlay, overlayOpen, noOverlay, filterblokDeleteActiveFilter, allOptions, documentHeaderFeatureAction, documentHeaderFeaturesOpen, documentHeaderMapAction, }) => viewerGridTemplate({
|
|
254
|
+
viewerGridDemoTemplate: ({ closeOverlay, filterpanelOpen, overlayOpen, noOverlay, filterpanelApply, filterpanelCancel, filterblokDeleteActiveFilter, allOptions, documentHeaderFeatureAction, documentHeaderFeaturesOpen, documentHeaderMapAction, }) => viewerGridTemplate({
|
|
212
255
|
closeOverlay,
|
|
256
|
+
filterpanelOpen,
|
|
257
|
+
filterpanel,
|
|
213
258
|
overlayOpen,
|
|
259
|
+
filterpanelApply,
|
|
260
|
+
filterpanelCancel,
|
|
214
261
|
noOverlay,
|
|
215
262
|
main: viewerGridMainDemoTemplate(allOptions, filterblokDeleteActiveFilter, documentHeaderFeatureAction, documentHeaderMapAction, documentHeaderFeaturesOpen),
|
|
216
263
|
map,
|
package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.template.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { html } from "lit-html";
|
|
2
|
-
export function viewerGridTemplate({ main, map, overlay, noOverlay, overlayOpen, closeOverlay, }) {
|
|
2
|
+
export function viewerGridTemplate({ filterpanel, main, map, overlay, noOverlay, filterpanelOpen, overlayOpen, filterpanelApply, filterpanelCancel, closeOverlay, }) {
|
|
3
3
|
return noOverlay
|
|
4
4
|
? html `
|
|
5
5
|
<dso-viewer-grid
|
|
6
|
-
overlay-open=${overlayOpen}
|
|
6
|
+
?overlay-open=${overlayOpen}
|
|
7
7
|
@closeOverlay=${closeOverlay}
|
|
8
8
|
>
|
|
9
9
|
<div slot="main">${main}</div>
|
|
@@ -12,9 +12,13 @@ export function viewerGridTemplate({ main, map, overlay, noOverlay, overlayOpen,
|
|
|
12
12
|
`
|
|
13
13
|
: html `
|
|
14
14
|
<dso-viewer-grid
|
|
15
|
-
|
|
15
|
+
?filterpanel-open=${filterpanelOpen}
|
|
16
|
+
?overlay-open=${overlayOpen}
|
|
16
17
|
@closeOverlay=${closeOverlay}
|
|
18
|
+
@filterpanelApply=${filterpanelApply}
|
|
19
|
+
@filterpanelCancel=${filterpanelCancel}
|
|
17
20
|
>
|
|
21
|
+
<div slot="filterpanel">${filterpanel}</div>
|
|
18
22
|
<div slot="main">${main}</div>
|
|
19
23
|
<div slot="map">${map}</div>
|
|
20
24
|
<div slot="overlay">${overlay}</div>
|
|
@@ -1578,7 +1578,7 @@ let DropdownMenu = class extends HTMLElement {
|
|
|
1578
1578
|
static get style() { return dropdownMenuCss; }
|
|
1579
1579
|
};
|
|
1580
1580
|
|
|
1581
|
-
const headerCss = ":host{--di-chevron-down-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:block}.dso-header{border-bottom:1px solid #ccc;display:flex;flex-wrap:wrap}@media screen and (min-width: 768px){.dso-header{align-items:center}}@media screen and (max-width: 991px){.dso-header.use-drop-down{flex-wrap:nowrap}}.logo-container{display:flex;flex-wrap:wrap;padding-bottom:16px;padding-top:16px}@media screen and (min-width: 768px){.sub-logo{margin-left:24px}}@media screen and (max-width: 767px){.sub-logo{flex-basis:100%}}.login,.logout{margin-right:16px}.profile a,.logout a,.login a{text-decoration:none;color:#39870c;font-weight:600}.profile a:hover,.profile a:focus,.logout a:hover,.logout a:focus,.login a:hover,.login a:focus{text-decoration:none}.profile a:active,.logout a:active,.login a:active{text-decoration:underline}.dso-header-session{display:flex;margin-left:auto}.dso-header-session .profile a{margin-left:8px}.dso-header-session .profile+.logout{border-left:3px solid #ccc;margin-left:16px;padding-left:16px}.dso-navbar{flex-basis:100%}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn::after{content:\"\";display:inline-block;margin-left:8px}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.btn-primary::after{background:var(--dso-icon, var(--di-chevron-down-wit)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.btn-default::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary:hover::after,dso-dropdown-menu>.btn-default:hover::after{--dso-icon:var(--di-chevron-down-wit)}dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn-link::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;position:relative;top:-2px}dso-dropdown-menu>.dso-tertiary:hover::after,dso-dropdown-menu>.btn-link:hover::after{--dso-icon:var(--di-chevron-down-scampi)}dso-dropdown-menu .dso-group-label{color:#999;font-size:0.875em;font-weight:400;margin:0;padding:4px 20px 2px;text-transform:uppercase}dso-dropdown-menu ul{margin:0;padding:0}dso-dropdown-menu ul:not(:last-child){border-bottom:1px solid #e5e5e5;margin-bottom:11px;padding-bottom:11px}dso-dropdown-menu .dso-dropdown-options{background-clip:padding-box;background-color:#fff;border-radius:4px;border:1px solid rgba(0, 0, 0, 0.15);box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);font-size:16px;margin:2px 0 0;min-width:160px;padding:5px 0;position:absolute;text-align:left;top:100%;z-index:1000}dso-dropdown-menu .dso-dropdown-options li{list-style:none}dso-dropdown-menu .dso-dropdown-options li a:visited{color:#191919}dso-dropdown-menu .dso-dropdown-options li a,dso-dropdown-menu .dso-dropdown-options li button{text-decoration:none;clear:both;color:#191919;display:block;font-weight:400;line-height:1.5;padding:3px 20px;text-decoration:none;white-space:nowrap}dso-dropdown-menu .dso-dropdown-options li a:hover,dso-dropdown-menu .dso-dropdown-options li a:focus,dso-dropdown-menu .dso-dropdown-options li a:active,dso-dropdown-menu .dso-dropdown-options li button:hover,dso-dropdown-menu .dso-dropdown-options li button:focus,dso-dropdown-menu .dso-dropdown-options li button:active{text-decoration:underline}dso-dropdown-menu .dso-dropdown-options li a:hover,dso-dropdown-menu .dso-dropdown-options li a:focus,dso-dropdown-menu .dso-dropdown-options li button:hover,dso-dropdown-menu .dso-dropdown-options li button:focus{background-color:#39870c;border-color:#39870c;color:#fff;text-decoration:none}dso-dropdown-menu .dso-dropdown-options li button{background-color:transparent;border:0;border-radius:0;text-align:inherit;width:100%}dso-dropdown-menu[dropdown-align=right] .dso-dropdown-options{right:0}dso-dropdown-menu[open]>.dso-primary::after,dso-dropdown-menu[open]>.btn-primary::after{--dso-icon:var(--di-chevron-up-wit)}dso-dropdown-menu[open]>.dso-secondary::after,dso-dropdown-menu[open]>.btn-default::after{--dso-icon:var(--di-chevron-up)}dso-dropdown-menu[open]>.dso-secondary:hover::after,dso-dropdown-menu[open]>.btn-default:hover::after{--dso-icon:var(--di-chevron-up-wit)}dso-dropdown-menu[open]>.dso-tertiary::after,dso-dropdown-menu[open]>.btn-link::after{--dso-icon:var(--di-chevron-up)}dso-dropdown-menu[open]>.dso-tertiary:hover::after,dso-dropdown-menu[open]>.btn-link:hover::after{--dso-icon:var(--di-chevron-up-scampi)}dso-dropdown-menu[open] button::after{background:var(--dso-icon, var(--di-chevron-up-bosgroen)) no-repeat;background-position:center;background-size:cover;height:1.2em;vertical-align:top;width:1.2em}dso-dropdown-menu[checkable] .dso-group-label{padding-left:40px}dso-dropdown-menu[checkable] li a,dso-dropdown-menu[checkable] li button{padding-left:40px}dso-dropdown-menu[checkable] li.dso-checked a:not(:focus),dso-dropdown-menu[checkable] li.dso-checked button:not(:focus){background-color:#39870c;border-color:#39870c;color:#fff}dso-dropdown-menu[checkable] li.dso-checked a::before,dso-dropdown-menu[checkable] li.dso-checked button::before{background:var(--dso-icon, var(--di-check-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px;content:\"\";display:block;float:left;margin-left:-32px;margin-right:8px}dso-dropdown-menu button{align-items:flex-end;background-color:transparent;border:0;display:flex;font-family:Asap, sans-serif;padding-right:32px}dso-dropdown-menu button::after{background:var(--dso-icon, var(--di-chevron-down-bosgroen)) no-repeat;background-position:center;background-size:cover;height:1.2em;vertical-align:top;width:1.2em;content:\"\";display:inline-block;margin-left:8px;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media screen and (max-width:
|
|
1581
|
+
const headerCss = ":host{--di-chevron-down-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:block}.dso-header{border-bottom:1px solid #ccc;display:flex;flex-wrap:wrap;padding:0 16px;position:relative}@media screen and (min-width: 768px){.dso-header{align-items:center}}@media screen and (max-width: 991px){.dso-header.use-drop-down{flex-wrap:nowrap}}.logo-container{display:flex;flex-wrap:wrap;padding-bottom:16px;padding-top:16px}@media screen and (max-width: 767px){.logo-container{max-width:200px}}.logo-container+.dropdown dso-dropdown-menu{position:static}@media screen and (min-width: 768px){.sub-logo{margin-left:24px}}@media screen and (max-width: 767px){.sub-logo{flex-basis:100%}}.login,.logout{margin-right:16px}.profile a,.logout a,.login a{text-decoration:none;color:#39870c;font-weight:600}.profile a:hover,.profile a:focus,.logout a:hover,.logout a:focus,.login a:hover,.login a:focus{text-decoration:none}.profile a:active,.logout a:active,.login a:active{text-decoration:underline}.dso-header-session{display:flex;margin-left:auto}.dso-header-session .profile a{margin-left:8px}.dso-header-session .profile+.logout{border-left:3px solid #ccc;margin-left:16px;padding-left:16px}.dso-navbar{flex-basis:100%}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn::after{content:\"\";display:inline-block;margin-left:8px}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.btn-primary::after{background:var(--dso-icon, var(--di-chevron-down-wit)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.btn-default::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary:hover::after,dso-dropdown-menu>.btn-default:hover::after{--dso-icon:var(--di-chevron-down-wit)}dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn-link::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;position:relative;top:-2px}dso-dropdown-menu>.dso-tertiary:hover::after,dso-dropdown-menu>.btn-link:hover::after{--dso-icon:var(--di-chevron-down-scampi)}dso-dropdown-menu .dso-group-label{color:#999;font-size:0.875em;font-weight:400;margin:0;padding:4px 20px 2px;text-transform:uppercase}dso-dropdown-menu ul{margin:0;padding:0}dso-dropdown-menu ul:not(:last-child){border-bottom:1px solid #e5e5e5;margin-bottom:11px;padding-bottom:11px}dso-dropdown-menu .dso-dropdown-options{background-clip:padding-box;background-color:#fff;border-radius:4px;border:1px solid rgba(0, 0, 0, 0.15);box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);font-size:16px;margin:2px 0 0;min-width:160px;padding:5px 0;position:absolute;text-align:left;top:100%;z-index:1000}dso-dropdown-menu .dso-dropdown-options li{list-style:none}dso-dropdown-menu .dso-dropdown-options li a:visited{color:#191919}dso-dropdown-menu .dso-dropdown-options li a,dso-dropdown-menu .dso-dropdown-options li button{text-decoration:none;clear:both;color:#191919;display:block;font-weight:400;line-height:1.5;padding:3px 20px;text-decoration:none;white-space:nowrap}dso-dropdown-menu .dso-dropdown-options li a:hover,dso-dropdown-menu .dso-dropdown-options li a:focus,dso-dropdown-menu .dso-dropdown-options li a:active,dso-dropdown-menu .dso-dropdown-options li button:hover,dso-dropdown-menu .dso-dropdown-options li button:focus,dso-dropdown-menu .dso-dropdown-options li button:active{text-decoration:underline}dso-dropdown-menu .dso-dropdown-options li a:hover,dso-dropdown-menu .dso-dropdown-options li a:focus,dso-dropdown-menu .dso-dropdown-options li button:hover,dso-dropdown-menu .dso-dropdown-options li button:focus{background-color:#39870c;border-color:#39870c;color:#fff;text-decoration:none}dso-dropdown-menu .dso-dropdown-options li button{background-color:transparent;border:0;border-radius:0;text-align:inherit;width:100%}dso-dropdown-menu[dropdown-align=right] .dso-dropdown-options{right:0}dso-dropdown-menu[open]>.dso-primary::after,dso-dropdown-menu[open]>.btn-primary::after{--dso-icon:var(--di-chevron-up-wit)}dso-dropdown-menu[open]>.dso-secondary::after,dso-dropdown-menu[open]>.btn-default::after{--dso-icon:var(--di-chevron-up)}dso-dropdown-menu[open]>.dso-secondary:hover::after,dso-dropdown-menu[open]>.btn-default:hover::after{--dso-icon:var(--di-chevron-up-wit)}dso-dropdown-menu[open]>.dso-tertiary::after,dso-dropdown-menu[open]>.btn-link::after{--dso-icon:var(--di-chevron-up)}dso-dropdown-menu[open]>.dso-tertiary:hover::after,dso-dropdown-menu[open]>.btn-link:hover::after{--dso-icon:var(--di-chevron-up-scampi)}dso-dropdown-menu[open] button::after{background:var(--dso-icon, var(--di-chevron-up-bosgroen)) no-repeat;background-position:center;background-size:cover;height:1.2em;vertical-align:top;width:1.2em}dso-dropdown-menu[checkable] .dso-group-label{padding-left:40px}dso-dropdown-menu[checkable] li a,dso-dropdown-menu[checkable] li button{padding-left:40px}dso-dropdown-menu[checkable] li.dso-checked a:not(:focus),dso-dropdown-menu[checkable] li.dso-checked button:not(:focus){background-color:#39870c;border-color:#39870c;color:#fff}dso-dropdown-menu[checkable] li.dso-checked a::before,dso-dropdown-menu[checkable] li.dso-checked button::before{background:var(--dso-icon, var(--di-check-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px;content:\"\";display:block;float:left;margin-left:-32px;margin-right:8px}dso-dropdown-menu button{align-items:flex-end;background-color:transparent;border:0;display:flex;font-family:Asap, sans-serif;padding-right:32px}dso-dropdown-menu button::after{background:var(--dso-icon, var(--di-chevron-down-bosgroen)) no-repeat;background-position:center;background-size:cover;height:1.2em;vertical-align:top;width:1.2em;content:\"\";display:inline-block;margin-left:8px;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media screen and (max-width: 767px){dso-dropdown-menu{top:12px}}dso-dropdown-menu .dso-dropdown-options{border:0;border-radius:0}dso-dropdown-menu .dso-dropdown-options dso-dropdown-options ul{width:320px}@media screen and (max-width: 991px){dso-dropdown-menu .dso-dropdown-options dso-dropdown-options ul{width:100%}}dso-dropdown-menu .dso-dropdown-options dso-dropdown-options li a{color:#275937;font-size:1.25rem;padding:16px}dso-dropdown-menu .dso-dropdown-options dso-dropdown-options li a:hover{background-color:#fff;color:#275937;text-decoration:underline}dso-dropdown-menu .dso-dropdown-options dso-dropdown-options li.dso-active a{font-weight:600}dso-dropdown-menu .dso-dropdown-options dso-dropdown-options li+li{border-top:1px solid #ccc}.dropdown{margin-left:auto}@media screen and (max-width: 767px){.dropdown dso-dropdown-menu{margin-top:28px}}.dropdown dso-dropdown-menu .dso-dropdown-options{left:0;right:0;top:100%}.dropdown dso-dropdown-menu[open] button::after{background:var(--dso-icon, var(--di-chevron-up)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.dropdown dso-dropdown-menu button{color:#39870c;font-size:16px;font-weight:600;position:relative}.dropdown dso-dropdown-menu button:hover,.dropdown dso-dropdown-menu button:active{cursor:pointer;text-decoration:underline}.dropdown dso-dropdown-menu button::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.dso-nav{align-items:end;column-gap:32px;display:flex;list-style:none;margin-bottom:0;margin-top:0;padding-left:0}.dso-nav>li{margin-bottom:4px}.dso-nav>li>a{display:block}.dso-nav>li>a,.dso-nav>li>a:hover,.dso-nav>li>a:focus,.dso-nav>li>a:visited{color:#275937}.dso-nav>li.dso-active,.dso-nav>li.is-active{margin-bottom:0}.dso-nav>li.dso-active>a,.dso-nav>li.is-active>a{border-bottom:4px solid #8b4a6a;font-weight:bold}.dso-nav.dso-nav-main>li>a{text-decoration:none;font-size:1.25em;line-height:1;margin-top:8px;padding:16px 0;white-space:nowrap}.dso-nav.dso-nav-main>li>a:hover,.dso-nav.dso-nav-main>li>a:focus,.dso-nav.dso-nav-main>li>a:active{text-decoration:underline}.dso-nav.dso-nav-main dso-dropdown-menu .dso-dropdown-options{top:calc(100% + 3px)}.dso-nav.dso-nav-main dso-dropdown-menu button{font-size:1.25em;line-height:1;margin-top:8px;padding:16px 0;align-items:center;color:#275937;padding-right:32px}.dso-nav.dso-nav-main dso-dropdown-menu button:hover,.dso-nav.dso-nav-main dso-dropdown-menu button:active{cursor:pointer;text-decoration:underline}.dso-nav.dso-nav-main dso-dropdown-menu button::after{top:auto;transform:none}.dso-nav.dso-nav-sub>li{display:inline-block}.dso-nav.dso-nav-sub>li>a{text-decoration:none;font-size:16px;margin-top:4px;padding:4px 8px 3px}.dso-nav.dso-nav-sub>li>a:hover,.dso-nav.dso-nav-sub>li>a:focus,.dso-nav.dso-nav-sub>li>a:active{text-decoration:underline}.dso-nav .menu-user-home{margin-left:auto}.dso-nav .menu-user-home dso-icon{height:1em;margin-right:8px;position:relative;top:-2px;width:1.2em}";
|
|
1582
1582
|
|
|
1583
1583
|
const minDesktopViewportWidth = 992;
|
|
1584
1584
|
let Header = class extends HTMLElement {
|
|
@@ -2330,7 +2330,7 @@ let Icon = class extends HTMLElement {
|
|
|
2330
2330
|
static get style() { return iconCss; }
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
|
-
const infoCss = ":host{--di-times-grijs90:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\");display:block;background-color:#f2f2f2;padding:16px 32px 16px 16px;position:relative}:host>button{background-color:transparent;border-style:none;padding:0;position:absolute;right:8px;top:8px}:host>button::before{background:var(--dso-icon, var(--di-times-grijs90)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}:host(:not([active]):not([fixed])){display:none}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
2333
|
+
const infoCss = "button{-webkit-appearance:button;color:inherit;cursor:pointer;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}button[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}:host{--di-times-grijs90:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\");display:block;background-color:#f2f2f2;padding:16px 32px 16px 16px;position:relative}:host>button{background-color:transparent;border-style:none;padding:0;position:absolute;right:8px;top:8px}:host>button::before{background:var(--dso-icon, var(--di-times-grijs90)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}:host(:not([active]):not([fixed])){display:none}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
2334
2334
|
|
|
2335
2335
|
let Info = class extends HTMLElement {
|
|
2336
2336
|
constructor() {
|
|
@@ -2395,12 +2395,25 @@ let MapBaseLayers = class extends HTMLElement {
|
|
|
2395
2395
|
this.__registerHost();
|
|
2396
2396
|
attachShadow(this);
|
|
2397
2397
|
this.baseLayerChange = createEvent(this, "baseLayerChange", 7);
|
|
2398
|
+
this.selectableRefs = {};
|
|
2398
2399
|
}
|
|
2399
2400
|
baseLayerChangeHandler(baseLayer) {
|
|
2400
2401
|
this.baseLayerChange.emit({ activeBaseLayer: baseLayer });
|
|
2401
2402
|
}
|
|
2403
|
+
componentDidRender() {
|
|
2404
|
+
this.baseLayers
|
|
2405
|
+
.filter(l => { var _a, _b; return !l.disabled && ((_b = (_a = this.previousBaselayers) === null || _a === void 0 ? void 0 : _a.find(p => p.id === l.id)) === null || _b === void 0 ? void 0 : _b.disabled) === true; })
|
|
2406
|
+
.forEach(o => {
|
|
2407
|
+
var _a;
|
|
2408
|
+
(_a = this.selectableRefs[o.id]) === null || _a === void 0 ? void 0 : _a.toggleInfo(false);
|
|
2409
|
+
});
|
|
2410
|
+
this.previousBaselayers = this.baseLayers;
|
|
2411
|
+
}
|
|
2402
2412
|
render() {
|
|
2403
|
-
|
|
2413
|
+
for (const ref in this.selectableRefs) {
|
|
2414
|
+
delete this.selectableRefs[ref];
|
|
2415
|
+
}
|
|
2416
|
+
return (h("fieldset", { class: "form-group dso-radios" }, h("legend", { class: "sr-only" }, "Achtergrond"), h("div", { class: "dso-label-container" }, h("span", { class: "control-label", "aria-hidden": "true" }, "Achtergrond")), h("div", { 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, ref: ref => this.selectableRefs[baseLayer.id] = ref, onDsoChange: () => this.baseLayerChangeHandler(baseLayer) }, baseLayer.name, baseLayer.info
|
|
2404
2417
|
? h("p", { slot: "info" }, baseLayer.info)
|
|
2405
2418
|
: null))))));
|
|
2406
2419
|
}
|
|
@@ -2466,13 +2479,26 @@ let MapOverlays = class extends HTMLElement {
|
|
|
2466
2479
|
this.__registerHost();
|
|
2467
2480
|
attachShadow(this);
|
|
2468
2481
|
this.toggleOverlay = createEvent(this, "toggleOverlay", 7);
|
|
2482
|
+
this.selectableRefs = {};
|
|
2469
2483
|
}
|
|
2470
2484
|
overlayChangeHandler(overlay, e) {
|
|
2471
2485
|
const checked = e.detail.target instanceof HTMLInputElement ? !!e.detail.target.checked : false;
|
|
2472
2486
|
this.toggleOverlay.emit({ overlay, checked });
|
|
2473
2487
|
}
|
|
2488
|
+
componentDidRender() {
|
|
2489
|
+
this.overlays
|
|
2490
|
+
.filter(o => { var _a, _b; return !o.disabled && ((_b = (_a = this.previousOverlays) === null || _a === void 0 ? void 0 : _a.find(p => p.id === o.id)) === null || _b === void 0 ? void 0 : _b.disabled) === true; })
|
|
2491
|
+
.forEach(o => {
|
|
2492
|
+
var _a;
|
|
2493
|
+
(_a = this.selectableRefs[o.id]) === null || _a === void 0 ? void 0 : _a.toggleInfo(false);
|
|
2494
|
+
});
|
|
2495
|
+
this.previousOverlays = this.overlays;
|
|
2496
|
+
}
|
|
2474
2497
|
render() {
|
|
2475
|
-
|
|
2498
|
+
for (const ref in this.selectableRefs) {
|
|
2499
|
+
delete this.selectableRefs[ref];
|
|
2500
|
+
}
|
|
2501
|
+
return (h("fieldset", { class: "form-group dso-checkboxes" }, h("legend", { class: "sr-only" }, "Kaartlagen"), h("div", { class: "dso-label-container" }, h("span", { class: "control-label", "aria-hidden": "true" }, "Kaartlagen")), h("div", { 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, ref: ref => this.selectableRefs[overlay.id] = ref, onDsoChange: e => this.overlayChangeHandler(overlay, e) }, overlay.name, overlay.info
|
|
2476
2502
|
? h("p", { slot: "info" }, overlay.info)
|
|
2477
2503
|
: null))))));
|
|
2478
2504
|
}
|
|
@@ -3017,6 +3043,9 @@ let Selectable = class extends HTMLElement {
|
|
|
3017
3043
|
this.infoActive = false;
|
|
3018
3044
|
this.fallbackIdentifier = createIdentifier('DsoSelectable');
|
|
3019
3045
|
}
|
|
3046
|
+
async toggleInfo(active) {
|
|
3047
|
+
this.infoActive = active !== null && active !== void 0 ? active : !this.infoActive;
|
|
3048
|
+
}
|
|
3020
3049
|
componentDidLoad() {
|
|
3021
3050
|
var _a;
|
|
3022
3051
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
@@ -5965,7 +5994,14 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
5965
5994
|
return trap;
|
|
5966
5995
|
};
|
|
5967
5996
|
|
|
5968
|
-
const
|
|
5997
|
+
const ViewerGridFilterpanelButtons = ({ onApply, onCancel }) => (h("div", { class: "filterpanel-buttons" },
|
|
5998
|
+
h("button", { type: "button", class: "cancel-button", onClick: onCancel },
|
|
5999
|
+
h("span", null, "Annuleren")),
|
|
6000
|
+
h("button", { type: "button", class: "apply-button", onClick: onApply },
|
|
6001
|
+
h("span", null, "Toepassen"),
|
|
6002
|
+
h("dso-icon", { icon: "chevron-right" }))));
|
|
6003
|
+
|
|
6004
|
+
const viewerGridCss = "button{-webkit-appearance:button;color:inherit;cursor:pointer;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}button[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}h1,.h1,h2,.h2,h3,.h3{margin-top:24px}h1{color:#275937;font-size:2rem;font-weight:700}h2{color:#275937;font-size:1.5rem;font-weight:700}h3{color:#275937;font-size:1.25rem;font-weight:600}h4,.h4,h5,.h5,h6,.h6{margin-top:12px}h4{color:#275937;font-size:1rem;font-weight:600}h5{color:#191919;font-size:1rem;font-weight:600}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{margin-bottom:12px}*,*::after,*::before{box-sizing:border-box}:host{display:flex;height:100vh;overflow:hidden;position:relative}:host([small]) .dso-map-panel{flex-basis:375px;min-width:0;max-width:375px}@media screen and (max-width: 375px){:host([small]) .dso-map-panel{flex-basis:100vw;max-width:100vw;min-width:0;transition:none}}:host([medium]) .dso-map-panel{flex-basis:624px;min-width:375px;max-width:624px}@media screen and (max-width: 624px){:host([medium]) .dso-map-panel{flex-basis:100vw;max-width:100vw;min-width:375px;transition:none}}:host([large]) .dso-map-panel{flex-basis:60%;min-width:768px;max-width:1024px}@media screen and (max-width: 768px){:host([large]) .dso-map-panel{flex-basis:100vw;max-width:100vw;min-width:768px;transition:none}}.shrink,.expand,.overlay-close-button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;border:0;color:#39870c;line-height:1;padding:0;background-color:transparent}.shrink:focus,.shrink:focus-visible,.expand:focus,.expand:focus-visible,.overlay-close-button:focus,.overlay-close-button:focus-visible{outline-offset:2px}.shrink:active,.expand:active,.overlay-close-button:active{outline:0}.shrink.extern::after,.shrink.download::after,.expand.extern::after,.expand.download::after,.overlay-close-button.extern::after,.overlay-close-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.shrink[disabled],.expand[disabled],.overlay-close-button[disabled]{color:#afcf9d}.shrink:not([disabled]):hover,.expand:not([disabled]):hover,.overlay-close-button:not([disabled]):hover{color:#676cb0;text-decoration:underline}.shrink:not([disabled]):active,.expand:not([disabled]):active,.overlay-close-button:not([disabled]):active{color:#676cb0}.shrink.btn-align,.expand.btn-align,.overlay-close-button.btn-align{line-height:calc(1.5em - 1px);padding:11px 0;position:relative}.shrink.extern::after,.shrink.download::after,.expand.extern::after,.expand.download::after,.overlay-close-button.extern::after,.overlay-close-button.download::after{position:relative;top:-2px}.shrink.download::after,.expand.download::after,.overlay-close-button.download::after{background:var(--dso-icon, var(--di-download)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.shrink.download[disabled]::after,.expand.download[disabled]::after,.overlay-close-button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.shrink.download:not([disabled]):hover::after,.shrink.download:not([disabled]):active::after,.expand.download:not([disabled]):hover::after,.expand.download:not([disabled]):active::after,.overlay-close-button.download:not([disabled]):hover::after,.overlay-close-button.download:not([disabled]):active::after{--dso-icon:var(--di-download-scampi)}.shrink.extern::after,.expand.extern::after,.overlay-close-button.extern::after{background:var(--dso-icon, var(--di-external-link)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.shrink.extern[disabled]::after,.expand.extern[disabled]::after,.overlay-close-button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.shrink.extern:not([disabled]):hover::after,.shrink.extern:not([disabled]):active::after,.expand.extern:not([disabled]):hover::after,.expand.extern:not([disabled]):active::after,.overlay-close-button.extern:not([disabled]):hover::after,.overlay-close-button.extern:not([disabled]):active::after{--dso-icon:var(--di-external-link-scampi)}.shrink dso-icon+span:not(.sr-only),.shrink svg.di+span:not(.sr-only),.shrink span:not(.sr-only)+dso-icon,.shrink span:not(.sr-only)+svg.di,.expand dso-icon+span:not(.sr-only),.expand svg.di+span:not(.sr-only),.expand span:not(.sr-only)+dso-icon,.expand span:not(.sr-only)+svg.di,.overlay-close-button dso-icon+span:not(.sr-only),.overlay-close-button svg.di+span:not(.sr-only),.overlay-close-button span:not(.sr-only)+dso-icon,.overlay-close-button span:not(.sr-only)+svg.di{margin-left:8px}.shrink dso-icon,.shrink svg.di,.shrink span,.expand dso-icon,.expand svg.di,.expand span,.overlay-close-button dso-icon,.overlay-close-button svg.di,.overlay-close-button span{vertical-align:middle}.shrink:hover,.expand:hover,.overlay-close-button:hover{cursor:pointer}.shrink[disabled],.expand[disabled],.overlay-close-button[disabled]{display:none}.overlay-close-button{position:absolute;top:8px;right:16px}.overlay-close-button .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-map-panel{background-color:#fff;box-shadow:2px 0 8px 0 rgba(0, 0, 0, 0.4);flex-shrink:0;flex-grow:0;padding-right:8px;position:relative;transition:flex-basis 0.2s ease-in, max-width 0.2s ease-in, min-width 0.2s ease-in;z-index:1}.dso-map-panel .dso-filterblok-address{font-weight:bold;margin:8px 0}.dso-map-panel .main{height:100%;overflow-y:scroll;padding:8px 16px}.sizing-buttons{left:calc(100% + 1px);overflow-x:hidden;padding:0 4px 4px 0;position:absolute;top:16px;transition:left 0.2s ease-in;width:44px;z-index:-1}.sizing-buttons button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;background-color:#fff;border-color:#39870c;color:#39870c;border-width:1px;border-style:solid;border-radius:4px;line-height:1.5;min-width:56px;padding:11px 15px;border:0;padding:8px;border-radius:0;border-bottom-right-radius:4px;border-top-right-radius:4px;box-shadow:0 1px 4px 0 rgba(0, 0, 0, 0.4);flex:0 0 100%;height:40px;min-width:auto;width:40px}.sizing-buttons button:focus,.sizing-buttons button:focus-visible{outline-offset:2px}.sizing-buttons button:active{outline:0}.sizing-buttons button.extern::after,.sizing-buttons button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.sizing-buttons button:hover{background-color:#39870c;border-color:#39870c;color:#fff}.sizing-buttons button:active{background-color:#275937;border-color:#275937;color:#fff}.sizing-buttons button[disabled],.sizing-buttons button[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}.sizing-buttons button.btn-sm{line-height:16px}.sizing-buttons button.btn-sm dso-icon,.sizing-buttons button.btn-sm svg.di,.sizing-buttons button.btn-sm.extern::after,.sizing-buttons button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.sizing-buttons button.download::after{background:var(--dso-icon, var(--di-download)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.sizing-buttons button.download:hover::after{--dso-icon:var(--di-download-wit)}.sizing-buttons button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.sizing-buttons button.extern::after{background:var(--dso-icon, var(--di-external-link)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.sizing-buttons button.extern:hover::after{--dso-icon:var(--di-external-link-wit)}.sizing-buttons button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.sizing-buttons button>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sizing-buttons button:focus-visible{background-color:#39870c;border-color:#39870c;color:#fff;outline:none}.sizing-buttons button:hover dso-icon{color:#fff}.map{height:100%;width:100%;overflow:hidden}#filterpanel,.overlay{background-color:#fff;height:100%;overflow-y:auto;position:absolute;z-index:2}#filterpanel{box-shadow:2px 0 5px #666;padding:40px 16px 8px;left:0;max-width:896px;width:calc(100vw - 40px)}@media screen and (max-width: 768px){#filterpanel{width:100vw}#filterpanel::before{display:none !important}}#filterpanel::before{content:\"\";display:block;position:fixed;top:0;bottom:0;right:0;left:896px;background-color:rgba(0, 0, 0, 0.5)}@media screen and (max-width: 936px){#filterpanel::before{left:auto;width:40px}}.overlay{box-shadow:-2px 0 5px #666;padding:40px 16px 8px;right:0;width:624px}@media screen and (max-width: 624px){.overlay{width:100vw}}.overlay::before{content:\"\";display:block;position:fixed;top:0;bottom:0;left:0;right:624px;background-color:rgba(0, 0, 0, 0.5)}.filterpanel-buttons{text-align:right}.filterpanel-buttons .cancel-button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;background-color:#fff;border-color:#39870c;color:#39870c;border-width:1px;border-style:solid;border-radius:4px;line-height:1.5;min-width:56px;padding:11px 15px;line-height:16px}.filterpanel-buttons .cancel-button:focus,.filterpanel-buttons .cancel-button:focus-visible{outline-offset:2px}.filterpanel-buttons .cancel-button:active{outline:0}.filterpanel-buttons .cancel-button.extern::after,.filterpanel-buttons .cancel-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.filterpanel-buttons .cancel-button:hover{background-color:#39870c;border-color:#39870c;color:#fff}.filterpanel-buttons .cancel-button:active{background-color:#275937;border-color:#275937;color:#fff}.filterpanel-buttons .cancel-button[disabled],.filterpanel-buttons .cancel-button[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}.filterpanel-buttons .cancel-button.btn-sm{line-height:16px}.filterpanel-buttons .cancel-button.btn-sm dso-icon,.filterpanel-buttons .cancel-button.btn-sm svg.di,.filterpanel-buttons .cancel-button.btn-sm.extern::after,.filterpanel-buttons .cancel-button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.filterpanel-buttons .cancel-button.download::after{background:var(--dso-icon, var(--di-download)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.filterpanel-buttons .cancel-button.download:hover::after{--dso-icon:var(--di-download-wit)}.filterpanel-buttons .cancel-button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.filterpanel-buttons .cancel-button.extern::after{background:var(--dso-icon, var(--di-external-link)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.filterpanel-buttons .cancel-button.extern:hover::after{--dso-icon:var(--di-external-link-wit)}.filterpanel-buttons .cancel-button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.filterpanel-buttons .cancel-button dso-icon,.filterpanel-buttons .cancel-button svg.di{margin-left:-8px;margin-right:8px}.filterpanel-buttons .cancel-button span+dso-icon,.filterpanel-buttons .cancel-button span+svg.di{margin-left:8px;margin-right:-8px}.filterpanel-buttons .cancel-button dso-icon,.filterpanel-buttons .cancel-button svg.di,.filterpanel-buttons .cancel-button.extern::after,.filterpanel-buttons .cancel-button.download::after{margin-bottom:-4px;margin-top:-4px}.filterpanel-buttons .apply-button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;background-color:#39870c;border-color:#39870c;color:#fff;border-width:1px;border-style:solid;border-radius:4px;line-height:1.5;min-width:56px;padding:11px 15px;line-height:16px}.filterpanel-buttons .apply-button:focus,.filterpanel-buttons .apply-button:focus-visible{outline-offset:2px}.filterpanel-buttons .apply-button:active{outline:0}.filterpanel-buttons .apply-button.extern::after,.filterpanel-buttons .apply-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.filterpanel-buttons .apply-button:hover{background-color:#275937;border-color:#275937;color:#fff}.filterpanel-buttons .apply-button:active{background-color:#15301e;border-color:#15301e;color:#fff}.filterpanel-buttons .apply-button[disabled],.filterpanel-buttons .apply-button[disabled]:hover{background-color:#afcf9d;border-color:#afcf9d;color:#fff}.filterpanel-buttons .apply-button.btn-sm{line-height:16px}.filterpanel-buttons .apply-button.btn-sm dso-icon,.filterpanel-buttons .apply-button.btn-sm svg.di,.filterpanel-buttons .apply-button.btn-sm.extern::after,.filterpanel-buttons .apply-button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.filterpanel-buttons .apply-button.download::after{background:var(--dso-icon, var(--di-download-wit)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.filterpanel-buttons .apply-button.extern::after{background:var(--dso-icon, var(--di-external-link-wit)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}.filterpanel-buttons .apply-button dso-icon,.filterpanel-buttons .apply-button svg.di{margin-left:-8px;margin-right:8px}.filterpanel-buttons .apply-button span+dso-icon,.filterpanel-buttons .apply-button span+svg.di{margin-left:8px;margin-right:-8px}.filterpanel-buttons .apply-button dso-icon,.filterpanel-buttons .apply-button svg.di,.filterpanel-buttons .apply-button.extern::after,.filterpanel-buttons .apply-button.download::after{margin-bottom:-4px;margin-top:-4px}.filterpanel-buttons .cancel-button+.apply-button{margin-left:16px}";
|
|
5969
6005
|
|
|
5970
6006
|
let ViewerGrid = class extends HTMLElement {
|
|
5971
6007
|
constructor() {
|
|
@@ -5973,8 +6009,13 @@ let ViewerGrid = class extends HTMLElement {
|
|
|
5973
6009
|
this.__registerHost();
|
|
5974
6010
|
attachShadow(this);
|
|
5975
6011
|
this.closeOverlay = createEvent(this, "closeOverlay", 7);
|
|
6012
|
+
this.filterpanelCancel = createEvent(this, "filterpanelCancel", 7);
|
|
6013
|
+
this.filterpanelApply = createEvent(this, "filterpanelApply", 7);
|
|
6014
|
+
this.filterpanelOpen = false;
|
|
5976
6015
|
this.overlayOpen = false;
|
|
5977
6016
|
this.mainSize = "large";
|
|
6017
|
+
this.filterpanelSlot = null;
|
|
6018
|
+
this.overlaySlot = null;
|
|
5978
6019
|
this.shrinkMain = () => {
|
|
5979
6020
|
this.mainSize = this.mainSize == "large" ? "medium" : "small";
|
|
5980
6021
|
};
|
|
@@ -5989,42 +6030,67 @@ let ViewerGrid = class extends HTMLElement {
|
|
|
5989
6030
|
};
|
|
5990
6031
|
}
|
|
5991
6032
|
updateFocusTrap() {
|
|
5992
|
-
|
|
6033
|
+
var _a, _b;
|
|
6034
|
+
if (this.filterpanelOpen && this.overlayOpen) {
|
|
5993
6035
|
return;
|
|
5994
6036
|
}
|
|
5995
|
-
if (this.
|
|
5996
|
-
this.
|
|
5997
|
-
|
|
6037
|
+
if (this.filterpanelFocustrap) {
|
|
6038
|
+
if (this.filterpanelOpen && !((_a = this.filterpanel) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
6039
|
+
this.filterpanelFocustrap.activate();
|
|
6040
|
+
this.host.addEventListener("keydown", this.keyDownListener);
|
|
6041
|
+
}
|
|
6042
|
+
else {
|
|
6043
|
+
this.filterpanelFocustrap.deactivate();
|
|
6044
|
+
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
6045
|
+
}
|
|
5998
6046
|
}
|
|
5999
|
-
|
|
6000
|
-
this.
|
|
6001
|
-
|
|
6047
|
+
if (this.overlayFocustrap) {
|
|
6048
|
+
if (this.overlayOpen && !((_b = this.overlay) === null || _b === void 0 ? void 0 : _b.hidden)) {
|
|
6049
|
+
this.overlayFocustrap.activate();
|
|
6050
|
+
this.host.addEventListener("keydown", this.keyDownListener);
|
|
6051
|
+
}
|
|
6052
|
+
else {
|
|
6053
|
+
this.overlayFocustrap.deactivate();
|
|
6054
|
+
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
6055
|
+
}
|
|
6002
6056
|
}
|
|
6003
6057
|
}
|
|
6004
6058
|
connectedCallback() {
|
|
6005
|
-
this.
|
|
6059
|
+
this.filterpanelSlot = this.host.querySelector("div[slot='filterpanel']");
|
|
6060
|
+
this.overlaySlot = this.host.querySelector("div[slot='overlay']");
|
|
6006
6061
|
}
|
|
6007
6062
|
componentDidLoad() {
|
|
6008
|
-
if (
|
|
6009
|
-
|
|
6063
|
+
if (this.filterpanel && this.filterpanelSlot) {
|
|
6064
|
+
this.filterpanelFocustrap = createFocusTrap([this.filterpanel, this.filterpanelSlot], {
|
|
6065
|
+
escapeDeactivates: false,
|
|
6066
|
+
allowOutsideClick: true,
|
|
6067
|
+
});
|
|
6068
|
+
}
|
|
6069
|
+
if (this.overlay && this.overlaySlot) {
|
|
6070
|
+
this.overlayFocustrap = createFocusTrap([this.overlay, this.overlaySlot], {
|
|
6071
|
+
escapeDeactivates: false,
|
|
6072
|
+
allowOutsideClick: true,
|
|
6073
|
+
});
|
|
6010
6074
|
}
|
|
6011
|
-
this.trap = createFocusTrap([this.overlay, this.overlaySlot], {
|
|
6012
|
-
escapeDeactivates: false,
|
|
6013
|
-
allowOutsideClick: true,
|
|
6014
|
-
});
|
|
6015
6075
|
this.updateFocusTrap();
|
|
6016
6076
|
}
|
|
6017
6077
|
componentDidUpdate() {
|
|
6018
6078
|
this.updateFocusTrap();
|
|
6019
6079
|
}
|
|
6020
6080
|
disconnectedCallback() {
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6081
|
+
var _a, _b;
|
|
6082
|
+
(_a = this.overlayFocustrap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
6083
|
+
(_b = this.filterpanelFocustrap) === null || _b === void 0 ? void 0 : _b.deactivate();
|
|
6024
6084
|
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
6025
6085
|
}
|
|
6086
|
+
handleFilterpanelApply(mouseEvent) {
|
|
6087
|
+
this.filterpanelApply.emit({ originalEvent: mouseEvent });
|
|
6088
|
+
}
|
|
6089
|
+
handleFilterpanelCancel(mouseEvent) {
|
|
6090
|
+
this.filterpanelCancel.emit({ originalEvent: mouseEvent });
|
|
6091
|
+
}
|
|
6026
6092
|
render() {
|
|
6027
|
-
return (h(Host, Object.assign({}, { [this.mainSize]: true }), h("div", { class: "dso-map-panel" }, h("div", { class: "sizing-buttons" }, h("button", { type: "button", class: "shrink", disabled: this.mainSize == "small", onClick: this.shrinkMain }, h("dso-icon", { icon: "chevron-left" })), h("button", { type: "button", class: "expand", disabled: this.mainSize == "large", onClick: this.expandMain }, h("dso-icon", { icon: "chevron-right" }))), h("div", { class: "main" }, h("slot", { name: "main" }))), h("div", { class: "map" }, h("slot", { name: "map" })), h("div", { class: "overlay", hidden: !this.overlayOpen || !this.overlaySlot, ref: (element) => (this.overlay = element) }, h("button", { type: "button", class: "overlay-close-button", onClick: (e) => this.closeOverlay.emit(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "sluiten")), h("slot", { name: "overlay" }))));
|
|
6093
|
+
return (h(Host, Object.assign({}, { [this.mainSize]: true }), h("div", { class: "dso-map-panel" }, h("div", { class: "sizing-buttons" }, h("button", { type: "button", class: "shrink", disabled: this.mainSize == "small", onClick: this.shrinkMain }, h("dso-icon", { icon: "chevron-left" })), h("button", { type: "button", class: "expand", disabled: this.mainSize == "large", onClick: this.expandMain }, h("dso-icon", { icon: "chevron-right" }))), h("div", { class: "main" }, h("slot", { name: "main" }))), h("div", { id: "filterpanel", hidden: !this.filterpanelOpen || !this.filterpanelSlot, ref: (element) => this.filterpanel = element }, h("h2", null, "Uw keuzes"), h(ViewerGridFilterpanelButtons, { onApply: e => this.handleFilterpanelApply(e), onCancel: e => this.handleFilterpanelCancel(e) }), h("slot", { name: "filterpanel" }), h(ViewerGridFilterpanelButtons, { onApply: e => this.handleFilterpanelApply(e), onCancel: e => this.handleFilterpanelCancel(e) })), h("div", { class: "map" }, h("slot", { name: "map" })), h("div", { class: "overlay", hidden: !this.overlayOpen || !this.overlaySlot, ref: (element) => (this.overlay = element) }, h("button", { type: "button", class: "overlay-close-button", onClick: (e) => this.closeOverlay.emit(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "sluiten")), h("slot", { name: "overlay" }))));
|
|
6028
6094
|
}
|
|
6029
6095
|
get host() { return this; }
|
|
6030
6096
|
static get style() { return viewerGridCss; }
|
|
@@ -6054,7 +6120,7 @@ const DsoSelectable = /*@__PURE__*/proxyCustomElement(Selectable, [1,"dso-select
|
|
|
6054
6120
|
const DsoToggletip = /*@__PURE__*/proxyCustomElement(Toggletip, [1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]);
|
|
6055
6121
|
const DsoTooltip = /*@__PURE__*/proxyCustomElement(Tooltip, [1,"dso-tooltip",{"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"stateless":[4],"small":[4],"active":[1540],"hidden":[32]},[[0,"click","listenClick"]]]);
|
|
6056
6122
|
const DsoTreeView = /*@__PURE__*/proxyCustomElement(TreeView, [1,"dso-tree-view",{"collection":[16]}]);
|
|
6057
|
-
const DsoViewerGrid = /*@__PURE__*/proxyCustomElement(ViewerGrid, [1,"dso-viewer-grid",{"overlayOpen":[
|
|
6123
|
+
const DsoViewerGrid = /*@__PURE__*/proxyCustomElement(ViewerGrid, [1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]);
|
|
6058
6124
|
const defineCustomElements = (opts) => {
|
|
6059
6125
|
if (typeof customElements !== 'undefined') {
|
|
6060
6126
|
[
|