hr-design-system-handlebars 0.87.0 → 0.87.2
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/dist/assets/index.css +36 -29
- package/dist/views/components/button/button.hbs +1 -1
- package/dist/views/components/button/button_round.hbs +4 -1
- package/dist/views/components/button/button_round_classes.hbs +24 -0
- package/dist/views/components/mediaplayer/media_player.hbs +4 -9
- package/dist/views/components/teaser/components/teaser_av_consumption.hbs +5 -5
- package/dist/views/components/teaser/components/teaser_lead.hbs +1 -1
- package/dist/views/components/teaser/teaser_alternativ.hbs +1 -1
- package/dist/views/components/teaser/teaser_standard.hbs +2 -2
- package/package.json +1 -1
- package/src/stories/views/components/button/button.hbs +1 -1
- package/src/stories/views/components/button/button_round.hbs +4 -1
- package/src/stories/views/components/button/button_round_classes.hbs +24 -0
- package/src/stories/views/components/mediaplayer/media_player.hbs +4 -9
- package/src/stories/views/components/teaser/components/teaser_av_consumption.hbs +5 -5
- package/src/stories/views/components/teaser/components/teaser_lead.hbs +1 -1
- package/src/stories/views/components/teaser/teaser_alternativ.hbs +1 -1
- package/src/stories/views/components/teaser/teaser_standard.hbs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# v0.87.2 (Wed Nov 23 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- DPE-1875: fixes wrong playbutton-distances [#395](https://github.com/mumprod/hr-design-system-handlebars/pull/395) (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
|
+
|
|
14
|
+
# v0.87.1 (Tue Nov 22 2022)
|
|
15
|
+
|
|
16
|
+
#### 🐛 Bug Fix
|
|
17
|
+
|
|
18
|
+
- change Podcast playbutton to Audio playbutton [#392](https://github.com/mumprod/hr-design-system-handlebars/pull/392) (saad.elbaciri@hr.de [@selbaciri](https://github.com/selbaciri))
|
|
19
|
+
|
|
20
|
+
#### Authors: 2
|
|
21
|
+
|
|
22
|
+
- Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
|
|
23
|
+
- selbaciri (saad.elbaciri@hr.de)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
1
27
|
# v0.87.0 (Tue Nov 22 2022)
|
|
2
28
|
|
|
3
29
|
#### 🚀 Enhancement
|
package/dist/assets/index.css
CHANGED
|
@@ -662,15 +662,15 @@ video {
|
|
|
662
662
|
.right-0 {
|
|
663
663
|
right: 0px;
|
|
664
664
|
}
|
|
665
|
-
.top-0 {
|
|
666
|
-
top: 0px;
|
|
667
|
-
}
|
|
668
665
|
.left-1\/2 {
|
|
669
666
|
left: 50%;
|
|
670
667
|
}
|
|
671
668
|
.top-1\/2 {
|
|
672
669
|
top: 50%;
|
|
673
670
|
}
|
|
671
|
+
.top-0 {
|
|
672
|
+
top: 0px;
|
|
673
|
+
}
|
|
674
674
|
.top-10 {
|
|
675
675
|
top: 2.5rem;
|
|
676
676
|
}
|
|
@@ -739,39 +739,36 @@ video {
|
|
|
739
739
|
.\!m-0 {
|
|
740
740
|
margin: 0px !important;
|
|
741
741
|
}
|
|
742
|
-
.m-5 {
|
|
743
|
-
margin: 1.25rem;
|
|
744
|
-
}
|
|
745
742
|
.m-1\.5 {
|
|
746
743
|
margin: 0.375rem;
|
|
747
744
|
}
|
|
748
745
|
.m-1 {
|
|
749
746
|
margin: 0.25rem;
|
|
750
747
|
}
|
|
748
|
+
.my-2 {
|
|
749
|
+
margin-top: 0.5rem;
|
|
750
|
+
margin-bottom: 0.5rem;
|
|
751
|
+
}
|
|
751
752
|
.mx-2 {
|
|
752
753
|
margin-left: 0.5rem;
|
|
753
754
|
margin-right: 0.5rem;
|
|
754
755
|
}
|
|
755
|
-
.
|
|
756
|
-
margin-
|
|
757
|
-
margin-
|
|
756
|
+
.my-5 {
|
|
757
|
+
margin-top: 1.25rem;
|
|
758
|
+
margin-bottom: 1.25rem;
|
|
758
759
|
}
|
|
759
760
|
.mx-5 {
|
|
760
761
|
margin-left: 1.25rem;
|
|
761
762
|
margin-right: 1.25rem;
|
|
762
763
|
}
|
|
763
|
-
.
|
|
764
|
-
margin-
|
|
765
|
-
margin-
|
|
764
|
+
.mx-0 {
|
|
765
|
+
margin-left: 0px;
|
|
766
|
+
margin-right: 0px;
|
|
766
767
|
}
|
|
767
768
|
.mx-4 {
|
|
768
769
|
margin-left: 1rem;
|
|
769
770
|
margin-right: 1rem;
|
|
770
771
|
}
|
|
771
|
-
.my-2 {
|
|
772
|
-
margin-top: 0.5rem;
|
|
773
|
-
margin-bottom: 0.5rem;
|
|
774
|
-
}
|
|
775
772
|
.mx-8 {
|
|
776
773
|
margin-left: 2rem;
|
|
777
774
|
margin-right: 2rem;
|
|
@@ -2252,7 +2249,7 @@ video {
|
|
|
2252
2249
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
2253
2250
|
}
|
|
2254
2251
|
.counter-reset {
|
|
2255
|
-
counter-reset:
|
|
2252
|
+
counter-reset: cnt1669207976289;
|
|
2256
2253
|
}
|
|
2257
2254
|
.line-clamp-4 {
|
|
2258
2255
|
overflow: hidden;
|
|
@@ -2641,7 +2638,7 @@ video {
|
|
|
2641
2638
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
2642
2639
|
}
|
|
2643
2640
|
.-ordered {
|
|
2644
|
-
counter-increment:
|
|
2641
|
+
counter-increment: cnt1669207976289 1;
|
|
2645
2642
|
}
|
|
2646
2643
|
.-ordered::before {
|
|
2647
2644
|
position: absolute;
|
|
@@ -2657,7 +2654,7 @@ video {
|
|
|
2657
2654
|
letter-spacing: .0125em;
|
|
2658
2655
|
--tw-text-opacity: 1;
|
|
2659
2656
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
2660
|
-
content: counter(
|
|
2657
|
+
content: counter(cnt1669207976289);
|
|
2661
2658
|
}
|
|
2662
2659
|
.\[-T\:\+Z\] {
|
|
2663
2660
|
--t: +Z;
|
|
@@ -3453,6 +3450,26 @@ video {
|
|
|
3453
3450
|
grid-column: span 9 / span 9;
|
|
3454
3451
|
}
|
|
3455
3452
|
|
|
3453
|
+
.md\:my-3 {
|
|
3454
|
+
margin-top: 0.75rem;
|
|
3455
|
+
margin-bottom: 0.75rem;
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
.md\:mx-3 {
|
|
3459
|
+
margin-left: 0.75rem;
|
|
3460
|
+
margin-right: 0.75rem;
|
|
3461
|
+
}
|
|
3462
|
+
|
|
3463
|
+
.md\:my-5 {
|
|
3464
|
+
margin-top: 1.25rem;
|
|
3465
|
+
margin-bottom: 1.25rem;
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
.md\:mx-5 {
|
|
3469
|
+
margin-left: 1.25rem;
|
|
3470
|
+
margin-right: 1.25rem;
|
|
3471
|
+
}
|
|
3472
|
+
|
|
3456
3473
|
.md\:mx-0 {
|
|
3457
3474
|
margin-left: 0px;
|
|
3458
3475
|
margin-right: 0px;
|
|
@@ -3468,16 +3485,6 @@ video {
|
|
|
3468
3485
|
margin-bottom: 1rem;
|
|
3469
3486
|
}
|
|
3470
3487
|
|
|
3471
|
-
.md\:my-3 {
|
|
3472
|
-
margin-top: 0.75rem;
|
|
3473
|
-
margin-bottom: 0.75rem;
|
|
3474
|
-
}
|
|
3475
|
-
|
|
3476
|
-
.md\:mx-3 {
|
|
3477
|
-
margin-left: 0.75rem;
|
|
3478
|
-
margin-right: 0.75rem;
|
|
3479
|
-
}
|
|
3480
|
-
|
|
3481
3488
|
.md\:mt-0 {
|
|
3482
3489
|
margin-top: 0px;
|
|
3483
3490
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{{~#if _isButton}} type="button"{{else}} type="submit"{{/if~}}
|
|
4
4
|
{{~#if _name}} name="{{_name}}"{{/if}}
|
|
5
5
|
{{~#if _title}} title="{{_title}}"{{/if}}
|
|
6
|
-
class="{{_addClass}}{{#if _addClass2}} {{_addClass2}}{{/if}}{{#if _buttonColor}} {{_buttonColor}}{{/if}}{{#if _buttonSpace}} {{
|
|
6
|
+
class="{{_addClass}}{{#if _addClass2}} {{_addClass2}}{{/if}}{{#if _buttonColor}} {{_buttonColor}}{{/if}}{{#if _buttonSpace}} {{> components/button/button_round_classes _teaserSize=_teaserSize _teaserType=_teaserType}}{{/if}}{{#if _webview}} -webview{{/if}}"
|
|
7
7
|
{{~#if _value}} value="{{_value}}"{{/if}}
|
|
8
8
|
{{~#if _alpineClick}} @click="{{_alpineClick}}"{{/if}}
|
|
9
9
|
{{~#if _x-show}} x-show="{{_x-show}}"{{/if}}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{{~#switch _teaserType~}}
|
|
2
|
+
{{~#case 'standard-ds'~}}
|
|
3
|
+
{{~#if _isMobile1to1~}}
|
|
4
|
+
{{~inline-switch
|
|
5
|
+
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2 md:my-5 md:mx-5 "]'
|
|
6
|
+
~}}
|
|
7
|
+
{{~else~}}
|
|
8
|
+
{{~inline-switch
|
|
9
|
+
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-5 mx-5 md:my-3 md:mx-3"," my-5 mx-5"]'
|
|
10
|
+
~}}
|
|
11
|
+
{{~/if~}}
|
|
12
|
+
{{~/case~}}
|
|
13
|
+
{{~#case 'alternative-ds'~}}
|
|
14
|
+
{{~#if _isMobile1to1~}}
|
|
15
|
+
{{~inline-switch
|
|
16
|
+
_teaserSize '["hero","100","50"]' '[" my-2 mx-2 md:my-5 md:mx-5"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
17
|
+
~}}
|
|
18
|
+
{{~else~}}
|
|
19
|
+
{{~inline-switch
|
|
20
|
+
_teaserSize '["hero","100","50"]' '[" my-5 mx-5"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
21
|
+
~}}
|
|
22
|
+
{{~/if~}}
|
|
23
|
+
{{~/case~}}
|
|
24
|
+
{{~/switch~}}
|
|
@@ -24,19 +24,14 @@
|
|
|
24
24
|
_isButton="true"
|
|
25
25
|
_addClass='absolute bottom-0 right-0 fill-white hover:text-white js-mediaplayer__button'
|
|
26
26
|
_buttonColor=(if _isLivestream ' text-orange-spicyCarrot hover:fill-orange-spicyCarrot' ' text-blue-jellyBean hover:fill-blue-jellyBean')
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
_teaserType=_teaserType
|
|
28
|
+
_teaserSize=_teaserSize
|
|
29
|
+
_isMobile1to1=_isMobile1to1
|
|
30
|
+
_showIcon=true
|
|
29
31
|
_icon=_mediaButtonIcon
|
|
30
32
|
_label=_mediaButtonLabel
|
|
31
33
|
_srOnly="true"
|
|
32
34
|
_alpineClick="avStart = !avStart; $dispatch('player_start')"
|
|
33
35
|
}}
|
|
34
|
-
{{~#if this.isPodcast~}}
|
|
35
|
-
<a href="{{this.podcastDownloadUrl}}" class="absolute top-0 right-0 m-5 js-load"{{#with
|
|
36
|
-
this.trackingData}}
|
|
37
|
-
data-hr-click-tracking='{"settings": [{"type": "download", "clickLabel": "{{this.pageName}}", "secondLevelId": "{{this.secondLevelId}}"}, {"type": "uxAction", "clickLabel": "medienDownload::podcast::{{_type}}", "secondLevelId": "{{this.secondLevelId}}" }]}'{{/with}}>
|
|
38
|
-
{{> components/base/image/icon _icon='download-button' _addClass="w-10 h-10"}}
|
|
39
|
-
</a>
|
|
40
|
-
{{~/if~}}
|
|
41
36
|
</div>
|
|
42
37
|
{{/if}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{#with this.teaserLead.avDocument}}
|
|
2
2
|
{{~#if this.isVideo ~}}
|
|
3
3
|
{{#with this.toModel.videoElement}}
|
|
4
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-video-ondemand" _mediaButtonIcon="play_button" _mediaButtonLabel="Video" _isTeaser=true _teaser=../../this _aspectRatio=../../_aspectRatio _teaserSize=../../_teaserSize _isMobile1to1=../../_isMobile1to1 _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
4
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-video-ondemand" _mediaButtonIcon="play_button" _mediaButtonLabel="Video" _isTeaser=true _teaser=../../this _aspectRatio=../../_aspectRatio _teaserSize=../../_teaserSize _isMobile1to1=../../_isMobile1to1 _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
5
5
|
{{#if ../../_isMobile1to1~}}
|
|
6
6
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
7
7
|
{{~/if~}}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{{~/if~}}
|
|
10
10
|
{{~#if this.isAudio ~}}
|
|
11
11
|
{{#with this.toModel.audioElement}}
|
|
12
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="audio_button" _mediaButtonLabel="Audio" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
12
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="audio_button" _mediaButtonLabel="Audio" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
13
13
|
{{#if ../../_isMobile1to1~}}
|
|
14
14
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
15
15
|
{{~/if~}}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{{~/if~}}
|
|
18
18
|
{{~#if this.isPodcast ~}}
|
|
19
19
|
{{#with this.toModel.audioElement}}
|
|
20
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="
|
|
20
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="audio_button" _mediaButtonLabel="Podcast" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
21
21
|
{{#if ../../_isMobile1to1~}}
|
|
22
22
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
23
23
|
{{~/if~}}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{{~/if~}}
|
|
26
26
|
{{~#if this.isAudioEventLivestream ~}}
|
|
27
27
|
{{#with this.toModel.audioLivestreamElement}}
|
|
28
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
28
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
29
29
|
{{#if ../../_isMobile1to1~}}
|
|
30
30
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
31
31
|
{{~/if~}}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{{~/if~}}
|
|
34
34
|
{{~#if this.isLivestream ~}}
|
|
35
35
|
{{#with this.toModel.videoLivestreamElement}}
|
|
36
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
36
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
37
37
|
{{#if ../../_isMobile1to1~}}
|
|
38
38
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
39
39
|
{{~/if~}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{~#if this.allowAVConsumption ~}}
|
|
2
|
-
{{> components/teaser/components/teaser_av_consumption _aspectRatio=_aspectRatio _isMobile1to1=_isMobile1to1 _teaserSize=_teaserSize }}
|
|
2
|
+
{{> components/teaser/components/teaser_av_consumption _aspectRatio=_aspectRatio _isMobile1to1=_isMobile1to1 _teaserSize=_teaserSize _teaserType=_teaserType }}
|
|
3
3
|
{{else}}
|
|
4
4
|
{{> components/teaser/components/teaser_image _isMobile1to1=_isMobile1to1 }}
|
|
5
5
|
{{/if}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{{/if}}
|
|
6
6
|
>
|
|
7
7
|
<figure class="relative {{~inline-switch this.teaserSize '["hero","100","50"]' '[" basis-2/3 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 md:basis-1/3"," ar-1-1 md:ar-16-9 basis-2/5 md:basis-1/2"]'~}}">
|
|
8
|
-
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["hero"]' '["ar-16-9","ar-1-1 md:ar-16-9"]') }}
|
|
8
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(inline-switch this.teaserSize '["hero"]' '["ar-16-9","ar-1-1 md:ar-16-9"]') }}
|
|
9
9
|
</figure>
|
|
10
10
|
{{> components/teaser/components/teaser_body _outerCssClasses=(inline-switch this.teaserSize '["hero","100","50"]' '["basis-1/3"," basis-3/5 md:basis-2/3"," basis-3/5 md:basis-1/2"]') }}
|
|
11
11
|
</article>
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
>
|
|
10
10
|
<figure class="relative
|
|
11
11
|
{{~#if this.isMobile1to1}} basis-2/5 md:flex-full ar-1-1 md:ar-16-9{{else}} ar-16-9{{/if~}}">
|
|
12
|
-
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
12
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
13
13
|
</figure>
|
|
14
14
|
{{#if this.displayTeaserBodyAsImageOverlay}}
|
|
15
15
|
{{#decorator 'components/teaser/components/teaser_image_overlay' _noOverlayInMobileViewports=true _cssClasses=" relative md:absolute w-full bottom-0"}}
|
|
16
|
-
<div class="flex flex-col items-center justify-center p-4 border-
|
|
16
|
+
<div class="flex flex-col items-center justify-center p-4 border-r border-gray-400 border-dashed">
|
|
17
17
|
{{> components/event/instant_dates}}
|
|
18
18
|
</div>
|
|
19
19
|
{{> components/teaser/components/teaser_body _outerCssClasses=(if this.isMobile1to1 'py-4 md:px-4 basis-3/5 md:flex-full' 'py-4 md:px-4')}}
|
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": "0.87.
|
|
9
|
+
"version": "0.87.2",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
{{~#if _isButton}} type="button"{{else}} type="submit"{{/if~}}
|
|
4
4
|
{{~#if _name}} name="{{_name}}"{{/if}}
|
|
5
5
|
{{~#if _title}} title="{{_title}}"{{/if}}
|
|
6
|
-
class="{{_addClass}}{{#if _addClass2}} {{_addClass2}}{{/if}}{{#if _buttonColor}} {{_buttonColor}}{{/if}}{{#if _buttonSpace}} {{
|
|
6
|
+
class="{{_addClass}}{{#if _addClass2}} {{_addClass2}}{{/if}}{{#if _buttonColor}} {{_buttonColor}}{{/if}}{{#if _buttonSpace}} {{> components/button/button_round_classes _teaserSize=_teaserSize _teaserType=_teaserType}}{{/if}}{{#if _webview}} -webview{{/if}}"
|
|
7
7
|
{{~#if _value}} value="{{_value}}"{{/if}}
|
|
8
8
|
{{~#if _alpineClick}} @click="{{_alpineClick}}"{{/if}}
|
|
9
9
|
{{~#if _x-show}} x-show="{{_x-show}}"{{/if}}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{{~#switch _teaserType~}}
|
|
2
|
+
{{~#case 'standard-ds'~}}
|
|
3
|
+
{{~#if _isMobile1to1~}}
|
|
4
|
+
{{~inline-switch
|
|
5
|
+
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2 md:my-5 md:mx-5 "]'
|
|
6
|
+
~}}
|
|
7
|
+
{{~else~}}
|
|
8
|
+
{{~inline-switch
|
|
9
|
+
_teaserSize '["25","33"]' '[" my-2 mx-2"," my-5 mx-5 md:my-3 md:mx-3"," my-5 mx-5"]'
|
|
10
|
+
~}}
|
|
11
|
+
{{~/if~}}
|
|
12
|
+
{{~/case~}}
|
|
13
|
+
{{~#case 'alternative-ds'~}}
|
|
14
|
+
{{~#if _isMobile1to1~}}
|
|
15
|
+
{{~inline-switch
|
|
16
|
+
_teaserSize '["hero","100","50"]' '[" my-2 mx-2 md:my-5 md:mx-5"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
17
|
+
~}}
|
|
18
|
+
{{~else~}}
|
|
19
|
+
{{~inline-switch
|
|
20
|
+
_teaserSize '["hero","100","50"]' '[" my-5 mx-5"," my-2 mx-2 md:my-3 md:mx-3"," my-2 mx-2"]'
|
|
21
|
+
~}}
|
|
22
|
+
{{~/if~}}
|
|
23
|
+
{{~/case~}}
|
|
24
|
+
{{~/switch~}}
|
|
@@ -24,19 +24,14 @@
|
|
|
24
24
|
_isButton="true"
|
|
25
25
|
_addClass='absolute bottom-0 right-0 fill-white hover:text-white js-mediaplayer__button'
|
|
26
26
|
_buttonColor=(if _isLivestream ' text-orange-spicyCarrot hover:fill-orange-spicyCarrot' ' text-blue-jellyBean hover:fill-blue-jellyBean')
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
_teaserType=_teaserType
|
|
28
|
+
_teaserSize=_teaserSize
|
|
29
|
+
_isMobile1to1=_isMobile1to1
|
|
30
|
+
_showIcon=true
|
|
29
31
|
_icon=_mediaButtonIcon
|
|
30
32
|
_label=_mediaButtonLabel
|
|
31
33
|
_srOnly="true"
|
|
32
34
|
_alpineClick="avStart = !avStart; $dispatch('player_start')"
|
|
33
35
|
}}
|
|
34
|
-
{{~#if this.isPodcast~}}
|
|
35
|
-
<a href="{{this.podcastDownloadUrl}}" class="absolute top-0 right-0 m-5 js-load"{{#with
|
|
36
|
-
this.trackingData}}
|
|
37
|
-
data-hr-click-tracking='{"settings": [{"type": "download", "clickLabel": "{{this.pageName}}", "secondLevelId": "{{this.secondLevelId}}"}, {"type": "uxAction", "clickLabel": "medienDownload::podcast::{{_type}}", "secondLevelId": "{{this.secondLevelId}}" }]}'{{/with}}>
|
|
38
|
-
{{> components/base/image/icon _icon='download-button' _addClass="w-10 h-10"}}
|
|
39
|
-
</a>
|
|
40
|
-
{{~/if~}}
|
|
41
36
|
</div>
|
|
42
37
|
{{/if}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{{#with this.teaserLead.avDocument}}
|
|
2
2
|
{{~#if this.isVideo ~}}
|
|
3
3
|
{{#with this.toModel.videoElement}}
|
|
4
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-video-ondemand" _mediaButtonIcon="play_button" _mediaButtonLabel="Video" _isTeaser=true _teaser=../../this _aspectRatio=../../_aspectRatio _teaserSize=../../_teaserSize _isMobile1to1=../../_isMobile1to1 _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
4
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-video-ondemand" _mediaButtonIcon="play_button" _mediaButtonLabel="Video" _isTeaser=true _teaser=../../this _aspectRatio=../../_aspectRatio _teaserSize=../../_teaserSize _isMobile1to1=../../_isMobile1to1 _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
5
5
|
{{#if ../../_isMobile1to1~}}
|
|
6
6
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
7
7
|
{{~/if~}}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{{~/if~}}
|
|
10
10
|
{{~#if this.isAudio ~}}
|
|
11
11
|
{{#with this.toModel.audioElement}}
|
|
12
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="audio_button" _mediaButtonLabel="Audio" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
12
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="audio_button" _mediaButtonLabel="Audio" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
13
13
|
{{#if ../../_isMobile1to1~}}
|
|
14
14
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
15
15
|
{{~/if~}}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
{{~/if~}}
|
|
18
18
|
{{~#if this.isPodcast ~}}
|
|
19
19
|
{{#with this.toModel.audioElement}}
|
|
20
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="
|
|
20
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-audio-ondemand" _mediaButtonIcon="audio_button" _mediaButtonLabel="Podcast" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
21
21
|
{{#if ../../_isMobile1to1~}}
|
|
22
22
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
23
23
|
{{~/if~}}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{{~/if~}}
|
|
26
26
|
{{~#if this.isAudioEventLivestream ~}}
|
|
27
27
|
{{#with this.toModel.audioLivestreamElement}}
|
|
28
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
28
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
29
29
|
{{#if ../../_isMobile1to1~}}
|
|
30
30
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
31
31
|
{{~/if~}}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{{~/if~}}
|
|
34
34
|
{{~#if this.isLivestream ~}}
|
|
35
35
|
{{#with this.toModel.videoLivestreamElement}}
|
|
36
|
-
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag~}}
|
|
36
|
+
{{~> components/mediaplayer/media_player _cypressHook="js-video-livestream" _mediaButtonIcon="play_button" _mediaButtonLabel="Live" _isLivestream="true" _isTeaser=true _teaser=../../this _audioUrl=../this.audioUrl _variant=../this.imageVariant _noDelay=../../_noDelay _aspectRatio=../../_aspectRatio _isMobile1to1=../../_isMobile1to1 _teaserSize=../../_teaserSize _geotag=../../this.geotag _hideGeotag=../../this.hideGeotag _teaserType=../../_teaserType~}}
|
|
37
37
|
{{#if ../../_isMobile1to1~}}
|
|
38
38
|
{{> components/teaser/components/teaser_av_consumption_close_button _playerId=this.ardPlayerConfig.playerId }}
|
|
39
39
|
{{~/if~}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{~#if this.allowAVConsumption ~}}
|
|
2
|
-
{{> components/teaser/components/teaser_av_consumption _aspectRatio=_aspectRatio _isMobile1to1=_isMobile1to1 _teaserSize=_teaserSize }}
|
|
2
|
+
{{> components/teaser/components/teaser_av_consumption _aspectRatio=_aspectRatio _isMobile1to1=_isMobile1to1 _teaserSize=_teaserSize _teaserType=_teaserType }}
|
|
3
3
|
{{else}}
|
|
4
4
|
{{> components/teaser/components/teaser_image _isMobile1to1=_isMobile1to1 }}
|
|
5
5
|
{{/if}}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{{/if}}
|
|
6
6
|
>
|
|
7
7
|
<figure class="relative {{~inline-switch this.teaserSize '["hero","100","50"]' '[" basis-2/3 ar-16-9"," ar-1-1 md:ar-16-9 basis-2/5 md:basis-1/3"," ar-1-1 md:ar-16-9 basis-2/5 md:basis-1/2"]'~}}">
|
|
8
|
-
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["hero"]' '["ar-16-9","ar-1-1 md:ar-16-9"]') }}
|
|
8
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(inline-switch this.teaserSize '["hero"]' '["ar-16-9","ar-1-1 md:ar-16-9"]') }}
|
|
9
9
|
</figure>
|
|
10
10
|
{{> components/teaser/components/teaser_body _outerCssClasses=(inline-switch this.teaserSize '["hero","100","50"]' '["basis-1/3"," basis-3/5 md:basis-2/3"," basis-3/5 md:basis-1/2"]') }}
|
|
11
11
|
</article>
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
>
|
|
10
10
|
<figure class="relative
|
|
11
11
|
{{~#if this.isMobile1to1}} basis-2/5 md:flex-full ar-1-1 md:ar-16-9{{else}} ar-16-9{{/if~}}">
|
|
12
|
-
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
12
|
+
{{> components/teaser/components/teaser_lead _isMobile1to1=this.isMobile1to1 _teaserSize=this.teaserSize _teaserType=this.teaserType _aspectRatio=(inline-switch this.teaserSize '["25"]' '["ar-1-1 md:ar-16-9", "ar-16-9"]') }}
|
|
13
13
|
</figure>
|
|
14
14
|
{{#if this.displayTeaserBodyAsImageOverlay}}
|
|
15
15
|
{{#decorator 'components/teaser/components/teaser_image_overlay' _noOverlayInMobileViewports=true _cssClasses=" relative md:absolute w-full bottom-0"}}
|
|
16
|
-
<div class="flex flex-col items-center justify-center p-4 border-
|
|
16
|
+
<div class="flex flex-col items-center justify-center p-4 border-r border-gray-400 border-dashed">
|
|
17
17
|
{{> components/event/instant_dates}}
|
|
18
18
|
</div>
|
|
19
19
|
{{> components/teaser/components/teaser_body _outerCssClasses=(if this.isMobile1to1 'py-4 md:px-4 basis-3/5 md:flex-full' 'py-4 md:px-4')}}
|