hr-design-system-handlebars 1.52.10 → 1.52.11
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 +13 -0
- package/dist/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr1/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr2/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr3/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/hr4/conf/locatags.merged.json +1 -0
- package/dist/assets/brand/you-fm/conf/locatags.merged.json +1 -0
- package/dist/assets/index.css +52 -3
- package/dist/views/components/content/copytext/components/image/figcaption.hbs +33 -0
- package/dist/views/components/content/copytext/components/image/figure.hbs +10 -0
- package/dist/views/components/content/copytext/components/image/image.hbs +32 -0
- package/dist/views/components/content/copytext/copytext.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/image/figcaption.hbs +33 -0
- package/dist/views_static/components/content/copytext/components/image/figure.hbs +10 -0
- package/dist/views_static/components/content/copytext/components/image/image.hbs +32 -0
- package/dist/views_static/components/content/copytext/copytext.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/brand/_default/conf/locatags.json +1 -0
- package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
- package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
- package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
- package/src/assets/fixtures/content/copytext/copytext.inc.json +83 -1
- package/src/assets/fixtures/content/copytext/copytext_image.json +4 -0
- package/src/assets/fixtures/teaser/teaser_images.inc.json +44 -0
- package/src/stories/views/components/content/copytext/components/image/figcaption.hbs +33 -0
- package/src/stories/views/components/content/copytext/components/image/figure.hbs +10 -0
- package/src/stories/views/components/content/copytext/components/image/image.hbs +32 -0
- package/src/stories/views/components/content/copytext/copytext.hbs +1 -1
- package/src/stories/views/components/content/copytext/copytext.stories.js +7 -0
- package/src/stories/views/components/content/copytext/fixtures/copytext_image.json +1 -0
- package/tailwind.config.js +2 -0
- package/dist/views/components/content/copytext/components/image.hbs +0 -41
- package/dist/views_static/components/content/copytext/components/image.hbs +0 -41
- package/src/stories/views/components/content/copytext/components/image.hbs +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v1.52.11 (Wed Jan 24 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- DPE-2698: add copytext-image component [#813](https://github.com/mumprod/hr-design-system-handlebars/pull/813) (saad.elbaciri@hr.de [@selbaciri](https://github.com/selbaciri))
|
|
6
|
+
|
|
7
|
+
#### Authors: 2
|
|
8
|
+
|
|
9
|
+
- Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
|
|
10
|
+
- selbaciri (saad.elbaciri@hr.de)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v1.52.10 (Tue Jan 23 2024)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
package/dist/assets/index.css
CHANGED
|
@@ -1187,6 +1187,9 @@ article.indexText ul {
|
|
|
1187
1187
|
.float-left {
|
|
1188
1188
|
float: left;
|
|
1189
1189
|
}
|
|
1190
|
+
.float-none {
|
|
1191
|
+
float: none;
|
|
1192
|
+
}
|
|
1190
1193
|
.clear-both {
|
|
1191
1194
|
clear: both;
|
|
1192
1195
|
}
|
|
@@ -1205,6 +1208,10 @@ article.indexText ul {
|
|
|
1205
1208
|
.m-4 {
|
|
1206
1209
|
margin: 1rem;
|
|
1207
1210
|
}
|
|
1211
|
+
.-mx-4 {
|
|
1212
|
+
margin-left: -1rem;
|
|
1213
|
+
margin-right: -1rem;
|
|
1214
|
+
}
|
|
1208
1215
|
.mx-0 {
|
|
1209
1216
|
margin-left: 0px;
|
|
1210
1217
|
margin-right: 0px;
|
|
@@ -1419,6 +1426,9 @@ article.indexText ul {
|
|
|
1419
1426
|
.mt-4 {
|
|
1420
1427
|
margin-top: 1rem;
|
|
1421
1428
|
}
|
|
1429
|
+
.mt-4\.5 {
|
|
1430
|
+
margin-top: 1.125rem;
|
|
1431
|
+
}
|
|
1422
1432
|
.mt-5 {
|
|
1423
1433
|
margin-top: 1.25rem;
|
|
1424
1434
|
}
|
|
@@ -1461,6 +1471,12 @@ article.indexText ul {
|
|
|
1461
1471
|
-webkit-box-orient: vertical;
|
|
1462
1472
|
-webkit-line-clamp: 4;
|
|
1463
1473
|
}
|
|
1474
|
+
.line-clamp-none {
|
|
1475
|
+
overflow: visible;
|
|
1476
|
+
display: block;
|
|
1477
|
+
-webkit-box-orient: horizontal;
|
|
1478
|
+
-webkit-line-clamp: none;
|
|
1479
|
+
}
|
|
1464
1480
|
.block {
|
|
1465
1481
|
display: block;
|
|
1466
1482
|
}
|
|
@@ -1826,6 +1842,11 @@ article.indexText ul {
|
|
|
1826
1842
|
-moz-appearance: none;
|
|
1827
1843
|
appearance: none;
|
|
1828
1844
|
}
|
|
1845
|
+
.break-inside-avoid {
|
|
1846
|
+
page-break-inside: avoid;
|
|
1847
|
+
-moz-column-break-inside: avoid;
|
|
1848
|
+
break-inside: avoid;
|
|
1849
|
+
}
|
|
1829
1850
|
.grid-cols-12 {
|
|
1830
1851
|
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
1831
1852
|
}
|
|
@@ -3228,7 +3249,7 @@ article.indexText ul {
|
|
|
3228
3249
|
border-bottom-color: var(--color-secondary-ds);
|
|
3229
3250
|
}
|
|
3230
3251
|
.counter-reset {
|
|
3231
|
-
counter-reset:
|
|
3252
|
+
counter-reset: cnt1706086838048;
|
|
3232
3253
|
}
|
|
3233
3254
|
.hyphens-auto {
|
|
3234
3255
|
-webkit-hyphens: auto;
|
|
@@ -3530,7 +3551,7 @@ article.indexText ul {
|
|
|
3530
3551
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3531
3552
|
}
|
|
3532
3553
|
.-ordered {
|
|
3533
|
-
counter-increment:
|
|
3554
|
+
counter-increment: cnt1706086838048 1;
|
|
3534
3555
|
}
|
|
3535
3556
|
.-ordered::before {
|
|
3536
3557
|
position: absolute;
|
|
@@ -3546,7 +3567,7 @@ article.indexText ul {
|
|
|
3546
3567
|
letter-spacing: .0125em;
|
|
3547
3568
|
--tw-text-opacity: 1;
|
|
3548
3569
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3549
|
-
content: counter(
|
|
3570
|
+
content: counter(cnt1706086838048);
|
|
3550
3571
|
}
|
|
3551
3572
|
/*! ****************************/
|
|
3552
3573
|
/*! DataPolicy stuff */
|
|
@@ -5362,6 +5383,15 @@ article.indexText ul {
|
|
|
5362
5383
|
}
|
|
5363
5384
|
@media (min-width: 480px) {
|
|
5364
5385
|
|
|
5386
|
+
.sm480\:float-left {
|
|
5387
|
+
float: left;
|
|
5388
|
+
}
|
|
5389
|
+
|
|
5390
|
+
.sm480\:mx-0 {
|
|
5391
|
+
margin-left: 0px;
|
|
5392
|
+
margin-right: 0px;
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5365
5395
|
.sm480\:mx-10 {
|
|
5366
5396
|
margin-left: 2.5rem;
|
|
5367
5397
|
margin-right: 2.5rem;
|
|
@@ -5380,6 +5410,10 @@ article.indexText ul {
|
|
|
5380
5410
|
margin-left: 2rem;
|
|
5381
5411
|
}
|
|
5382
5412
|
|
|
5413
|
+
.sm480\:mr-4 {
|
|
5414
|
+
margin-right: 1rem;
|
|
5415
|
+
}
|
|
5416
|
+
|
|
5383
5417
|
.sm480\:mt-4 {
|
|
5384
5418
|
margin-top: 1rem;
|
|
5385
5419
|
}
|
|
@@ -5388,10 +5422,18 @@ article.indexText ul {
|
|
|
5388
5422
|
margin-top: 1.25rem;
|
|
5389
5423
|
}
|
|
5390
5424
|
|
|
5425
|
+
.sm480\:mt-5\.5 {
|
|
5426
|
+
margin-top: 1.375rem;
|
|
5427
|
+
}
|
|
5428
|
+
|
|
5391
5429
|
.sm480\:h-8 {
|
|
5392
5430
|
height: 2rem;
|
|
5393
5431
|
}
|
|
5394
5432
|
|
|
5433
|
+
.sm480\:w-1\/2 {
|
|
5434
|
+
width: 50%;
|
|
5435
|
+
}
|
|
5436
|
+
|
|
5395
5437
|
.sm480\:w-2\/3 {
|
|
5396
5438
|
width: 66.666667%;
|
|
5397
5439
|
}
|
|
@@ -6008,6 +6050,13 @@ article.indexText ul {
|
|
|
6008
6050
|
-webkit-line-clamp: 4;
|
|
6009
6051
|
}
|
|
6010
6052
|
|
|
6053
|
+
.md\:line-clamp-none {
|
|
6054
|
+
overflow: visible;
|
|
6055
|
+
display: block;
|
|
6056
|
+
-webkit-box-orient: horizontal;
|
|
6057
|
+
-webkit-line-clamp: none;
|
|
6058
|
+
}
|
|
6059
|
+
|
|
6011
6060
|
.md\:block {
|
|
6012
6061
|
display: block;
|
|
6013
6062
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-copy"
|
|
2
|
+
x-data="{
|
|
3
|
+
open: false,
|
|
4
|
+
truncated: true,
|
|
5
|
+
init() {
|
|
6
|
+
this.$nextTick(() => {
|
|
7
|
+
if (this.$refs.caption.scrollHeight === this.$refs.caption.clientHeight) {
|
|
8
|
+
this.truncated = false;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}"
|
|
13
|
+
@resize.window="open = false; $refs.caption.scrollHeight === $refs.caption.clientHeight ? truncated = false : truncated = true">
|
|
14
|
+
<div class="dark:text-text-dark overflow-anywhere hyphens-auto" x-ref="caption"
|
|
15
|
+
{{#if this.showFullSize.isTrue}} :class="!open ? 'line-clamp-2 md:line-clamp-none' : 'line-clamp-none'" {{else}} :class="!open ? 'line-clamp-2' : 'line-clamp-none'" {{/if}}>
|
|
16
|
+
{{#if this.caption}}
|
|
17
|
+
{{~#unless _hideCaption~}}
|
|
18
|
+
<span>
|
|
19
|
+
{{this.caption}}
|
|
20
|
+
</span>
|
|
21
|
+
{{~/unless~}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
<span class="text-gray-scorpion dark:text-text-dark">
|
|
24
|
+
{{~loca "figures_copyright"}} {{{copyrightWithLinks}}}
|
|
25
|
+
</span>
|
|
26
|
+
</div>
|
|
27
|
+
<template x-if="truncated">
|
|
28
|
+
<button x-cloak type="button">
|
|
29
|
+
<span x-show="!open" @click.prevent="open = true">{{~> components/base/image/icon _icon="arrow-down" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
|
|
30
|
+
<span x-show="open" @click.prevent="open = false">{{~> components/base/image/icon _icon="arrow-up" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
|
|
31
|
+
</button>
|
|
32
|
+
</template>
|
|
33
|
+
</figcaption>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<figure class="relative mt-6 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
|
|
2
|
+
{{#if _noAr }}
|
|
3
|
+
{{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
|
|
4
|
+
{{else}}
|
|
5
|
+
{{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _addClassImg="ar__content" _isWebview=_isWebview _noDelay=_noDelay}}
|
|
6
|
+
{{/if}}
|
|
7
|
+
{{#unless _voting-option}}
|
|
8
|
+
{{~> components/content/copytext/components/image/figcaption~}}
|
|
9
|
+
{{/unless}}
|
|
10
|
+
</figure>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{{#if this.showPortrait.isTrue }}
|
|
2
|
+
{{#if this.showFullSize.isTrue }}
|
|
3
|
+
{{> components/content/copytext/components/image/figure
|
|
4
|
+
_type="story"
|
|
5
|
+
_variant="100-copytext-portrait"
|
|
6
|
+
_noAr="true"
|
|
7
|
+
_isWebview=../../_isWebview}}
|
|
8
|
+
{{else}}
|
|
9
|
+
{{> components/content/copytext/components/image/figure
|
|
10
|
+
_cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
|
|
11
|
+
_type="story"
|
|
12
|
+
_variant="copytext-portrait"
|
|
13
|
+
_noAr="true"
|
|
14
|
+
_isWebview=../../_isWebview}}
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{else}}
|
|
17
|
+
{{#if this.showFullSize.isTrue}}
|
|
18
|
+
{{> components/content/copytext/components/image/figure
|
|
19
|
+
_type="story"
|
|
20
|
+
_variant="100-copytext"
|
|
21
|
+
_pictureAddClass="ar-16-9"
|
|
22
|
+
_isWebview=../../_isWebview}}
|
|
23
|
+
{{else}}
|
|
24
|
+
{{> components/content/copytext/components/image/figure
|
|
25
|
+
_cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
|
|
26
|
+
_type="story"
|
|
27
|
+
_variant="copytext"
|
|
28
|
+
_pictureAddClass="ar-16-9"
|
|
29
|
+
_isWebview=../../_isWebview}}
|
|
30
|
+
{{/if}}
|
|
31
|
+
{{/if}}
|
|
32
|
+
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{{#unless this.isInfoBox}}
|
|
8
8
|
{{~#with this.paragraphBoxItem }}
|
|
9
9
|
{{~#if this.isImage}}
|
|
10
|
-
{{
|
|
10
|
+
{{~> components/content/copytext/components/image/image}}
|
|
11
11
|
{{/if~}}
|
|
12
12
|
{{~#if this.isContentBox}}
|
|
13
13
|
{{~> components/article/components/contentbox/contentbox ~}}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-copy"
|
|
2
|
+
x-data="{
|
|
3
|
+
open: false,
|
|
4
|
+
truncated: true,
|
|
5
|
+
init() {
|
|
6
|
+
this.$nextTick(() => {
|
|
7
|
+
if (this.$refs.caption.scrollHeight === this.$refs.caption.clientHeight) {
|
|
8
|
+
this.truncated = false;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}"
|
|
13
|
+
@resize.window="open = false; $refs.caption.scrollHeight === $refs.caption.clientHeight ? truncated = false : truncated = true">
|
|
14
|
+
<div class="dark:text-text-dark overflow-anywhere hyphens-auto" x-ref="caption"
|
|
15
|
+
{{#if this.showFullSize.isTrue}} :class="!open ? 'line-clamp-2 md:line-clamp-none' : 'line-clamp-none'" {{else}} :class="!open ? 'line-clamp-2' : 'line-clamp-none'" {{/if}}>
|
|
16
|
+
{{#if this.caption}}
|
|
17
|
+
{{~#unless _hideCaption~}}
|
|
18
|
+
<span>
|
|
19
|
+
{{this.caption}}
|
|
20
|
+
</span>
|
|
21
|
+
{{~/unless~}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
<span class="text-gray-scorpion dark:text-text-dark">
|
|
24
|
+
{{~loca "figures_copyright"}} {{{copyrightWithLinks}}}
|
|
25
|
+
</span>
|
|
26
|
+
</div>
|
|
27
|
+
<template x-if="truncated">
|
|
28
|
+
<button x-cloak type="button">
|
|
29
|
+
<span x-show="!open" @click.prevent="open = true">{{~> components/base/image/icon _icon="arrow-down" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
|
|
30
|
+
<span x-show="open" @click.prevent="open = false">{{~> components/base/image/icon _icon="arrow-up" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
|
|
31
|
+
</button>
|
|
32
|
+
</template>
|
|
33
|
+
</figcaption>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<figure class="relative mt-6 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
|
|
2
|
+
{{#if _noAr }}
|
|
3
|
+
{{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
|
|
4
|
+
{{else}}
|
|
5
|
+
{{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _addClassImg="ar__content" _isWebview=_isWebview _noDelay=_noDelay}}
|
|
6
|
+
{{/if}}
|
|
7
|
+
{{#unless _voting-option}}
|
|
8
|
+
{{~> components/content/copytext/components/image/figcaption~}}
|
|
9
|
+
{{/unless}}
|
|
10
|
+
</figure>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{{#if this.showPortrait.isTrue }}
|
|
2
|
+
{{#if this.showFullSize.isTrue }}
|
|
3
|
+
{{> components/content/copytext/components/image/figure
|
|
4
|
+
_type="story"
|
|
5
|
+
_variant="100-copytext-portrait"
|
|
6
|
+
_noAr="true"
|
|
7
|
+
_isWebview=../../_isWebview}}
|
|
8
|
+
{{else}}
|
|
9
|
+
{{> components/content/copytext/components/image/figure
|
|
10
|
+
_cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
|
|
11
|
+
_type="story"
|
|
12
|
+
_variant="copytext-portrait"
|
|
13
|
+
_noAr="true"
|
|
14
|
+
_isWebview=../../_isWebview}}
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{else}}
|
|
17
|
+
{{#if this.showFullSize.isTrue}}
|
|
18
|
+
{{> components/content/copytext/components/image/figure
|
|
19
|
+
_type="story"
|
|
20
|
+
_variant="100-copytext"
|
|
21
|
+
_pictureAddClass="ar-16-9"
|
|
22
|
+
_isWebview=../../_isWebview}}
|
|
23
|
+
{{else}}
|
|
24
|
+
{{> components/content/copytext/components/image/figure
|
|
25
|
+
_cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
|
|
26
|
+
_type="story"
|
|
27
|
+
_variant="copytext"
|
|
28
|
+
_pictureAddClass="ar-16-9"
|
|
29
|
+
_isWebview=../../_isWebview}}
|
|
30
|
+
{{/if}}
|
|
31
|
+
{{/if}}
|
|
32
|
+
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{{#unless this.isInfoBox}}
|
|
8
8
|
{{~#with this.paragraphBoxItem }}
|
|
9
9
|
{{~#if this.isImage}}
|
|
10
|
-
{{
|
|
10
|
+
{{~> components/content/copytext/components/image/image}}
|
|
11
11
|
{{/if~}}
|
|
12
12
|
{{~#if this.isContentBox}}
|
|
13
13
|
{{~> components/article/components/contentbox/contentbox ~}}
|
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.52.
|
|
9
|
+
"version": "1.52.11",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"event_status_gets_update": "Wird aktualisiert!",
|
|
32
32
|
"feature_box_anchor": "Livestream Player anspringen",
|
|
33
33
|
"featured_content_headline": "Mehr zum Thema:",
|
|
34
|
+
"figures_copyright": "Bild © ",
|
|
34
35
|
"gallery_image_copyright": "Bild © {0}",
|
|
35
36
|
"geotag_buddies_title": "Weitere Beiträge aus der Umgebung",
|
|
36
37
|
"geotag_metadescription_prefix": "",
|
|
@@ -745,5 +745,87 @@
|
|
|
745
745
|
]
|
|
746
746
|
}
|
|
747
747
|
]
|
|
748
|
-
}
|
|
748
|
+
},
|
|
749
|
+
"copytext_image": {
|
|
750
|
+
"copytextParagraph": [
|
|
751
|
+
{
|
|
752
|
+
"structuredDataSsi": "<!--#include virtual='structuredDataSsiPath' -->",
|
|
753
|
+
"isHeadline": true,
|
|
754
|
+
"text": "Speichermedien sowie Waffen und Munition sichergestellt"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"structuredDataSsi": "<!--#include virtual='structuredDataSsiPath' -->",
|
|
758
|
+
"isParagraph": true,
|
|
759
|
+
"text": {
|
|
760
|
+
"split": [
|
|
761
|
+
{
|
|
762
|
+
"isText": true,
|
|
763
|
+
"text": "In der rund 1.200 Einwohner großen Gemeinde Waldbrunn, rund 13 Kilometer vom rheinland-pfälzischen Westerburg entfernt, engagiert sich der 18-Jährige nach hr-Informationen bei der Freiwilligen Feuerwehr. Der Ortsvorsteher aus Waldbrunn beschrieb den Terrorverdächtigen als zurückhaltend, höflich und hilfsbereit."
|
|
764
|
+
}
|
|
765
|
+
]
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"paragraphBoxItem": {
|
|
770
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
771
|
+
"@->contentpath": "copytext_image_100",
|
|
772
|
+
"@->replaceToken": [
|
|
773
|
+
{
|
|
774
|
+
"@->token": "image",
|
|
775
|
+
"@->value": "buchmesse-fahnen-102"
|
|
776
|
+
}
|
|
777
|
+
]
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"paragraphBoxItem": {
|
|
782
|
+
"@->jsoninclude": "teaser/teaser_images.inc.json",
|
|
783
|
+
"@->contentpath": "copytext_image_50",
|
|
784
|
+
"@->replaceToken": [
|
|
785
|
+
{
|
|
786
|
+
"@->token": "image",
|
|
787
|
+
"@->value": "buchmesse-fahnen-102"
|
|
788
|
+
}
|
|
789
|
+
]
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"structuredDataSsi": "<!--#include virtual='structuredDataSsiPath' -->",
|
|
794
|
+
"isParagraph": true,
|
|
795
|
+
"text": {
|
|
796
|
+
"split": [
|
|
797
|
+
{
|
|
798
|
+
"isText": true,
|
|
799
|
+
"text": "Nach der Festnahme in der vergangenen Woche hätten bereits Gespräche mit Mitschülerinnen und Mitschülern des 18 Jahre alten Oberstufenschülers stattgefunden. Auch die Eltern seien in Kenntnis gesetzt worden, sagte der Schulleiter."
|
|
800
|
+
}
|
|
801
|
+
]
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"structuredDataSsi": "<!--#include virtual='structuredDataSsiPath' -->",
|
|
806
|
+
"isParagraph": true,
|
|
807
|
+
"text": {
|
|
808
|
+
"split": [
|
|
809
|
+
{
|
|
810
|
+
"isText": true,
|
|
811
|
+
"text": "Nach der Festnahme in der vergangenen Woche hätten bereits Gespräche mit Mitschülerinnen und Mitschülern des 18 Jahre alten Oberstufenschülers stattgefunden. Auch die Eltern seien in Kenntnis gesetzt worden, sagte der Schulleiter."
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"structuredDataSsi": "<!--#include virtual='structuredDataSsiPath' -->",
|
|
818
|
+
"isParagraph": true,
|
|
819
|
+
"text": {
|
|
820
|
+
"split": [
|
|
821
|
+
{
|
|
822
|
+
"isText": true,
|
|
823
|
+
"text": "Nach der Festnahme in der vergangenen Woche hätten bereits Gespräche mit Mitschülerinnen und Mitschülern des 18 Jahre alten Oberstufenschülers stattgefunden. Auch die Eltern seien in Kenntnis gesetzt worden, sagte der Schulleiter."
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
]
|
|
830
|
+
}
|
|
749
831
|
}
|
|
@@ -408,5 +408,49 @@
|
|
|
408
408
|
}
|
|
409
409
|
]
|
|
410
410
|
}
|
|
411
|
+
},
|
|
412
|
+
"copytext_image_100": {
|
|
413
|
+
"isImage": true,
|
|
414
|
+
"showFullSize": {
|
|
415
|
+
"isTrue": true
|
|
416
|
+
},
|
|
417
|
+
"showPortrait": {
|
|
418
|
+
"isTrue": false
|
|
419
|
+
},
|
|
420
|
+
"caption": "Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen",
|
|
421
|
+
"copyrightWithLinks": "Karsten Hufer",
|
|
422
|
+
"responsiveImage": {
|
|
423
|
+
"asPicture": false,
|
|
424
|
+
"asImage": true,
|
|
425
|
+
"fallback": "images/{#image}_v-16to9__medium.jpg",
|
|
426
|
+
"sources": [
|
|
427
|
+
{
|
|
428
|
+
"sizes": "(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw",
|
|
429
|
+
"srcset": "images/{#image}_v-16to9__small.jpg 320w, images/{#image}_v-16to9__medium.jpg 480w, images/{#image}_v-16to9__medium__extended.jpg 640w, images/{#image}_v-16to9.jpg 960w, images/{#image}_v-16to9__retina.jpg 1920w"
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
"copytext_image_50": {
|
|
435
|
+
"isImage": true,
|
|
436
|
+
"showFullSize": {
|
|
437
|
+
"isTrue": false
|
|
438
|
+
},
|
|
439
|
+
"showPortrait": {
|
|
440
|
+
"isTrue": false
|
|
441
|
+
},
|
|
442
|
+
"caption": "Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen",
|
|
443
|
+
"copyrightWithLinks": "Karsten Hufer",
|
|
444
|
+
"responsiveImage": {
|
|
445
|
+
"asPicture": false,
|
|
446
|
+
"asImage": true,
|
|
447
|
+
"fallback": "images/{#image}_v-16to9__medium.jpg",
|
|
448
|
+
"sources": [
|
|
449
|
+
{
|
|
450
|
+
"sizes": "(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw",
|
|
451
|
+
"srcset": "images/{#image}_v-16to9__small.jpg 320w, images/{#image}_v-16to9__medium.jpg 480w, images/{#image}_v-16to9__medium__extended.jpg 640w, images/{#image}_v-16to9.jpg 960w, images/{#image}_v-16to9__retina.jpg 1920w"
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
}
|
|
411
455
|
}
|
|
412
456
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<figcaption class="flex items-start mx-4 mt-3 text-xs sm480:mx-0 sm480:mt-4 sm480:text-sm font-copy"
|
|
2
|
+
x-data="{
|
|
3
|
+
open: false,
|
|
4
|
+
truncated: true,
|
|
5
|
+
init() {
|
|
6
|
+
this.$nextTick(() => {
|
|
7
|
+
if (this.$refs.caption.scrollHeight === this.$refs.caption.clientHeight) {
|
|
8
|
+
this.truncated = false;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}"
|
|
13
|
+
@resize.window="open = false; $refs.caption.scrollHeight === $refs.caption.clientHeight ? truncated = false : truncated = true">
|
|
14
|
+
<div class="dark:text-text-dark overflow-anywhere hyphens-auto" x-ref="caption"
|
|
15
|
+
{{#if this.showFullSize.isTrue}} :class="!open ? 'line-clamp-2 md:line-clamp-none' : 'line-clamp-none'" {{else}} :class="!open ? 'line-clamp-2' : 'line-clamp-none'" {{/if}}>
|
|
16
|
+
{{#if this.caption}}
|
|
17
|
+
{{~#unless _hideCaption~}}
|
|
18
|
+
<span>
|
|
19
|
+
{{this.caption}}
|
|
20
|
+
</span>
|
|
21
|
+
{{~/unless~}}
|
|
22
|
+
{{/if}}
|
|
23
|
+
<span class="text-gray-scorpion dark:text-text-dark">
|
|
24
|
+
{{~loca "figures_copyright"}} {{{copyrightWithLinks}}}
|
|
25
|
+
</span>
|
|
26
|
+
</div>
|
|
27
|
+
<template x-if="truncated">
|
|
28
|
+
<button x-cloak type="button">
|
|
29
|
+
<span x-show="!open" @click.prevent="open = true">{{~> components/base/image/icon _icon="arrow-down" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
|
|
30
|
+
<span x-show="open" @click.prevent="open = false">{{~> components/base/image/icon _icon="arrow-up" _addClass="m-2 mt-4.5 sm480:mt-5.5 h-3 w-3 fill-link dark:fill-link-dark" _iconmap="icons"~}}</span>
|
|
31
|
+
</button>
|
|
32
|
+
</template>
|
|
33
|
+
</figcaption>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<figure class="relative mt-6 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
|
|
2
|
+
{{#if _noAr }}
|
|
3
|
+
{{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
|
|
4
|
+
{{else}}
|
|
5
|
+
{{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _addClassImg="ar__content" _isWebview=_isWebview _noDelay=_noDelay}}
|
|
6
|
+
{{/if}}
|
|
7
|
+
{{#unless _voting-option}}
|
|
8
|
+
{{~> components/content/copytext/components/image/figcaption~}}
|
|
9
|
+
{{/unless}}
|
|
10
|
+
</figure>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{{#if this.showPortrait.isTrue }}
|
|
2
|
+
{{#if this.showFullSize.isTrue }}
|
|
3
|
+
{{> components/content/copytext/components/image/figure
|
|
4
|
+
_type="story"
|
|
5
|
+
_variant="100-copytext-portrait"
|
|
6
|
+
_noAr="true"
|
|
7
|
+
_isWebview=../../_isWebview}}
|
|
8
|
+
{{else}}
|
|
9
|
+
{{> components/content/copytext/components/image/figure
|
|
10
|
+
_cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
|
|
11
|
+
_type="story"
|
|
12
|
+
_variant="copytext-portrait"
|
|
13
|
+
_noAr="true"
|
|
14
|
+
_isWebview=../../_isWebview}}
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{else}}
|
|
17
|
+
{{#if this.showFullSize.isTrue}}
|
|
18
|
+
{{> components/content/copytext/components/image/figure
|
|
19
|
+
_type="story"
|
|
20
|
+
_variant="100-copytext"
|
|
21
|
+
_pictureAddClass="ar-16-9"
|
|
22
|
+
_isWebview=../../_isWebview}}
|
|
23
|
+
{{else}}
|
|
24
|
+
{{> components/content/copytext/components/image/figure
|
|
25
|
+
_cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
|
|
26
|
+
_type="story"
|
|
27
|
+
_variant="copytext"
|
|
28
|
+
_pictureAddClass="ar-16-9"
|
|
29
|
+
_isWebview=../../_isWebview}}
|
|
30
|
+
{{/if}}
|
|
31
|
+
{{/if}}
|
|
32
|
+
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{{#unless this.isInfoBox}}
|
|
8
8
|
{{~#with this.paragraphBoxItem }}
|
|
9
9
|
{{~#if this.isImage}}
|
|
10
|
-
{{
|
|
10
|
+
{{~> components/content/copytext/components/image/image}}
|
|
11
11
|
{{/if~}}
|
|
12
12
|
{{~#if this.isContentBox}}
|
|
13
13
|
{{~> components/article/components/contentbox/contentbox ~}}
|
|
@@ -6,6 +6,7 @@ import copytext_cite_json from './fixtures/copytext_cite.json'
|
|
|
6
6
|
import copytext_podcastepisode_json from './fixtures/copytext_podcastepisode.json'
|
|
7
7
|
import copytext_faq_json from './fixtures/copytext_faq.json'
|
|
8
8
|
import copytext_jobposting_json from './fixtures/copytext_jobposting.json'
|
|
9
|
+
import copytext_image_json from './fixtures/copytext_image.json'
|
|
9
10
|
|
|
10
11
|
const Template = ({ ...args }) => {
|
|
11
12
|
return copytext({ ...args })
|
|
@@ -63,3 +64,9 @@ export const WithAdditionalInfo = {
|
|
|
63
64
|
name: 'Zusatzinfo',
|
|
64
65
|
args: copytext_additionalInfo_json,
|
|
65
66
|
}
|
|
67
|
+
|
|
68
|
+
export const WithImage = {
|
|
69
|
+
render: Template.bind({}),
|
|
70
|
+
name: 'Image',
|
|
71
|
+
args: copytext_image_json,
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"copytextParagraph":[{"structuredDataSsi":"<!--#include virtual='structuredDataSsiPath' -->","isHeadline":true,"text":"Speichermedien sowie Waffen und Munition sichergestellt"},{"structuredDataSsi":"<!--#include virtual='structuredDataSsiPath' -->","isParagraph":true,"text":{"split":[{"isText":true,"text":"In der rund 1.200 Einwohner großen Gemeinde Waldbrunn, rund 13 Kilometer vom rheinland-pfälzischen Westerburg entfernt, engagiert sich der 18-Jährige nach hr-Informationen bei der Freiwilligen Feuerwehr. Der Ortsvorsteher aus Waldbrunn beschrieb den Terrorverdächtigen als zurückhaltend, höflich und hilfsbereit."}]}},{"paragraphBoxItem":{"isImage":true,"showFullSize":{"isTrue":true},"showPortrait":{"isTrue":false},"caption":"Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen","copyrightWithLinks":"Karsten Hufer","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/buchmesse-fahnen-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/buchmesse-fahnen-102_v-16to9__small.jpg 320w, images/buchmesse-fahnen-102_v-16to9__medium.jpg 480w, images/buchmesse-fahnen-102_v-16to9__medium__extended.jpg 640w, images/buchmesse-fahnen-102_v-16to9.jpg 960w, images/buchmesse-fahnen-102_v-16to9__retina.jpg 1920w"}]}}},{"paragraphBoxItem":{"isImage":true,"showFullSize":{"isTrue":false},"showPortrait":{"isTrue":false},"caption":"Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen","copyrightWithLinks":"Karsten Hufer","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/buchmesse-fahnen-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/buchmesse-fahnen-102_v-16to9__small.jpg 320w, images/buchmesse-fahnen-102_v-16to9__medium.jpg 480w, images/buchmesse-fahnen-102_v-16to9__medium__extended.jpg 640w, images/buchmesse-fahnen-102_v-16to9.jpg 960w, images/buchmesse-fahnen-102_v-16to9__retina.jpg 1920w"}]}}},{"structuredDataSsi":"<!--#include virtual='structuredDataSsiPath' -->","isParagraph":true,"text":{"split":[{"isText":true,"text":"Nach der Festnahme in der vergangenen Woche hätten bereits Gespräche mit Mitschülerinnen und Mitschülern des 18 Jahre alten Oberstufenschülers stattgefunden. Auch die Eltern seien in Kenntnis gesetzt worden, sagte der Schulleiter."}]}},{"structuredDataSsi":"<!--#include virtual='structuredDataSsiPath' -->","isParagraph":true,"text":{"split":[{"isText":true,"text":"Nach der Festnahme in der vergangenen Woche hätten bereits Gespräche mit Mitschülerinnen und Mitschülern des 18 Jahre alten Oberstufenschülers stattgefunden. Auch die Eltern seien in Kenntnis gesetzt worden, sagte der Schulleiter."}]}},{"structuredDataSsi":"<!--#include virtual='structuredDataSsiPath' -->","isParagraph":true,"text":{"split":[{"isText":true,"text":"Nach der Festnahme in der vergangenen Woche hätten bereits Gespräche mit Mitschülerinnen und Mitschülern des 18 Jahre alten Oberstufenschülers stattgefunden. Auch die Eltern seien in Kenntnis gesetzt worden, sagte der Schulleiter."}]}}]}
|
package/tailwind.config.js
CHANGED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{{~#if (isStorybook)~}}
|
|
2
|
-
<div class="mt-6 italic text-gray-dark">coming soon: Image-component</div>
|
|
3
|
-
{{~else~}}
|
|
4
|
-
|
|
5
|
-
{{#if this.showPortrait.isTrue }}
|
|
6
|
-
{{#if this.showFullSize.isTrue }}
|
|
7
|
-
{{> modules/figure/figure
|
|
8
|
-
_cssClass="copytext__clearBox"
|
|
9
|
-
_type="story"
|
|
10
|
-
_variant="100-copytext-portrait"
|
|
11
|
-
_noAr="true"
|
|
12
|
-
_pictureAddClass="copytext__box__picture"
|
|
13
|
-
_isWebview=../../_isWebview}}
|
|
14
|
-
{{else}}
|
|
15
|
-
{{> modules/figure/figure
|
|
16
|
-
_cssClass="copytext__box"
|
|
17
|
-
_type="story"
|
|
18
|
-
_variant="copytext-portrait"
|
|
19
|
-
_noAr="true"
|
|
20
|
-
_pictureAddClass="copytext__box__picture"
|
|
21
|
-
_isWebview=../../_isWebview}}
|
|
22
|
-
{{/if}}
|
|
23
|
-
{{else}}
|
|
24
|
-
{{#if this.showFullSize.isTrue}}
|
|
25
|
-
{{> modules/figure/figure
|
|
26
|
-
_cssClass="copytext__clearBox"
|
|
27
|
-
_type="story"
|
|
28
|
-
_variant="100-copytext"
|
|
29
|
-
_pictureAddClass="ar--16x9 copytext__box__picture"
|
|
30
|
-
_isWebview=../../_isWebview}}
|
|
31
|
-
{{else}}
|
|
32
|
-
{{> modules/figure/figure
|
|
33
|
-
_cssClass="copytext__box"
|
|
34
|
-
_type="story"
|
|
35
|
-
_variant="copytext"
|
|
36
|
-
_pictureAddClass="ar--16x9 copytext__box__picture"
|
|
37
|
-
_isWebview=../../_isWebview}}
|
|
38
|
-
{{/if}}
|
|
39
|
-
{{/if}}
|
|
40
|
-
|
|
41
|
-
{{~/if~}}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{{~#if (isStorybook)~}}
|
|
2
|
-
<div class="mt-6 italic text-gray-dark">coming soon: Image-component</div>
|
|
3
|
-
{{~else~}}
|
|
4
|
-
|
|
5
|
-
{{#if this.showPortrait.isTrue }}
|
|
6
|
-
{{#if this.showFullSize.isTrue }}
|
|
7
|
-
{{> modules/figure/figure
|
|
8
|
-
_cssClass="copytext__clearBox"
|
|
9
|
-
_type="story"
|
|
10
|
-
_variant="100-copytext-portrait"
|
|
11
|
-
_noAr="true"
|
|
12
|
-
_pictureAddClass="copytext__box__picture"
|
|
13
|
-
_isWebview=../../_isWebview}}
|
|
14
|
-
{{else}}
|
|
15
|
-
{{> modules/figure/figure
|
|
16
|
-
_cssClass="copytext__box"
|
|
17
|
-
_type="story"
|
|
18
|
-
_variant="copytext-portrait"
|
|
19
|
-
_noAr="true"
|
|
20
|
-
_pictureAddClass="copytext__box__picture"
|
|
21
|
-
_isWebview=../../_isWebview}}
|
|
22
|
-
{{/if}}
|
|
23
|
-
{{else}}
|
|
24
|
-
{{#if this.showFullSize.isTrue}}
|
|
25
|
-
{{> modules/figure/figure
|
|
26
|
-
_cssClass="copytext__clearBox"
|
|
27
|
-
_type="story"
|
|
28
|
-
_variant="100-copytext"
|
|
29
|
-
_pictureAddClass="ar--16x9 copytext__box__picture"
|
|
30
|
-
_isWebview=../../_isWebview}}
|
|
31
|
-
{{else}}
|
|
32
|
-
{{> modules/figure/figure
|
|
33
|
-
_cssClass="copytext__box"
|
|
34
|
-
_type="story"
|
|
35
|
-
_variant="copytext"
|
|
36
|
-
_pictureAddClass="ar--16x9 copytext__box__picture"
|
|
37
|
-
_isWebview=../../_isWebview}}
|
|
38
|
-
{{/if}}
|
|
39
|
-
{{/if}}
|
|
40
|
-
|
|
41
|
-
{{~/if~}}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{{~#if (isStorybook)~}}
|
|
2
|
-
<div class="mt-6 italic text-gray-dark">coming soon: Image-component</div>
|
|
3
|
-
{{~else~}}
|
|
4
|
-
|
|
5
|
-
{{#if this.showPortrait.isTrue }}
|
|
6
|
-
{{#if this.showFullSize.isTrue }}
|
|
7
|
-
{{> modules/figure/figure
|
|
8
|
-
_cssClass="copytext__clearBox"
|
|
9
|
-
_type="story"
|
|
10
|
-
_variant="100-copytext-portrait"
|
|
11
|
-
_noAr="true"
|
|
12
|
-
_pictureAddClass="copytext__box__picture"
|
|
13
|
-
_isWebview=../../_isWebview}}
|
|
14
|
-
{{else}}
|
|
15
|
-
{{> modules/figure/figure
|
|
16
|
-
_cssClass="copytext__box"
|
|
17
|
-
_type="story"
|
|
18
|
-
_variant="copytext-portrait"
|
|
19
|
-
_noAr="true"
|
|
20
|
-
_pictureAddClass="copytext__box__picture"
|
|
21
|
-
_isWebview=../../_isWebview}}
|
|
22
|
-
{{/if}}
|
|
23
|
-
{{else}}
|
|
24
|
-
{{#if this.showFullSize.isTrue}}
|
|
25
|
-
{{> modules/figure/figure
|
|
26
|
-
_cssClass="copytext__clearBox"
|
|
27
|
-
_type="story"
|
|
28
|
-
_variant="100-copytext"
|
|
29
|
-
_pictureAddClass="ar--16x9 copytext__box__picture"
|
|
30
|
-
_isWebview=../../_isWebview}}
|
|
31
|
-
{{else}}
|
|
32
|
-
{{> modules/figure/figure
|
|
33
|
-
_cssClass="copytext__box"
|
|
34
|
-
_type="story"
|
|
35
|
-
_variant="copytext"
|
|
36
|
-
_pictureAddClass="ar--16x9 copytext__box__picture"
|
|
37
|
-
_isWebview=../../_isWebview}}
|
|
38
|
-
{{/if}}
|
|
39
|
-
{{/if}}
|
|
40
|
-
|
|
41
|
-
{{~/if~}}
|