hr-design-system-handlebars 0.49.1 → 0.49.4
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/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/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/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/serviceNavigation_selected.inc.json +276 -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_submenu_service_selected.json +16 -0
- package/src/assets/fixtures/site_header/site_header_mit_warnung.json +16 -0
- package/src/assets/fixtures/teaser/teaser_standard_25_serif_av_consumption.json +28 -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/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/page/page.stories.mdx +18 -7
- package/src/stories/views/components/site_header/fixtures/sectionNavigation_mit_submenu.inc copy.json +1 -0
- 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_submenu_service_selected.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} +24 -8
- 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/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/src/stories/views/components/site_header/brandNavigationData.json +0 -73
- package/src/stories/views/components/site_header/brand_navigation/brand_navigation.stories.mdx +0 -25
- package/src/stories/views/components/site_header/brand_navigation/brand_navigation_item.stories.mdx +0 -46
- package/src/stories/views/components/site_header/navigation.json +0 -573
- package/src/stories/views/components/site_header/navigation2.json +0 -588
- package/src/stories/views/components/site_header/navigation3.json +0 -646
- package/src/stories/views/components/site_header/navigation4.json +0 -645
- package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout.stories.mdx +0 -42
- package/src/stories/views/components/site_header/navigation_search/quick_search_button.stories.mdx +0 -17
- package/src/stories/views/components/site_header/navigation_search/quick_search_form.stories.mdx +0 -17
- package/src/stories/views/components/site_header/sectionNavigationData.json +0 -87
- package/src/stories/views/components/site_header/section_navigation/section_navigation.stories.mdx +0 -25
- package/src/stories/views/components/site_header/section_navigation/section_navigation_item.stories.mdx +0 -59
- package/src/stories/views/components/site_header/serviceNavigationData.json +0 -312
- package/src/stories/views/components/site_header/service_navigation/service_list.stories.mdx +0 -25
- package/src/stories/views/components/site_header/service_navigation/service_navigation_item.stories.mdx +0 -45
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.4 (Tue Jul 05 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- removes unused json files, renames header stories [#260](https://github.com/mumprod/hr-design-system-handlebars/pull/260) ([@StefanVesper](https://github.com/StefanVesper))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v0.49.3 (Tue Jul 05 2022)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Dpe 1588 [#261](https://github.com/mumprod/hr-design-system-handlebars/pull/261) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# v0.49.2 (Tue Jul 05 2022)
|
|
26
|
+
|
|
27
|
+
#### 🐛 Bug Fix
|
|
28
|
+
|
|
29
|
+
- jsoninclude used in header now [#259](https://github.com/mumprod/hr-design-system-handlebars/pull/259) ([@StefanVesper](https://github.com/StefanVesper))
|
|
30
|
+
|
|
31
|
+
#### Authors: 1
|
|
32
|
+
|
|
33
|
+
- SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
1
37
|
# v0.49.1 (Fri Jul 01 2022)
|
|
2
38
|
|
|
3
39
|
#### 🐛 Bug Fix
|
|
@@ -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'
|
|
@@ -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
|
|
@@ -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.4",
|
|
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
|
+
]
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"navigationItems": [
|
|
4
|
+
{
|
|
5
|
+
"name": "hessenschau",
|
|
6
|
+
"text": "Start",
|
|
7
|
+
"url": "index.html",
|
|
8
|
+
"labelText": "Startseite der hessenschau",
|
|
9
|
+
"subNavigationFromIndex": true,
|
|
10
|
+
"selected": true
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"navigationItems": [
|
|
16
|
+
{
|
|
17
|
+
"name": "regionen",
|
|
18
|
+
"text": "Regionen",
|
|
19
|
+
"url": "rheinmain/index.html",
|
|
20
|
+
"isCluster": "true",
|
|
21
|
+
"subNavigation": {
|
|
22
|
+
"showAsFlyout": true,
|
|
23
|
+
"columnCount": "1",
|
|
24
|
+
"columns": [
|
|
25
|
+
[
|
|
26
|
+
{
|
|
27
|
+
"title": "Nordhessen",
|
|
28
|
+
"text": "Nordhessen",
|
|
29
|
+
"link": {
|
|
30
|
+
"url": "http://www.test.de",
|
|
31
|
+
"hasIcon": false,
|
|
32
|
+
"iconName": "extern"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": "Osthessen",
|
|
37
|
+
"text": "Osthessen",
|
|
38
|
+
"link": {
|
|
39
|
+
"url": "http://www.test.de",
|
|
40
|
+
"hasIcon": false,
|
|
41
|
+
"iconName": "extern"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"title": "Mittelhessen",
|
|
46
|
+
"text": "Mittelhessen",
|
|
47
|
+
"link": {
|
|
48
|
+
"url": "http://www.test.de",
|
|
49
|
+
"hasIcon": false,
|
|
50
|
+
"iconName": "extern"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"title": "Rhein-Main",
|
|
55
|
+
"text": "Rhein-Main",
|
|
56
|
+
"link": {
|
|
57
|
+
"url": "http://www.test.de",
|
|
58
|
+
"hasIcon": false,
|
|
59
|
+
"iconName": "extern"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"title": "Südhessen",
|
|
64
|
+
"text": "Südhessen",
|
|
65
|
+
"link": {
|
|
66
|
+
"url": "http://www.test.de",
|
|
67
|
+
"hasIcon": false,
|
|
68
|
+
"iconName": "extern"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"clusterItems": [
|
|
75
|
+
{
|
|
76
|
+
"name": "nordhessen",
|
|
77
|
+
"text": "Nordhessen",
|
|
78
|
+
"url": "nordhessen/index.html"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "osthessen",
|
|
82
|
+
"text": "Osthessen",
|
|
83
|
+
"url": "osthessen/index.html"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "mittelhessen",
|
|
87
|
+
"text": "Mittelhessen",
|
|
88
|
+
"url": "mittelhessen/index.html"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "rheinmain",
|
|
92
|
+
"text": "Rhein-Main",
|
|
93
|
+
"url": "rheinmain/index.html"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "suedhessen",
|
|
97
|
+
"text": "Südhessen",
|
|
98
|
+
"url": "suedhessen/index.html"
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"navigationItems": [
|
|
106
|
+
{
|
|
107
|
+
"name": "politik",
|
|
108
|
+
"text": "Politik",
|
|
109
|
+
"url": "politik/index.html",
|
|
110
|
+
"qualifiedRelatedContentOn404": true,
|
|
111
|
+
"isCluster": false,
|
|
112
|
+
"subNavigation": {
|
|
113
|
+
"showAsFlyout": false,
|
|
114
|
+
"columnCount": "1",
|
|
115
|
+
"items": [
|
|
116
|
+
{
|
|
117
|
+
"title": "Bundestagswahl 2021",
|
|
118
|
+
"text": "Bundestagswahl 2021",
|
|
119
|
+
"link": {
|
|
120
|
+
"url": "http://www.test.de",
|
|
121
|
+
"hasIcon": false,
|
|
122
|
+
"iconName": "extern"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"title": "Landtag",
|
|
127
|
+
"text": "Landtag",
|
|
128
|
+
"link": {
|
|
129
|
+
"url": "http://www.test.de",
|
|
130
|
+
"hasIcon": false,
|
|
131
|
+
"iconName": "extern"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"title": "Videos aus dem Landtag",
|
|
136
|
+
"text": "Videos aus dem Landtag",
|
|
137
|
+
"link": {
|
|
138
|
+
"url": "http://www.test.de",
|
|
139
|
+
"hasIcon": false,
|
|
140
|
+
"iconName": "extern"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"title": "Wahlen",
|
|
145
|
+
"text": "Wahlen",
|
|
146
|
+
"link": {
|
|
147
|
+
"url": "http://www.test.de",
|
|
148
|
+
"hasIcon": false,
|
|
149
|
+
"iconName": "extern"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"title": "Direktwahlen",
|
|
154
|
+
"text": "Direktwahlen",
|
|
155
|
+
"link": {
|
|
156
|
+
"url": "http://www.test.de",
|
|
157
|
+
"hasIcon": false,
|
|
158
|
+
"iconName": "extern"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"navigationItems": [
|
|
168
|
+
{
|
|
169
|
+
"name": "gesellschaft",
|
|
170
|
+
"text": "Gesellschaft",
|
|
171
|
+
"url": "gesellschaft/index.html",
|
|
172
|
+
"qualifiedRelatedContentOn404": true
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"navigationItems": [
|
|
178
|
+
{
|
|
179
|
+
"name": "wirtschaft",
|
|
180
|
+
"text": "Wirtschaft",
|
|
181
|
+
"url": "wirtschaft/index.html",
|
|
182
|
+
"qualifiedRelatedContentOn404": true
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"navigationItems": [
|
|
188
|
+
{
|
|
189
|
+
"name": "kultur",
|
|
190
|
+
"text": "Kultur",
|
|
191
|
+
"url": "kultur/index.html",
|
|
192
|
+
"qualifiedRelatedContentOn404": true
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"navigationItems": [
|
|
198
|
+
{
|
|
199
|
+
"name": "sport",
|
|
200
|
+
"text": "Sport",
|
|
201
|
+
"url": "sport/index.html",
|
|
202
|
+
"qualifiedRelatedContentOn404": true
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"navigationItems": [
|
|
208
|
+
{
|
|
209
|
+
"name": "panorama",
|
|
210
|
+
"text": "Panorama",
|
|
211
|
+
"url": "panorama/index.html",
|
|
212
|
+
"qualifiedRelatedContentOn404": true
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"navigationItems": [
|
|
218
|
+
{
|
|
219
|
+
"name": "freizeit",
|
|
220
|
+
"text": "Freizeit",
|
|
221
|
+
"url": "freizeit/index.html",
|
|
222
|
+
"qualifiedRelatedContentOn404": true
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
]
|