@dso-toolkit/core 59.0.1 → 60.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 (116) hide show
  1. package/dist/cjs/dso-date-picker.cjs.entry.js +49 -568
  2. package/dist/cjs/dso-date-picker.cjs.entry.js.map +1 -1
  3. package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
  4. package/dist/cjs/dso-expandable.cjs.entry.js.map +1 -1
  5. package/dist/cjs/dso-info_2.cjs.entry.js +15 -2
  6. package/dist/cjs/dso-info_2.cjs.entry.js.map +1 -1
  7. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  8. package/dist/cjs/dso-toggletip.cjs.entry.js.map +1 -1
  9. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  10. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  11. package/dist/cjs/dso-tooltip.cjs.entry.js.map +1 -1
  12. package/dist/cjs/dso-viewer-grid.cjs.entry.js +177 -65
  13. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/collection/components/date-picker/date-picker.css +4 -425
  16. package/dist/collection/components/date-picker/date-picker.interfaces.js.map +1 -1
  17. package/dist/collection/components/date-picker/date-picker.js +50 -510
  18. package/dist/collection/components/date-picker/date-picker.js.map +1 -1
  19. package/dist/collection/components/date-picker/date-utils.js +24 -100
  20. package/dist/collection/components/date-picker/date-utils.js.map +1 -1
  21. package/dist/collection/components/expandable/expandable.css +1 -0
  22. package/dist/collection/components/toggletip/toggletip.css +1 -0
  23. package/dist/collection/components/tooltip/tooltip.css +35 -26
  24. package/dist/collection/components/viewer-grid/components/document-panel.js +8 -0
  25. package/dist/collection/components/viewer-grid/components/document-panel.js.map +1 -0
  26. package/dist/collection/components/viewer-grid/components/index.js +1 -0
  27. package/dist/collection/components/viewer-grid/components/index.js.map +1 -1
  28. package/dist/collection/components/viewer-grid/components/main-panel.js +12 -8
  29. package/dist/collection/components/viewer-grid/components/main-panel.js.map +1 -1
  30. package/dist/collection/components/viewer-grid/viewer-grid.css +237 -48
  31. package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +13 -1
  32. package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js.map +1 -1
  33. package/dist/collection/components/viewer-grid/viewer-grid.js +402 -59
  34. package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
  35. package/dist/components/dso-date-picker.js +55 -589
  36. package/dist/components/dso-date-picker.js.map +1 -1
  37. package/dist/components/dso-toggletip.js +1 -1
  38. package/dist/components/dso-toggletip.js.map +1 -1
  39. package/dist/components/dso-viewer-grid.js +186 -69
  40. package/dist/components/dso-viewer-grid.js.map +1 -1
  41. package/dist/components/expandable.js +1 -1
  42. package/dist/components/expandable.js.map +1 -1
  43. package/dist/components/selectable.js +14 -1
  44. package/dist/components/selectable.js.map +1 -1
  45. package/dist/components/tooltip.js +1 -1
  46. package/dist/components/tooltip.js.map +1 -1
  47. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  48. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  49. package/dist/dso-toolkit/p-0c14a2e5.entry.js +2 -0
  50. package/dist/dso-toolkit/p-0c14a2e5.entry.js.map +1 -0
  51. package/dist/dso-toolkit/{p-298453a9.entry.js → p-7d90b3b2.entry.js} +2 -2
  52. package/dist/dso-toolkit/{p-298453a9.entry.js.map → p-7d90b3b2.entry.js.map} +1 -1
  53. package/dist/dso-toolkit/p-8b24f933.entry.js +2 -0
  54. package/dist/dso-toolkit/p-8b24f933.entry.js.map +1 -0
  55. package/dist/dso-toolkit/p-dbea5bbd.entry.js +2 -0
  56. package/dist/dso-toolkit/p-dbea5bbd.entry.js.map +1 -0
  57. package/dist/dso-toolkit/p-ebda3d53.entry.js +2 -0
  58. package/dist/dso-toolkit/p-ebda3d53.entry.js.map +1 -0
  59. package/dist/dso-toolkit/p-f55b3647.entry.js +2 -0
  60. package/dist/dso-toolkit/{p-3631ce14.entry.js.map → p-f55b3647.entry.js.map} +1 -1
  61. package/dist/esm/dso-date-picker.entry.js +50 -569
  62. package/dist/esm/dso-date-picker.entry.js.map +1 -1
  63. package/dist/esm/dso-expandable.entry.js +1 -1
  64. package/dist/esm/dso-expandable.entry.js.map +1 -1
  65. package/dist/esm/dso-info_2.entry.js +14 -1
  66. package/dist/esm/dso-info_2.entry.js.map +1 -1
  67. package/dist/esm/dso-toggletip.entry.js +1 -1
  68. package/dist/esm/dso-toggletip.entry.js.map +1 -1
  69. package/dist/esm/dso-toolkit.js +1 -1
  70. package/dist/esm/dso-tooltip.entry.js +1 -1
  71. package/dist/esm/dso-tooltip.entry.js.map +1 -1
  72. package/dist/esm/dso-viewer-grid.entry.js +178 -66
  73. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  74. package/dist/esm/loader.js +1 -1
  75. package/dist/types/components/date-picker/date-picker.d.ts +8 -99
  76. package/dist/types/components/date-picker/date-picker.interfaces.d.ts +9 -8
  77. package/dist/types/components/date-picker/date-utils.d.ts +6 -34
  78. package/dist/types/components/viewer-grid/components/document-panel.d.ts +10 -0
  79. package/dist/types/components/viewer-grid/components/index.d.ts +1 -0
  80. package/dist/types/components/viewer-grid/components/main-panel.d.ts +10 -4
  81. package/dist/types/components/viewer-grid/viewer-grid.d.ts +82 -17
  82. package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +27 -13
  83. package/dist/types/components.d.ts +87 -42
  84. package/package.json +2 -2
  85. package/dist/cjs/create-identifier-5900c27b.js +0 -19
  86. package/dist/cjs/create-identifier-5900c27b.js.map +0 -1
  87. package/dist/collection/components/date-picker/date-localization.js +0 -30
  88. package/dist/collection/components/date-picker/date-localization.js.map +0 -1
  89. package/dist/collection/components/date-picker/date-picker-day.js +0 -20
  90. package/dist/collection/components/date-picker/date-picker-day.js.map +0 -1
  91. package/dist/collection/components/date-picker/date-picker-month.js +0 -26
  92. package/dist/collection/components/date-picker/date-picker-month.js.map +0 -1
  93. package/dist/collection/components/date-picker/utils/month-range.js +0 -28
  94. package/dist/collection/components/date-picker/utils/month-range.js.map +0 -1
  95. package/dist/collection/components/date-picker/utils/range.js +0 -8
  96. package/dist/collection/components/date-picker/utils/range.js.map +0 -1
  97. package/dist/components/create-identifier.js +0 -17
  98. package/dist/components/create-identifier.js.map +0 -1
  99. package/dist/dso-toolkit/p-3631ce14.entry.js +0 -2
  100. package/dist/dso-toolkit/p-95b70498.entry.js +0 -2
  101. package/dist/dso-toolkit/p-95b70498.entry.js.map +0 -1
  102. package/dist/dso-toolkit/p-9dbe2931.entry.js +0 -2
  103. package/dist/dso-toolkit/p-9dbe2931.entry.js.map +0 -1
  104. package/dist/dso-toolkit/p-ad44136d.entry.js +0 -2
  105. package/dist/dso-toolkit/p-ad44136d.entry.js.map +0 -1
  106. package/dist/dso-toolkit/p-c19cfe3f.js +0 -2
  107. package/dist/dso-toolkit/p-c19cfe3f.js.map +0 -1
  108. package/dist/dso-toolkit/p-f08a5a06.entry.js +0 -2
  109. package/dist/dso-toolkit/p-f08a5a06.entry.js.map +0 -1
  110. package/dist/esm/create-identifier-479a4699.js +0 -17
  111. package/dist/esm/create-identifier-479a4699.js.map +0 -1
  112. package/dist/types/components/date-picker/date-localization.d.ts +0 -19
  113. package/dist/types/components/date-picker/date-picker-day.d.ts +0 -11
  114. package/dist/types/components/date-picker/date-picker-month.d.ts +0 -20
  115. package/dist/types/components/date-picker/utils/month-range.d.ts +0 -2
  116. package/dist/types/components/date-picker/utils/range.d.ts +0 -1
