@dso-toolkit/core 35.0.0 → 36.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dso-alert.cjs.entry.js +1 -1
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +2 -2
- package/dist/cjs/dso-badge.cjs.entry.js +1 -1
- package/dist/cjs/dso-banner.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/dso-header.cjs.entry.js +16 -7
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +4 -4
- package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
- package/dist/cjs/dso-label.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 +22 -19
- package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
- package/dist/cjs/dso-ozon-content.cjs.entry.js +36 -24
- package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +2 -2
- package/dist/cjs/dso-tooltip.cjs.entry.js +8 -4
- package/dist/cjs/dso-tree-view.cjs.entry.js +9 -9
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +4 -4
- package/dist/cjs/{focus-trap.esm-8d3e3fb6.js → focus-trap.esm-a85643b0.js} +102 -68
- package/dist/cjs/{index-5ea63531.js → index-dfb4ea62.js} +73 -64
- package/dist/cjs/index.esm-3520a2a6.js +427 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/alert/alert.template.js +1 -1
- package/dist/collection/components/anchor/anchor.template.js +1 -1
- package/dist/collection/components/autosuggest/autosuggest.css +1 -1
- package/dist/collection/components/badge/badge.template.js +1 -1
- package/dist/collection/components/button/button.template.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +6 -6
- package/dist/collection/components/date-picker/date-picker.template.js +1 -1
- package/dist/collection/components/definition-list/definition-list.template.js +2 -2
- package/dist/collection/components/dropdown-menu/dropdown-menu.template.js +1 -1
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +38 -9
- package/dist/collection/components/header/header.template.js +4 -2
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.template.js +2 -2
- package/dist/collection/components/highlight-box/highlight-box.template.js +2 -2
- package/dist/collection/components/icon/icon.template.js +1 -1
- package/dist/collection/components/image-overlay/image-overlay.css +1 -1
- package/dist/collection/components/label/label.template.js +2 -2
- package/dist/collection/components/list/list.template.js +1 -1
- package/dist/collection/components/map-controls/map-controls.js +17 -19
- package/dist/collection/components/ozon-content/get-node-name.function.js +9 -0
- package/dist/collection/components/ozon-content/nodes/al.node.js +2 -1
- package/dist/collection/components/ozon-content/nodes/fallback.node.js +2 -1
- package/dist/collection/components/ozon-content/nodes/noot.node.js +15 -15
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +9 -5
- package/dist/collection/components/ozon-content/ozon-content.css +76 -23
- package/dist/collection/components/progress-bar/progress-bar.template.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.template.js +1 -1
- package/dist/collection/components/selectable/selectable.css +7 -1
- package/dist/collection/components/selectable/selectable.template.js +1 -1
- package/dist/collection/components/toggletip/toggletip.template.js +2 -2
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.template.js +1 -1
- package/dist/collection/components/tree-view/tree-item.js +7 -7
- package/dist/collection/components/tree-view/tree-view.css +86 -15
- package/dist/collection/components/viewer-grid/viewer-grid.css +2 -2
- package/dist/custom-elements/index.js +438 -216
- package/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-016ed5a8.entry.js +1 -0
- package/dist/dso-toolkit/{p-c6f467b3.entry.js → p-0216f283.entry.js} +1 -1
- package/dist/dso-toolkit/{p-348414bf.entry.js → p-09bcacd0.entry.js} +1 -1
- package/dist/dso-toolkit/{p-2b6a3dfa.entry.js → p-117a31fe.entry.js} +1 -1
- package/dist/dso-toolkit/p-131d54e3.js +5 -0
- package/dist/dso-toolkit/{p-50b63cf4.entry.js → p-1eeadd3e.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ad540748.entry.js → p-2279329b.entry.js} +1 -1
- package/dist/dso-toolkit/p-258e8371.entry.js +1 -0
- package/dist/dso-toolkit/{p-bc14cafd.entry.js → p-3ced438e.entry.js} +1 -1
- package/dist/dso-toolkit/{p-c54ecae1.entry.js → p-406b179d.entry.js} +1 -1
- package/dist/dso-toolkit/{p-225bbb28.entry.js → p-4b5f6b4c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-3b493a2c.entry.js → p-527a85b6.entry.js} +1 -1
- package/dist/dso-toolkit/{p-94dffa65.entry.js → p-52f159e7.entry.js} +1 -1
- package/dist/dso-toolkit/{p-dc86d830.entry.js → p-58f5e092.entry.js} +1 -1
- package/dist/dso-toolkit/p-5e5fbd41.js +5 -0
- package/dist/dso-toolkit/{p-f0b67246.entry.js → p-639228f6.entry.js} +1 -1
- package/dist/dso-toolkit/{p-951f5872.entry.js → p-6a8452bd.entry.js} +1 -1
- package/dist/dso-toolkit/{p-4e573fc5.entry.js → p-98ef5f8c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-94b79e43.entry.js → p-a1c9bb35.entry.js} +1 -1
- package/dist/dso-toolkit/{p-3c4dbd89.entry.js → p-a5008a4e.entry.js} +1 -1
- package/dist/dso-toolkit/{p-c95108fe.entry.js → p-a59dcbb0.entry.js} +1 -1
- package/dist/dso-toolkit/p-b06c275a.entry.js +1 -0
- package/dist/dso-toolkit/p-b4222d6e.entry.js +1 -0
- package/dist/dso-toolkit/{p-dad72605.js → p-b9eb3491.js} +1 -1
- package/dist/dso-toolkit/p-bec38cf5.entry.js +1 -0
- package/dist/dso-toolkit/{p-ad2210ad.entry.js → p-d0d3ca99.entry.js} +1 -1
- package/dist/dso-toolkit/{p-5037944e.entry.js → p-d72edd80.entry.js} +1 -1
- package/dist/dso-toolkit/{p-1fefbf8c.entry.js → p-e1934ab6.entry.js} +1 -1
- package/dist/esm/dso-alert.entry.js +1 -1
- package/dist/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +2 -2
- package/dist/esm/dso-badge.entry.js +1 -1
- package/dist/esm/dso-banner.entry.js +1 -1
- package/dist/esm/dso-date-picker.entry.js +2 -2
- package/dist/esm/dso-dropdown-menu.entry.js +2 -2
- package/dist/esm/dso-header.entry.js +16 -7
- package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js +4 -4
- package/dist/esm/dso-info-button.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +2 -2
- package/dist/esm/dso-label.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +22 -19
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-ozon-content.entry.js +36 -24
- package/dist/esm/dso-progress-bar.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +2 -2
- package/dist/esm/dso-tooltip.entry.js +8 -4
- package/dist/esm/dso-tree-view.entry.js +9 -9
- package/dist/esm/dso-viewer-grid.entry.js +4 -4
- package/dist/esm/{focus-trap.esm-299989f2.js → focus-trap.esm-a01ad6c9.js} +102 -68
- package/dist/esm/{index-d54cae76.js → index-9ec8c07f.js} +73 -64
- package/dist/esm/index.esm-45465af7.js +422 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/header/header.d.ts +7 -1
- package/dist/types/components/header/header.template.d.ts +1 -1
- package/dist/types/components/ozon-content/get-node-name.function.d.ts +1 -0
- package/dist/types/components/ozon-content/nodes/noot.node.d.ts +2 -2
- package/dist/types/components/ozon-content/ozon-content-mapper.d.ts +0 -1
- package/dist/types/components/ozon-content/ozon-content-node-context.interface.d.ts +0 -1
- package/dist/types/components/ozon-content/ozon-content-node.interface.d.ts +0 -1
- package/dist/types/components/ozon-content/ozon-content.d.ts +0 -1
- package/dist/types/components.d.ts +3 -2
- package/dist/types/icon/dso-icon-sass-function.d.ts +1 -1
- package/package.json +28 -26
- package/dist/cjs/index.esm-2ac7081c.js +0 -267
- package/dist/dso-toolkit/p-44905fb1.js +0 -5
- package/dist/dso-toolkit/p-88bc5873.entry.js +0 -1
- package/dist/dso-toolkit/p-8b6e3abc.entry.js +0 -1
- package/dist/dso-toolkit/p-8bf3a60e.js +0 -5
- package/dist/dso-toolkit/p-a7306b7b.entry.js +0 -1
- package/dist/dso-toolkit/p-daa1e29d.entry.js +0 -1
- package/dist/dso-toolkit/p-f193c258.entry.js +0 -1
- package/dist/esm/index.esm-a1362957.js +0 -262
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h, createEvent, Fragment, Host, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
3
|
|
|
4
4
|
function toVal(mix) {
|
|
@@ -48,7 +48,7 @@ let Alert = class extends HTMLElement {
|
|
|
48
48
|
constructor() {
|
|
49
49
|
super();
|
|
50
50
|
this.__registerHost();
|
|
51
|
-
|
|
51
|
+
this.__attachShadow();
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
const status = Alert.statusMap.get(this.status);
|
|
@@ -72,7 +72,7 @@ let AttachmentsCounter = class extends HTMLElement {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super();
|
|
74
74
|
this.__registerHost();
|
|
75
|
-
|
|
75
|
+
this.__attachShadow();
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
return (h("span", { class: "dso-attachments" }, this.count, " ", h("span", { class: "sr-only" }, "bijlage", this.count !== 1 ? 'n' : '')));
|
|
@@ -235,7 +235,7 @@ function escapeStringRegexp(string) {
|
|
|
235
235
|
.replace(/-/g, '\\x2d');
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
const autosuggestCss = ".sc-dso-autosuggest-h{display:block;position:relative}ul.sc-dso-autosuggest{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.15);border-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);list-style-type:none;margin-top:2px;padding:4px 0;position:absolute;left:0;right:0;top:100%;z-index:
|
|
238
|
+
const autosuggestCss = ".sc-dso-autosuggest-h{display:block;position:relative}ul.sc-dso-autosuggest{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.15);border-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);list-style-type:none;margin-top:2px;padding:4px 0;position:absolute;left:0;right:0;top:100%;z-index:200}ul.sc-dso-autosuggest li.sc-dso-autosuggest{display:flex;justify-content:space-between;padding:4px 18px}li[aria-selected=true].sc-dso-autosuggest{cursor:pointer;background-color:#39870c}li[aria-selected=true].sc-dso-autosuggest,li[aria-selected=true].sc-dso-autosuggest .type.sc-dso-autosuggest{color:#fff}mark.sc-dso-autosuggest{font-weight:700;background-color:inherit;color:inherit;padding:0}.type.sc-dso-autosuggest{color:#666}";
|
|
239
239
|
|
|
240
240
|
let Autosuggest = class extends HTMLElement {
|
|
241
241
|
constructor() {
|
|
@@ -466,7 +466,7 @@ let Badge = class extends HTMLElement {
|
|
|
466
466
|
constructor() {
|
|
467
467
|
super();
|
|
468
468
|
this.__registerHost();
|
|
469
|
-
|
|
469
|
+
this.__attachShadow();
|
|
470
470
|
}
|
|
471
471
|
render() {
|
|
472
472
|
return (h("span", { class: clsx('dso-badge', { [`badge-${this.status}`]: this.status }) }, h("span", { class: "sr-only" }, this.status ? Badge.statusMap.get(this.status) : 'Badge', ": "), h("slot", null)));
|
|
@@ -486,7 +486,7 @@ let Banner = class extends HTMLElement {
|
|
|
486
486
|
constructor() {
|
|
487
487
|
super();
|
|
488
488
|
this.__registerHost();
|
|
489
|
-
|
|
489
|
+
this.__attachShadow();
|
|
490
490
|
}
|
|
491
491
|
render() {
|
|
492
492
|
return (h("section", { class: clsx('dso-banner', `alert-${this.status}`), role: "alert" }, h("slot", null)));
|
|
@@ -749,7 +749,7 @@ const localization = {
|
|
|
749
749
|
]
|
|
750
750
|
};
|
|
751
751
|
|
|
752
|
-
const datePickerCss = ".sc-dso-date-picker-h{display:block}.dso-date.sc-dso-date-picker *.sc-dso-date-picker,.dso-date.sc-dso-date-picker *.sc-dso-date-picker::before,.dso-date.sc-dso-date-picker *.sc-dso-date-picker::after{box-sizing:border-box}.dso-date.sc-dso-date-picker{box-sizing:border-box;color:#191919;display:block;font-family:\"Asap\", sans-serif;margin:0;position:relative;text-align:left;width:100%}.dso-date__input.sc-dso-date-picker{display:block;width:100%;height:40px;padding:6px 14px;font-size:16px;line-height:1.5;color:#191919;background-color:#fff;background-image:none;border:1px solid #275937;border-radius:4px;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s}.dso-date__input.sc-dso-date-picker::-moz-placeholder{color:#666;opacity:1}.dso-date__input.sc-dso-date-picker:-ms-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker::-webkit-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker::-ms-expand{background-color:transparent;border:0}.dso-date__input.sc-dso-date-picker:focus{border-color:#275937;outline:0;box-shadow:inset 0 0 0 1px #275937}.dso-date__input[disabled].sc-dso-date-picker,.dso-date__input[readonly].sc-dso-date-picker,fieldset[disabled].sc-dso-date-picker .dso-date__input.sc-dso-date-picker{background-color:#fff;opacity:1}.dso-date__input[disabled].sc-dso-date-picker,fieldset[disabled].sc-dso-date-picker .dso-date__input.sc-dso-date-picker{cursor:default}.dso-date__input[disabled].sc-dso-date-picker{border-color:#e5e5e5;color:#999}.dso-date__input[readonly].sc-dso-date-picker{border-width:1px}.dso-date__input[type=text].sc-dso-date-picker{line-height:40px}.dso-date__input[size].sc-dso-date-picker{width:auto}.dso-date__toggle.sc-dso-date-picker{-moz-appearance:none;-webkit-appearance:none;-webkit-user-select:none;align-items:center;appearance:none;background:transparent;border:0;border-radius:0;border-bottom-right-radius:4px;border-top-right-radius:4px;color:#39870c;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;position:absolute;right:0;transform:translateY(-50%);top:50%;user-select:none;width:38px;z-index:
|
|
752
|
+
const datePickerCss = ".sc-dso-date-picker-h{display:block}.dso-date.sc-dso-date-picker *.sc-dso-date-picker,.dso-date.sc-dso-date-picker *.sc-dso-date-picker::before,.dso-date.sc-dso-date-picker *.sc-dso-date-picker::after{box-sizing:border-box}.dso-date.sc-dso-date-picker{box-sizing:border-box;color:#191919;display:block;font-family:\"Asap\", sans-serif;margin:0;position:relative;text-align:left;width:100%}.dso-date__input.sc-dso-date-picker{display:block;width:100%;height:40px;padding:6px 14px;font-size:16px;line-height:1.5;color:#191919;background-color:#fff;background-image:none;border:1px solid #275937;border-radius:4px;transition:border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s}.dso-date__input.sc-dso-date-picker::-moz-placeholder{color:#666;opacity:1}.dso-date__input.sc-dso-date-picker:-ms-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker::-webkit-input-placeholder{color:#666}.dso-date__input.sc-dso-date-picker::-ms-expand{background-color:transparent;border:0}.dso-date__input.sc-dso-date-picker:focus{border-color:#275937;outline:0;box-shadow:inset 0 0 0 1px #275937}.dso-date__input[disabled].sc-dso-date-picker,.dso-date__input[readonly].sc-dso-date-picker,fieldset[disabled].sc-dso-date-picker .dso-date__input.sc-dso-date-picker{background-color:#fff;opacity:1}.dso-date__input[disabled].sc-dso-date-picker,fieldset[disabled].sc-dso-date-picker .dso-date__input.sc-dso-date-picker{cursor:default}.dso-date__input[disabled].sc-dso-date-picker{border-color:#e5e5e5;color:#999}.dso-date__input[readonly].sc-dso-date-picker{border-width:1px}.dso-date__input[type=text].sc-dso-date-picker{line-height:40px}.dso-date__input[size].sc-dso-date-picker{width:auto}.dso-date__toggle.sc-dso-date-picker{-moz-appearance:none;-webkit-appearance:none;-webkit-user-select:none;align-items:center;appearance:none;background:transparent;border:0;border-radius:0;border-bottom-right-radius:4px;border-top-right-radius:4px;color:#39870c;cursor:pointer;display:flex;height:38px;justify-content:center;padding:0;position:absolute;right:0;transform:translateY(-50%);top:50%;user-select:none;width:38px;z-index:101}.dso-date__toggle.sc-dso-date-picker:disabled{color:#afcf9d;cursor:pointer}.dso-date__dialog.sc-dso-date-picker{border-width:1px;display:flex;right:0;min-width:320px;opacity:0;position:absolute;top:100%;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;visibility:hidden;will-change:transform, opacity, visibility;z-index:210}@media (max-width: 35.9375em){.dso-date__dialog.sc-dso-date-picker{background:rgba(25, 25, 25, 0.5);bottom:0;position:fixed;left:0;right:0;top:0;transform:translateZ(0);transform-origin:bottom center}}.dso-date__dialog.is-left.sc-dso-date-picker{left:-11px;right:auto;width:auto}.dso-date__dialog.is-active.sc-dso-date-picker{opacity:1;transform:scale(1.0001) translateZ(0) translateY(0);visibility:visible}.dso-date__dialog-content.sc-dso-date-picker{background:#fff;border:1px solid rgba(0, 0, 0, 0.1);border-radius:4px;box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);margin-left:auto;margin-right:-1px;margin-top:8px;max-width:310px;min-width:290px;padding:16px;position:relative;transform:none;width:100%;z-index:210}@media (max-width: 35.9375em){.dso-date__dialog-content.sc-dso-date-picker{border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;bottom:0;left:0;margin:0;max-width:none;min-height:26em;opacity:0;padding:0 8% 20px;position:absolute;transform:translateZ(0) translateY(100%);transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;visibility:hidden;will-change:transform, opacity, visibility}.is-active.sc-dso-date-picker .dso-date__dialog-content.sc-dso-date-picker{opacity:1;transform:translateZ(0) translateY(0);visibility:visible}}.dso-date__table.sc-dso-date-picker{border-collapse:collapse;border-spacing:0;color:#191919;font-size:1rem;font-weight:400;line-height:1.25;min-width:280px;table-layout:fixed;text-align:center;width:100%}.dso-date__table-header.sc-dso-date-picker{font-size:0.875em;font-weight:600;height:36px;line-height:36px;text-decoration:none;text-transform:uppercase}.dso-date__cell.sc-dso-date-picker{height:40px;padding:1px;text-align:center;width:40px}.dso-date__day.sc-dso-date-picker{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;border-radius:50%;box-shadow:0 0 0 1px transparent;color:#191919;cursor:pointer;display:inline-block;font-family:\"Asap\", sans-serif;font-variant-numeric:tabular-nums;font-weight:400;height:38px;line-height:0;padding:0;position:relative;text-align:center;vertical-align:middle;width:38px;z-index:100}.dso-date__day.is-today.sc-dso-date-picker{background:transparent;height:36px;box-shadow:0 0 0 1px #39870c;width:36px}.dso-date__day.sc-dso-date-picker:hover,.dso-date__day.sc-dso-date-picker:active{background:#39870c;color:#fff}.dso-date__day.sc-dso-date-picker:focus{background:transparent;box-shadow:0 0 0 2px #275937;color:#191919;height:34px;outline:0;width:34px}[aria-selected=true].sc-dso-date-picker .dso-date__day.sc-dso-date-picker{background:#39870c;color:#fff}[aria-selected=true].sc-dso-date-picker .dso-date__day.sc-dso-date-picker:focus{background:transparent}[aria-selected=true].sc-dso-date-picker .dso-date__day.sc-dso-date-picker:focus span[aria-hidden=true].sc-dso-date-picker{background:#39870c;border:1px solid #fff;line-height:32px}.dso-date__day.is-outside.sc-dso-date-picker{background:#f2f2f2;box-shadow:none;color:#666;cursor:default;pointer-events:none}.dso-date__day.is-disabled.sc-dso-date-picker{background:#fff;cursor:default}.dso-date__day.is-disabled.sc-dso-date-picker:hover{color:#666}.dso-date__day.sc-dso-date-picker span[aria-hidden=true].sc-dso-date-picker{border-radius:50%;display:inline-block;height:34px;line-height:34px;width:34px}.dso-date__header.sc-dso-date-picker{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px;width:100%}.dso-date__header.sc-dso-date-picker span.sc-dso-date-picker{font-size:0.875rem}.dso-date__nav.sc-dso-date-picker{white-space:nowrap}.dso-date__prev.sc-dso-date-picker,.dso-date__next.sc-dso-date-picker{-moz-appearance:none;-webkit-appearance:none;align-items:center;appearance:none;background:transparent;border:1px solid #39870c;border-radius:4px;box-sizing:border-box;color:#39870c;cursor:pointer;display:inline-flex;font-size:1em;height:32px;justify-content:center;margin-left:8px;padding:0;width:32px}@media (max-width: 35.9375em){.dso-date__prev.sc-dso-date-picker,.dso-date__next.sc-dso-date-picker{height:40px;width:40px}}.dso-date__prev.sc-dso-date-picker:hover,.dso-date__prev.sc-dso-date-picker:active,.dso-date__next.sc-dso-date-picker:hover,.dso-date__next.sc-dso-date-picker:active{background-color:#39870c;color:#fff}.dso-date__prev.sc-dso-date-picker:focus,.dso-date__next.sc-dso-date-picker:focus{background:transparent;color:#39870c}.dso-date__prev.sc-dso-date-picker:disabled,.dso-date__prev.sc-dso-date-picker:disabled:hover,.dso-date__next.sc-dso-date-picker:disabled,.dso-date__next.sc-dso-date-picker:disabled:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d;opacity:1}.dso-date__prev.sc-dso-date-picker svg.sc-dso-date-picker,.dso-date__next.sc-dso-date-picker svg.sc-dso-date-picker{margin:0 auto}.dso-date__select.sc-dso-date-picker{display:inline-flex;height:28px;line-height:28px;position:relative}.dso-date__select.sc-dso-date-picker span.sc-dso-date-picker{margin-right:4px}.dso-date__select.sc-dso-date-picker select.sc-dso-date-picker{color:#275937;cursor:pointer;font-size:1rem;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%;z-index:101}.dso-date__select.sc-dso-date-picker select.sc-dso-date-picker:focus+.dso-date__select-label.sc-dso-date-picker{box-shadow:0 0 0 2px #275937}.dso-date__select.sc-dso-date-picker select.sc-dso-date-picker:disabled{color:#afcf9d}.dso-date__select-label.sc-dso-date-picker{align-items:center;border-radius:4px;color:#39870c;display:flex;padding:0 4px 0 8px;pointer-events:none;position:relative;width:100%;z-index:100}.dso-date__select-label.sc-dso-date-picker span.sc-dso-date-picker{font-size:1.25rem;font-weight:600;line-height:1.25}.dso-date__select-label.sc-dso-date-picker svg.sc-dso-date-picker{width:16px;height:16px}.dso-date__mobile.sc-dso-date-picker{align-items:center;border-bottom:1px solid rgba(0, 0, 0, 0.12);display:flex;font-size:1em;justify-content:space-between;margin-bottom:20px;margin-left:-10%;overflow:hidden;padding:12px 20px;position:relative;text-overflow:ellipsis;white-space:nowrap;width:120%}@media (min-width: 36em){.dso-date__mobile.sc-dso-date-picker{border:0;margin:0;overflow:visible;padding:0;position:absolute;right:-16px;top:-16px;width:auto}}.dso-date__mobile-heading.sc-dso-date-picker{display:inline-block;font-weight:600;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.dso-date__mobile-heading.sc-dso-date-picker{display:none}}.dso-date__close.sc-dso-date-picker{-webkit-appearance:none;align-items:center;appearance:none;background-color:#fff;border:0;border-radius:50%;color:#39870c;cursor:pointer;display:flex;font-size:1em;height:32px;justify-content:center;margin-right:-4px;padding:0;width:32px}@media (min-width: 36em){.dso-date__close.sc-dso-date-picker{margin-right:0;opacity:0}}.dso-date__close.sc-dso-date-picker:focus{box-shadow:0 0 0 2px #275937;outline:none}@media (min-width: 36em){.dso-date__close.sc-dso-date-picker:focus{opacity:1}}.dso-date__vhidden.sc-dso-date-picker{border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;padding:0;position:absolute;top:0;width:1px}";
|
|
753
753
|
|
|
754
754
|
function range(from, to) {
|
|
755
755
|
var result = [];
|
|
@@ -1164,12 +1164,24 @@ let DsoDatePicker$1 = class extends HTMLElement {
|
|
|
1164
1164
|
};
|
|
1165
1165
|
|
|
1166
1166
|
/*!
|
|
1167
|
-
* tabbable 5.
|
|
1167
|
+
* tabbable 5.3.1
|
|
1168
1168
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1169
1169
|
*/
|
|
1170
|
-
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
1170
|
+
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
1171
1171
|
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
1172
|
-
var
|
|
1172
|
+
var NoElement = typeof Element === 'undefined';
|
|
1173
|
+
var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
1174
|
+
var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
|
|
1175
|
+
return element.getRootNode();
|
|
1176
|
+
} : function (element) {
|
|
1177
|
+
return element.ownerDocument;
|
|
1178
|
+
};
|
|
1179
|
+
/**
|
|
1180
|
+
* @param {Element} el container to check in
|
|
1181
|
+
* @param {boolean} includeContainer add container to check
|
|
1182
|
+
* @param {(node: Element) => boolean} filter filter candidates
|
|
1183
|
+
* @returns {Element[]}
|
|
1184
|
+
*/
|
|
1173
1185
|
|
|
1174
1186
|
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
1175
1187
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
@@ -1181,31 +1193,112 @@ var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
|
1181
1193
|
candidates = candidates.filter(filter);
|
|
1182
1194
|
return candidates;
|
|
1183
1195
|
};
|
|
1196
|
+
/**
|
|
1197
|
+
* @callback GetShadowRoot
|
|
1198
|
+
* @param {Element} element to check for shadow root
|
|
1199
|
+
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
1200
|
+
*/
|
|
1184
1201
|
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
}
|
|
1202
|
+
/**
|
|
1203
|
+
* @typedef {Object} CandidatesScope
|
|
1204
|
+
* @property {Element} scope contains inner candidates
|
|
1205
|
+
* @property {Element[]} candidates
|
|
1206
|
+
*/
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* @typedef {Object} IterativeOptions
|
|
1210
|
+
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
1211
|
+
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
1212
|
+
* or a boolean stating if it has an undisclosed shadow root
|
|
1213
|
+
* @property {(node: Element) => boolean} filter filter candidates
|
|
1214
|
+
* @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list
|
|
1215
|
+
*/
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* @param {Element[]} elements list of element containers to match candidates from
|
|
1219
|
+
* @param {boolean} includeContainer add container list to check
|
|
1220
|
+
* @param {IterativeOptions} options
|
|
1221
|
+
* @returns {Array.<Element|CandidatesScope>}
|
|
1222
|
+
*/
|
|
1188
1223
|
|
|
1189
|
-
var getTabindex = function getTabindex(node) {
|
|
1190
|
-
var tabindexAttr = parseInt(node.getAttribute('tabindex'), 10);
|
|
1191
1224
|
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
1225
|
+
var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
1226
|
+
var candidates = [];
|
|
1227
|
+
var elementsToCheck = Array.from(elements);
|
|
1196
1228
|
|
|
1229
|
+
while (elementsToCheck.length) {
|
|
1230
|
+
var element = elementsToCheck.shift();
|
|
1197
1231
|
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
// `tabIndex` of 0; since Chrome still puts those elements in the regular tab
|
|
1204
|
-
// order, consider their tab index to be 0.
|
|
1232
|
+
if (element.tagName === 'SLOT') {
|
|
1233
|
+
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
1234
|
+
var assigned = element.assignedElements();
|
|
1235
|
+
var content = assigned.length ? assigned : element.children;
|
|
1236
|
+
var nestedCandidates = getCandidatesIteratively(content, true, options);
|
|
1205
1237
|
|
|
1238
|
+
if (options.flatten) {
|
|
1239
|
+
candidates.push.apply(candidates, nestedCandidates);
|
|
1240
|
+
} else {
|
|
1241
|
+
candidates.push({
|
|
1242
|
+
scope: element,
|
|
1243
|
+
candidates: nestedCandidates
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
} else {
|
|
1247
|
+
// check candidate element
|
|
1248
|
+
var validCandidate = matches.call(element, candidateSelector);
|
|
1249
|
+
|
|
1250
|
+
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
1251
|
+
candidates.push(element);
|
|
1252
|
+
} // iterate over shadow content if possible
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
1256
|
+
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
1206
1257
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1258
|
+
if (shadowRoot) {
|
|
1259
|
+
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
1260
|
+
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
1261
|
+
// child candidates found because they're likely slotted elements (elements that are
|
|
1262
|
+
// children of the web component element (which has the shadow), in the light dom, but
|
|
1263
|
+
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
1264
|
+
// _after_ we return from this recursive call
|
|
1265
|
+
var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
1266
|
+
|
|
1267
|
+
if (options.flatten) {
|
|
1268
|
+
candidates.push.apply(candidates, _nestedCandidates);
|
|
1269
|
+
} else {
|
|
1270
|
+
candidates.push({
|
|
1271
|
+
scope: element,
|
|
1272
|
+
candidates: _nestedCandidates
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
} else {
|
|
1276
|
+
// there's not shadow so just dig into the element's (light dom) children
|
|
1277
|
+
// __without__ giving the element special scope treatment
|
|
1278
|
+
elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
return candidates;
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1286
|
+
var getTabindex = function getTabindex(node, isScope) {
|
|
1287
|
+
if (node.tabIndex < 0) {
|
|
1288
|
+
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
1289
|
+
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
|
|
1290
|
+
// yet they are still part of the regular tab order; in FF, they get a default
|
|
1291
|
+
// `tabIndex` of 0; since Chrome still puts those elements in the regular tab
|
|
1292
|
+
// order, consider their tab index to be 0.
|
|
1293
|
+
// Also browsers do not return `tabIndex` correctly for contentEditable nodes;
|
|
1294
|
+
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
1295
|
+
//
|
|
1296
|
+
// isScope is positive for custom element with shadow root or slot that by default
|
|
1297
|
+
// have tabIndex -1, but need to be sorted by document order in order for their
|
|
1298
|
+
// content to be inserted in the correct position
|
|
1299
|
+
if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
|
|
1300
|
+
return 0;
|
|
1301
|
+
}
|
|
1209
1302
|
}
|
|
1210
1303
|
|
|
1211
1304
|
return node.tabIndex;
|
|
@@ -1243,7 +1336,7 @@ var isTabbableRadio = function isTabbableRadio(node) {
|
|
|
1243
1336
|
return true;
|
|
1244
1337
|
}
|
|
1245
1338
|
|
|
1246
|
-
var radioScope = node.form || node
|
|
1339
|
+
var radioScope = node.form || getRootNode(node);
|
|
1247
1340
|
|
|
1248
1341
|
var queryRadios = function queryRadios(name) {
|
|
1249
1342
|
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
@@ -1275,7 +1368,18 @@ var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
|
1275
1368
|
return isRadio(node) && !isTabbableRadio(node);
|
|
1276
1369
|
};
|
|
1277
1370
|
|
|
1278
|
-
var
|
|
1371
|
+
var isZeroArea = function isZeroArea(node) {
|
|
1372
|
+
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
1373
|
+
width = _node$getBoundingClie.width,
|
|
1374
|
+
height = _node$getBoundingClie.height;
|
|
1375
|
+
|
|
1376
|
+
return width === 0 && height === 0;
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
var isHidden = function isHidden(node, _ref) {
|
|
1380
|
+
var displayCheck = _ref.displayCheck,
|
|
1381
|
+
getShadowRoot = _ref.getShadowRoot;
|
|
1382
|
+
|
|
1279
1383
|
if (getComputedStyle(node).visibility === 'hidden') {
|
|
1280
1384
|
return true;
|
|
1281
1385
|
}
|
|
@@ -1288,19 +1392,47 @@ var isHidden = function isHidden(node, displayCheck) {
|
|
|
1288
1392
|
}
|
|
1289
1393
|
|
|
1290
1394
|
if (!displayCheck || displayCheck === 'full') {
|
|
1291
|
-
|
|
1292
|
-
if
|
|
1293
|
-
|
|
1395
|
+
if (typeof getShadowRoot === 'function') {
|
|
1396
|
+
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
1397
|
+
// 'non-zero-area' fallback
|
|
1398
|
+
var originalNode = node;
|
|
1399
|
+
|
|
1400
|
+
while (node) {
|
|
1401
|
+
var parentElement = node.parentElement;
|
|
1402
|
+
var rootNode = getRootNode(node);
|
|
1403
|
+
|
|
1404
|
+
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
1405
|
+
) {
|
|
1406
|
+
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
1407
|
+
// fall back to a non-zero-area test
|
|
1408
|
+
return isZeroArea(node);
|
|
1409
|
+
} else if (node.assignedSlot) {
|
|
1410
|
+
// iterate up slot
|
|
1411
|
+
node = node.assignedSlot;
|
|
1412
|
+
} else if (!parentElement && rootNode !== node.ownerDocument) {
|
|
1413
|
+
// cross shadow boundary
|
|
1414
|
+
node = rootNode.host;
|
|
1415
|
+
} else {
|
|
1416
|
+
// iterate up normal dom
|
|
1417
|
+
node = parentElement;
|
|
1418
|
+
}
|
|
1294
1419
|
}
|
|
1295
1420
|
|
|
1296
|
-
node =
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1421
|
+
node = originalNode;
|
|
1422
|
+
} // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
1423
|
+
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
1424
|
+
// it might be a falsy value, which means shadow DOM support is disabled
|
|
1425
|
+
// didn't find it sitting in an undisclosed shadow (or shadows are disabled) so now we
|
|
1426
|
+
// can just test to see if it would normally be visible or not
|
|
1427
|
+
// this works wherever the node is: if there's at least one client rect, it's
|
|
1428
|
+
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
1429
|
+
// node itself is hidden in place of its contents; and there's no need to search
|
|
1430
|
+
// up the hierarchy either
|
|
1431
|
+
|
|
1302
1432
|
|
|
1303
|
-
return
|
|
1433
|
+
return !node.getClientRects().length;
|
|
1434
|
+
} else if (displayCheck === 'non-zero-area') {
|
|
1435
|
+
return isZeroArea(node);
|
|
1304
1436
|
}
|
|
1305
1437
|
|
|
1306
1438
|
return false;
|
|
@@ -1310,29 +1442,21 @@ var isHidden = function isHidden(node, displayCheck) {
|
|
|
1310
1442
|
|
|
1311
1443
|
|
|
1312
1444
|
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
1313
|
-
if (
|
|
1314
|
-
var parentNode = node.parentElement;
|
|
1445
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
1446
|
+
var parentNode = node.parentElement; // check if `node` is contained in a disabled <fieldset>
|
|
1315
1447
|
|
|
1316
1448
|
while (parentNode) {
|
|
1317
1449
|
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
1318
|
-
// look for the first <legend>
|
|
1319
|
-
// <fieldset>: if the node is in that legend, it'll be enabled even
|
|
1320
|
-
// though the fieldset is disabled; otherwise, the node is in a
|
|
1321
|
-
// secondary/subsequent legend, or somewhere else within the fieldset
|
|
1322
|
-
// (however deep nested) and it'll be disabled
|
|
1450
|
+
// look for the first <legend> among the children of the disabled <fieldset>
|
|
1323
1451
|
for (var i = 0; i < parentNode.children.length; i++) {
|
|
1324
|
-
var child = parentNode.children.item(i);
|
|
1452
|
+
var child = parentNode.children.item(i); // when the first <legend> (in document order) is found
|
|
1325
1453
|
|
|
1326
1454
|
if (child.tagName === 'LEGEND') {
|
|
1327
|
-
if
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
// where it is now, it'll be disabled
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
return true;
|
|
1455
|
+
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
1456
|
+
// return whether `node` is a descendant of its first <legend>
|
|
1457
|
+
return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
1334
1458
|
}
|
|
1335
|
-
} // the
|
|
1459
|
+
} // the disabled <fieldset> containing `node` has no <legend>
|
|
1336
1460
|
|
|
1337
1461
|
|
|
1338
1462
|
return true;
|
|
@@ -1348,7 +1472,7 @@ var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
|
1348
1472
|
};
|
|
1349
1473
|
|
|
1350
1474
|
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
1351
|
-
if (node.disabled || isHiddenInput(node) || isHidden(node, options
|
|
1475
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
1352
1476
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
1353
1477
|
return false;
|
|
1354
1478
|
}
|
|
@@ -1357,40 +1481,76 @@ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(o
|
|
|
1357
1481
|
};
|
|
1358
1482
|
|
|
1359
1483
|
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
1360
|
-
if (
|
|
1484
|
+
if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
1361
1485
|
return false;
|
|
1362
1486
|
}
|
|
1363
1487
|
|
|
1364
1488
|
return true;
|
|
1365
1489
|
};
|
|
1490
|
+
/**
|
|
1491
|
+
* @param {Array.<Element|CandidatesScope>} candidates
|
|
1492
|
+
* @returns Element[]
|
|
1493
|
+
*/
|
|
1366
1494
|
|
|
1367
|
-
|
|
1368
|
-
|
|
1495
|
+
|
|
1496
|
+
var sortByOrder = function sortByOrder(candidates) {
|
|
1369
1497
|
var regularTabbables = [];
|
|
1370
1498
|
var orderedTabbables = [];
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
var
|
|
1499
|
+
candidates.forEach(function (item, i) {
|
|
1500
|
+
var isScope = !!item.scope;
|
|
1501
|
+
var element = isScope ? item.scope : item;
|
|
1502
|
+
var candidateTabindex = getTabindex(element, isScope);
|
|
1503
|
+
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
1374
1504
|
|
|
1375
1505
|
if (candidateTabindex === 0) {
|
|
1376
|
-
regularTabbables.push(
|
|
1506
|
+
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
1377
1507
|
} else {
|
|
1378
1508
|
orderedTabbables.push({
|
|
1379
1509
|
documentOrder: i,
|
|
1380
1510
|
tabIndex: candidateTabindex,
|
|
1381
|
-
|
|
1511
|
+
item: item,
|
|
1512
|
+
isScope: isScope,
|
|
1513
|
+
content: elements
|
|
1382
1514
|
});
|
|
1383
1515
|
}
|
|
1384
1516
|
});
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1517
|
+
return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
|
|
1518
|
+
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
1519
|
+
return acc;
|
|
1520
|
+
}, []).concat(regularTabbables);
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1523
|
+
var tabbable = function tabbable(el, options) {
|
|
1524
|
+
options = options || {};
|
|
1525
|
+
var candidates;
|
|
1526
|
+
|
|
1527
|
+
if (options.getShadowRoot) {
|
|
1528
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
1529
|
+
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
1530
|
+
flatten: false,
|
|
1531
|
+
getShadowRoot: options.getShadowRoot
|
|
1532
|
+
});
|
|
1533
|
+
} else {
|
|
1534
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
return sortByOrder(candidates);
|
|
1389
1538
|
};
|
|
1390
1539
|
|
|
1391
1540
|
var focusable = function focusable(el, options) {
|
|
1392
1541
|
options = options || {};
|
|
1393
|
-
var candidates
|
|
1542
|
+
var candidates;
|
|
1543
|
+
|
|
1544
|
+
if (options.getShadowRoot) {
|
|
1545
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
1546
|
+
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
1547
|
+
flatten: true,
|
|
1548
|
+
getShadowRoot: options.getShadowRoot
|
|
1549
|
+
});
|
|
1550
|
+
} else {
|
|
1551
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1394
1554
|
return candidates;
|
|
1395
1555
|
};
|
|
1396
1556
|
|
|
@@ -1430,7 +1590,7 @@ let DropdownMenu = class extends HTMLElement {
|
|
|
1430
1590
|
constructor() {
|
|
1431
1591
|
super();
|
|
1432
1592
|
this.__registerHost();
|
|
1433
|
-
|
|
1593
|
+
this.__attachShadow();
|
|
1434
1594
|
/**
|
|
1435
1595
|
* Whether the menu is open or closed.
|
|
1436
1596
|
* This attribute is reflected and mutable.
|
|
@@ -1582,14 +1742,16 @@ let DropdownMenu = class extends HTMLElement {
|
|
|
1582
1742
|
static get style() { return dropdownMenuCss; }
|
|
1583
1743
|
};
|
|
1584
1744
|
|
|
1585
|
-
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:
|
|
1745
|
+
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:220}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}";
|
|
1586
1746
|
|
|
1587
1747
|
const minDesktopViewportWidth = 992;
|
|
1588
1748
|
let Header = class extends HTMLElement {
|
|
1589
1749
|
constructor() {
|
|
1590
1750
|
super();
|
|
1591
1751
|
this.__registerHost();
|
|
1592
|
-
|
|
1752
|
+
this.__attachShadow();
|
|
1753
|
+
this.menuItemClick = createEvent(this, "menuItemClick", 7);
|
|
1754
|
+
this.mainMenu = [];
|
|
1593
1755
|
this.useDropDownMenu = "auto";
|
|
1594
1756
|
this.showDropDown = false;
|
|
1595
1757
|
this.isLoggedIn = false;
|
|
@@ -1599,6 +1761,16 @@ let Header = class extends HTMLElement {
|
|
|
1599
1761
|
this.setDropDownMenu();
|
|
1600
1762
|
this.setOverflowMenu();
|
|
1601
1763
|
}, 100);
|
|
1764
|
+
this.MenuItem = (item) => {
|
|
1765
|
+
const click = (event) => {
|
|
1766
|
+
event.preventDefault();
|
|
1767
|
+
this.menuItemClick.emit({
|
|
1768
|
+
originalEvent: event,
|
|
1769
|
+
menuItem: item,
|
|
1770
|
+
});
|
|
1771
|
+
};
|
|
1772
|
+
return (h("li", { class: item.active ? "dso-active" : undefined }, h("a", { href: item.url, "aria-current": item.active ? "page" : undefined, onClick: click }, item.label)));
|
|
1773
|
+
};
|
|
1602
1774
|
}
|
|
1603
1775
|
watchUseDropDownMenu(value) {
|
|
1604
1776
|
if (value === "auto") {
|
|
@@ -1650,16 +1822,13 @@ let Header = class extends HTMLElement {
|
|
|
1650
1822
|
disconnectedCallback() {
|
|
1651
1823
|
window.removeEventListener("resize", this.onWindowResize);
|
|
1652
1824
|
}
|
|
1653
|
-
MenuItem(item) {
|
|
1654
|
-
return (h("li", { class: item.active ? "dso-active" : undefined }, h("a", { href: item.url, "aria-current": item.active ? "page" : undefined }, item.label)));
|
|
1655
|
-
}
|
|
1656
1825
|
render() {
|
|
1657
1826
|
return (h(Fragment, null, h("div", { class: clsx("dso-header", {
|
|
1658
1827
|
["use-drop-down"]: this.showDropDown,
|
|
1659
1828
|
["has-sub-logo"]: this.hasSubLogo,
|
|
1660
|
-
}), ref: (element) => (this.wrapper = element) }, h("div", { class: "logo-container" }, h("div", { class: "logo" }, h("slot", { name: "logo" })), h("div", { class: "sub-logo" }, h("slot", { name: "sub-logo" }))), this.showDropDown && (h("div", { class: "dropdown" }, h("dso-dropdown-menu", { "dropdown-align": "right" }, h("button", { type: "button", class: "tertiary", slot: "toggle" }, h("span", null, "Menu")), h("div", { class: "dso-dropdown-options" }, h("dso-dropdown-options", null, h("ul", null, this.mainMenu.map(this.MenuItem), this.userHomeUrl && (h("li", null, h("a", { href: this.userHomeUrl }, "Mijn Omgevingsloket"))), this.loginUrl && !this.isLoggedIn && (h("li", null, h("a", { href: this.loginUrl }, "Inloggen"))), this.userProfileUrl &&
|
|
1829
|
+
}), ref: (element) => (this.wrapper = element) }, h("div", { class: "logo-container" }, h("div", { class: "logo" }, h("slot", { name: "logo" })), h("div", { class: "sub-logo" }, h("slot", { name: "sub-logo" }))), this.showDropDown && this.mainMenu.length > 0 && (h("div", { class: "dropdown" }, h("dso-dropdown-menu", { "dropdown-align": "right" }, h("button", { type: "button", class: "tertiary", slot: "toggle" }, h("span", null, "Menu")), h("div", { class: "dso-dropdown-options" }, h("dso-dropdown-options", null, h("ul", null, this.mainMenu.map(this.MenuItem), this.userHomeUrl && (h("li", null, h("a", { href: this.userHomeUrl }, "Mijn Omgevingsloket"))), this.loginUrl && !this.isLoggedIn && (h("li", null, h("a", { href: this.loginUrl }, "Inloggen"))), this.userProfileUrl &&
|
|
1661
1830
|
this.userProfileName &&
|
|
1662
|
-
this.isLoggedIn && (h("li", null, h("a", { href: this.userProfileUrl }, this.userProfileName, h("span", { class: "profile-label" }, "- Mijn profiel")))), this.logoutUrl && this.isLoggedIn && (h("li", null, h("a", { href: this.logoutUrl }, "Uitloggen"))))))))), !this.showDropDown && (h(Fragment, null, h("div", { class: "dso-header-session" }, this.userProfileUrl &&
|
|
1831
|
+
this.isLoggedIn && (h("li", null, h("a", { href: this.userProfileUrl }, this.userProfileName, h("span", { class: "profile-label" }, "- Mijn profiel")))), this.logoutUrl && this.isLoggedIn && (h("li", null, h("a", { href: this.logoutUrl }, "Uitloggen"))))))))), !this.showDropDown && this.mainMenu.length > 0 && (h(Fragment, null, h("div", { class: "dso-header-session" }, this.userProfileUrl &&
|
|
1663
1832
|
this.userProfileName &&
|
|
1664
1833
|
this.isLoggedIn && (h("div", { class: "profile" }, h("span", { class: "profile-label" }, "Welkom:"), h("a", { href: this.userProfileUrl }, this.userProfileName))), this.loginUrl && !this.isLoggedIn && (h("div", { class: "login" }, h("a", { href: this.loginUrl }, "Inloggen"))), this.logoutUrl && this.isLoggedIn && (h("div", { class: "logout" }, h("a", { href: this.logoutUrl }, "Uitloggen")))), h("nav", { class: "dso-navbar" }, h("ul", { class: "dso-nav dso-nav-main", ref: (element) => (this.nav = element) }, this.mainMenu
|
|
1665
1834
|
.filter((_, index) => index < this.mainMenu.length - this.overflowMenuItems)
|
|
@@ -1683,7 +1852,7 @@ let HelpcenterPanel = class extends HTMLElement {
|
|
|
1683
1852
|
constructor() {
|
|
1684
1853
|
super();
|
|
1685
1854
|
this.__registerHost();
|
|
1686
|
-
|
|
1855
|
+
this.__attachShadow();
|
|
1687
1856
|
this.label = "Hulp nodig";
|
|
1688
1857
|
this.visibility = "hidden";
|
|
1689
1858
|
this.isOpen = "close";
|
|
@@ -1721,7 +1890,7 @@ let HighlightBox = class extends HTMLElement {
|
|
|
1721
1890
|
constructor() {
|
|
1722
1891
|
super();
|
|
1723
1892
|
this.__registerHost();
|
|
1724
|
-
|
|
1893
|
+
this.__attachShadow();
|
|
1725
1894
|
}
|
|
1726
1895
|
render() {
|
|
1727
1896
|
var _a;
|
|
@@ -2320,7 +2489,7 @@ let Icon = class extends HTMLElement {
|
|
|
2320
2489
|
constructor() {
|
|
2321
2490
|
super();
|
|
2322
2491
|
this.__registerHost();
|
|
2323
|
-
|
|
2492
|
+
this.__attachShadow();
|
|
2324
2493
|
}
|
|
2325
2494
|
render() {
|
|
2326
2495
|
if (this.icon) {
|
|
@@ -2335,7 +2504,7 @@ let Icon = class extends HTMLElement {
|
|
|
2335
2504
|
};
|
|
2336
2505
|
|
|
2337
2506
|
/*!
|
|
2338
|
-
* focus-trap 6.
|
|
2507
|
+
* focus-trap 6.8.1
|
|
2339
2508
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2340
2509
|
*/
|
|
2341
2510
|
|
|
@@ -2486,20 +2655,28 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2486
2655
|
}, userOptions);
|
|
2487
2656
|
|
|
2488
2657
|
var state = {
|
|
2658
|
+
// containers given to createFocusTrap()
|
|
2489
2659
|
// @type {Array<HTMLElement>}
|
|
2490
2660
|
containers: [],
|
|
2491
|
-
// list of objects identifying
|
|
2492
|
-
// the trap
|
|
2661
|
+
// list of objects identifying tabbable nodes in `containers` in the trap
|
|
2493
2662
|
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
2494
2663
|
// is active, but the trap should never get to a state where there isn't at least one group
|
|
2495
2664
|
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
2496
2665
|
// result in an error being thrown)
|
|
2497
2666
|
// @type {Array<{
|
|
2498
2667
|
// container: HTMLElement,
|
|
2668
|
+
// tabbableNodes: Array<HTMLElement>, // empty if none
|
|
2669
|
+
// focusableNodes: Array<HTMLElement>, // empty if none
|
|
2499
2670
|
// firstTabbableNode: HTMLElement|null,
|
|
2500
2671
|
// lastTabbableNode: HTMLElement|null,
|
|
2501
2672
|
// nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
2502
2673
|
// }>}
|
|
2674
|
+
containerGroups: [],
|
|
2675
|
+
// same order/length as `containers` list
|
|
2676
|
+
// references to objects in `containerGroups`, but only those that actually have
|
|
2677
|
+
// tabbable nodes in them
|
|
2678
|
+
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
2679
|
+
// the same length
|
|
2503
2680
|
tabbableGroups: [],
|
|
2504
2681
|
nodeFocusedBeforeActivation: null,
|
|
2505
2682
|
mostRecentlyFocusedNode: null,
|
|
@@ -2511,14 +2688,42 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2511
2688
|
};
|
|
2512
2689
|
var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later
|
|
2513
2690
|
|
|
2691
|
+
/**
|
|
2692
|
+
* Gets a configuration option value.
|
|
2693
|
+
* @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
|
|
2694
|
+
* value will be taken from this object. Otherwise, value will be taken from base configuration.
|
|
2695
|
+
* @param {string} optionName Name of the option whose value is sought.
|
|
2696
|
+
* @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
|
|
2697
|
+
* IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
|
|
2698
|
+
*/
|
|
2699
|
+
|
|
2514
2700
|
var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
|
|
2515
2701
|
return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
|
|
2516
2702
|
};
|
|
2703
|
+
/**
|
|
2704
|
+
* Finds the index of the container that contains the element.
|
|
2705
|
+
* @param {HTMLElement} element
|
|
2706
|
+
* @returns {number} Index of the container in either `state.containers` or
|
|
2707
|
+
* `state.containerGroups` (the order/length of these lists are the same); -1
|
|
2708
|
+
* if the element isn't found.
|
|
2709
|
+
*/
|
|
2517
2710
|
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2711
|
+
|
|
2712
|
+
var findContainerIndex = function findContainerIndex(element) {
|
|
2713
|
+
// NOTE: search `containerGroups` because it's possible a group contains no tabbable
|
|
2714
|
+
// nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
|
|
2715
|
+
// and we still need to find the element in there
|
|
2716
|
+
return state.containerGroups.findIndex(function (_ref) {
|
|
2717
|
+
var container = _ref.container,
|
|
2718
|
+
tabbableNodes = _ref.tabbableNodes;
|
|
2719
|
+
return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any
|
|
2720
|
+
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
2721
|
+
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
2722
|
+
// look inside web components even if open)
|
|
2723
|
+
tabbableNodes.find(function (node) {
|
|
2724
|
+
return node === element;
|
|
2725
|
+
});
|
|
2726
|
+
});
|
|
2522
2727
|
};
|
|
2523
2728
|
/**
|
|
2524
2729
|
* Gets the node for the given option, which is expected to be an option that
|
|
@@ -2577,7 +2782,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2577
2782
|
|
|
2578
2783
|
if (node === undefined) {
|
|
2579
2784
|
// option not specified: use fallback options
|
|
2580
|
-
if (
|
|
2785
|
+
if (findContainerIndex(doc.activeElement) >= 0) {
|
|
2581
2786
|
node = doc.activeElement;
|
|
2582
2787
|
} else {
|
|
2583
2788
|
var firstTabbableGroup = state.tabbableGroups[0];
|
|
@@ -2595,60 +2800,61 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2595
2800
|
};
|
|
2596
2801
|
|
|
2597
2802
|
var updateTabbableNodes = function updateTabbableNodes() {
|
|
2598
|
-
state.
|
|
2599
|
-
var tabbableNodes = tabbable(container); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
|
|
2803
|
+
state.containerGroups = state.containers.map(function (container) {
|
|
2804
|
+
var tabbableNodes = tabbable(container, config.tabbableOptions); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
|
|
2600
2805
|
// are a superset of tabbable nodes
|
|
2601
2806
|
|
|
2602
|
-
var focusableNodes = focusable(container);
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2807
|
+
var focusableNodes = focusable(container, config.tabbableOptions);
|
|
2808
|
+
return {
|
|
2809
|
+
container: container,
|
|
2810
|
+
tabbableNodes: tabbableNodes,
|
|
2811
|
+
focusableNodes: focusableNodes,
|
|
2812
|
+
firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
|
|
2813
|
+
lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
2817
|
+
* in this container, if any.
|
|
2818
|
+
* @param {HTMLElement} node
|
|
2819
|
+
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
2820
|
+
* in reverse.
|
|
2821
|
+
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
2822
|
+
*/
|
|
2823
|
+
nextTabbableNode: function nextTabbableNode(node) {
|
|
2824
|
+
var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
2825
|
+
// NOTE: If tabindex is positive (in order to manipulate the tab order separate
|
|
2826
|
+
// from the DOM order), this __will not work__ because the list of focusableNodes,
|
|
2827
|
+
// while it contains tabbable nodes, does not sort its nodes in any order other
|
|
2828
|
+
// than DOM order, because it can't: Where would you place focusable (but not
|
|
2829
|
+
// tabbable) nodes in that order? They have no order, because they aren't tabbale...
|
|
2830
|
+
// Support for positive tabindex is already broken and hard to manage (possibly
|
|
2831
|
+
// not supportable, TBD), so this isn't going to make things worse than they
|
|
2832
|
+
// already are, and at least makes things better for the majority of cases where
|
|
2833
|
+
// tabindex is either 0/unset or negative.
|
|
2834
|
+
// FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
|
|
2835
|
+
var nodeIdx = focusableNodes.findIndex(function (n) {
|
|
2836
|
+
return n === node;
|
|
2837
|
+
});
|
|
2633
2838
|
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
});
|
|
2638
|
-
}
|
|
2839
|
+
if (nodeIdx < 0) {
|
|
2840
|
+
return undefined;
|
|
2841
|
+
}
|
|
2639
2842
|
|
|
2640
|
-
|
|
2641
|
-
|
|
2843
|
+
if (forward) {
|
|
2844
|
+
return focusableNodes.slice(nodeIdx + 1).find(function (n) {
|
|
2845
|
+
return isTabbable(n, config.tabbableOptions);
|
|
2642
2846
|
});
|
|
2643
2847
|
}
|
|
2644
|
-
};
|
|
2645
|
-
}
|
|
2646
2848
|
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2849
|
+
return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
|
|
2850
|
+
return isTabbable(n, config.tabbableOptions);
|
|
2851
|
+
});
|
|
2852
|
+
}
|
|
2853
|
+
};
|
|
2854
|
+
});
|
|
2855
|
+
state.tabbableGroups = state.containerGroups.filter(function (group) {
|
|
2856
|
+
return group.tabbableNodes.length > 0;
|
|
2857
|
+
}); // throw if no groups have tabbable nodes and we don't have a fallback focus node either
|
|
2652
2858
|
|
|
2653
2859
|
if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
|
|
2654
2860
|
) {
|
|
@@ -2690,7 +2896,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2690
2896
|
var checkPointerDown = function checkPointerDown(e) {
|
|
2691
2897
|
var target = getActualTarget(e);
|
|
2692
2898
|
|
|
2693
|
-
if (
|
|
2899
|
+
if (findContainerIndex(target) >= 0) {
|
|
2694
2900
|
// allow the click since it ocurred inside the trap
|
|
2695
2901
|
return;
|
|
2696
2902
|
}
|
|
@@ -2709,7 +2915,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2709
2915
|
// that was clicked, whether it's focusable or not; by setting
|
|
2710
2916
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
2711
2917
|
// on activation (or the configured `setReturnFocus` node)
|
|
2712
|
-
returnFocus: config.returnFocusOnDeactivate && !isFocusable(target)
|
|
2918
|
+
returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
|
|
2713
2919
|
});
|
|
2714
2920
|
return;
|
|
2715
2921
|
} // This is needed for mobile devices.
|
|
@@ -2729,7 +2935,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2729
2935
|
|
|
2730
2936
|
var checkFocusIn = function checkFocusIn(e) {
|
|
2731
2937
|
var target = getActualTarget(e);
|
|
2732
|
-
var targetContained =
|
|
2938
|
+
var targetContained = findContainerIndex(target) >= 0; // In Firefox when you Tab out of an iframe the Document is briefly focused.
|
|
2733
2939
|
|
|
2734
2940
|
if (targetContained || target instanceof Document) {
|
|
2735
2941
|
if (targetContained) {
|
|
@@ -2755,11 +2961,8 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2755
2961
|
// make sure the target is actually contained in a group
|
|
2756
2962
|
// NOTE: the target may also be the container itself if it's focusable
|
|
2757
2963
|
// with tabIndex='-1' and was given initial focus
|
|
2758
|
-
var containerIndex =
|
|
2759
|
-
|
|
2760
|
-
return container.contains(target);
|
|
2761
|
-
});
|
|
2762
|
-
var containerGroup = containerIndex >= 0 ? state.tabbableGroups[containerIndex] : undefined;
|
|
2964
|
+
var containerIndex = findContainerIndex(target);
|
|
2965
|
+
var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
|
|
2763
2966
|
|
|
2764
2967
|
if (containerIndex < 0) {
|
|
2765
2968
|
// target not found in any group: quite possible focus has escaped the trap,
|
|
@@ -2779,7 +2982,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2779
2982
|
return target === firstTabbableNode;
|
|
2780
2983
|
});
|
|
2781
2984
|
|
|
2782
|
-
if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup.nextTabbableNode(target, false))) {
|
|
2985
|
+
if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
|
|
2783
2986
|
// an exception case where the target is either the container itself, or
|
|
2784
2987
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
2785
2988
|
// and user clicked on it or node was programmatically given focus)
|
|
@@ -2805,7 +3008,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2805
3008
|
return target === lastTabbableNode;
|
|
2806
3009
|
});
|
|
2807
3010
|
|
|
2808
|
-
if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup.nextTabbableNode(target))) {
|
|
3011
|
+
if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
|
|
2809
3012
|
// an exception case where the target is the container itself, or
|
|
2810
3013
|
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
2811
3014
|
// and user clicked on it or node was programmatically given focus)
|
|
@@ -2857,7 +3060,7 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
2857
3060
|
|
|
2858
3061
|
var target = getActualTarget(e);
|
|
2859
3062
|
|
|
2860
|
-
if (
|
|
3063
|
+
if (findContainerIndex(target) >= 0) {
|
|
2861
3064
|
return;
|
|
2862
3065
|
}
|
|
2863
3066
|
|
|
@@ -3041,13 +3244,13 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
3041
3244
|
return trap;
|
|
3042
3245
|
};
|
|
3043
3246
|
|
|
3044
|
-
const imageOverlayCss = "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{display:inline-block;position:relative}:host(:hover) .open,.open:focus{opacity:1}.open{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;box-shadow:0 1px 4px 0 rgba(0, 0, 0, 0.5);min-width:auto;padding:8px;opacity:0;position:absolute;right:16px;top:16px}.open:focus,.open:focus-visible{outline-offset:2px}.open:active{outline:0}.open.extern::after,.open.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.open:hover{background-color:#39870c;border-color:#39870c;color:#fff}.open:active{background-color:#275937;border-color:#275937;color:#fff}.open[disabled],.open[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}.open.btn-sm{line-height:16px}.open.btn-sm dso-icon,.open.btn-sm svg.di,.open.btn-sm.extern::after,.open.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.open.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}.open.download:hover::after{--dso-icon:var(--di-download-wit)}.open.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.open.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}.open.extern:hover::after{--dso-icon:var(--di-external-link-wit)}.open.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.open>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dimmer{position:fixed;top:0;left:0;right:0;bottom:0;z-index:
|
|
3247
|
+
const imageOverlayCss = "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{display:inline-block;position:relative}:host(:hover) .open,.open:focus{opacity:1}.open{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;box-shadow:0 1px 4px 0 rgba(0, 0, 0, 0.5);min-width:auto;padding:8px;opacity:0;position:absolute;right:16px;top:16px}.open:focus,.open:focus-visible{outline-offset:2px}.open:active{outline:0}.open.extern::after,.open.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.open:hover{background-color:#39870c;border-color:#39870c;color:#fff}.open:active{background-color:#275937;border-color:#275937;color:#fff}.open[disabled],.open[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}.open.btn-sm{line-height:16px}.open.btn-sm dso-icon,.open.btn-sm svg.di,.open.btn-sm.extern::after,.open.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.open.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}.open.download:hover::after{--dso-icon:var(--di-download-wit)}.open.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.open.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}.open.extern:hover::after{--dso-icon:var(--di-external-link-wit)}.open.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.open>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dimmer{position:fixed;top:0;left:0;right:0;bottom:0;z-index:19;display:flex;padding:32px;background-color:rgba(255, 255, 255, 0.8);justify-content:center}.wrapper{box-shadow:0 8px 24px 0 rgba(25, 25, 25, 0.4);position:relative;z-index:20;align-self:center;line-height:0}.wrapper img{width:auto;height:auto;max-width:100%;max-height:calc(100vh - 64px)}.close{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;box-shadow:0 1px 4px 0 rgba(0, 0, 0, 0.5);min-width:auto;padding:8px;position:absolute;top:16px;right:16px}.close:focus,.close:focus-visible{outline-offset:2px}.close:active{outline:0}.close.extern::after,.close.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.close:hover{background-color:#39870c;border-color:#39870c;color:#fff}.close:active{background-color:#275937;border-color:#275937;color:#fff}.close[disabled],.close[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}.close.btn-sm{line-height:16px}.close.btn-sm dso-icon,.close.btn-sm svg.di,.close.btn-sm.extern::after,.close.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.close.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}.close.download:hover::after{--dso-icon:var(--di-download-wit)}.close.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.close.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}.close.extern:hover::after{--dso-icon:var(--di-external-link-wit)}.close.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.close>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
3045
3248
|
|
|
3046
3249
|
let ImageOverlay = class extends HTMLElement {
|
|
3047
3250
|
constructor() {
|
|
3048
3251
|
super();
|
|
3049
3252
|
this.__registerHost();
|
|
3050
|
-
|
|
3253
|
+
this.__attachShadow();
|
|
3051
3254
|
this.active = false;
|
|
3052
3255
|
this.focused = false;
|
|
3053
3256
|
}
|
|
@@ -3102,7 +3305,7 @@ let Info = class extends HTMLElement {
|
|
|
3102
3305
|
constructor() {
|
|
3103
3306
|
super();
|
|
3104
3307
|
this.__registerHost();
|
|
3105
|
-
|
|
3308
|
+
this.__attachShadow();
|
|
3106
3309
|
this.close = createEvent(this, "close", 7);
|
|
3107
3310
|
}
|
|
3108
3311
|
render() {
|
|
@@ -3117,7 +3320,7 @@ let InfoButton = class extends HTMLElement {
|
|
|
3117
3320
|
constructor() {
|
|
3118
3321
|
super();
|
|
3119
3322
|
this.__registerHost();
|
|
3120
|
-
|
|
3323
|
+
this.__attachShadow();
|
|
3121
3324
|
this.toggle = createEvent(this, "toggle", 7);
|
|
3122
3325
|
this.label = 'Toelichting bij optie';
|
|
3123
3326
|
}
|
|
@@ -3137,7 +3340,7 @@ let Label = class extends HTMLElement {
|
|
|
3137
3340
|
constructor() {
|
|
3138
3341
|
super();
|
|
3139
3342
|
this.__registerHost();
|
|
3140
|
-
|
|
3343
|
+
this.__attachShadow();
|
|
3141
3344
|
this.removeClick = createEvent(this, "removeClick", 7);
|
|
3142
3345
|
}
|
|
3143
3346
|
render() {
|
|
@@ -3159,7 +3362,7 @@ let MapBaseLayers = class extends HTMLElement {
|
|
|
3159
3362
|
constructor() {
|
|
3160
3363
|
super();
|
|
3161
3364
|
this.__registerHost();
|
|
3162
|
-
|
|
3365
|
+
this.__attachShadow();
|
|
3163
3366
|
this.baseLayerChange = createEvent(this, "baseLayerChange", 7);
|
|
3164
3367
|
this.selectableRefs = {};
|
|
3165
3368
|
}
|
|
@@ -3188,54 +3391,57 @@ let MapBaseLayers = class extends HTMLElement {
|
|
|
3188
3391
|
|
|
3189
3392
|
const mapControlsCss = "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{background-color:#fff;border:1px solid #ccc;bottom:0;display:block;font-family:Asap, sans-serif;position:absolute;top:0;left:100%;transition:transform 300ms ease;width:300px}*,*::after,*::before{box-sizing:border-box}:host([open]){box-shadow:0 1px 4px 0 rgba(0, 0, 0, 0.3);transform:translateX(-100%)}:host([open]) #toggle-visibility-button{display:none}#toggle-visibility-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;box-shadow:0 1px 4px 0 rgba(0, 0, 0, 0.5);font-weight:600;margin-right:16px;padding:8px 16px;white-space:nowrap;position:absolute;right:calc(100% + 56px);top:16px}#toggle-visibility-button:focus,#toggle-visibility-button:focus-visible{outline-offset:2px}#toggle-visibility-button:active{outline:0}#toggle-visibility-button.extern::after,#toggle-visibility-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}#toggle-visibility-button:hover{background-color:#39870c;border-color:#39870c;color:#fff}#toggle-visibility-button:active{background-color:#275937;border-color:#275937;color:#fff}#toggle-visibility-button[disabled],#toggle-visibility-button[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}#toggle-visibility-button.btn-sm{line-height:16px}#toggle-visibility-button.btn-sm dso-icon,#toggle-visibility-button.btn-sm svg.di,#toggle-visibility-button.btn-sm.extern::after,#toggle-visibility-button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}#toggle-visibility-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}#toggle-visibility-button.download:hover::after{--dso-icon:var(--di-download-wit)}#toggle-visibility-button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}#toggle-visibility-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}#toggle-visibility-button.extern:hover::after{--dso-icon:var(--di-external-link-wit)}#toggle-visibility-button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}#toggle-visibility-button dso-icon,#toggle-visibility-button svg.di{margin-left:-8px;margin-right:8px}#toggle-visibility-button span+dso-icon,#toggle-visibility-button span+svg.di{margin-left:8px;margin-right:-8px}#toggle-visibility-button:focus-visible{background-color:#39870c;border-color:#39870c;color:#fff;outline:none}#zoom-buttons{border-radius:4px;box-shadow:0 1px 4px 0 rgba(0, 0, 0, 0.5);display:flex;flex-wrap:wrap;flex:0 0;position:absolute;right:calc(100% + 16px);top:16px}#zoom-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-top-left-radius:4px;border-top-right-radius:4px;flex:0 0 100%;height:40px;min-width:auto;width:40px}#zoom-buttons button:focus,#zoom-buttons button:focus-visible{outline-offset:2px}#zoom-buttons button:active{outline:0}#zoom-buttons button.extern::after,#zoom-buttons button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}#zoom-buttons button:hover{background-color:#39870c;border-color:#39870c;color:#fff}#zoom-buttons button:active{background-color:#275937;border-color:#275937;color:#fff}#zoom-buttons button[disabled],#zoom-buttons button[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}#zoom-buttons button.btn-sm{line-height:16px}#zoom-buttons button.btn-sm dso-icon,#zoom-buttons button.btn-sm svg.di,#zoom-buttons button.btn-sm.extern::after,#zoom-buttons button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}#zoom-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}#zoom-buttons button.download:hover::after{--dso-icon:var(--di-download-wit)}#zoom-buttons button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}#zoom-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}#zoom-buttons button.extern:hover::after{--dso-icon:var(--di-external-link-wit)}#zoom-buttons button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}#zoom-buttons button>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}#zoom-buttons button:focus-visible{background-color:#39870c;border-color:#39870c;color:#fff;outline:none}#zoom-buttons button+button{border-radius:0;border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-top:1px solid #ccc}#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;padding:0;position:absolute;right:16px;top:16px}#close-button:focus,#close-button:focus-visible{outline-offset:2px}#close-button:active{outline:0}#close-button.extern::after,#close-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}#close-button[disabled]{color:#afcf9d}#close-button:not([disabled]):hover{color:#676cb0;text-decoration:underline}#close-button:not([disabled]):active{color:#676cb0}#close-button.btn-align{line-height:calc(1.5em - 1px);padding:11px 0;position:relative}#close-button.extern::after,#close-button.download::after{position:relative;top:-2px}#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}#close-button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}#close-button.download:not([disabled]):hover::after,#close-button.download:not([disabled]):active::after{--dso-icon:var(--di-download-scampi)}#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}#close-button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}#close-button.extern:not([disabled]):hover::after,#close-button.extern:not([disabled]):active::after{--dso-icon:var(--di-external-link-scampi)}#close-button>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}section{display:flex;flex-direction:column;height:100%}header,.content{padding:16px}header{border-bottom:1px solid #ccc;flex-grow:0;position:relative}header h2{color:#275937;font-family:\"Asap\", sans-serif;line-height:1;margin:0}.content{flex-grow:1;overflow-y:auto}";
|
|
3190
3393
|
|
|
3191
|
-
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver,
|
|
3192
|
-
if (!
|
|
3193
|
-
throw new TypeError("
|
|
3194
|
-
|
|
3195
|
-
|
|
3394
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3395
|
+
if (kind === "a" && !f)
|
|
3396
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
3397
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
3398
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
3399
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
3196
3400
|
};
|
|
3197
|
-
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver,
|
|
3198
|
-
if (
|
|
3199
|
-
throw new TypeError("
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3401
|
+
var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3402
|
+
if (kind === "m")
|
|
3403
|
+
throw new TypeError("Private method is not writable");
|
|
3404
|
+
if (kind === "a" && !f)
|
|
3405
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
3406
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
3407
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
3408
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
3203
3409
|
};
|
|
3204
|
-
var
|
|
3410
|
+
var _MapControls_closeButtonElement, _MapControls_toggleButtonElement;
|
|
3205
3411
|
const transitionDuration$1 = 300; // Sync with $transition-duration in ./map-controls.scss
|
|
3206
3412
|
let MapControls = class extends HTMLElement {
|
|
3207
3413
|
constructor() {
|
|
3208
3414
|
super();
|
|
3209
3415
|
this.__registerHost();
|
|
3210
|
-
|
|
3416
|
+
this.__attachShadow();
|
|
3211
3417
|
this.zoomIn = createEvent(this, "zoomIn", 7);
|
|
3212
3418
|
this.zoomOut = createEvent(this, "zoomOut", 7);
|
|
3213
3419
|
this.open = false;
|
|
3214
3420
|
this.hideContent = !this.open;
|
|
3215
|
-
|
|
3216
|
-
|
|
3421
|
+
_MapControls_closeButtonElement.set(this, void 0);
|
|
3422
|
+
_MapControls_toggleButtonElement.set(this, void 0);
|
|
3217
3423
|
}
|
|
3218
3424
|
watchOpen(open) {
|
|
3219
3425
|
if (open) {
|
|
3220
3426
|
this.hideContent = false;
|
|
3221
|
-
setTimeout(() => __classPrivateFieldGet(this,
|
|
3427
|
+
setTimeout(() => __classPrivateFieldGet(this, _MapControls_closeButtonElement, "f").focus(), transitionDuration$1);
|
|
3222
3428
|
}
|
|
3223
3429
|
else {
|
|
3224
3430
|
setTimeout(() => {
|
|
3225
3431
|
this.hideContent = true;
|
|
3226
|
-
__classPrivateFieldGet(this,
|
|
3432
|
+
__classPrivateFieldGet(this, _MapControls_toggleButtonElement, "f").focus();
|
|
3227
3433
|
}, transitionDuration$1);
|
|
3228
3434
|
}
|
|
3229
3435
|
}
|
|
3230
3436
|
render() {
|
|
3231
|
-
return (h(Host, null, h("button", { type: "button", id: "toggle-visibility-button", onClick: () => this.open = !this.open, ref: element => __classPrivateFieldSet(this,
|
|
3437
|
+
return (h(Host, null, h("button", { type: "button", id: "toggle-visibility-button", onClick: () => this.open = !this.open, ref: element => __classPrivateFieldSet(this, _MapControls_toggleButtonElement, element, "f") }, h("dso-icon", { icon: "layers" }), h("span", null, "Kaartlagen")), h("div", { id: "zoom-buttons" }, h("button", { type: "button", onClick: e => this.zoomIn.emit(e), disabled: this.disableZoom === 'in' || this.disableZoom === 'both' }, h("span", null, "Zoom in"), h("dso-icon", { icon: "plus" })), h("button", { type: "button", onClick: e => this.zoomOut.emit(e), disabled: this.disableZoom === 'out' || this.disableZoom === 'both' }, h("span", null, "Zoom uit"), h("dso-icon", { icon: "minus" }))), h("section", { hidden: this.hideContent }, h("header", null, h("h2", null, "Kaartlagen"), h("button", { type: "button", id: "close-button", onClick: () => this.open = false, ref: element => __classPrivateFieldSet(this, _MapControls_closeButtonElement, element, "f") }, h("span", null, "Sluit dialoog"), h("dso-icon", { icon: "times" }))), h("div", { class: "content" }, h("slot", null)))));
|
|
3232
3438
|
}
|
|
3233
3439
|
static get watchers() { return {
|
|
3234
3440
|
"open": ["watchOpen"]
|
|
3235
3441
|
}; }
|
|
3236
3442
|
static get style() { return mapControlsCss; }
|
|
3237
3443
|
};
|
|
3238
|
-
|
|
3444
|
+
_MapControls_closeButtonElement = new WeakMap(), _MapControls_toggleButtonElement = new WeakMap();
|
|
3239
3445
|
|
|
3240
3446
|
const mapOverlaysCss = ":host{display:block}*,*::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}fieldset{border:0;margin:0;min-width:0;padding:0}fieldset .control-label{display:inline-block;font-weight:bold;margin-bottom:8px;max-width:100%;text-align:left}p[slot=info]{margin:0}";
|
|
3241
3447
|
|
|
@@ -3243,7 +3449,7 @@ let MapOverlays = class extends HTMLElement {
|
|
|
3243
3449
|
constructor() {
|
|
3244
3450
|
super();
|
|
3245
3451
|
this.__registerHost();
|
|
3246
|
-
|
|
3452
|
+
this.__attachShadow();
|
|
3247
3453
|
this.toggleOverlay = createEvent(this, "toggleOverlay", 7);
|
|
3248
3454
|
this.selectableRefs = {};
|
|
3249
3455
|
}
|
|
@@ -3271,12 +3477,22 @@ let MapOverlays = class extends HTMLElement {
|
|
|
3271
3477
|
static get style() { return mapOverlaysCss; }
|
|
3272
3478
|
};
|
|
3273
3479
|
|
|
3480
|
+
function getNodeName$1(node) {
|
|
3481
|
+
if (node instanceof Element) {
|
|
3482
|
+
return node.localName;
|
|
3483
|
+
}
|
|
3484
|
+
if (node.nodeName.includes(':')) {
|
|
3485
|
+
return node.nodeName.substring(node.nodeName.indexOf(':') + 1);
|
|
3486
|
+
}
|
|
3487
|
+
return node.nodeName;
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3274
3490
|
class OzonContentAlNode {
|
|
3275
3491
|
constructor() {
|
|
3276
3492
|
this.name = 'Al';
|
|
3277
3493
|
}
|
|
3278
3494
|
render(node, { mapNodeToJsx, path }) {
|
|
3279
|
-
const nestedAl = path.some(node => node
|
|
3495
|
+
const nestedAl = path.some(node => getNodeName$1(node) === 'Al');
|
|
3280
3496
|
const content = mapNodeToJsx(node.childNodes);
|
|
3281
3497
|
return nestedAl
|
|
3282
3498
|
? h("span", { role: "paragraph" }, content)
|
|
@@ -3387,25 +3603,24 @@ class OzonContentNootNode {
|
|
|
3387
3603
|
this.name = 'Noot';
|
|
3388
3604
|
this.handles = ['NootNummer'];
|
|
3389
3605
|
}
|
|
3390
|
-
identify(
|
|
3391
|
-
|
|
3392
|
-
return (_a = node.getAttribute("id")) !== null && _a !== void 0 ? _a : undefined;
|
|
3606
|
+
identify() {
|
|
3607
|
+
return 'Noot';
|
|
3393
3608
|
}
|
|
3394
|
-
render(node, { mapNodeToJsx, state:
|
|
3609
|
+
render(node, { mapNodeToJsx, state: openNoteId, setState }) {
|
|
3395
3610
|
var _a, _b;
|
|
3396
|
-
const noteId =
|
|
3397
|
-
|
|
3398
|
-
|
|
3611
|
+
const noteId = node.getAttribute('id');
|
|
3612
|
+
if (!noteId) {
|
|
3613
|
+
console.error('Noot node without id', node);
|
|
3614
|
+
return h(Fragment, null);
|
|
3615
|
+
}
|
|
3616
|
+
const noteControlsId = `dso-ozon-note-${noteId}`;
|
|
3399
3617
|
const childNodes = Array.from(node.childNodes);
|
|
3400
|
-
const nootNummer = (_b = childNodes.find(n => n
|
|
3401
|
-
const onClickNote = (event) => {
|
|
3402
|
-
event.preventDefault();
|
|
3403
|
-
setState === null || setState === void 0 ? void 0 : setState(!noteIsOpen);
|
|
3404
|
-
};
|
|
3618
|
+
const nootNummer = (_b = (_a = childNodes.find(n => getNodeName$1(n) === 'NootNummer')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : noteId;
|
|
3405
3619
|
return (h(Fragment, null,
|
|
3406
|
-
h("
|
|
3407
|
-
h("
|
|
3408
|
-
h("
|
|
3620
|
+
h("sup", null,
|
|
3621
|
+
h("button", { type: "button", class: "toggle-note", id: noteControlsId, onClick: () => setState === null || setState === void 0 ? void 0 : setState(openNoteId === noteId ? undefined : noteId), onBlur: () => setState === null || setState === void 0 ? void 0 : setState(undefined), "aria-expanded": openNoteId === noteId ? 'true' : 'false' }, nootNummer)),
|
|
3622
|
+
h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true },
|
|
3623
|
+
h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(':scope > Al')))))));
|
|
3409
3624
|
}
|
|
3410
3625
|
}
|
|
3411
3626
|
|
|
@@ -3526,7 +3741,7 @@ class OzonContentFallbackNode {
|
|
|
3526
3741
|
this.name = ['<fallback>'];
|
|
3527
3742
|
}
|
|
3528
3743
|
render(node, { mapNodeToJsx }) {
|
|
3529
|
-
return (h("span", { class: `fallback od-${node
|
|
3744
|
+
return (h("span", { class: `fallback od-${getNodeName$1(node)}` }, mapNodeToJsx(node.childNodes)));
|
|
3530
3745
|
}
|
|
3531
3746
|
}
|
|
3532
3747
|
|
|
@@ -3566,25 +3781,28 @@ class Mapper {
|
|
|
3566
3781
|
})) !== null && _a !== void 0 ? _a : this.fallbackNode;
|
|
3567
3782
|
}
|
|
3568
3783
|
mapNodeToJsx(node, context, path) {
|
|
3569
|
-
var _a
|
|
3784
|
+
var _a;
|
|
3570
3785
|
if (node instanceof NodeList) {
|
|
3571
3786
|
return h(Fragment, null, Array.from(node).map(n => this.mapNodeToJsx(n, context, path)));
|
|
3572
3787
|
}
|
|
3573
3788
|
if (Array.isArray(node)) {
|
|
3574
3789
|
return h(Fragment, null, node.map(n => this.mapNodeToJsx(n, context, path)));
|
|
3575
3790
|
}
|
|
3576
|
-
const nodeName = node
|
|
3791
|
+
const nodeName = getNodeName$1(node);
|
|
3577
3792
|
const mapper = this.findMapper(nodeName);
|
|
3578
|
-
|
|
3793
|
+
if (!mapper) {
|
|
3794
|
+
return h(Fragment, null);
|
|
3795
|
+
}
|
|
3796
|
+
const identity = (_a = mapper.identify) === null || _a === void 0 ? void 0 : _a.call(mapper, node);
|
|
3579
3797
|
const state = identity ? context.state[identity] : undefined;
|
|
3580
3798
|
const setState = identity ? (state) => context.setState(Object.assign(Object.assign({}, context.state), { [identity]: state })) : undefined;
|
|
3581
|
-
return
|
|
3799
|
+
return mapper.render(node, {
|
|
3582
3800
|
mapNodeToJsx: n => this.mapNodeToJsx(n, context, [...path, node]),
|
|
3583
3801
|
emitAnchorClick: context.emitAnchorClick,
|
|
3584
3802
|
setState,
|
|
3585
3803
|
state,
|
|
3586
3804
|
path
|
|
3587
|
-
})
|
|
3805
|
+
});
|
|
3588
3806
|
}
|
|
3589
3807
|
transform(xml, context) {
|
|
3590
3808
|
if (!this.cache || this.cache.xml !== xml) {
|
|
@@ -3595,7 +3813,7 @@ class Mapper {
|
|
|
3595
3813
|
}
|
|
3596
3814
|
}
|
|
3597
3815
|
|
|
3598
|
-
const ozonContentCss = ".sc-dso-ozon-content-h{display:block}.
|
|
3816
|
+
const ozonContentCss = ".sc-dso-ozon-content-h{display:block}button.toggle-note.sc-dso-ozon-content{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}button.toggle-note.sc-dso-ozon-content:focus,button.toggle-note.sc-dso-ozon-content:focus-visible{outline-offset:2px}button.toggle-note.sc-dso-ozon-content:active{outline:0}button.toggle-note.extern.sc-dso-ozon-content::after,button.toggle-note.download.sc-dso-ozon-content::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}button.toggle-note[disabled].sc-dso-ozon-content{color:#afcf9d}button.toggle-note.sc-dso-ozon-content:not([disabled]):hover{color:#676cb0;text-decoration:underline}button.toggle-note.sc-dso-ozon-content:not([disabled]):active{color:#676cb0}button.toggle-note.btn-align.sc-dso-ozon-content{line-height:calc(1.5em - 1px);padding:11px 0;position:relative}button.toggle-note.extern.sc-dso-ozon-content::after,button.toggle-note.download.sc-dso-ozon-content::after{position:relative;top:-2px}button.toggle-note.download.sc-dso-ozon-content::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}button.toggle-note.download[disabled].sc-dso-ozon-content::after{--dso-icon:var(--di-download-grasgroen-40)}button.toggle-note.download.sc-dso-ozon-content:not([disabled]):hover::after,button.toggle-note.download.sc-dso-ozon-content:not([disabled]):active::after{--dso-icon:var(--di-download-scampi)}button.toggle-note.extern.sc-dso-ozon-content::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}button.toggle-note.extern[disabled].sc-dso-ozon-content::after{--dso-icon:var(--di-external-link-grasgroen-40)}button.toggle-note.extern.sc-dso-ozon-content:not([disabled]):hover::after,button.toggle-note.extern.sc-dso-ozon-content:not([disabled]):active::after{--dso-icon:var(--di-external-link-scampi)}button.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content+span.sc-dso-ozon-content:not(.sr-only),button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content+span.sc-dso-ozon-content:not(.sr-only),button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only)+dso-icon.sc-dso-ozon-content,button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only)+svg.di.sc-dso-ozon-content{margin-left:8px}button.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content,button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content,button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content{vertical-align:middle}span[role=section].sc-dso-ozon-content,span[role=paragraph].sc-dso-ozon-content{display:block}.fallback.sc-dso-ozon-content{display:block}.od-Term.sc-dso-ozon-content{font-weight:700}.od-Definitie.sc-dso-ozon-content,.od-Tussenkop.sc-dso-ozon-content{font-style:italic}.od-Inhoud.sc-dso-ozon-content,.od-Inhoud.sc-dso-ozon-content>.od-Lijst.sc-dso-ozon-content,.od-IntIoRef.sc-dso-ozon-content,.od-Lidnr.sc-dso-ozon-content,.od-LiNr.sc-dso-ozon-content,.od-Opschrift.sc-dso-ozon-content,.od-Tussenkop.sc-dso-ozon-content{display:inline}.od-Al.sc-dso-ozon-content,.od-Lijstaanhef.sc-dso-ozon-content{margin-bottom:0.75em}.od-IntIoRef.sc-dso-ozon-content{border-bottom:1px dotted}.od-LiNummer.sc-dso-ozon-content{float:left;min-width:0.7em;padding-right:0.3em;text-align:right}.od-Figuur.sc-dso-ozon-content img.sc-dso-ozon-content{margin-left:25px;max-width:100%;height:auto}.od-Figuur.sc-dso-ozon-content .od-Bijschrift.sc-dso-ozon-content{font-size:0.75rem;margin-left:25px;padding-bottom:2.5rem}.od-Tabel.sc-dso-ozon-content thead.sc-dso-ozon-content{font-weight:600}.od-Kadertekst.sc-dso-ozon-content{border:1px solid #e5e5e5;margin-bottom:1rem;padding:1rem}";
|
|
3599
3817
|
|
|
3600
3818
|
let OzonContent = class extends HTMLElement {
|
|
3601
3819
|
constructor() {
|
|
@@ -3623,7 +3841,7 @@ let ProgressBar = class extends HTMLElement {
|
|
|
3623
3841
|
constructor() {
|
|
3624
3842
|
super();
|
|
3625
3843
|
this.__registerHost();
|
|
3626
|
-
|
|
3844
|
+
this.__attachShadow();
|
|
3627
3845
|
this.min = 0;
|
|
3628
3846
|
this.max = 100;
|
|
3629
3847
|
}
|
|
@@ -3641,7 +3859,7 @@ let Progressindicator = class extends HTMLElement {
|
|
|
3641
3859
|
constructor() {
|
|
3642
3860
|
super();
|
|
3643
3861
|
this.__registerHost();
|
|
3644
|
-
|
|
3862
|
+
this.__attachShadow();
|
|
3645
3863
|
}
|
|
3646
3864
|
render() {
|
|
3647
3865
|
var _a;
|
|
@@ -3656,13 +3874,13 @@ let Progressindicator = class extends HTMLElement {
|
|
|
3656
3874
|
static get style() { return progressIndicatorCss; }
|
|
3657
3875
|
};
|
|
3658
3876
|
|
|
3659
|
-
const selectableCss = ":host{display:block;padding:0 0 0 32px;position:relative}:host .dso-selectable-options{list-style:none;margin-top:8px;padding-left:0}:host .dso-selectable-options li+li{margin-top:8px}:host label{font-weight:400;line-height:24px;margin:0}:host input[type=checkbox][disabled]+label::before,:host input[type=checkbox][disabled]:active+label::before,:host input[type=checkbox][disabled]:focus+label::before,:host input[type=radio][disabled]+label::before,:host input[type=radio][disabled]:active+label::before,:host input[type=radio][disabled]:focus+label::before{background-color:#fff;box-shadow:0 0 0 2px #e5e5e5}:host input[type=checkbox],:host input[type=radio]{height:24px;left:0;margin:0;opacity:0;position:absolute;top:0;width:24px;z-index:
|
|
3877
|
+
const selectableCss = ":host{display:block;padding:0 0 0 32px;position:relative}:host .dso-selectable-options{list-style:none;margin-top:8px;padding-left:0}:host .dso-selectable-options li+li{margin-top:8px}:host label{font-weight:400;line-height:24px;margin:0}:host input[type=checkbox][disabled]+label::before,:host input[type=checkbox][disabled]:active+label::before,:host input[type=checkbox][disabled]:focus+label::before,:host input[type=radio][disabled]+label::before,:host input[type=radio][disabled]:active+label::before,:host input[type=radio][disabled]:focus+label::before{background-color:#fff;box-shadow:0 0 0 2px #e5e5e5}:host input[type=checkbox],:host input[type=radio]{height:24px;left:0;margin:0;opacity:0;position:absolute;top:0;width:24px;z-index:100;zoom:1}@media (prefers-contrast: more){:host input[type=checkbox],:host input[type=radio]{opacity:1}}:host input[type=checkbox]:not([disabled]),:host input[type=radio]:not([disabled]){cursor:pointer}:host input[type=checkbox]+label,:host input[type=radio]+label{display:inline;font-style:normal;padding-left:0}:host input[type=checkbox]+label::before,:host input[type=radio]+label::before{background:#fff;border:0;box-shadow:0 0 0 2px var(--dso-selectable-color, #275937);content:\"\";height:20px;left:2px;position:absolute;top:2px;width:20px}:host input[type=checkbox]:focus,:host input[type=radio]:focus{outline:0}:host input[type=checkbox]:focus+label::before,:host input[type=radio]:focus+label::before{box-shadow:0 0 0 3px var(--dso-selectable-color, #275937);height:18px;left:3px;top:3px;width:18px}:host input[type=checkbox]:active+label::before,:host input[type=checkbox].active+label::before,:host input[type=radio]:active+label::before,:host input[type=radio].active+label::before{background-color:#ebf3e6;box-shadow:0 0 0 1px #275937;height:22px;left:1px;top:1px;width:22px}:host input[type=checkbox]+label::before{border-radius:4px}:host input[type=checkbox]+label::after{background:transparent;content:\"\";left:6px;opacity:0;position:absolute;top:6px;zoom:1}:host input[type=checkbox]:checked+label::after,:host input[type=checkbox]:indeterminate+label::after{opacity:1}:host input[type=checkbox]:checked+label::after{border:solid;border-color:var(--dso-selectable-color, #39870c);border-top-color:transparent;border-width:0 0 3px 3px;height:8px;transform:rotate(-45deg);width:13px}:host input[type=checkbox]:indeterminate+label::after{background-color:var(--dso-selectable-color, #39870c);height:12px;width:12px}:host input[type=radio]+label::before{border-radius:50%}:host input[type=radio]+label::after{background-color:transparent;border-radius:50%;content:\"\";height:12px;left:6px;opacity:0;position:absolute;top:6px;width:12px;zoom:1}:host input[type=radio]:checked+label::after{background-color:var(--dso-selectable-color, #39870c);opacity:1}:host>dso-info{float:none;margin:8px 16px 0 -32px;width:calc(100% + 32px)}:host(:not(:last-child)){margin-bottom:8px}*,*::after,*::before{box-sizing:border-box}";
|
|
3660
3878
|
|
|
3661
3879
|
let Selectable = class extends HTMLElement {
|
|
3662
3880
|
constructor() {
|
|
3663
3881
|
super();
|
|
3664
3882
|
this.__registerHost();
|
|
3665
|
-
|
|
3883
|
+
this.__attachShadow();
|
|
3666
3884
|
this.change = createEvent(this, "dsoChange", 7);
|
|
3667
3885
|
this.infoActive = false;
|
|
3668
3886
|
this.fallbackIdentifier = createIdentifier('DsoSelectable');
|
|
@@ -3711,7 +3929,7 @@ let Toggletip = class extends HTMLElement {
|
|
|
3711
3929
|
constructor() {
|
|
3712
3930
|
super();
|
|
3713
3931
|
this.__registerHost();
|
|
3714
|
-
|
|
3932
|
+
this.__attachShadow();
|
|
3715
3933
|
this.active = false;
|
|
3716
3934
|
this.label = "Toelichting";
|
|
3717
3935
|
this.position = "right";
|
|
@@ -4063,6 +4281,10 @@ function getContainingBlock(element) {
|
|
|
4063
4281
|
|
|
4064
4282
|
var currentNode = getParentNode(element);
|
|
4065
4283
|
|
|
4284
|
+
if (isShadowRoot(currentNode)) {
|
|
4285
|
+
currentNode = currentNode.host;
|
|
4286
|
+
}
|
|
4287
|
+
|
|
4066
4288
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
4067
4289
|
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
4068
4290
|
// create a containing block.
|
|
@@ -4286,7 +4508,7 @@ function mapToStyles(_ref2) {
|
|
|
4286
4508
|
|
|
4287
4509
|
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
4288
4510
|
sideY = bottom;
|
|
4289
|
-
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
4511
|
+
var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
4290
4512
|
offsetParent[heightProp];
|
|
4291
4513
|
y -= offsetY - popperRect.height;
|
|
4292
4514
|
y *= gpuAcceleration ? 1 : -1;
|
|
@@ -4294,7 +4516,7 @@ function mapToStyles(_ref2) {
|
|
|
4294
4516
|
|
|
4295
4517
|
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
4296
4518
|
sideX = right;
|
|
4297
|
-
var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
4519
|
+
var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
4298
4520
|
offsetParent[widthProp];
|
|
4299
4521
|
x -= offsetX - popperRect.width;
|
|
4300
4522
|
x *= gpuAcceleration ? 1 : -1;
|
|
@@ -5580,7 +5802,7 @@ var maxSize = {
|
|
|
5580
5802
|
}
|
|
5581
5803
|
};
|
|
5582
5804
|
|
|
5583
|
-
const tooltipCss = ":host(.hidden){visibility:hidden}:host-context(dso-toggletip){color:red !important}:host-context(dso-toggletip) *[data-popper-placement=top] .tooltip-arrow{margin-left:3px}:host-context(dso-toggletip) *[data-popper-placement=right] .tooltip-arrow{margin-top:0}:host-context(dso-toggletip) *[data-popper-placement=bottom] .tooltip-arrow{margin-left:3px}:host-context(dso-toggletip) *[data-popper-placement=left]{margin-right:-8px !important}:host-context(dso-toggletip) *[data-popper-placement=left] .tooltip-arrow{margin-top:0}*,*::after,*::before{box-sizing:border-box}.tooltip{font-family:Asap, sans-serif;font-style:normal;font-weight:400;line-height:1.5;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;display:block;filter:drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));font-size:14px;opacity:0;position:absolute;transition:opacity 0.15s linear;z-index:
|
|
5805
|
+
const tooltipCss = ":host(.hidden){visibility:hidden}:host-context(dso-toggletip){color:red !important}:host-context(dso-toggletip) *[data-popper-placement=top] .tooltip-arrow{margin-left:3px}:host-context(dso-toggletip) *[data-popper-placement=right] .tooltip-arrow{margin-top:0}:host-context(dso-toggletip) *[data-popper-placement=bottom] .tooltip-arrow{margin-left:3px}:host-context(dso-toggletip) *[data-popper-placement=left]{margin-right:-8px !important}:host-context(dso-toggletip) *[data-popper-placement=left] .tooltip-arrow{margin-top:0}*,*::after,*::before{box-sizing:border-box}.tooltip{font-family:Asap, sans-serif;font-style:normal;font-weight:400;line-height:1.5;line-break:auto;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;display:block;filter:drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));font-size:14px;opacity:0;position:absolute;transition:opacity 0.15s linear;z-index:410}.tooltip.in{opacity:1}.tooltip .tooltip-inner{background-color:#fff;border-radius:4px;color:#191919;display:inline-block;font-size:16px;max-width:640px;padding:8px 16px;position:relative}.tooltip .tooltip-inner.dso-small{max-width:320px}.tooltip .tooltip-arrow{border-color:transparent;border-style:solid;height:0;width:0}.tooltip[data-popper-placement=top]{margin-top:-3px;padding:6px 0}.tooltip[data-popper-placement=top] .tooltip-arrow{border-top-color:#fff;border-width:6px 6px 0;bottom:0}.tooltip[data-popper-placement=top] .tooltip-arrow{margin-left:-3px}.tooltip[data-popper-placement=right]{margin-left:3px;padding:0 6px}.tooltip[data-popper-placement=right] .tooltip-arrow{border-right-color:#fff;border-width:6px 6px 6px 0;left:0}.tooltip[data-popper-placement=right] .tooltip-arrow{margin-top:-3px}.tooltip[data-popper-placement=bottom]{margin-top:3px;padding:6px 0}.tooltip[data-popper-placement=bottom] .tooltip-arrow{border-bottom-color:#fff;border-width:0 6px 6px;top:0}.tooltip[data-popper-placement=bottom] .tooltip-arrow{margin-left:-3px}.tooltip[data-popper-placement=left]{margin-left:-3px;padding:0 6px}.tooltip[data-popper-placement=left] .tooltip-arrow{border-left-color:#fff;border-width:6px 0 6px 6px;right:0}.tooltip[data-popper-placement=left] .tooltip-arrow{margin-top:-3px}";
|
|
5584
5806
|
|
|
5585
5807
|
// Keep const in sync with $tooltip-transition-duration in @dso-toolkit/sources/tooltip.scss tooltip_root() mixin
|
|
5586
5808
|
const transitionDuration = 150;
|
|
@@ -5588,7 +5810,7 @@ let Tooltip = class extends HTMLElement {
|
|
|
5588
5810
|
constructor() {
|
|
5589
5811
|
super();
|
|
5590
5812
|
this.__registerHost();
|
|
5591
|
-
|
|
5813
|
+
this.__attachShadow();
|
|
5592
5814
|
/**
|
|
5593
5815
|
* Set position of tooltip relative to target
|
|
5594
5816
|
*/
|
|
@@ -5737,32 +5959,32 @@ let Tooltip = class extends HTMLElement {
|
|
|
5737
5959
|
};
|
|
5738
5960
|
|
|
5739
5961
|
const DsoTreeItem = ({ owner, ancestors, item, index, level, setSize }) => {
|
|
5740
|
-
var _a, _b, _c;
|
|
5741
|
-
return (h("li", { key: item.id, class: clsx('tree-item', { 'has-child': item.hasItems }), role: 'none' },
|
|
5962
|
+
var _a, _b, _c, _d;
|
|
5963
|
+
return (h("li", { key: item.id, class: clsx('tree-item', { 'has-child': item.hasItems, 'is-expanded': (!!item.open && !!((_a = item.items) === null || _a === void 0 ? void 0 : _a.length)) }), role: 'none' },
|
|
5742
5964
|
h("div", { class: "tree-branch-control" }, item.hasItems
|
|
5743
5965
|
?
|
|
5744
5966
|
h("div", { onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
5745
|
-
h("dso-icon", { icon: item.open ? '
|
|
5967
|
+
h("dso-icon", { icon: item.open ? 'minus-square' : 'plus-square' }))
|
|
5746
5968
|
: h("dso-icon", null)),
|
|
5747
|
-
h("p", { class: clsx('tree-content', { 'active': item.active }, { 'selected': item.selected }), tabindex: level === 1 && index === 0 ? 0 : -1, role: "treeitem", "aria-expanded": item.hasItems ? '' + (!!item.open && !!((
|
|
5969
|
+
h("p", { class: clsx('tree-content', { 'active': item.active }, { 'selected': item.selected }), tabindex: level === 1 && index === 0 ? 0 : -1, role: "treeitem", "aria-expanded": item.hasItems ? '' + (!!item.open && !!((_b = item.items) === null || _b === void 0 ? void 0 : _b.length)) : undefined, "aria-current": item.active ? 'true' : undefined, "aria-level": level, "aria-setsize": setSize, "aria-posinset": index + 1, "aria-busy": item.loading ? 'true' : undefined, onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
5748
5970
|
item.selected && h("span", { class: "sr-only" }, "Resultaat: "),
|
|
5749
5971
|
item.href
|
|
5750
5972
|
? h("a", { href: item.href, tabindex: "-1" }, item.label)
|
|
5751
|
-
: h("span", null, item.label), (
|
|
5752
|
-
|
|
5973
|
+
: h("span", null, item.label), (_c = item.icons) === null || _c === void 0 ? void 0 :
|
|
5974
|
+
_c.map((icon) => h("dso-icon", { icon: icon.icon, title: icon.label }))),
|
|
5753
5975
|
item.open &&
|
|
5754
5976
|
h(Fragment, null, item.hasItems && !item.items && item.loading
|
|
5755
5977
|
? h("dso-progress-indicator", { size: "small", label: "Resultaten laden: een moment geduld alstublieft." })
|
|
5756
|
-
: h("ul", { role: "group" }, (
|
|
5978
|
+
: h("ul", { role: "group" }, (_d = item.items) === null || _d === void 0 ? void 0 : _d.map((childItem, index, org) => h(DsoTreeItem, { owner: owner, ancestors: [...ancestors, item], item: childItem, index: index, level: level + 1, setSize: org.length }))))));
|
|
5757
5979
|
};
|
|
5758
5980
|
|
|
5759
|
-
const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host
|
|
5981
|
+
const treeViewCss = ":host ul{list-style-type:none;padding-inline-start:32px;position:relative}:host li{position:relative}:host ul[role=tree]{padding-left:0}:host ul[role=group]::before{border-left:1px solid #275937;content:\"\";height:8px;left:44px;position:absolute;top:0;width:0}:host li:not(.has-child)::before{border-top:1px solid #275937;content:\"\";height:0;left:12px;position:absolute;top:20px;width:16px}:host li:not(.has-child)::after{border-left:1px solid #275937;content:\"\";height:100%;left:12px;position:absolute;top:8px;width:0}:host li:not(.has-child):last-child::after{height:20px;top:0}:host li.has-child::before{border-top:1px solid #275937;content:\"\";height:0;left:24px;position:absolute;top:20px;width:4px}:host li.has-child:not(:last-child)::after{border-left:1px solid #275937;content:\"\";height:calc(100% - 24px);left:12px;position:absolute;top:32px;width:0}:host li.has-child.is-expanded:last-child::after{border-left:1px solid #275937;content:\"\";height:calc(100% - 32px);left:12px;position:absolute;top:32px;width:0}:host .tree-branch-control{color:#39870c;display:inline-block;font-size:16px;margin:8px 8px 8px 0;vertical-align:top}:host .tree-branch-control>div{cursor:pointer}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0;max-width:calc(100% - 40px)}:host .tree-content a{color:#191919;text-decoration:underline}:host .tree-content a:hover,:host .tree-content a:focus{color:#191919;text-decoration:none}:host .tree-content a:active{text-decoration:none}:host .tree-content.selected{color:#191919;font-weight:700;text-decoration:underline}:host .tree-content.selected:hover,:host .tree-content.selected:focus{text-decoration:none}:host .tree-content.active{color:#8b4a6a;font-style:italic;font-weight:700;text-decoration:underline}:host .tree-content.active:hover,:host .tree-content.active:focus{text-decoration:none}:host .tree-content.active a{color:#8b4a6a}:host .tree-content.active a:hover,:host .tree-content.active a:focus{text-decoration:none}:host .tree-content dso-icon{color:#39870c;font-size:0.75em;margin-left:0.5em;vertical-align:text-bottom}*,*::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}";
|
|
5760
5982
|
|
|
5761
5983
|
let TreeView = class extends HTMLElement {
|
|
5762
5984
|
constructor() {
|
|
5763
5985
|
super();
|
|
5764
5986
|
this.__registerHost();
|
|
5765
|
-
|
|
5987
|
+
this.__attachShadow();
|
|
5766
5988
|
this.openItem = createEvent(this, "openItem", 7);
|
|
5767
5989
|
this.closeItem = createEvent(this, "closeItem", 7);
|
|
5768
5990
|
this.clickItem = createEvent(this, "clickItem", 7);
|
|
@@ -5918,13 +6140,13 @@ const ViewerGridFilterpanelButtons = ({ onApply, onCancel }) => (h("div", { clas
|
|
|
5918
6140
|
h("span", null, "Toepassen"),
|
|
5919
6141
|
h("dso-icon", { icon: "chevron-right" }))));
|
|
5920
6142
|
|
|
5921
|
-
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-bottom:16px;margin-top:24px}h1,.h1{line-height:1.25}h1{color:#275937;font-size:2rem;font-weight:700}h2,.h2{line-height:1.33}h2{color:#275937;font-size:1.5rem;font-weight:700}h3,.h3{line-height:1.2}h3{color:#275937;font-size:1.25rem;font-weight:600}h4,.h4,h5,.h5,h6,.h6{margin-bottom:16px;margin-top:12px}h4,.h4{line-height:1.5}h4{color:#275937;font-size:1rem;font-weight:600}h5,.h5{line-height:1.5}h5{color:#191919;font-size:1rem;font-weight:600}h6,.h6{line-height:1.5}*,*::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}";
|
|
6143
|
+
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-bottom:16px;margin-top:24px}h1,.h1{line-height:1.25}h1{color:#275937;font-size:2rem;font-weight:700}h2,.h2{line-height:1.33}h2{color:#275937;font-size:1.5rem;font-weight:700}h3,.h3{line-height:1.2}h3{color:#275937;font-size:1.25rem;font-weight:600}h4,.h4,h5,.h5,h6,.h6{margin-bottom:16px;margin-top:12px}h4,.h4{line-height:1.5}h4{color:#275937;font-size:1rem;font-weight:600}h5,.h5{line-height:1.5}h5{color:#191919;font-size:1rem;font-weight:600}h6,.h6{line-height:1.5}*,*::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:100}.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:101}#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}";
|
|
5922
6144
|
|
|
5923
6145
|
let ViewerGrid = class extends HTMLElement {
|
|
5924
6146
|
constructor() {
|
|
5925
6147
|
super();
|
|
5926
6148
|
this.__registerHost();
|
|
5927
|
-
|
|
6149
|
+
this.__attachShadow();
|
|
5928
6150
|
this.closeOverlay = createEvent(this, "closeOverlay", 7);
|
|
5929
6151
|
this.filterpanelCancel = createEvent(this, "filterpanelCancel", 7);
|
|
5930
6152
|
this.filterpanelApply = createEvent(this, "filterpanelApply", 7);
|