@dso-toolkit/core 34.0.0 → 34.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/cjs/dso-date-picker.cjs.entry.js +47 -25
  2. package/dist/cjs/dso-header.cjs.entry.js +1 -1
  3. package/dist/cjs/dso-info_2.cjs.entry.js +4 -1
  4. package/dist/cjs/dso-map-base-layers.cjs.entry.js +14 -1
  5. package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-map-overlays.cjs.entry.js +14 -1
  7. package/dist/cjs/dso-toolkit.cjs.js +1 -1
  8. package/dist/cjs/dso-viewer-grid.cjs.entry.js +56 -19
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +2 -2
  11. package/dist/collection/components/date-picker/date-picker.css +3 -2
  12. package/dist/collection/components/date-picker/date-picker.js +47 -25
  13. package/dist/collection/components/date-picker/date-picker.template.js +2 -1
  14. package/dist/collection/components/header/header.css +21 -13
  15. package/dist/collection/components/info/info.css +20 -0
  16. package/dist/collection/components/map-base-layers/map-base-layers.js +16 -1
  17. package/dist/collection/components/map-controls/map-controls.css +12 -0
  18. package/dist/collection/components/map-overlays/map-overlays.js +16 -1
  19. package/dist/collection/components/selectable/selectable.js +25 -1
  20. package/dist/collection/components/viewer-grid/viewer-grid-filterpanel-buttons.js +7 -0
  21. package/dist/collection/components/viewer-grid/viewer-grid.css +480 -25
  22. package/dist/collection/components/viewer-grid/viewer-grid.js +112 -21
  23. package/dist/collection/components/viewer-grid/viewer-grid.template.js +7 -3
  24. package/dist/custom-elements/index.js +138 -50
  25. package/dist/dso-toolkit/dso-toolkit.css +1 -1
  26. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  27. package/dist/dso-toolkit/p-3c4dbd89.entry.js +1 -0
  28. package/dist/dso-toolkit/p-50b63cf4.entry.js +1 -0
  29. package/dist/dso-toolkit/{p-10aa1fba.entry.js → p-88bc5873.entry.js} +1 -1
  30. package/dist/dso-toolkit/p-8b6e3abc.entry.js +1 -0
  31. package/dist/dso-toolkit/p-94b79e43.entry.js +1 -0
  32. package/dist/dso-toolkit/p-ad540748.entry.js +1 -0
  33. package/dist/dso-toolkit/p-de3ab027.entry.js +5 -0
  34. package/dist/esm/dso-date-picker.entry.js +47 -25
  35. package/dist/esm/dso-header.entry.js +1 -1
  36. package/dist/esm/dso-info_2.entry.js +4 -1
  37. package/dist/esm/dso-map-base-layers.entry.js +14 -1
  38. package/dist/esm/dso-map-controls.entry.js +1 -1
  39. package/dist/esm/dso-map-overlays.entry.js +14 -1
  40. package/dist/esm/dso-toolkit.js +1 -1
  41. package/dist/esm/dso-viewer-grid.entry.js +57 -20
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/types/components/date-picker/date-picker.d.ts +3 -1
  44. package/dist/types/components/date-picker/date-picker.template.d.ts +1 -1
  45. package/dist/types/components/map-base-layers/map-base-layers.d.ts +7 -2
  46. package/dist/types/components/map-overlays/map-overlays.d.ts +7 -2
  47. package/dist/types/components/selectable/selectable.d.ts +1 -0
  48. package/dist/types/components/viewer-grid/viewer-grid-filterpanel-buttons.d.ts +6 -0
  49. package/dist/types/components/viewer-grid/viewer-grid.d.ts +14 -3
  50. package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +1 -1
  51. package/dist/types/components.d.ts +6 -0
  52. package/package.json +1 -1
  53. package/dist/dso-toolkit/p-06de0fa1.entry.js +0 -1
  54. package/dist/dso-toolkit/p-17f073d1.entry.js +0 -1
  55. package/dist/dso-toolkit/p-7b006b11.entry.js +0 -1
  56. package/dist/dso-toolkit/p-8f21d07d.entry.js +0 -5
  57. package/dist/dso-toolkit/p-a6c9e063.entry.js +0 -1
  58. package/dist/dso-toolkit/p-aadc4f8e.entry.js +0 -1
