@dso-toolkit/core 33.3.0 → 34.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 +2 -2
- package/dist/cjs/dso-autosuggest.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +4 -228
- package/dist/cjs/dso-header.cjs.entry.js +2 -2
- 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-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 +5 -3
- package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-overlays.cjs.entry.js +5 -3
- package/dist/cjs/dso-ozon-content.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +2 -2
- package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +2 -2
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +778 -0
- package/dist/cjs/{index-fcdfdd38.js → index-5ea63531.js} +26 -2
- package/dist/cjs/index.esm-2ac7081c.js +267 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/alert/alert.css +0 -3
- package/dist/collection/components/anchor/anchor.template.js +17 -0
- package/dist/collection/components/attachments-counter/attachments-counter.css +0 -4
- package/dist/collection/components/autosuggest/autosuggest.css +0 -3
- package/dist/collection/components/badge/badge.css +0 -3
- package/dist/collection/components/banner/banner.css +0 -3
- package/dist/collection/components/button/button.template.js +48 -0
- package/dist/collection/components/context/context.template.js +42 -0
- package/dist/collection/components/date-picker/date-picker.css +0 -3
- package/dist/collection/components/definition-list/definition-list.template.js +36 -0
- package/dist/collection/components/dropdown-menu/dropdown-menu.css +0 -3
- package/dist/collection/components/header/header.css +0 -6
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +0 -3
- package/dist/collection/components/highlight-box/highlight-box.css +0 -3
- package/dist/collection/components/icon/icon.css +0 -4
- package/dist/collection/components/info/info.css +1 -4
- package/dist/collection/components/info-button/info-button.css +0 -3
- package/dist/collection/components/label/label.css +0 -3
- package/dist/collection/components/label-group/label-group.template.js +7 -0
- package/dist/collection/components/list/list.template.js +37 -0
- package/dist/collection/components/map-base-layers/map-base-layers.css +4 -3
- package/dist/collection/components/map-base-layers/map-base-layers.js +5 -1
- package/dist/collection/components/map-controls/map-controls.css +0 -3
- package/dist/collection/components/map-controls/map-controls.template.js +11 -16
- package/dist/collection/components/map-overlays/map-overlays.css +4 -3
- package/dist/collection/components/map-overlays/map-overlays.js +5 -1
- package/dist/collection/components/ozon-content/ozon-content.css +0 -3
- package/dist/collection/components/progress-bar/progress-bar.css +0 -3
- package/dist/collection/components/progress-indicator/progress-indicator.css +0 -3
- package/dist/collection/components/selectable/selectable.css +0 -3
- package/dist/collection/components/toggletip/toggletip.css +0 -3
- package/dist/collection/components/tooltip/tooltip.css +0 -3
- package/dist/collection/components/tree-view/tree-view.css +3 -3
- package/dist/collection/components/viewer-grid/viewer-grid-document-header.template.js +39 -0
- package/dist/collection/components/viewer-grid/viewer-grid-document-list-item.template.js +19 -0
- package/dist/collection/components/viewer-grid/viewer-grid-filterblok.template.js +28 -0
- package/dist/collection/components/viewer-grid/viewer-grid.css +251 -0
- package/dist/collection/components/viewer-grid/viewer-grid.js +127 -0
- package/dist/collection/components/viewer-grid/viewer-grid.template.js +23 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +824 -10
- package/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-22bc904d.entry.js → p-06de0fa1.entry.js} +1 -1
- package/dist/dso-toolkit/{p-ff767c21.entry.js → p-10aa1fba.entry.js} +1 -1
- package/dist/dso-toolkit/p-17f073d1.entry.js +1 -0
- package/dist/dso-toolkit/{p-75233655.entry.js → p-1fefbf8c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-a52d3623.entry.js → p-20856f91.entry.js} +1 -1
- package/dist/dso-toolkit/{p-262858dd.entry.js → p-2b6a3dfa.entry.js} +1 -1
- package/dist/dso-toolkit/{p-be5682cc.entry.js → p-348414bf.entry.js} +1 -1
- package/dist/dso-toolkit/{p-984551a8.entry.js → p-3b493a2c.entry.js} +1 -1
- package/dist/dso-toolkit/{p-0a08ac9f.entry.js → p-4e573fc5.entry.js} +1 -1
- package/dist/dso-toolkit/{p-c9c1bc8f.entry.js → p-5037944e.entry.js} +1 -1
- package/dist/dso-toolkit/p-7b006b11.entry.js +1 -0
- package/dist/dso-toolkit/p-8bf3a60e.js +5 -0
- package/dist/dso-toolkit/p-8f21d07d.entry.js +5 -0
- package/dist/dso-toolkit/{p-83f166b3.entry.js → p-94dffa65.entry.js} +1 -1
- package/dist/dso-toolkit/{p-b07991b9.entry.js → p-951f5872.entry.js} +1 -1
- package/dist/dso-toolkit/{p-7a043467.entry.js → p-a6c9e063.entry.js} +1 -1
- package/dist/dso-toolkit/{p-da3be034.entry.js → p-a7306b7b.entry.js} +1 -1
- package/dist/dso-toolkit/p-aadc4f8e.entry.js +1 -0
- package/dist/dso-toolkit/p-ad2210ad.entry.js +1 -0
- package/dist/dso-toolkit/{p-b5b946de.entry.js → p-bc14cafd.entry.js} +1 -1
- package/dist/dso-toolkit/{p-4a78a31b.entry.js → p-c54ecae1.entry.js} +1 -1
- package/dist/dso-toolkit/{p-72e4484a.entry.js → p-c95108fe.entry.js} +1 -1
- package/dist/dso-toolkit/{p-e814d644.entry.js → p-daa1e29d.entry.js} +1 -1
- package/dist/dso-toolkit/p-dad72605.js +1 -0
- package/dist/dso-toolkit/{p-2e7d535c.entry.js → p-dc86d830.entry.js} +1 -1
- package/dist/dso-toolkit/{p-19de4cc7.entry.js → p-f0b67246.entry.js} +1 -1
- package/dist/esm/dso-alert.entry.js +1 -1
- package/dist/esm/dso-attachments-counter.entry.js +2 -2
- package/dist/esm/dso-autosuggest.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +2 -226
- package/dist/esm/dso-header.entry.js +2 -2
- 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-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 +5 -3
- package/dist/esm/dso-map-controls.entry.js +1 -1
- package/dist/esm/dso-map-overlays.entry.js +5 -3
- package/dist/esm/dso-ozon-content.entry.js +1 -1
- package/dist/esm/dso-progress-bar.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +2 -2
- package/dist/esm/dso-tooltip.entry.js +1 -1
- package/dist/esm/dso-tree-view.entry.js +2 -2
- package/dist/esm/dso-viewer-grid.entry.js +774 -0
- package/dist/esm/{index-61410be2.js → index-d54cae76.js} +26 -2
- package/dist/esm/index.esm-a1362957.js +262 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/anchor/anchor.template.d.ts +2 -0
- package/dist/types/components/button/button.template.d.ts +2 -0
- package/dist/types/components/context/context.template.d.ts +3 -0
- package/dist/types/components/definition-list/definition-list.template.d.ts +3 -0
- package/dist/types/components/label-group/label-group.template.d.ts +2 -0
- package/dist/types/components/list/list.template.d.ts +3 -0
- package/dist/types/components/map-base-layers/map-base-layers.interfaces.d.ts +1 -0
- package/dist/types/components/map-overlays/map-overlays.interfaces.d.ts +1 -0
- package/dist/types/components/viewer-grid/viewer-grid-document-header.template.d.ts +3 -0
- package/dist/types/components/viewer-grid/viewer-grid-document-list-item.template.d.ts +3 -0
- package/dist/types/components/viewer-grid/viewer-grid-filterblok.template.d.ts +3 -0
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +22 -0
- package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +3 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +2 -1
- package/dist/dso-toolkit/p-99b93d2e.entry.js +0 -5
- package/dist/dso-toolkit/p-a40eeb32.js +0 -1
- package/dist/dso-toolkit/p-affe82e6.entry.js +0 -1
- package/dist/dso-toolkit/p-b3e6d377.entry.js +0 -1
- package/dist/dso-toolkit/p-ec8b74f7.entry.js +0 -1
|
@@ -66,7 +66,7 @@ Alert.statusMap = new Map([
|
|
|
66
66
|
['danger', 'Fout']
|
|
67
67
|
]);
|
|
68
68
|
|
|
69
|
-
const attachmentsCounterCss = ":host{display:inline-block;--di-paperclip-grijs:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23666%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\");--di-paperclip-wit:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\")}*,*::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}.dso-attachments{color:var(--dso-attachments-counter-color, #666);display:inline-block;font-weight:400;text-decoration:none;white-space:nowrap
|
|
69
|
+
const attachmentsCounterCss = ":host{display:inline-block;--di-paperclip-grijs:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23666%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\");--di-paperclip-wit:url(\"data:image/svg+xml,%3csvg id='paperclip' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M21.88%2c8.94%2c10%2c20.6A4.63%2c4.63%2c0%2c0%2c1%2c6.62%2c22h0a5.78%2c5.78%2c0%2c0%2c1-4.05-1.81%2c5.34%2c5.34%2c0%2c0%2c1%2c0-7.56l9.3-9.26a1%2c1%2c0%2c1%2c1%2c1.48%2c1.48l-9.3%2c9.26h0a3.26%2c3.26%2c0%2c0%2c0%2c0%2c4.6%2c3.79%2c3.79%2c0%2c0%2c0%2c2.58%2c1.21%2c2.55%2c2.55%2c0%2c0%2c0%2c1.85-.81h0L20.4%2c7.46a1.83%2c1.83%2c0%2c0%2c0%2c.5-1.39%2c2.24%2c2.24%2c0%2c0%2c0-.63-1.44%2c1.85%2c1.85%2c0%2c0%2c0-2.61%2c0h0L7.43%2c14.73a.48.48%2c0%2c0%2c0%2c0%2c.67.48.48%2c0%2c0%2c0%2c.34.14.46.46%2c0%2c0%2c0%2c.34-.14l7.36-7.28a1%2c1%2c0%2c0%2c1%2c1.48%2c0A1%2c1%2c0%2c0%2c1%2c17%2c9.6h0L9.6%2c16.88h0a2.66%2c2.66%2c0%2c0%2c1-3.65%2c0%2c2.55%2c2.55%2c0%2c0%2c1%2c0-3.63L16.17%2c3.15a4%2c4%2c0%2c0%2c1%2c5.59%2c0A4.31%2c4.31%2c0%2c0%2c1%2c23%2c6%2c3.89%2c3.89%2c0%2c0%2c1%2c21.88%2c8.94Z'/%3e %3c/svg%3e\")}*,*::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}.dso-attachments{color:var(--dso-attachments-counter-color, #666);display:inline-block;font-weight:400;text-decoration:none;white-space:nowrap}.dso-attachments::after{background:var(--dso-icon, var(--di-paperclip-grijs)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}";
|
|
70
70
|
|
|
71
71
|
let AttachmentsCounter = class extends HTMLElement {
|
|
72
72
|
constructor() {
|
|
@@ -1362,6 +1362,42 @@ var tabbable = function tabbable(el, options) {
|
|
|
1362
1362
|
return tabbableNodes;
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
|
+
var focusable = function focusable(el, options) {
|
|
1366
|
+
options = options || {};
|
|
1367
|
+
var candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
1368
|
+
return candidates;
|
|
1369
|
+
};
|
|
1370
|
+
|
|
1371
|
+
var isTabbable = function isTabbable(node, options) {
|
|
1372
|
+
options = options || {};
|
|
1373
|
+
|
|
1374
|
+
if (!node) {
|
|
1375
|
+
throw new Error('No node provided');
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
if (matches.call(node, candidateSelector) === false) {
|
|
1379
|
+
return false;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
return isNodeMatchingSelectorTabbable(options, node);
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
1386
|
+
|
|
1387
|
+
var isFocusable = function isFocusable(node, options) {
|
|
1388
|
+
options = options || {};
|
|
1389
|
+
|
|
1390
|
+
if (!node) {
|
|
1391
|
+
throw new Error('No node provided');
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
if (matches.call(node, focusableCandidateSelector) === false) {
|
|
1395
|
+
return false;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
return isNodeMatchingSelectorFocusable(options, node);
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1365
1401
|
const dropdownMenuCss = ":host(:focus){outline:none}:host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%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-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%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-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%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:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%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\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%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\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%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:inline-block;position:relative}";
|
|
1366
1402
|
|
|
1367
1403
|
let DropdownMenu = class extends HTMLElement {
|
|
@@ -1520,7 +1556,7 @@ let DropdownMenu = class extends HTMLElement {
|
|
|
1520
1556
|
static get style() { return dropdownMenuCss; }
|
|
1521
1557
|
};
|
|
1522
1558
|
|
|
1523
|
-
const headerCss = ":host{--di-chevron-down-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:block}.dso-header{border-bottom:1px solid #ccc;display:flex;flex-wrap:wrap}@media screen and (min-width: 768px){.dso-header{align-items:center}}@media screen and (max-width: 991px){.dso-header.use-drop-down{flex-wrap:nowrap}}.logo-container{display:flex;flex-wrap:wrap;padding-bottom:16px;padding-top:16px}@media screen and (min-width: 768px){.sub-logo{margin-left:24px}}@media screen and (max-width: 767px){.sub-logo{flex-basis:100%}}.login,.logout{margin-right:16px}.profile a,.logout a,.login a{text-decoration:none;color:#39870c;font-weight:600}.profile a:hover,.profile a:focus,.logout a:hover,.logout a:focus,.login a:hover,.login a:focus{text-decoration:none}.profile a:active,.logout a:active,.login a:active{text-decoration:underline}.dso-header-session{display:flex;margin-left:auto}.dso-header-session .profile a{margin-left:8px}.dso-header-session .profile+.logout{border-left:3px solid #ccc;margin-left:16px;padding-left:16px}.dso-navbar{flex-basis:100%}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn::after{content:\"\";display:inline-block;margin-left:8px}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.btn-primary::after{background:var(--dso-icon, var(--di-chevron-down-wit)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.btn-default::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary:hover::after,dso-dropdown-menu>.btn-default:hover::after{--dso-icon:var(--di-chevron-down-wit)}dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn-link::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;position:relative;top:-2px}dso-dropdown-menu>.dso-tertiary:hover::after,dso-dropdown-menu>.btn-link:hover::after{--dso-icon:var(--di-chevron-down-scampi)}dso-dropdown-menu .dso-group-label{color:#999;font-size:0.875em;font-weight:400;margin:0;padding:4px 20px 2px;text-transform:uppercase}dso-dropdown-menu ul{margin:0;padding:0}dso-dropdown-menu ul:not(:last-child){border-bottom:1px solid #e5e5e5;margin-bottom:11px;padding-bottom:11px}dso-dropdown-menu .dso-dropdown-options{background-clip:padding-box;background-color:#fff;border-radius:4px;border:1px solid rgba(0, 0, 0, 0.15);box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);font-size:16px;margin:2px 0 0;min-width:160px;padding:5px 0;position:absolute;text-align:left;top:100%;z-index:1000}dso-dropdown-menu .dso-dropdown-options li{list-style:none}dso-dropdown-menu .dso-dropdown-options li a:visited{color:#191919}dso-dropdown-menu .dso-dropdown-options li a,dso-dropdown-menu .dso-dropdown-options li button{text-decoration:none;clear:both;color:#191919;display:block;font-weight:400;line-height:1.5;padding:3px 20px;text-decoration:none;white-space:nowrap
|
|
1559
|
+
const headerCss = ":host{--di-chevron-down-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up-bosgroen:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23275937%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:block}.dso-header{border-bottom:1px solid #ccc;display:flex;flex-wrap:wrap}@media screen and (min-width: 768px){.dso-header{align-items:center}}@media screen and (max-width: 991px){.dso-header.use-drop-down{flex-wrap:nowrap}}.logo-container{display:flex;flex-wrap:wrap;padding-bottom:16px;padding-top:16px}@media screen and (min-width: 768px){.sub-logo{margin-left:24px}}@media screen and (max-width: 767px){.sub-logo{flex-basis:100%}}.login,.logout{margin-right:16px}.profile a,.logout a,.login a{text-decoration:none;color:#39870c;font-weight:600}.profile a:hover,.profile a:focus,.logout a:hover,.logout a:focus,.login a:hover,.login a:focus{text-decoration:none}.profile a:active,.logout a:active,.login a:active{text-decoration:underline}.dso-header-session{display:flex;margin-left:auto}.dso-header-session .profile a{margin-left:8px}.dso-header-session .profile+.logout{border-left:3px solid #ccc;margin-left:16px;padding-left:16px}.dso-navbar{flex-basis:100%}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn::after{content:\"\";display:inline-block;margin-left:8px}dso-dropdown-menu>.dso-primary::after,dso-dropdown-menu>.btn-primary::after{background:var(--dso-icon, var(--di-chevron-down-wit)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary::after,dso-dropdown-menu>.btn-default::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em}dso-dropdown-menu>.dso-secondary:hover::after,dso-dropdown-menu>.btn-default:hover::after{--dso-icon:var(--di-chevron-down-wit)}dso-dropdown-menu>.dso-tertiary::after,dso-dropdown-menu>.btn-link::after{background:var(--dso-icon, var(--di-chevron-down)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;position:relative;top:-2px}dso-dropdown-menu>.dso-tertiary:hover::after,dso-dropdown-menu>.btn-link:hover::after{--dso-icon:var(--di-chevron-down-scampi)}dso-dropdown-menu .dso-group-label{color:#999;font-size:0.875em;font-weight:400;margin:0;padding:4px 20px 2px;text-transform:uppercase}dso-dropdown-menu ul{margin:0;padding:0}dso-dropdown-menu ul:not(:last-child){border-bottom:1px solid #e5e5e5;margin-bottom:11px;padding-bottom:11px}dso-dropdown-menu .dso-dropdown-options{background-clip:padding-box;background-color:#fff;border-radius:4px;border:1px solid rgba(0, 0, 0, 0.15);box-shadow:0 8px 10px 1px rgba(0, 0, 0, 0.4);font-size:16px;margin:2px 0 0;min-width:160px;padding:5px 0;position:absolute;text-align:left;top:100%;z-index:1000}dso-dropdown-menu .dso-dropdown-options li{list-style:none}dso-dropdown-menu .dso-dropdown-options li a:visited{color:#191919}dso-dropdown-menu .dso-dropdown-options li a,dso-dropdown-menu .dso-dropdown-options li button{text-decoration:none;clear:both;color:#191919;display:block;font-weight:400;line-height:1.5;padding:3px 20px;text-decoration:none;white-space:nowrap}dso-dropdown-menu .dso-dropdown-options li a:hover,dso-dropdown-menu .dso-dropdown-options li a:focus,dso-dropdown-menu .dso-dropdown-options li a:active,dso-dropdown-menu .dso-dropdown-options li button:hover,dso-dropdown-menu .dso-dropdown-options li button:focus,dso-dropdown-menu .dso-dropdown-options li button:active{text-decoration:underline}dso-dropdown-menu .dso-dropdown-options li a:hover,dso-dropdown-menu .dso-dropdown-options li a:focus,dso-dropdown-menu .dso-dropdown-options li button:hover,dso-dropdown-menu .dso-dropdown-options li button:focus{background-color:#39870c;border-color:#39870c;color:#fff;text-decoration:none}dso-dropdown-menu .dso-dropdown-options li button{background-color:transparent;border:0;border-radius:0;text-align:inherit;width:100%}dso-dropdown-menu[dropdown-align=right] .dso-dropdown-options{right:0}dso-dropdown-menu[open]>.dso-primary::after,dso-dropdown-menu[open]>.btn-primary::after{--dso-icon:var(--di-chevron-up-wit)}dso-dropdown-menu[open]>.dso-secondary::after,dso-dropdown-menu[open]>.btn-default::after{--dso-icon:var(--di-chevron-up)}dso-dropdown-menu[open]>.dso-secondary:hover::after,dso-dropdown-menu[open]>.btn-default:hover::after{--dso-icon:var(--di-chevron-up-wit)}dso-dropdown-menu[open]>.dso-tertiary::after,dso-dropdown-menu[open]>.btn-link::after{--dso-icon:var(--di-chevron-up)}dso-dropdown-menu[open]>.dso-tertiary:hover::after,dso-dropdown-menu[open]>.btn-link:hover::after{--dso-icon:var(--di-chevron-up-scampi)}dso-dropdown-menu[open] button::after{background:var(--dso-icon, var(--di-chevron-up-bosgroen)) no-repeat;background-position:center;background-size:cover;height:1.2em;vertical-align:top;width:1.2em}dso-dropdown-menu[checkable] .dso-group-label{padding-left:40px}dso-dropdown-menu[checkable] li a,dso-dropdown-menu[checkable] li button{padding-left:40px}dso-dropdown-menu[checkable] li.dso-checked a:not(:focus),dso-dropdown-menu[checkable] li.dso-checked button:not(:focus){background-color:#39870c;border-color:#39870c;color:#fff}dso-dropdown-menu[checkable] li.dso-checked a::before,dso-dropdown-menu[checkable] li.dso-checked button::before{background:var(--dso-icon, var(--di-check-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px;content:\"\";display:block;float:left;margin-left:-32px;margin-right:8px}dso-dropdown-menu button{align-items:flex-end;background-color:transparent;border:0;display:flex;font-family:Asap, sans-serif;padding-right:32px}dso-dropdown-menu button::after{background:var(--dso-icon, var(--di-chevron-down-bosgroen)) no-repeat;background-position:center;background-size:cover;height:1.2em;vertical-align:top;width:1.2em;content:\"\";display:inline-block;margin-left:8px;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media screen and (max-width: 991px){dso-dropdown-menu[dropdown-align=right] .dso-dropdown-options{right:-16px}}@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:100vw}}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.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{top:28px}}.dropdown dso-dropdown-menu .dso-dropdown-options{top:calc(100% + 29px)}@media screen and (max-width: 767px){.dropdown dso-dropdown-menu .dso-dropdown-options{top:72px}}.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}.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}";
|
|
1524
1560
|
|
|
1525
1561
|
const minDesktopViewportWidth = 992;
|
|
1526
1562
|
let Header = class extends HTMLElement {
|
|
@@ -2272,7 +2308,7 @@ let Icon = class extends HTMLElement {
|
|
|
2272
2308
|
static get style() { return iconCss; }
|
|
2273
2309
|
};
|
|
2274
2310
|
|
|
2275
|
-
const infoCss = ":host{--di-times-
|
|
2311
|
+
const infoCss = ":host{--di-times-grijs90:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\");display:block;background-color:#f2f2f2;padding:16px 32px 16px 16px;position:relative}:host>button{background-color:transparent;border-style:none;padding:0;position:absolute;right:8px;top:8px}:host>button::before{background:var(--dso-icon, var(--di-times-grijs90)) no-repeat;background-position:center;background-size:cover;height:1.5em;vertical-align:top;width:1.5em;content:\"\";display:inline-block}:host(:not([active]):not([fixed])){display:none}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
2276
2312
|
|
|
2277
2313
|
let Info = class extends HTMLElement {
|
|
2278
2314
|
constructor() {
|
|
@@ -2329,7 +2365,7 @@ Label.statusMap = new Map([
|
|
|
2329
2365
|
['danger', 'Fout']
|
|
2330
2366
|
]);
|
|
2331
2367
|
|
|
2332
|
-
const mapBaseLayersCss = ":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}";
|
|
2368
|
+
const mapBaseLayersCss = ":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}";
|
|
2333
2369
|
|
|
2334
2370
|
let MapBaseLayers = class extends HTMLElement {
|
|
2335
2371
|
constructor() {
|
|
@@ -2342,7 +2378,9 @@ let MapBaseLayers = class extends HTMLElement {
|
|
|
2342
2378
|
this.baseLayerChange.emit({ activeBaseLayer: baseLayer });
|
|
2343
2379
|
}
|
|
2344
2380
|
render() {
|
|
2345
|
-
return (h("fieldset", { class: "form-group dso-radios" }, h("legend", { class: "sr-only" }, "Achtergrond"), h("div", { class: "dso-label-container" }, h("span", { class: "control-label", "aria-hidden": "true" }, "Achtergrond")), h("div", { class: "dso-field-container" }, this.baseLayers.map(baseLayer => (h("dso-selectable", { key: baseLayer.id, type: "radio", value: baseLayer.name, checked: baseLayer.checked, onDsoChange: () => this.baseLayerChangeHandler(baseLayer) }, baseLayer.name
|
|
2381
|
+
return (h("fieldset", { class: "form-group dso-radios" }, h("legend", { class: "sr-only" }, "Achtergrond"), h("div", { class: "dso-label-container" }, h("span", { class: "control-label", "aria-hidden": "true" }, "Achtergrond")), h("div", { class: "dso-field-container" }, this.baseLayers.map(baseLayer => (h("dso-selectable", { key: baseLayer.id, type: "radio", value: baseLayer.name, checked: baseLayer.checked, disabled: baseLayer.disabled, onDsoChange: () => this.baseLayerChangeHandler(baseLayer) }, baseLayer.name, baseLayer.info
|
|
2382
|
+
? h("p", { slot: "info" }, baseLayer.info)
|
|
2383
|
+
: null))))));
|
|
2346
2384
|
}
|
|
2347
2385
|
static get style() { return mapBaseLayersCss; }
|
|
2348
2386
|
};
|
|
@@ -2398,7 +2436,7 @@ let MapControls = class extends HTMLElement {
|
|
|
2398
2436
|
};
|
|
2399
2437
|
_closeButtonElement = new WeakMap(), _toggleButtonElement = new WeakMap();
|
|
2400
2438
|
|
|
2401
|
-
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}";
|
|
2439
|
+
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}";
|
|
2402
2440
|
|
|
2403
2441
|
let MapOverlays = class extends HTMLElement {
|
|
2404
2442
|
constructor() {
|
|
@@ -2412,7 +2450,9 @@ let MapOverlays = class extends HTMLElement {
|
|
|
2412
2450
|
this.toggleOverlay.emit({ overlay, checked });
|
|
2413
2451
|
}
|
|
2414
2452
|
render() {
|
|
2415
|
-
return (h("fieldset", { class: "form-group dso-checkboxes" }, h("legend", { class: "sr-only" }, "Kaartlagen"), h("div", { class: "dso-label-container" }, h("span", { class: "control-label", "aria-hidden": "true" }, "Kaartlagen")), h("div", { class: "dso-field-container" }, this.overlays.map(overlay => (h("dso-selectable", { type: "checkbox", value: overlay.name, checked: overlay.checked, disabled: overlay.disabled, onDsoChange: e => this.overlayChangeHandler(overlay, e) }, overlay.name
|
|
2453
|
+
return (h("fieldset", { class: "form-group dso-checkboxes" }, h("legend", { class: "sr-only" }, "Kaartlagen"), h("div", { class: "dso-label-container" }, h("span", { class: "control-label", "aria-hidden": "true" }, "Kaartlagen")), h("div", { class: "dso-field-container" }, this.overlays.map(overlay => (h("dso-selectable", { type: "checkbox", value: overlay.name, checked: overlay.checked, disabled: overlay.disabled, onDsoChange: e => this.overlayChangeHandler(overlay, e) }, overlay.name, overlay.info
|
|
2454
|
+
? h("p", { slot: "info" }, overlay.info)
|
|
2455
|
+
: null))))));
|
|
2416
2456
|
}
|
|
2417
2457
|
static get style() { return mapOverlaysCss; }
|
|
2418
2458
|
};
|
|
@@ -5041,7 +5081,7 @@ const DsoTreeItem = ({ owner, ancestors, item, index, level, setSize }) => {
|
|
|
5041
5081
|
: h("ul", { role: "group" }, (_c = item.items) === null || _c === void 0 ? void 0 : _c.map((childItem, index, org) => h(DsoTreeItem, { owner: owner, ancestors: [...ancestors, item], item: childItem, index: index, level: level + 1, setSize: org.length }))))));
|
|
5042
5082
|
};
|
|
5043
5083
|
|
|
5044
|
-
const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content.active{font-weight:700}:host .tree-content.active:hover{text-decoration:underline}:host .tree-content.active a{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 a,:host .tree-content a:visited{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 dso-icon{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}";
|
|
5084
|
+
const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block;margin:8px 0;vertical-align:top}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0;width:calc(100% - 24px)}:host .tree-content.active{font-weight:700}:host .tree-content.active:hover{text-decoration:underline}:host .tree-content.active a{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 a,:host .tree-content a:visited{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 dso-icon{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}";
|
|
5045
5085
|
|
|
5046
5086
|
let TreeView = class extends HTMLElement {
|
|
5047
5087
|
constructor() {
|
|
@@ -5196,6 +5236,778 @@ let TreeView = class extends HTMLElement {
|
|
|
5196
5236
|
static get style() { return treeViewCss; }
|
|
5197
5237
|
};
|
|
5198
5238
|
|
|
5239
|
+
/*!
|
|
5240
|
+
* focus-trap 6.7.3
|
|
5241
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
5242
|
+
*/
|
|
5243
|
+
|
|
5244
|
+
function ownKeys(object, enumerableOnly) {
|
|
5245
|
+
var keys = Object.keys(object);
|
|
5246
|
+
|
|
5247
|
+
if (Object.getOwnPropertySymbols) {
|
|
5248
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
5249
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
5250
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
5251
|
+
})), keys.push.apply(keys, symbols);
|
|
5252
|
+
}
|
|
5253
|
+
|
|
5254
|
+
return keys;
|
|
5255
|
+
}
|
|
5256
|
+
|
|
5257
|
+
function _objectSpread2(target) {
|
|
5258
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
5259
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
5260
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
5261
|
+
_defineProperty(target, key, source[key]);
|
|
5262
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
5263
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
5264
|
+
});
|
|
5265
|
+
}
|
|
5266
|
+
|
|
5267
|
+
return target;
|
|
5268
|
+
}
|
|
5269
|
+
|
|
5270
|
+
function _defineProperty(obj, key, value) {
|
|
5271
|
+
if (key in obj) {
|
|
5272
|
+
Object.defineProperty(obj, key, {
|
|
5273
|
+
value: value,
|
|
5274
|
+
enumerable: true,
|
|
5275
|
+
configurable: true,
|
|
5276
|
+
writable: true
|
|
5277
|
+
});
|
|
5278
|
+
} else {
|
|
5279
|
+
obj[key] = value;
|
|
5280
|
+
}
|
|
5281
|
+
|
|
5282
|
+
return obj;
|
|
5283
|
+
}
|
|
5284
|
+
|
|
5285
|
+
var activeFocusTraps = function () {
|
|
5286
|
+
var trapQueue = [];
|
|
5287
|
+
return {
|
|
5288
|
+
activateTrap: function activateTrap(trap) {
|
|
5289
|
+
if (trapQueue.length > 0) {
|
|
5290
|
+
var activeTrap = trapQueue[trapQueue.length - 1];
|
|
5291
|
+
|
|
5292
|
+
if (activeTrap !== trap) {
|
|
5293
|
+
activeTrap.pause();
|
|
5294
|
+
}
|
|
5295
|
+
}
|
|
5296
|
+
|
|
5297
|
+
var trapIndex = trapQueue.indexOf(trap);
|
|
5298
|
+
|
|
5299
|
+
if (trapIndex === -1) {
|
|
5300
|
+
trapQueue.push(trap);
|
|
5301
|
+
} else {
|
|
5302
|
+
// move this existing trap to the front of the queue
|
|
5303
|
+
trapQueue.splice(trapIndex, 1);
|
|
5304
|
+
trapQueue.push(trap);
|
|
5305
|
+
}
|
|
5306
|
+
},
|
|
5307
|
+
deactivateTrap: function deactivateTrap(trap) {
|
|
5308
|
+
var trapIndex = trapQueue.indexOf(trap);
|
|
5309
|
+
|
|
5310
|
+
if (trapIndex !== -1) {
|
|
5311
|
+
trapQueue.splice(trapIndex, 1);
|
|
5312
|
+
}
|
|
5313
|
+
|
|
5314
|
+
if (trapQueue.length > 0) {
|
|
5315
|
+
trapQueue[trapQueue.length - 1].unpause();
|
|
5316
|
+
}
|
|
5317
|
+
}
|
|
5318
|
+
};
|
|
5319
|
+
}();
|
|
5320
|
+
|
|
5321
|
+
var isSelectableInput = function isSelectableInput(node) {
|
|
5322
|
+
return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
|
|
5323
|
+
};
|
|
5324
|
+
|
|
5325
|
+
var isEscapeEvent = function isEscapeEvent(e) {
|
|
5326
|
+
return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
|
|
5327
|
+
};
|
|
5328
|
+
|
|
5329
|
+
var isTabEvent = function isTabEvent(e) {
|
|
5330
|
+
return e.key === 'Tab' || e.keyCode === 9;
|
|
5331
|
+
};
|
|
5332
|
+
|
|
5333
|
+
var delay = function delay(fn) {
|
|
5334
|
+
return setTimeout(fn, 0);
|
|
5335
|
+
}; // Array.find/findIndex() are not supported on IE; this replicates enough
|
|
5336
|
+
// of Array.findIndex() for our needs
|
|
5337
|
+
|
|
5338
|
+
|
|
5339
|
+
var findIndex = function findIndex(arr, fn) {
|
|
5340
|
+
var idx = -1;
|
|
5341
|
+
arr.every(function (value, i) {
|
|
5342
|
+
if (fn(value)) {
|
|
5343
|
+
idx = i;
|
|
5344
|
+
return false; // break
|
|
5345
|
+
}
|
|
5346
|
+
|
|
5347
|
+
return true; // next
|
|
5348
|
+
});
|
|
5349
|
+
return idx;
|
|
5350
|
+
};
|
|
5351
|
+
/**
|
|
5352
|
+
* Get an option's value when it could be a plain value, or a handler that provides
|
|
5353
|
+
* the value.
|
|
5354
|
+
* @param {*} value Option's value to check.
|
|
5355
|
+
* @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
|
|
5356
|
+
* @returns {*} The `value`, or the handler's returned value.
|
|
5357
|
+
*/
|
|
5358
|
+
|
|
5359
|
+
|
|
5360
|
+
var valueOrHandler = function valueOrHandler(value) {
|
|
5361
|
+
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
5362
|
+
params[_key - 1] = arguments[_key];
|
|
5363
|
+
}
|
|
5364
|
+
|
|
5365
|
+
return typeof value === 'function' ? value.apply(void 0, params) : value;
|
|
5366
|
+
};
|
|
5367
|
+
|
|
5368
|
+
var getActualTarget = function getActualTarget(event) {
|
|
5369
|
+
// NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
|
|
5370
|
+
// shadow host. However, event.target.composedPath() will be an array of
|
|
5371
|
+
// nodes "clicked" from inner-most (the actual element inside the shadow) to
|
|
5372
|
+
// outer-most (the host HTML document). If we have access to composedPath(),
|
|
5373
|
+
// then use its first element; otherwise, fall back to event.target (and
|
|
5374
|
+
// this only works for an _open_ shadow DOM; otherwise,
|
|
5375
|
+
// composedPath()[0] === event.target always).
|
|
5376
|
+
return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
|
|
5377
|
+
};
|
|
5378
|
+
|
|
5379
|
+
var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
5380
|
+
// SSR: a live trap shouldn't be created in this type of environment so this
|
|
5381
|
+
// should be safe code to execute if the `document` option isn't specified
|
|
5382
|
+
var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
|
|
5383
|
+
|
|
5384
|
+
var config = _objectSpread2({
|
|
5385
|
+
returnFocusOnDeactivate: true,
|
|
5386
|
+
escapeDeactivates: true,
|
|
5387
|
+
delayInitialFocus: true
|
|
5388
|
+
}, userOptions);
|
|
5389
|
+
|
|
5390
|
+
var state = {
|
|
5391
|
+
// @type {Array<HTMLElement>}
|
|
5392
|
+
containers: [],
|
|
5393
|
+
// list of objects identifying the first and last tabbable nodes in all containers/groups in
|
|
5394
|
+
// the trap
|
|
5395
|
+
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
5396
|
+
// is active, but the trap should never get to a state where there isn't at least one group
|
|
5397
|
+
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
5398
|
+
// result in an error being thrown)
|
|
5399
|
+
// @type {Array<{
|
|
5400
|
+
// container: HTMLElement,
|
|
5401
|
+
// firstTabbableNode: HTMLElement|null,
|
|
5402
|
+
// lastTabbableNode: HTMLElement|null,
|
|
5403
|
+
// nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
5404
|
+
// }>}
|
|
5405
|
+
tabbableGroups: [],
|
|
5406
|
+
nodeFocusedBeforeActivation: null,
|
|
5407
|
+
mostRecentlyFocusedNode: null,
|
|
5408
|
+
active: false,
|
|
5409
|
+
paused: false,
|
|
5410
|
+
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
5411
|
+
// has been delayed during activation
|
|
5412
|
+
delayInitialFocusTimer: undefined
|
|
5413
|
+
};
|
|
5414
|
+
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
|
|
5415
|
+
|
|
5416
|
+
var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
|
|
5417
|
+
return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
|
|
5418
|
+
};
|
|
5419
|
+
|
|
5420
|
+
var containersContain = function containersContain(element) {
|
|
5421
|
+
return !!(element && state.containers.some(function (container) {
|
|
5422
|
+
return container.contains(element);
|
|
5423
|
+
}));
|
|
5424
|
+
};
|
|
5425
|
+
/**
|
|
5426
|
+
* Gets the node for the given option, which is expected to be an option that
|
|
5427
|
+
* can be either a DOM node, a string that is a selector to get a node, `false`
|
|
5428
|
+
* (if a node is explicitly NOT given), or a function that returns any of these
|
|
5429
|
+
* values.
|
|
5430
|
+
* @param {string} optionName
|
|
5431
|
+
* @returns {undefined | false | HTMLElement | SVGElement} Returns
|
|
5432
|
+
* `undefined` if the option is not specified; `false` if the option
|
|
5433
|
+
* resolved to `false` (node explicitly not given); otherwise, the resolved
|
|
5434
|
+
* DOM node.
|
|
5435
|
+
* @throws {Error} If the option is set, not `false`, and is not, or does not
|
|
5436
|
+
* resolve to a node.
|
|
5437
|
+
*/
|
|
5438
|
+
|
|
5439
|
+
|
|
5440
|
+
var getNodeForOption = function getNodeForOption(optionName) {
|
|
5441
|
+
var optionValue = config[optionName];
|
|
5442
|
+
|
|
5443
|
+
if (typeof optionValue === 'function') {
|
|
5444
|
+
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
5445
|
+
params[_key2 - 1] = arguments[_key2];
|
|
5446
|
+
}
|
|
5447
|
+
|
|
5448
|
+
optionValue = optionValue.apply(void 0, params);
|
|
5449
|
+
}
|
|
5450
|
+
|
|
5451
|
+
if (!optionValue) {
|
|
5452
|
+
if (optionValue === undefined || optionValue === false) {
|
|
5453
|
+
return optionValue;
|
|
5454
|
+
} // else, empty string (invalid), null (invalid), 0 (invalid)
|
|
5455
|
+
|
|
5456
|
+
|
|
5457
|
+
throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5460
|
+
var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
|
|
5461
|
+
|
|
5462
|
+
if (typeof optionValue === 'string') {
|
|
5463
|
+
node = doc.querySelector(optionValue); // resolve to node, or null if fails
|
|
5464
|
+
|
|
5465
|
+
if (!node) {
|
|
5466
|
+
throw new Error("`".concat(optionName, "` as selector refers to no known node"));
|
|
5467
|
+
}
|
|
5468
|
+
}
|
|
5469
|
+
|
|
5470
|
+
return node;
|
|
5471
|
+
};
|
|
5472
|
+
|
|
5473
|
+
var getInitialFocusNode = function getInitialFocusNode() {
|
|
5474
|
+
var node = getNodeForOption('initialFocus'); // false explicitly indicates we want no initialFocus at all
|
|
5475
|
+
|
|
5476
|
+
if (node === false) {
|
|
5477
|
+
return false;
|
|
5478
|
+
}
|
|
5479
|
+
|
|
5480
|
+
if (node === undefined) {
|
|
5481
|
+
// option not specified: use fallback options
|
|
5482
|
+
if (containersContain(doc.activeElement)) {
|
|
5483
|
+
node = doc.activeElement;
|
|
5484
|
+
} else {
|
|
5485
|
+
var firstTabbableGroup = state.tabbableGroups[0];
|
|
5486
|
+
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode; // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
|
|
5487
|
+
|
|
5488
|
+
node = firstTabbableNode || getNodeForOption('fallbackFocus');
|
|
5489
|
+
}
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5492
|
+
if (!node) {
|
|
5493
|
+
throw new Error('Your focus-trap needs to have at least one focusable element');
|
|
5494
|
+
}
|
|
5495
|
+
|
|
5496
|
+
return node;
|
|
5497
|
+
};
|
|
5498
|
+
|
|
5499
|
+
var updateTabbableNodes = function updateTabbableNodes() {
|
|
5500
|
+
state.tabbableGroups = state.containers.map(function (container) {
|
|
5501
|
+
var tabbableNodes = tabbable(container); // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
|
|
5502
|
+
// are a superset of tabbable nodes
|
|
5503
|
+
|
|
5504
|
+
var focusableNodes = focusable(container);
|
|
5505
|
+
|
|
5506
|
+
if (tabbableNodes.length > 0) {
|
|
5507
|
+
return {
|
|
5508
|
+
container: container,
|
|
5509
|
+
firstTabbableNode: tabbableNodes[0],
|
|
5510
|
+
lastTabbableNode: tabbableNodes[tabbableNodes.length - 1],
|
|
5511
|
+
|
|
5512
|
+
/**
|
|
5513
|
+
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
5514
|
+
* in this container, if any.
|
|
5515
|
+
* @param {HTMLElement} node
|
|
5516
|
+
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
5517
|
+
* in reverse.
|
|
5518
|
+
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
5519
|
+
*/
|
|
5520
|
+
nextTabbableNode: function nextTabbableNode(node) {
|
|
5521
|
+
var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
5522
|
+
// NOTE: If tabindex is positive (in order to manipulate the tab order separate
|
|
5523
|
+
// from the DOM order), this __will not work__ because the list of focusableNodes,
|
|
5524
|
+
// while it contains tabbable nodes, does not sort its nodes in any order other
|
|
5525
|
+
// than DOM order, because it can't: Where would you place focusable (but not
|
|
5526
|
+
// tabbable) nodes in that order? They have no order, because they aren't tabbale...
|
|
5527
|
+
// Support for positive tabindex is already broken and hard to manage (possibly
|
|
5528
|
+
// not supportable, TBD), so this isn't going to make things worse than they
|
|
5529
|
+
// already are, and at least makes things better for the majority of cases where
|
|
5530
|
+
// tabindex is either 0/unset or negative.
|
|
5531
|
+
// FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
|
|
5532
|
+
var nodeIdx = focusableNodes.findIndex(function (n) {
|
|
5533
|
+
return n === node;
|
|
5534
|
+
});
|
|
5535
|
+
|
|
5536
|
+
if (forward) {
|
|
5537
|
+
return focusableNodes.slice(nodeIdx + 1).find(function (n) {
|
|
5538
|
+
return isTabbable(n);
|
|
5539
|
+
});
|
|
5540
|
+
}
|
|
5541
|
+
|
|
5542
|
+
return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
|
|
5543
|
+
return isTabbable(n);
|
|
5544
|
+
});
|
|
5545
|
+
}
|
|
5546
|
+
};
|
|
5547
|
+
}
|
|
5548
|
+
|
|
5549
|
+
return undefined;
|
|
5550
|
+
}).filter(function (group) {
|
|
5551
|
+
return !!group;
|
|
5552
|
+
}); // remove groups with no tabbable nodes
|
|
5553
|
+
// throw if no groups have tabbable nodes and we don't have a fallback focus node either
|
|
5554
|
+
|
|
5555
|
+
if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
|
|
5556
|
+
) {
|
|
5557
|
+
throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
|
|
5558
|
+
}
|
|
5559
|
+
};
|
|
5560
|
+
|
|
5561
|
+
var tryFocus = function tryFocus(node) {
|
|
5562
|
+
if (node === false) {
|
|
5563
|
+
return;
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5566
|
+
if (node === doc.activeElement) {
|
|
5567
|
+
return;
|
|
5568
|
+
}
|
|
5569
|
+
|
|
5570
|
+
if (!node || !node.focus) {
|
|
5571
|
+
tryFocus(getInitialFocusNode());
|
|
5572
|
+
return;
|
|
5573
|
+
}
|
|
5574
|
+
|
|
5575
|
+
node.focus({
|
|
5576
|
+
preventScroll: !!config.preventScroll
|
|
5577
|
+
});
|
|
5578
|
+
state.mostRecentlyFocusedNode = node;
|
|
5579
|
+
|
|
5580
|
+
if (isSelectableInput(node)) {
|
|
5581
|
+
node.select();
|
|
5582
|
+
}
|
|
5583
|
+
};
|
|
5584
|
+
|
|
5585
|
+
var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
|
|
5586
|
+
var node = getNodeForOption('setReturnFocus', previousActiveElement);
|
|
5587
|
+
return node ? node : node === false ? false : previousActiveElement;
|
|
5588
|
+
}; // This needs to be done on mousedown and touchstart instead of click
|
|
5589
|
+
// so that it precedes the focus event.
|
|
5590
|
+
|
|
5591
|
+
|
|
5592
|
+
var checkPointerDown = function checkPointerDown(e) {
|
|
5593
|
+
var target = getActualTarget(e);
|
|
5594
|
+
|
|
5595
|
+
if (containersContain(target)) {
|
|
5596
|
+
// allow the click since it ocurred inside the trap
|
|
5597
|
+
return;
|
|
5598
|
+
}
|
|
5599
|
+
|
|
5600
|
+
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
5601
|
+
// immediately deactivate the trap
|
|
5602
|
+
trap.deactivate({
|
|
5603
|
+
// if, on deactivation, we should return focus to the node originally-focused
|
|
5604
|
+
// when the trap was activated (or the configured `setReturnFocus` node),
|
|
5605
|
+
// then assume it's also OK to return focus to the outside node that was
|
|
5606
|
+
// just clicked, causing deactivation, as long as that node is focusable;
|
|
5607
|
+
// if it isn't focusable, then return focus to the original node focused
|
|
5608
|
+
// on activation (or the configured `setReturnFocus` node)
|
|
5609
|
+
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
5610
|
+
// which will result in the outside click setting focus to the node
|
|
5611
|
+
// that was clicked, whether it's focusable or not; by setting
|
|
5612
|
+
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
5613
|
+
// on activation (or the configured `setReturnFocus` node)
|
|
5614
|
+
returnFocus: config.returnFocusOnDeactivate && !isFocusable(target)
|
|
5615
|
+
});
|
|
5616
|
+
return;
|
|
5617
|
+
} // This is needed for mobile devices.
|
|
5618
|
+
// (If we'll only let `click` events through,
|
|
5619
|
+
// then on mobile they will be blocked anyways if `touchstart` is blocked.)
|
|
5620
|
+
|
|
5621
|
+
|
|
5622
|
+
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
5623
|
+
// allow the click outside the trap to take place
|
|
5624
|
+
return;
|
|
5625
|
+
} // otherwise, prevent the click
|
|
5626
|
+
|
|
5627
|
+
|
|
5628
|
+
e.preventDefault();
|
|
5629
|
+
}; // In case focus escapes the trap for some strange reason, pull it back in.
|
|
5630
|
+
|
|
5631
|
+
|
|
5632
|
+
var checkFocusIn = function checkFocusIn(e) {
|
|
5633
|
+
var target = getActualTarget(e);
|
|
5634
|
+
var targetContained = containersContain(target); // In Firefox when you Tab out of an iframe the Document is briefly focused.
|
|
5635
|
+
|
|
5636
|
+
if (targetContained || target instanceof Document) {
|
|
5637
|
+
if (targetContained) {
|
|
5638
|
+
state.mostRecentlyFocusedNode = target;
|
|
5639
|
+
}
|
|
5640
|
+
} else {
|
|
5641
|
+
// escaped! pull it back in to where it just left
|
|
5642
|
+
e.stopImmediatePropagation();
|
|
5643
|
+
tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
|
|
5644
|
+
}
|
|
5645
|
+
}; // Hijack Tab events on the first and last focusable nodes of the trap,
|
|
5646
|
+
// in order to prevent focus from escaping. If it escapes for even a
|
|
5647
|
+
// moment it can end up scrolling the page and causing confusion so we
|
|
5648
|
+
// kind of need to capture the action at the keydown phase.
|
|
5649
|
+
|
|
5650
|
+
|
|
5651
|
+
var checkTab = function checkTab(e) {
|
|
5652
|
+
var target = getActualTarget(e);
|
|
5653
|
+
updateTabbableNodes();
|
|
5654
|
+
var destinationNode = null;
|
|
5655
|
+
|
|
5656
|
+
if (state.tabbableGroups.length > 0) {
|
|
5657
|
+
// make sure the target is actually contained in a group
|
|
5658
|
+
// NOTE: the target may also be the container itself if it's focusable
|
|
5659
|
+
// with tabIndex='-1' and was given initial focus
|
|
5660
|
+
var containerIndex = findIndex(state.tabbableGroups, function (_ref) {
|
|
5661
|
+
var container = _ref.container;
|
|
5662
|
+
return container.contains(target);
|
|
5663
|
+
});
|
|
5664
|
+
var containerGroup = containerIndex >= 0 ? state.tabbableGroups[containerIndex] : undefined;
|
|
5665
|
+
|
|
5666
|
+
if (containerIndex < 0) {
|
|
5667
|
+
// target not found in any group: quite possible focus has escaped the trap,
|
|
5668
|
+
// so bring it back in to...
|
|
5669
|
+
if (e.shiftKey) {
|
|
5670
|
+
// ...the last node in the last group
|
|
5671
|
+
destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
|
|
5672
|
+
} else {
|
|
5673
|
+
// ...the first node in the first group
|
|
5674
|
+
destinationNode = state.tabbableGroups[0].firstTabbableNode;
|
|
5675
|
+
}
|
|
5676
|
+
} else if (e.shiftKey) {
|
|
5677
|
+
// REVERSE
|
|
5678
|
+
// is the target the first tabbable node in a group?
|
|
5679
|
+
var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
|
|
5680
|
+
var firstTabbableNode = _ref2.firstTabbableNode;
|
|
5681
|
+
return target === firstTabbableNode;
|
|
5682
|
+
});
|
|
5683
|
+
|
|
5684
|
+
if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup.nextTabbableNode(target, false))) {
|
|
5685
|
+
// an exception case where the target is either the container itself, or
|
|
5686
|
+
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
5687
|
+
// and user clicked on it or node was programmatically given focus)
|
|
5688
|
+
// and is not followed by any other tabbable node, in which
|
|
5689
|
+
// case, we should handle shift+tab as if focus were on the container's
|
|
5690
|
+
// first tabbable node, and go to the last tabbable node of the LAST group
|
|
5691
|
+
startOfGroupIndex = containerIndex;
|
|
5692
|
+
}
|
|
5693
|
+
|
|
5694
|
+
if (startOfGroupIndex >= 0) {
|
|
5695
|
+
// YES: then shift+tab should go to the last tabbable node in the
|
|
5696
|
+
// previous group (and wrap around to the last tabbable node of
|
|
5697
|
+
// the LAST group if it's the first tabbable node of the FIRST group)
|
|
5698
|
+
var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
|
|
5699
|
+
var destinationGroup = state.tabbableGroups[destinationGroupIndex];
|
|
5700
|
+
destinationNode = destinationGroup.lastTabbableNode;
|
|
5701
|
+
}
|
|
5702
|
+
} else {
|
|
5703
|
+
// FORWARD
|
|
5704
|
+
// is the target the last tabbable node in a group?
|
|
5705
|
+
var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
|
|
5706
|
+
var lastTabbableNode = _ref3.lastTabbableNode;
|
|
5707
|
+
return target === lastTabbableNode;
|
|
5708
|
+
});
|
|
5709
|
+
|
|
5710
|
+
if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target) && !isTabbable(target) && !containerGroup.nextTabbableNode(target))) {
|
|
5711
|
+
// an exception case where the target is the container itself, or
|
|
5712
|
+
// a non-tabbable node that was given focus (i.e. tabindex is negative
|
|
5713
|
+
// and user clicked on it or node was programmatically given focus)
|
|
5714
|
+
// and is not followed by any other tabbable node, in which
|
|
5715
|
+
// case, we should handle tab as if focus were on the container's
|
|
5716
|
+
// last tabbable node, and go to the first tabbable node of the FIRST group
|
|
5717
|
+
lastOfGroupIndex = containerIndex;
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
if (lastOfGroupIndex >= 0) {
|
|
5721
|
+
// YES: then tab should go to the first tabbable node in the next
|
|
5722
|
+
// group (and wrap around to the first tabbable node of the FIRST
|
|
5723
|
+
// group if it's the last tabbable node of the LAST group)
|
|
5724
|
+
var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
|
|
5725
|
+
|
|
5726
|
+
var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
|
|
5727
|
+
destinationNode = _destinationGroup.firstTabbableNode;
|
|
5728
|
+
}
|
|
5729
|
+
}
|
|
5730
|
+
} else {
|
|
5731
|
+
// NOTE: the fallbackFocus option does not support returning false to opt-out
|
|
5732
|
+
destinationNode = getNodeForOption('fallbackFocus');
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5735
|
+
if (destinationNode) {
|
|
5736
|
+
e.preventDefault();
|
|
5737
|
+
tryFocus(destinationNode);
|
|
5738
|
+
} // else, let the browser take care of [shift+]tab and move the focus
|
|
5739
|
+
|
|
5740
|
+
};
|
|
5741
|
+
|
|
5742
|
+
var checkKey = function checkKey(e) {
|
|
5743
|
+
if (isEscapeEvent(e) && valueOrHandler(config.escapeDeactivates, e) !== false) {
|
|
5744
|
+
e.preventDefault();
|
|
5745
|
+
trap.deactivate();
|
|
5746
|
+
return;
|
|
5747
|
+
}
|
|
5748
|
+
|
|
5749
|
+
if (isTabEvent(e)) {
|
|
5750
|
+
checkTab(e);
|
|
5751
|
+
return;
|
|
5752
|
+
}
|
|
5753
|
+
};
|
|
5754
|
+
|
|
5755
|
+
var checkClick = function checkClick(e) {
|
|
5756
|
+
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
5757
|
+
return;
|
|
5758
|
+
}
|
|
5759
|
+
|
|
5760
|
+
var target = getActualTarget(e);
|
|
5761
|
+
|
|
5762
|
+
if (containersContain(target)) {
|
|
5763
|
+
return;
|
|
5764
|
+
}
|
|
5765
|
+
|
|
5766
|
+
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
5767
|
+
return;
|
|
5768
|
+
}
|
|
5769
|
+
|
|
5770
|
+
e.preventDefault();
|
|
5771
|
+
e.stopImmediatePropagation();
|
|
5772
|
+
}; //
|
|
5773
|
+
// EVENT LISTENERS
|
|
5774
|
+
//
|
|
5775
|
+
|
|
5776
|
+
|
|
5777
|
+
var addListeners = function addListeners() {
|
|
5778
|
+
if (!state.active) {
|
|
5779
|
+
return;
|
|
5780
|
+
} // There can be only one listening focus trap at a time
|
|
5781
|
+
|
|
5782
|
+
|
|
5783
|
+
activeFocusTraps.activateTrap(trap); // Delay ensures that the focused element doesn't capture the event
|
|
5784
|
+
// that caused the focus trap activation.
|
|
5785
|
+
|
|
5786
|
+
state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
|
|
5787
|
+
tryFocus(getInitialFocusNode());
|
|
5788
|
+
}) : tryFocus(getInitialFocusNode());
|
|
5789
|
+
doc.addEventListener('focusin', checkFocusIn, true);
|
|
5790
|
+
doc.addEventListener('mousedown', checkPointerDown, {
|
|
5791
|
+
capture: true,
|
|
5792
|
+
passive: false
|
|
5793
|
+
});
|
|
5794
|
+
doc.addEventListener('touchstart', checkPointerDown, {
|
|
5795
|
+
capture: true,
|
|
5796
|
+
passive: false
|
|
5797
|
+
});
|
|
5798
|
+
doc.addEventListener('click', checkClick, {
|
|
5799
|
+
capture: true,
|
|
5800
|
+
passive: false
|
|
5801
|
+
});
|
|
5802
|
+
doc.addEventListener('keydown', checkKey, {
|
|
5803
|
+
capture: true,
|
|
5804
|
+
passive: false
|
|
5805
|
+
});
|
|
5806
|
+
return trap;
|
|
5807
|
+
};
|
|
5808
|
+
|
|
5809
|
+
var removeListeners = function removeListeners() {
|
|
5810
|
+
if (!state.active) {
|
|
5811
|
+
return;
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5814
|
+
doc.removeEventListener('focusin', checkFocusIn, true);
|
|
5815
|
+
doc.removeEventListener('mousedown', checkPointerDown, true);
|
|
5816
|
+
doc.removeEventListener('touchstart', checkPointerDown, true);
|
|
5817
|
+
doc.removeEventListener('click', checkClick, true);
|
|
5818
|
+
doc.removeEventListener('keydown', checkKey, true);
|
|
5819
|
+
return trap;
|
|
5820
|
+
}; //
|
|
5821
|
+
// TRAP DEFINITION
|
|
5822
|
+
//
|
|
5823
|
+
|
|
5824
|
+
|
|
5825
|
+
trap = {
|
|
5826
|
+
activate: function activate(activateOptions) {
|
|
5827
|
+
if (state.active) {
|
|
5828
|
+
return this;
|
|
5829
|
+
}
|
|
5830
|
+
|
|
5831
|
+
var onActivate = getOption(activateOptions, 'onActivate');
|
|
5832
|
+
var onPostActivate = getOption(activateOptions, 'onPostActivate');
|
|
5833
|
+
var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
|
|
5834
|
+
|
|
5835
|
+
if (!checkCanFocusTrap) {
|
|
5836
|
+
updateTabbableNodes();
|
|
5837
|
+
}
|
|
5838
|
+
|
|
5839
|
+
state.active = true;
|
|
5840
|
+
state.paused = false;
|
|
5841
|
+
state.nodeFocusedBeforeActivation = doc.activeElement;
|
|
5842
|
+
|
|
5843
|
+
if (onActivate) {
|
|
5844
|
+
onActivate();
|
|
5845
|
+
}
|
|
5846
|
+
|
|
5847
|
+
var finishActivation = function finishActivation() {
|
|
5848
|
+
if (checkCanFocusTrap) {
|
|
5849
|
+
updateTabbableNodes();
|
|
5850
|
+
}
|
|
5851
|
+
|
|
5852
|
+
addListeners();
|
|
5853
|
+
|
|
5854
|
+
if (onPostActivate) {
|
|
5855
|
+
onPostActivate();
|
|
5856
|
+
}
|
|
5857
|
+
};
|
|
5858
|
+
|
|
5859
|
+
if (checkCanFocusTrap) {
|
|
5860
|
+
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
5861
|
+
return this;
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
finishActivation();
|
|
5865
|
+
return this;
|
|
5866
|
+
},
|
|
5867
|
+
deactivate: function deactivate(deactivateOptions) {
|
|
5868
|
+
if (!state.active) {
|
|
5869
|
+
return this;
|
|
5870
|
+
}
|
|
5871
|
+
|
|
5872
|
+
clearTimeout(state.delayInitialFocusTimer); // noop if undefined
|
|
5873
|
+
|
|
5874
|
+
state.delayInitialFocusTimer = undefined;
|
|
5875
|
+
removeListeners();
|
|
5876
|
+
state.active = false;
|
|
5877
|
+
state.paused = false;
|
|
5878
|
+
activeFocusTraps.deactivateTrap(trap);
|
|
5879
|
+
var onDeactivate = getOption(deactivateOptions, 'onDeactivate');
|
|
5880
|
+
var onPostDeactivate = getOption(deactivateOptions, 'onPostDeactivate');
|
|
5881
|
+
var checkCanReturnFocus = getOption(deactivateOptions, 'checkCanReturnFocus');
|
|
5882
|
+
|
|
5883
|
+
if (onDeactivate) {
|
|
5884
|
+
onDeactivate();
|
|
5885
|
+
}
|
|
5886
|
+
|
|
5887
|
+
var returnFocus = getOption(deactivateOptions, 'returnFocus', 'returnFocusOnDeactivate');
|
|
5888
|
+
|
|
5889
|
+
var finishDeactivation = function finishDeactivation() {
|
|
5890
|
+
delay(function () {
|
|
5891
|
+
if (returnFocus) {
|
|
5892
|
+
tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
5893
|
+
}
|
|
5894
|
+
|
|
5895
|
+
if (onPostDeactivate) {
|
|
5896
|
+
onPostDeactivate();
|
|
5897
|
+
}
|
|
5898
|
+
});
|
|
5899
|
+
};
|
|
5900
|
+
|
|
5901
|
+
if (returnFocus && checkCanReturnFocus) {
|
|
5902
|
+
checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
|
|
5903
|
+
return this;
|
|
5904
|
+
}
|
|
5905
|
+
|
|
5906
|
+
finishDeactivation();
|
|
5907
|
+
return this;
|
|
5908
|
+
},
|
|
5909
|
+
pause: function pause() {
|
|
5910
|
+
if (state.paused || !state.active) {
|
|
5911
|
+
return this;
|
|
5912
|
+
}
|
|
5913
|
+
|
|
5914
|
+
state.paused = true;
|
|
5915
|
+
removeListeners();
|
|
5916
|
+
return this;
|
|
5917
|
+
},
|
|
5918
|
+
unpause: function unpause() {
|
|
5919
|
+
if (!state.paused || !state.active) {
|
|
5920
|
+
return this;
|
|
5921
|
+
}
|
|
5922
|
+
|
|
5923
|
+
state.paused = false;
|
|
5924
|
+
updateTabbableNodes();
|
|
5925
|
+
addListeners();
|
|
5926
|
+
return this;
|
|
5927
|
+
},
|
|
5928
|
+
updateContainerElements: function updateContainerElements(containerElements) {
|
|
5929
|
+
var elementsAsArray = [].concat(containerElements).filter(Boolean);
|
|
5930
|
+
state.containers = elementsAsArray.map(function (element) {
|
|
5931
|
+
return typeof element === 'string' ? doc.querySelector(element) : element;
|
|
5932
|
+
});
|
|
5933
|
+
|
|
5934
|
+
if (state.active) {
|
|
5935
|
+
updateTabbableNodes();
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5938
|
+
return this;
|
|
5939
|
+
}
|
|
5940
|
+
}; // initialize container elements
|
|
5941
|
+
|
|
5942
|
+
trap.updateContainerElements(elements);
|
|
5943
|
+
return trap;
|
|
5944
|
+
};
|
|
5945
|
+
|
|
5946
|
+
const viewerGridCss = "*,*::after,*::before{box-sizing:border-box}:host{display:flex;height:100vh;overflow:hidden;position:relative}:host([small]) .main{flex-basis:375px}@media screen and (max-width: 375px){:host([small]) .main{transition:none;flex-basis:100vw}}:host([medium]) .main{flex-basis:624px}@media screen and (max-width: 624px){:host([medium]) .main{transition:none;flex-basis:100vw}}:host([large]) .main{flex-basis:60%;min-width:768px;max-width:1024px}@media screen and (max-width: 768px){:host([large]) .main{transition:none;flex-basis:100vw;min-width:auto;max-width:auto}}.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}.sizing-buttons{display:flex;justify-content:flex-end;margin-bottom:8px}.main{background-color:#fff;box-shadow:2px 0 5px #666;flex-shrink:0;flex-grow:0;height:100%;transition:flex-basis 0.2s ease-in, max-width 0.2s ease-in, min-width 0.2s ease-in;padding:8px 16px;overflow-y:auto;z-index:1}.map{height:100%;width:100%;overflow:hidden}.overlay{background-color:#fff;box-shadow:-2px 0 5px #666;height:100%;overflow-y:auto;padding:40px 16px 8px;position:absolute;right:0;width:624px;z-index:2}";
|
|
5947
|
+
|
|
5948
|
+
let ViewerGrid = class extends HTMLElement {
|
|
5949
|
+
constructor() {
|
|
5950
|
+
super();
|
|
5951
|
+
this.__registerHost();
|
|
5952
|
+
attachShadow(this);
|
|
5953
|
+
this.closeOverlay = createEvent(this, "closeOverlay", 7);
|
|
5954
|
+
this.overlayOpen = false;
|
|
5955
|
+
this.mainSize = "large";
|
|
5956
|
+
this.shrinkMain = () => {
|
|
5957
|
+
this.mainSize = this.mainSize == "large" ? "medium" : "small";
|
|
5958
|
+
};
|
|
5959
|
+
this.expandMain = () => {
|
|
5960
|
+
this.mainSize = this.mainSize == "small" ? "medium" : "large";
|
|
5961
|
+
};
|
|
5962
|
+
this.keyDownListener = (event) => {
|
|
5963
|
+
if (event.key != "Escape") {
|
|
5964
|
+
return;
|
|
5965
|
+
}
|
|
5966
|
+
this.closeOverlay.emit(event);
|
|
5967
|
+
};
|
|
5968
|
+
}
|
|
5969
|
+
updateFocusTrap() {
|
|
5970
|
+
if (!this.trap) {
|
|
5971
|
+
return;
|
|
5972
|
+
}
|
|
5973
|
+
if (this.overlayOpen) {
|
|
5974
|
+
this.trap.activate();
|
|
5975
|
+
this.host.addEventListener("keydown", this.keyDownListener);
|
|
5976
|
+
}
|
|
5977
|
+
else {
|
|
5978
|
+
this.trap.deactivate();
|
|
5979
|
+
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
5980
|
+
}
|
|
5981
|
+
}
|
|
5982
|
+
connectedCallback() {
|
|
5983
|
+
this.overlaySlot = this.host.querySelector("div[slot = 'overlay']");
|
|
5984
|
+
}
|
|
5985
|
+
componentDidLoad() {
|
|
5986
|
+
if (!this.overlay || !this.overlaySlot) {
|
|
5987
|
+
return;
|
|
5988
|
+
}
|
|
5989
|
+
this.trap = createFocusTrap([this.overlay, this.overlaySlot], {
|
|
5990
|
+
escapeDeactivates: false,
|
|
5991
|
+
allowOutsideClick: true,
|
|
5992
|
+
});
|
|
5993
|
+
this.updateFocusTrap();
|
|
5994
|
+
}
|
|
5995
|
+
componentDidUpdate() {
|
|
5996
|
+
this.updateFocusTrap();
|
|
5997
|
+
}
|
|
5998
|
+
disconnectedCallback() {
|
|
5999
|
+
if (this.trap) {
|
|
6000
|
+
this.trap.deactivate();
|
|
6001
|
+
}
|
|
6002
|
+
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
6003
|
+
}
|
|
6004
|
+
render() {
|
|
6005
|
+
return (h(Host, Object.assign({}, { [this.mainSize]: true }), h("div", { class: "main" }, h("div", { class: "sizing-buttons" }, h("button", { type: "button", class: "shrink", disabled: this.mainSize == "small", onClick: this.shrinkMain }, h("dso-icon", { icon: "chevron-left" })), h("button", { type: "button", class: "expand", disabled: this.mainSize == "large", onClick: this.expandMain }, h("dso-icon", { icon: "chevron-right" }))), h("slot", { name: "main" })), h("div", { class: "map" }, h("slot", { name: "map" })), h("div", { class: "overlay", hidden: !this.overlayOpen || !this.overlaySlot, ref: (element) => (this.overlay = element) }, h("button", { type: "button", class: "overlay-close-button", onClick: (e) => this.closeOverlay.emit(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "sluiten")), h("slot", { name: "overlay" }))));
|
|
6006
|
+
}
|
|
6007
|
+
get host() { return this; }
|
|
6008
|
+
static get style() { return viewerGridCss; }
|
|
6009
|
+
};
|
|
6010
|
+
|
|
5199
6011
|
const DsoAlert = /*@__PURE__*/proxyCustomElement(Alert, [1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]);
|
|
5200
6012
|
const DsoAttachmentsCounter = /*@__PURE__*/proxyCustomElement(AttachmentsCounter, [1,"dso-attachments-counter",{"count":[2]}]);
|
|
5201
6013
|
const DsoAutosuggest = /*@__PURE__*/proxyCustomElement(Autosuggest, [6,"dso-autosuggest",{"suggestions":[16],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]);
|
|
@@ -5220,6 +6032,7 @@ const DsoSelectable = /*@__PURE__*/proxyCustomElement(Selectable, [1,"dso-select
|
|
|
5220
6032
|
const DsoToggletip = /*@__PURE__*/proxyCustomElement(Toggletip, [1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]);
|
|
5221
6033
|
const DsoTooltip = /*@__PURE__*/proxyCustomElement(Tooltip, [1,"dso-tooltip",{"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"stateless":[4],"small":[4],"active":[1540],"hidden":[32]},[[0,"click","listenClick"]]]);
|
|
5222
6034
|
const DsoTreeView = /*@__PURE__*/proxyCustomElement(TreeView, [1,"dso-tree-view",{"collection":[16]}]);
|
|
6035
|
+
const DsoViewerGrid = /*@__PURE__*/proxyCustomElement(ViewerGrid, [1,"dso-viewer-grid",{"overlayOpen":[4,"overlay-open"],"mainSize":[32]}]);
|
|
5223
6036
|
const defineCustomElements = (opts) => {
|
|
5224
6037
|
if (typeof customElements !== 'undefined') {
|
|
5225
6038
|
[
|
|
@@ -5246,7 +6059,8 @@ const defineCustomElements = (opts) => {
|
|
|
5246
6059
|
DsoSelectable,
|
|
5247
6060
|
DsoToggletip,
|
|
5248
6061
|
DsoTooltip,
|
|
5249
|
-
DsoTreeView
|
|
6062
|
+
DsoTreeView,
|
|
6063
|
+
DsoViewerGrid
|
|
5250
6064
|
].forEach(cmp => {
|
|
5251
6065
|
if (!customElements.get(cmp.is)) {
|
|
5252
6066
|
customElements.define(cmp.is, cmp, opts);
|
|
@@ -5255,4 +6069,4 @@ const defineCustomElements = (opts) => {
|
|
|
5255
6069
|
}
|
|
5256
6070
|
};
|
|
5257
6071
|
|
|
5258
|
-
export { DsoAlert, DsoAttachmentsCounter, DsoAutosuggest, DsoBadge, DsoBanner, DsoDatePicker, DsoDropdownMenu, DsoHeader, DsoHelpcenterPanel, DsoHighlightBox, DsoIcon, DsoInfo, DsoInfoButton, DsoLabel, DsoMapBaseLayers, DsoMapControls, DsoMapOverlays, DsoOzonContent, DsoProgressBar, DsoProgressIndicator, DsoSelectable, DsoToggletip, DsoTooltip, DsoTreeView, defineCustomElements };
|
|
6072
|
+
export { DsoAlert, DsoAttachmentsCounter, DsoAutosuggest, DsoBadge, DsoBanner, DsoDatePicker, DsoDropdownMenu, DsoHeader, DsoHelpcenterPanel, DsoHighlightBox, DsoIcon, DsoInfo, DsoInfoButton, DsoLabel, DsoMapBaseLayers, DsoMapControls, DsoMapOverlays, DsoOzonContent, DsoProgressBar, DsoProgressIndicator, DsoSelectable, DsoToggletip, DsoTooltip, DsoTreeView, DsoViewerGrid, defineCustomElements };
|