@@ -4,6 +4,12 @@
4
4
  box-sizing: border-box;
5
5
  }
6
6
 
7
+ :host([mode=vdk]) .overlay {
8
+ height: calc(100% - 32px);
9
+ margin-block: 16px;
10
+ margin-inline: auto 16px;
11
+ }
12
+
7
13
  button {
8
14
  -webkit-appearance: button;
9
15
  color: inherit;
@@ -198,11 +204,6 @@ button::-moz-focus-inner {
198
204
  .overlay-close-button:hover {
199
205
  cursor: pointer;
200
206
  }
201
- .shrink[disabled],
202
- .expand[disabled],
203
- .overlay-close-button[disabled] {
204
- display: none;
205
- }
206
207
 
207
208
  .overlay-close-button {
208
209
  position: absolute;
@@ -210,6 +211,16 @@ button::-moz-focus-inner {
210
211
  right: 16px;
211
212
  }
212
213
 
214
+ .content.invisible {
215
+ visibility: hidden;
216
+ }
217
+
218
+ .dso-main-panel .content,
219
+ .dso-document-panel .content {
220
+ height: 100%;
221
+ padding: 0 16px 8px;
222
+ }
223
+
213
224
  .dso-main-panel {
214
225
  background-color: #fff;
215
226
  flex-shrink: 0;
@@ -218,26 +229,158 @@ button::-moz-focus-inner {
218
229
  transition: flex-basis 200ms ease-in, max-width 200ms ease-in, min-width 200ms ease-in;
219
230
  z-index: 100;
220
231
  }
232
+ .dso-main-panel.compact.collapsed, .dso-main-panel.expanded.collapsed {
233
+ left: -432px;
234
+ }
235
+ .dso-main-panel.compact {
236
+ flex-shrink: unset;
237
+ flex-grow: unset;
238
+ position: absolute;
239
+ transition: none;
240
+ }
241
+ .dso-main-panel.expanded.collapsed {
242
+ position: absolute;
243
+ height: 100%;
244
+ }
221
245
  .dso-main-panel .dso-filterblok-address {
222
246
  font-weight: bold;
223
247
  margin: 8px 0;
224
248
  }
225
- .dso-main-panel .main {
226
- height: 100%;
227
- padding: 0 16px 8px;
249
+ .dso-main-panel .sizing-buttons,
250
+ .dso-main-panel .toggle-button {
251
+ left: calc(100% + 1px);
252
+ transition: left 200ms ease-in;
253
+ padding: 0 4px 4px 0;
254
+ }
255
+ .dso-main-panel .sizing-buttons button,
256
+ .dso-main-panel .toggle-button button {
257
+ border-bottom-right-radius: 4px;
258
+ border-top-right-radius: 4px;
259
+ }
260
+ .dso-main-panel .expand-button {
261
+ display: inline-block;
262
+ font-size: 1em;
263
+ font-weight: 500;
264
+ margin-bottom: 0;
265
+ text-decoration: none;
266
+ touch-action: manipulation;
267
+ text-align: left;
268
+ user-select: none;
269
+ vertical-align: middle;
270
+ border: 0;
271
+ color: #39870c;
272
+ line-height: 1;
273
+ padding: 0;
274
+ background-color: transparent;
275
+ padding-block: 16px;
276
+ }
277
+ .dso-main-panel .expand-button:focus, .dso-main-panel .expand-button:focus-visible {
278
+ outline-offset: 2px;
279
+ }
280
+ .dso-main-panel .expand-button:active {
281
+ outline: 0;
282
+ }
283
+ .dso-main-panel .expand-button[disabled] {
284
+ color: #afcf9d;
285
+ }
286
+ .dso-main-panel .expand-button[disabled].dso-spinner-left, .dso-main-panel .expand-button[disabled].dso-spinner-right {
287
+ color: #39870c;
288
+ }
289
+ .dso-main-panel .expand-button:not([disabled]):hover {
290
+ color: #275937;
291
+ text-decoration: underline;
292
+ text-underline-position: under;
293
+ }
294
+ .dso-main-panel .expand-button:not([disabled]):active {
295
+ color: #173521;
296
+ }
297
+ .dso-main-panel .expand-button.dso-align {
298
+ line-height: calc(1.5em - 1px);
299
+ padding: 11px 0;
300
+ position: relative;
301
+ }
302
+ .dso-main-panel .expand-button.dso-truncate {
303
+ max-width: 100%;
304
+ overflow: hidden;
305
+ text-overflow: ellipsis;
306
+ white-space: nowrap;
307
+ }
308
+ .dso-main-panel .expand-button.dso-spinner-left::before {
309
+ 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");
310
+ background-repeat: no-repeat;
311
+ content: "";
312
+ display: inline-block;
313
+ height: 24px;
314
+ vertical-align: middle;
315
+ width: 24px;
316
+ margin-right: 8px;
317
+ }
318
+ .dso-main-panel .expand-button.dso-spinner-right::after {
319
+ 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");
320
+ background-repeat: no-repeat;
321
+ content: "";
322
+ display: inline-block;
323
+ height: 24px;
324
+ vertical-align: middle;
325
+ width: 24px;
326
+ margin-left: 8px;
327
+ }
328
+ .dso-main-panel .expand-button dso-icon + span:not(.sr-only),
329
+ .dso-main-panel .expand-button svg.di + span:not(.sr-only),
330
+ .dso-main-panel .expand-button span:not(.sr-only) + dso-icon,
331
+ .dso-main-panel .expand-button span:not(.sr-only) + svg.di {
332
+ margin-left: 8px;
333
+ }
334
+ .dso-main-panel .expand-button svg.di.di-chevron-down + span:not(.sr-only),
335
+ .dso-main-panel .expand-button svg.di.di-chevron-up + span:not(.sr-only),
336
+ .dso-main-panel .expand-button span:not(.sr-only) + svg.di.di-chevron-down,
337
+ .dso-main-panel .expand-button span:not(.sr-only) + svg.di.di-chevron-up {
338
+ margin-left: 4px;
339
+ }
340
+ .dso-main-panel .expand-button dso-icon[icon=chevron-left] + span:not(.sr-only),
341
+ .dso-main-panel .expand-button dso-icon[icon=chevron-right] + span:not(.sr-only),
342
+ .dso-main-panel .expand-button svg.di.di-angle-down + span:not(.sr-only),
343
+ .dso-main-panel .expand-button svg.di.di-angle-up + span:not(.sr-only),
344
+ .dso-main-panel .expand-button span:not(.sr-only) + svg.di.di-angle-down,
345
+ .dso-main-panel .expand-button span:not(.sr-only) + svg.di.di-angle-up,
346
+ .dso-main-panel .expand-button span:not(.sr-only) + dso-icon[icon=chevron-left],
347
+ .dso-main-panel .expand-button span:not(.sr-only) + dso-icon[icon=chevron-right] {
348
+ margin-left: 0;
349
+ }
350
+ .dso-main-panel .expand-button dso-icon,
351
+ .dso-main-panel .expand-button svg.di,
352
+ .dso-main-panel .expand-button span {
353
+ vertical-align: middle;
228
354
  }
229
355
 
230
- .sizing-buttons {
231
- left: calc(100% + 1px);
356
+ .dso-document-panel {
357
+ background-color: #fff;
358
+ flex-shrink: 0;
359
+ flex-grow: 0;
360
+ position: relative;
361
+ transition: flex-basis 200ms ease-in, max-width 200ms ease-in, min-width 200ms ease-in;
362
+ z-index: 100;
363
+ }
364
+ .dso-document-panel .sizing-buttons {
365
+ right: calc(100% + 1px);
366
+ transition: right 200ms ease-in;
367
+ padding: 0 0 4px 4px;
368
+ }
369
+ .dso-document-panel .sizing-buttons button {
370
+ border-bottom-left-radius: 4px;
371
+ border-top-left-radius: 4px;
372
+ }
373
+
374
+ .sizing-buttons,
375
+ .toggle-button {
232
376
  overflow-x: hidden;
233
- padding: 0 4px 4px 0;
234
377
  position: absolute;
235
378
  top: 16px;
236
- transition: left 200ms ease-in;
237
379
  width: 44px;
238
380
  z-index: -1;
239
381
  }
240
- .sizing-buttons button {
382
+ .sizing-buttons button,
383
+ .toggle-button button {
241
384
  display: inline-block;
242
385
  font-size: 1em;
243
386
  font-weight: 500;
@@ -259,52 +402,66 @@ button::-moz-focus-inner {
259
402
  border: 0;
260
403
  padding: 8px;
261
404
  border-radius: 0;
262
- border-bottom-right-radius: 4px;
263
- border-top-right-radius: 4px;
264
405
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.4);
265
406
  flex: 0 0 100%;
266
407
  height: 40px;
267
408
  min-width: auto;
268
409
  width: 40px;
269
410
  }
270
- .sizing-buttons button:focus, .sizing-buttons button:focus-visible {
411
+ .sizing-buttons button:focus, .sizing-buttons button:focus-visible,
412
+ .toggle-button button:focus,
413
+ .toggle-button button:focus-visible {
271
414
  outline-offset: 2px;
272
415
  }
273
- .sizing-buttons button:active {
416
+ .sizing-buttons button:active,
417
+ .toggle-button button:active {
274
418
  outline: 0;
275
419
  }
276
- .sizing-buttons button:hover {
420
+ .sizing-buttons button:hover,
421
+ .toggle-button button:hover {
277
422
  background-color: #39870c;
278
423
  border-color: #39870c;
279
424
  color: #fff;
280
425
  }
281
- .sizing-buttons button:active {
426
+ .sizing-buttons button:active,
427
+ .toggle-button button:active {
282
428
  background-color: #275937;
283
429
  border-color: #275937;
284
430
  color: #fff;
285
431
  }
286
- .sizing-buttons button[disabled], .sizing-buttons button[disabled]:hover {
432
+ .sizing-buttons button[disabled], .sizing-buttons button[disabled]:hover,
433
+ .toggle-button button[disabled],
434
+ .toggle-button button[disabled]:hover {
287
435
  background-color: #fff;
288
436
  border-color: #afcf9d;
289
437
  color: #afcf9d;
290
438
  }
291
- .sizing-buttons button.dso-small {
439
+ .sizing-buttons button.dso-small,
440
+ .toggle-button button.dso-small {
292
441
  line-height: 1rem;
293
442
  }
294
443
  .sizing-buttons button.dso-small dso-icon,
295
- .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 {
444
+ .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,
445
+ .toggle-button button.dso-small dso-icon,
446
+ .toggle-button button.dso-small svg.di,
447
+ .toggle-button button.dso-small.extern::after,
448
+ .toggle-button button.dso-small.download::after,
449
+ .toggle-button button.dso-small.dso-spinner::before {
296
450
  margin-bottom: -4px;
297
451
  margin-top: -4px;
298
452
  }
299
- .sizing-buttons button.dso-small.dso-spinner-left::before {
453
+ .sizing-buttons button.dso-small.dso-spinner-left::before,
454
+ .toggle-button button.dso-small.dso-spinner-left::before {
300
455
  height: 16px;
301
456
  width: 16px;
302
457
  }
303
- .sizing-buttons button.dso-small.dso-spinner-right::after {
458
+ .sizing-buttons button.dso-small.dso-spinner-right::after,
459
+ .toggle-button button.dso-small.dso-spinner-right::after {
304
460
  height: 16px;
305
461
  width: 16px;
306
462
  }
307
- .sizing-buttons button > span {
463
+ .sizing-buttons button > span,
464
+ .toggle-button button > span {
308
465
  position: absolute;
309
466
  width: 1px;
310
467
  height: 1px;
@@ -314,12 +471,15 @@ button::-moz-focus-inner {
314
471
  clip: rect(0, 0, 0, 0);
315
472
  border: 0;
316
473
  }
317
- .sizing-buttons button.dso-spinner-left[disabled], .sizing-buttons button.dso-spinner-right[disabled] {
474
+ .sizing-buttons button.dso-spinner-left[disabled], .sizing-buttons button.dso-spinner-right[disabled],
475
+ .toggle-button button.dso-spinner-left[disabled],
476
+ .toggle-button button.dso-spinner-right[disabled] {
318
477
  background-color: #fff;
319
478
  border-color: #39870c;
320
479
  color: #39870c;
321
480
  }
322
- .sizing-buttons button.dso-spinner-left::before {
481
+ .sizing-buttons button.dso-spinner-left::before,
482
+ .toggle-button button.dso-spinner-left::before {
323
483
  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");
324
484
  background-repeat: no-repeat;
325
485
  content: "";
@@ -329,7 +489,8 @@ button::-moz-focus-inner {
329
489
  width: 24px;
330
490
  margin-right: 8px;
331
491
  }
332
- .sizing-buttons button.dso-spinner-left:not([disabled]):hover::before {
492
+ .sizing-buttons button.dso-spinner-left:not([disabled]):hover::before,
493
+ .toggle-button button.dso-spinner-left:not([disabled]):hover::before {
333
494
  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: %23fff; 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");
334
495
  background-repeat: no-repeat;
335
496
  content: "";
@@ -339,11 +500,13 @@ button::-moz-focus-inner {
339
500
  width: 24px;
340
501
  margin-right: 8px;
341
502
  }
342
- .sizing-buttons button.dso-spinner-left:not([disabled]).dso-small:hover::before {
503
+ .sizing-buttons button.dso-spinner-left:not([disabled]).dso-small:hover::before,
504
+ .toggle-button button.dso-spinner-left:not([disabled]).dso-small:hover::before {
343
505
  height: 16px;
344
506
  width: 16px;
345
507
  }
346
- .sizing-buttons button.dso-spinner-right::after {
508
+ .sizing-buttons button.dso-spinner-right::after,
509
+ .toggle-button button.dso-spinner-right::after {
347
510
  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");
348
511
  background-repeat: no-repeat;
349
512
  content: "";
@@ -353,7 +516,8 @@ button::-moz-focus-inner {
353
516
  width: 24px;
354
517
  margin-left: 8px;
355
518
  }
356
- .sizing-buttons button.dso-spinner-right:not([disabled]):hover::after {
519
+ .sizing-buttons button.dso-spinner-right:not([disabled]):hover::after,
520
+ .toggle-button button.dso-spinner-right:not([disabled]):hover::after {
357
521
  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: %23fff; 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");
358
522
  background-repeat: no-repeat;
359
523
  content: "";
@@ -363,17 +527,20 @@ button::-moz-focus-inner {
363
527
  width: 24px;
364
528
  margin-left: 8px;
365
529
  }
366
- .sizing-buttons button.dso-spinner-right:not([disabled]).dso-small:hover::after {
530
+ .sizing-buttons button.dso-spinner-right:not([disabled]).dso-small:hover::after,
531
+ .toggle-button button.dso-spinner-right:not([disabled]).dso-small:hover::after {
367
532
  height: 16px;
368
533
  width: 16px;
369
534
  }
370
- .sizing-buttons button:focus-visible {
535
+ .sizing-buttons button:focus-visible,
536
+ .toggle-button button:focus-visible {
371
537
  background-color: #39870c;
372
538
  border-color: #39870c;
373
539
  color: #fff;
374
540
  outline: none;
375
541
  }
376
- .sizing-buttons button:hover dso-icon {
542
+ .sizing-buttons button:hover dso-icon,
543
+ .toggle-button button:hover dso-icon {
377
544
  color: #fff;
378
545
  }
379
546
 
@@ -677,20 +844,16 @@ button::-moz-focus-inner {
677
844
  }
678
845
 
679
846
  @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 {
847
+ :host([main-size=small]) .dso-main-panel,
848
+ :host([document-panel-size=small]) .dso-document-panel {
687
849
  flex-basis: 375px;
688
850
  min-width: 0;
689
851
  max-width: 375px;
690
852
  }
691
853
  }
692
854
  @media screen and (min-width: 808px) and (max-width: 375px) {
693
- :host([small]) .dso-main-panel {
855
+ :host([main-size=small]) .dso-main-panel,
856
+ :host([document-panel-size=small]) .dso-document-panel {
694
857
  flex-basis: 100vw;
695
858
  max-width: 100vw;
696
859
  min-width: 0;
@@ -698,14 +861,16 @@ button::-moz-focus-inner {
698
861
  }
699
862
  }
700
863
  @media screen and (min-width: 808px) {
701
- :host([medium]) .dso-main-panel {
864
+ :host([main-size=medium]) .dso-main-panel,
865
+ :host([document-panel-size=medium]) .dso-document-panel {
702
866
  flex-basis: 624px;
703
867
  min-width: 375px;
704
868
  max-width: 624px;
705
869
  }
706
870
  }
707
871
  @media screen and (min-width: 808px) and (max-width: 624px) {
708
- :host([medium]) .dso-main-panel {
872
+ :host([main-size=medium]) .dso-main-panel,
873
+ :host([document-panel-size=medium]) .dso-document-panel {
709
874
  flex-basis: 100vw;
710
875
  max-width: 100vw;
711
876
  min-width: 375px;
@@ -713,14 +878,16 @@ button::-moz-focus-inner {
713
878
  }
714
879
  }
715
880
  @media screen and (min-width: 808px) {
716
- :host([large]) .dso-main-panel {
881
+ :host([main-size=large]) .dso-main-panel,
882
+ :host([document-panel-size=large]) .dso-document-panel {
717
883
  flex-basis: 60%;
718
884
  min-width: 768px;
719
885
  max-width: 1024px;
720
886
  }
721
887
  }
722
888
  @media screen and (min-width: 808px) and (max-width: 768px) {
723
- :host([large]) .dso-main-panel {
889
+ :host([main-size=large]) .dso-main-panel,
890
+ :host([document-panel-size=large]) .dso-document-panel {
724
891
  flex-basis: 100vw;
725
892
  max-width: 100vw;
726
893
  min-width: 768px;
@@ -728,11 +895,33 @@ button::-moz-focus-inner {
728
895
  }
729
896
  }
730
897
  @media screen and (min-width: 808px) {
731
- .dso-main-panel {
898
+ :host {
899
+ display: flex;
900
+ height: 100vh;
901
+ overflow: hidden;
902
+ position: relative;
903
+ }
904
+ :host .dso-main-panel.compact,
905
+ :host .dso-main-panel.expanded {
906
+ flex-basis: unset;
907
+ min-width: unset;
908
+ max-width: unset;
909
+ width: 440px;
910
+ }
911
+ :host .dso-main-panel.compact .content,
912
+ :host .dso-main-panel.expanded .content {
913
+ height: auto;
914
+ overflow-y: auto;
915
+ }
916
+ }
917
+ @media screen and (min-width: 808px) {
918
+ .dso-main-panel,
919
+ .dso-document-panel {
732
920
  box-shadow: 2px 0 8px 0 rgba(0, 0, 0, 0.4);
733
921
  padding-right: 8px;
734
922
  }
735
- .dso-main-panel .main {
923
+ .dso-main-panel .content,
924
+ .dso-document-panel .content {
736
925
  overflow-y: scroll;
737
926
  }
738
927
  }
@@ -1,2 +1,14 @@
1
- export const tabs = ["main", "map"];
1
+ export const viewerGridVrkTabs = ["main", "map"];
2
+ export const viewerGridVdkTabs = ["search", "map", "document"];
3
+ export const viewerGridTabLabelMap = {
4
+ main: "Hoofdpaneel",
5
+ map: "Kaart",
6
+ document: "Document",
7
+ search: "Zoeken",
8
+ };
9
+ export const viewerGridSizeLabelMap = {
10
+ small: "smal",
11
+ medium: "middel",
12
+ large: "breed",
13
+ };
2
14
  //# 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":"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
+ {"version":3,"file":"viewer-grid.interfaces.js","sourceRoot":"","sources":["../../../src/components/viewer-grid/viewer-grid.interfaces.ts"],"names":[],"mappings":"AAuCA,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAU,CAAC;AAG1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,CAAU,CAAC;AAOxE,MAAM,CAAC,MAAM,qBAAqB,GAA0B;EAC1D,IAAI,EAAE,aAAa;EACnB,GAAG,EAAE,OAAO;EACZ,QAAQ,EAAE,UAAU;EACpB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAA2B;EAC5D,KAAK,EAAE,MAAM;EACb,MAAM,EAAE,QAAQ;EAChB,KAAK,EAAE,OAAO;CACf,CAAC","sourcesContent":["export interface ViewerGridChangeSizeEvent {\r\n currentSize: ViewerGridPanelSize;\r\n nextSize: ViewerGridPanelSize;\r\n}\r\n\r\nexport interface ViewerGridChangeSizeAnimationEndEvent {\r\n currentSize: ViewerGridPanelSize;\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 interface ViewerGridActiveTabSwitchEvent {\r\n tab: ViewerGridTab;\r\n}\r\n\r\nexport interface ViewerGridMainExpandEvent {\r\n expand: boolean;\r\n}\r\n\r\nexport interface ViewerGridMainToggleEvent {\r\n hide: boolean;\r\n}\r\n\r\nexport type ViewerGridMode = \"vdk\" | \"vrk\";\r\n\r\nexport type ViewerGridPanelSize = \"small\" | \"medium\" | \"large\";\r\n\r\nexport type ViewerGridLabelSizeMap = { [key in ViewerGridPanelSize]: string };\r\n\r\nexport const viewerGridVrkTabs = [\"main\", \"map\"] as const;\r\nexport type ViewerGridVrkTab = (typeof viewerGridVrkTabs)[number];\r\n\r\nexport const viewerGridVdkTabs = [\"search\", \"map\", \"document\"] as const;\r\nexport type ViewerGridVdkTab = (typeof viewerGridVdkTabs)[number];\r\n\r\nexport type ViewerGridTab = ViewerGridVrkTab | ViewerGridVdkTab;\r\n\r\nexport type ViewerGridTabLabelMap = { [key in ViewerGridTab]: string };\r\n\r\nexport const viewerGridTabLabelMap: ViewerGridTabLabelMap = {\r\n main: \"Hoofdpaneel\",\r\n map: \"Kaart\",\r\n document: \"Document\",\r\n search: \"Zoeken\",\r\n};\r\n\r\nexport const viewerGridSizeLabelMap: ViewerGridLabelSizeMap = {\r\n small: \"smal\",\r\n medium: \"middel\",\r\n large: \"breed\",\r\n};\r\n"]}