hr-design-system-handlebars 1.62.0 → 1.63.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 (57) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/index.css +84 -12
  3. package/dist/assets/js/components/externalService/dataWrapperContentRefresher.subfeature.js +85 -0
  4. package/dist/assets/js/components/externalService/dataWrapperNoResponsiveIframe.subfeature.js +44 -0
  5. package/dist/assets/js/components/externalService/externalServiceDs.feature.js +123 -189
  6. package/dist/views/components/content/copytext/components/externalservice.hbs +3 -78
  7. package/dist/views/components/content/copytext/copytext.hbs +10 -1
  8. package/dist/views/components/externalService/components/external_service_caption.hbs +5 -0
  9. package/{src/stories/views/components/externalService → dist/views/components/externalService/components}/external_service_data_policy.hbs +7 -7
  10. package/{src/stories/views/components/externalService → dist/views/components/externalService/components}/external_service_form_checkbox.hbs +2 -2
  11. package/dist/views/components/externalService/{external_service_load_content_button.hbs → components/external_service_load_content_button.hbs} +2 -2
  12. package/{src/stories/views/components/externalService → dist/views/components/externalService/components}/external_service_settings_button.hbs +1 -1
  13. package/dist/views/components/externalService/external_service.hbs +34 -16
  14. package/dist/views/components/externalService/external_service_with_datapolicy_check.hbs +16 -0
  15. package/dist/views/components/page/story/story_article.hbs +1 -1
  16. package/dist/views_static/components/content/copytext/components/externalservice.hbs +3 -78
  17. package/dist/views_static/components/content/copytext/copytext.hbs +10 -1
  18. package/dist/views_static/components/externalService/components/external_service_caption.hbs +5 -0
  19. package/dist/views_static/components/externalService/{external_service_data_policy.hbs → components/external_service_data_policy.hbs} +7 -7
  20. package/dist/views_static/components/externalService/{external_service_form_checkbox.hbs → components/external_service_form_checkbox.hbs} +2 -2
  21. package/{src/stories/views/components/externalService → dist/views_static/components/externalService/components}/external_service_load_content_button.hbs +2 -2
  22. package/dist/{views/components/externalService → views_static/components/externalService/components}/external_service_settings_button.hbs +1 -1
  23. package/dist/views_static/components/externalService/external_service.hbs +34 -16
  24. package/dist/views_static/components/externalService/external_service_with_datapolicy_check.hbs +16 -0
  25. package/dist/views_static/components/page/story/story_article.hbs +1 -1
  26. package/package.json +1 -1
  27. package/src/assets/css/custom-utilities.css +49 -15
  28. package/src/assets/fixtures/content/copytext/copytext_externalservice.json +44 -1
  29. package/src/assets/fixtures/external_service/external_service.inc.json +3 -3
  30. package/src/stories/views/components/content/copytext/components/externalservice.hbs +3 -78
  31. package/src/stories/views/components/content/copytext/copytext.hbs +10 -1
  32. package/src/stories/views/components/content/copytext/fixtures/copytext_externalservice.json +1 -1
  33. package/src/stories/views/components/externalService/components/external_service_caption.hbs +5 -0
  34. package/{dist/views/components/externalService → src/stories/views/components/externalService/components}/external_service_data_policy.hbs +7 -7
  35. package/{dist/views/components/externalService → src/stories/views/components/externalService/components}/external_service_form_checkbox.hbs +2 -2
  36. package/{dist/views_static/components/externalService → src/stories/views/components/externalService/components}/external_service_load_content_button.hbs +2 -2
  37. package/{dist/views_static/components/externalService → src/stories/views/components/externalService/components}/external_service_settings_button.hbs +1 -1
  38. package/src/stories/views/components/externalService/dataWrapperContentRefresher.subfeature.js +85 -0
  39. package/src/stories/views/components/externalService/dataWrapperNoResponsiveIframe.subfeature.js +44 -0
  40. package/src/stories/views/components/externalService/externalServiceDs.feature.js +123 -189
  41. package/src/stories/views/components/externalService/external_service.data.js +1 -1
  42. package/src/stories/views/components/externalService/external_service.hbs +34 -16
  43. package/src/stories/views/components/externalService/external_service.stories.js +1 -1
  44. package/src/stories/views/components/externalService/external_service_with_datapolicy_check.hbs +16 -0
  45. package/src/stories/views/components/externalService/fixtures/external_service_with_datapolicy.json +166 -0
  46. package/src/stories/views/components/grid/grid.stories.js +1 -1
  47. package/src/stories/views/components/page/story/story_article.hbs +1 -1
  48. package/dist/views/components/externalService/external_service_caption.hbs +0 -3
  49. package/dist/views/components/externalService/externalservice.hbs +0 -38
  50. package/dist/views_static/components/externalService/external_service_caption.hbs +0 -3
  51. package/dist/views_static/components/externalService/externalservice.hbs +0 -38
  52. package/src/stories/views/components/externalService/external_service_caption.hbs +0 -3
  53. package/src/stories/views/components/externalService/externalservice.hbs +0 -38
  54. package/src/stories/views/components/externalService/fixtures/external_service.json +0 -1
  55. /package/dist/views/components/externalService/{data_policy_link.hbs → components/data_policy_link.hbs} +0 -0
  56. /package/dist/views_static/components/externalService/{data_policy_link.hbs → components/data_policy_link.hbs} +0 -0
  57. /package/src/stories/views/components/externalService/{data_policy_link.hbs → components/data_policy_link.hbs} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ # v1.63.1 (Fri Apr 05 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fixes padding left in fig caption / desktop view [#894](https://github.com/mumprod/hr-design-system-handlebars/pull/894) ([@StefanVesper](https://github.com/StefanVesper))
