hr-design-system-handlebars 0.49.0 → 0.49.3
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/.storybook/main.js +3 -2
- package/.storybook/preview.js +13 -6
- package/CHANGELOG.md +36 -0
- package/dist/assets/index.css +3 -0
- package/dist/views/base/tracking/{atiHelperNew.js → atiHelperDs.js} +1 -1
- package/dist/views/base/tracking/{atiMediaHelperNew.js → atiMediaHelperDs.js} +1 -1
- package/{src/stories/views/components/audio/audioElement.subfeature.js → dist/views/components/audio/audioElementDs.subfeature.js} +3 -3
- package/dist/views/components/base/load_dynamic.hbs +3 -0
- package/dist/views/components/button/button_round.hbs +3 -0
- package/{src/stories/views/components/externalService/trackingCookie.subfeature.js → dist/views/components/externalService/trackingCookieDs.subfeature.js} +1 -1
- package/dist/views/components/foo.feature.js +1 -1
- package/dist/views/components/generic/{hrQueryNew.js → hrQueryDs.js} +0 -0
- package/dist/views/components/mediaplayer/{mediaplayerLoader.feature.js → mediaplayerLoaderDs.feature.js} +36 -14
- package/dist/views/components/teaser/tabbox/group_tabbox.hbs +16 -0
- package/dist/views/components/teaser/tabbox/teaser_tabbox.hbs +15 -0
- package/dist/views/components/teaser/teaser_standard.hbs +14 -1
- package/{src/stories/views/components/video/livestream/videoLivestream.subfeature.js → dist/views/components/video/livestream/videoLivestreamDs.subfeature.js} +2 -2
- package/{src/stories/views/components/video/videoOnDemandPlayer.subfeature.js → dist/views/components/video/videoOnDemandPlayerDs.subfeature.js} +20 -5
- package/dist/views/components/video/video_element.hbs +16 -9
- package/package.json +1 -1
- package/src/assets/fixtures/site_header/brandNavigation.inc.json +69 -0
- package/src/assets/fixtures/site_header/sectionNavigation.inc.json +226 -0
- package/src/assets/fixtures/site_header/sectionNavigation_mit_submenu.inc.json +296 -0
- package/src/assets/fixtures/site_header/serviceNavigation.inc.json +275 -0
- package/src/assets/fixtures/site_header/serviceNavigation_mit_warnung.inc.json +288 -0
- package/src/assets/fixtures/site_header/site_header_default.json +14 -0
- package/src/assets/fixtures/site_header/site_header_mit_submenu.json +16 -0
- package/src/assets/fixtures/site_header/site_header_mit_warnung.json +16 -0
- package/src/assets/fixtures/teaser/teaser_group_tabbox.inc.json +102 -0
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_av_consumption.json +28 -0
- package/src/assets/fixtures/teaser/teaser_tabbox.json +35 -0
- package/src/stories/views/base/tracking/{atiHelperNew.js → atiHelperDs.js} +1 -1
- package/src/stories/views/base/tracking/{atiMediaHelperNew.js → atiMediaHelperDs.js} +1 -1
- package/{dist/views/components/audio/audioElement.subfeature.js → src/stories/views/components/audio/audioElementDs.subfeature.js} +3 -3
- package/src/stories/views/components/base/load_dynamic.hbs +3 -0
- package/src/stories/views/components/button/button_round.hbs +3 -0
- package/{dist/views/components/externalService/trackingCookie.subfeature.js → src/stories/views/components/externalService/trackingCookieDs.subfeature.js} +1 -1
- package/src/stories/views/components/foo.feature.js +1 -1
- package/src/stories/views/components/generic/{hrQueryNew.js → hrQueryDs.js} +0 -0
- package/src/stories/views/components/mediaplayer/{mediaplayerLoader.feature.js → mediaplayerLoaderDs.feature.js} +36 -14
- package/src/stories/views/components/site_header/fixtures/site_header_default.json +1 -0
- package/src/stories/views/components/site_header/fixtures/site_header_mit_submenu.json +1 -0
- package/src/stories/views/components/site_header/fixtures/site_header_mit_warnung.json +1 -0
- package/src/stories/views/components/site_header/{header_.stories.mdx → header.stories.mdx} +22 -6
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_av_consumption.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_av_consumption copy.json +1 -0
- package/src/stories/views/components/teaser/fixtures/teaser_tabbox.json +1 -0
- package/src/stories/views/components/teaser/tabbox/group_tabbox.hbs +16 -0
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.hbs +15 -0
- package/src/stories/views/components/teaser/tabbox/teaser_tabbox.stories.mdx +28 -0
- package/src/stories/views/components/teaser/teaser_standard.hbs +14 -1
- package/src/stories/views/components/teaser/teaser_standard_av.stories.mdx +4 -0
- package/{dist/views/components/video/livestream/videoLivestream.subfeature.js → src/stories/views/components/video/livestream/videoLivestreamDs.subfeature.js} +2 -2
- package/{dist/views/components/video/videoOnDemandPlayer.subfeature.js → src/stories/views/components/video/videoOnDemandPlayerDs.subfeature.js} +20 -5
- package/src/stories/views/components/video/video_element.hbs +16 -9
package/.storybook/main.js
CHANGED
|
@@ -34,10 +34,11 @@ module.exports = {
|
|
|
34
34
|
...config.resolve.alias,
|
|
35
35
|
scripts: path.resolve(__dirname, '../scripts'),
|
|
36
36
|
components: path.resolve(__dirname, '../src/stories/views/components'),
|
|
37
|
+
base: path.resolve(__dirname, '../src/stories/views/base'),
|
|
37
38
|
tailwind$: path.resolve(__dirname, '../src/assets/tailwind.css'),
|
|
38
|
-
|
|
39
|
+
hrQueryDs$: path.resolve(
|
|
39
40
|
__dirname,
|
|
40
|
-
'../src/stories/views/components/generic/
|
|
41
|
+
'../src/stories/views/components/generic/hrQueryDs.js'
|
|
41
42
|
),
|
|
42
43
|
initializer$: path.resolve(
|
|
43
44
|
__dirname,
|
package/.storybook/preview.js
CHANGED
|
@@ -11,14 +11,21 @@ import loadFeature from '../build/webpack/feature-loader/initializer/loader'
|
|
|
11
11
|
import 'components/site_header/header_alpine'
|
|
12
12
|
|
|
13
13
|
function loadDelayedImages(){setTimeout((function(){var t,e=document.images,s=[],a=function(t){void 0!==window.picturefill&&window.picturefill({reevaluate:!0,elements:t})};for(var i=0;i<e.length;++i)(t=e[i].dataset?e[i].dataset.srcset:e[i].getAttribute("data-srcset"))&&(0===e[i].getBoundingClientRect().top?s.push(e[i]):e[i].setAttribute("srcset",t));a(e),setTimeout((function(){var t;for(var i=0;i<s.length;++i)t=s[i].dataset?s[i].dataset.srcset:s[i].getAttribute("data-srcset"),s[i].setAttribute("srcset",t);a(s)}),900)}),0)}
|
|
14
|
-
|
|
15
|
-
document.addEventListener('DOMContentLoaded', function (event) {
|
|
16
|
-
console.log('DOM fully loaded and parsed')
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
let eventSrcUrl = null;
|
|
16
|
+
|
|
17
|
+
document.addEventListener('DOMContentLoaded', function (event) {
|
|
18
|
+
console.log('DOM fully loaded and parsed')
|
|
19
|
+
if(eventSrcUrl != event.srcElement.URL) {
|
|
20
|
+
eventSrcUrl = event.srcElement.URL
|
|
21
|
+
|
|
22
|
+
console.log('Start feature initialization' )
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
Initializer.run(document, loadFeature)
|
|
25
|
+
setTimeout(loadDelayedImages,200);
|
|
26
|
+
} else {
|
|
27
|
+
console.log("second DOMContentLoaded Event was blocked!");
|
|
28
|
+
}
|
|
22
29
|
})
|
|
23
30
|
|
|
24
31
|
if (process.env.NODE_ENV !== 'production') {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v0.49.3 (Tue Jul 05 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Dpe 1588 [#261](https://github.com/mumprod/hr-design-system-handlebars/pull/261) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.49.2 (Tue Jul 05 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- jsoninclude used in header now [#259](https://github.com/mumprod/hr-design-system-handlebars/pull/259) ([@StefanVesper](https://github.com/StefanVesper))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.49.1 (Fri Jul 01 2022)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- add json for tabbox [#258](https://github.com/mumprod/hr-design-system-handlebars/pull/258) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.49.0 (Thu Jun 30 2022)
|
|
2
38
|
|
|
3
39
|
#### 🚀 Enhancement
|
package/dist/assets/index.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { fireEvent, hr$, listen } from '
|
|
2
|
-
import { uxAction } from '
|
|
3
|
-
import ATIMediaHelper from '
|
|
1
|
+
import { fireEvent, hr$, listen } from 'hrQueryDs'
|
|
2
|
+
import { uxAction } from 'base/tracking/atiHelperDs'
|
|
3
|
+
import ATIMediaHelper from 'base/tracking/atiMediaHelperDs'
|
|
4
4
|
|
|
5
5
|
const AudioElement = function (options, rootElement) {
|
|
6
6
|
'use strict'
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
{{#case "components/teaser/group_teaser/group_teaser"}}
|
|
6
6
|
{{> components/teaser/group_teaser/group_teaser}}
|
|
7
7
|
{{/case}}
|
|
8
|
+
{{#case "components/teaser/tabbox/group_tabbox"}}
|
|
9
|
+
{{> components/teaser/tabbox/group_tabbox}}
|
|
10
|
+
{{/case}}
|
|
8
11
|
{{#case "components/teaser/teaser_standard"}}
|
|
9
12
|
{{> components/teaser/teaser_standard}}
|
|
10
13
|
{{/case}}
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
{{~#if _name}} name="{{_name}}"{{/if}}
|
|
5
5
|
class="bg-blue-500 hover:bg-blue-700 text-white rounded-full border-4 border-white p-1 {{_addClass}}{{#if _webview}} -webview{{/if}}"
|
|
6
6
|
{{~#if _value}} value="{{_value}}"{{/if}}
|
|
7
|
+
{{~#if _alpineClick}} @click="{{_alpineClick}}"{{/if}}
|
|
8
|
+
|
|
9
|
+
|
|
7
10
|
>
|
|
8
11
|
{{~#if _showIcon~}}
|
|
9
12
|
{{> components/base/image/icon _icon=_icon _iconmap=_iconmap _addClass=_addIconClass _webview=_webview}}
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { hr$, listenOnce } from '
|
|
2
|
-
import { uxAction } from '
|
|
3
|
-
import VideoOnDemandPlayer from '
|
|
4
|
-
import AudioElement from '
|
|
5
|
-
import VideoLivestream from '
|
|
1
|
+
import { hr$, listenOnce, fireEvent, listen } from 'hrQueryDs'
|
|
2
|
+
import { uxAction } from 'base/tracking/atiHelperDs'
|
|
3
|
+
import VideoOnDemandPlayer from 'components/video/videoOnDemandPlayerDs.subfeature'
|
|
4
|
+
import AudioElement from 'components/audio/audioElementDs.subfeature'
|
|
5
|
+
import VideoLivestream from 'components/video/livestream/videoLivestreamDs.subfeature'
|
|
6
6
|
|
|
7
7
|
const MediaplayerLoader = function (context) {
|
|
8
8
|
'use strict'
|
|
@@ -14,9 +14,14 @@ const MediaplayerLoader = function (context) {
|
|
|
14
14
|
position = options.position,
|
|
15
15
|
teaserSize = options.teaserSize,
|
|
16
16
|
config = options.config,
|
|
17
|
-
audioContent = hr$('.js-audioElement__audio', rootElement)[0],
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
audioContent = hr$('.js-audioElement__audio', rootElement)[0],
|
|
18
|
+
// containerId = options.containerId,
|
|
19
|
+
rootParent = rootElement.parentNode,
|
|
20
|
+
mediaplayerButton = hr$('.js-mediaplayer__button', rootParent)[0];
|
|
21
|
+
|
|
22
|
+
let video = false;
|
|
23
|
+
|
|
24
|
+
|
|
20
25
|
const removeVideoHover = function () {
|
|
21
26
|
rootElement.parentNode.parentNode.classList.remove('-imageHover')
|
|
22
27
|
rootElement.parentNode.parentNode.parentNode.classList.remove('-imageHover')
|
|
@@ -35,11 +40,24 @@ const MediaplayerLoader = function (context) {
|
|
|
35
40
|
uxAction('mediabuttonclick::' + teaserSize + '::playButtonClick')
|
|
36
41
|
}
|
|
37
42
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
|
|
44
|
+
const unloadPlayer = function() {
|
|
45
|
+
console.log("video.pause()");
|
|
46
|
+
video.pause();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const loadOnDemand = function () {
|
|
50
|
+
if(!video){
|
|
51
|
+
console.log("loadOnDemand");
|
|
52
|
+
video = new VideoOnDemandPlayer(options)
|
|
53
|
+
removeVideoHover()
|
|
54
|
+
uxAction('mediabuttonclick::' + teaserSize + '::playButtonClick')
|
|
55
|
+
listenOnce('player_colosed', unloadPlayer)
|
|
56
|
+
} else {
|
|
57
|
+
console.log("video.play()");
|
|
58
|
+
listenOnce('player_colosed', unloadPlayer)
|
|
59
|
+
video.play();
|
|
60
|
+
}
|
|
43
61
|
}
|
|
44
62
|
|
|
45
63
|
const loadAudio = function () {
|
|
@@ -48,6 +66,8 @@ const MediaplayerLoader = function (context) {
|
|
|
48
66
|
uxAction('mediabuttonclick::' + teaserSize + '::playButtonClick')
|
|
49
67
|
}
|
|
50
68
|
|
|
69
|
+
|
|
70
|
+
|
|
51
71
|
switch (type) {
|
|
52
72
|
case 'live':
|
|
53
73
|
console.log('live');
|
|
@@ -61,7 +81,8 @@ const MediaplayerLoader = function (context) {
|
|
|
61
81
|
case 'ondemand':
|
|
62
82
|
console.log('ondemand');
|
|
63
83
|
if (position === 'teaser') {
|
|
64
|
-
|
|
84
|
+
// listenOnce('click', loadOnDemand, mediaplayerButton)
|
|
85
|
+
listen('click', loadOnDemand, mediaplayerButton)
|
|
65
86
|
} else {
|
|
66
87
|
loadOnDemand()
|
|
67
88
|
}
|
|
@@ -77,5 +98,6 @@ const MediaplayerLoader = function (context) {
|
|
|
77
98
|
}
|
|
78
99
|
break
|
|
79
100
|
}
|
|
101
|
+
|
|
80
102
|
}
|
|
81
103
|
export default MediaplayerLoader
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div class="w-full">
|
|
2
|
+
<br/>
|
|
3
|
+
teaserSize: {{this.teaserSize}}<br/>
|
|
4
|
+
isFirstTeaser: {{this.isFirstTeaser}}<br/>
|
|
5
|
+
hasGroupTitle: {{this.hasGroupTitle}}<br/>
|
|
6
|
+
teaserIndex: {{this.teaserIndex}}<br/>
|
|
7
|
+
groupTitle: {{this.groupTitle}}<br/>
|
|
8
|
+
link.url:{{this.link.url}}<br/>
|
|
9
|
+
title: {{this.title}}<br/>
|
|
10
|
+
<br/>
|
|
11
|
+
<b>Teaser:</b><br/>
|
|
12
|
+
{{~#each this.logicItems}}
|
|
13
|
+
{{this.logicItem.includeModel.title}}<br/>
|
|
14
|
+
{{/each~}}
|
|
15
|
+
<br/><hr/>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="w-full p-5">
|
|
2
|
+
|
|
3
|
+
<b><u>Tabbox-Data</u></b><br/><br/>
|
|
4
|
+
|
|
5
|
+
wanda-Id: {{this.wandaPageId}}<br/><br/>
|
|
6
|
+
|
|
7
|
+
Tabs:<br/>
|
|
8
|
+
{{~#each this.tabbedGroup~}}
|
|
9
|
+
{{this.title}}<br/>
|
|
10
|
+
{{~/each~}}
|
|
11
|
+
<br/>
|
|
12
|
+
<b>Teasergruppen:</b><hr/>
|
|
13
|
+
{{~> components/teaser/teaser_logic/teaser_logic ~}}
|
|
14
|
+
|
|
15
|
+
</div>
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
<article class="col-span-12 flex gap-y-3 gap-x-4 {{inline-switch this.teaserSize '["25","33","50"]' '["px-5 md:px-0 md:col-span-3
|
|
1
|
+
<article class="col-span-12 flex gap-y-3 gap-x-4 {{inline-switch this.teaserSize '["25","33","50"]' '["js-is1to1 px-5 md:px-0 md:col-span-3 md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} "
|
|
2
|
+
x-data="{ videoStart: false }"
|
|
3
|
+
{{#switch this.teaserSize~}}
|
|
4
|
+
{{~#case "25"}}
|
|
5
|
+
|
|
6
|
+
:class="videoStart ? 'flex-col' : 'flex-row'"
|
|
7
|
+
{{/case~}}
|
|
8
|
+
{{~/switch~}}
|
|
9
|
+
>
|
|
2
10
|
<figure class="relative {{inline-switch this.teaserSize '["25"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
|
|
3
11
|
{{> components/teaser/components/teaser_lead }}
|
|
4
12
|
</figure>
|
|
5
13
|
<div class="{{inline-switch this.teaserSize '["25"]' '["basis-3/5 md:flex-full"]'}} ">
|
|
14
|
+
{{#switch this.teaserSize~}}
|
|
15
|
+
{{~#case "25"}}
|
|
16
|
+
<button x-show="videoStart" @click="videoStart = false; $dispatch('player_colosed')" class="md:hidden">Video schließen</button>
|
|
17
|
+
{{/case~}}
|
|
18
|
+
{{~/switch~}}
|
|
6
19
|
<header class="md:px-0 {{inline-switch teaserSize '["25"]' '["","px-5"]'}}">
|
|
7
20
|
{{#>components/base/link css="hover:text-toplineColor" doTracking=(if this.doTracking 'true') clickLabelPrefix1=this.teaserSize clickLabelPrefix2="headlineLink" }}
|
|
8
21
|
{{> components/teaser/components/teaser_heading
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fireEvent, hr$, listen, loadScript } from '
|
|
2
|
-
import TrackingCookie from '
|
|
1
|
+
import { fireEvent, hr$, listen, loadScript } from 'hrQueryDs'
|
|
2
|
+
import TrackingCookie from 'components/externalService/trackingCookieDs.subfeature'
|
|
3
3
|
|
|
4
4
|
const VideoLivestream = function (options, rootElement) {
|
|
5
5
|
'use strict'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fireEvent, hr$, listen, loadScript } from '
|
|
2
|
-
import TrackingCookie from '
|
|
1
|
+
import { fireEvent, hr$, listen, loadScript } from 'hrQueryDs'
|
|
2
|
+
import TrackingCookie from 'components/externalService/trackingCookieDs.subfeature'
|
|
3
3
|
|
|
4
4
|
const VideoOnDemandPlayer = function (options, rootElement) {
|
|
5
5
|
'use strict'
|
|
@@ -28,8 +28,8 @@ console.log('VideoOnDemandPlayer');
|
|
|
28
28
|
mediaCollection,
|
|
29
29
|
mediaStreamArray = []
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
/* console.log(skinPath);
|
|
32
|
+
console.log(isAdaptiveStream);
|
|
33
33
|
console.log(basePlayerUrl);
|
|
34
34
|
console.log(previewImageUrl);
|
|
35
35
|
console.log(adaptiveStreamingUrl);
|
|
@@ -341,8 +341,14 @@ console.log('VideoOnDemandPlayer');
|
|
|
341
341
|
player.pause()
|
|
342
342
|
}
|
|
343
343
|
})
|
|
344
|
+
// listen('hr:global:startVideo:'+playerId, function (event) {
|
|
345
|
+
// if (event.detail == 'ardplayer') {
|
|
346
|
+
// player.play()
|
|
347
|
+
// }
|
|
348
|
+
// })
|
|
349
|
+
|
|
344
350
|
}
|
|
345
|
-
|
|
351
|
+
|
|
346
352
|
if (trackingCookie.isTrackingAccepted('agf') && window.gfkConnector && agfMetadata) {
|
|
347
353
|
gfkConnector.init(function (gfkLinkID) {
|
|
348
354
|
agfMetadata.nol_c20 = 'p20,' + gfkLinkID
|
|
@@ -351,6 +357,15 @@ console.log('VideoOnDemandPlayer');
|
|
|
351
357
|
} else {
|
|
352
358
|
setupPlayer()
|
|
353
359
|
}
|
|
360
|
+
|
|
361
|
+
return {
|
|
362
|
+
play: function() {
|
|
363
|
+
player.play()
|
|
364
|
+
},
|
|
365
|
+
pause: function() {
|
|
366
|
+
player.pause()
|
|
367
|
+
}
|
|
368
|
+
}
|
|
354
369
|
}
|
|
355
370
|
|
|
356
371
|
export default VideoOnDemandPlayer
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="c-videoplayer">
|
|
2
|
-
<div id="{{nextRandom}}" class="
|
|
2
|
+
<div x-show="videoStart" x-transition.duration.100ms id="{{nextRandom}}" class="js-load" data-new-hr-mediaplayer-loader-ds='{
|
|
3
3
|
"type": "ondemand",
|
|
4
4
|
"position": "{{if _isTeaser 'teaser' 'page'}}",
|
|
5
5
|
"teaserSize" : "{{if ../../this.teasersize ../../this.teasersize '00' }}",
|
|
@@ -59,19 +59,26 @@
|
|
|
59
59
|
<span class="js-geotag c-teaser__geotag" aria-hidden="true">{{this.[0].title~}}</span>
|
|
60
60
|
{{/with~}}
|
|
61
61
|
{{/unless}}
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
|
|
63
|
+
</div>
|
|
64
|
+
|
|
65
|
+
{{#if _isTeaser}}
|
|
66
|
+
<div class="relative" x-show="!videoStart" x-transition.duration.100ms>
|
|
67
|
+
{{#with _teaser}}
|
|
68
|
+
|
|
64
69
|
{{~#if ../_isCopyText~}}
|
|
65
70
|
{{~> 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="ar__content" _noDelay=../_noDelay ~}}
|
|
66
71
|
{{else}}
|
|
67
72
|
{{#>components/base/link _cssClasses="c-teaser__mediaLink" _isAriaHidden=true
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
_doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize
|
|
74
|
+
_clickLabelPrefix2="mediaLink" }}
|
|
70
75
|
{{~> 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="js-mediaplayer__area ar__content mediaPlayerLoader__mediaplayerArea" _noDelay=../../_noDelay ~}}
|
|
71
76
|
{{/components/base/link }}
|
|
72
77
|
{{/if}}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
{{/
|
|
76
|
-
</div>
|
|
78
|
+
|
|
79
|
+
{{/with}}
|
|
80
|
+
{{> components/button/button_round _isButton="true" _addClass="absolute bottom-0 right-0 my-4 mx-4 js-mediaplayer__button" _showIcon=true _icon="play" _addIconClass="w-6 h-6 inline" _label="Video" _alpineClick="videoStart = !videoStart"}}
|
|
81
|
+
</div>
|
|
82
|
+
{{/if}}
|
|
83
|
+
|
|
77
84
|
</div>
|
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.49.
|
|
9
|
+
"version": "0.49.3",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "hessenschau.DE",
|
|
4
|
+
"text": "hessenschau",
|
|
5
|
+
"site": "hessenscha",
|
|
6
|
+
"selected": true,
|
|
7
|
+
"extern": false
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "HR1",
|
|
11
|
+
"text": "hr1",
|
|
12
|
+
"site": "hr1",
|
|
13
|
+
"extern": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "HR2",
|
|
17
|
+
"text": "hr2-kultur",
|
|
18
|
+
"site": "hr2",
|
|
19
|
+
"extern": true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "HR3",
|
|
23
|
+
"text": "hr3",
|
|
24
|
+
"site": "hr3",
|
|
25
|
+
"extern": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "HR4",
|
|
29
|
+
"text": "hr4",
|
|
30
|
+
"site": "hr4",
|
|
31
|
+
"extern": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "HR-info",
|
|
35
|
+
"text": "hr-iNFO",
|
|
36
|
+
"site": "hr-inforadio",
|
|
37
|
+
"extern": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "you-fm",
|
|
41
|
+
"text": "YOU FM",
|
|
42
|
+
"site": "you-fm",
|
|
43
|
+
"extern": true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "HR-fernsehen",
|
|
47
|
+
"text": "hr-fernsehen",
|
|
48
|
+
"site": "hr-fernsehen",
|
|
49
|
+
"extern": true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "HR-Sinfonieorchester",
|
|
53
|
+
"text": "hr-Sinfonieorchester",
|
|
54
|
+
"site": "hr-sinfonieorchester",
|
|
55
|
+
"extern": true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "HR-Bigband",
|
|
59
|
+
"text": "hr-Bigband",
|
|
60
|
+
"site": "hr-bigband",
|
|
61
|
+
"extern": true
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "Der HR",
|
|
65
|
+
"text": "Der hr",
|
|
66
|
+
"site": "hr",
|
|
67
|
+
"extern": true
|
|
68
|
+
}
|
|
69
|
+
]
|