hr-design-system-handlebars 1.70.0 → 1.70.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.
- package/CHANGELOG.md +13 -0
- package/dist/assets/brand/hessenschau/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr1/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr2/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr3/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/hr4/conf/locatags.merged.json +2 -0
- package/dist/assets/brand/you-fm/conf/locatags.merged.json +2 -0
- package/dist/assets/index.css +11 -3
- package/dist/views/components/base/a11y/ariaLabelText.hbs +23 -0
- package/dist/views/components/button/utilities/button_on_image_classes.hbs +5 -1
- package/dist/views/components/content/copytext/components/media/media_figure.hbs +32 -0
- package/dist/views/components/content/copytext/components/media/media_figure_byline.hbs +35 -0
- package/dist/views/components/content/copytext/components/media/media_figure_headline.hbs +14 -0
- package/dist/views/components/content/copytext/components/video/video.hbs +5 -0
- package/dist/views/components/content/copytext/components/video/video_element.hbs +15 -0
- package/dist/views/components/content/copytext/components/video/video_element_ondemand.hbs +23 -0
- package/dist/views/components/content/copytext/copytext.hbs +1 -1
- package/dist/views/components/label/label.hbs +2 -2
- package/dist/views_static/components/base/a11y/ariaLabelText.hbs +23 -0
- package/dist/views_static/components/button/utilities/button_on_image_classes.hbs +5 -1
- package/dist/views_static/components/content/copytext/components/media/media_figure.hbs +32 -0
- package/dist/views_static/components/content/copytext/components/media/media_figure_byline.hbs +35 -0
- package/dist/views_static/components/content/copytext/components/media/media_figure_headline.hbs +14 -0
- package/dist/views_static/components/content/copytext/components/video/video.hbs +5 -0
- package/dist/views_static/components/content/copytext/components/video/video_element.hbs +15 -0
- package/dist/views_static/components/content/copytext/components/video/video_element_ondemand.hbs +23 -0
- package/dist/views_static/components/content/copytext/copytext.hbs +1 -1
- package/dist/views_static/components/label/label.hbs +2 -2
- package/package.json +1 -1
- package/src/assets/brand/_default/conf/locatags.json +3 -1
- package/src/assets/brand/hessenschau/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr-bigband/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr-werbung/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr1/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr2/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr3/conf/locatags.merged.json +2 -0
- package/src/assets/brand/hr4/conf/locatags.merged.json +2 -0
- package/src/assets/brand/you-fm/conf/locatags.merged.json +2 -0
- package/src/assets/fixtures/content/copytext/copytext_video.json +159 -0
- package/src/assets/fixtures/teaser/teaser_labels.inc.json +4 -0
- package/src/assets/fixtures/video/videos.inc.json +77 -0
- package/src/stories/views/components/base/a11y/ariaLabelText.hbs +23 -0
- package/src/stories/views/components/button/utilities/button_on_image_classes.hbs +5 -1
- package/src/stories/views/components/content/copytext/components/media/media_figure.hbs +32 -0
- package/src/stories/views/components/content/copytext/components/media/media_figure_byline.hbs +35 -0
- package/src/stories/views/components/content/copytext/components/media/media_figure_headline.hbs +14 -0
- package/src/stories/views/components/content/copytext/components/video/video.hbs +5 -0
- package/src/stories/views/components/content/copytext/components/video/video_element.hbs +15 -0
- package/src/stories/views/components/content/copytext/components/video/video_element_ondemand.hbs +23 -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_video.json +1 -0
- package/src/stories/views/components/label/label.hbs +2 -2
- package/dist/views/components/content/copytext/components/video.hbs +0 -9
- package/dist/views_static/components/content/copytext/components/video.hbs +0 -9
- package/src/stories/views/components/content/copytext/components/video.hbs +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v1.70.1 (Tue Jun 11 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- DPE-323: add add copytext-video component [#928](https://github.com/mumprod/hr-design-system-handlebars/pull/928) (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.70.0 (Tue Jun 11 2024)
|
|
2
15
|
|
|
3
16
|
#### 🚀 Enhancement
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hessenschau . d e",
|
|
165
167
|
"meta_application_name": "hessenschau.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr . d e",
|
|
165
167
|
"meta_application_name": "hr.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr-bigband . d e",
|
|
165
167
|
"meta_application_name": "hr-bigband.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr-fernsehen . d e",
|
|
165
167
|
"meta_application_name": "hr-fernsehen.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr-inforadio . d e",
|
|
165
167
|
"meta_application_name": "hr-inforadio.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr-rundfunkrat . d e",
|
|
165
167
|
"meta_application_name": "hr-rundfunkrat.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr-sinfonieorchester . d e",
|
|
165
167
|
"meta_application_name": "hr-sinfonieorchester.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr-werbung . d e",
|
|
165
167
|
"meta_application_name": "hr-werbung.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr1 . d e",
|
|
165
167
|
"meta_application_name": "hr1.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr2 . d e",
|
|
165
167
|
"meta_application_name": "hr2.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr3 . d e",
|
|
165
167
|
"meta_application_name": "hr3.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hr4 . d e",
|
|
165
167
|
"meta_application_name": "hr4.de"
|
|
166
168
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite you-fm . d e",
|
|
165
167
|
"meta_application_name": "you-fm.de"
|
|
166
168
|
}
|
package/dist/assets/index.css
CHANGED
|
@@ -2184,6 +2184,9 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
2184
2184
|
.border-t {
|
|
2185
2185
|
border-top-width: 1px;
|
|
2186
2186
|
}
|
|
2187
|
+
.border-t-\[3px\] {
|
|
2188
|
+
border-top-width: 3px;
|
|
2189
|
+
}
|
|
2187
2190
|
.border-solid {
|
|
2188
2191
|
border-style: solid;
|
|
2189
2192
|
}
|
|
@@ -3347,7 +3350,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3347
3350
|
border-bottom-color: var(--color-secondary-ds);
|
|
3348
3351
|
}
|
|
3349
3352
|
.counter-reset {
|
|
3350
|
-
counter-reset:
|
|
3353
|
+
counter-reset: cnt1718105127788;
|
|
3351
3354
|
}
|
|
3352
3355
|
.hyphens-auto {
|
|
3353
3356
|
-webkit-hyphens: auto;
|
|
@@ -3726,7 +3729,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3726
3729
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3727
3730
|
}
|
|
3728
3731
|
.-ordered {
|
|
3729
|
-
counter-increment:
|
|
3732
|
+
counter-increment: cnt1718105127788 1;
|
|
3730
3733
|
}
|
|
3731
3734
|
.-ordered::before {
|
|
3732
3735
|
position: absolute;
|
|
@@ -3742,7 +3745,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3742
3745
|
letter-spacing: .0125em;
|
|
3743
3746
|
--tw-text-opacity: 1;
|
|
3744
3747
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3745
|
-
content: counter(
|
|
3748
|
+
content: counter(cnt1718105127788);
|
|
3746
3749
|
}
|
|
3747
3750
|
/*! ****************************/
|
|
3748
3751
|
/*! DataPolicy stuff */
|
|
@@ -6234,6 +6237,11 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
6234
6237
|
padding-right: 2.375rem;
|
|
6235
6238
|
}
|
|
6236
6239
|
|
|
6240
|
+
.sm\:py-4 {
|
|
6241
|
+
padding-top: 1rem;
|
|
6242
|
+
padding-bottom: 1rem;
|
|
6243
|
+
}
|
|
6244
|
+
|
|
6237
6245
|
.sm\:pb-0 {
|
|
6238
6246
|
padding-bottom: 0px;
|
|
6239
6247
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{{!--@
|
|
2
|
+
Creates a text element that is only relevant for screenreaders. It will not be visible at all.
|
|
3
|
+
|
|
4
|
+
```hbs
|
|
5
|
+
{{> base/a11y/hiddenText
|
|
6
|
+
_text="..."
|
|
7
|
+
_locaTag="..."
|
|
8
|
+
}}
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`_text` The text for the screen reader.<br>
|
|
12
|
+
`_locaTag` The loca tag for the text for the screen reader.<br>
|
|
13
|
+
|
|
14
|
+
--}}
|
|
15
|
+
<span aria-label="
|
|
16
|
+
{{~#if _text ~}}
|
|
17
|
+
{{~_text~}}
|
|
18
|
+
{{~else~}}
|
|
19
|
+
{{~#with _locaTag ~}}
|
|
20
|
+
{{~loca this ~}}
|
|
21
|
+
{{~/with~}}
|
|
22
|
+
{{~/if~}}
|
|
23
|
+
"></span>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<figure class="relative ar-16-9 my-6 sm480:my-7 {{_addClass}}" x-data="{ avStart: false }">
|
|
2
|
+
{{~> components/base/a11y/hiddenText _locaTag=_a11yIntro-loca ~}}
|
|
3
|
+
{{#unless _voting-option}}
|
|
4
|
+
<figcaption class="py-3 mx-5 sm:mx-0 sm:py-4 border-t-[3px] border-gray-boulder">
|
|
5
|
+
{{#with this.label}}
|
|
6
|
+
{{#> components/label/label_group}}
|
|
7
|
+
{{> components/label/label _type=this.type _text=(loca this.loca) }}
|
|
8
|
+
{{> components/label/label_byline _css="ml-2"}}
|
|
9
|
+
{{#with ../this}}{{> components/content/copytext/components/media/media_figure_byline}}{{/with~}}
|
|
10
|
+
{{/components/label/label_group}}
|
|
11
|
+
{{/with~}}
|
|
12
|
+
{{#with this.toModel.mediaBacklinkToStoryTeaser}}
|
|
13
|
+
{{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"}}
|
|
14
|
+
{{> components/content/copytext/components/media/media_figure_headline}}
|
|
15
|
+
{{/components/base/link}}
|
|
16
|
+
{{/with}}
|
|
17
|
+
</figcaption>
|
|
18
|
+
{{/unless}}
|
|
19
|
+
{{#if this.isVideo}}
|
|
20
|
+
{{#if _isLead}}
|
|
21
|
+
{{~> components/content/copytext/components/video/video_element _isCopyText=true _teaser=this _isTeaser=true _fullSize=_fullSize _addClassVideo="ar__content" _mediaMetadata=true _noDelay=true ~}}
|
|
22
|
+
{{else}}
|
|
23
|
+
{{~> components/content/copytext/components/video/video_element _isCopyText=true _teaser=this _isTeaser=true _fullSize=_fullSize _addClassVideo="ar__content" _mediaMetadata=true~}}
|
|
24
|
+
{{/if}}
|
|
25
|
+
{{/if}}
|
|
26
|
+
{{#unless _voting-option}}
|
|
27
|
+
{{#with this.teaseritem}}
|
|
28
|
+
{{~> components/content/copytext/components/image/figcaption _cssClassCaption="mx-5 sm:mx-0"~}}
|
|
29
|
+
{{/with}}
|
|
30
|
+
{{/unless}}
|
|
31
|
+
{{~> components/base/a11y/hiddenText _locaTag=_a11yOutro-loca ~}}
|
|
32
|
+
</figure>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<span class='text-xs text-inherit font-headingSerif{{#if _css}} {{_css}}{{/if}}'>
|
|
2
|
+
<span class="mx-1">|</span>
|
|
3
|
+
{{~#if this.isAudio}}
|
|
4
|
+
{{~#with this.audioAuthor}}
|
|
5
|
+
{{this}}{{#if ../this.airdateDate }}<span class="mx-1">|</span>{{/if}}
|
|
6
|
+
{{/with}}
|
|
7
|
+
{{~#with this.airdateDate ~}}
|
|
8
|
+
<time datetime="{{this.htmlDate}}">{{this.date}}</time>
|
|
9
|
+
{{~/with~}}
|
|
10
|
+
{{/if}}
|
|
11
|
+
|
|
12
|
+
{{~#if this.isPodcastEpisode}}
|
|
13
|
+
{{~#with this.audioAuthor}}
|
|
14
|
+
{{this}}{{#if ../this.airdateDate }}<span class="mx-1">|</span>{{/if}}
|
|
15
|
+
{{/with}}
|
|
16
|
+
{{~#with this.airdateDate ~}}
|
|
17
|
+
<time datetime="{{this.htmlDate}}">{{this.date}}</time>
|
|
18
|
+
{{~/with~}}
|
|
19
|
+
{{/if}}
|
|
20
|
+
|
|
21
|
+
{{~#if this.isVideo}}
|
|
22
|
+
{{~#with this.copyright}}
|
|
23
|
+
{{this}}{{#if ../this.airdateDate }} <span class="mx-1">|</span>{{/if}}
|
|
24
|
+
{{/with}}
|
|
25
|
+
|
|
26
|
+
{{~#with this.airdateDate ~}}
|
|
27
|
+
{{~#if ../this.airdateWithoutTime ~}}
|
|
28
|
+
<time datetime="{{this.htmlDate}}">{{this.date}}</time>
|
|
29
|
+
{{else}}
|
|
30
|
+
<time datetime="{{this.htmlDateTime}}">{{loca "date_simple_at"
|
|
31
|
+
this.dateSeparatorTime }}</time>
|
|
32
|
+
{{~/if~}}
|
|
33
|
+
{{~/with~}}
|
|
34
|
+
{{/if}}
|
|
35
|
+
</span>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<h3 class="mt-1">
|
|
2
|
+
{{> components/base/a11y/ariaLabelText _text=this.content.readMoreScreenreader }}
|
|
3
|
+
<span class="text-lg sm480:text-xl font-headingSerif dark:text-text-dark">
|
|
4
|
+
{{this.content.title}}
|
|
5
|
+
</span>
|
|
6
|
+
{{~#if this.content.isForeignBrand}}
|
|
7
|
+
<span aria-hidden=true class="ml-4">
|
|
8
|
+
[{{this.content.readMore}}
|
|
9
|
+
{{~#if this.hasIcon}}
|
|
10
|
+
{{~> components/base/image/icon _icon=this.iconName _iconmap="icons" _addClass="inline -mt-0.5 ml-1 w-5 h-5 fill-current"~}}
|
|
11
|
+
{{/if~}}]
|
|
12
|
+
</span>
|
|
13
|
+
{{/if~}}
|
|
14
|
+
</h3>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{{#if this.showFullSize.isTrue }}
|
|
2
|
+
{{> components/content/copytext/components/media/media_figure _fullSize=true _addClass="print:hidden clear-both article-full-width sm:article-narrow" _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
3
|
+
{{else}}
|
|
4
|
+
{{> components/content/copytext/components/media/media_figure _fullSize=false _addClass="print:hidden article-full-width sm:article-narrow sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid" _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
5
|
+
{{/if}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{{> components/content/copytext/components/video/video_element_ondemand this.toModel.videoElement
|
|
2
|
+
_isSinglePage=_isSinglePage
|
|
3
|
+
_isCopyText=_isCopyText
|
|
4
|
+
_isTeaser=_isTeaser
|
|
5
|
+
_teaser=_teaser
|
|
6
|
+
_poster=_poster
|
|
7
|
+
_geotag=_geotag
|
|
8
|
+
_hideGeotag=_hideGeotag
|
|
9
|
+
_posterImageVariant=_posterImageVariant
|
|
10
|
+
_posterImageType=_posterImageType
|
|
11
|
+
_noDelay=_noDelay
|
|
12
|
+
_cypressHook="js-video-ondemand"
|
|
13
|
+
_mediaButtonIcon="play_button"
|
|
14
|
+
_mediaButtonLabel="Video" }}
|
|
15
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<div x-show="avStart" x-cloak id="{{this.ardPlayerConfig.playerId}}" class="ar-16-9 h-full {{~#if _addClassImg}} {{_addClassImg}}{{/if}} {{#if _isTeaser}} z-20{{/if}} js-load {{if _cypressHook _cypressHook 'js-media-element'}} js-video-livestream cy-mediaplayer" data-hr-mediaplayer-loader='{{json this.ardPlayerJsonConfig}}'>
|
|
2
|
+
</div>
|
|
3
|
+
{{#if _isTeaser}}
|
|
4
|
+
<div class="relative flex items-center justify-center ar-16-9" x-show="!avStart" >
|
|
5
|
+
{{#unless _hideGeotag}}
|
|
6
|
+
{{~#with _geotag}}
|
|
7
|
+
{{> components/geoTag/geoTag _text=this.[0].title _teaserSize=../_teaserSize _isMobile1to1=../_isMobile1to1}}
|
|
8
|
+
{{/with~}}
|
|
9
|
+
{{/unless}}
|
|
10
|
+
{{#with _teaser}}
|
|
11
|
+
{{#if this.isTickerTeaser}}<a href="{{this.link.url}}" aria-label="Zum Ticker" tabindex="-1"{{#if (isUserConsentNeeded this.link.url)}} class="js-user-consent-needed"{{/if}}>{{/if}}
|
|
12
|
+
{{~> components/base/image/responsive_image this.teaserImage _type=(if this.teaserType this.teaserType 'story') _variant=(if this.content.imageVariant this.content.imageVariant '100-copytext') _addClassImg=(appendToDefault ../../_addClassImg-adjust_context "ar__content ") _noDelay=this.dontLazyload ~}}
|
|
13
|
+
{{#if this.isTickerTeaser}}</a>
|
|
14
|
+
{{else}}
|
|
15
|
+
{{~> components/base/image/responsive_image this.content.teaserImage _type=(if this.teaserType this.teaserType 'story') _variant=(if this.content.imageVariant this.content.imageVariant '100-copytext') _addClassImg=(appendToDefault ../../_addClassImg-adjust_context "ar__content ") _noDelay=this.dontLazyload ~}}
|
|
16
|
+
{{/if}}
|
|
17
|
+
{{/with}}
|
|
18
|
+
|
|
19
|
+
{{#with this}}
|
|
20
|
+
{{> components/mediaplayer/mediaplayer_button _isLivestream=_isLivestream _icon=_mediaButtonIcon _label=_mediaButtonLabel _teaserSize=_teaserSize _teaserType=_teaserType _isMobile1to1=_isMobile1to1}}
|
|
21
|
+
{{/with}}
|
|
22
|
+
</div>
|
|
23
|
+
{{/if}}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
{{> components/content/copytext/components/podcastepisode }}
|
|
44
44
|
{{/if~}}
|
|
45
45
|
{{~#if this.isVideo}}
|
|
46
|
-
{{> components/content/copytext/components/video }}
|
|
46
|
+
{{> components/content/copytext/components/video/video }}
|
|
47
47
|
{{/if~}}
|
|
48
48
|
{{~#if this.isLivestream}}
|
|
49
49
|
{{> components/content/copytext/components/livestream }}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
class='sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-5.5 font-heading{{#if _css}} {{_css}}{{/if}}
|
|
3
3
|
{{inline-switch
|
|
4
4
|
_type
|
|
5
|
-
'["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog","podcast","kurzmeldung","location","topic"]'
|
|
6
|
-
'["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelMedia","bg-labelKurzmeldung","bg-labelEvent","bg-labelComment"]'
|
|
5
|
+
'["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog","podcast","kurzmeldung","location","topic","video"]'
|
|
6
|
+
'["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelMedia","bg-labelKurzmeldung","bg-labelEvent","bg-labelComment","bg-labelMedia"]'
|
|
7
7
|
}}'
|
|
8
8
|
>
|
|
9
9
|
{{_text}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{{!--@
|
|
2
|
+
Creates a text element that is only relevant for screenreaders. It will not be visible at all.
|
|
3
|
+
|
|
4
|
+
```hbs
|
|
5
|
+
{{> base/a11y/hiddenText
|
|
6
|
+
_text="..."
|
|
7
|
+
_locaTag="..."
|
|
8
|
+
}}
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`_text` The text for the screen reader.<br>
|
|
12
|
+
`_locaTag` The loca tag for the text for the screen reader.<br>
|
|
13
|
+
|
|
14
|
+
--}}
|
|
15
|
+
<span aria-label="
|
|
16
|
+
{{~#if _text ~}}
|
|
17
|
+
{{~_text~}}
|
|
18
|
+
{{~else~}}
|
|
19
|
+
{{~#with _locaTag ~}}
|
|
20
|
+
{{~loca this ~}}
|
|
21
|
+
{{~/with~}}
|
|
22
|
+
{{~/if~}}
|
|
23
|
+
"></span>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<figure class="relative ar-16-9 my-6 sm480:my-7 {{_addClass}}" x-data="{ avStart: false }">
|
|
2
|
+
{{~> components/base/a11y/hiddenText _locaTag=_a11yIntro-loca ~}}
|
|
3
|
+
{{#unless _voting-option}}
|
|
4
|
+
<figcaption class="py-3 mx-5 sm:mx-0 sm:py-4 border-t-[3px] border-gray-boulder">
|
|
5
|
+
{{#with this.label}}
|
|
6
|
+
{{#> components/label/label_group}}
|
|
7
|
+
{{> components/label/label _type=this.type _text=(loca this.loca) }}
|
|
8
|
+
{{> components/label/label_byline _css="ml-2"}}
|
|
9
|
+
{{#with ../this}}{{> components/content/copytext/components/media/media_figure_byline}}{{/with~}}
|
|
10
|
+
{{/components/label/label_group}}
|
|
11
|
+
{{/with~}}
|
|
12
|
+
{{#with this.toModel.mediaBacklinkToStoryTeaser}}
|
|
13
|
+
{{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"}}
|
|
14
|
+
{{> components/content/copytext/components/media/media_figure_headline}}
|
|
15
|
+
{{/components/base/link}}
|
|
16
|
+
{{/with}}
|
|
17
|
+
</figcaption>
|
|
18
|
+
{{/unless}}
|
|
19
|
+
{{#if this.isVideo}}
|
|
20
|
+
{{#if _isLead}}
|
|
21
|
+
{{~> components/content/copytext/components/video/video_element _isCopyText=true _teaser=this _isTeaser=true _fullSize=_fullSize _addClassVideo="ar__content" _mediaMetadata=true _noDelay=true ~}}
|
|
22
|
+
{{else}}
|
|
23
|
+
{{~> components/content/copytext/components/video/video_element _isCopyText=true _teaser=this _isTeaser=true _fullSize=_fullSize _addClassVideo="ar__content" _mediaMetadata=true~}}
|
|
24
|
+
{{/if}}
|
|
25
|
+
{{/if}}
|
|
26
|
+
{{#unless _voting-option}}
|
|
27
|
+
{{#with this.teaseritem}}
|
|
28
|
+
{{~> components/content/copytext/components/image/figcaption _cssClassCaption="mx-5 sm:mx-0"~}}
|
|
29
|
+
{{/with}}
|
|
30
|
+
{{/unless}}
|
|
31
|
+
{{~> components/base/a11y/hiddenText _locaTag=_a11yOutro-loca ~}}
|
|
32
|
+
</figure>
|
package/dist/views_static/components/content/copytext/components/media/media_figure_byline.hbs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<span class='text-xs text-inherit font-headingSerif{{#if _css}} {{_css}}{{/if}}'>
|
|
2
|
+
<span class="mx-1">|</span>
|
|
3
|
+
{{~#if this.isAudio}}
|
|
4
|
+
{{~#with this.audioAuthor}}
|
|
5
|
+
{{this}}{{#if ../this.airdateDate }}<span class="mx-1">|</span>{{/if}}
|
|
6
|
+
{{/with}}
|
|
7
|
+
{{~#with this.airdateDate ~}}
|
|
8
|
+
<time datetime="{{this.htmlDate}}">{{this.date}}</time>
|
|
9
|
+
{{~/with~}}
|
|
10
|
+
{{/if}}
|
|
11
|
+
|
|
12
|
+
{{~#if this.isPodcastEpisode}}
|
|
13
|
+
{{~#with this.audioAuthor}}
|
|
14
|
+
{{this}}{{#if ../this.airdateDate }}<span class="mx-1">|</span>{{/if}}
|
|
15
|
+
{{/with}}
|
|
16
|
+
{{~#with this.airdateDate ~}}
|
|
17
|
+
<time datetime="{{this.htmlDate}}">{{this.date}}</time>
|
|
18
|
+
{{~/with~}}
|
|
19
|
+
{{/if}}
|
|
20
|
+
|
|
21
|
+
{{~#if this.isVideo}}
|
|
22
|
+
{{~#with this.copyright}}
|
|
23
|
+
{{this}}{{#if ../this.airdateDate }} <span class="mx-1">|</span>{{/if}}
|
|
24
|
+
{{/with}}
|
|
25
|
+
|
|
26
|
+
{{~#with this.airdateDate ~}}
|
|
27
|
+
{{~#if ../this.airdateWithoutTime ~}}
|
|
28
|
+
<time datetime="{{this.htmlDate}}">{{this.date}}</time>
|
|
29
|
+
{{else}}
|
|
30
|
+
<time datetime="{{this.htmlDateTime}}">{{loca "date_simple_at"
|
|
31
|
+
this.dateSeparatorTime }}</time>
|
|
32
|
+
{{~/if~}}
|
|
33
|
+
{{~/with~}}
|
|
34
|
+
{{/if}}
|
|
35
|
+
</span>
|
package/dist/views_static/components/content/copytext/components/media/media_figure_headline.hbs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<h3 class="mt-1">
|
|
2
|
+
{{> components/base/a11y/ariaLabelText _text=this.content.readMoreScreenreader }}
|
|
3
|
+
<span class="text-lg sm480:text-xl font-headingSerif dark:text-text-dark">
|
|
4
|
+
{{this.content.title}}
|
|
5
|
+
</span>
|
|
6
|
+
{{~#if this.content.isForeignBrand}}
|
|
7
|
+
<span aria-hidden=true class="ml-4">
|
|
8
|
+
[{{this.content.readMore}}
|
|
9
|
+
{{~#if this.hasIcon}}
|
|
10
|
+
{{~> components/base/image/icon _icon=this.iconName _iconmap="icons" _addClass="inline -mt-0.5 ml-1 w-5 h-5 fill-current"~}}
|
|
11
|
+
{{/if~}}]
|
|
12
|
+
</span>
|
|
13
|
+
{{/if~}}
|
|
14
|
+
</h3>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{{#if this.showFullSize.isTrue }}
|
|
2
|
+
{{> components/content/copytext/components/media/media_figure _fullSize=true _addClass="print:hidden clear-both article-full-width sm:article-narrow" _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
3
|
+
{{else}}
|
|
4
|
+
{{> components/content/copytext/components/media/media_figure _fullSize=false _addClass="print:hidden article-full-width sm:article-narrow sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid" _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
5
|
+
{{/if}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{{> components/content/copytext/components/video/video_element_ondemand this.toModel.videoElement
|
|
2
|
+
_isSinglePage=_isSinglePage
|
|
3
|
+
_isCopyText=_isCopyText
|
|
4
|
+
_isTeaser=_isTeaser
|
|
5
|
+
_teaser=_teaser
|
|
6
|
+
_poster=_poster
|
|
7
|
+
_geotag=_geotag
|
|
8
|
+
_hideGeotag=_hideGeotag
|
|
9
|
+
_posterImageVariant=_posterImageVariant
|
|
10
|
+
_posterImageType=_posterImageType
|
|
11
|
+
_noDelay=_noDelay
|
|
12
|
+
_cypressHook="js-video-ondemand"
|
|
13
|
+
_mediaButtonIcon="play_button"
|
|
14
|
+
_mediaButtonLabel="Video" }}
|
|
15
|
+
|
package/dist/views_static/components/content/copytext/components/video/video_element_ondemand.hbs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<div x-show="avStart" x-cloak id="{{this.ardPlayerConfig.playerId}}" class="ar-16-9 h-full {{~#if _addClassImg}} {{_addClassImg}}{{/if}} {{#if _isTeaser}} z-20{{/if}} js-load {{if _cypressHook _cypressHook 'js-media-element'}} js-video-livestream cy-mediaplayer" data-hr-mediaplayer-loader='{{json this.ardPlayerJsonConfig}}'>
|
|
2
|
+
</div>
|
|
3
|
+
{{#if _isTeaser}}
|
|
4
|
+
<div class="relative flex items-center justify-center ar-16-9" x-show="!avStart" >
|
|
5
|
+
{{#unless _hideGeotag}}
|
|
6
|
+
{{~#with _geotag}}
|
|
7
|
+
{{> components/geoTag/geoTag _text=this.[0].title _teaserSize=../_teaserSize _isMobile1to1=../_isMobile1to1}}
|
|
8
|
+
{{/with~}}
|
|
9
|
+
{{/unless}}
|
|
10
|
+
{{#with _teaser}}
|
|
11
|
+
{{#if this.isTickerTeaser}}<a href="{{this.link.url}}" aria-label="Zum Ticker" tabindex="-1"{{#if (isUserConsentNeeded this.link.url)}} class="js-user-consent-needed"{{/if}}>{{/if}}
|
|
12
|
+
{{~> components/base/image/responsive_image this.teaserImage _type=(if this.teaserType this.teaserType 'story') _variant=(if this.content.imageVariant this.content.imageVariant '100-copytext') _addClassImg=(appendToDefault _addClassImg "ar__content ") _noDelay=this.dontLazyload ~}}
|
|
13
|
+
{{#if this.isTickerTeaser}}</a>
|
|
14
|
+
{{else}}
|
|
15
|
+
{{~> components/base/image/responsive_image this.content.teaserImage _type=(if this.teaserType this.teaserType 'story') _variant=(if this.content.imageVariant this.content.imageVariant '100-copytext') _addClassImg=(appendToDefault _addClassImg "ar__content ") _noDelay=this.dontLazyload ~}}
|
|
16
|
+
{{/if}}
|
|
17
|
+
{{/with}}
|
|
18
|
+
|
|
19
|
+
{{#with this}}
|
|
20
|
+
{{> components/mediaplayer/mediaplayer_button _isLivestream=_isLivestream _icon=_mediaButtonIcon _label=_mediaButtonLabel _teaserSize=_teaserSize _teaserType=_teaserType _isMobile1to1=_isMobile1to1}}
|
|
21
|
+
{{/with}}
|
|
22
|
+
</div>
|
|
23
|
+
{{/if}}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
{{> components/content/copytext/components/podcastepisode }}
|
|
44
44
|
{{/if~}}
|
|
45
45
|
{{~#if this.isVideo}}
|
|
46
|
-
{{> components/content/copytext/components/video }}
|
|
46
|
+
{{> components/content/copytext/components/video/video }}
|
|
47
47
|
{{/if~}}
|
|
48
48
|
{{~#if this.isLivestream}}
|
|
49
49
|
{{> components/content/copytext/components/livestream }}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
class='sb-label rounded px-1.5 pt-px inline-block tracking-wide text-white text-base leading-5.5 font-heading{{#if _css}} {{_css}}{{/if}}
|
|
3
3
|
{{inline-switch
|
|
4
4
|
_type
|
|
5
|
-
'["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog","podcast","kurzmeldung","location","topic"]'
|
|
6
|
-
'["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelMedia","bg-labelKurzmeldung","bg-labelEvent","bg-labelComment"]'
|
|
5
|
+
'["media","event","breakingnews","comment","analysis","der-tag-in-hessen","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog","podcast","kurzmeldung","location","topic","video"]'
|
|
6
|
+
'["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelComment","bg-labelInfografik","bg-labelInfografik","bg-labelProgram","bg-labelDownload","bg-labelPm","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelLive","bg-labelMedia","bg-labelKurzmeldung","bg-labelEvent","bg-labelComment","bg-labelMedia"]'
|
|
7
7
|
}}'
|
|
8
8
|
>
|
|
9
9
|
{{_text}}
|
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.70.
|
|
9
|
+
"version": "1.70.1",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -160,6 +160,8 @@
|
|
|
160
160
|
"ext_service_datapolicy_no_js_text": "An dieser Stelle befindet sich ein von unserer Redaktion empfohlener Inhalt von <b>{0}</b>. Da Sie in Ihrem Browser Javascript deaktiviert haben, kann dieser hier nicht angezeigt werden. Der nachfolgende Link öffnet den Inhalt auf der Seite des Anbieters.",
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
|
-
"story_infobox_outro_sr": "Ende der weiteren Informationen"
|
|
163
|
+
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags"
|
|
164
166
|
|
|
165
167
|
}
|
|
@@ -161,6 +161,8 @@
|
|
|
161
161
|
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
|
|
162
162
|
"story_infobox_intro_sr": "Weitere Informationen",
|
|
163
163
|
"story_infobox_outro_sr": "Ende der weiteren Informationen",
|
|
164
|
+
"story_video_intro_sr": "Videobeitrag",
|
|
165
|
+
"story_video_outro_sr": "Ende des Videobeitrags",
|
|
164
166
|
"header_homepage_link_title": "Startseite hessenschau . d e",
|
|
165
167
|
"meta_application_name": "hessenschau.de"
|
|
166
168
|
}
|