@erst-vg/vg-design-wrapper 1.0.12 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/src/App.vue.d.ts +1 -1
  3. package/dist/src/VgDesign.vue.d.ts +2 -2
  4. package/dist/src/components/VgAccordion.vue.d.ts +6 -6
  5. package/dist/src/components/VgButton.vue.d.ts +4 -4
  6. package/dist/src/components/VgButtons.vue.d.ts +1 -1
  7. package/dist/src/components/VgCard.vue.d.ts +4 -4
  8. package/dist/src/components/VgCardGroup.vue.d.ts +4 -4
  9. package/dist/src/components/VgDesignWrapper.vue.d.ts +1 -1
  10. package/dist/src/components/VgIcon.vue.d.ts +4 -4
  11. package/dist/src/components/VgKalturaVideo.vue.d.ts +39 -0
  12. package/dist/src/components/VgListe.vue.d.ts +6 -6
  13. package/dist/src/components/VgListeCard.vue.d.ts +4 -4
  14. package/dist/src/components/VgLoginButton.vue.d.ts +1 -1
  15. package/dist/src/components/VgPagination.vue.d.ts +5 -5
  16. package/dist/src/components/VgVideo.vue.d.ts +28 -0
  17. package/dist/src/components/VgVideoToolVideo.vue.d.ts +39 -0
  18. package/dist/src/components/VgVimeoVideo.vue.d.ts +39 -0
  19. package/dist/src/index.d.ts +2 -1
  20. package/dist/tests/unit/components/VgKalturaVideo.spec.d.ts +1 -0
  21. package/dist/tests/unit/components/VgVideo.spec.d.ts +1 -0
  22. package/dist/tests/unit/components/VgVideoToolVideo.spec.d.ts +1 -0
  23. package/dist/tests/unit/components/VgVimeoVideo.spec.d.ts +1 -0
  24. package/dist/vg-design-wrapper.js +3820 -1856
  25. package/dist/vg-design-wrapper.umd.cjs +68 -63
  26. package/package.json +30 -33
  27. package/src/assets/icons/agenda.svg +3 -0
  28. package/src/assets/icons/breadcrumbArrow.svg +1 -1
  29. package/src/components/VgAccordion.vue +2 -2
  30. package/src/components/VgCard.vue +1 -1
  31. package/src/components/VgDesignWrapper.vue +7 -10
  32. package/src/components/VgIcon.vue +1 -1
  33. package/src/components/VgKalturaVideo.vue +70 -0
  34. package/src/components/VgListe.vue +1 -1
  35. package/src/components/VgListeCard.vue +1 -1
  36. package/src/components/VgLoginButton.vue +1 -1
  37. package/src/components/VgVideo.vue +65 -0
  38. package/src/components/VgVideoToolVideo.vue +70 -0
  39. package/src/components/VgVimeoVideo.vue +64 -0
  40. package/src/styles/custom/_vgAccordion.scss +1 -0
  41. package/src/styles/custom/_vgVideo.scss +86 -0
  42. package/src/styles/custom/_vgVideoFrame.scss +9 -0
  43. package/src/styles/utility.scss +2 -0
  44. package/src/styles/vg/_vg-colors.scss +3 -0
  45. package/src/styles/vg/accordion/_vg-accordion.scss +32 -1
  46. package/src/styles/vg/buttons/_vg-buttons.scss +9 -2
  47. package/src/styles/vg/card/_vg-cardText.scss +3 -0
  48. package/src/styles/vg/card/_vg-udvidedecardgrupper.scss +51 -5
  49. package/src/styles/vg/mixins/_vg-mediaquery-helpers.scss +16 -9
  50. package/src/styles/vg/pagination/_vg-pagination.scss +2 -0