@@ -1,3 +1,75 @@
1
+ button {
2
+ -webkit-appearance: button;
3
+ color: inherit;
4
+ cursor: pointer;
5
+ font: inherit;
6
+ font-family: inherit;
7
+ font-size: inherit;
8
+ line-height: inherit;
9
+ margin: 0;
10
+ overflow: visible;
11
+ text-transform: none;
12
+ }
13
+ button[disabled] {
14
+ cursor: default;
15
+ }
16
+ button::-moz-focus-inner {
17
+ border: 0;
18
+ padding: 0;
19
+ }
20
+
21
+ h1,
22
+ .h1,
23
+ h2,
24
+ .h2,
25
+ h3,
26
+ .h3 {
27
+ margin-top: 24px;
28
+ }
29
+
30
+ h1 {
31
+ color: #275937;
32
+ font-size: 2rem;
33
+ font-weight: 700;
34
+ }
35
+
36
+ h2 {
37
+ color: #275937;
38
+ font-size: 1.5rem;
39
+ font-weight: 700;
40
+ }
41
+
42
+ h3 {
43
+ color: #275937;
44
+ font-size: 1.25rem;
45
+ font-weight: 600;
46
+ }
47
+
48
+ h4,
49
+ .h4,
50
+ h5,
51
+ .h5,
52
+ h6,
53
+ .h6 {
54
+ margin-top: 12px;
55
+ }
56
+
57
+ h4 {
58
+ color: #275937;
59
+ font-size: 1rem;
60
+ font-weight: 600;
61
+ }
62
+
63
+ h5 {
64
+ color: #191919;
65
+ font-size: 1rem;
66
+ font-weight: 600;
67
+ }
68
+
69
+ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
70
+ margin-bottom: 12px;
71
+ }
72
+
1
73
  *,
2
74
  *::after,
3
75
  *::before {
@@ -11,37 +83,45 @@
11
83
  position: relative;
12
84
  }
13
85
 
