@dso-toolkit/core 57.0.0 → 58.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
  2. package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
  4. package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
  5. package/dist/cjs/dso-alert_5.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-annotation-output_3.cjs.entry.js +1 -1
  7. package/dist/cjs/dso-attachments-counter.cjs.entry.js +1 -1
  8. package/dist/cjs/dso-autosuggest.cjs.entry.js +1 -1
  9. package/dist/cjs/dso-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  11. package/dist/cjs/dso-card.cjs.entry.js +1 -1
  12. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  14. package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
  15. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  16. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
  17. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  18. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
  20. package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
  21. package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
  22. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  23. package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
  24. package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
  25. package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
  26. package/dist/cjs/dso-modal.cjs.entry.js +13 -45
  27. package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
  28. package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
  29. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
  31. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  32. package/dist/cjs/dso-scrollable.cjs.entry.js +1 -1
  33. package/dist/cjs/dso-table.cjs.entry.js +2 -2
  34. package/dist/cjs/dso-table.cjs.entry.js.map +1 -1
  35. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  36. package/dist/cjs/dso-toolkit.cjs.js +2 -2
  37. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  38. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  39. package/dist/cjs/dso-viewer-grid.cjs.entry.js +83 -62
  40. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  41. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
  42. package/dist/cjs/{index-efc2222e.js → index-d4003ee3.js} +1 -4
  43. package/dist/cjs/index-d4003ee3.js.map +1 -0
  44. package/dist/cjs/index.cjs.js +0 -72
  45. package/dist/cjs/index.cjs.js.map +1 -1
  46. package/dist/cjs/loader.cjs.js +2 -2
  47. package/dist/collection/components/modal/modal.css +86 -57
  48. package/dist/collection/components/modal/modal.interfaces.js.map +1 -1
  49. package/dist/collection/components/modal/modal.js +33 -90
  50. package/dist/collection/components/modal/modal.js.map +1 -1
  51. package/dist/collection/components/table/table.css +47 -46
  52. package/dist/collection/components/viewer-grid/components/filterpanel.js +7 -0
  53. package/dist/collection/components/viewer-grid/components/filterpanel.js.map +1 -0
  54. package/dist/collection/components/viewer-grid/components/index.js +4 -0
  55. package/dist/collection/components/viewer-grid/components/index.js.map +1 -0
  56. package/dist/collection/components/viewer-grid/components/main-panel.js +10 -0
  57. package/dist/collection/components/viewer-grid/components/main-panel.js.map +1 -0
  58. package/dist/collection/components/viewer-grid/components/overlay.js +6 -0
  59. package/dist/collection/components/viewer-grid/components/overlay.js.map +1 -0
  60. package/dist/collection/components/viewer-grid/components/viewer-grid-filterpanel-buttons.js.map +1 -0
  61. package/dist/collection/components/viewer-grid/viewer-grid.css +301 -86
  62. package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +1 -1
  63. package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js.map +1 -1
  64. package/dist/collection/components/viewer-grid/viewer-grid.js +59 -73
  65. package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
  66. package/dist/collection/index.js +0 -1
  67. package/dist/collection/index.js.map +1 -1
  68. package/dist/components/dso-modal.js +14 -46
  69. package/dist/components/dso-modal.js.map +1 -1
  70. package/dist/components/dso-table.js +1 -1
  71. package/dist/components/dso-table.js.map +1 -1
  72. package/dist/components/dso-viewer-grid.js +86 -68
  73. package/dist/components/dso-viewer-grid.js.map +1 -1
  74. package/dist/components/index.js +0 -71
  75. package/dist/components/index.js.map +1 -1
  76. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  77. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  78. package/dist/dso-toolkit/index.esm.js +1 -1
  79. package/dist/dso-toolkit/index.esm.js.map +1 -1
  80. package/dist/dso-toolkit/{p-b608283b.entry.js → p-0dffb117.entry.js} +2 -2
  81. package/dist/dso-toolkit/{p-14453f73.entry.js → p-14aa091d.entry.js} +2 -2
  82. package/dist/dso-toolkit/p-1a1a43fd.js +3 -0
  83. package/dist/dso-toolkit/p-1a1a43fd.js.map +1 -0
  84. package/dist/dso-toolkit/{p-d8c137b5.entry.js → p-1c721290.entry.js} +2 -2
  85. package/dist/dso-toolkit/{p-56d87a53.entry.js → p-22baee8e.entry.js} +2 -2
  86. package/dist/dso-toolkit/{p-a616ab8a.entry.js → p-2ccbf58d.entry.js} +2 -2
  87. package/dist/dso-toolkit/{p-9f2bb98b.entry.js → p-3cbf8b97.entry.js} +2 -2
  88. package/dist/dso-toolkit/{p-29b741cb.entry.js → p-3d4308ba.entry.js} +2 -2
  89. package/dist/dso-toolkit/{p-c8165a50.entry.js → p-420e0d23.entry.js} +2 -2
  90. package/dist/dso-toolkit/{p-bf203ab8.entry.js → p-423fa057.entry.js} +2 -2
  91. package/dist/dso-toolkit/{p-debbe184.entry.js → p-440fc4ae.entry.js} +2 -2
  92. package/dist/dso-toolkit/{p-d3f69d06.entry.js → p-49bce8b2.entry.js} +2 -2
  93. package/dist/dso-toolkit/{p-f56c1b28.entry.js → p-4bc67e5c.entry.js} +2 -2
  94. package/dist/dso-toolkit/{p-9b587a94.entry.js → p-4da2fa8b.entry.js} +2 -2
  95. package/dist/dso-toolkit/{p-0e5a93c3.entry.js → p-4e86089d.entry.js} +2 -2
  96. package/dist/dso-toolkit/{p-68e9f61b.entry.js → p-51f19c06.entry.js} +2 -2
  97. package/dist/dso-toolkit/{p-05ea1fba.entry.js → p-54c65314.entry.js} +2 -2
  98. package/dist/dso-toolkit/p-5e5302ef.entry.js +2 -0
  99. package/dist/dso-toolkit/p-5e5302ef.entry.js.map +1 -0
  100. package/dist/dso-toolkit/{p-818d032e.entry.js → p-5ee79846.entry.js} +2 -2
  101. package/dist/dso-toolkit/{p-e2cacb8b.entry.js → p-604eb60b.entry.js} +2 -2
  102. package/dist/dso-toolkit/{p-1c295ae2.entry.js → p-669c3743.entry.js} +2 -2
  103. package/dist/dso-toolkit/p-712fca2c.entry.js +2 -0
  104. package/dist/dso-toolkit/p-712fca2c.entry.js.map +1 -0
  105. package/dist/dso-toolkit/{p-b67631ef.entry.js → p-745b6678.entry.js} +2 -2
  106. package/dist/dso-toolkit/{p-cfd6f4ef.entry.js → p-7a6be9c1.entry.js} +2 -2
  107. package/dist/dso-toolkit/{p-27dfadbf.entry.js → p-8b77b083.entry.js} +2 -2
  108. package/dist/dso-toolkit/{p-3fa7489e.entry.js → p-8f8dd254.entry.js} +2 -2
  109. package/dist/dso-toolkit/p-918bcdbe.entry.js +2 -0
  110. package/dist/dso-toolkit/p-918bcdbe.entry.js.map +1 -0
  111. package/dist/dso-toolkit/{p-e26974ee.entry.js → p-98f7ede6.entry.js} +2 -2
  112. package/dist/dso-toolkit/{p-fafa5ea1.entry.js → p-a00c4003.entry.js} +2 -2
  113. package/dist/dso-toolkit/p-a0798096.entry.js +2 -0
  114. package/dist/dso-toolkit/{p-42d3c595.entry.js.map → p-a0798096.entry.js.map} +1 -1
  115. package/dist/dso-toolkit/{p-9fee52e5.entry.js → p-a1060560.entry.js} +2 -2
  116. package/dist/dso-toolkit/{p-6050e8e6.entry.js → p-b34f24b4.entry.js} +2 -2
  117. package/dist/dso-toolkit/{p-168750a2.entry.js → p-b76768a5.entry.js} +2 -2
  118. package/dist/dso-toolkit/{p-e86e0fce.entry.js → p-b9d441d5.entry.js} +2 -2
  119. package/dist/dso-toolkit/{p-1fe715e4.entry.js → p-bc9e3037.entry.js} +2 -2
  120. package/dist/dso-toolkit/{p-bcae3f55.entry.js → p-bcecc743.entry.js} +2 -2
  121. package/dist/dso-toolkit/p-e69d7e62.entry.js +2 -0
  122. package/dist/dso-toolkit/{p-5265e22b.entry.js.map → p-e69d7e62.entry.js.map} +1 -1
  123. package/dist/dso-toolkit/{p-f3ed8688.entry.js → p-f21e4ccc.entry.js} +2 -2
  124. package/dist/esm/dso-accordion-section.entry.js +1 -1
  125. package/dist/esm/dso-accordion.entry.js +1 -1
  126. package/dist/esm/dso-action-list-item.entry.js +1 -1
  127. package/dist/esm/dso-action-list.entry.js +1 -1
  128. package/dist/esm/dso-alert_5.entry.js +1 -1
  129. package/dist/esm/dso-annotation-output_3.entry.js +1 -1
  130. package/dist/esm/dso-attachments-counter.entry.js +1 -1
  131. package/dist/esm/dso-autosuggest.entry.js +1 -1
  132. package/dist/esm/dso-banner.entry.js +1 -1
  133. package/dist/esm/dso-card-container.entry.js +1 -1
  134. package/dist/esm/dso-card.entry.js +1 -1
  135. package/dist/esm/dso-date-picker.entry.js +1 -1
  136. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  137. package/dist/esm/dso-expandable.entry.js +1 -1
  138. package/dist/esm/dso-header.entry.js +1 -1
  139. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  140. package/dist/esm/dso-highlight-box.entry.js +1 -1
  141. package/dist/esm/dso-icon.entry.js +1 -1
  142. package/dist/esm/dso-image-overlay.entry.js +1 -1
  143. package/dist/esm/dso-info-button.entry.js +1 -1
  144. package/dist/esm/dso-info_2.entry.js +1 -1
  145. package/dist/esm/dso-list-button.entry.js +1 -1
  146. package/dist/esm/dso-map-base-layers.entry.js +1 -1
  147. package/dist/esm/dso-map-controls.entry.js +1 -1
  148. package/dist/esm/dso-map-overlays.entry.js +1 -1
  149. package/dist/esm/dso-modal.entry.js +13 -45
  150. package/dist/esm/dso-modal.entry.js.map +1 -1
  151. package/dist/esm/dso-pagination.entry.js +1 -1
  152. package/dist/esm/dso-progress-bar.entry.js +1 -1
  153. package/dist/esm/dso-progress-indicator.entry.js +1 -1
  154. package/dist/esm/dso-responsive-element.entry.js +1 -1
  155. package/dist/esm/dso-scrollable.entry.js +1 -1
  156. package/dist/esm/dso-table.entry.js +2 -2
  157. package/dist/esm/dso-table.entry.js.map +1 -1
  158. package/dist/esm/dso-toggletip.entry.js +1 -1
  159. package/dist/esm/dso-toolkit.js +3 -3
  160. package/dist/esm/dso-tooltip.entry.js +1 -1
  161. package/dist/esm/dso-tree-view.entry.js +1 -1
  162. package/dist/esm/dso-viewer-grid.entry.js +83 -62
  163. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  164. package/dist/esm/dsot-document-component-demo.entry.js +1 -1
  165. package/dist/esm/{index-367cff36.js → index-3e9ed0c5.js} +1 -4
  166. package/dist/esm/index-3e9ed0c5.js.map +1 -0
  167. package/dist/esm/index.js +0 -69
  168. package/dist/esm/index.js.map +1 -1
  169. package/dist/esm/loader.js +3 -3
  170. package/dist/types/components/modal/modal.d.ts +9 -15
  171. package/dist/types/components/modal/modal.interfaces.d.ts +2 -13
  172. package/dist/types/components/viewer-grid/components/filterpanel.d.ts +7 -0
  173. package/dist/types/components/viewer-grid/components/index.d.ts +3 -0
  174. package/dist/types/components/viewer-grid/components/main-panel.d.ts +10 -0
  175. package/dist/types/components/viewer-grid/components/overlay.d.ts +6 -0
  176. package/dist/types/components/viewer-grid/components/viewer-grid-filterpanel-buttons.d.ts +6 -0
  177. package/dist/types/components/viewer-grid/viewer-grid.d.ts +12 -11
  178. package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +13 -2
  179. package/dist/types/components.d.ts +14 -24
  180. package/dist/types/index.d.ts +0 -1
  181. package/package.json +2 -2
  182. package/dist/cjs/index-efc2222e.js.map +0 -1
  183. package/dist/collection/components/modal/modal-ref.js +0 -19
  184. package/dist/collection/components/modal/modal-ref.js.map +0 -1
  185. package/dist/collection/components/modal/modal.controller.js +0 -51
  186. package/dist/collection/components/modal/modal.controller.js.map +0 -1
  187. package/dist/collection/components/viewer-grid/viewer-grid-filterpanel-buttons.js.map +0 -1
  188. package/dist/dso-toolkit/p-04c97d7d.entry.js +0 -2
  189. package/dist/dso-toolkit/p-04c97d7d.entry.js.map +0 -1
  190. package/dist/dso-toolkit/p-42d3c595.entry.js +0 -2
  191. package/dist/dso-toolkit/p-5265e22b.entry.js +0 -2
  192. package/dist/dso-toolkit/p-70a28e3f.entry.js +0 -2
  193. package/dist/dso-toolkit/p-70a28e3f.entry.js.map +0 -1
  194. package/dist/dso-toolkit/p-ce928197.js +0 -3
  195. package/dist/dso-toolkit/p-ce928197.js.map +0 -1
  196. package/dist/dso-toolkit/p-e4553695.entry.js +0 -2
  197. package/dist/dso-toolkit/p-e4553695.entry.js.map +0 -1
  198. package/dist/esm/index-367cff36.js.map +0 -1
  199. package/dist/types/components/modal/modal-ref.d.ts +0 -8
  200. package/dist/types/components/modal/modal.controller.d.ts +0 -6
  201. package/dist/types/components/viewer-grid/viewer-grid-filterpanel-buttons.d.ts +0 -6
  202. /package/dist/collection/components/viewer-grid/{viewer-grid-filterpanel-buttons.js → components/viewer-grid-filterpanel-buttons.js} +0 -0
  203. /package/dist/dso-toolkit/{p-b608283b.entry.js.map → p-0dffb117.entry.js.map} +0 -0
  204. /package/dist/dso-toolkit/{p-14453f73.entry.js.map → p-14aa091d.entry.js.map} +0 -0
  205. /package/dist/dso-toolkit/{p-d8c137b5.entry.js.map → p-1c721290.entry.js.map} +0 -0
  206. /package/dist/dso-toolkit/{p-56d87a53.entry.js.map → p-22baee8e.entry.js.map} +0 -0
  207. /package/dist/dso-toolkit/{p-a616ab8a.entry.js.map → p-2ccbf58d.entry.js.map} +0 -0
  208. /package/dist/dso-toolkit/{p-9f2bb98b.entry.js.map → p-3cbf8b97.entry.js.map} +0 -0
  209. /package/dist/dso-toolkit/{p-29b741cb.entry.js.map → p-3d4308ba.entry.js.map} +0 -0
  210. /package/dist/dso-toolkit/{p-c8165a50.entry.js.map → p-420e0d23.entry.js.map} +0 -0
  211. /package/dist/dso-toolkit/{p-bf203ab8.entry.js.map → p-423fa057.entry.js.map} +0 -0
  212. /package/dist/dso-toolkit/{p-debbe184.entry.js.map → p-440fc4ae.entry.js.map} +0 -0
  213. /package/dist/dso-toolkit/{p-d3f69d06.entry.js.map → p-49bce8b2.entry.js.map} +0 -0
  214. /package/dist/dso-toolkit/{p-f56c1b28.entry.js.map → p-4bc67e5c.entry.js.map} +0 -0
  215. /package/dist/dso-toolkit/{p-9b587a94.entry.js.map → p-4da2fa8b.entry.js.map} +0 -0
  216. /package/dist/dso-toolkit/{p-0e5a93c3.entry.js.map → p-4e86089d.entry.js.map} +0 -0
  217. /package/dist/dso-toolkit/{p-68e9f61b.entry.js.map → p-51f19c06.entry.js.map} +0 -0
  218. /package/dist/dso-toolkit/{p-05ea1fba.entry.js.map → p-54c65314.entry.js.map} +0 -0
  219. /package/dist/dso-toolkit/{p-818d032e.entry.js.map → p-5ee79846.entry.js.map} +0 -0
  220. /package/dist/dso-toolkit/{p-e2cacb8b.entry.js.map → p-604eb60b.entry.js.map} +0 -0
  221. /package/dist/dso-toolkit/{p-1c295ae2.entry.js.map → p-669c3743.entry.js.map} +0 -0
  222. /package/dist/dso-toolkit/{p-b67631ef.entry.js.map → p-745b6678.entry.js.map} +0 -0
  223. /package/dist/dso-toolkit/{p-cfd6f4ef.entry.js.map → p-7a6be9c1.entry.js.map} +0 -0
  224. /package/dist/dso-toolkit/{p-27dfadbf.entry.js.map → p-8b77b083.entry.js.map} +0 -0
  225. /package/dist/dso-toolkit/{p-3fa7489e.entry.js.map → p-8f8dd254.entry.js.map} +0 -0
  226. /package/dist/dso-toolkit/{p-e26974ee.entry.js.map → p-98f7ede6.entry.js.map} +0 -0
  227. /package/dist/dso-toolkit/{p-fafa5ea1.entry.js.map → p-a00c4003.entry.js.map} +0 -0
  228. /package/dist/dso-toolkit/{p-9fee52e5.entry.js.map → p-a1060560.entry.js.map} +0 -0
  229. /package/dist/dso-toolkit/{p-6050e8e6.entry.js.map → p-b34f24b4.entry.js.map} +0 -0
  230. /package/dist/dso-toolkit/{p-168750a2.entry.js.map → p-b76768a5.entry.js.map} +0 -0
  231. /package/dist/dso-toolkit/{p-e86e0fce.entry.js.map → p-b9d441d5.entry.js.map} +0 -0
  232. /package/dist/dso-toolkit/{p-1fe715e4.entry.js.map → p-bc9e3037.entry.js.map} +0 -0
  233. /package/dist/dso-toolkit/{p-bcae3f55.entry.js.map → p-bcecc743.entry.js.map} +0 -0
  234. /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-map-panel {
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-map-panel .dso-filterblok-address {
221
+ .dso-main-panel .dso-filterblok-address {
273
222
  font-weight: bold;
274
223
  margin: 8px 0;
275
224
  }
276
- .dso-map-panel .main {
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 FilterpanelEvent {\r\n originalEvent: MouseEvent;\r\n}\r\n\r\nexport type MainSize = \"small\" | \"medium\" | \"large\";\r\n\r\nexport type LabelSizeMap = { [key in MainSize]: string };\r\n"]}
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 { createFocusTrap } from "focus-trap";
3
- import { ViewerGridFilterpanelButtons } from "./viewer-grid-filterpanel-buttons";
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.sizeLabelMap = {
7
- small: "smal",
8
- medium: "middel",
9
- large: "breed",
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.keyDownListener = (event) => {
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.mapPanel) === null || _a === void 0 ? void 0 : _a.addEventListener("transitionend", (e) => {
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
- updateFocusTrap() {
46
+ filterpanelOpenWatcher(open) {
48
47
  var _a, _b;
49
- if (this.filterpanelOpen && this.overlayOpen) {
50
- return;
48
+ if (!this.filterpanelSlot) {
49
+ console.warn("slot 'filterpanel' has not been set");
51
50
  }
52
- if (this.filterpanelFocustrap) {
53
- if (this.filterpanelOpen && !((_a = this.filterpanel) === null || _a === void 0 ? void 0 : _a.hidden)) {
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
- if (this.overlayFocustrap) {
63
- if (this.overlayOpen && !((_b = this.overlay) === null || _b === void 0 ? void 0 : _b.hidden)) {
64
- this.overlayFocustrap.activate();
65
- this.host.addEventListener("keydown", this.keyDownListener);
66
- }
67
- else {
68
- this.overlayFocustrap.deactivate();
69
- this.host.removeEventListener("keydown", this.keyDownListener);
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
- if (this.filterpanel && this.filterpanelSlot) {
79
- this.filterpanelFocustrap = createFocusTrap([this.filterpanel, this.filterpanelSlot], {
80
- escapeDeactivates: false,
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.overlay && this.overlaySlot) {
88
- this.overlayFocustrap = createFocusTrap([this.overlay, this.overlaySlot], {
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
- var _a, _b;
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 }), h("div", { class: "dso-map-panel", ref: (element) => (this.mapPanel = element) }, h("div", { class: "sizing-buttons" }, h("span", { class: "sr-only", "aria-live": "polite", "aria-atomic": "true" }, "Breedte tekstpaneel: ", this.sizeLabelMap[this.mainSize]), h("button", { type: "button", class: "shrink", disabled: this.mainSize === "small", onClick: this.shrinkMain }, h("span", { class: "sr-only" }, "Tekstpaneel smaller maken"), h("dso-icon", { icon: "chevron-left" })), h("button", { type: "button", class: "expand", disabled: this.mainSize === "large", onClick: this.expandMain }, h("span", { class: "sr-only" }, "Tekstpaneel breder maken"), h("dso-icon", { icon: "chevron-right" }))), h("div", { class: "main" }, h("slot", { name: "main" }))), h("div", { id: "filterpanel", class: "filterpanel", hidden: !this.filterpanelOpen || !this.filterpanelSlot, ref: (element) => (this.filterpanel = element) }, h("h1", null, "Uw keuzes"), h(ViewerGridFilterpanelButtons, { onApply: (e) => this.handleFilterpanelApply(e), onCancel: (e) => this.handleFilterpanelCancel(e) }), h("slot", { name: "filterpanel" }), h(ViewerGridFilterpanelButtons, { onApply: (e) => this.handleFilterpanelApply(e), onCancel: (e) => this.handleFilterpanelCancel(e) })), h("div", { class: "map" }, h("slot", { name: "map" })), h("div", { hidden: !this.overlayOpen || !this.overlaySlot, class: "dimscreen" }), h("div", { class: "overlay", hidden: !this.overlayOpen || !this.overlaySlot, ref: (element) => (this.overlay = element) }, h("button", { type: "button", class: "overlay-close-button", onClick: (e) => this.dsoCloseOverlay.emit(e) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "sluiten")), h("slot", { name: "overlay" }), h("button", { "aria-hidden": "true", type: "button", class: "overlay-close-button", style: { zIndex: "-100" } }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "sluiten")))));
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": "MouseEvent | KeyboardEvent",
213
- "resolved": "KeyboardEvent | MouseEvent",
194
+ "original": "ViewerGridCloseOverlayEvent",
195
+ "resolved": "ViewerGridCloseOverlayEvent",
214
196
  "references": {
215
- "MouseEvent": {
216
- "location": "global"
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": "FilterpanelEvent",
235
- "resolved": "FilterpanelEvent",
214
+ "original": "ViewerGridFilterpanelCancelEvent",
215
+ "resolved": "ViewerGridFilterpanelCancelEvent",
236
216
  "references": {
237
- "FilterpanelEvent": {
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": "FilterpanelEvent",
255
- "resolved": "FilterpanelEvent",
234
+ "original": "ViewerGridFilterpanelApplyEvent",
235
+ "resolved": "ViewerGridFilterpanelApplyEvent",
256
236
  "references": {
257
- "FilterpanelEvent": {
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
  }