6
+
7
+ #### Authors: 1
8
+
9
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
10
+
11
+ ---
12
+
13
+ # v1.63.0 (Thu Apr 04 2024)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - Dpe 2975+2962 [#893](https://github.com/mumprod/hr-design-system-handlebars/pull/893) ([@Paul-Atreidis](https://github.com/Paul-Atreidis) [@hanswurstsalat](https://github.com/hanswurstsalat))
18
+
19
+ #### Authors: 2
20
+
21
+ - [@Paul-Atreidis](https://github.com/Paul-Atreidis)
22
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
23
+
24
+ ---
25
+
1
26
  # v1.62.0 (Thu Apr 04 2024)
2
27
 
3
28
  #### 🚀 Enhancement
@@ -3321,7 +3321,7 @@ article.indexTextDS .indexTextHighlighted .link {
3321
3321
  border-bottom-color: var(--color-secondary-ds);
3322
3322
  }
3323
3323
  .counter-reset {
3324
- counter-reset: cnt1712213129464;
3324
+ counter-reset: cnt1712322608600;
3325
3325
  }
3326
3326
  .hyphens-auto {
3327
3327
  -webkit-hyphens: auto;
@@ -3358,49 +3358,113 @@ article.indexTextDS .indexTextHighlighted .link {
3358
3358
  clear: both;
3359
3359
  }
3360
3360
  }
3361
- .ar-16-9, .ar-16x9-DS {
3361
+ .ar-16-9 {
3362
3362
  aspect-ratio: 16 / 9;
3363
3363
  }
3364
3364
  @supports not (aspect-ratio: 16 / 9) {
3365
- .ar-16-9::before, .ar-16x9-DS::before {
3365
+ .ar-16-9::before {
3366
3366
  float: left;
3367
3367
  padding-top: calc(9 / 16 * 100%);
3368
3368
  content: '';
3369
3369
  }
3370
3370
 
3371
- .ar-16-9::after, .ar-16x9-DS::after {
3371
+ .ar-16-9::after {
3372
3372
  display: block;
3373
3373
  content: '';
3374
3374
  clear: both;
3375
3375
  }
3376
3376
  }
3377
- .ar-4-3, .ar-4x3-DS {
3377
+ .ar-16-7 {
3378
+ aspect-ratio: 16 / 7;
3379
+ }
3380
+ @supports not (aspect-ratio: 16 / 7) {
3381
+ .ar-16-7::before {
3382
+ float: left;
3383
+ padding-top: calc(7 / 16 * 100%);
3384
+ content: '';
3385
+ }
3386
+
3387
+ .ar-16-7::after {
3388
+ display: block;
3389
+ content: '';
3390
+ clear: both;
3391
+ }
3392
+ }
3393
+ .ar-4-3 {
3378
3394
  aspect-ratio: 4 / 3;
3379
3395
  }
3380
3396
  @supports not (aspect-ratio: 4 / 3) {
3381
- .ar-4-3::before, .ar-4x3-DS::before {
3397
+ .ar-4-3::before {
3382
3398
  float: left;
3383
3399
  padding-top: calc(3 / 4 * 100%);
3384
3400
  content: '';
3385
3401
  }
3386
3402
 
3387
- .ar-4-3::after, .ar-4x3-DS::after {
3403
+ .ar-4-3::after {
3388
3404
  display: block;
3389
3405
  content: '';
3390
3406
  clear: both;
3391
3407
  }
3392
3408
  }
3393
- .ar-1-1, .ar-100-DS {
3409
+ .ar-1-1 {
3394
3410
  aspect-ratio: 1 / 1;
3395
3411
  }
3396
3412
  @supports not (aspect-ratio: 1 / 1) {
3397
- .ar-1-1::before, .ar-100-DS::before {
3413
+ .ar-1-1::before {
3398
3414
  float: left;
3399
3415
  padding-top: 100%;
3400
3416
  content: '';
3401
3417
  }
3402
3418
 
3403
- .ar-1-1::after, .ar-100-DS::after {
3419
+ .ar-1-1::after {
3420
+ display: block;
3421
+ content: '';
3422
+ clear: both;
3423
+ }
3424
+ }
3425
+ .ar-100-27 {
3426
+ aspect-ratio: 100 / 27.1;
3427
+ }
3428
+ @supports not (aspect-ratio: 100 / 27.1) {
3429
+ .ar-100-27::before {
3430
+ float: left;
3431
+ padding-top: calc(27.1 / 100 * 100%);
3432
+ content: '';
3433
+ }
3434
+
3435
+ .ar-100-27::after {
3436
+ display: block;
3437
+ content: '';
3438
+ clear: both;
3439
+ }
3440
+ }
3441
+ .ar-9-16 {
3442
+ aspect-ratio: 9 / 16;
3443
+ }
3444
+ @supports not (aspect-ratio: 9 / 16) {
3445
+ .ar-9-16::before {
3446
+ float: left;
3447
+ padding-top: calc(16 / 9 * 100%);
3448
+ content: '';
3449
+ }
3450
+
3451
+ .ar-9-16::after {
3452
+ display: block;
3453
+ content: '';
3454
+ clear: both;
3455
+ }
3456
+ }
3457
+ .ar-7-16 {
3458
+ aspect-ratio: 7 / 16;
3459
+ }
3460
+ @supports not (aspect-ratio: 7 / 16) {
3461
+ .ar-7-16::before {
3462
+ float: left;
3463
+ padding-top: calc(16 / 7 * 100%);
3464
+ content: '';
3465
+ }
3466
+
3467
+ .ar-7-16::after {
3404
3468
  display: block;
3405
3469
  content: '';
3406
3470
  clear: both;
@@ -3630,7 +3694,7 @@ article.indexTextDS .indexTextHighlighted .link {
3630
3694
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3631
3695
  }
3632
3696
  .-ordered {
3633
- counter-increment: cnt1712213129464 1;
3697
+ counter-increment: cnt1712322608600 1;
3634
3698
  }
3635
3699
  .-ordered::before {
3636
3700
  position: absolute;
@@ -3646,7 +3710,7 @@ article.indexTextDS .indexTextHighlighted .link {
3646
3710
  letter-spacing: .0125em;
3647
3711
  --tw-text-opacity: 1;
3648
3712
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3649
- content: counter(cnt1712213129464);
3713
+ content: counter(cnt1712322608600);
3650
3714
  }
3651
3715
  /*! ****************************/
3652
3716
  /*! DataPolicy stuff */
@@ -7002,6 +7066,10 @@ article.indexTextDS .indexTextHighlighted .link {
7002
7066
  padding-left: 1rem;
7003
7067
  }
7004
7068
 
7069
+ .lg\:pl-\[108px\] {
7070
+ padding-left: 108px;
7071
+ }
7072
+
7005
7073
  .lg\:pr-0 {
7006
7074
  padding-right: 0px;
7007
7075
  }
@@ -7014,6 +7082,10 @@ article.indexTextDS .indexTextHighlighted .link {
7014
7082
  padding-right: 12rem;
7015
7083
  }
7016
7084
 
7085
+ .lg\:pr-5 {
7086
+ padding-right: 1.25rem;
7087
+ }
7088
+
7017
7089
  .lg\:pt-1 {
7018
7090
  padding-top: 0.25rem;
7019
7091
  }
@@ -0,0 +1,85 @@
1
+
2
+ const DataWrapperContentRefresher = function (context, uniqueID) {
3
+ const { element: rootElement } = context
4
+ let remainingTime
5
+ let timer
6
+ let iframeRefresh = document.getElementById('datawrapper-chart-' + uniqueID)
7
+
8
+ const createRefresher = function (uniqueID) {
9
+ let divCounter = document.createElement('div')
10
+ let divOverlay = document.createElement('div')
11
+ let divTextOverlay = document.createElement('div')
12
+ divOverlay.id = 'overlay' + uniqueID
13
+ divOverlay.style.position = 'absolute'
14
+ divOverlay.style.top = '0'
15
+ divOverlay.style.display = 'none'
16
+ divOverlay.style.alignItems = 'center'
17
+ divOverlay.style.justifyContent = 'center'
18
+ divOverlay.style.backgroundColor = '#fff'
19
+ divOverlay.style.width = '100%'
20
+ divOverlay.style.height = 'calc(100% - 36px)'
21
+ divOverlay.style.backgroundColor = '#d8e9f6'
22
+ divTextOverlay.innerHTML = 'Lade Inhalt neu...'
23
+ divTextOverlay.style.backgroundColor = '#005293'
24
+ divTextOverlay.style.padding = '8px'
25
+ divTextOverlay.style.color = '#fff'
26
+ divTextOverlay.style.fontWeight = '800'
27
+ divTextOverlay.style.fontFamily = 'RobotoSlab'
28
+ divTextOverlay.style.borderRadius = '6px 6px 6px 6px'
29
+ divOverlay.appendChild(divTextOverlay)
30
+ divCounter.id = 'counter' + uniqueID
31
+ divCounter.style.backgroundColor = '#006dc1'
32
+ divCounter.style.color = '#fff'
33
+ divCounter.style.fontSize = '12px'
34
+ divCounter.style.padding = '8px'
35
+ divCounter.style.borderRadius = '0 0 4px 4px'
36
+
37
+ rootElement.style.position = 'relative'
38
+ rootElement.appendChild(divCounter)
39
+ rootElement.appendChild(divOverlay)
40
+ startCountdown()
41
+ }
42
+
43
+ const refreshIframe = function () {
44
+ console.log('Reload')
45
+ iframeRefresh.style.opacity = '0'
46
+ iframeRefresh.src =
47
+ iframeRefresh.src.split('?')[0] + '?_=' + new Date().getTime()
48
+ clearInterval(timer)
49
+ }
50
+ const startCountdown = function () {
51
+ remainingTime = Number(iFrameConfig.refreshIntervall)
52
+ setTimeout(function () {
53
+ iframeRefresh.style.opacity = '1'
54
+ document.getElementById('overlay' + uniqueID).style.display = 'none'
55
+ }, 1000)
56
+ timer = setInterval(function () {
57
+ checkTimer()
58
+ }, 1000)
59
+ }
60
+ const checkTimer = function () {
61
+ if (remainingTime >= 0) {
62
+ document.getElementById('counter' + uniqueID).innerHTML =
63
+ 'Dieser Inhalt wird automatisch aktualisiert in ' +
64
+ secondsToTimeString(remainingTime) +
65
+ ' Min.'
66
+ remainingTime -= 1
67
+ if (remainingTime == -1) {
68
+ document.getElementById('overlay' + uniqueID).style.display = 'flex'
69
+ document.getElementById('counter' + uniqueID).innerHTML =
70
+ 'Zeitintervall wird neu gestartet...'
71
+ }
72
+ } else {
73
+ refreshIframe()
74
+ startCountdown()
75
+ }
76
+ }
77
+ const secondsToTimeString = function (seconds) {
78
+ return new Date(seconds * 1000).toISOString().substr(14, 5)
79
+ }
80
+ return {
81
+ createRefresher: createRefresher
82
+ }
83
+ }
84
+
85
+ export default DataWrapperContentRefresher
@@ -0,0 +1,44 @@
1
+ const DataWrapperNoResponsiveIframe = function (context, configAR, configFixedHeight, comfigEmbedCode) {
2
+
3
+ const { element: rootElement } = context
4
+ let aspectRatio = configAR
5
+ let fixedHeight = configFixedHeight
6
+ let embedCode = comfigEmbedCode
7
+
8
+ const createNoResponsiveIframe = function (aspectRatioClass) {
9
+
10
+
11
+ var parentDiv = document.createElement('div')
12
+ parentDiv.className = 'copytext__scrollWrapper'
13
+ var div = document.createElement('div')
14
+ //Keine Aspect-Ratio ausgewählt aber eine feste Höhe
15
+ if (aspectRatio === undefined) {
16
+ div.className = 'noaspect_datawrapper_cdn'
17
+ div.style.height = fixedHeight + 'px'
18
+ div.style.width = '100%'
19
+ }
20
+ // Aspect-Ratio ausgewählt
21
+ else {
22
+ div.className = aspectRatioClass + ' datawrapper_cdn'
23
+ }
24
+ var iframe = document.createElement('iframe')
25
+ iframe.className = 'w-full h-full datawrapper_cdn'
26
+ iframe.setAttribute('id', 'i_frame')
27
+ iframe.setAttribute('data-isloaded', '0')
28
+ iframe.setAttribute('webkitallowfullscreen', '')
29
+ iframe.setAttribute('mozallowfullscreen', '')
30
+ iframe.setAttribute('allowfullscreen', '')
31
+ iframe.setAttribute('scrolling', 'no')
32
+ iframe.setAttribute('frameborder', '0')
33
+ iframe.src = embedCode
34
+
35
+ div.appendChild(iframe)
36
+ parentDiv.appendChild(div)
37
+ rootElement.appendChild(parentDiv)
38
+ }
39
+ return {
40
+ createNoResponsiveIframe: createNoResponsiveIframe
41
+ }
42
+ }
43
+
44
+ export default DataWrapperNoResponsiveIframe