14
- :host([small]) .main {
86
+ :host([small]) .dso-map-panel {
15
87
  flex-basis: 375px;
88
+ min-width: 0;
89
+ max-width: 375px;
16
90
  }
17
91
  @media screen and (max-width: 375px) {
18
- :host([small]) .main {
19
- transition: none;
92
+ :host([small]) .dso-map-panel {
20
93
  flex-basis: 100vw;
94
+ max-width: 100vw;
95
+ min-width: 0;
96
+ transition: none;
21
97
  }
22
98
  }
23
99
 
24
- :host([medium]) .main {
100
+ :host([medium]) .dso-map-panel {
25
101
  flex-basis: 624px;
102
+ min-width: 375px;
103
+ max-width: 624px;
26
104
  }
27
105
  @media screen and (max-width: 624px) {
28
- :host([medium]) .main {
29
- transition: none;
106
+ :host([medium]) .dso-map-panel {
30
107
  flex-basis: 100vw;
108
+ max-width: 100vw;
109
+ min-width: 375px;
110
+ transition: none;
31
111
  }
32
112
  }
33
113
 
34
- :host([large]) .main {
114
+ :host([large]) .dso-map-panel {
35
115
  flex-basis: 60%;
36
116
  min-width: 768px;
37
117
  max-width: 1024px;
38
118
  }
39
119
  @media screen and (max-width: 768px) {
40
- :host([large]) .main {
41
- transition: none;
120
+ :host([large]) .dso-map-panel {
42
121
  flex-basis: 100vw;
43
- min-width: auto;
44
- max-width: auto;
122
+ max-width: 100vw;
123
+ min-width: 768px;
124
+ transition: none;
45
125
  }
46
126
  }
47
127
 
@@ -214,23 +294,150 @@
214
294
  border: 0;
215
295
  }
216
296
 
217
- .sizing-buttons {
218
- display: flex;
219
- justify-content: flex-end;
220
- margin-bottom: 8px;
221
- }
222
-
223
- .main {
297
+ .dso-map-panel {
224
298
  background-color: #fff;
225
- box-shadow: 2px 0 5px #666;
299
+ box-shadow: 2px 0 8px 0 rgba(0, 0, 0, 0.4);
226
300
  flex-shrink: 0;
227
301
  flex-grow: 0;
228
- height: 100%;
302
+ padding-right: 8px;
303
+ position: relative;
229
304
  transition: flex-basis 0.2s ease-in, max-width 0.2s ease-in, min-width 0.2s ease-in;
230
- padding: 8px 16px;
231
- overflow-y: auto;
232
305
  z-index: 1;
233
306
  }
307
+ .dso-map-panel .dso-filterblok-address {
308
+ font-weight: bold;
309
+ margin: 8px 0;
310
+ }
311
+ .dso-map-panel .main {
312
+ height: 100%;
313
+ overflow-y: scroll;
314
+ padding: 8px 16px;
315
+ }
316
+
317
+ .sizing-buttons {
318
+ left: calc(100% + 1px);
319
+ overflow-x: hidden;
320
+ padding: 0 4px 4px 0;
321
+ position: absolute;
322
+ top: 16px;
323
+ transition: left 0.2s ease-in;
324
+ width: 44px;
325
+ z-index: -1;
326
+ }
327
+ .sizing-buttons button {
328
+ display: inline-block;
329
+ font-size: 1em;
330
+ font-weight: 500;
331
+ margin-bottom: 0;
332
+ text-decoration: none;
333
+ touch-action: manipulation;
334
+ text-align: left;
335
+ user-select: none;
336
+ vertical-align: middle;
337
+ background-color: #fff;
338
+ border-color: #39870c;
339
+ color: #39870c;
340
+ border-width: 1px;
341
+ border-style: solid;
342
+ border-radius: 4px;
343
+ line-height: 1.5;
344
+ min-width: 56px;
345
+ padding: 11px 15px;
346
+ border: 0;
347
+ padding: 8px;
348
+ border-radius: 0;
349
+ border-bottom-right-radius: 4px;
350
+ border-top-right-radius: 4px;
351
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.4);
352
+ flex: 0 0 100%;
353
+ height: 40px;
354
+ min-width: auto;
355
+ width: 40px;
356
+ }
357
+ .sizing-buttons button:focus, .sizing-buttons button:focus-visible {
358
+ outline-offset: 2px;
359
+ }
360
+ .sizing-buttons button:active {
361
+ outline: 0;
362
+ }
363
+ .sizing-buttons button.extern::after, .sizing-buttons button.download::after {
364
+ content: "";
365
+ display: inline-block;
366
+ height: 1.5em;
367
+ margin-left: 8px;
368
+ vertical-align: top;
369
+ width: 1.5em;
370
+ }
371
+ .sizing-buttons button:hover {
372
+ background-color: #39870c;
373
+ border-color: #39870c;
374
+ color: #fff;
375
+ }
376
+ .sizing-buttons button:active {
377
+ background-color: #275937;
378
+ border-color: #275937;
379
+ color: #fff;
380
+ }
381
+ .sizing-buttons button[disabled], .sizing-buttons button[disabled]:hover {
382
+ background-color: #fff;
383
+ border-color: #afcf9d;
384
+ color: #afcf9d;
385
+ }
386
+ .sizing-buttons button.btn-sm {
387
+ line-height: 16px;
388
+ }
389
+ .sizing-buttons button.btn-sm dso-icon,
390
+ .sizing-buttons button.btn-sm svg.di, .sizing-buttons button.btn-sm.extern::after, .sizing-buttons button.btn-sm.download::after {
391
+ margin-bottom: -4px;
392
+ margin-top: -4px;
393
+ }
394
+ .sizing-buttons button.download::after {
395
+ background: var(--dso-icon, var(--di-download)) no-repeat;
396
+ background-position: center;
397
+ background-size: cover;
398
+ height: 1.5em;
399
+ vertical-align: top;
400
+ width: 1.5em;
401
+ }
402
+ .sizing-buttons button.download:hover::after {
403
+ --dso-icon: var(--di-download-wit);
404
+ }
405
+ .sizing-buttons button.download[disabled]::after {
406
+ --dso-icon: var(--di-download-grasgroen-40);
407
+ }
408
+ .sizing-buttons button.extern::after {
409
+ background: var(--dso-icon, var(--di-external-link)) no-repeat;
410
+ background-position: center;
411
+ background-size: cover;
412
+ height: 1.5em;
413
+ vertical-align: top;
414
+ width: 1.5em;
415
+ }
416
+ .sizing-buttons button.extern:hover::after {
417
+ --dso-icon: var(--di-external-link-wit);
418
+ }
419
+ .sizing-buttons button.extern[disabled]::after {
420
+ --dso-icon: var(--di-external-link-grasgroen-40);
421
+ }
422
+ .sizing-buttons button > span {
423
+ position: absolute;
424
+ width: 1px;
425
+ height: 1px;
426
+ padding: 0;
427
+ margin: -1px;
428
+ overflow: hidden;
429
+ clip: rect(0, 0, 0, 0);
430
+ border: 0;
431
+ }
432
+ .sizing-buttons button:focus-visible {
433
+ background-color: #39870c;
434
+ border-color: #39870c;
435
+ color: #fff;
436
+ outline: none;
437
+ }
438
+ .sizing-buttons button:hover dso-icon {
439
+ color: #fff;
440
+ }
234
441
 
235
442
  .map {
236
443
  height: 100%;
@@ -238,14 +445,262 @@
238
445
  overflow: hidden;
239
446
  }
240
447
 
448
+ #filterpanel,
241
449
  .overlay {
242
450
  background-color: #fff;
243
- box-shadow: -2px 0 5px #666;
244
451
  height: 100%;
245
452
  overflow-y: auto;
246
- padding: 40px 16px 8px;
247
453
  position: absolute;
454
+ z-index: 2;
455
+ }
456
+
457
+ #filterpanel {
458
+ box-shadow: 2px 0 5px #666;
459
+ padding: 40px 16px 8px;
460
+ left: 0;
461
+ max-width: 896px;
462
+ width: calc(100vw - 40px);
463
+ }
464
+ @media screen and (max-width: 768px) {
465
+ #filterpanel {
466
+ width: 100vw;
467
+ }
468
+ #filterpanel::before {
469
+ display: none !important;
470
+ }
471
+ }
472
+ #filterpanel::before {
473
+ content: "";
474
+ display: block;
475
+ position: fixed;
476
+ top: 0;
477
+ bottom: 0;
478
+ right: 0;
479
+ left: 896px;
480
+ background-color: rgba(0, 0, 0, 0.5);
481
+ }
482
+ @media screen and (max-width: 936px) {
483
+ #filterpanel::before {
484
+ left: auto;
485
+ width: 40px;
486
+ }
487
+ }
488
+
489
+ .overlay {
490
+ box-shadow: -2px 0 5px #666;
491
+ padding: 40px 16px 8px;
248
492
  right: 0;
249
493
  width: 624px;
250
- z-index: 2;
494
+ }
495
+ @media screen and (max-width: 624px) {
496
+ .overlay {
497
+ width: 100vw;
498
+ }
499
+ }
500
+ .overlay::before {
501
+ content: "";
502
+ display: block;
503
+ position: fixed;
504
+ top: 0;
505
+ bottom: 0;
506
+ left: 0;
507
+ right: 624px;
508
+ background-color: rgba(0, 0, 0, 0.5);
509
+ }
510
+
511
+ .filterpanel-buttons {
512
+ text-align: right;
513
+ }
514
+ .filterpanel-buttons .cancel-button {
515
+ display: inline-block;
516
+ font-size: 1em;
517
+ font-weight: 500;
518
+ margin-bottom: 0;
519
+ text-decoration: none;
520
+ touch-action: manipulation;
521
+ text-align: left;
522
+ user-select: none;
523
+ vertical-align: middle;
524
+ background-color: #fff;
525
+ border-color: #39870c;
526
+ color: #39870c;
527
+ border-width: 1px;
528
+ border-style: solid;
529
+ border-radius: 4px;
530
+ line-height: 1.5;
531
+ min-width: 56px;
532
+ padding: 11px 15px;
533
+ line-height: 16px;
534
+ }
535
+ .filterpanel-buttons .cancel-button:focus, .filterpanel-buttons .cancel-button:focus-visible {
536
+ outline-offset: 2px;
537
+ }
538
+ .filterpanel-buttons .cancel-button:active {
539
+ outline: 0;
540
+ }
541
+ .filterpanel-buttons .cancel-button.extern::after, .filterpanel-buttons .cancel-button.download::after {
542
+ content: "";
543
+ display: inline-block;
544
+ height: 1.5em;
545
+ margin-left: 8px;
546
+ vertical-align: top;
547
+ width: 1.5em;
548
+ }
549
+ .filterpanel-buttons .cancel-button:hover {
550
+ background-color: #39870c;
551
+ border-color: #39870c;
552
+ color: #fff;
553
+ }
554
+ .filterpanel-buttons .cancel-button:active {
555
+ background-color: #275937;
556
+ border-color: #275937;
557
+ color: #fff;
558
+ }
559
+ .filterpanel-buttons .cancel-button[disabled], .filterpanel-buttons .cancel-button[disabled]:hover {
560
+ background-color: #fff;
561
+ border-color: #afcf9d;
562
+ color: #afcf9d;
563
+ }
564
+ .filterpanel-buttons .cancel-button.btn-sm {
565
+ line-height: 16px;
566
+ }
567
+ .filterpanel-buttons .cancel-button.btn-sm dso-icon,
568
+ .filterpanel-buttons .cancel-button.btn-sm svg.di, .filterpanel-buttons .cancel-button.btn-sm.extern::after, .filterpanel-buttons .cancel-button.btn-sm.download::after {
569
+ margin-bottom: -4px;
570
+ margin-top: -4px;
571
+ }
572
+ .filterpanel-buttons .cancel-button.download::after {
573
+ background: var(--dso-icon, var(--di-download)) no-repeat;
574
+ background-position: center;
575
+ background-size: cover;
576
+ height: 1.5em;
577
+ vertical-align: top;
578
+ width: 1.5em;
579
+ }
580
+ .filterpanel-buttons .cancel-button.download:hover::after {
581
+ --dso-icon: var(--di-download-wit);
582
+ }
583
+ .filterpanel-buttons .cancel-button.download[disabled]::after {
584
+ --dso-icon: var(--di-download-grasgroen-40);
585
+ }
586
+ .filterpanel-buttons .cancel-button.extern::after {
587
+ background: var(--dso-icon, var(--di-external-link)) no-repeat;
588
+ background-position: center;
589
+ background-size: cover;
590
+ height: 1.5em;
591
+ vertical-align: top;
592
+ width: 1.5em;
593
+ }
594
+ .filterpanel-buttons .cancel-button.extern:hover::after {
595
+ --dso-icon: var(--di-external-link-wit);
596
+ }
597
+ .filterpanel-buttons .cancel-button.extern[disabled]::after {
598
+ --dso-icon: var(--di-external-link-grasgroen-40);
599
+ }
600
+ .filterpanel-buttons .cancel-button dso-icon,
601
+ .filterpanel-buttons .cancel-button svg.di {
602
+ margin-left: -8px;
603
+ margin-right: 8px;
604
+ }
605
+ .filterpanel-buttons .cancel-button span + dso-icon,
606
+ .filterpanel-buttons .cancel-button span + svg.di {
607
+ margin-left: 8px;
608
+ margin-right: -8px;
609
+ }
610
+ .filterpanel-buttons .cancel-button dso-icon,
611
+ .filterpanel-buttons .cancel-button svg.di, .filterpanel-buttons .cancel-button.extern::after, .filterpanel-buttons .cancel-button.download::after {
612
+ margin-bottom: -4px;
613
+ margin-top: -4px;
614
+ }
615
+ .filterpanel-buttons .apply-button {
616
+ display: inline-block;
617
+ font-size: 1em;
618
+ font-weight: 500;
619
+ margin-bottom: 0;
620
+ text-decoration: none;
621
+ touch-action: manipulation;
622
+ text-align: left;
623
+ user-select: none;
624
+ vertical-align: middle;
625
+ background-color: #39870c;
626
+ border-color: #39870c;
627
+ color: #fff;
628
+ border-width: 1px;
629
+ border-style: solid;
630
+ border-radius: 4px;
631
+ line-height: 1.5;
632
+ min-width: 56px;
633
+ padding: 11px 15px;
634
+ line-height: 16px;
635
+ }
636
+ .filterpanel-buttons .apply-button:focus, .filterpanel-buttons .apply-button:focus-visible {
637
+ outline-offset: 2px;
638
+ }
639
+ .filterpanel-buttons .apply-button:active {
640
+ outline: 0;
641
+ }
642
+ .filterpanel-buttons .apply-button.extern::after, .filterpanel-buttons .apply-button.download::after {
643
+ content: "";
644
+ display: inline-block;
645
+ height: 1.5em;
646
+ margin-left: 8px;
647
+ vertical-align: top;
648
+ width: 1.5em;
649
+ }
650
+ .filterpanel-buttons .apply-button:hover {
651
+ background-color: #275937;
652
+ border-color: #275937;
653
+ color: #fff;
654
+ }
655
+ .filterpanel-buttons .apply-button:active {
656
+ background-color: #15301e;
657
+ border-color: #15301e;
658
+ color: #fff;
659
+ }
660
+ .filterpanel-buttons .apply-button[disabled], .filterpanel-buttons .apply-button[disabled]:hover {
661
+ background-color: #afcf9d;
662
+ border-color: #afcf9d;
663
+ color: #fff;
664
+ }
665
+ .filterpanel-buttons .apply-button.btn-sm {
666
+ line-height: 16px;
667
+ }
668
+ .filterpanel-buttons .apply-button.btn-sm dso-icon,
669
+ .filterpanel-buttons .apply-button.btn-sm svg.di, .filterpanel-buttons .apply-button.btn-sm.extern::after, .filterpanel-buttons .apply-button.btn-sm.download::after {
670
+ margin-bottom: -4px;
671
+ margin-top: -4px;
672
+ }
673
+ .filterpanel-buttons .apply-button.download::after {
674
+ background: var(--dso-icon, var(--di-download-wit)) no-repeat;
675
+ background-position: center;
676
+ background-size: cover;
677
+ height: 1.5em;
678
+ vertical-align: top;
679
+ width: 1.5em;
680
+ }
681
+ .filterpanel-buttons .apply-button.extern::after {
682
+ background: var(--dso-icon, var(--di-external-link-wit)) no-repeat;
683
+ background-position: center;
684
+ background-size: cover;
685
+ height: 1.5em;
686
+ vertical-align: top;
687
+ width: 1.5em;
688
+ }
689
+ .filterpanel-buttons .apply-button dso-icon,
690
+ .filterpanel-buttons .apply-button svg.di {
691
+ margin-left: -8px;
692
+ margin-right: 8px;
693
+ }
694
+ .filterpanel-buttons .apply-button span + dso-icon,
695
+ .filterpanel-buttons .apply-button span + svg.di {
696
+ margin-left: 8px;
697
+ margin-right: -8px;
698
+ }
699
+ .filterpanel-buttons .apply-button dso-icon,
700
+ .filterpanel-buttons .apply-button svg.di, .filterpanel-buttons .apply-button.extern::after, .filterpanel-buttons .apply-button.download::after {
701
+ margin-bottom: -4px;
702
+ margin-top: -4px;
703
+ }
704
+ .filterpanel-buttons .cancel-button + .apply-button {
705
+ margin-left: 16px;
251
706
  }