@@ -1,3 +1,6 @@
1
+ @use './../vg-colors' as *;
2
+ @use './../mixins/vg-mediaquery-helpers' as *;
3
+
1
4
  .udvidet-cardgruppe {
2
5
  &.white-text {
3
6
  .udvidet-cardgruppe__titel {
@@ -31,7 +34,8 @@
31
34
  background-position: center;
32
35
  background-repeat: no-repeat;
33
36
  background-size: cover;
34
- padding-top: 66.66%;
37
+ aspect-ratio: 3 / 2;
38
+ object-fit: cover;
35
39
  width: 100%;
36
40
 
37
41
  &.logo-picture {
@@ -102,20 +106,21 @@
102
106
 
103
107
  .card-picture {
104
108
  background-size: contain;
105
- padding-top: 50%;
109
+ aspect-ratio: 2/1;
110
+ object-fit: contain;
106
111
  }
107
112
  }
108
113
 
109
114
  .udbyder-card {
110
115
  border: 1px solid $color-light-gray;
111
116
  border-bottom: none;
112
- padding: 32px;
113
- aspect-ratio: 3/2;
114
117
 
115
118
  .card-picture {
116
119
  background-size: contain;
117
- padding-top: unset;
120
+ padding: 32px;
118
121
  height: 100%;
122
+ aspect-ratio: 3/2;
123
+ object-fit: contain;
119
124
  }
120
125
  }
121
126
 
@@ -182,6 +187,7 @@
182
187
  span {
183
188
  line-height: 1.5;
184
189
  vertical-align: middle;
190
+ word-break: break-word;
185
191
  }
186
192
 
187
193
  &.line-limit {
@@ -346,6 +352,40 @@
346
352
  }
347
353
  }
348
354
  }
355
+
356
+ .medarbejder-card {
357
+ margin-bottom: 0 !important;
358
+ padding-bottom: 24px;
359
+
360
+ @include media-breakpoint-up(sm) {
361
+ padding-bottom: 56px;
362
+
363
+ .udvidet-cardgruppe-card {
364
+ display: flex;
365
+ flex-direction: row;
366
+
367
+ .picture-container {
368
+ width: calc(50% - 16px);
369
+ height: 100%;
370
+
371
+ .card-picture {
372
+ width: 100%;
373
+ height: 100%;
374
+ }
375
+ }
376
+
377
+ .text-wrapper {
378
+ width: calc(50% - 16px);
379
+ height: auto;
380
+ margin-left: 32px;
381
+ border-top: none;
382
+ padding-top: 0;
383
+ padding-bottom: 0;
384
+ justify-content: normal;
385
+ }
386
+ }
387
+ }
388
+ }
349
389
  }
350
390
  }
351
391
 
@@ -457,3 +497,9 @@
457
497
  }
458
498
  }
459
499
  }
500
+
501
+ .picture-container {
502
+ .card-picture {
503
+ display: block;
504
+ }
505
+ }
@@ -1,3 +1,6 @@
1
+ @use 'sass:map';
2
+ @use 'sass:list';
3
+
1
4
  // Grid breakpoints.. copied directly from FDS
2
5
  $grid-xs: 0;
3
6
  $grid-sm: 576px;
@@ -28,9 +31,9 @@ $grid-breakpoints: (
28
31
  // md
29
32
  // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
30
33
  // md
31
- @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
32
- $n: index($breakpoint-names, $name);
33
- @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
34
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) {
35
+ $n: list.index($breakpoint-names, $name);
36
+ @return if($n < list.length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
34
37
  }
35
38
 
36
39
  // Minimum breakpoint width. Null for the smallest (first) breakpoint.
@@ -38,7 +41,7 @@ $grid-breakpoints: (
38
41
  // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
39
42
  // 576px
40
43
  @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
41
- $min: map-get($breakpoints, $name);
44
+ $min: map.get($breakpoints, $name);
42
45
  @return if($min != 0, $min, null);
43
46
  }
44
47
 
@@ -49,7 +52,14 @@ $grid-breakpoints: (
49
52
  // 767px
50
53
  @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
51
54
  $next: breakpoint-next($name, $breakpoints);
52
- @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
55
+ @if $next {
56
+ @return breakpoint-min($next, $breakpoints) - 1px;
57
+ } @else {
58
+ // For det største breakpoint (xl), returner breakpoint værdien minus 1px
59
+ // Dette gør at media-breakpoint-down(xl) matcher skærme under 1200px
60
+ $current: map.get($breakpoints, $name);
61
+ @return if($current and $current > 0, $current - 1px, null);
62
+ }
53
63
  }
54
64
 
55
65
  // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
@@ -131,9 +141,6 @@ $grid-breakpoints: (
131
141
  }
132
142
  }
133
143
  }
134
- @mixin testmixin() {
135
- background-color: yellow !important;
136
- }
137
144
 
138
145
  // Breakpoints specificeret til zoom og kigger derfor på em
139
146
  // Bruges særlig til mindre skærme, så koden kan opfylde tilgængelighedskrav
@@ -145,7 +152,7 @@ $zoom-breakpoints: (
145
152
  );
146
153
 
147
154
  @mixin media-breakpoint-down-em($name, $breakpoints: $zoom-breakpoints) {
148
- $max: map-get($breakpoints, $name);
155
+ $max: map.get($breakpoints, $name);
149
156
  @media all and (max-width: $max) {
150
157
  @content;
151
158
  }
@@ -1,3 +1,5 @@
1
+ @use './../vg-colors' as *;
2
+
1
3
  .pagination {
2
4
  padding-top: 16px;
3
5
  padding-bottom: 16px;