hr-design-system-handlebars 1.114.94 → 1.114.96
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 +3 -3
- package/dist/assets/js/components/external-service/externalServiceDs.feature.js +36 -0
- package/dist/views/components/teaser/teaser_poster.hbs +4 -4
- package/dist/views_static/components/teaser/teaser_poster.hbs +4 -4
- package/package.json +1 -1
- package/src/assets/fixtures/content/copytext/copytext_posterteaser.json +4 -4
- package/src/assets/fixtures/teaser/teaser_poster.json +6 -6
- package/src/assets/fixtures/teaser/teasers.inc.json +10 -0
- package/src/stories/views/components/content/copytext/fixtures/copytext_non_media_components.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_posterteaser.json +1 -1
- package/src/stories/views/components/external-service/externalServiceDs.feature.js +36 -0
- package/src/stories/views/components/page/story/fixtures/story.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_audio.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_label.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_livestream.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_square_image.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_video.json +1 -1
- package/src/stories/views/components/pagination/fixtures/page_pagination.json +1 -1
- package/src/stories/views/components/teaser/components/fixtures/teaser_byline.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight_2.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_25.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_related_content_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_index.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_indextext.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_poster.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_tabbox.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_tabbox.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_tabbox.json +1 -1
- package/src/stories/views/components/teaser/teaser_poster.hbs +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
# v1.114.96 (Tue Feb 18 2025)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- new getter for posterteaser-image [#1244](https://github.com/mumprod/hr-design-system-handlebars/pull/1244) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.114.95 (Mon Feb 17 2025)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Dpe 3556 [#1243](https://github.com/mumprod/hr-design-system-handlebars/pull/1243) (saad.elbaciri@hr.de [@selbaciri](https://github.com/selbaciri))
|
|
18
|
+
|
|
19
|
+
#### Authors: 2
|
|
20
|
+
|
|
21
|
+
- Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
|
|
22
|
+
- selbaciri (saad.elbaciri@hr.de)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
1
26
|
# v1.114.94 (Mon Feb 17 2025)
|
|
2
27
|
|
|
3
28
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3846,7 +3846,7 @@ article #commentList {
|
|
|
3846
3846
|
border-bottom-color: var(--color-secondary-ds);
|
|
3847
3847
|
}
|
|
3848
3848
|
.counter-reset {
|
|
3849
|
-
counter-reset:
|
|
3849
|
+
counter-reset: cnt1739874162992;
|
|
3850
3850
|
}
|
|
3851
3851
|
.animate-delay-100 {
|
|
3852
3852
|
--tw-animate-delay: 100ms;
|
|
@@ -4291,7 +4291,7 @@ html { scroll-behavior: smooth; }
|
|
|
4291
4291
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
4292
4292
|
}
|
|
4293
4293
|
.-ordered {
|
|
4294
|
-
counter-increment:
|
|
4294
|
+
counter-increment: cnt1739874162992 1;
|
|
4295
4295
|
}
|
|
4296
4296
|
.-ordered::before {
|
|
4297
4297
|
position: absolute;
|
|
@@ -4309,7 +4309,7 @@ html { scroll-behavior: smooth; }
|
|
|
4309
4309
|
--tw-text-opacity: 1;
|
|
4310
4310
|
color: rgba(0, 0, 0, 1);
|
|
4311
4311
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
4312
|
-
content: counter(
|
|
4312
|
+
content: counter(cnt1739874162992);
|
|
4313
4313
|
}
|
|
4314
4314
|
/*! ****************************/
|
|
4315
4315
|
/*! DataPolicy stuff */
|
|
@@ -111,6 +111,9 @@ const ExternalService = function (context) {
|
|
|
111
111
|
case 'wahl-gemeinde-ergebnis':
|
|
112
112
|
createWahlGemeindeErgebnisEmbed()
|
|
113
113
|
break
|
|
114
|
+
case 'wer-waehlte-wen':
|
|
115
|
+
werWaehlteWenEmbed()
|
|
116
|
+
break
|
|
114
117
|
default:
|
|
115
118
|
console.error('No JS Config for external service ' + id)
|
|
116
119
|
break
|
|
@@ -168,6 +171,39 @@ const ExternalService = function (context) {
|
|
|
168
171
|
script.type = 'text/javascript'
|
|
169
172
|
rootElement.appendChild(script)
|
|
170
173
|
}
|
|
174
|
+
|
|
175
|
+
const werWaehlteWenEmbed = function () {
|
|
176
|
+
let iframe = document.createElement('iframe');
|
|
177
|
+
let cleanUrl;
|
|
178
|
+
const parts = embedCode.split('*');
|
|
179
|
+
if (parts.length === 2) {
|
|
180
|
+
const params = parts[1].split(' ');
|
|
181
|
+
cleanUrl = parts[0].trim();
|
|
182
|
+
for (const param of params) {
|
|
183
|
+
const [key, value] = param.split('=');
|
|
184
|
+
if (key === 'id') {
|
|
185
|
+
iframe.id = value;
|
|
186
|
+
} else {
|
|
187
|
+
iframe.setAttribute(key, value);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
iframe.src = cleanUrl;
|
|
193
|
+
iframe.style.width = "100%";
|
|
194
|
+
iframe.style.border = "0";
|
|
195
|
+
rootElement.appendChild(iframe);
|
|
196
|
+
|
|
197
|
+
window.addEventListener("message", function (e) {
|
|
198
|
+
if (e.data.contentUrl && e.data.contentUrl.includes("/wahl/embed/2025-02-23-BT-DE/wer-waehlte-wen/")) {
|
|
199
|
+
let h = parseInt(e.data.height, 10) + 2;
|
|
200
|
+
if (iframe.id === "ts-embed-wer-waehlte-wen-2025-02-23-BT-DE") {
|
|
201
|
+
iframe.style.height = h + "px";
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
171
207
|
const createUniqueID = function () {
|
|
172
208
|
console.log("Erzeuge einzigartige ID")
|
|
173
209
|
uniqueId = Math.random().toString(36).replace(/[^a-z]+/g, '').substring(2, 10)
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
{{#if _isCopytext~}}
|
|
4
4
|
{{#if this.showFullSize.isTrue }}
|
|
5
5
|
{{#if this.showStretched.isTrue }}
|
|
6
|
-
{{~> components/base/image/responsive_image this.
|
|
6
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type="poster_wide" _variant="default" _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
7
7
|
{{else}}
|
|
8
|
-
{{~> components/base/image/responsive_image this.
|
|
8
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type="poster" _variant="copytext_full" _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
9
9
|
{{/if}}
|
|
10
10
|
{{else}}
|
|
11
|
-
{{~> components/base/image/responsive_image this.
|
|
11
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type="poster" _variant="copytext_narrow" _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
12
12
|
{{/if}}
|
|
13
13
|
{{else}}
|
|
14
|
-
{{~> components/base/image/responsive_image this.
|
|
14
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type=this.teaserType _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
15
15
|
{{/if}}
|
|
16
16
|
</figure>
|
|
17
17
|
<div class="absolute flex flex-col justify-end w-full h-full {{#if _isCopytext~}}{{#if this.showFullSize.isTrue~}}{{inline-switch this.showStretched.isTrue '["false","true"]' '["pb-[70px] sm480:pb-24 md:pb-32","pb-[70px] sm480:pb-[86px] sm:pb-16 md:pb-[70px]","pb-[70px] sm480:pb-24 md:pb-32"]'}}{{else}}pb-[70px] sm480:pb-24 sm:pb-[86px] md:pb-24{{/if}}{{else}}{{inline-switch this.realTeaserSize '["33","50"]' '["pb-16 sm:pb-24 md:pb-16","pb-16 sm:pb-24 md:pb-24"]'}}{{/if}} bg-gradient-to-t to-80% from-black rounded-tl-hr rounded-br-hr">
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
{{#if _isCopytext~}}
|
|
4
4
|
{{#if this.showFullSize.isTrue }}
|
|
5
5
|
{{#if this.showStretched.isTrue }}
|
|
6
|
-
{{~> components/base/image/responsive_image this.
|
|
6
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type="poster_wide" _variant="default" _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
7
7
|
{{else}}
|
|
8
|
-
{{~> components/base/image/responsive_image this.
|
|
8
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type="poster" _variant="copytext_full" _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
9
9
|
{{/if}}
|
|
10
10
|
{{else}}
|
|
11
|
-
{{~> components/base/image/responsive_image this.
|
|
11
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type="poster" _variant="copytext_narrow" _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
12
12
|
{{/if}}
|
|
13
13
|
{{else}}
|
|
14
|
-
{{~> components/base/image/responsive_image this.
|
|
14
|
+
{{~> components/base/image/responsive_image this.posterTeaserImage _type=this.teaserType _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="rounded-tl-hr rounded-br-hr" ~}}
|
|
15
15
|
{{/if}}
|
|
16
16
|
</figure>
|
|
17
17
|
<div class="absolute flex flex-col justify-end w-full h-full {{#if _isCopytext~}}{{#if this.showFullSize.isTrue~}}{{inline-switch this.showStretched.isTrue '["false","true"]' '["pb-[70px] sm480:pb-24 md:pb-32","pb-[70px] sm480:pb-[86px] sm:pb-16 md:pb-[70px]","pb-[70px] sm480:pb-24 md:pb-32"]'}}{{else}}pb-[70px] sm480:pb-24 sm:pb-[86px] md:pb-24{{/if}}{{else}}{{inline-switch this.realTeaserSize '["33","50"]' '["pb-16 sm:pb-24 md:pb-16","pb-16 sm:pb-24 md:pb-24"]'}}{{/if}} bg-gradient-to-t to-80% from-black rounded-tl-hr rounded-br-hr">
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "1.114.
|
|
9
|
+
"version": "1.114.96",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@->value": "Zum Artikel"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"@->contentpath": "
|
|
45
|
+
"@->contentpath": "posterTeaserImage",
|
|
46
46
|
"@->value": {
|
|
47
47
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
48
48
|
"@->contentpath": "teaser_poster_50",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@->value": "Zum Artikel"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
"@->contentpath": "
|
|
111
|
+
"@->contentpath": "posterTeaserImage",
|
|
112
112
|
"@->value": {
|
|
113
113
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
114
114
|
"@->contentpath": "teaser_poster_50",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"@->value": "Zum Artikel"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
"@->contentpath": "
|
|
182
|
+
"@->contentpath": "posterTeaserImage",
|
|
183
183
|
"@->value": {
|
|
184
184
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
185
185
|
"@->contentpath": "teaser_poster_50",
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
"@->value": "Zum Artikel"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
"@->contentpath": "
|
|
247
|
+
"@->contentpath": "posterTeaserImage",
|
|
248
248
|
"@->value": {
|
|
249
249
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
250
250
|
"@->contentpath": "teaser_poster_16_to_9",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@->value": "Zum Artikel"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"@->contentpath": "logicItem.includeModel.
|
|
35
|
+
"@->contentpath": "logicItem.includeModel.posterTeaserImage",
|
|
36
36
|
"@->value": {
|
|
37
37
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
38
38
|
"@->contentpath": "teaser_poster_50",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@->value": "Zum Ticker"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
"@->contentpath": "logicItem.includeModel.
|
|
76
|
+
"@->contentpath": "logicItem.includeModel.posterTeaserImage",
|
|
77
77
|
"@->value": {
|
|
78
78
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
79
79
|
"@->contentpath": "teaser_poster_50",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@->value": "Zur Veranstaltung"
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
"@->contentpath": "logicItem.includeModel.
|
|
138
|
+
"@->contentpath": "logicItem.includeModel.posterTeaserImage",
|
|
139
139
|
"@->value": {
|
|
140
140
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
141
141
|
"@->contentpath": "teaser_poster_50",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"@->value": "Zum Artikel"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"@->contentpath": "logicItem.includeModel.
|
|
192
|
+
"@->contentpath": "logicItem.includeModel.posterTeaserImage",
|
|
193
193
|
"@->value": {
|
|
194
194
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
195
195
|
"@->contentpath": "teaser_poster_33",
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"@->value": "Zum Ticker"
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
|
-
"@->contentpath": "logicItem.includeModel.
|
|
233
|
+
"@->contentpath": "logicItem.includeModel.posterTeaserImage",
|
|
234
234
|
"@->value": {
|
|
235
235
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
236
236
|
"@->contentpath": "teaser_poster_33",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
"@->value": "Zur Veranstaltung"
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
|
-
"@->contentpath": "logicItem.includeModel.
|
|
295
|
+
"@->contentpath": "logicItem.includeModel.posterTeaserImage",
|
|
296
296
|
"@->value": {
|
|
297
297
|
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
298
298
|
"@->contentpath": "teaser_poster_33",
|
|
@@ -39,6 +39,16 @@
|
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
|
+
"posterTeaserImage": {
|
|
43
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
44
|
+
"@->contentpath": "teaser_standard",
|
|
45
|
+
"@->replaceToken": [
|
|
46
|
+
{
|
|
47
|
+
"@->token": "image",
|
|
48
|
+
"@->value": "rueckkehr-nach-abschiebung-102"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
42
52
|
"displayTeaserBodyAsImageOverlay": false,
|
|
43
53
|
"hasMediaButtons": false,
|
|
44
54
|
"dontLazyload": true,
|