@dso-toolkit/core 36.3.0 → 38.1.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-attachments-counter.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +17 -7
- package/dist/cjs/dso-badge.cjs.entry.js +2 -8
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +11 -28
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/cjs/dso-ozon-content.cjs.entry.js +48 -5
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -2
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js +5 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +6 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/attachments-counter/attachments-counter.css +2 -2
- package/dist/collection/components/autosuggest/autosuggest.css +11 -2
- package/dist/collection/components/autosuggest/autosuggest.js +55 -8
- package/dist/collection/components/autosuggest/autosuggest.template.js +4 -1
- package/dist/collection/components/badge/badge.css +5 -0
- package/dist/collection/components/badge/badge.js +2 -11
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +12 -30
- package/dist/collection/components/header/header.css +6 -6
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +13 -12
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +4 -4
- package/dist/collection/components/highlight-box/highlight-box.css +5 -2
- package/dist/collection/components/icon/icon.css +2 -2
- package/dist/collection/components/image-overlay/image-overlay.css +8 -8
- package/dist/collection/components/info/info.css +2 -2
- package/dist/collection/components/map-controls/map-controls.css +12 -12
- package/dist/collection/components/ozon-content/nodes/al.node.js +4 -1
- package/dist/collection/components/ozon-content/nodes/inhoud.node.js +0 -1
- package/dist/collection/components/ozon-content/nodes/noot.node.js +1 -1
- package/dist/collection/components/ozon-content/nodes/opschrift.node.js +9 -0
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +2 -0
- package/dist/collection/components/ozon-content/ozon-content.css +39 -5
- package/dist/collection/components/ozon-content/ozon-content.js +110 -3
- package/dist/collection/components/ozon-content/ozon-content.template.js +6 -1
- package/dist/collection/components/selectable/selectable.template.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js +1 -2
- package/dist/collection/components/tooltip/tooltip.js +24 -2
- package/dist/collection/components/tooltip/tooltip.template.js +2 -2
- package/dist/collection/components/viewer-grid/viewer-grid.css +16 -16
- package/dist/collection/components/viewer-grid/viewer-grid.js +27 -1
- package/dist/collection/components/viewer-grid/viewer-grid.template.js +4 -1
- package/dist/custom-elements/index.js +102 -66
- package/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-af8a4337.entry.js → p-076400f4.entry.js} +1 -1
- package/dist/dso-toolkit/{p-d6c47662.entry.js → p-14fc5767.entry.js} +1 -1
- package/dist/dso-toolkit/{p-7b67e324.entry.js → p-150fe323.entry.js} +1 -1
- package/dist/dso-toolkit/{p-121c3588.entry.js → p-1894c7ae.entry.js} +1 -1
- package/dist/dso-toolkit/{p-b29184e1.entry.js → p-1e92e29d.entry.js} +1 -1
- package/dist/dso-toolkit/p-2f64bded.entry.js +1 -0
- package/dist/dso-toolkit/p-49938275.entry.js +1 -0
- package/dist/dso-toolkit/{p-efa4a33d.entry.js → p-5a56d726.entry.js} +1 -1
- package/dist/dso-toolkit/p-6ec616ee.entry.js +1 -0
- package/dist/dso-toolkit/p-7f41f2a1.entry.js +1 -0
- package/dist/dso-toolkit/p-a8cf15cf.entry.js +1 -0
- package/dist/dso-toolkit/{p-4f904355.entry.js → p-c0b7f435.entry.js} +1 -1
- package/dist/dso-toolkit/p-c32860a3.entry.js +1 -0
- package/dist/dso-toolkit/p-d76c1151.entry.js +1 -0
- package/dist/dso-toolkit/p-e1496a15.entry.js +1 -0
- package/dist/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +17 -7
- package/dist/esm/dso-badge.entry.js +2 -8
- package/dist/esm/dso-dropdown-menu.entry.js +12 -29
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/dso-info_2.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +1 -1
- package/dist/esm/dso-ozon-content.entry.js +49 -6
- package/dist/esm/dso-toggletip.entry.js +1 -2
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-tooltip.entry.js +5 -1
- package/dist/esm/dso-viewer-grid.entry.js +6 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/autosuggest/autosuggest.d.ts +8 -0
- package/dist/types/components/autosuggest/autosuggest.template.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts +1 -2
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +0 -3
- package/dist/types/components/ozon-content/nodes/opschrift.node.d.ts +6 -0
- package/dist/types/components/ozon-content/ozon-content.d.ts +25 -1
- package/dist/types/components/ozon-content/ozon-content.interfaces.d.ts +3 -0
- package/dist/types/components/ozon-content/ozon-content.template.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +4 -0
- package/dist/types/components/tooltip/tooltip.template.d.ts +1 -1
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +4 -0
- package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +1 -1
- package/dist/types/components.d.ts +69 -3
- package/package.json +10 -11
- package/dist/dso-toolkit/p-1a3db1cd.entry.js +0 -1
- package/dist/dso-toolkit/p-1fd3d18d.entry.js +0 -1
- package/dist/dso-toolkit/p-2a611af3.entry.js +0 -1
- package/dist/dso-toolkit/p-72e47943.entry.js +0 -1
- package/dist/dso-toolkit/p-a58b3108.entry.js +0 -1
- package/dist/dso-toolkit/p-a93e9760.entry.js +0 -1
- package/dist/dso-toolkit/p-d1f62081.entry.js +0 -1
- package/dist/dso-toolkit/p-efb7575f.entry.js +0 -1
|
@@ -13,7 +13,7 @@ const ViewerGridFilterpanelButtons = ({ onApply, onCancel }) => (index.h("div",
|
|
|
13
13
|
index.h("span", null, "Toepassen"),
|
|
14
14
|
index.h("dso-icon", { icon: "chevron-right" }))));
|
|
15
15
|
|
|
16
|
-
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 200ms ease-in, max-width 200ms ease-in, min-width 200ms 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 200ms 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}";
|
|
16
|
+
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:24px;vertical-align:top;width:24px}.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:24px;vertical-align:top;width:24px}.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 200ms ease-in, max-width 200ms ease-in, min-width 200ms 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 200ms 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:24px;vertical-align:top;width:24px}.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:24px;vertical-align:top;width:24px}.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:24px;vertical-align:top;width:24px}.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:24px;vertical-align:top;width:24px}.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:24px;vertical-align:top;width:24px}.filterpanel-buttons .apply-button.extern::after{background:var(--dso-icon, var(--di-external-link-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.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}";
|
|
17
17
|
|
|
18
18
|
const TRANSITION_TIME = 200; // Keep in sync with dso-viewer-grid.variables.scss:$dso-viewer-grid-transition-time;
|
|
19
19
|
let ViewerGrid = class {
|
|
@@ -25,7 +25,11 @@ let ViewerGrid = class {
|
|
|
25
25
|
this.mainSizeChange = index.createEvent(this, "mainSizeChange", 7);
|
|
26
26
|
this.filterpanelOpen = false;
|
|
27
27
|
this.overlayOpen = false;
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Size of the main content panel when component loads. Changing this attribute afterwards has no effect.
|
|
30
|
+
*/
|
|
31
|
+
this.initialMainSize = "large";
|
|
32
|
+
this.mainSize = this.initialMainSize;
|
|
29
33
|
this.filterpanelSlot = null;
|
|
30
34
|
this.overlaySlot = null;
|
|
31
35
|
this.shrinkMain = () => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-date-picker.cjs",[[2,"dso-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"dsoAutofocus":[4,"dso-autofocus"],"value":[1537],"min":[1],"max":[1],"activeFocus":[32],"focusedDay":[32],"open":[32],"visible":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-
|
|
17
|
+
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"suggestions":[16],"loading":[4],"loadingLabel":[1,"loading-label"],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]]],["dso-date-picker.cjs",[[2,"dso-date-picker",{"name":[1],"identifier":[1],"disabled":[516],"role":[1],"direction":[1],"required":[4],"dsoAutofocus":[4,"dso-autofocus"],"value":[1537],"min":[1],"max":[1],"activeFocus":[32],"focusedDay":[32],"open":[32],"visible":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"initialMainSize":[1,"initial-main-size"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[1]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content.cjs",[[2,"dso-ozon-content",{"content":[1],"inline":[516],"deleted":[516],"interactive":[516],"state":[32]}]]],["dso-progress-bar.cjs",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-dropdown-menu.cjs",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-tooltip.cjs",[[1,"dso-tooltip",{"descriptive":[516],"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"stateless":[4],"small":[4],"active":[1540],"hidden":[32],"activate":[64],"deactivate":[64]},[[0,"click","listenClick"]]]]],["dso-progress-indicator.cjs",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-info-button.cjs",[[1,"dso-info-button",{"active":[1540],"secondary":[4],"label":[1]}]]],["dso-info_2.cjs",[[1,"dso-selectable",{"type":[1],"identifier":[1],"name":[1],"value":[1],"invalid":[4],"describedById":[1,"described-by-id"],"disabled":[4],"required":[4],"checked":[4],"indeterminate":[4],"infoFixed":[4,"info-fixed"],"infoActive":[32],"toggleInfo":[64]}],[1,"dso-info",{"fixed":[516],"active":[516]}]]],["dso-icon.cjs",[[1,"dso-icon",{"icon":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
background: var(--dso-icon, var(--di-paperclip-grijs)) no-repeat;
|
|
33
33
|
background-position: center;
|
|
34
34
|
background-size: cover;
|
|
35
|
-
height:
|
|
35
|
+
height: 24px;
|
|
36
36
|
vertical-align: top;
|
|
37
|
-
width:
|
|
37
|
+
width: 24px;
|
|
38
38
|
content: "";
|
|
39
39
|
display: inline-block;
|
|
40
40
|
}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
ul
|
|
6
|
+
ul,
|
|
7
|
+
.autosuggest-progress-box {
|
|
7
8
|
background-clip: padding-box;
|
|
8
9
|
background-color: #fff;
|
|
9
10
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
@@ -18,10 +19,18 @@ ul {
|
|
|
18
19
|
top: 100%;
|
|
19
20
|
z-index: 200;
|
|
20
21
|
}
|
|
22
|
+
|
|
23
|
+
.autosuggest-progress-box {
|
|
24
|
+
padding: 12px 8px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
ul {
|
|
28
|
+
padding: 8px 0;
|
|
29
|
+
}
|
|
21
30
|
ul li {
|
|
22
31
|
display: flex;
|
|
23
32
|
justify-content: space-between;
|
|
24
|
-
padding: 4px
|
|
33
|
+
padding: 4px 16px;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
li[aria-selected=true] {
|
|
@@ -12,6 +12,14 @@ export class Autosuggest {
|
|
|
12
12
|
* the original object that was used to create the suggestion.
|
|
13
13
|
*/
|
|
14
14
|
this.suggestions = [];
|
|
15
|
+
/**
|
|
16
|
+
* Shows progress indicator when fetching results.
|
|
17
|
+
*/
|
|
18
|
+
this.loading = false;
|
|
19
|
+
/**
|
|
20
|
+
* To override progress indicator's default loading label.
|
|
21
|
+
*/
|
|
22
|
+
this.loadingLabel = "Een moment geduld.";
|
|
15
23
|
/**
|
|
16
24
|
* Whether the previous suggestions will be presented when the input gets focus again.
|
|
17
25
|
*/
|
|
@@ -33,7 +41,7 @@ export class Autosuggest {
|
|
|
33
41
|
}
|
|
34
42
|
};
|
|
35
43
|
this.onKeyDown = (event) => {
|
|
36
|
-
if (event.defaultPrevented) {
|
|
44
|
+
if (event.defaultPrevented || this.loading) {
|
|
37
45
|
return;
|
|
38
46
|
}
|
|
39
47
|
switch (event.key) {
|
|
@@ -209,13 +217,16 @@ export class Autosuggest {
|
|
|
209
217
|
const terms = this.input.value.split(' ').filter(t => t);
|
|
210
218
|
return (h(Fragment, null,
|
|
211
219
|
h("slot", null),
|
|
212
|
-
|
|
213
|
-
?
|
|
214
|
-
h("
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
:
|
|
218
|
-
|
|
220
|
+
this.loading
|
|
221
|
+
? h("div", { class: "autosuggest-progress-box" },
|
|
222
|
+
h("dso-progress-indicator", { label: this.loadingLabel }))
|
|
223
|
+
: h("ul", { role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: element => this.listbox = element, hidden: !this.showSuggestions }, this.showSuggestions
|
|
224
|
+
? this.suggestions.map((suggestion) => (h("li", { role: "option", id: this.listboxItemId(suggestion), key: suggestion.value, onMouseEnter: () => this.selectSuggestion(suggestion), onMouseLeave: () => this.resetSelectedSuggestion(), onClick: () => this.pickSelectedValue(), "aria-selected": (suggestion === this.selectedSuggestion).toString(), "aria-label": suggestion.value },
|
|
225
|
+
h("span", { class: "value" }, this.markTerms(suggestion.value, terms)),
|
|
226
|
+
suggestion.type
|
|
227
|
+
? (h("span", { class: "type" }, suggestion.type))
|
|
228
|
+
: undefined)))
|
|
229
|
+
: undefined)));
|
|
219
230
|
}
|
|
220
231
|
static get is() { return "dso-autosuggest"; }
|
|
221
232
|
static get encapsulation() { return "scoped"; }
|
|
@@ -246,6 +257,42 @@ export class Autosuggest {
|
|
|
246
257
|
},
|
|
247
258
|
"defaultValue": "[]"
|
|
248
259
|
},
|
|
260
|
+
"loading": {
|
|
261
|
+
"type": "boolean",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "boolean",
|
|
265
|
+
"resolved": "boolean",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": false,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": "Shows progress indicator when fetching results."
|
|
273
|
+
},
|
|
274
|
+
"attribute": "loading",
|
|
275
|
+
"reflect": false,
|
|
276
|
+
"defaultValue": "false"
|
|
277
|
+
},
|
|
278
|
+
"loadingLabel": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "string",
|
|
283
|
+
"resolved": "string | undefined",
|
|
284
|
+
"references": {}
|
|
285
|
+
},
|
|
286
|
+
"required": false,
|
|
287
|
+
"optional": true,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": "To override progress indicator's default loading label."
|
|
291
|
+
},
|
|
292
|
+
"attribute": "loading-label",
|
|
293
|
+
"reflect": false,
|
|
294
|
+
"defaultValue": "\"Een moment geduld.\""
|
|
295
|
+
},
|
|
249
296
|
"suggestOnFocus": {
|
|
250
297
|
"type": "boolean",
|
|
251
298
|
"mutable": false,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
|
-
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
3
|
+
export function autosuggestTemplate({ suggestions, onSelect, onChange, onSearch, suggestOnFocus, loading, loadingLabel }, children) {
|
|
3
4
|
return html `
|
|
4
5
|
<dso-autosuggest
|
|
5
6
|
.suggestions=${suggestions}
|
|
@@ -7,6 +8,8 @@ export function autosuggestTemplate({ suggestions, onSelect, onChange, onSearch,
|
|
|
7
8
|
@dsoChange=${onChange}
|
|
8
9
|
@dsoSearch=${onSearch}
|
|
9
10
|
?suggest-on-focus=${suggestOnFocus}
|
|
11
|
+
?loading=${loading}
|
|
12
|
+
loading-label=${ifDefined(loadingLabel)}
|
|
10
13
|
>
|
|
11
14
|
${children}
|
|
12
15
|
</dso-autosuggest>
|
|
@@ -3,9 +3,6 @@ import clsx from 'clsx';
|
|
|
3
3
|
export class Badge {
|
|
4
4
|
render() {
|
|
5
5
|
return (h("span", { class: clsx('dso-badge', { [`badge-${this.status}`]: this.status }) },
|
|
6
|
-
h("span", { class: "sr-only" },
|
|
7
|
-
this.status ? Badge.statusMap.get(this.status) : 'Badge',
|
|
8
|
-
": "),
|
|
9
6
|
h("slot", null)));
|
|
10
7
|
}
|
|
11
8
|
static get is() { return "dso-badge"; }
|
|
@@ -21,8 +18,8 @@ export class Badge {
|
|
|
21
18
|
"type": "string",
|
|
22
19
|
"mutable": false,
|
|
23
20
|
"complexType": {
|
|
24
|
-
"original": "'primary' | 'success' | 'info' | 'warning' | 'danger'",
|
|
25
|
-
"resolved": "\"danger\" | \"info\" | \"primary\" | \"success\" | \"warning\" | undefined",
|
|
21
|
+
"original": "'primary' | 'success' | 'info' | 'warning' | 'danger' | 'outline'",
|
|
22
|
+
"resolved": "\"danger\" | \"info\" | \"outline\" | \"primary\" | \"success\" | \"warning\" | undefined",
|
|
26
23
|
"references": {}
|
|
27
24
|
},
|
|
28
25
|
"required": false,
|
|
@@ -36,9 +33,3 @@ export class Badge {
|
|
|
36
33
|
}
|
|
37
34
|
}; }
|
|
38
35
|
}
|
|
39
|
-
Badge.statusMap = new Map([
|
|
40
|
-
['success', 'Gelukt'],
|
|
41
|
-
['info', 'Opmerking'],
|
|
42
|
-
['warning', 'Waarschuwing'],
|
|
43
|
-
['danger', 'Fout']
|
|
44
|
-
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, h, Prop,
|
|
1
|
+
import { Component, h, Prop, Element, Host } from "@stencil/core";
|
|
2
2
|
import { tabbable } from "tabbable";
|
|
3
3
|
import { v4 as uuidv4 } from "uuid";
|
|
4
4
|
export class DropdownMenu {
|
|
@@ -60,14 +60,6 @@ export class DropdownMenu {
|
|
|
60
60
|
get tabbables() {
|
|
61
61
|
return tabbable(this.host).filter((e) => e !== this.button);
|
|
62
62
|
}
|
|
63
|
-
openWatch(open) {
|
|
64
|
-
if (open) {
|
|
65
|
-
this.openPopup();
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
this.closePopup();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
63
|
connectedCallback() {
|
|
72
64
|
this.button.setAttribute("aria-haspopup", "menu");
|
|
73
65
|
this.button.setAttribute("aria-expanded", "false");
|
|
@@ -89,9 +81,6 @@ export class DropdownMenu {
|
|
|
89
81
|
li.setAttribute("role", "none");
|
|
90
82
|
}
|
|
91
83
|
}
|
|
92
|
-
if (this.open) {
|
|
93
|
-
this.openPopup();
|
|
94
|
-
}
|
|
95
84
|
}
|
|
96
85
|
componentDidRender() {
|
|
97
86
|
for (const li of Array.from(this.host.getElementsByTagName("li"))) {
|
|
@@ -105,20 +94,17 @@ export class DropdownMenu {
|
|
|
105
94
|
}
|
|
106
95
|
}
|
|
107
96
|
}
|
|
108
|
-
}
|
|
109
|
-
openPopup() {
|
|
110
|
-
this.host.setAttribute("tabindex", "-1");
|
|
111
|
-
this.host.addEventListener("keydown", this.keyDownListener);
|
|
112
|
-
this.host.addEventListener("focusout", this.focusOutListener);
|
|
113
|
-
this.button.setAttribute("aria-expanded", "true");
|
|
114
|
-
this.tabbables.forEach((tabbable) => tabbable.addEventListener("click", this.escape));
|
|
115
|
-
}
|
|
116
|
-
closePopup() {
|
|
117
97
|
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
|
|
121
|
-
|
|
98
|
+
this.button.setAttribute("aria-expanded", this.open ? "true" : "false");
|
|
99
|
+
if (this.open) {
|
|
100
|
+
this.host.addEventListener("keydown", this.keyDownListener);
|
|
101
|
+
}
|
|
102
|
+
this.tabbables.forEach((tabbable) => {
|
|
103
|
+
tabbable.removeEventListener("click", this.escape);
|
|
104
|
+
if (this.open) {
|
|
105
|
+
tabbable.addEventListener("click", this.escape);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
122
108
|
}
|
|
123
109
|
getActiveElement(root = document) {
|
|
124
110
|
const activeEl = root.activeElement;
|
|
@@ -145,7 +131,7 @@ export class DropdownMenu {
|
|
|
145
131
|
tabs[nextIndex].focus();
|
|
146
132
|
}
|
|
147
133
|
render() {
|
|
148
|
-
return (h(
|
|
134
|
+
return (h(Host, { onFocusout: this.focusOutListener, tabindex: this.open ? "-1" : undefined },
|
|
149
135
|
h("slot", { name: "toggle" }),
|
|
150
136
|
h("div", { hidden: !this.open },
|
|
151
137
|
h("slot", null))));
|
|
@@ -215,8 +201,4 @@ export class DropdownMenu {
|
|
|
215
201
|
}
|
|
216
202
|
}; }
|
|
217
203
|
static get elementRef() { return "host"; }
|
|
218
|
-
static get watchers() { return [{
|
|
219
|
-
"propName": "open",
|
|
220
|
-
"methodName": "openWatch"
|
|
221
|
-
}]; }
|
|
222
204
|
}
|
|
@@ -103,18 +103,18 @@ dso-dropdown-menu > .btn-primary::after {
|
|
|
103
103
|
background: var(--dso-icon, var(--di-chevron-down-wit)) no-repeat;
|
|
104
104
|
background-position: center;
|
|
105
105
|
background-size: cover;
|
|
106
|
-
height:
|
|
106
|
+
height: 24px;
|
|
107
107
|
vertical-align: top;
|
|
108
|
-
width:
|
|
108
|
+
width: 24px;
|
|
109
109
|
}
|
|
110
110
|
dso-dropdown-menu > .dso-secondary::after,
|
|
111
111
|
dso-dropdown-menu > .btn-default::after {
|
|
112
112
|
background: var(--dso-icon, var(--di-chevron-down)) no-repeat;
|
|
113
113
|
background-position: center;
|
|
114
114
|
background-size: cover;
|
|
115
|
-
height:
|
|
115
|
+
height: 24px;
|
|
116
116
|
vertical-align: top;
|
|
117
|
-
width:
|
|
117
|
+
width: 24px;
|
|
118
118
|
}
|
|
119
119
|
dso-dropdown-menu > .dso-secondary:hover::after,
|
|
120
120
|
dso-dropdown-menu > .btn-default:hover::after {
|
|
@@ -125,9 +125,9 @@ dso-dropdown-menu > .btn-link::after {
|
|
|
125
125
|
background: var(--dso-icon, var(--di-chevron-down)) no-repeat;
|
|
126
126
|
background-position: center;
|
|
127
127
|
background-size: cover;
|
|
128
|
-
height:
|
|
128
|
+
height: 24px;
|
|
129
129
|
vertical-align: top;
|
|
130
|
-
width:
|
|
130
|
+
width: 24px;
|
|
131
131
|
position: relative;
|
|
132
132
|
top: -2px;
|
|
133
133
|
}
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
font-family: Asap, sans-serif;
|
|
68
68
|
position: fixed;
|
|
69
69
|
right: 16px;
|
|
70
|
+
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
|
70
71
|
}
|
|
71
72
|
.open-button:focus, .open-button:focus-visible {
|
|
72
73
|
outline-offset: 2px;
|
|
@@ -123,17 +124,17 @@
|
|
|
123
124
|
background: var(--dso-icon, var(--di-download-wit)) no-repeat;
|
|
124
125
|
background-position: center;
|
|
125
126
|
background-size: cover;
|
|
126
|
-
height:
|
|
127
|
+
height: 24px;
|
|
127
128
|
vertical-align: top;
|
|
128
|
-
width:
|
|
129
|
+
width: 24px;
|
|
129
130
|
}
|
|
130
131
|
.open-button.extern::after {
|
|
131
132
|
background: var(--dso-icon, var(--di-external-link-wit)) no-repeat;
|
|
132
133
|
background-position: center;
|
|
133
134
|
background-size: cover;
|
|
134
|
-
height:
|
|
135
|
+
height: 24px;
|
|
135
136
|
vertical-align: top;
|
|
136
|
-
width:
|
|
137
|
+
width: 24px;
|
|
137
138
|
}
|
|
138
139
|
.open-button dso-icon,
|
|
139
140
|
.open-button svg.di {
|
|
@@ -223,9 +224,9 @@
|
|
|
223
224
|
background: var(--dso-icon, var(--di-download)) no-repeat;
|
|
224
225
|
background-position: center;
|
|
225
226
|
background-size: cover;
|
|
226
|
-
height:
|
|
227
|
+
height: 24px;
|
|
227
228
|
vertical-align: top;
|
|
228
|
-
width:
|
|
229
|
+
width: 24px;
|
|
229
230
|
}
|
|
230
231
|
.close-button.download:hover::after {
|
|
231
232
|
--dso-icon: var(--di-download-wit);
|
|
@@ -237,9 +238,9 @@
|
|
|
237
238
|
background: var(--dso-icon, var(--di-external-link)) no-repeat;
|
|
238
239
|
background-position: center;
|
|
239
240
|
background-size: cover;
|
|
240
|
-
height:
|
|
241
|
+
height: 24px;
|
|
241
242
|
vertical-align: top;
|
|
242
|
-
width:
|
|
243
|
+
width: 24px;
|
|
243
244
|
}
|
|
244
245
|
.close-button.extern:hover::after {
|
|
245
246
|
--dso-icon: var(--di-external-link-wit);
|
|
@@ -261,9 +262,9 @@
|
|
|
261
262
|
background: var(--dso-icon, var(--di-times)) no-repeat;
|
|
262
263
|
background-position: center;
|
|
263
264
|
background-size: cover;
|
|
264
|
-
height:
|
|
265
|
+
height: 24px;
|
|
265
266
|
vertical-align: top;
|
|
266
|
-
width:
|
|
267
|
+
width: 24px;
|
|
267
268
|
content: "";
|
|
268
269
|
display: inline-block;
|
|
269
270
|
position: absolute;
|
|
@@ -278,9 +279,9 @@
|
|
|
278
279
|
background: var(--dso-icon, var(--di-times-wit)) no-repeat;
|
|
279
280
|
background-position: center;
|
|
280
281
|
background-size: cover;
|
|
281
|
-
height:
|
|
282
|
+
height: 24px;
|
|
282
283
|
vertical-align: top;
|
|
283
|
-
width:
|
|
284
|
+
width: 24px;
|
|
284
285
|
}
|
|
285
286
|
.close-button.close {
|
|
286
287
|
display: none;
|
|
@@ -29,13 +29,13 @@ export class HelpcenterPanel {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return (h(Fragment, null,
|
|
32
|
-
h("button", { type: "button", onClick: this.openClick, class: `open-button ${this.isOpen}
|
|
32
|
+
h("button", { type: "button", onClick: this.openClick, class: `open-button ${this.isOpen}`, "aria-expanded": "false", "aria-haspopup": "dialog" },
|
|
33
33
|
h("dso-icon", { icon: "help" }),
|
|
34
34
|
h("span", null, this.label)),
|
|
35
35
|
h("div", { class: `wrapper ${this.visibility}` },
|
|
36
|
-
h("div", { class: "dimscreen" }),
|
|
37
|
-
h("div", { class: `iframe-container ${this.slideState}
|
|
38
|
-
h("button", { type: "button", class: `close-button ${this.isOpen}`, onClick: this.closeClick },
|
|
36
|
+
h("div", { class: "dimscreen", onClick: this.closeClick }),
|
|
37
|
+
h("div", { class: `iframe-container ${this.slideState}`, "aria-live": "polite" }, this.loadIframe ? h("iframe", { src: this.url }) : h("div", null)),
|
|
38
|
+
h("button", { type: "button", class: `close-button ${this.isOpen}`, onClick: this.closeClick, "aria-expanded": "true" },
|
|
39
39
|
h("span", { class: "sr-only" }, "sluiten")))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "dso-helpcenter-panel"; }
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
background-color: #f2f2f2;
|
|
29
29
|
margin-top: 16px;
|
|
30
30
|
padding: 16px;
|
|
31
|
-
margin-bottom:
|
|
31
|
+
margin-bottom: 24px;
|
|
32
32
|
}
|
|
33
33
|
.dso-highlight-box.dso-white {
|
|
34
34
|
background-color: #fff;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
position: relative;
|
|
53
53
|
}
|
|
54
54
|
.dso-highlight-box .dso-step-counter {
|
|
55
|
-
background-color: #
|
|
55
|
+
background-color: #275937;
|
|
56
56
|
border: 8px solid #79b929;
|
|
57
57
|
border-radius: 50%;
|
|
58
58
|
box-sizing: content-box;
|
|
@@ -66,4 +66,7 @@
|
|
|
66
66
|
text-align: center;
|
|
67
67
|
top: -24px;
|
|
68
68
|
width: 32px;
|
|
69
|
+
}
|
|
70
|
+
.dso-highlight-box dso-icon {
|
|
71
|
+
vertical-align: text-top;
|
|
69
72
|
}
|
|
@@ -97,9 +97,9 @@ button::-moz-focus-inner {
|
|
|
97
97
|
background: var(--dso-icon, var(--di-download)) no-repeat;
|
|
98
98
|
background-position: center;
|
|
99
99
|
background-size: cover;
|
|
100
|
-
height:
|
|
100
|
+
height: 24px;
|
|
101
101
|
vertical-align: top;
|
|
102
|
-
width:
|
|
102
|
+
width: 24px;
|
|
103
103
|
}
|
|
104
104
|
.open.download:hover::after {
|
|
105
105
|
--dso-icon: var(--di-download-wit);
|
|
@@ -111,9 +111,9 @@ button::-moz-focus-inner {
|
|
|
111
111
|
background: var(--dso-icon, var(--di-external-link)) no-repeat;
|
|
112
112
|
background-position: center;
|
|
113
113
|
background-size: cover;
|
|
114
|
-
height:
|
|
114
|
+
height: 24px;
|
|
115
115
|
vertical-align: top;
|
|
116
|
-
width:
|
|
116
|
+
width: 24px;
|
|
117
117
|
}
|
|
118
118
|
.open.extern:hover::after {
|
|
119
119
|
--dso-icon: var(--di-external-link-wit);
|
|
@@ -227,9 +227,9 @@ button::-moz-focus-inner {
|
|
|
227
227
|
background: var(--dso-icon, var(--di-download)) no-repeat;
|
|
228
228
|
background-position: center;
|
|
229
229
|
background-size: cover;
|
|
230
|
-
height:
|
|
230
|
+
height: 24px;
|
|
231
231
|
vertical-align: top;
|
|
232
|
-
width:
|
|
232
|
+
width: 24px;
|
|
233
233
|
}
|
|
234
234
|
.close.download:hover::after {
|
|
235
235
|
--dso-icon: var(--di-download-wit);
|
|
@@ -241,9 +241,9 @@ button::-moz-focus-inner {
|
|
|
241
241
|
background: var(--dso-icon, var(--di-external-link)) no-repeat;
|
|
242
242
|
background-position: center;
|
|
243
243
|
background-size: cover;
|
|
244
|
-
height:
|
|
244
|
+
height: 24px;
|
|
245
245
|
vertical-align: top;
|
|
246
|
-
width:
|
|
246
|
+
width: 24px;
|
|
247
247
|
}
|
|
248
248
|
.close.extern:hover::after {
|
|
249
249
|
--dso-icon: var(--di-external-link-wit);
|
|
@@ -37,9 +37,9 @@ button::-moz-focus-inner {
|
|
|
37
37
|
background: var(--dso-icon, var(--di-times-grijs90)) no-repeat;
|
|
38
38
|
background-position: center;
|
|
39
39
|
background-size: cover;
|
|
40
|
-
height:
|
|
40
|
+
height: 24px;
|
|
41
41
|
vertical-align: top;
|
|
42
|
-
width:
|
|
42
|
+
width: 24px;
|
|
43
43
|
content: "";
|
|
44
44
|
display: inline-block;
|
|
45
45
|
}
|