hr-design-system-handlebars 1.114.69 → 1.114.71
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 +26 -0
- package/build/handlebars/helpers/handlebar-helpers.js +1 -0
- package/dist/assets/brand/hessenschau/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr1/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/hr2/conf/locatags.merged.json +5 -2
- package/dist/assets/brand/hr3/conf/locatags.merged.json +5 -2
- package/dist/assets/brand/hr4/conf/locatags.merged.json +3 -0
- package/dist/assets/brand/you-fm/conf/locatags.merged.json +3 -0
- package/dist/assets/index.css +100 -11
- package/dist/assets/js/alpine.js +1 -0
- package/dist/assets/js/components/content/copytext/components/gallery/js/gallerySlider.alpine.js +49 -0
- package/dist/views/components/button/utilities/button_variation_classes.hbs +2 -2
- package/dist/views/components/content/copytext/components/gallery/gallery.hbs +3 -0
- package/dist/views/components/content/copytext/components/gallery/galleryitem_copytext.hbs +22 -0
- package/dist/views/components/content/copytext/components/gallery/galleryitem_description_copytext.hbs +18 -0
- package/dist/views/components/content/copytext/components/gallery/galleryitem_figure.hbs +35 -0
- package/dist/views/components/content/copytext/components/image/caption.hbs +1 -1
- package/dist/views/components/content/copytext/components/image/image_caption_text.hbs +1 -1
- package/dist/views/components/content/copytext/components/media/media_figure.hbs +28 -23
- package/dist/views/components/content/copytext/components/video/video.hbs +2 -2
- package/dist/views/components/content/copytext/components/videolivestream.hbs +2 -2
- package/dist/views/components/content/copytext/copytext_body.hbs +1 -1
- package/dist/views/components/label/label.hbs +2 -2
- package/dist/views/components/mediaplayer/mediaPlayer_stickyWrapper.hbs +8 -7
- package/dist/views/components/page/story/story_article.hbs +2 -2
- package/dist/views_static/components/button/utilities/button_variation_classes.hbs +2 -2
- package/dist/views_static/components/content/copytext/components/gallery/gallery.hbs +3 -0
- package/dist/views_static/components/content/copytext/components/gallery/galleryitem_copytext.hbs +22 -0
- package/dist/views_static/components/content/copytext/components/gallery/galleryitem_description_copytext.hbs +18 -0
- package/dist/views_static/components/content/copytext/components/gallery/galleryitem_figure.hbs +35 -0
- package/dist/views_static/components/content/copytext/components/image/caption.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/image/image_caption_text.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/media/media_figure.hbs +28 -23
- package/dist/views_static/components/content/copytext/components/video/video.hbs +2 -2
- package/dist/views_static/components/content/copytext/components/videolivestream.hbs +2 -2
- package/dist/views_static/components/content/copytext/copytext_body.hbs +1 -1
- package/dist/views_static/components/label/label.hbs +2 -2
- package/dist/views_static/components/mediaplayer/mediaPlayer_stickyWrapper.hbs +8 -7
- package/dist/views_static/components/page/story/story_article.hbs +2 -2
- package/package.json +1 -1
- package/src/assets/brand/_default/conf/locatags.json +3 -0
- package/src/assets/brand/hessenschau/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-bigband/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr-werbung/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr1/conf/locatags.merged.json +3 -0
- package/src/assets/brand/hr2/conf/locatags.merged.json +5 -2
- package/src/assets/brand/hr3/conf/locatags.merged.json +5 -2
- package/src/assets/brand/hr4/conf/locatags.merged.json +3 -0
- package/src/assets/brand/you-fm/conf/locatags.merged.json +3 -0
- package/src/assets/fixtures/content/copytext/copytext_gallery.json +142 -0
- package/src/assets/fixtures/content/copytext/copytext_gallery_portrait.json +102 -0
- package/src/assets/fixtures/page/story/story_images.inc.json +54 -1
- package/src/assets/images/dach-uni-marburg-101_v-Xto9.jpg +0 -0
- package/src/assets/images/dach-uni-marburg-101_v-Xto9__medium.jpg +0 -0
- package/src/assets/images/dach-uni-marburg-101_v-Xto9__retina.jpg +0 -0
- package/src/assets/images/dach-uni-marburg-101_v-Xto9__small.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-102_v-Xto9.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-102_v-Xto9__medium.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-102_v-Xto9__retina.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-102_v-Xto9__small.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-104_v-Xto9.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-104_v-Xto9__medium.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-104_v-Xto9__retina.jpg +0 -0
- package/src/assets/images/decke-uni-marburg-104_v-Xto9__small.jpg +0 -0
- package/src/assets/js/alpine.js +1 -0
- package/src/assets/tailwind.css +2 -0
- package/src/stories/views/components/button/utilities/button_variation_classes.hbs +2 -2
- package/src/stories/views/components/content/copytext/components/gallery/gallery.hbs +3 -0
- package/src/stories/views/components/content/copytext/components/gallery/galleryitem_copytext.hbs +22 -0
- package/src/stories/views/components/content/copytext/components/gallery/galleryitem_description_copytext.hbs +18 -0
- package/src/stories/views/components/content/copytext/components/gallery/galleryitem_figure.hbs +35 -0
- package/src/stories/views/components/content/copytext/components/gallery/js/gallerySlider.alpine.js +49 -0
- package/src/stories/views/components/content/copytext/components/image/caption.hbs +1 -1
- package/src/stories/views/components/content/copytext/components/image/image_caption_text.hbs +1 -1
- package/src/stories/views/components/content/copytext/components/media/media_figure.hbs +28 -23
- package/src/stories/views/components/content/copytext/components/video/video.hbs +2 -2
- package/src/stories/views/components/content/copytext/components/videolivestream.hbs +2 -2
- package/src/stories/views/components/content/copytext/copytext.stories.js +14 -0
- package/src/stories/views/components/content/copytext/copytext_body.hbs +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_gallery.json +1 -0
- package/src/stories/views/components/content/copytext/fixtures/copytext_gallery_portrait.json +1 -0
- package/src/stories/views/components/label/label.hbs +2 -2
- package/src/stories/views/components/mediaplayer/mediaPlayer_stickyWrapper.hbs +8 -7
- package/src/stories/views/components/page/index/page.data.js +1 -1
- package/src/stories/views/components/page/story/story_article.hbs +2 -2
- package/tailwind.config.js +2 -0
- package/dist/views/components/content/copytext/components/gallery.hbs +0 -7
- package/dist/views_static/components/content/copytext/components/gallery.hbs +0 -7
- package/src/stories/views/components/content/copytext/components/gallery.hbs +0 -7
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<figcaption class="gallery-slider__caption">
|
|
2
|
+
{{~#> components/content/copytext/components/image/caption _isFullTextVisible=true _cssClassCaption=_cssClassCaption~}}
|
|
3
|
+
<span class="block font-bold">{{loca "gallery_image_number"}} {{this.number}}/{{this.totalNumber}} {{~#with this.title}} <span class="mx-1.5">|</span>{{this}}{{/with~}}</span>
|
|
4
|
+
{{#if this.caption}} {{~> components/content/copytext/components/image/image_caption_text~}} {{/if}}
|
|
5
|
+
{{~> components/content/copytext/components/image/image_copyright~}}
|
|
6
|
+
<span class="mx-1.5">|</span>
|
|
7
|
+
{{~#with _mediaBacklinkToStoryTeaser-adjust_context~}}
|
|
8
|
+
{{~#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"~}}
|
|
9
|
+
<span>
|
|
10
|
+
{{~this.readMore~}}
|
|
11
|
+
{{~#if this.hasIcon}}
|
|
12
|
+
{{~> components/base/image/icon _icon=this.iconName _iconmap="icons" _addClass="inline -mt-0.5 ml-1 w-5 h-5 fill-current"~}}
|
|
13
|
+
{{~/if~}}
|
|
14
|
+
</span>
|
|
15
|
+
{{~/components/base/link~}}
|
|
16
|
+
{{~/with~}}
|
|
17
|
+
{{~/components/content/copytext/components/image/caption~}}
|
|
18
|
+
</figcaption>
|
package/src/stories/views/components/content/copytext/components/gallery/galleryitem_figure.hbs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<figure {{#unless @first}} x-cloak {{/unless}}>
|
|
2
|
+
<div class="relative ar-16-9 gallery-slider__image animate-duration-500 animate-delay-100 animate-once animate-ease-in-out"
|
|
3
|
+
:class="animationEnabled ? (slideToRight ? 'animate-fade-left' : 'animate-fade-right') : ''"
|
|
4
|
+
{{!-- x-transition:enter="transition ease-out duration-700 delay-75"
|
|
5
|
+
x-transition:enter-start="opacity-0 transform scale-90"
|
|
6
|
+
x-transition:enter-end="opacity-100 transform scale-100" --}}>
|
|
7
|
+
{{~#if this.displayOriginal.isTrue ~}}
|
|
8
|
+
<div class="relative" aria-hidden="true">
|
|
9
|
+
{{> components/base/image/responsive_image
|
|
10
|
+
_type="gallery"
|
|
11
|
+
_variant="default"
|
|
12
|
+
_addClass="ar-16-9"
|
|
13
|
+
_noDelay=(if @first true '')
|
|
14
|
+
_isWebview=true}}
|
|
15
|
+
<div class="absolute top-0 bottom-0 left-0 right-0 w-full bg-white/80 backdrop-blur-md">
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
{{> components/base/image/responsive_image
|
|
19
|
+
_type="gallery"
|
|
20
|
+
_variant="portrait"
|
|
21
|
+
_addClass="absolute top-0 left-0 right-0 bottom-0"
|
|
22
|
+
_addClassImg="!w-auto h-full absolute left-1/2 -translate-x-1/2"
|
|
23
|
+
_noDelay=(if @first true '')
|
|
24
|
+
_isWebview=true}}
|
|
25
|
+
{{else}}
|
|
26
|
+
{{> components/base/image/responsive_image
|
|
27
|
+
_type="gallery"
|
|
28
|
+
_variant="default"
|
|
29
|
+
_addClass="ar-16-9"
|
|
30
|
+
_noDelay=(if @first true '')
|
|
31
|
+
_isWebview=true}}
|
|
32
|
+
{{~/if~}}
|
|
33
|
+
</div>
|
|
34
|
+
{{~> components/content/copytext/components/gallery/galleryitem_description_copytext _mediaBacklinkToStoryTeaser=_mediaBacklinkToStoryTeaser _cssClassCaption=_cssClassCaption~}}
|
|
35
|
+
</figure>
|
package/src/stories/views/components/content/copytext/components/gallery/js/gallerySlider.alpine.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export default function gallerySlider() {
|
|
2
|
+
return {
|
|
3
|
+
slides: [],
|
|
4
|
+
captions: [],
|
|
5
|
+
currentSlideIndex: 1,
|
|
6
|
+
animationEnabled: false,
|
|
7
|
+
slideToRight: true,
|
|
8
|
+
touchStartX: null,
|
|
9
|
+
touchEndX: null,
|
|
10
|
+
swipeThreshold: 50,
|
|
11
|
+
previous() {
|
|
12
|
+
this.animationEnabled = true;
|
|
13
|
+
this.slideToRight = false;
|
|
14
|
+
this.currentSlideIndex = (this.currentSlideIndex - 1 > 0) ? this.currentSlideIndex - 1 : this.slides.length;
|
|
15
|
+
},
|
|
16
|
+
next() {
|
|
17
|
+
if (this.slides.length > 0) {
|
|
18
|
+
this.animationEnabled = true;
|
|
19
|
+
this.slideToRight = true;
|
|
20
|
+
this.currentSlideIndex = (this.currentSlideIndex % this.slides.length) + 1;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
loadSlider() {
|
|
24
|
+
this.slides = [...document.querySelectorAll('.gallery-slider__image')];
|
|
25
|
+
this.slides.forEach((slide, index) => slide.setAttribute('x-show', `currentSlideIndex === ${index + 1}`));
|
|
26
|
+
this.captions = [...document.querySelectorAll('.gallery-slider__caption')];
|
|
27
|
+
this.captions.forEach((caption, index) => caption.setAttribute('x-show', `currentSlideIndex === ${index + 1}`));
|
|
28
|
+
},
|
|
29
|
+
handleTouchStart(event) {
|
|
30
|
+
this.touchStartX = event.touches[0].clientX
|
|
31
|
+
},
|
|
32
|
+
handleTouchMove(event) {
|
|
33
|
+
this.touchEndX = event.touches[0].clientX
|
|
34
|
+
},
|
|
35
|
+
handleTouchEnd() {
|
|
36
|
+
if(this.touchEndX){
|
|
37
|
+
if (this.touchStartX - this.touchEndX > this.swipeThreshold) {
|
|
38
|
+
this.next()
|
|
39
|
+
}
|
|
40
|
+
if (this.touchStartX - this.touchEndX < -this.swipeThreshold) {
|
|
41
|
+
this.previous()
|
|
42
|
+
}
|
|
43
|
+
this.touchStartX = null
|
|
44
|
+
this.touchEndX = null
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<figcaption class="flex items-start mt-3 text-xs sm480:text-sm font-headingSerif {{_cssClassCaption}}">
|
|
2
|
-
<div class="dark:text-text-dark overflow-anywhere hyphens-auto line-clamp-2">
|
|
2
|
+
<div class="dark:text-text-dark{{#unless _isFullTextVisible}} overflow-anywhere hyphens-auto line-clamp-2{{/unless}}">
|
|
3
3
|
{{> @partial-block }}
|
|
4
4
|
</div>
|
|
5
5
|
</figcaption>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
{{~> components/content/copytext/components/media/media_figure_byline this}}
|
|
12
12
|
{{/components/label/label_group}}
|
|
13
13
|
{{/if~}}
|
|
14
|
-
{{#if
|
|
14
|
+
{{#if _hasHeadline}}
|
|
15
15
|
{{#with this.toModel.mediaBacklinkToStoryTeaser}}
|
|
16
16
|
{{#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark ds-link block"}}
|
|
17
17
|
{{> components/content/copytext/components/media/media_figure_headline}}
|
|
@@ -52,30 +52,35 @@
|
|
|
52
52
|
{{/if}}
|
|
53
53
|
{{/with}}
|
|
54
54
|
{{/if}}
|
|
55
|
+
{{#if this.isGallery}}
|
|
56
|
+
{{~> components/content/copytext/components/gallery/galleryitem_copytext _cssClassCaption=_cssClassCaption ~}}
|
|
57
|
+
{{/if}}
|
|
55
58
|
{{#unless _voting-option}}
|
|
56
|
-
{{#
|
|
57
|
-
{{#if this.
|
|
58
|
-
{{
|
|
59
|
-
{{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
{{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
{{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
{{
|
|
74
|
-
{{
|
|
75
|
-
|
|
76
|
-
|
|
59
|
+
{{#unless this.isGallery}}
|
|
60
|
+
{{#if this.teaseritem}}
|
|
61
|
+
{{#if this.isAudio}}
|
|
62
|
+
{{~#> components/content/copytext/components/image/caption this.teaseritem _cssClassCaption=_cssClassCaption~}}
|
|
63
|
+
{{~> components/content/copytext/components/image/image_copyright~}}
|
|
64
|
+
<span class="mx-1.5">|</span>
|
|
65
|
+
{{~#with ../this.toModel.mediaBacklinkToStoryTeaser-adjust_context~}}
|
|
66
|
+
{{~#>components/base/link _link=this.link _css="hover:underline hover:!decoration-1 text-link dark:text-link-dark"~}}
|
|
67
|
+
<span>
|
|
68
|
+
{{~this.readMore~}}
|
|
69
|
+
{{~#if this.hasIcon}}
|
|
70
|
+
{{~> components/base/image/icon _icon=this.iconName _iconmap="icons" _addClass="inline -mt-0.5 ml-1 w-5 h-5 fill-current"~}}
|
|
71
|
+
{{~/if~}}
|
|
72
|
+
</span>
|
|
73
|
+
{{~/components/base/link~}}
|
|
74
|
+
{{~/with~}}
|
|
75
|
+
{{~/components/content/copytext/components/image/caption~}}
|
|
76
|
+
{{else}}
|
|
77
|
+
{{~#> components/content/copytext/components/image/collapsible_caption this.teaseritem _cssClassCaption=_cssClassCaption~}}
|
|
78
|
+
{{#if this.caption}} {{~> components/content/copytext/components/image/image_caption_text~}} {{/if}}
|
|
79
|
+
{{~> components/content/copytext/components/image/image_copyright~}}
|
|
80
|
+
{{~/components/content/copytext/components/image/collapsible_caption~}}
|
|
81
|
+
{{/if}}
|
|
77
82
|
{{/if}}
|
|
78
|
-
{{/
|
|
83
|
+
{{/unless}}
|
|
79
84
|
{{/unless}}
|
|
80
85
|
{{~> components/base/a11y/hiddenText _locaTag=_a11yOutro-loca ~}}
|
|
81
86
|
</figure>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{#if this.showFullSize.isTrue }}
|
|
2
|
-
{{> components/content/copytext/components/media/media_figure _playerLocation="Copytext" _isFullsize=true _playerSize="100" _addClass="print:hidden clear-both article-full-width mt-12 mb-8 [&+h2]:mt-4 [&+.hrds-copytext-teaser-half]:mt-4 sm:[&+.hrds-copytext-teaser-half]:mt-0 sm:article-narrow sm:my-14" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
2
|
+
{{> components/content/copytext/components/media/media_figure _hasHeadline=true _playerLocation="Copytext" _isFullsize=true _playerSize="100" _addClass="print:hidden clear-both article-full-width mt-12 mb-8 [&+h2]:mt-4 [&+.hrds-copytext-teaser-half]:mt-4 sm:[&+.hrds-copytext-teaser-half]:mt-0 sm:article-narrow sm:my-14" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
3
3
|
{{else}}
|
|
4
|
-
{{> components/content/copytext/components/media/media_figure _playerLocation="Copytext" _isFullsize=false _playerSize="50" _addClass="hrds-copytext-teaser-half print:hidden article-full-width sm:article-narrow mt-12 mb-8 sm:my-7 sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
4
|
+
{{> components/content/copytext/components/media/media_figure _hasHeadline=true _playerLocation="Copytext" _isFullsize=false _playerSize="50" _addClass="hrds-copytext-teaser-half print:hidden article-full-width sm:article-narrow mt-12 mb-8 sm:my-7 sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
5
5
|
{{/if}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{#if this.showFullSize.isTrue }}
|
|
2
|
-
{{> components/content/copytext/components/media/media_figure _isFullsize=true _playerLocation="Copytext" _playerSize="100" _addClass="print:hidden clear-both article-full-width mt-12 mb-8 [&+h2]:mt-4 [&+.hrds-copytext-teaser-half]:mt-4 sm:[&+.hrds-copytext-teaser-half]:mt-0 sm:article-narrow sm:my-14" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_livestream_intro_sr" _a11yOutro-loca="story_video_livestream_outro_sr" }}
|
|
2
|
+
{{> components/content/copytext/components/media/media_figure _hasHeadline=true _isFullsize=true _playerLocation="Copytext" _playerSize="100" _addClass="print:hidden clear-both article-full-width mt-12 mb-8 [&+h2]:mt-4 [&+.hrds-copytext-teaser-half]:mt-4 sm:[&+.hrds-copytext-teaser-half]:mt-0 sm:article-narrow sm:my-14" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_livestream_intro_sr" _a11yOutro-loca="story_video_livestream_outro_sr" }}
|
|
3
3
|
{{else}}
|
|
4
|
-
{{> components/content/copytext/components/media/media_figure _isFullsize=false _playerLocation="Copytext" _playerSize="50" _addClass="hrds-copytext-teaser-half print:hidden article-full-width sm:article-narrow mt-12 mb-8 sm:my-7 sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_livestream_intro_sr" _a11yOutro-loca="story_video_livestream_outro_sr" }}
|
|
4
|
+
{{> components/content/copytext/components/media/media_figure _hasHeadline=true _isFullsize=false _playerLocation="Copytext" _playerSize="50" _addClass="hrds-copytext-teaser-half print:hidden article-full-width sm:article-narrow mt-12 mb-8 sm:my-7 sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid" _cssClassCaption=(if _isTickerCopytext "" "mx-5 sm:mx-0" ) _a11yIntro-loca="story_video_livestream_intro_sr" _a11yOutro-loca="story_video_livestream_outro_sr" }}
|
|
5
5
|
{{/if}}
|
|
@@ -17,6 +17,8 @@ import copytext_video_json from './fixtures/copytext_video.json'
|
|
|
17
17
|
import copytext_audio_json from './fixtures/copytext_audio.json'
|
|
18
18
|
import copytext_audio_event_stream_json from './fixtures/copytext_audio_livestream.json'
|
|
19
19
|
import copytext_livestream_json from './fixtures/copytext_livestream.json'
|
|
20
|
+
import copytext_gallery_json from './fixtures/copytext_gallery.json'
|
|
21
|
+
import copytext_gallery_portrait_json from './fixtures/copytext_gallery_portrait.json'
|
|
20
22
|
|
|
21
23
|
const Template = ({ ...args }) => {
|
|
22
24
|
return copytext({ ...args })
|
|
@@ -139,6 +141,18 @@ export const WithAudioEventStream = {
|
|
|
139
141
|
args: copytext_audio_event_stream_json,
|
|
140
142
|
}
|
|
141
143
|
|
|
144
|
+
export const WithGallery = {
|
|
145
|
+
render: Template.bind({}),
|
|
146
|
+
name: 'Bildergalerie',
|
|
147
|
+
args: copytext_gallery_json,
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export const WithGalleryPortrait = {
|
|
151
|
+
render: Template.bind({}),
|
|
152
|
+
name: 'Bildergalerie mit Hochkantbildern',
|
|
153
|
+
args: copytext_gallery_portrait_json,
|
|
154
|
+
}
|
|
155
|
+
|
|
142
156
|
export const SnapshotWithMedia = {
|
|
143
157
|
render: Template.bind({}),
|
|
144
158
|
name: 'Snapshot 1',
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{{~> components/content/copytext/components/accordion/accordion ~}}
|
|
14
14
|
{{/if~}}
|
|
15
15
|
{{~#if this.isGallery}}
|
|
16
|
-
{{> components/content/copytext/components/gallery }}
|
|
16
|
+
{{> components/content/copytext/components/gallery/gallery _isTickerCopytext=../_isTickerCopytext }}
|
|
17
17
|
{{/if~}}
|
|
18
18
|
{{~#if this.isFileDownload}}
|
|
19
19
|
{{> components/content/copytext/components/filedownload }}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"copytextParagraph":[{"isHeadline":true,"text":"Copytext mit Bildergalerie"},{"isParagraph":true,"text":{"split":[{"isText":true,"text":"Lorem ipsum <em>dolor sit amet</em>, consetetur sadipscing elitr, sed diam nonumy eirmod <strong>tempor invidunt</strong> ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata <i>sanctus est Lorem ipsum</i> dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut <a href='#' class='hrds-copytext__link'>labore et dolore</a> magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod."}]}},{"paragraphBoxItem":{"isGallery":true,"toModel":{"galleryPage":{"isGallery":true,"label":{"type":"gallery","loca":"label_gallery","byline":{"bylineText":"5 Bilder"}},"toModel":{"mediaBacklinkToStoryTeaser":{"link":{"url":"/galleryseite","isTargetBlank":false},"readMoreScreenreader":"zur hr3.de Bildergalerie","title":"Bildergalerie title","isForeignBrand":true,"readMore":"zur hr3.de Bildergalerie-Einzelseite","hasIcon":true,"iconName":"extern"}},"gallery":{"items":[{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":false},"number":"1","totalNumber":"5","title":"title","caption":"Jugendfeuerwehr","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/jugendfeuerwehr-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/jugendfeuerwehr-102_v-16to9__small.jpg 320w, images/jugendfeuerwehr-102_v-16to9__medium.jpg 480w, images/jugendfeuerwehr-102_v-16to9__medium__extended.jpg 640w, images/jugendfeuerwehr-102_v-16to9.jpg 960w, images/jugendfeuerwehr-102_v-16to9__retina.jpg 1920w"}]}},{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":false},"number":"2","totalNumber":"5","title":"title","caption":"buchmesse","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","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"}]}},{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":false},"number":"3","totalNumber":"5","title":"title","caption":"connichi","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/connichi-106_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/connichi-106_v-16to9__small.jpg 320w, images/connichi-106_v-16to9__medium.jpg 480w, images/connichi-106_v-16to9__medium__extended.jpg 640w, images/connichi-106_v-16to9.jpg 960w, images/connichi-106_v-16to9__retina.jpg 1920w"}]}},{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":false},"number":"4","totalNumber":"5","title":"title","caption":"emmanuel-tjeknavorian","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/emmanuel-tjeknavorian-108_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/emmanuel-tjeknavorian-108_v-16to9__small.jpg 320w, images/emmanuel-tjeknavorian-108_v-16to9__medium.jpg 480w, images/emmanuel-tjeknavorian-108_v-16to9__medium__extended.jpg 640w, images/emmanuel-tjeknavorian-108_v-16to9.jpg 960w, images/emmanuel-tjeknavorian-108_v-16to9__retina.jpg 1920w"}]}},{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":false},"number":"5","totalNumber":"5","title":"title","caption":"greenteams-grafik","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/greenteams-grafik-100_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/greenteams-grafik-100_v-16to9__small.jpg 320w, images/greenteams-grafik-100_v-16to9__medium.jpg 480w, images/greenteams-grafik-100_v-16to9__medium__extended.jpg 640w, images/greenteams-grafik-100_v-16to9.jpg 960w, images/greenteams-grafik-100_v-16to9__retina.jpg 1920w"}]}}]}}}}}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"copytextParagraph":[{"isHeadline":true,"text":"Copytext mit Bildergalerie-Hochkantbildern"},{"isParagraph":true,"text":{"split":[{"isText":true,"text":"Lorem ipsum <em>dolor sit amet</em>, consetetur sadipscing elitr, sed diam nonumy eirmod <strong>tempor invidunt</strong> ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata <i>sanctus est Lorem ipsum</i> dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut <a href='#' class='hrds-copytext__link'>labore et dolore</a> magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod."}]}},{"paragraphBoxItem":{"isGallery":true,"toModel":{"galleryPage":{"isGallery":true,"label":{"type":"gallery","loca":"label_gallery","byline":{"bylineText":"3 Bilder"}},"toModel":{"mediaBacklinkToStoryTeaser":{"link":{"url":"/galleryseite","isTargetBlank":false},"readMoreScreenreader":"zur hr3.de Bildergalerie","title":"Bildergalerie title","isForeignBrand":true,"readMore":"zur hr3.de Bildergalerie-Einzelseite","hasIcon":true,"iconName":"extern"}},"gallery":{"items":[{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":true},"number":"1","totalNumber":"5","title":"title","caption":"decke uni marburg 1","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/decke-uni-marburg-104_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/decke-uni-marburg-104_v-Xto9__small.jpg 135w, images/decke-uni-marburg-104_v-Xto9__medium.jpg 203w, images/decke-uni-marburg-104_v-Xto9.jpg 405w, images/decke-uni-marburg-104_v-Xto9__retina.jpg 810w"}]}},{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":true},"number":"2","totalNumber":"5","title":"title","caption":"decke uni marburg 2","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/decke-uni-marburg-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/decke-uni-marburg-102_v-Xto9__small.jpg 135w, images/decke-uni-marburg-102_v-Xto9__medium.jpg 203w, images/decke-uni-marburg-102_v-Xto9.jpg 405w, images/decke-uni-marburg-102_v-Xto9__retina.jpg 810w"}]}},{"isImage":true,"showFullSize":{"isTrue":true},"displayOriginal":{"isTrue":true},"number":"3","totalNumber":"5","title":"title","caption":"decke uni marburg 3","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/dach-uni-marburg-101_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/dach-uni-marburg-101_v-Xto9__small.jpg 135w, images/dach-uni-marburg-101_v-Xto9__medium.jpg 203w, images/dach-uni-marburg-101_v-Xto9.jpg 405w, images/dach-uni-marburg-101_v-Xto9__retina.jpg 810w"}]}}]}}}}}]}
|
|
@@ -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","hessen-am-abend","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog","podcast","kurzmeldung","location","topic","video","audio"]'
|
|
6
|
-
'["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","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","bg-labelMedia"]'
|
|
5
|
+
'["media","event","breakingnews","comment","analysis","der-tag-in-hessen","hessen-am-abend","glosse","fragen-und-antworten","infografik","interaktiv","program","download","pm","liveticker","ticker","livestream","live","livechat","buliticker","social-tv","blog","podcast","kurzmeldung","location","topic","video","audio","gallery"]'
|
|
6
|
+
'["bg-labelMedia","bg-labelEvent","bg-labelBreakingnews","bg-labelComment","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","bg-labelMedia","bg-labelMedia"]'
|
|
7
7
|
}}'
|
|
8
8
|
>
|
|
9
9
|
{{_text}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
<div x-data="stickyPlayer" class="relative ar-16-9
|
|
2
|
+
<div x-data="stickyPlayer" class="relative ar-16-9" x-intersect:leave.threshold.45="inViewport = false" x-intersect:enter.threshold.45="inViewport = true; videoWasStopedWhenSticky = false">
|
|
3
3
|
<div x-ref="videoElementWrapper"
|
|
4
4
|
class="transition-all lg:transition-none right-4"
|
|
5
5
|
:class="{ 'ar-16-9 w-1/2 max-w-70 sm:w-70 fixed z-300 animate-fade-right animate-once animate-duration-1000': shouldVideoBeFixed(),
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
'top-14 md:top-16': $store.navIsVisible,
|
|
8
8
|
'lg:top-31': $store.navIsVisible && !$store.subNavIsVisible,
|
|
9
9
|
'lg:top-40': $store.navIsVisible && $store.subNavIsVisible,
|
|
10
|
-
'top-
|
|
10
|
+
'top-14 lg:top-20': !$store.navIsVisible}">
|
|
11
11
|
{{> @partial-block }}
|
|
12
12
|
<button @click="closeVideo()" class="absolute top-0 right-0 flex items-center justify-center w-12 h-12 z-300 hover:scale-105"
|
|
13
13
|
:class="{'hidden': !shouldVideoBeFixed(),
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
videoStoped: true,
|
|
27
27
|
videoPlaying: false,
|
|
28
28
|
videoWasStopedWhenSticky: false,
|
|
29
|
-
|
|
29
|
+
videoWasClosedByUser: false,
|
|
30
30
|
videoElement: null,
|
|
31
31
|
|
|
32
32
|
shouldVideoBeFixed: function () {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
this.videoPlaying = false;
|
|
47
47
|
this.videoStoped = true;
|
|
48
48
|
if (!this.inViewport ) {
|
|
49
|
-
if(this.
|
|
50
|
-
this.
|
|
49
|
+
if(this.videoWasClosedByUser){
|
|
50
|
+
this.videoWasClosedByUser = false
|
|
51
51
|
} else {
|
|
52
52
|
this.videoWasStopedWhenSticky = true;
|
|
53
53
|
}
|
|
@@ -57,8 +57,9 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
closeVideo: function () {
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
60
|
+
this.videoWasStopedWhenSticky = false;
|
|
61
|
+
this.videoWasClosedByUser = true;
|
|
62
|
+
this.videoElement.pause();
|
|
62
63
|
},
|
|
63
64
|
init: function () {
|
|
64
65
|
this.videoElement = this.$refs.videoElementWrapper.querySelector("video");
|
|
@@ -2,7 +2,7 @@ import structuredClone from 'core-js-pure/actual/structured-clone'
|
|
|
2
2
|
import NavigationData from '../../site_header/fixtures/site_header.json'
|
|
3
3
|
import teaserStandard from '../../teaser/fixtures/teaser_standard.json'
|
|
4
4
|
|
|
5
|
-
import data_story from '../story/fixtures/
|
|
5
|
+
import data_story from '../story/fixtures/story_with_video.json'
|
|
6
6
|
import data_breadcrumb from '../../navigation/breadcrumb/fixtures/breadcrumb.json'
|
|
7
7
|
|
|
8
8
|
const NavigationDataWithTeaser = structuredClone(
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
_noDelay=true}}
|
|
21
21
|
{{/if}}
|
|
22
22
|
{{#if this.isVideoOnDemand}}
|
|
23
|
-
{{> components/content/copytext/components/media/media_figure _playerLocation="Aufmacher" _isFullsize=true _isLead=true _playerSize="100" _addClass="print:hidden article-full-width md:article-breakout mt-12 mb-6 sm:mt-14 sm:mb-8" _cssClassCaption="mx-5 md:mx-0" _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
23
|
+
{{> components/content/copytext/components/media/media_figure _hasHeadline=true _isSticky=true _playerLocation="Aufmacher" _isFullsize=true _isLead=true _playerSize="100" _addClass="print:hidden article-full-width md:article-breakout mt-12 mb-6 sm:mt-14 sm:mb-8" _cssClassCaption="mx-5 md:mx-0" _a11yIntro-loca="story_video_intro_sr" _a11yOutro-loca="story_video_outro_sr" }}
|
|
24
24
|
{{/if}}
|
|
25
25
|
{{#if this.isLivestream}}
|
|
26
|
-
{{> components/content/copytext/components/media/media_figure _playerLocation="Aufmacher" _isFullsize=true _isLead=true _playerSize="100" _addClass="print:hidden article-full-width md:article-breakout mt-12 mb-6 sm:mt-14 sm:mb-8" _cssClassCaption="mx-5 md:mx-0" _a11yIntro-loca="story_video_livestream_intro_sr" _a11yOutro-loca="story_video_livestream_outro_sr" }}
|
|
26
|
+
{{> components/content/copytext/components/media/media_figure _hasHeadline=true _isSticky=true _playerLocation="Aufmacher" _isFullsize=true _isLead=true _playerSize="100" _addClass="print:hidden article-full-width md:article-breakout mt-12 mb-6 sm:mt-14 sm:mb-8" _cssClassCaption="mx-5 md:mx-0" _a11yIntro-loca="story_video_livestream_intro_sr" _a11yOutro-loca="story_video_livestream_outro_sr" }}
|
|
27
27
|
{{/if}}
|
|
28
28
|
{{/with}}
|
|
29
29
|
{{/unless}}
|
package/tailwind.config.js
CHANGED
|
@@ -406,6 +406,8 @@ module.exports = {
|
|
|
406
406
|
'button-inverted--dark': 'var(--color-button-inverted--dark)',
|
|
407
407
|
'button-disabled': 'var(--color-button-disabled)',
|
|
408
408
|
'button-disabled--dark': 'var(--color-button-disabled--dark)',
|
|
409
|
+
'button-transparent': 'var(--color-button-transparent)',
|
|
410
|
+
'button-transparent--dark': 'var(--color-button-transparent--dark)',
|
|
409
411
|
'media-button': 'var(--color-media-button)',
|
|
410
412
|
'media-button-live': 'var(--color-media-button-live)',
|
|
411
413
|
'focus-state': 'var(--color-focus-state)',
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{{~#if (isStorybook)~}}
|
|
2
|
-
<div class="mt-6 italic text-gray-dark">coming soon: Gallery-component</div>
|
|
3
|
-
{{~else~}}
|
|
4
|
-
{{#with this.toModel.galleryPage}}
|
|
5
|
-
{{> modules/media/media_figure _addClass="print:hidden copytext__clearBox dontPrint" _a11yIntro-loca="story_gallery_intro_sr" _a11yOutro-loca="story_gallery_outro_sr" }}
|
|
6
|
-
{{/with}}
|
|
7
|
-
{{~/if~}}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{{~#if (isStorybook)~}}
|
|
2
|
-
<div class="mt-6 italic text-gray-dark">coming soon: Gallery-component</div>
|
|
3
|
-
{{~else~}}
|
|
4
|
-
{{#with this.toModel.galleryPage}}
|
|
5
|
-
{{> modules/media/media_figure _addClass="print:hidden copytext__clearBox dontPrint" _a11yIntro-loca="story_gallery_intro_sr" _a11yOutro-loca="story_gallery_outro_sr" }}
|
|
6
|
-
{{/with}}
|
|
7
|
-
{{~/if~}}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{{~#if (isStorybook)~}}
|
|
2
|
-
<div class="mt-6 italic text-gray-dark">coming soon: Gallery-component</div>
|
|
3
|
-
{{~else~}}
|
|
4
|
-
{{#with this.toModel.galleryPage}}
|
|
5
|
-
{{> modules/media/media_figure _addClass="print:hidden copytext__clearBox dontPrint" _a11yIntro-loca="story_gallery_intro_sr" _a11yOutro-loca="story_gallery_outro_sr" }}
|
|
6
|
-
{{/with}}
|
|
7
|
-
{{~/if~}}
|