hr-design-system-handlebars 1.14.0 → 1.16.0

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.
Files changed (80) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/brand/_default/conf/locatags.json +1 -0
  3. package/dist/assets/brand/hessenschau/conf/locatags.json +2 -1
  4. package/dist/assets/index.css +3 -3
  5. package/dist/views/components/base/link.hbs +5 -10
  6. package/dist/views/components/button/link_button.hbs +2 -2
  7. package/dist/views/components/content_nav/content_nav_item.hbs +17 -21
  8. package/dist/views/components/event/calendar/event_calendar_event_teaser.hbs +4 -4
  9. package/dist/views/components/event/calendar/event_calendar_footer.hbs +2 -3
  10. package/dist/views/components/event/event_ticket_button.hbs +2 -2
  11. package/dist/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +9 -4
  12. package/dist/views/components/site_header/section_navigation/section_navigation_top_topics.hbs +2 -2
  13. package/dist/views/components/teaser/cluster/teaser_cluster.hbs +1 -1
  14. package/dist/views/components/teaser/cluster/teaser_cluster_item.hbs +7 -7
  15. package/dist/views/components/teaser/components/teaser_body.hbs +26 -19
  16. package/dist/views/components/teaser/components/teaser_comments.hbs +2 -2
  17. package/dist/views/components/teaser/components/teaser_text.hbs +2 -2
  18. package/dist/views/components/teaser/components/teaser_ticker_body.hbs +3 -4
  19. package/dist/views/components/teaser/podcast/podcast_item_title.hbs +5 -7
  20. package/dist/views/components/teaser/podcast/podcast_player_ui.hbs +1 -2
  21. package/dist/views/components/teaser/podcast/podcast_playlist_player.hbs +3 -5
  22. package/dist/views/components/teaser/podcast/podcast_title.hbs +3 -3
  23. package/dist/views/components/teaser/stage/stage_text.hbs +2 -2
  24. package/dist/views/components/teaser/tabbox/group_tabbox.hbs +1 -1
  25. package/dist/views/components/teaser/teaser_poster.hbs +3 -3
  26. package/dist/views/components/tracking/download_tracking.hbs +2 -0
  27. package/dist/views/components/tracking/navigation_tracking.hbs +4 -0
  28. package/package.json +1 -1
  29. package/src/assets/brand/_default/conf/locatags.json +1 -0
  30. package/src/assets/brand/hessenschau/conf/locatags.json +2 -1
  31. package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
  32. package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
  33. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
  34. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
  35. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
  36. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
  37. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
  38. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
  39. package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
  40. package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
  41. package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
  42. package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
  43. package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
  44. package/src/assets/fixtures/teaser/teasers.inc.json +4 -0
  45. package/src/stories/views/components/base/link.hbs +5 -10
  46. package/src/stories/views/components/base/link.mdx +57 -0
  47. package/src/stories/views/components/base/link.stories.js +61 -0
  48. package/src/stories/views/components/button/button.mdx +2 -2
  49. package/src/stories/views/components/button/link_button.hbs +2 -2
  50. package/src/stories/views/components/button/link_button.stories.js +10 -0
  51. package/src/stories/views/components/content_nav/content_nav_item.hbs +17 -21
  52. package/src/stories/views/components/event/calendar/event_calendar_event_teaser.hbs +4 -4
  53. package/src/stories/views/components/event/calendar/event_calendar_footer.hbs +2 -3
  54. package/src/stories/views/components/event/event_ticket_button.hbs +2 -2
  55. package/src/stories/views/components/page/fixtures/page_pagination.json +1 -1
  56. package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout_item.hbs +9 -4
  57. package/src/stories/views/components/site_header/section_navigation/section_navigation_top_topics.hbs +2 -2
  58. package/src/stories/views/components/teaser/cluster/teaser_cluster.hbs +1 -1
  59. package/src/stories/views/components/teaser/cluster/teaser_cluster_item.hbs +7 -7
  60. package/src/stories/views/components/teaser/components/teaser_body.hbs +26 -19
  61. package/src/stories/views/components/teaser/components/teaser_comments.hbs +2 -2
  62. package/src/stories/views/components/teaser/components/teaser_text.hbs +2 -2
  63. package/src/stories/views/components/teaser/components/teaser_ticker_body.hbs +3 -4
  64. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_download.json +1 -1
  65. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_download.json +1 -1
  66. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_download.json +1 -1
  67. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_download.json +1 -1
  68. package/src/stories/views/components/teaser/podcast/podcast_item_title.hbs +5 -7
  69. package/src/stories/views/components/teaser/podcast/podcast_player_ui.hbs +1 -2
  70. package/src/stories/views/components/teaser/podcast/podcast_playlist_player.hbs +3 -5
  71. package/src/stories/views/components/teaser/podcast/podcast_title.hbs +3 -3
  72. package/src/stories/views/components/teaser/stage/stage_text.hbs +2 -2
  73. package/src/stories/views/components/teaser/tabbox/group_tabbox.hbs +1 -1
  74. package/src/stories/views/components/teaser/teaser_poster.hbs +3 -3
  75. package/src/stories/views/components/tracking/download_tracking.hbs +2 -0
  76. package/src/stories/views/components/tracking/navigation_tracking.hbs +4 -0
  77. package/dist/views/components/base/link_open.hbs +0 -12
  78. package/dist/views/components/base/link_v2.hbs +0 -14
  79. package/src/stories/views/components/base/link_open.hbs +0 -12
  80. package/src/stories/views/components/base/link_v2.hbs +0 -14
