hr-design-system-handlebars 1.61.4 → 1.63.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/CHANGELOG.md +25 -0
- package/dist/assets/index.css +76 -12
- package/dist/assets/js/components/externalService/dataWrapperContentRefresher.subfeature.js +85 -0
- package/dist/assets/js/components/externalService/dataWrapperNoResponsiveIframe.subfeature.js +44 -0
- package/dist/assets/js/components/externalService/externalServiceDs.feature.js +123 -189
- package/dist/views/components/content/copytext/components/externalservice.hbs +3 -78
- package/dist/views/components/content/copytext/copytext.hbs +10 -1
- package/dist/views/components/event/label_byline.ssi.hbs +1 -1
- package/dist/views/components/externalService/components/external_service_caption.hbs +5 -0
- package/{src/stories/views/components/externalService → dist/views/components/externalService/components}/external_service_data_policy.hbs +6 -6
- package/{src/stories/views/components/externalService → dist/views/components/externalService/components}/external_service_form_checkbox.hbs +2 -2
- package/dist/views/components/externalService/{external_service_load_content_button.hbs → components/external_service_load_content_button.hbs} +2 -2
- package/{src/stories/views/components/externalService → dist/views/components/externalService/components}/external_service_settings_button.hbs +1 -1
- package/dist/views/components/externalService/external_service.hbs +34 -16
- package/dist/views/components/externalService/external_service_with_datapolicy_check.hbs +16 -0
- package/dist/views_static/components/content/copytext/components/externalservice.hbs +3 -78
- package/dist/views_static/components/content/copytext/copytext.hbs +10 -1
- package/dist/views_static/components/event/label_byline.ssi.hbs +1 -1
- package/dist/views_static/components/externalService/components/external_service_caption.hbs +5 -0
- package/dist/views_static/components/externalService/{external_service_data_policy.hbs → components/external_service_data_policy.hbs} +6 -6
- package/dist/views_static/components/externalService/{external_service_form_checkbox.hbs → components/external_service_form_checkbox.hbs} +2 -2
- package/{src/stories/views/components/externalService → dist/views_static/components/externalService/components}/external_service_load_content_button.hbs +2 -2
- package/dist/{views/components/externalService → views_static/components/externalService/components}/external_service_settings_button.hbs +1 -1
- package/dist/views_static/components/externalService/external_service.hbs +34 -16
- package/dist/views_static/components/externalService/external_service_with_datapolicy_check.hbs +16 -0
- package/package.json +1 -1
- package/src/assets/css/custom-utilities.css +49 -15
- package/src/assets/fixtures/content/copytext/copytext_externalservice.json +44 -1
- package/src/assets/fixtures/external_service/external_service.inc.json +3 -3
- package/src/assets/fixtures/teaser/teaser_labels.inc.json +1 -0
- package/src/stories/views/components/content/copytext/components/externalservice.hbs +3 -78
- package/src/stories/views/components/content/copytext/copytext.hbs +10 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_externalservice.json +1 -1
- package/src/stories/views/components/event/calendar/fixtures/event_calendar_event_teaser.json +1 -1
- package/src/stories/views/components/event/label_byline.ssi.hbs +1 -1
- package/src/stories/views/components/externalService/components/external_service_caption.hbs +5 -0
- package/{dist/views/components/externalService → src/stories/views/components/externalService/components}/external_service_data_policy.hbs +6 -6
- package/{dist/views/components/externalService → src/stories/views/components/externalService/components}/external_service_form_checkbox.hbs +2 -2
- package/{dist/views_static/components/externalService → src/stories/views/components/externalService/components}/external_service_load_content_button.hbs +2 -2
- package/{dist/views_static/components/externalService → src/stories/views/components/externalService/components}/external_service_settings_button.hbs +1 -1
- package/src/stories/views/components/externalService/dataWrapperContentRefresher.subfeature.js +85 -0
- package/src/stories/views/components/externalService/dataWrapperNoResponsiveIframe.subfeature.js +44 -0
- package/src/stories/views/components/externalService/externalServiceDs.feature.js +123 -189
- package/src/stories/views/components/externalService/external_service.data.js +1 -1
- package/src/stories/views/components/externalService/external_service.hbs +34 -16
- package/src/stories/views/components/externalService/external_service.stories.js +1 -1
- package/src/stories/views/components/externalService/external_service_with_datapolicy_check.hbs +16 -0
- package/src/stories/views/components/externalService/fixtures/external_service_with_datapolicy.json +166 -0
- package/src/stories/views/components/grid/grid.stories.js +1 -1
- package/src/stories/views/components/teaser/fixtures/stage_teaser_eventtag.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_single_event.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_two_events.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_event_calendar_100_serif.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_single_event.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_two_events.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_multiple_events.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event_status.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_two_events.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_single_event.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_66_serif_single_event.json +1 -1
- package/dist/views/components/externalService/external_service_caption.hbs +0 -3
- package/dist/views/components/externalService/externalservice.hbs +0 -38
- package/dist/views_static/components/externalService/external_service_caption.hbs +0 -3
- package/dist/views_static/components/externalService/externalservice.hbs +0 -38
- package/src/stories/views/components/externalService/external_service_caption.hbs +0 -3
- package/src/stories/views/components/externalService/externalservice.hbs +0 -38
- package/src/stories/views/components/externalService/fixtures/external_service.json +0 -1
- /package/dist/views/components/externalService/{data_policy_link.hbs → components/data_policy_link.hbs} +0 -0
- /package/dist/views_static/components/externalService/{data_policy_link.hbs → components/data_policy_link.hbs} +0 -0
- /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.0 (Thu Apr 04 2024)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- 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))
|
|
6
|
+
|
|
7
|
+
#### Authors: 2
|
|
8
|
+
|
|
9
|
+
- [@Paul-Atreidis](https://github.com/Paul-Atreidis)
|
|
10
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# v1.62.0 (Thu Apr 04 2024)
|
|
15
|
+
|
|
16
|
+
#### 🚀 Enhancement
|
|
17
|
+
|
|
18
|
+
- :bug: Add the possibilty to turn [#892](https://github.com/mumprod/hr-design-system-handlebars/pull/892) ([@mariokinzel](https://github.com/mariokinzel))
|
|
19
|
+
|
|
20
|
+
#### Authors: 1
|
|
21
|
+
|
|
22
|
+
- [@mariokinzel](https://github.com/mariokinzel)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
1
26
|
# v1.61.4 (Wed Apr 03 2024)
|
|
2
27
|
|
|
3
28
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -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:
|
|
3324
|
+
counter-reset: cnt1712251189185;
|
|
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
|
|
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
|
|
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
|
|
3371
|
+
.ar-16-9::after {
|
|
3372
3372
|
display: block;
|
|
3373
3373
|
content: '';
|
|
3374
3374
|
clear: both;
|
|
3375
3375
|
}
|
|
3376
3376
|
}
|
|
3377
|
-
.ar-
|
|
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
|
|
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
|
|
3403
|
+
.ar-4-3::after {
|
|
3388
3404
|
display: block;
|
|
3389
3405
|
content: '';
|
|
3390
3406
|
clear: both;
|
|
3391
3407
|
}
|
|
3392
3408
|
}
|
|
3393
|
-
.ar-1-1
|
|
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
|
|
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
|
|
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:
|
|
3697
|
+
counter-increment: cnt1712251189185 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(
|
|
3713
|
+
content: counter(cnt1712251189185);
|
|
3650
3714
|
}
|
|
3651
3715
|
/*! ****************************/
|
|
3652
3716
|
/*! DataPolicy stuff */
|
|
@@ -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
|