@dso-toolkit/core 57.0.0 → 58.0.1
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-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
- package/dist/cjs/dso-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/dso-annotation-output_3.cjs.entry.js +1 -1
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +7 -4
- package/dist/cjs/dso-autosuggest.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-banner.cjs.entry.js +1 -1
- package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
- package/dist/cjs/dso-card.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 +1 -1
- package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +13 -45
- package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-pagination.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-responsive-element.cjs.entry.js +1 -1
- package/dist/cjs/dso-scrollable.cjs.entry.js +1 -1
- package/dist/cjs/dso-table.cjs.entry.js +2 -2
- package/dist/cjs/dso-table.cjs.entry.js.map +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 +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +83 -62
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
- package/dist/cjs/{index-efc2222e.js → index-d4003ee3.js} +1 -4
- package/dist/cjs/index-d4003ee3.js.map +1 -0
- package/dist/cjs/index.cjs.js +0 -72
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/autosuggest/autosuggest.js +6 -3
- package/dist/collection/components/autosuggest/autosuggest.js.map +1 -1
- package/dist/collection/components/modal/modal.css +86 -57
- package/dist/collection/components/modal/modal.interfaces.js.map +1 -1
- package/dist/collection/components/modal/modal.js +33 -90
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/table/table.css +47 -46
- package/dist/collection/components/viewer-grid/components/filterpanel.js +7 -0
- package/dist/collection/components/viewer-grid/components/filterpanel.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/index.js +4 -0
- package/dist/collection/components/viewer-grid/components/index.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/main-panel.js +10 -0
- package/dist/collection/components/viewer-grid/components/main-panel.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/overlay.js +6 -0
- package/dist/collection/components/viewer-grid/components/overlay.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/viewer-grid-filterpanel-buttons.js.map +1 -0
- package/dist/collection/components/viewer-grid/viewer-grid.css +301 -86
- package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js.map +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js +59 -73
- package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/components/dso-autosuggest.js +6 -3
- package/dist/components/dso-autosuggest.js.map +1 -1
- package/dist/components/dso-modal.js +14 -46
- package/dist/components/dso-modal.js.map +1 -1
- package/dist/components/dso-table.js +1 -1
- package/dist/components/dso-table.js.map +1 -1
- package/dist/components/dso-viewer-grid.js +86 -68
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/index.js +0 -71
- package/dist/components/index.js.map +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
- package/dist/dso-toolkit/index.esm.js +1 -1
- package/dist/dso-toolkit/index.esm.js.map +1 -1
- package/dist/dso-toolkit/{p-b608283b.entry.js → p-0dffb117.entry.js} +2 -2
- package/dist/dso-toolkit/{p-14453f73.entry.js → p-14aa091d.entry.js} +2 -2
- package/dist/dso-toolkit/p-1a1a43fd.js +3 -0
- package/dist/dso-toolkit/p-1a1a43fd.js.map +1 -0
- package/dist/dso-toolkit/{p-d8c137b5.entry.js → p-1c721290.entry.js} +2 -2
- package/dist/dso-toolkit/{p-56d87a53.entry.js → p-22baee8e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a616ab8a.entry.js → p-2ccbf58d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-9f2bb98b.entry.js → p-3cbf8b97.entry.js} +2 -2
- package/dist/dso-toolkit/{p-29b741cb.entry.js → p-3d4308ba.entry.js} +2 -2
- package/dist/dso-toolkit/{p-c8165a50.entry.js → p-420e0d23.entry.js} +2 -2
- package/dist/dso-toolkit/{p-bf203ab8.entry.js → p-423fa057.entry.js} +2 -2
- package/dist/dso-toolkit/{p-debbe184.entry.js → p-440fc4ae.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d3f69d06.entry.js → p-49bce8b2.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f56c1b28.entry.js → p-4bc67e5c.entry.js} +2 -2
- package/dist/dso-toolkit/{p-9b587a94.entry.js → p-4da2fa8b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-0e5a93c3.entry.js → p-4e86089d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-68e9f61b.entry.js → p-51f19c06.entry.js} +2 -2
- package/dist/dso-toolkit/{p-05ea1fba.entry.js → p-54c65314.entry.js} +2 -2
- package/dist/dso-toolkit/p-5e5302ef.entry.js +2 -0
- package/dist/dso-toolkit/p-5e5302ef.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-818d032e.entry.js → p-5ee79846.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e2cacb8b.entry.js → p-604eb60b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1c295ae2.entry.js → p-669c3743.entry.js} +2 -2
- package/dist/dso-toolkit/p-712fca2c.entry.js +2 -0
- package/dist/dso-toolkit/p-712fca2c.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-b67631ef.entry.js → p-745b6678.entry.js} +2 -2
- package/dist/dso-toolkit/{p-cfd6f4ef.entry.js → p-7a6be9c1.entry.js} +2 -2
- package/dist/dso-toolkit/{p-27dfadbf.entry.js → p-8b77b083.entry.js} +2 -2
- package/dist/dso-toolkit/{p-3fa7489e.entry.js → p-8f8dd254.entry.js} +2 -2
- package/dist/dso-toolkit/p-918bcdbe.entry.js +2 -0
- package/dist/dso-toolkit/p-918bcdbe.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-e26974ee.entry.js → p-98f7ede6.entry.js} +2 -2
- package/dist/dso-toolkit/{p-fafa5ea1.entry.js → p-a00c4003.entry.js} +2 -2
- package/dist/dso-toolkit/p-a0798096.entry.js +2 -0
- package/dist/dso-toolkit/{p-42d3c595.entry.js.map → p-a0798096.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-9fee52e5.entry.js → p-a1060560.entry.js} +2 -2
- package/dist/dso-toolkit/p-a4d423fd.entry.js +2 -0
- package/dist/dso-toolkit/p-a4d423fd.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-6050e8e6.entry.js → p-b34f24b4.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e86e0fce.entry.js → p-b9d441d5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1fe715e4.entry.js → p-bc9e3037.entry.js} +2 -2
- package/dist/dso-toolkit/{p-bcae3f55.entry.js → p-bcecc743.entry.js} +2 -2
- package/dist/dso-toolkit/p-e69d7e62.entry.js +2 -0
- package/dist/dso-toolkit/{p-5265e22b.entry.js.map → p-e69d7e62.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-f3ed8688.entry.js → p-f21e4ccc.entry.js} +2 -2
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-accordion.entry.js +1 -1
- package/dist/esm/dso-action-list-item.entry.js +1 -1
- package/dist/esm/dso-action-list.entry.js +1 -1
- package/dist/esm/dso-alert_5.entry.js +1 -1
- package/dist/esm/dso-annotation-output_3.entry.js +1 -1
- package/dist/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +7 -4
- package/dist/esm/dso-autosuggest.entry.js.map +1 -1
- package/dist/esm/dso-banner.entry.js +1 -1
- package/dist/esm/dso-card-container.entry.js +1 -1
- package/dist/esm/dso-card.entry.js +1 -1
- package/dist/esm/dso-date-picker.entry.js +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +1 -1
- package/dist/esm/dso-expandable.entry.js +1 -1
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js +1 -1
- package/dist/esm/dso-info-button.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +1 -1
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-modal.entry.js +13 -45
- package/dist/esm/dso-modal.entry.js.map +1 -1
- package/dist/esm/dso-pagination.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-responsive-element.entry.js +1 -1
- package/dist/esm/dso-scrollable.entry.js +1 -1
- package/dist/esm/dso-table.entry.js +2 -2
- package/dist/esm/dso-table.entry.js.map +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +3 -3
- package/dist/esm/dso-tooltip.entry.js +1 -1
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +83 -62
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/dsot-document-component-demo.entry.js +1 -1
- package/dist/esm/{index-367cff36.js → index-3e9ed0c5.js} +1 -4
- package/dist/esm/index-3e9ed0c5.js.map +1 -0
- package/dist/esm/index.js +0 -69
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/modal/modal.d.ts +9 -15
- package/dist/types/components/modal/modal.interfaces.d.ts +2 -13
- package/dist/types/components/viewer-grid/components/filterpanel.d.ts +7 -0
- package/dist/types/components/viewer-grid/components/index.d.ts +3 -0
- package/dist/types/components/viewer-grid/components/main-panel.d.ts +10 -0
- package/dist/types/components/viewer-grid/components/overlay.d.ts +6 -0
- package/dist/types/components/viewer-grid/components/viewer-grid-filterpanel-buttons.d.ts +6 -0
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +12 -11
- package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +13 -2
- package/dist/types/components.d.ts +14 -24
- package/dist/types/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/cjs/index-efc2222e.js.map +0 -1
- package/dist/collection/components/modal/modal-ref.js +0 -19
- package/dist/collection/components/modal/modal-ref.js.map +0 -1
- package/dist/collection/components/modal/modal.controller.js +0 -51
- package/dist/collection/components/modal/modal.controller.js.map +0 -1
- package/dist/collection/components/viewer-grid/viewer-grid-filterpanel-buttons.js.map +0 -1
- package/dist/dso-toolkit/p-04c97d7d.entry.js +0 -2
- package/dist/dso-toolkit/p-04c97d7d.entry.js.map +0 -1
- package/dist/dso-toolkit/p-168750a2.entry.js +0 -2
- package/dist/dso-toolkit/p-168750a2.entry.js.map +0 -1
- package/dist/dso-toolkit/p-42d3c595.entry.js +0 -2
- package/dist/dso-toolkit/p-5265e22b.entry.js +0 -2
- package/dist/dso-toolkit/p-70a28e3f.entry.js +0 -2
- package/dist/dso-toolkit/p-70a28e3f.entry.js.map +0 -1
- package/dist/dso-toolkit/p-ce928197.js +0 -3
- package/dist/dso-toolkit/p-ce928197.js.map +0 -1
- package/dist/dso-toolkit/p-e4553695.entry.js +0 -2
- package/dist/dso-toolkit/p-e4553695.entry.js.map +0 -1
- package/dist/esm/index-367cff36.js.map +0 -1
- package/dist/types/components/modal/modal-ref.d.ts +0 -8
- package/dist/types/components/modal/modal.controller.d.ts +0 -6
- package/dist/types/components/viewer-grid/viewer-grid-filterpanel-buttons.d.ts +0 -6
- /package/dist/collection/components/viewer-grid/{viewer-grid-filterpanel-buttons.js → components/viewer-grid-filterpanel-buttons.js} +0 -0
- /package/dist/dso-toolkit/{p-b608283b.entry.js.map → p-0dffb117.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-14453f73.entry.js.map → p-14aa091d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d8c137b5.entry.js.map → p-1c721290.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-56d87a53.entry.js.map → p-22baee8e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a616ab8a.entry.js.map → p-2ccbf58d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9f2bb98b.entry.js.map → p-3cbf8b97.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-29b741cb.entry.js.map → p-3d4308ba.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c8165a50.entry.js.map → p-420e0d23.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-bf203ab8.entry.js.map → p-423fa057.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-debbe184.entry.js.map → p-440fc4ae.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d3f69d06.entry.js.map → p-49bce8b2.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f56c1b28.entry.js.map → p-4bc67e5c.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9b587a94.entry.js.map → p-4da2fa8b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-0e5a93c3.entry.js.map → p-4e86089d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-68e9f61b.entry.js.map → p-51f19c06.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-05ea1fba.entry.js.map → p-54c65314.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-818d032e.entry.js.map → p-5ee79846.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e2cacb8b.entry.js.map → p-604eb60b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1c295ae2.entry.js.map → p-669c3743.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b67631ef.entry.js.map → p-745b6678.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-cfd6f4ef.entry.js.map → p-7a6be9c1.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-27dfadbf.entry.js.map → p-8b77b083.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3fa7489e.entry.js.map → p-8f8dd254.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e26974ee.entry.js.map → p-98f7ede6.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-fafa5ea1.entry.js.map → p-a00c4003.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9fee52e5.entry.js.map → p-a1060560.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6050e8e6.entry.js.map → p-b34f24b4.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e86e0fce.entry.js.map → p-b9d441d5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1fe715e4.entry.js.map → p-bc9e3037.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-bcae3f55.entry.js.map → p-bcecc743.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f3ed8688.entry.js.map → p-f21e4ccc.entry.js.map} +0 -0
|
@@ -4,55 +4,6 @@
|
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
:host {
|
|
8
|
-
display: flex;
|
|
9
|
-
height: 100vh;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
position: relative;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([small]) .dso-map-panel {
|
|
15
|
-
flex-basis: 375px;
|
|
16
|
-
min-width: 0;
|
|
17
|
-
max-width: 375px;
|
|
18
|
-
}
|
|
19
|
-
@media screen and (max-width: 375px) {
|
|
20
|
-
:host([small]) .dso-map-panel {
|
|
21
|
-
flex-basis: 100vw;
|
|
22
|
-
max-width: 100vw;
|
|
23
|
-
min-width: 0;
|
|
24
|
-
transition: none;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host([medium]) .dso-map-panel {
|
|
29
|
-
flex-basis: 624px;
|
|
30
|
-
min-width: 375px;
|
|
31
|
-
max-width: 624px;
|
|
32
|
-
}
|
|
33
|
-
@media screen and (max-width: 624px) {
|
|
34
|
-
:host([medium]) .dso-map-panel {
|
|
35
|
-
flex-basis: 100vw;
|
|
36
|
-
max-width: 100vw;
|
|
37
|
-
min-width: 375px;
|
|
38
|
-
transition: none;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
:host([large]) .dso-map-panel {
|
|
43
|
-
flex-basis: 60%;
|
|
44
|
-
min-width: 768px;
|
|
45
|
-
max-width: 1024px;
|
|
46
|
-
}
|
|
47
|
-
@media screen and (max-width: 768px) {
|
|
48
|
-
:host([large]) .dso-map-panel {
|
|
49
|
-
flex-basis: 100vw;
|
|
50
|
-
max-width: 100vw;
|
|
51
|
-
min-width: 768px;
|
|
52
|
-
transition: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
7
|
button {
|
|
57
8
|
-webkit-appearance: button;
|
|
58
9
|
color: inherit;
|
|
@@ -259,23 +210,20 @@ button::-moz-focus-inner {
|
|
|
259
210
|
right: 16px;
|
|
260
211
|
}
|
|
261
212
|
|
|
262
|
-
.dso-
|
|
213
|
+
.dso-main-panel {
|
|
263
214
|
background-color: #fff;
|
|
264
|
-
box-shadow: 2px 0 8px 0 rgba(0, 0, 0, 0.4);
|
|
265
215
|
flex-shrink: 0;
|
|
266
216
|
flex-grow: 0;
|
|
267
|
-
padding-right: 8px;
|
|
268
217
|
position: relative;
|
|
269
218
|
transition: flex-basis 200ms ease-in, max-width 200ms ease-in, min-width 200ms ease-in;
|
|
270
219
|
z-index: 100;
|
|
271
220
|
}
|
|
272
|
-
.dso-
|
|
221
|
+
.dso-main-panel .dso-filterblok-address {
|
|
273
222
|
font-weight: bold;
|
|
274
223
|
margin: 8px 0;
|
|
275
224
|
}
|
|
276
|
-
.dso-
|
|
225
|
+
.dso-main-panel .main {
|
|
277
226
|
height: 100%;
|
|
278
|
-
overflow-y: scroll;
|
|
279
227
|
padding: 0 16px 8px;
|
|
280
228
|
}
|
|
281
229
|
|
|
@@ -433,23 +381,23 @@ button::-moz-focus-inner {
|
|
|
433
381
|
height: 100%;
|
|
434
382
|
width: 100%;
|
|
435
383
|
overflow: hidden;
|
|
384
|
+
position: relative;
|
|
436
385
|
}
|
|
437
386
|
|
|
438
387
|
.filterpanel,
|
|
439
388
|
.overlay {
|
|
440
389
|
background-color: #fff;
|
|
390
|
+
border: 0;
|
|
441
391
|
height: 100%;
|
|
392
|
+
margin-block: 0;
|
|
393
|
+
max-height: 100vh;
|
|
442
394
|
overflow-y: auto;
|
|
443
|
-
position: absolute;
|
|
444
395
|
z-index: 101;
|
|
445
396
|
}
|
|
446
397
|
|
|
447
398
|
.filterpanel {
|
|
448
|
-
box-shadow: 2px 0 5px #666;
|
|
449
399
|
padding: 8px 16px;
|
|
450
400
|
left: 0;
|
|
451
|
-
max-width: 896px;
|
|
452
|
-
width: calc(100vw - 40px);
|
|
453
401
|
}
|
|
454
402
|
@media screen and (max-width: 768px) {
|
|
455
403
|
.filterpanel {
|
|
@@ -466,45 +414,21 @@ button::-moz-focus-inner {
|
|
|
466
414
|
font-size: 2rem;
|
|
467
415
|
font-weight: 700;
|
|
468
416
|
}
|
|
469
|
-
.filterpanel::before {
|
|
470
|
-
content: "";
|
|
471
|
-
display: block;
|
|
472
|
-
position: fixed;
|
|
473
|
-
top: 0;
|
|
474
|
-
bottom: 0;
|
|
475
|
-
right: 0;
|
|
476
|
-
left: 896px;
|
|
477
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
478
|
-
}
|
|
479
|
-
@media screen and (max-width: 936px) {
|
|
480
|
-
.filterpanel::before {
|
|
481
|
-
left: auto;
|
|
482
|
-
width: 40px;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
417
|
|
|
486
418
|
.overlay {
|
|
487
|
-
box-shadow: -2px 0 5px #666;
|
|
488
419
|
padding: 40px 16px 8px;
|
|
489
420
|
right: 0;
|
|
490
421
|
width: 624px;
|
|
491
422
|
}
|
|
423
|
+
.overlay::backdrop {
|
|
424
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
425
|
+
}
|
|
492
426
|
@media screen and (max-width: 624px) {
|
|
493
427
|
.overlay {
|
|
494
428
|
width: 100vw;
|
|
495
429
|
}
|
|
496
430
|
}
|
|
497
431
|
|
|
498
|
-
.dimscreen {
|
|
499
|
-
position: fixed;
|
|
500
|
-
top: 0;
|
|
501
|
-
bottom: 0;
|
|
502
|
-
left: 0;
|
|
503
|
-
right: 624px;
|
|
504
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
505
|
-
z-index: 102;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
432
|
.filterpanel-buttons {
|
|
509
433
|
text-align: right;
|
|
510
434
|
}
|
|
@@ -750,4 +674,295 @@ button::-moz-focus-inner {
|
|
|
750
674
|
}
|
|
751
675
|
.filterpanel-buttons .cancel-button + .apply-button {
|
|
752
676
|
margin-left: 16px;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
@media screen and (min-width: 808px) {
|
|
680
|
+
:host {
|
|
681
|
+
display: flex;
|
|
682
|
+
height: 100vh;
|
|
683
|
+
overflow: hidden;
|
|
684
|
+
position: relative;
|
|
685
|
+
}
|
|
686
|
+
:host([small]) .dso-main-panel {
|
|
687
|
+
flex-basis: 375px;
|
|
688
|
+
min-width: 0;
|
|
689
|
+
max-width: 375px;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
@media screen and (min-width: 808px) and (max-width: 375px) {
|
|
693
|
+
:host([small]) .dso-main-panel {
|
|
694
|
+
flex-basis: 100vw;
|
|
695
|
+
max-width: 100vw;
|
|
696
|
+
min-width: 0;
|
|
697
|
+
transition: none;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
@media screen and (min-width: 808px) {
|
|
701
|
+
:host([medium]) .dso-main-panel {
|
|
702
|
+
flex-basis: 624px;
|
|
703
|
+
min-width: 375px;
|
|
704
|
+
max-width: 624px;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
@media screen and (min-width: 808px) and (max-width: 624px) {
|
|
708
|
+
:host([medium]) .dso-main-panel {
|
|
709
|
+
flex-basis: 100vw;
|
|
710
|
+
max-width: 100vw;
|
|
711
|
+
min-width: 375px;
|
|
712
|
+
transition: none;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
@media screen and (min-width: 808px) {
|
|
716
|
+
:host([large]) .dso-main-panel {
|
|
717
|
+
flex-basis: 60%;
|
|
718
|
+
min-width: 768px;
|
|
719
|
+
max-width: 1024px;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
@media screen and (min-width: 808px) and (max-width: 768px) {
|
|
723
|
+
:host([large]) .dso-main-panel {
|
|
724
|
+
flex-basis: 100vw;
|
|
725
|
+
max-width: 100vw;
|
|
726
|
+
min-width: 768px;
|
|
727
|
+
transition: none;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
@media screen and (min-width: 808px) {
|
|
731
|
+
.dso-main-panel {
|
|
732
|
+
box-shadow: 2px 0 8px 0 rgba(0, 0, 0, 0.4);
|
|
733
|
+
padding-right: 8px;
|
|
734
|
+
}
|
|
735
|
+
.dso-main-panel .main {
|
|
736
|
+
overflow-y: scroll;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
@media screen and (min-width: 808px) {
|
|
740
|
+
.filterpanel {
|
|
741
|
+
box-shadow: 2px 0 5px #666;
|
|
742
|
+
margin-inline: 0 auto;
|
|
743
|
+
max-width: 896px;
|
|
744
|
+
width: calc(100vw - 40px);
|
|
745
|
+
}
|
|
746
|
+
.filterpanel::before {
|
|
747
|
+
content: "";
|
|
748
|
+
display: block;
|
|
749
|
+
position: fixed;
|
|
750
|
+
top: 0;
|
|
751
|
+
bottom: 0;
|
|
752
|
+
right: 0;
|
|
753
|
+
left: 896px;
|
|
754
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
@media screen and (min-width: 808px) and (max-width: 936px) {
|
|
758
|
+
.filterpanel::before {
|
|
759
|
+
left: auto;
|
|
760
|
+
width: 40px;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
@media screen and (min-width: 808px) {
|
|
764
|
+
.overlay {
|
|
765
|
+
box-shadow: -2px 0 5px #666;
|
|
766
|
+
margin-inline: auto 0;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
@media screen and (max-width: 807.99px) {
|
|
770
|
+
.dso-navbar {
|
|
771
|
+
min-height: 32px;
|
|
772
|
+
}
|
|
773
|
+
.dso-navbar .dso-navbar-header {
|
|
774
|
+
float: left;
|
|
775
|
+
}
|
|
776
|
+
.dso-navbar .dso-navbar-toggle {
|
|
777
|
+
border-radius: 4px;
|
|
778
|
+
min-width: auto;
|
|
779
|
+
padding: 5px 0;
|
|
780
|
+
}
|
|
781
|
+
.dso-navbar .dso-navbar-toggle dso-icon,
|
|
782
|
+
.dso-navbar .dso-navbar-toggle svg.di {
|
|
783
|
+
margin-left: 8px;
|
|
784
|
+
margin-right: 8px;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
@media screen and (max-width: 807.99px) and (min-width: 992px) {
|
|
788
|
+
.dso-navbar .dso-navbar-toggle {
|
|
789
|
+
display: none;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
@media screen and (max-width: 807.99px) {
|
|
793
|
+
.dso-nav {
|
|
794
|
+
list-style: none;
|
|
795
|
+
margin-bottom: 0;
|
|
796
|
+
padding-left: 0;
|
|
797
|
+
}
|
|
798
|
+
.dso-nav > li > a,
|
|
799
|
+
.dso-nav > li > button {
|
|
800
|
+
display: block;
|
|
801
|
+
}
|
|
802
|
+
.dso-nav > li > a, .dso-nav > li > a:hover, .dso-nav > li > a:focus, .dso-nav > li > a:visited,
|
|
803
|
+
.dso-nav > li > button,
|
|
804
|
+
.dso-nav > li > button:hover,
|
|
805
|
+
.dso-nav > li > button:focus,
|
|
806
|
+
.dso-nav > li > button:visited {
|
|
807
|
+
color: #275937;
|
|
808
|
+
}
|
|
809
|
+
.dso-nav > li.dso-active > a,
|
|
810
|
+
.dso-nav > li.dso-active > button, .dso-nav > li.is-active > a,
|
|
811
|
+
.dso-nav > li.is-active > button {
|
|
812
|
+
border-bottom: 4px solid #8b4a6a;
|
|
813
|
+
font-weight: bold;
|
|
814
|
+
}
|
|
815
|
+
.dso-nav.dso-nav-main > li {
|
|
816
|
+
display: inline-block;
|
|
817
|
+
}
|
|
818
|
+
.dso-nav.dso-nav-main > li > a,
|
|
819
|
+
.dso-nav.dso-nav-main > li > button {
|
|
820
|
+
text-decoration: none;
|
|
821
|
+
font-size: 1.25em;
|
|
822
|
+
line-height: 1;
|
|
823
|
+
margin-top: 8px;
|
|
824
|
+
padding: 8px 16px 7px;
|
|
825
|
+
}
|
|
826
|
+
.dso-nav.dso-nav-main > li > a:hover, .dso-nav.dso-nav-main > li > a:focus, .dso-nav.dso-nav-main > li > a:active,
|
|
827
|
+
.dso-nav.dso-nav-main > li > button:hover,
|
|
828
|
+
.dso-nav.dso-nav-main > li > button:focus,
|
|
829
|
+
.dso-nav.dso-nav-main > li > button:active {
|
|
830
|
+
text-decoration: underline;
|
|
831
|
+
}
|
|
832
|
+
.dso-nav.dso-nav-sub > li {
|
|
833
|
+
display: inline-block;
|
|
834
|
+
}
|
|
835
|
+
.dso-nav.dso-nav-sub > li > a,
|
|
836
|
+
.dso-nav.dso-nav-sub > li > button {
|
|
837
|
+
text-decoration: none;
|
|
838
|
+
font-size: 1rem;
|
|
839
|
+
margin-top: 4px;
|
|
840
|
+
padding: 4px 8px 3px;
|
|
841
|
+
}
|
|
842
|
+
.dso-nav.dso-nav-sub > li > a:hover, .dso-nav.dso-nav-sub > li > a:focus, .dso-nav.dso-nav-sub > li > a:active,
|
|
843
|
+
.dso-nav.dso-nav-sub > li > button:hover,
|
|
844
|
+
.dso-nav.dso-nav-sub > li > button:focus,
|
|
845
|
+
.dso-nav.dso-nav-sub > li > button:active {
|
|
846
|
+
text-decoration: underline;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
@media screen and (max-width: 807.99px) {
|
|
850
|
+
.dso-navbar {
|
|
851
|
+
padding-inline: 16px;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
@media screen and (max-width: 807.99px) {
|
|
855
|
+
.dso-nav {
|
|
856
|
+
border-bottom: 1px solid #ccc;
|
|
857
|
+
display: flex;
|
|
858
|
+
gap: 16px;
|
|
859
|
+
margin-block-start: 0;
|
|
860
|
+
width: calc(100vw - 32px);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
@media screen and (max-width: 807.99px) {
|
|
864
|
+
.dso-tertiary {
|
|
865
|
+
display: inline-block;
|
|
866
|
+
font-size: 1em;
|
|
867
|
+
font-weight: 500;
|
|
868
|
+
margin-bottom: 0;
|
|
869
|
+
text-decoration: none;
|
|
870
|
+
touch-action: manipulation;
|
|
871
|
+
text-align: left;
|
|
872
|
+
user-select: none;
|
|
873
|
+
vertical-align: middle;
|
|
874
|
+
border: 0;
|
|
875
|
+
color: #39870c;
|
|
876
|
+
line-height: 1;
|
|
877
|
+
padding: 0;
|
|
878
|
+
background-color: transparent;
|
|
879
|
+
font-weight: 300;
|
|
880
|
+
}
|
|
881
|
+
.dso-tertiary:focus, .dso-tertiary:focus-visible {
|
|
882
|
+
outline-offset: 2px;
|
|
883
|
+
}
|
|
884
|
+
.dso-tertiary:active {
|
|
885
|
+
outline: 0;
|
|
886
|
+
}
|
|
887
|
+
.dso-tertiary[disabled] {
|
|
888
|
+
color: #afcf9d;
|
|
889
|
+
}
|
|
890
|
+
.dso-tertiary[disabled].dso-spinner-left, .dso-tertiary[disabled].dso-spinner-right {
|
|
891
|
+
color: #39870c;
|
|
892
|
+
}
|
|
893
|
+
.dso-tertiary:not([disabled]):hover {
|
|
894
|
+
color: #275937;
|
|
895
|
+
text-decoration: underline;
|
|
896
|
+
text-underline-position: under;
|
|
897
|
+
}
|
|
898
|
+
.dso-tertiary:not([disabled]):active {
|
|
899
|
+
color: #173521;
|
|
900
|
+
}
|
|
901
|
+
.dso-tertiary.dso-align {
|
|
902
|
+
line-height: calc(1.5em - 1px);
|
|
903
|
+
padding: 11px 0;
|
|
904
|
+
position: relative;
|
|
905
|
+
}
|
|
906
|
+
.dso-tertiary.dso-truncate {
|
|
907
|
+
max-width: 100%;
|
|
908
|
+
overflow: hidden;
|
|
909
|
+
text-overflow: ellipsis;
|
|
910
|
+
white-space: nowrap;
|
|
911
|
+
}
|
|
912
|
+
.dso-tertiary.dso-spinner-left::before {
|
|
913
|
+
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
914
|
+
background-repeat: no-repeat;
|
|
915
|
+
content: "";
|
|
916
|
+
display: inline-block;
|
|
917
|
+
height: 24px;
|
|
918
|
+
vertical-align: middle;
|
|
919
|
+
width: 24px;
|
|
920
|
+
margin-right: 8px;
|
|
921
|
+
}
|
|
922
|
+
.dso-tertiary.dso-spinner-right::after {
|
|
923
|
+
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
924
|
+
background-repeat: no-repeat;
|
|
925
|
+
content: "";
|
|
926
|
+
display: inline-block;
|
|
927
|
+
height: 24px;
|
|
928
|
+
vertical-align: middle;
|
|
929
|
+
width: 24px;
|
|
930
|
+
margin-left: 8px;
|
|
931
|
+
}
|
|
932
|
+
.dso-tertiary dso-icon + span:not(.sr-only),
|
|
933
|
+
.dso-tertiary svg.di + span:not(.sr-only),
|
|
934
|
+
.dso-tertiary span:not(.sr-only) + dso-icon,
|
|
935
|
+
.dso-tertiary span:not(.sr-only) + svg.di {
|
|
936
|
+
margin-left: 8px;
|
|
937
|
+
}
|
|
938
|
+
.dso-tertiary svg.di.di-chevron-down + span:not(.sr-only),
|
|
939
|
+
.dso-tertiary svg.di.di-chevron-up + span:not(.sr-only),
|
|
940
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-chevron-down,
|
|
941
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-chevron-up {
|
|
942
|
+
margin-left: 4px;
|
|
943
|
+
}
|
|
944
|
+
.dso-tertiary dso-icon[icon=chevron-left] + span:not(.sr-only),
|
|
945
|
+
.dso-tertiary dso-icon[icon=chevron-right] + span:not(.sr-only),
|
|
946
|
+
.dso-tertiary svg.di.di-angle-down + span:not(.sr-only),
|
|
947
|
+
.dso-tertiary svg.di.di-angle-up + span:not(.sr-only),
|
|
948
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-angle-down,
|
|
949
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-angle-up,
|
|
950
|
+
.dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-left],
|
|
951
|
+
.dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-right] {
|
|
952
|
+
margin-left: 0;
|
|
953
|
+
}
|
|
954
|
+
.dso-tertiary dso-icon,
|
|
955
|
+
.dso-tertiary svg.di,
|
|
956
|
+
.dso-tertiary span {
|
|
957
|
+
vertical-align: middle;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
@media screen and (max-width: 807.99px) {
|
|
961
|
+
.filterpanel,
|
|
962
|
+
.overlay {
|
|
963
|
+
margin-inline: 0;
|
|
964
|
+
max-width: 100vw;
|
|
965
|
+
top: 0;
|
|
966
|
+
width: 100vw;
|
|
967
|
+
}
|
|
753
968
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const tabs = ["main", "map"];
|
|
2
2
|
//# sourceMappingURL=viewer-grid.interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-grid.interfaces.js","sourceRoot":"","sources":["../../../src/components/viewer-grid/viewer-grid.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface ViewerGridChangeSizeEvent {\r\n /**\r\n * Indicates whether it's before or after the animation\r\n */\r\n stage: \"start\" | \"end\";\r\n previousSize: MainSize;\r\n currentSize: MainSize;\r\n}\r\n\r\nexport interface
|
|
1
|
+
{"version":3,"file":"viewer-grid.interfaces.js","sourceRoot":"","sources":["../../../src/components/viewer-grid/viewer-grid.interfaces.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,KAAK,CAAU,CAAC","sourcesContent":["export interface ViewerGridChangeSizeEvent {\r\n /**\r\n * Indicates whether it's before or after the animation\r\n */\r\n stage: \"start\" | \"end\";\r\n previousSize: MainSize;\r\n currentSize: MainSize;\r\n}\r\n\r\nexport interface ViewerGridCloseOverlayEvent {\r\n originalEvent: MouseEvent | Event;\r\n}\r\n\r\nexport interface ViewerGridFilterpanelCancelEvent {\r\n originalEvent: MouseEvent | Event;\r\n}\r\n\r\nexport interface ViewerGridFilterpanelApplyEvent {\r\n originalEvent: MouseEvent | Event;\r\n}\r\n\r\nexport type MainSize = \"small\" | \"medium\" | \"large\";\r\n\r\nexport type LabelSizeMap = { [key in MainSize]: string };\r\n\r\nexport const tabs = [\"main\", \"map\"] as const;\r\n\r\nexport type Tabs = (typeof tabs)[number];\r\n\r\nexport type TabLabelMap = { [key in Tabs]: string };\r\n"]}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { tabs, } from "./viewer-grid.interfaces";
|
|
4
|
+
import { Filterpanel, MainPanel, Overlay } from "./components";
|
|
5
|
+
const tabViewWidth = 768 + 40;
|
|
4
6
|
export class ViewerGrid {
|
|
5
7
|
constructor() {
|
|
6
|
-
this.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
this.mediaCondition = `(min-width: ${tabViewWidth}px)`;
|
|
9
|
+
this.tabLabelMap = {
|
|
10
|
+
main: "Hoofdpaneel",
|
|
11
|
+
map: "Kaart",
|
|
10
12
|
};
|
|
11
13
|
this.filterpanelSlot = null;
|
|
12
14
|
this.overlaySlot = null;
|
|
@@ -16,16 +18,13 @@ export class ViewerGrid {
|
|
|
16
18
|
this.expandMain = () => {
|
|
17
19
|
this.mainSize = this.mainSize === "small" ? "medium" : "large";
|
|
18
20
|
};
|
|
19
|
-
this.
|
|
20
|
-
if (event.key !== "Escape") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
this.dsoCloseOverlay.emit(event);
|
|
24
|
-
};
|
|
21
|
+
this.changeListener = (largeScreen) => (this.tabView = !largeScreen.matches);
|
|
25
22
|
this.filterpanelOpen = false;
|
|
26
23
|
this.overlayOpen = false;
|
|
27
24
|
this.initialMainSize = undefined;
|
|
28
25
|
this.mainSize = "large";
|
|
26
|
+
this.tabView = window.innerWidth < tabViewWidth;
|
|
27
|
+
this.activeTab = "main";
|
|
29
28
|
}
|
|
30
29
|
mainSizeWatcher(currentSize, previousSize) {
|
|
31
30
|
var _a;
|
|
@@ -34,7 +33,7 @@ export class ViewerGrid {
|
|
|
34
33
|
previousSize,
|
|
35
34
|
currentSize,
|
|
36
35
|
});
|
|
37
|
-
(_a = this.
|
|
36
|
+
(_a = this.mainPanel) === null || _a === void 0 ? void 0 : _a.addEventListener("transitionend", (e) => {
|
|
38
37
|
if (e.propertyName === "flex-basis") {
|
|
39
38
|
this.dsoMainSizeChange.emit({
|
|
40
39
|
stage: "end",
|
|
@@ -44,70 +43,51 @@ export class ViewerGrid {
|
|
|
44
43
|
}
|
|
45
44
|
}, { once: true });
|
|
46
45
|
}
|
|
47
|
-
|
|
46
|
+
filterpanelOpenWatcher(open) {
|
|
48
47
|
var _a, _b;
|
|
49
|
-
if (this.
|
|
50
|
-
|
|
48
|
+
if (!this.filterpanelSlot) {
|
|
49
|
+
console.warn("slot 'filterpanel' has not been set");
|
|
51
50
|
}
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
-
this.filterpanelFocustrap.activate();
|
|
55
|
-
this.host.addEventListener("keydown", this.keyDownListener);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
this.filterpanelFocustrap.deactivate();
|
|
59
|
-
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
60
|
-
}
|
|
51
|
+
if (open) {
|
|
52
|
+
(_a = this.filterpanel) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
61
53
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
else {
|
|
55
|
+
(_b = this.filterpanel) === null || _b === void 0 ? void 0 : _b.close();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
overlayOpenWatcher(open) {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
if (!this.overlaySlot) {
|
|
61
|
+
console.warn("slot 'overlay' has not been set");
|
|
62
|
+
}
|
|
63
|
+
if (open) {
|
|
64
|
+
(_a = this.overlay) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
(_b = this.overlay) === null || _b === void 0 ? void 0 : _b.close();
|
|
71
68
|
}
|
|
72
69
|
}
|
|
73
70
|
connectedCallback() {
|
|
71
|
+
window.matchMedia(this.mediaCondition).addEventListener("change", this.changeListener);
|
|
74
72
|
this.filterpanelSlot = this.host.querySelector("div[slot='filterpanel']");
|
|
75
73
|
this.overlaySlot = this.host.querySelector("div[slot='overlay']");
|
|
76
74
|
}
|
|
77
75
|
componentDidLoad() {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
allowOutsideClick: true,
|
|
82
|
-
tabbableOptions: {
|
|
83
|
-
getShadowRoot: true,
|
|
84
|
-
},
|
|
85
|
-
});
|
|
76
|
+
var _a, _b;
|
|
77
|
+
if (this.filterpanelOpen && this.filterpanelSlot) {
|
|
78
|
+
(_a = this.filterpanel) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
86
79
|
}
|
|
87
|
-
if (this.
|
|
88
|
-
|
|
89
|
-
escapeDeactivates: false,
|
|
90
|
-
allowOutsideClick: true,
|
|
91
|
-
tabbableOptions: {
|
|
92
|
-
getShadowRoot: true,
|
|
93
|
-
},
|
|
94
|
-
});
|
|
80
|
+
if (this.overlayOpen && this.overlaySlot) {
|
|
81
|
+
(_b = this.overlay) === null || _b === void 0 ? void 0 : _b.showModal();
|
|
95
82
|
}
|
|
96
|
-
this.updateFocusTrap();
|
|
97
83
|
}
|
|
98
84
|
componentWillLoad() {
|
|
99
85
|
if (this.initialMainSize) {
|
|
100
86
|
this.mainSize = this.initialMainSize;
|
|
101
87
|
}
|
|
102
88
|
}
|
|
103
|
-
componentDidUpdate() {
|
|
104
|
-
this.updateFocusTrap();
|
|
105
|
-
}
|
|
106
89
|
disconnectedCallback() {
|
|
107
|
-
|
|
108
|
-
(_a = this.overlayFocustrap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
109
|
-
(_b = this.filterpanelFocustrap) === null || _b === void 0 ? void 0 : _b.deactivate();
|
|
110
|
-
this.host.removeEventListener("keydown", this.keyDownListener);
|
|
90
|
+
window.matchMedia(this.mediaCondition).removeEventListener("change", this.changeListener);
|
|
111
91
|
}
|
|
112
92
|
handleFilterpanelApply(mouseEvent) {
|
|
113
93
|
this.dsoFilterpanelApply.emit({ originalEvent: mouseEvent });
|
|
@@ -116,7 +96,7 @@ export class ViewerGrid {
|
|
|
116
96
|
this.dsoFilterpanelCancel.emit({ originalEvent: mouseEvent });
|
|
117
97
|
}
|
|
118
98
|
render() {
|
|
119
|
-
return (h(Host, Object.assign({}, { [this.mainSize]: true }),
|
|
99
|
+
return (h(Host, Object.assign({}, { [this.mainSize]: true }), this.tabView && (h("nav", { class: "dso-navbar" }, h("ul", { class: "dso-nav dso-nav-sub" }, tabs.map((tab) => (h("li", { key: tab, class: clsx({ "dso-active": this.activeTab === tab }) }, h("button", { type: "button", class: "dso-tertiary", onClick: () => (this.activeTab = tab) }, this.tabLabelMap[tab]))))))), (!this.tabView || (this.tabView && this.activeTab === "main")) && (h(MainPanel, { ref: (element) => (this.mainPanel = element), tabView: this.tabView, mainSize: this.mainSize, shrinkMain: this.shrinkMain, expandMain: this.expandMain })), h(Filterpanel, { ref: (element) => (this.filterpanel = element), onApply: (e) => this.handleFilterpanelApply(e), onCancel: (e) => this.handleFilterpanelCancel(e) }), (!this.tabView || (this.tabView && this.activeTab === "map")) && (h("div", { class: "map" }, h("slot", { name: "map" }))), h(Overlay, { ref: (element) => (this.overlay = element), dsoCloseOverlay: (e) => this.dsoCloseOverlay.emit({ originalEvent: e }) })));
|
|
120
100
|
}
|
|
121
101
|
static get is() { return "dso-viewer-grid"; }
|
|
122
102
|
static get encapsulation() { return "shadow"; }
|
|
@@ -194,7 +174,9 @@ export class ViewerGrid {
|
|
|
194
174
|
}
|
|
195
175
|
static get states() {
|
|
196
176
|
return {
|
|
197
|
-
"mainSize": {}
|
|
177
|
+
"mainSize": {},
|
|
178
|
+
"tabView": {},
|
|
179
|
+
"activeTab": {}
|
|
198
180
|
};
|
|
199
181
|
}
|
|
200
182
|
static get events() {
|
|
@@ -209,14 +191,12 @@ export class ViewerGrid {
|
|
|
209
191
|
"text": "Emitted when user wants to close the overlay."
|
|
210
192
|
},
|
|
211
193
|
"complexType": {
|
|
212
|
-
"original": "
|
|
213
|
-
"resolved": "
|
|
194
|
+
"original": "ViewerGridCloseOverlayEvent",
|
|
195
|
+
"resolved": "ViewerGridCloseOverlayEvent",
|
|
214
196
|
"references": {
|
|
215
|
-
"
|
|
216
|
-
"location": "
|
|
217
|
-
|
|
218
|
-
"KeyboardEvent": {
|
|
219
|
-
"location": "global"
|
|
197
|
+
"ViewerGridCloseOverlayEvent": {
|
|
198
|
+
"location": "import",
|
|
199
|
+
"path": "./viewer-grid.interfaces"
|
|
220
200
|
}
|
|
221
201
|
}
|
|
222
202
|
}
|
|
@@ -231,10 +211,10 @@ export class ViewerGrid {
|
|
|
231
211
|
"text": "Emitted when user cancels filterpanel."
|
|
232
212
|
},
|
|
233
213
|
"complexType": {
|
|
234
|
-
"original": "
|
|
235
|
-
"resolved": "
|
|
214
|
+
"original": "ViewerGridFilterpanelCancelEvent",
|
|
215
|
+
"resolved": "ViewerGridFilterpanelCancelEvent",
|
|
236
216
|
"references": {
|
|
237
|
-
"
|
|
217
|
+
"ViewerGridFilterpanelCancelEvent": {
|
|
238
218
|
"location": "import",
|
|
239
219
|
"path": "./viewer-grid.interfaces"
|
|
240
220
|
}
|
|
@@ -251,10 +231,10 @@ export class ViewerGrid {
|
|
|
251
231
|
"text": "Emitted when user applies filterpanel options."
|
|
252
232
|
},
|
|
253
233
|
"complexType": {
|
|
254
|
-
"original": "
|
|
255
|
-
"resolved": "
|
|
234
|
+
"original": "ViewerGridFilterpanelApplyEvent",
|
|
235
|
+
"resolved": "ViewerGridFilterpanelApplyEvent",
|
|
256
236
|
"references": {
|
|
257
|
-
"
|
|
237
|
+
"ViewerGridFilterpanelApplyEvent": {
|
|
258
238
|
"location": "import",
|
|
259
239
|
"path": "./viewer-grid.interfaces"
|
|
260
240
|
}
|
|
@@ -287,6 +267,12 @@ export class ViewerGrid {
|
|
|
287
267
|
return [{
|
|
288
268
|
"propName": "mainSize",
|
|
289
269
|
"methodName": "mainSizeWatcher"
|
|
270
|
+
}, {
|
|
271
|
+
"propName": "filterpanelOpen",
|
|
272
|
+
"methodName": "filterpanelOpenWatcher"
|
|
273
|
+
}, {
|
|
274
|
+
"propName": "overlayOpen",
|
|
275
|
+
"methodName": "overlayOpenWatcher"
|
|
290
276
|
}];
|
|
291
277
|
}
|
|
292
278
|
}
|