@@ -65,17 +65,15 @@
65
65
  ax-load
66
66
  x-ignore
67
67
  ax-load-src={{resourceUrl "assets/js/vendor/podcast_player.alpine.js" }}>
68
- {{#with this.playlistItems}}
69
- {{#each this}}
68
+ {{#each this.playlistItems}}
70
69
  <div class="flex pb-5 {{#unless @last}}border-white border-b{{/unless}}">
71
70
  {{> components/teaser/podcast/podcast_player_ui
72
71
  _isPlaylistPlayer=true
73
- _podcastDuration=duration
74
- _title=title
72
+ _podcastDuration=this.duration
73
+ _title=this.title
75
74
  _id=(nextRandom)
76
75
  _first=@first
77
76
  }}
78
77
  </div>
79
78
  {{/each}}
80
- {{/with}}
81
79
  </div>
@@ -1,9 +1,9 @@
1
1
  {{#if this.isSingleChannel}}
2
- {{#decorator 'components/base/link' _css="group ds-link font-title text-base mt-2.5 text-podcast-text"}}
3
- <span class="mt-0.5 group-hover:underline {{#if _ordered}} pl-8 {{/if}}line-clamp-4 {{inline-switch _teaserSize '["hero","100","50"]''["text-base md:text-2xl lg:line-clamp-2","text-base md:text-2xl lg:line-clamp-2","text-base md:text-lg"]' ~}}">
2
+ {{#>components/base/link _link=this.link _css="group ds-link font-title text-base mt-2.5 text-podcast-text"}}
3
+ <span class="mt-0.5 group-hover:underline {{#if _ordered-adjust_context}} pl-8 {{/if}}line-clamp-4 {{inline-switch _teaserSize-adjust_context '["hero","100","50"]''["text-base md:text-2xl lg:line-clamp-2","text-base md:text-2xl lg:line-clamp-2","text-base md:text-lg"]' ~}}">
4
4
  {{~_title~}}
5
5
  </span>
6
- {{/decorator}}
6
+ {{/components/base/link}}
7
7
  {{else}}
8
8
  <div class="font-title text-base mt-2.5 text-podcast-text">
9
9
  <span class="mt-0.5 {{#if _ordered}} pl-8 {{/if}}line-clamp-4 {{inline-switch _teaserSize '["hero","100","50"]''["text-base md:text-2xl lg:line-clamp-2","text-base md:text-2xl lg:line-clamp-2","text-base md:text-lg"]' ~}}">
@@ -1,6 +1,6 @@
1
1
  <div class="absolute left-2/4 right-auto bottom-15 lg:bottom-10 flex w-full px-5 sm:px-11.5 -translate-x-2/4 {{inline-switch this.stageTextPosition '["right50"]' '[" justify-end"," justify-start"]'}}">
2
2
  <div class="relative p-4 rounded-2xl bg-stageTextBox/85 {{inline-switch this.stageTextPosition '["left100"]' '[" w-full"," max-w-xs sm:w-fit md:max-w-2/4"]'}} ">
3
- {{#decorator 'components/base/link' _css="ds-teaser-focus before:rounded-2xl"}}
3
+ {{#>components/base/link _link=this.link _css="ds-teaser-focus before:rounded-2xl"}}
4
4
  {{#> components/teaser/components/teaser_header}}
5
5
  {{#with this.label}}
6
6
  {{#> components/label/label_group _css="!text-stageText"}}
@@ -37,6 +37,6 @@
37
37
  {{> components/base/image/icon _icon=this.link.iconName _iconmap="icons" _addClass="inline w-5 h-5 self-baseline fill-current ml-1" }}]
38
38
  </span>
39
39
  {{/if}}
40
- {{/decorator}}
40
+ {{/components/base/link}}
41
41
  </div>
42
42
  </div>
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
  {{~#if this.link~}}
9
9
  <div class="flex justify-center min-w-0 pt-8 mx-5">
10
- {{~#> components/button/link_button _variant="secondary" _size="lg" _css="overflow-hidden"}}
10
+ {{~#> components/button/link_button _link=this.link _variant="secondary" _size="lg" _css="overflow-hidden"}}
11
11
  {{>components/button/components/button_label _label=(loca "group_tabbed_more" this.title) _css="flex-1 truncate mr-2"}}
12
12
  {{> components/button/components/button_icon _icon="arrow-right" _iconmap="icons" _css=""}}
13
13
  {{/components/button/link_button}}
@@ -3,7 +3,7 @@
3
3
  {{~> components/base/image/responsive_image this.teaserImage _type=this.teaserType _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content rounded-tl-hr rounded-br-hr" ~}}
4
4
  </figure>
5
5
  <div class="absolute flex flex-col justify-center w-full h-full bg-gradient-to-t from-black rounded-tl-hr rounded-br-hr">
6
- {{#decorator 'components/base/link' _css="ds-teaser-focus flex items-center flex-col before:rounded-tl-hr before:rounded-br-hr hover:text-toplineColor"}}
6
+ {{#>components/base/link _link=this.link _css="ds-teaser-focus flex items-center flex-col before:rounded-tl-hr before:rounded-br-hr hover:text-toplineColor"}}
7
7
  {{#> components/teaser/components/teaser_header}}
8
8
  {{#with this.label}}
9
9
  {{#> components/label/label_group}}
@@ -21,9 +21,9 @@
21
21
  {{/if}}
22
22
  {{/components/teaser/components/teaser_headline}}
23
23
  {{/components/teaser/components/teaser_header}}
24
- {{/decorator}}
24
+ {{/components/base/link}}
25
25
  <span class="absolute flex w-full h-full items-end justify-center ds-cta">
26
- {{#> components/button/link_button _size="lg" _css=(inline-switch this.realTeaserSize '["33","50"]' '["z-20 mb-7","z-20 mb-7 md:mb-16"]') _variant="secondary" _isAriaHidden=true _onBackground=true}}
26
+ {{#> components/button/link_button _link=this.link _size="lg" _css=(inline-switch this.realTeaserSize '["33","50"]' '["z-20 mb-7","z-20 mb-7 md:mb-16"]') _variant="secondary" _isAriaHidden=true _onBackground=true}}
27
27
  {{> components/button/components/button_label _css="" _label=this.link.readMoreText.readMoreLong}}
28
28
  {{/components/button/link_button}}
29
29
  </span>
@@ -0,0 +1,2 @@
1
+ {{#with this.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId":
2
+ "{{this.secondLevelId}}","clickLabel": "{{this.pageName}}"}]}'{{/with}}
@@ -0,0 +1,4 @@
1
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{_clickLabelType}}{{#if
2
+ _clickLabelPrefix1
3
+ }}::{{_clickLabelPrefix1}}{{/if}}{{#if _clickLabelPrefix2}}::{{_clickLabelPrefix2}}{{/if}}-Link
4
+ geklickt"}]}'
@@ -1,12 +0,0 @@
1
- <a {{#with this.link.webviewUrl}}data-webviewurl="{{this}}"{{/with}} href="{{this.link.url}}{{#if this.hasComments}}#commentList{{/if}}"
2
- class="sb-link ds-link js-load {{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}"
3
- {{#if _doNavigationTracking}}
4
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{_clickLabelType}}{{#if _clickLabelPrefix1}}::{{_clickLabelPrefix1}}{{/if}}::{{_clickLabelPrefix2}}-Link geklickt"}]}'
5
- {{/if}}
6
- {{#if this.isFileDownload}}
7
- {{#with this.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.link.secondLevelId}}","clickLabel": "{{this.link.pageName}}"}]}'{{/with}}
8
- {{/if}}
9
- {{#if this.link.isTargetBlank}} target="_blank" rel="noopener{{#if this.link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
10
- {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
11
- >
12
-
@@ -1,14 +0,0 @@
1
- <a {{#with this.link.webviewUrl}}data-webviewurl="{{this}}"{{/with}} href="{{this.link.url}}{{#if this.hasComments}}#commentList{{/if}}"
2
- class="sb-link ds-link js-load {{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}"
3
- {{#if _doNavigationTracking}}
4
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{_clickLabelType}}{{#if _clickLabelPrefix1}}::{{_clickLabelPrefix1}}{{/if}}::{{_clickLabelPrefix2}}-Link geklickt"}]}'
5
- {{/if}}
6
- {{#if this.isFileDownload}}
7
- {{#with this.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.link.secondLevelId}}","clickLabel": "{{this.link.pageName}}"}]}'{{/with}}
8
- {{/if}}
9
- {{#if this.link.isTargetBlank}} target="_blank" rel="noopener{{#if this.link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
10
- {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
11
- >
12
-
13
- {{> @partial-block }}
14
- </a>
@@ -1,12 +0,0 @@
1
- <a {{#with this.link.webviewUrl}}data-webviewurl="{{this}}"{{/with}} href="{{this.link.url}}{{#if this.hasComments}}#commentList{{/if}}"
2
- class="sb-link ds-link js-load {{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}"
3
- {{#if _doNavigationTracking}}
4
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{_clickLabelType}}{{#if _clickLabelPrefix1}}::{{_clickLabelPrefix1}}{{/if}}::{{_clickLabelPrefix2}}-Link geklickt"}]}'
5
- {{/if}}
6
- {{#if this.isFileDownload}}
7
- {{#with this.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.link.secondLevelId}}","clickLabel": "{{this.link.pageName}}"}]}'{{/with}}
8
- {{/if}}
9
- {{#if this.link.isTargetBlank}} target="_blank" rel="noopener{{#if this.link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
10
- {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
11
- >
12
-
@@ -1,14 +0,0 @@
1
- <a {{#with this.link.webviewUrl}}data-webviewurl="{{this}}"{{/with}} href="{{this.link.url}}{{#if this.hasComments}}#commentList{{/if}}"
2
- class="sb-link ds-link js-load {{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}"
3
- {{#if _doNavigationTracking}}
4
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{_clickLabelType}}{{#if _clickLabelPrefix1}}::{{_clickLabelPrefix1}}{{/if}}::{{_clickLabelPrefix2}}-Link geklickt"}]}'
5
- {{/if}}
6
- {{#if this.isFileDownload}}
7
- {{#with this.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.link.secondLevelId}}","clickLabel": "{{this.link.pageName}}"}]}'{{/with}}
8
- {{/if}}
9
- {{#if this.link.isTargetBlank}} target="_blank" rel="noopener{{#if this.link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
10
- {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
11
- >
12
-
13
- {{> @partial-block }}
14
- </a>