@dso-toolkit/core 56.0.0 → 57.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-alert_5.cjs.entry.js +34 -32
- package/dist/cjs/dso-alert_5.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
- package/dist/cjs/dso-expandable.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +2 -2
- package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-table.cjs.entry.js +1 -1
- package/dist/cjs/dso-table.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.interfaces.js.map +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/components/accordion-section.css +97 -32
- package/dist/collection/components/accordion/components/accordion-section.interfaces.js.map +1 -1
- package/dist/collection/components/accordion/components/accordion-section.js +3 -3
- package/dist/collection/components/accordion/components/accordion-section.js.map +1 -1
- package/dist/collection/components/annotation-button/annotation-button.css +59 -383
- package/dist/collection/components/annotation-button/annotation-button.js +1 -1
- package/dist/collection/components/annotation-output/annotation-output.js +1 -1
- package/dist/collection/components/expandable/expandable.js +2 -2
- package/dist/collection/components/expandable/expandable.js.map +1 -1
- package/dist/collection/components/header/header.css +3 -3
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +12 -12
- package/dist/collection/components/image-overlay/image-overlay.css +14 -14
- package/dist/collection/components/info-button/info-button.js +1 -1
- package/dist/collection/components/info-button/info-button.js.map +1 -1
- package/dist/collection/components/label/label.js +42 -33
- package/dist/collection/components/label/label.js.map +1 -1
- package/dist/collection/components/list-button/list-button.css +29 -23
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/list-button/list-button.js.map +1 -1
- package/dist/collection/components/map-controls/map-controls.css +21 -15
- package/dist/collection/components/modal/modal.css +6 -8
- package/dist/collection/components/ozon-content/ozon-content.css +7 -1
- package/dist/collection/components/table/table.css +13 -9
- package/dist/collection/components/viewer-grid/viewer-grid.css +30 -22
- package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
- package/dist/components/annotation-button.js +1 -1
- package/dist/components/annotation-button.js.map +1 -1
- package/dist/components/dso-accordion-section.js +1 -1
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-header.js +1 -1
- package/dist/components/dso-header.js.map +1 -1
- package/dist/components/dso-helpcenter-panel.js +1 -1
- package/dist/components/dso-helpcenter-panel.js.map +1 -1
- package/dist/components/dso-image-overlay.js +1 -1
- package/dist/components/dso-image-overlay.js.map +1 -1
- package/dist/components/dso-list-button.js +2 -2
- package/dist/components/dso-list-button.js.map +1 -1
- package/dist/components/dso-map-controls.js +1 -1
- package/dist/components/dso-map-controls.js.map +1 -1
- package/dist/components/dso-modal.js +1 -1
- 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 +2 -2
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/expandable.js +1 -1
- package/dist/components/expandable.js.map +1 -1
- package/dist/components/info-button.js +1 -1
- package/dist/components/info-button.js.map +1 -1
- package/dist/components/label.js +33 -31
- package/dist/components/label.js.map +1 -1
- package/dist/components/ozon-content.js +1 -1
- package/dist/components/ozon-content.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/p-04c97d7d.entry.js +2 -0
- package/dist/dso-toolkit/{p-909ccf98.entry.js.map → p-04c97d7d.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-1c295ae2.entry.js +2 -0
- package/dist/dso-toolkit/p-1c295ae2.entry.js.map +1 -0
- package/dist/dso-toolkit/p-1fe715e4.entry.js +2 -0
- package/dist/dso-toolkit/{p-422bcf93.entry.js.map → p-1fe715e4.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-27dfadbf.entry.js +2 -0
- package/dist/dso-toolkit/{p-b627d9ac.entry.js.map → p-27dfadbf.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-70a28e3f.entry.js +2 -0
- package/dist/dso-toolkit/{p-9c0477fc.entry.js.map → p-70a28e3f.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-b608283b.entry.js +2 -0
- package/dist/dso-toolkit/{p-29752a45.entry.js.map → p-b608283b.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-e26974ee.entry.js +2 -0
- package/dist/dso-toolkit/p-e26974ee.entry.js.map +1 -0
- package/dist/dso-toolkit/p-e2cacb8b.entry.js +2 -0
- package/dist/dso-toolkit/{p-484ea1d2.entry.js.map → p-e2cacb8b.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-e4553695.entry.js +2 -0
- package/dist/dso-toolkit/{p-1cc75e0b.entry.js.map → p-e4553695.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-674e2406.entry.js → p-e86e0fce.entry.js} +2 -2
- package/dist/dso-toolkit/p-e86e0fce.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-83cdfde8.entry.js → p-f3ed8688.entry.js} +2 -2
- package/dist/dso-toolkit/{p-83cdfde8.entry.js.map → p-f3ed8688.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-ec4b568d.entry.js → p-f56c1b28.entry.js} +2 -2
- package/dist/dso-toolkit/{p-ec4b568d.entry.js.map → p-f56c1b28.entry.js.map} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-alert_5.entry.js +34 -32
- package/dist/esm/dso-alert_5.entry.js.map +1 -1
- package/dist/esm/dso-expandable.entry.js +1 -1
- package/dist/esm/dso-expandable.entry.js.map +1 -1
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-header.entry.js.map +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js.map +1 -1
- package/dist/esm/dso-image-overlay.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js.map +1 -1
- package/dist/esm/dso-info-button.entry.js +1 -1
- package/dist/esm/dso-info-button.entry.js.map +1 -1
- package/dist/esm/dso-list-button.entry.js +2 -2
- package/dist/esm/dso-list-button.entry.js.map +1 -1
- package/dist/esm/dso-map-controls.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js.map +1 -1
- package/dist/esm/dso-modal.entry.js +1 -1
- package/dist/esm/dso-modal.entry.js.map +1 -1
- package/dist/esm/dso-table.entry.js +1 -1
- package/dist/esm/dso-table.entry.js.map +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +2 -2
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/accordion/accordion.interfaces.d.ts +1 -23
- package/dist/types/components/accordion/components/accordion-section.d.ts +1 -2
- package/dist/types/components/accordion/components/accordion-section.interfaces.d.ts +22 -0
- package/dist/types/components/label/label.d.ts +9 -9
- package/dist/types/components.d.ts +4 -4
- package/package.json +2 -2
- package/dist/dso-toolkit/p-1cc75e0b.entry.js +0 -2
- package/dist/dso-toolkit/p-29752a45.entry.js +0 -2
- package/dist/dso-toolkit/p-39f6447d.entry.js +0 -2
- package/dist/dso-toolkit/p-39f6447d.entry.js.map +0 -1
- package/dist/dso-toolkit/p-3c554a18.entry.js +0 -2
- package/dist/dso-toolkit/p-3c554a18.entry.js.map +0 -1
- package/dist/dso-toolkit/p-422bcf93.entry.js +0 -2
- package/dist/dso-toolkit/p-484ea1d2.entry.js +0 -2
- package/dist/dso-toolkit/p-674e2406.entry.js.map +0 -1
- package/dist/dso-toolkit/p-909ccf98.entry.js +0 -2
- package/dist/dso-toolkit/p-9c0477fc.entry.js +0 -2
- package/dist/dso-toolkit/p-b627d9ac.entry.js +0 -2
|
@@ -98,19 +98,19 @@ button::-moz-focus-inner {
|
|
|
98
98
|
border-color: #afcf9d;
|
|
99
99
|
color: #afcf9d;
|
|
100
100
|
}
|
|
101
|
-
.toggle-visibility-button.
|
|
101
|
+
.toggle-visibility-button.dso-small {
|
|
102
102
|
line-height: 1rem;
|
|
103
103
|
}
|
|
104
|
-
.toggle-visibility-button.
|
|
105
|
-
.toggle-visibility-button.
|
|
104
|
+
.toggle-visibility-button.dso-small dso-icon,
|
|
105
|
+
.toggle-visibility-button.dso-small svg.di, .toggle-visibility-button.dso-small.extern::after, .toggle-visibility-button.dso-small.download::after, .toggle-visibility-button.dso-small.dso-spinner::before {
|
|
106
106
|
margin-bottom: -4px;
|
|
107
107
|
margin-top: -4px;
|
|
108
108
|
}
|
|
109
|
-
.toggle-visibility-button.
|
|
109
|
+
.toggle-visibility-button.dso-small.dso-spinner-left::before {
|
|
110
110
|
height: 16px;
|
|
111
111
|
width: 16px;
|
|
112
112
|
}
|
|
113
|
-
.toggle-visibility-button.
|
|
113
|
+
.toggle-visibility-button.dso-small.dso-spinner-right::after {
|
|
114
114
|
height: 16px;
|
|
115
115
|
width: 16px;
|
|
116
116
|
}
|
|
@@ -149,7 +149,7 @@ button::-moz-focus-inner {
|
|
|
149
149
|
width: 24px;
|
|
150
150
|
margin-right: 8px;
|
|
151
151
|
}
|
|
152
|
-
.toggle-visibility-button.dso-spinner-left:not([disabled]).
|
|
152
|
+
.toggle-visibility-button.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
153
153
|
height: 16px;
|
|
154
154
|
width: 16px;
|
|
155
155
|
}
|
|
@@ -173,7 +173,7 @@ button::-moz-focus-inner {
|
|
|
173
173
|
width: 24px;
|
|
174
174
|
margin-left: 8px;
|
|
175
175
|
}
|
|
176
|
-
.toggle-visibility-button.dso-spinner-right:not([disabled]).
|
|
176
|
+
.toggle-visibility-button.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
177
177
|
height: 16px;
|
|
178
178
|
width: 16px;
|
|
179
179
|
}
|
|
@@ -244,19 +244,19 @@ button::-moz-focus-inner {
|
|
|
244
244
|
border-color: #afcf9d;
|
|
245
245
|
color: #afcf9d;
|
|
246
246
|
}
|
|
247
|
-
.zoom-buttons button.
|
|
247
|
+
.zoom-buttons button.dso-small {
|
|
248
248
|
line-height: 1rem;
|
|
249
249
|
}
|
|
250
|
-
.zoom-buttons button.
|
|
251
|
-
.zoom-buttons button.
|
|
250
|
+
.zoom-buttons button.dso-small dso-icon,
|
|
251
|
+
.zoom-buttons button.dso-small svg.di, .zoom-buttons button.dso-small.extern::after, .zoom-buttons button.dso-small.download::after, .zoom-buttons button.dso-small.dso-spinner::before {
|
|
252
252
|
margin-bottom: -4px;
|
|
253
253
|
margin-top: -4px;
|
|
254
254
|
}
|
|
255
|
-
.zoom-buttons button.
|
|
255
|
+
.zoom-buttons button.dso-small.dso-spinner-left::before {
|
|
256
256
|
height: 16px;
|
|
257
257
|
width: 16px;
|
|
258
258
|
}
|
|
259
|
-
.zoom-buttons button.
|
|
259
|
+
.zoom-buttons button.dso-small.dso-spinner-right::after {
|
|
260
260
|
height: 16px;
|
|
261
261
|
width: 16px;
|
|
262
262
|
}
|
|
@@ -295,7 +295,7 @@ button::-moz-focus-inner {
|
|
|
295
295
|
width: 24px;
|
|
296
296
|
margin-right: 8px;
|
|
297
297
|
}
|
|
298
|
-
.zoom-buttons button.dso-spinner-left:not([disabled]).
|
|
298
|
+
.zoom-buttons button.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
299
299
|
height: 16px;
|
|
300
300
|
width: 16px;
|
|
301
301
|
}
|
|
@@ -319,7 +319,7 @@ button::-moz-focus-inner {
|
|
|
319
319
|
width: 24px;
|
|
320
320
|
margin-left: 8px;
|
|
321
321
|
}
|
|
322
|
-
.zoom-buttons button.dso-spinner-right:not([disabled]).
|
|
322
|
+
.zoom-buttons button.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
323
323
|
height: 16px;
|
|
324
324
|
width: 16px;
|
|
325
325
|
}
|
|
@@ -376,11 +376,17 @@ button::-moz-focus-inner {
|
|
|
376
376
|
.close-button:not([disabled]):active {
|
|
377
377
|
color: #173521;
|
|
378
378
|
}
|
|
379
|
-
.close-button.
|
|
379
|
+
.close-button.dso-align {
|
|
380
380
|
line-height: calc(1.5em - 1px);
|
|
381
381
|
padding: 11px 0;
|
|
382
382
|
position: relative;
|
|
383
383
|
}
|
|
384
|
+
.close-button.dso-truncate {
|
|
385
|
+
max-width: 100%;
|
|
386
|
+
overflow: hidden;
|
|
387
|
+
text-overflow: ellipsis;
|
|
388
|
+
white-space: nowrap;
|
|
389
|
+
}
|
|
384
390
|
.close-button.dso-spinner-left::before {
|
|
385
391
|
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");
|
|
386
392
|
background-repeat: no-repeat;
|
|
@@ -154,7 +154,7 @@ button::-moz-focus-inner {
|
|
|
154
154
|
text-align: right;
|
|
155
155
|
}
|
|
156
156
|
@media screen and (max-width: 767px) {
|
|
157
|
-
.dso-modal .dso-footer .
|
|
157
|
+
.dso-modal .dso-footer .dso-primary + .dso-primary, .dso-modal .dso-footer .dso-primary + .dso-secondary, .dso-modal .dso-footer .dso-primary + .dso-tertiary, .dso-modal .dso-footer .dso-secondary + .dso-primary, .dso-modal .dso-footer .dso-secondary + .dso-secondary, .dso-modal .dso-footer .dso-secondary + .dso-tertiary, .dso-modal .dso-footer .dso-tertiary + .dso-primary, .dso-modal .dso-footer .dso-tertiary + .dso-secondary, .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
|
|
158
158
|
margin-left: 0;
|
|
159
159
|
}
|
|
160
160
|
.dso-modal .dso-footer button {
|
|
@@ -165,16 +165,15 @@ button::-moz-focus-inner {
|
|
|
165
165
|
margin-top: 8px;
|
|
166
166
|
}
|
|
167
167
|
.dso-modal .dso-footer button.dso-tertiary,
|
|
168
|
-
.dso-modal .dso-footer button.dso-tertiary span
|
|
169
|
-
.dso-modal .dso-footer button.btn-link span {
|
|
168
|
+
.dso-modal .dso-footer button.dso-tertiary span {
|
|
170
169
|
float: none;
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
172
|
@media screen and (min-width: 768px) {
|
|
174
|
-
.dso-modal .dso-footer .
|
|
173
|
+
.dso-modal .dso-footer .dso-primary + .dso-secondary, .dso-modal .dso-footer .dso-secondary + .dso-secondary, .dso-modal .dso-footer .dso-tertiary + .dso-secondary {
|
|
175
174
|
margin-left: 16px;
|
|
176
175
|
}
|
|
177
|
-
.dso-modal .dso-footer .
|
|
176
|
+
.dso-modal .dso-footer .dso-primary + .dso-tertiary, .dso-modal .dso-footer .dso-secondary + .dso-tertiary, .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
|
|
178
177
|
margin-left: 0;
|
|
179
178
|
}
|
|
180
179
|
}
|
|
@@ -183,7 +182,7 @@ button::-moz-focus-inner {
|
|
|
183
182
|
max-width: 100%;
|
|
184
183
|
margin-top: 0;
|
|
185
184
|
}
|
|
186
|
-
.dso-modal .dso-footer .
|
|
185
|
+
.dso-modal .dso-footer .dso-primary + .dso-primary, .dso-modal .dso-footer .dso-primary + .dso-secondary, .dso-modal .dso-footer .dso-primary + .dso-tertiary, .dso-modal .dso-footer .dso-secondary + .dso-primary, .dso-modal .dso-footer .dso-secondary + .dso-secondary, .dso-modal .dso-footer .dso-secondary + .dso-tertiary, .dso-modal .dso-footer .dso-tertiary + .dso-primary, .dso-modal .dso-footer .dso-tertiary + .dso-secondary, .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
|
|
187
186
|
margin-left: 0;
|
|
188
187
|
}
|
|
189
188
|
.dso-modal .dso-footer button {
|
|
@@ -194,8 +193,7 @@ button::-moz-focus-inner {
|
|
|
194
193
|
margin-top: 8px;
|
|
195
194
|
}
|
|
196
195
|
.dso-modal .dso-footer button.dso-tertiary,
|
|
197
|
-
.dso-modal .dso-footer button.dso-tertiary span
|
|
198
|
-
.dso-modal .dso-footer button.btn-link span {
|
|
196
|
+
.dso-modal .dso-footer button.dso-tertiary span {
|
|
199
197
|
float: none;
|
|
200
198
|
}
|
|
201
199
|
}
|
|
@@ -92,11 +92,17 @@ button.toggle-note:not([disabled]):hover {
|
|
|
92
92
|
button.toggle-note:not([disabled]):active {
|
|
93
93
|
color: #173521;
|
|
94
94
|
}
|
|
95
|
-
button.toggle-note.
|
|
95
|
+
button.toggle-note.dso-align {
|
|
96
96
|
line-height: calc(1.5em - 1px);
|
|
97
97
|
padding: 11px 0;
|
|
98
98
|
position: relative;
|
|
99
99
|
}
|
|
100
|
+
button.toggle-note.dso-truncate {
|
|
101
|
+
max-width: 100%;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
}
|
|
100
106
|
button.toggle-note.dso-spinner-left::before {
|
|
101
107
|
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");
|
|
102
108
|
background-repeat: no-repeat;
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
text-align: right;
|
|
139
139
|
}
|
|
140
140
|
@media screen and (max-width: 767px) {
|
|
141
|
-
:host .dso-modal .dso-footer .
|
|
141
|
+
:host .dso-modal .dso-footer .dso-primary + .dso-primary, :host .dso-modal .dso-footer .dso-primary + .dso-secondary, :host .dso-modal .dso-footer .dso-primary + .dso-tertiary, :host .dso-modal .dso-footer .dso-secondary + .dso-primary, :host .dso-modal .dso-footer .dso-secondary + .dso-secondary, :host .dso-modal .dso-footer .dso-secondary + .dso-tertiary, :host .dso-modal .dso-footer .dso-tertiary + .dso-primary, :host .dso-modal .dso-footer .dso-tertiary + .dso-secondary, :host .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
|
|
142
142
|
margin-left: 0;
|
|
143
143
|
}
|
|
144
144
|
:host .dso-modal .dso-footer button {
|
|
@@ -149,16 +149,15 @@
|
|
|
149
149
|
margin-top: 8px;
|
|
150
150
|
}
|
|
151
151
|
:host .dso-modal .dso-footer button.dso-tertiary,
|
|
152
|
-
:host .dso-modal .dso-footer button.dso-tertiary span
|
|
153
|
-
:host .dso-modal .dso-footer button.btn-link span {
|
|
152
|
+
:host .dso-modal .dso-footer button.dso-tertiary span {
|
|
154
153
|
float: none;
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
156
|
@media screen and (min-width: 768px) {
|
|
158
|
-
:host .dso-modal .dso-footer .
|
|
157
|
+
:host .dso-modal .dso-footer .dso-primary + .dso-secondary, :host .dso-modal .dso-footer .dso-secondary + .dso-secondary, :host .dso-modal .dso-footer .dso-tertiary + .dso-secondary {
|
|
159
158
|
margin-left: 16px;
|
|
160
159
|
}
|
|
161
|
-
:host .dso-modal .dso-footer .
|
|
160
|
+
:host .dso-modal .dso-footer .dso-primary + .dso-tertiary, :host .dso-modal .dso-footer .dso-secondary + .dso-tertiary, :host .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
|
|
162
161
|
margin-left: 0;
|
|
163
162
|
}
|
|
164
163
|
}
|
|
@@ -167,7 +166,7 @@
|
|
|
167
166
|
max-width: 100%;
|
|
168
167
|
margin-top: 0;
|
|
169
168
|
}
|
|
170
|
-
:host .dso-modal .dso-footer .
|
|
169
|
+
:host .dso-modal .dso-footer .dso-primary + .dso-primary, :host .dso-modal .dso-footer .dso-primary + .dso-secondary, :host .dso-modal .dso-footer .dso-primary + .dso-tertiary, :host .dso-modal .dso-footer .dso-secondary + .dso-primary, :host .dso-modal .dso-footer .dso-secondary + .dso-secondary, :host .dso-modal .dso-footer .dso-secondary + .dso-tertiary, :host .dso-modal .dso-footer .dso-tertiary + .dso-primary, :host .dso-modal .dso-footer .dso-tertiary + .dso-secondary, :host .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
|
|
171
170
|
margin-left: 0;
|
|
172
171
|
}
|
|
173
172
|
:host .dso-modal .dso-footer button {
|
|
@@ -178,8 +177,7 @@
|
|
|
178
177
|
margin-top: 8px;
|
|
179
178
|
}
|
|
180
179
|
:host .dso-modal .dso-footer button.dso-tertiary,
|
|
181
|
-
:host .dso-modal .dso-footer button.dso-tertiary span
|
|
182
|
-
:host .dso-modal .dso-footer button.btn-link span {
|
|
180
|
+
:host .dso-modal .dso-footer button.dso-tertiary span {
|
|
183
181
|
float: none;
|
|
184
182
|
}
|
|
185
183
|
}
|
|
@@ -288,11 +286,17 @@
|
|
|
288
286
|
.dso-tertiary:not([disabled]):active {
|
|
289
287
|
color: #173521;
|
|
290
288
|
}
|
|
291
|
-
.dso-tertiary.
|
|
289
|
+
.dso-tertiary.dso-align {
|
|
292
290
|
line-height: calc(1.5em - 1px);
|
|
293
291
|
padding: 11px 0;
|
|
294
292
|
position: relative;
|
|
295
293
|
}
|
|
294
|
+
.dso-tertiary.dso-truncate {
|
|
295
|
+
max-width: 100%;
|
|
296
|
+
overflow: hidden;
|
|
297
|
+
text-overflow: ellipsis;
|
|
298
|
+
white-space: nowrap;
|
|
299
|
+
}
|
|
296
300
|
.dso-tertiary.dso-spinner-left::before {
|
|
297
301
|
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");
|
|
298
302
|
background-repeat: no-repeat;
|
|
@@ -138,13 +138,21 @@ button::-moz-focus-inner {
|
|
|
138
138
|
.overlay-close-button:not([disabled]):active {
|
|
139
139
|
color: #173521;
|
|
140
140
|
}
|
|
141
|
-
.shrink.
|
|
142
|
-
.expand.
|
|
143
|
-
.overlay-close-button.
|
|
141
|
+
.shrink.dso-align,
|
|
142
|
+
.expand.dso-align,
|
|
143
|
+
.overlay-close-button.dso-align {
|
|
144
144
|
line-height: calc(1.5em - 1px);
|
|
145
145
|
padding: 11px 0;
|
|
146
146
|
position: relative;
|
|
147
147
|
}
|
|
148
|
+
.shrink.dso-truncate,
|
|
149
|
+
.expand.dso-truncate,
|
|
150
|
+
.overlay-close-button.dso-truncate {
|
|
151
|
+
max-width: 100%;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
white-space: nowrap;
|
|
155
|
+
}
|
|
148
156
|
.shrink.dso-spinner-left::before,
|
|
149
157
|
.expand.dso-spinner-left::before,
|
|
150
158
|
.overlay-close-button.dso-spinner-left::before {
|
|
@@ -332,19 +340,19 @@ button::-moz-focus-inner {
|
|
|
332
340
|
border-color: #afcf9d;
|
|
333
341
|
color: #afcf9d;
|
|
334
342
|
}
|
|
335
|
-
.sizing-buttons button.
|
|
343
|
+
.sizing-buttons button.dso-small {
|
|
336
344
|
line-height: 1rem;
|
|
337
345
|
}
|
|
338
|
-
.sizing-buttons button.
|
|
339
|
-
.sizing-buttons button.
|
|
346
|
+
.sizing-buttons button.dso-small dso-icon,
|
|
347
|
+
.sizing-buttons button.dso-small svg.di, .sizing-buttons button.dso-small.extern::after, .sizing-buttons button.dso-small.download::after, .sizing-buttons button.dso-small.dso-spinner::before {
|
|
340
348
|
margin-bottom: -4px;
|
|
341
349
|
margin-top: -4px;
|
|
342
350
|
}
|
|
343
|
-
.sizing-buttons button.
|
|
351
|
+
.sizing-buttons button.dso-small.dso-spinner-left::before {
|
|
344
352
|
height: 16px;
|
|
345
353
|
width: 16px;
|
|
346
354
|
}
|
|
347
|
-
.sizing-buttons button.
|
|
355
|
+
.sizing-buttons button.dso-small.dso-spinner-right::after {
|
|
348
356
|
height: 16px;
|
|
349
357
|
width: 16px;
|
|
350
358
|
}
|
|
@@ -383,7 +391,7 @@ button::-moz-focus-inner {
|
|
|
383
391
|
width: 24px;
|
|
384
392
|
margin-right: 8px;
|
|
385
393
|
}
|
|
386
|
-
.sizing-buttons button.dso-spinner-left:not([disabled]).
|
|
394
|
+
.sizing-buttons button.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
387
395
|
height: 16px;
|
|
388
396
|
width: 16px;
|
|
389
397
|
}
|
|
@@ -407,7 +415,7 @@ button::-moz-focus-inner {
|
|
|
407
415
|
width: 24px;
|
|
408
416
|
margin-left: 8px;
|
|
409
417
|
}
|
|
410
|
-
.sizing-buttons button.dso-spinner-right:not([disabled]).
|
|
418
|
+
.sizing-buttons button.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
411
419
|
height: 16px;
|
|
412
420
|
width: 16px;
|
|
413
421
|
}
|
|
@@ -542,19 +550,19 @@ button::-moz-focus-inner {
|
|
|
542
550
|
border-color: #afcf9d;
|
|
543
551
|
color: #afcf9d;
|
|
544
552
|
}
|
|
545
|
-
.filterpanel-buttons .cancel-button.
|
|
553
|
+
.filterpanel-buttons .cancel-button.dso-small {
|
|
546
554
|
line-height: 1rem;
|
|
547
555
|
}
|
|
548
|
-
.filterpanel-buttons .cancel-button.
|
|
549
|
-
.filterpanel-buttons .cancel-button.
|
|
556
|
+
.filterpanel-buttons .cancel-button.dso-small dso-icon,
|
|
557
|
+
.filterpanel-buttons .cancel-button.dso-small svg.di, .filterpanel-buttons .cancel-button.dso-small.extern::after, .filterpanel-buttons .cancel-button.dso-small.download::after, .filterpanel-buttons .cancel-button.dso-small.dso-spinner::before {
|
|
550
558
|
margin-bottom: -4px;
|
|
551
559
|
margin-top: -4px;
|
|
552
560
|
}
|
|
553
|
-
.filterpanel-buttons .cancel-button.
|
|
561
|
+
.filterpanel-buttons .cancel-button.dso-small.dso-spinner-left::before {
|
|
554
562
|
height: 16px;
|
|
555
563
|
width: 16px;
|
|
556
564
|
}
|
|
557
|
-
.filterpanel-buttons .cancel-button.
|
|
565
|
+
.filterpanel-buttons .cancel-button.dso-small.dso-spinner-right::after {
|
|
558
566
|
height: 16px;
|
|
559
567
|
width: 16px;
|
|
560
568
|
}
|
|
@@ -593,7 +601,7 @@ button::-moz-focus-inner {
|
|
|
593
601
|
width: 24px;
|
|
594
602
|
margin-right: 8px;
|
|
595
603
|
}
|
|
596
|
-
.filterpanel-buttons .cancel-button.dso-spinner-left:not([disabled]).
|
|
604
|
+
.filterpanel-buttons .cancel-button.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
597
605
|
height: 16px;
|
|
598
606
|
width: 16px;
|
|
599
607
|
}
|
|
@@ -617,7 +625,7 @@ button::-moz-focus-inner {
|
|
|
617
625
|
width: 24px;
|
|
618
626
|
margin-left: 8px;
|
|
619
627
|
}
|
|
620
|
-
.filterpanel-buttons .cancel-button.dso-spinner-right:not([disabled]).
|
|
628
|
+
.filterpanel-buttons .cancel-button.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
621
629
|
height: 16px;
|
|
622
630
|
width: 16px;
|
|
623
631
|
}
|
|
@@ -676,19 +684,19 @@ button::-moz-focus-inner {
|
|
|
676
684
|
border-color: #afcf9d;
|
|
677
685
|
color: #fff;
|
|
678
686
|
}
|
|
679
|
-
.filterpanel-buttons .apply-button.
|
|
687
|
+
.filterpanel-buttons .apply-button.dso-small {
|
|
680
688
|
line-height: 1rem;
|
|
681
689
|
}
|
|
682
|
-
.filterpanel-buttons .apply-button.
|
|
683
|
-
.filterpanel-buttons .apply-button.
|
|
690
|
+
.filterpanel-buttons .apply-button.dso-small dso-icon,
|
|
691
|
+
.filterpanel-buttons .apply-button.dso-small svg.di, .filterpanel-buttons .apply-button.dso-small.extern::after, .filterpanel-buttons .apply-button.dso-small.download::after, .filterpanel-buttons .apply-button.dso-small.dso-spinner::before {
|
|
684
692
|
margin-bottom: -4px;
|
|
685
693
|
margin-top: -4px;
|
|
686
694
|
}
|
|
687
|
-
.filterpanel-buttons .apply-button.
|
|
695
|
+
.filterpanel-buttons .apply-button.dso-small.dso-spinner-left::before {
|
|
688
696
|
height: 16px;
|
|
689
697
|
width: 16px;
|
|
690
698
|
}
|
|
691
|
-
.filterpanel-buttons .apply-button.
|
|
699
|
+
.filterpanel-buttons .apply-button.dso-small.dso-spinner-right::after {
|
|
692
700
|
height: 16px;
|
|
693
701
|
width: 16px;
|
|
694
702
|
}
|
|
@@ -116,7 +116,7 @@ export class ViewerGrid {
|
|
|
116
116
|
this.dsoFilterpanelCancel.emit({ originalEvent: mouseEvent });
|
|
117
117
|
}
|
|
118
118
|
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" }, "
|
|
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")))));
|
|
120
120
|
}
|
|
121
121
|
static get is() { return "dso-viewer-grid"; }
|
|
122
122
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-grid.js","sourceRoot":"","sources":["../../../src/components/viewer-grid/viewer-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAa,eAAe,EAAE,MAAM,YA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UAClC,YAAM,KAAK,EAAC,SAAS,cAAe,CAC7B,CACL,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop, State, Host, Element, Event, EventEmitter, Watch } from \"@stencil/core\";\r\nimport { FocusTrap, createFocusTrap } from \"focus-trap\";\r\nimport { ViewerGridFilterpanelButtons } from \"./viewer-grid-filterpanel-buttons\";\r\nimport { FilterpanelEvent, LabelSizeMap, MainSize, ViewerGridChangeSizeEvent } from \"./viewer-grid.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-viewer-grid\",\r\n styleUrl: \"viewer-grid.scss\",\r\n shadow: true,\r\n})\r\nexport class ViewerGrid {\r\n private sizeLabelMap: LabelSizeMap = {\r\n small: \"smal\",\r\n medium: \"middel\",\r\n large: \"breed\",\r\n };\r\n\r\n private mapPanel?: HTMLDivElement;\r\n\r\n /**\r\n * Set to true when filterpanel should show.\r\n */\r\n @Prop({ reflect: true })\r\n filterpanelOpen = false;\r\n\r\n /**\r\n * Set to true when overlay should show.\r\n */\r\n @Prop({ reflect: true })\r\n overlayOpen = false;\r\n\r\n /**\r\n * Size of the main content panel when component loads. Changing this attribute afterwards has no effect.\r\n *\r\n * Default size is `large`.\r\n */\r\n @Prop()\r\n initialMainSize?: MainSize;\r\n\r\n @State()\r\n mainSize: MainSize = \"large\";\r\n\r\n /**\r\n * Emitted when user wants to close the overlay.\r\n */\r\n @Event()\r\n dsoCloseOverlay!: EventEmitter<MouseEvent | KeyboardEvent>;\r\n\r\n /**\r\n * Emitted when user cancels filterpanel.\r\n */\r\n @Event()\r\n dsoFilterpanelCancel!: EventEmitter<FilterpanelEvent>;\r\n\r\n /**\r\n * Emitted when user applies filterpanel options.\r\n */\r\n @Event()\r\n dsoFilterpanelApply!: EventEmitter<FilterpanelEvent>;\r\n\r\n /**\r\n * Emitted before and after main size animation. Inspect `detail` property for more information.\r\n */\r\n @Event()\r\n dsoMainSizeChange!: EventEmitter<ViewerGridChangeSizeEvent>;\r\n\r\n @Element()\r\n host!: HTMLDsoViewerGridElement;\r\n\r\n private filterpanel: HTMLElement | undefined;\r\n\r\n private filterpanelSlot: HTMLElement | null = null;\r\n\r\n private filterpanelFocustrap: FocusTrap | undefined;\r\n\r\n private overlay: HTMLDivElement | undefined;\r\n\r\n private overlaySlot: HTMLDivElement | null = null;\r\n\r\n private overlayFocustrap: FocusTrap | undefined;\r\n\r\n @Watch(\"mainSize\")\r\n mainSizeWatcher(currentSize: MainSize, previousSize: MainSize) {\r\n this.dsoMainSizeChange.emit({\r\n stage: \"start\",\r\n previousSize,\r\n currentSize,\r\n });\r\n\r\n this.mapPanel?.addEventListener(\r\n \"transitionend\",\r\n (e) => {\r\n if (e.propertyName === \"flex-basis\") {\r\n this.dsoMainSizeChange.emit({\r\n stage: \"end\",\r\n previousSize,\r\n currentSize,\r\n });\r\n }\r\n },\r\n { once: true }\r\n );\r\n }\r\n\r\n private shrinkMain = () => {\r\n this.mainSize = this.mainSize === \"large\" ? \"medium\" : \"small\";\r\n };\r\n\r\n private expandMain = () => {\r\n this.mainSize = this.mainSize === \"small\" ? \"medium\" : \"large\";\r\n };\r\n\r\n private updateFocusTrap() {\r\n if (this.filterpanelOpen && this.overlayOpen) {\r\n return;\r\n }\r\n\r\n if (this.filterpanelFocustrap) {\r\n if (this.filterpanelOpen && !this.filterpanel?.hidden) {\r\n this.filterpanelFocustrap.activate();\r\n this.host.addEventListener(\"keydown\", this.keyDownListener);\r\n } else {\r\n this.filterpanelFocustrap.deactivate();\r\n this.host.removeEventListener(\"keydown\", this.keyDownListener);\r\n }\r\n }\r\n\r\n if (this.overlayFocustrap) {\r\n if (this.overlayOpen && !this.overlay?.hidden) {\r\n this.overlayFocustrap.activate();\r\n this.host.addEventListener(\"keydown\", this.keyDownListener);\r\n } else {\r\n this.overlayFocustrap.deactivate();\r\n this.host.removeEventListener(\"keydown\", this.keyDownListener);\r\n }\r\n }\r\n }\r\n\r\n private keyDownListener = (event: KeyboardEvent) => {\r\n if (event.key !== \"Escape\") {\r\n return;\r\n }\r\n\r\n this.dsoCloseOverlay.emit(event);\r\n };\r\n\r\n connectedCallback() {\r\n this.filterpanelSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='filterpanel']\");\r\n\r\n this.overlaySlot = this.host.querySelector<HTMLDivElement>(\"div[slot='overlay']\");\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.filterpanel && this.filterpanelSlot) {\r\n this.filterpanelFocustrap = createFocusTrap([this.filterpanel, this.filterpanelSlot], {\r\n escapeDeactivates: false,\r\n allowOutsideClick: true,\r\n tabbableOptions: {\r\n getShadowRoot: true,\r\n },\r\n });\r\n }\r\n\r\n if (this.overlay && this.overlaySlot) {\r\n this.overlayFocustrap = createFocusTrap([this.overlay, this.overlaySlot], {\r\n escapeDeactivates: false,\r\n allowOutsideClick: true,\r\n tabbableOptions: {\r\n getShadowRoot: true,\r\n },\r\n });\r\n }\r\n\r\n this.updateFocusTrap();\r\n }\r\n\r\n componentWillLoad() {\r\n if (this.initialMainSize) {\r\n this.mainSize = this.initialMainSize;\r\n }\r\n }\r\n\r\n componentDidUpdate() {\r\n this.updateFocusTrap();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.overlayFocustrap?.deactivate();\r\n this.filterpanelFocustrap?.deactivate();\r\n\r\n this.host.removeEventListener(\"keydown\", this.keyDownListener);\r\n }\r\n\r\n private handleFilterpanelApply(mouseEvent: MouseEvent) {\r\n this.dsoFilterpanelApply.emit({ originalEvent: mouseEvent });\r\n }\r\n\r\n private handleFilterpanelCancel(mouseEvent: MouseEvent) {\r\n this.dsoFilterpanelCancel.emit({ originalEvent: mouseEvent });\r\n }\r\n\r\n render() {\r\n return (\r\n <Host {...{ [this.mainSize]: true }}>\r\n <div class=\"dso-map-panel\" ref={(element) => (this.mapPanel = element)}>\r\n <div class=\"sizing-buttons\">\r\n <span class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\r\n breedte tekstpaneel: {this.sizeLabelMap[this.mainSize]}\r\n </span>\r\n <button type=\"button\" class=\"shrink\" disabled={this.mainSize === \"small\"} onClick={this.shrinkMain}>\r\n <span class=\"sr-only\">Kaartpaneel smaller maken</span>\r\n <dso-icon icon=\"chevron-left\"></dso-icon>\r\n </button>\r\n <button type=\"button\" class=\"expand\" disabled={this.mainSize === \"large\"} onClick={this.expandMain}>\r\n <span class=\"sr-only\">Kaartpaneel breder maken</span>\r\n <dso-icon icon=\"chevron-right\"></dso-icon>\r\n </button>\r\n </div>\r\n <div class=\"main\">\r\n <slot name=\"main\" />\r\n </div>\r\n </div>\r\n <div\r\n id=\"filterpanel\"\r\n class=\"filterpanel\"\r\n hidden={!this.filterpanelOpen || !this.filterpanelSlot}\r\n ref={(element) => (this.filterpanel = element)}\r\n >\r\n <h1>Uw keuzes</h1>\r\n <ViewerGridFilterpanelButtons\r\n onApply={(e) => this.handleFilterpanelApply(e)}\r\n onCancel={(e) => this.handleFilterpanelCancel(e)}\r\n />\r\n <slot name=\"filterpanel\" />\r\n <ViewerGridFilterpanelButtons\r\n onApply={(e) => this.handleFilterpanelApply(e)}\r\n onCancel={(e) => this.handleFilterpanelCancel(e)}\r\n />\r\n </div>\r\n <div class=\"map\">\r\n <slot name=\"map\" />\r\n </div>\r\n <div hidden={!this.overlayOpen || !this.overlaySlot} class=\"dimscreen\"></div>\r\n <div\r\n class=\"overlay\"\r\n hidden={!this.overlayOpen || !this.overlaySlot}\r\n ref={(element) => (this.overlay = element)}\r\n >\r\n <button type=\"button\" class=\"overlay-close-button\" onClick={(e) => this.dsoCloseOverlay.emit(e)}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">sluiten</span>\r\n </button>\r\n <slot name=\"overlay\" />\r\n {/* This button is needed for the `focus-trap` library to function correctly. It is never focused. */}\r\n <button aria-hidden=\"true\" type=\"button\" class=\"overlay-close-button\" style={{ zIndex: \"-100\" }}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">sluiten</span>\r\n </button>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"viewer-grid.js","sourceRoot":"","sources":["../../../src/components/viewer-grid/viewer-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAC;AACrG,OAAO,EAAa,eAAe,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAQjF,MAAM,OAAO,UAAU;;IACb,iBAAY,GAAiB;MACnC,KAAK,EAAE,MAAM;MACb,MAAM,EAAE,QAAQ;MAChB,KAAK,EAAE,OAAO;KACf,CAAC;IAwDM,oBAAe,GAAuB,IAAI,CAAC;IAM3C,gBAAW,GAA0B,IAAI,CAAC;IA2B1C,eAAU,GAAG,GAAG,EAAE;MACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;IACjE,CAAC,CAAC;IAEM,eAAU,GAAG,GAAG,EAAE;MACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;IACjE,CAAC,CAAC;IA4BM,oBAAe,GAAG,CAAC,KAAoB,EAAE,EAAE;MACjD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE;QAC1B,OAAO;OACR;MAED,IAAI,CAAC,eAAe,CAAC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AAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAE1C,cAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,sBAAsB,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;UAC7F,gBAAU,IAAI,EAAC,OAAO,GAAY;UAClC,YAAM,KAAK,EAAC,SAAS,cAAe,CAC7B;QACT,YAAM,IAAI,EAAC,SAAS,GAAG;QAEvB,6BAAoB,MAAM,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,sBAAsB,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE;UAC7F,gBAAU,IAAI,EAAC,OAAO,GAAY;UAClC,YAAM,KAAK,EAAC,SAAS,cAAe,CAC7B,CACL,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Prop, State, Host, Element, Event, EventEmitter, Watch } from \"@stencil/core\";\r\nimport { FocusTrap, createFocusTrap } from \"focus-trap\";\r\nimport { ViewerGridFilterpanelButtons } from \"./viewer-grid-filterpanel-buttons\";\r\nimport { FilterpanelEvent, LabelSizeMap, MainSize, ViewerGridChangeSizeEvent } from \"./viewer-grid.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-viewer-grid\",\r\n styleUrl: \"viewer-grid.scss\",\r\n shadow: true,\r\n})\r\nexport class ViewerGrid {\r\n private sizeLabelMap: LabelSizeMap = {\r\n small: \"smal\",\r\n medium: \"middel\",\r\n large: \"breed\",\r\n };\r\n\r\n private mapPanel?: HTMLDivElement;\r\n\r\n /**\r\n * Set to true when filterpanel should show.\r\n */\r\n @Prop({ reflect: true })\r\n filterpanelOpen = false;\r\n\r\n /**\r\n * Set to true when overlay should show.\r\n */\r\n @Prop({ reflect: true })\r\n overlayOpen = false;\r\n\r\n /**\r\n * Size of the main content panel when component loads. Changing this attribute afterwards has no effect.\r\n *\r\n * Default size is `large`.\r\n */\r\n @Prop()\r\n initialMainSize?: MainSize;\r\n\r\n @State()\r\n mainSize: MainSize = \"large\";\r\n\r\n /**\r\n * Emitted when user wants to close the overlay.\r\n */\r\n @Event()\r\n dsoCloseOverlay!: EventEmitter<MouseEvent | KeyboardEvent>;\r\n\r\n /**\r\n * Emitted when user cancels filterpanel.\r\n */\r\n @Event()\r\n dsoFilterpanelCancel!: EventEmitter<FilterpanelEvent>;\r\n\r\n /**\r\n * Emitted when user applies filterpanel options.\r\n */\r\n @Event()\r\n dsoFilterpanelApply!: EventEmitter<FilterpanelEvent>;\r\n\r\n /**\r\n * Emitted before and after main size animation. Inspect `detail` property for more information.\r\n */\r\n @Event()\r\n dsoMainSizeChange!: EventEmitter<ViewerGridChangeSizeEvent>;\r\n\r\n @Element()\r\n host!: HTMLDsoViewerGridElement;\r\n\r\n private filterpanel: HTMLElement | undefined;\r\n\r\n private filterpanelSlot: HTMLElement | null = null;\r\n\r\n private filterpanelFocustrap: FocusTrap | undefined;\r\n\r\n private overlay: HTMLDivElement | undefined;\r\n\r\n private overlaySlot: HTMLDivElement | null = null;\r\n\r\n private overlayFocustrap: FocusTrap | undefined;\r\n\r\n @Watch(\"mainSize\")\r\n mainSizeWatcher(currentSize: MainSize, previousSize: MainSize) {\r\n this.dsoMainSizeChange.emit({\r\n stage: \"start\",\r\n previousSize,\r\n currentSize,\r\n });\r\n\r\n this.mapPanel?.addEventListener(\r\n \"transitionend\",\r\n (e) => {\r\n if (e.propertyName === \"flex-basis\") {\r\n this.dsoMainSizeChange.emit({\r\n stage: \"end\",\r\n previousSize,\r\n currentSize,\r\n });\r\n }\r\n },\r\n { once: true }\r\n );\r\n }\r\n\r\n private shrinkMain = () => {\r\n this.mainSize = this.mainSize === \"large\" ? \"medium\" : \"small\";\r\n };\r\n\r\n private expandMain = () => {\r\n this.mainSize = this.mainSize === \"small\" ? \"medium\" : \"large\";\r\n };\r\n\r\n private updateFocusTrap() {\r\n if (this.filterpanelOpen && this.overlayOpen) {\r\n return;\r\n }\r\n\r\n if (this.filterpanelFocustrap) {\r\n if (this.filterpanelOpen && !this.filterpanel?.hidden) {\r\n this.filterpanelFocustrap.activate();\r\n this.host.addEventListener(\"keydown\", this.keyDownListener);\r\n } else {\r\n this.filterpanelFocustrap.deactivate();\r\n this.host.removeEventListener(\"keydown\", this.keyDownListener);\r\n }\r\n }\r\n\r\n if (this.overlayFocustrap) {\r\n if (this.overlayOpen && !this.overlay?.hidden) {\r\n this.overlayFocustrap.activate();\r\n this.host.addEventListener(\"keydown\", this.keyDownListener);\r\n } else {\r\n this.overlayFocustrap.deactivate();\r\n this.host.removeEventListener(\"keydown\", this.keyDownListener);\r\n }\r\n }\r\n }\r\n\r\n private keyDownListener = (event: KeyboardEvent) => {\r\n if (event.key !== \"Escape\") {\r\n return;\r\n }\r\n\r\n this.dsoCloseOverlay.emit(event);\r\n };\r\n\r\n connectedCallback() {\r\n this.filterpanelSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='filterpanel']\");\r\n\r\n this.overlaySlot = this.host.querySelector<HTMLDivElement>(\"div[slot='overlay']\");\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.filterpanel && this.filterpanelSlot) {\r\n this.filterpanelFocustrap = createFocusTrap([this.filterpanel, this.filterpanelSlot], {\r\n escapeDeactivates: false,\r\n allowOutsideClick: true,\r\n tabbableOptions: {\r\n getShadowRoot: true,\r\n },\r\n });\r\n }\r\n\r\n if (this.overlay && this.overlaySlot) {\r\n this.overlayFocustrap = createFocusTrap([this.overlay, this.overlaySlot], {\r\n escapeDeactivates: false,\r\n allowOutsideClick: true,\r\n tabbableOptions: {\r\n getShadowRoot: true,\r\n },\r\n });\r\n }\r\n\r\n this.updateFocusTrap();\r\n }\r\n\r\n componentWillLoad() {\r\n if (this.initialMainSize) {\r\n this.mainSize = this.initialMainSize;\r\n }\r\n }\r\n\r\n componentDidUpdate() {\r\n this.updateFocusTrap();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.overlayFocustrap?.deactivate();\r\n this.filterpanelFocustrap?.deactivate();\r\n\r\n this.host.removeEventListener(\"keydown\", this.keyDownListener);\r\n }\r\n\r\n private handleFilterpanelApply(mouseEvent: MouseEvent) {\r\n this.dsoFilterpanelApply.emit({ originalEvent: mouseEvent });\r\n }\r\n\r\n private handleFilterpanelCancel(mouseEvent: MouseEvent) {\r\n this.dsoFilterpanelCancel.emit({ originalEvent: mouseEvent });\r\n }\r\n\r\n render() {\r\n return (\r\n <Host {...{ [this.mainSize]: true }}>\r\n <div class=\"dso-map-panel\" ref={(element) => (this.mapPanel = element)}>\r\n <div class=\"sizing-buttons\">\r\n <span class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">\r\n Breedte tekstpaneel: {this.sizeLabelMap[this.mainSize]}\r\n </span>\r\n <button type=\"button\" class=\"shrink\" disabled={this.mainSize === \"small\"} onClick={this.shrinkMain}>\r\n <span class=\"sr-only\">Tekstpaneel smaller maken</span>\r\n <dso-icon icon=\"chevron-left\"></dso-icon>\r\n </button>\r\n <button type=\"button\" class=\"expand\" disabled={this.mainSize === \"large\"} onClick={this.expandMain}>\r\n <span class=\"sr-only\">Tekstpaneel breder maken</span>\r\n <dso-icon icon=\"chevron-right\"></dso-icon>\r\n </button>\r\n </div>\r\n <div class=\"main\">\r\n <slot name=\"main\" />\r\n </div>\r\n </div>\r\n <div\r\n id=\"filterpanel\"\r\n class=\"filterpanel\"\r\n hidden={!this.filterpanelOpen || !this.filterpanelSlot}\r\n ref={(element) => (this.filterpanel = element)}\r\n >\r\n <h1>Uw keuzes</h1>\r\n <ViewerGridFilterpanelButtons\r\n onApply={(e) => this.handleFilterpanelApply(e)}\r\n onCancel={(e) => this.handleFilterpanelCancel(e)}\r\n />\r\n <slot name=\"filterpanel\" />\r\n <ViewerGridFilterpanelButtons\r\n onApply={(e) => this.handleFilterpanelApply(e)}\r\n onCancel={(e) => this.handleFilterpanelCancel(e)}\r\n />\r\n </div>\r\n <div class=\"map\">\r\n <slot name=\"map\" />\r\n </div>\r\n <div hidden={!this.overlayOpen || !this.overlaySlot} class=\"dimscreen\"></div>\r\n <div\r\n class=\"overlay\"\r\n hidden={!this.overlayOpen || !this.overlaySlot}\r\n ref={(element) => (this.overlay = element)}\r\n >\r\n <button type=\"button\" class=\"overlay-close-button\" onClick={(e) => this.dsoCloseOverlay.emit(e)}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">sluiten</span>\r\n </button>\r\n <slot name=\"overlay\" />\r\n {/* This button is needed for the `focus-trap` library to function correctly. It is never focused. */}\r\n <button aria-hidden=\"true\" type=\"button\" class=\"overlay-close-button\" style={{ zIndex: \"-100\" }}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">sluiten</span>\r\n </button>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|