hr-design-system-handlebars 0.92.1 → 0.93.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v0.93.0 (Wed Nov 30 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Feature/dpe 1822: Remove _doTracking, because it is not needed anymore [#406](https://github.com/mumprod/hr-design-system-handlebars/pull/406) ([@mariokinzel](https://github.com/mariokinzel))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@mariokinzel](https://github.com/mariokinzel)
10
+
11
+ ---
12
+
1
13
  # v0.92.1 (Tue Nov 29 2022)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -2253,7 +2253,7 @@ video {
2253
2253
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
2254
2254
  }
2255
2255
  .counter-reset {
2256
- counter-reset: cnt1669737101370;
2256
+ counter-reset: cnt1669798155096;
2257
2257
  }
2258
2258
  .line-clamp-4 {
2259
2259
  overflow: hidden;
@@ -2639,7 +2639,7 @@ video {
2639
2639
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2640
2640
  }
2641
2641
  .-ordered {
2642
- counter-increment: cnt1669737101370 1;
2642
+ counter-increment: cnt1669798155096 1;
2643
2643
  }
2644
2644
  .-ordered::before {
2645
2645
  position: absolute;
@@ -2655,7 +2655,7 @@ video {
2655
2655
  letter-spacing: .0125em;
2656
2656
  --tw-text-opacity: 1;
2657
2657
  color: rgba(0, 0, 0, var(--tw-text-opacity));
2658
- content: counter(cnt1669737101370);
2658
+ content: counter(cnt1669798155096);
2659
2659
  }
2660
2660
  .\[-T\:\+Z\] {
2661
2661
  --t: +Z;
@@ -1,15 +1,11 @@
1
1
  {{#with this.link}}
2
2
  <a {{#with this.webviewUrl}}data-webviewurl="{{this}}"{{/with}} href="{{this.url}}" {{#with this.webviewUrl}}{{/with}}
3
- class="sb-link{{#if ../_css}} {{../_css}}{{/if}}{{#if ../_doTracking}} js-load{{else}}{{#if ../this.content.isFileDownload}} js-loadScript{{/if}}{{/if}}{{#if ../_isSelected}} {{defaultIfEmpty ../_selectedCssClass "-current"}}{{/if}}"
3
+ class="sb-link{{#if ../_css}} {{../_css}}{{/if}} {{#if ../this.content.isFileDownload}} js-load{{/if}}{{#if ../_isSelected}} {{defaultIfEmpty ../_selectedCssClass "-current"}}{{/if}}"
4
4
  {{#if ../_doNavigationTracking}}
5
5
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{../_clickLabelType}}{{#if ../_clickLabelPrefix1}}::{{../_clickLabelPrefix1}}{{/if}}::{{../_clickLabelPrefix2}}-Link geklickt"}]}'
6
6
  {{/if}}
7
- {{#if ../_doTracking}}
8
- {{#with this.content.trackingData}}data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{#if ../this.content.isFileDownload}}{{this.pageName}}{{else}}mediabuttonclick::{{../../_clickLabelPrefix1}}::{{../../_clickLabelPrefix2}}{{/if}}"}]}'{{/with}}
9
- {{else}}
10
- {{#if ../this.content.isFileDownload}}
11
- {{#with this.content.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{this.pageName}}"}]}'{{/with}}
12
- {{/if}}
7
+ {{#if ../this.content.isFileDownload}}
8
+ {{#with this.content.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{this.pageName}}"}]}'{{/with}}
13
9
  {{/if}}
14
10
  {{#if this.isTargetBlank}} target="_blank" rel="noopener{{#if this.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
15
11
  {{#if ../_isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
@@ -13,9 +13,7 @@
13
13
  {{~#if ../_isCopyText~}}
14
14
  {{~> 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 ~}}
15
15
  {{else}}
16
- {{#decorator 'components/base/link' _cssClasses="c-teaser__mediaLink" _isAriaHidden=true
17
- _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize
18
- _clickLabelPrefix2="mediaLink" }}
16
+ {{#decorator 'components/base/link' _cssClasses="c-teaser__mediaLink" _isAriaHidden=true }}
19
17
  {{~> 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 ~}}
20
18
  {{/decorator }}
21
19
  {{/if}}
@@ -1,5 +1,5 @@
1
1
 
2
- {{#decorator 'components/base/link' _css="group" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1="clusterTeaserLink" _clickLabelPrefix2="Link" }}
2
+ {{#decorator 'components/base/link' _css="group" }}
3
3
  {{> components/teaser/components/teaser_heading
4
4
  _headlineTag="h1"
5
5
  _label=this.label
@@ -1,6 +1,6 @@
1
1
  <div class="{{~#if this.isMobile1to1}}basis-3/5 md:flex-full{{/if~}}{{#if _outerCssClasses}} {{_outerCssClasses}}{{/if}}">
2
2
  <header class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
3
- {{#decorator 'components/base/link' _css="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2='headlineLink' }}
3
+ {{#decorator 'components/base/link' _css="hover:text-toplineColor" }}
4
4
  {{> components/teaser/components/teaser_heading
5
5
  _fontVariant=this.headingFontVariant
6
6
  _headlineTag=this.headlineTag
@@ -1,6 +1,6 @@
1
1
  {{#with this.commentLink}}
2
2
  <span class="whitespace-nowrap">
3
- {{#decorator 'components/base/link' _css="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="comment" }}
3
+ {{#decorator 'components/base/link' _css="hover:underline decoration-1" _isAriaHidden=true}}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
6
6
  <span class="text-toplineColor">{{../../this.commentNumber}}</span>
@@ -6,12 +6,12 @@
6
6
  {{/with~}}
7
7
  {{/unless}}
8
8
  {{/unless}}
9
- {{#decorator 'components/base/link' _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2='mediaLink' }}
9
+ {{#decorator 'components/base/link' _isAriaHidden=true}}
10
10
  {{~> components/base/image/responsive_image this.teaserImage _type=this.teaserType _variant=this.imageVariant _noDelay=../this.dontLazyload _addClassImg="" ~}}
11
11
  {{/decorator}}
12
12
  {{#if this.isProgram}}
13
13
  {{#if this.showMediatheksLink}}
14
- {{#decorator 'components/base/link' _isAriaHidden=true _doTracking='true' _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink"}}
14
+ {{#decorator 'components/base/link' _isAriaHidden=true}}
15
15
  {{> components/button/button_round
16
16
  _isButton="true"
17
17
  _addClass='absolute bottom-0 right-0 fill-white hover:text-white js-mediaplayer__button my-5 mx-5'
@@ -1,11 +1,11 @@
1
- {{#decorator 'components/base/link' _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="teasertextLink" }}
1
+ {{#decorator 'components/base/link'}}
2
2
  <span class='flex space-around {{inline-switch _size '["25"]' '["hidden ","hidden md:block "]'~}}
3
3
  text-base mt-3 font-copy'>
4
4
  {{~_text~}}
5
5
  </span>
6
6
  {{/decorator}}
7
7
  {{#if this.isExtOrBrandLink}}
8
- {{#decorator 'components/base/link' _css="inline-flex flex-end text-link hover:text-link" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="moreLink"}}
8
+ {{#decorator 'components/base/link' _css="inline-flex flex-end text-link hover:text-link"}}
9
9
  <span class="inline-flex flex-wrap items-end hover:underline decoration-1">{{this.link.readMoreText.readMore}}{{~#if this.link.hasIcon}}{{> components/base/image/icon _icon=this.link.iconName _iconmap="icons" _addClass="w-5 h-5 fill-current ml-1"}}{{/if~}}</span>
10
10
  {{/decorator}}
11
11
  {{/if}}
@@ -7,7 +7,7 @@
7
7
  {{> components/teaser/components/teaser_heading _headlineTag="h2" _label=this.label _readMore=this.link.readMoreText.readMoreScreenreader _size=this.teaserSize _title=this.title _topline=this.topline _teaserType=this.teaserType _font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
8
8
  </div>
9
9
  </div>
10
- {{#decorator 'components/base/link' _css="absolute flex w-full h-full justify-center" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink" }}
10
+ {{#decorator 'components/base/link' _css="absolute flex w-full h-full justify-center" _isAriaHidden=true }}
11
11
  <div class="self-end px-4 py-2.5 {{inline-switch this.teaserSize '["33","50"]' '["mb-7","mb-7 md:mb-16"]'}} text-white border border-white font-heading hover:bg-white hover:text-toplineColor hover:border-toplineColor">{{this.link.readMoreText.readMoreLong}}</div>
12
12
  {{/decorator}}
13
13
  <span class="sr-only">{{this.link.readMoreText.readMoreLong}}: {{this.title}}</span>
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.92.1",
9
+ "version": "0.93.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "start-storybook -p 6006 public",
@@ -200,16 +200,13 @@ Die Namen von Parametern in Handlebar-Komponenten sind, anders als der Datainame
200
200
  <div class="bg-red-200 !mt-4 p-4">
201
201
  <h4 class="!text-red-900 font-bold">Falsch</h4>
202
202
  <pre class="!bg-white !leading-8 !p-4">
203
- &#123;&#123;#>components/base/link CssClasses="" IsAriaHidden=true do-tracking=(if
204
- this.doTracking 'true') click_label_prefix1=this.realTeasersize
205
- ClickLabelPrefix2="mediaLink"&#125;&#125;
203
+ &#123;&#123;#>components/base/link CssClasses="" IsAriaHidden=true
206
204
  </pre>
207
205
  </div>
208
206
  <div class="bg-green-200 !mt-4 p-4">
209
207
  <h4 class="!text-green-900 font-bold">Korrekt</h4>
210
208
  <pre class="!bg-white !p-4 !leading-8">
211
- &#123;&#123;#>components/base/link cssClasses="" isAriaHidden=true doTracking=(if
212
- this.doTracking 'true') clickLabelPrefix1=this.realTeasersize
209
+ &#123;&#123;#>components/base/link cssClasses="" isAriaHidden=true
213
210
  clickLabelPrefix2="mediaLink"&#125;&#125;
214
211
  </pre>
215
212
  </div>
@@ -1,15 +1,11 @@
1
1
  {{#with this.link}}
2
2
  <a {{#with this.webviewUrl}}data-webviewurl="{{this}}"{{/with}} href="{{this.url}}" {{#with this.webviewUrl}}{{/with}}
3
- class="sb-link{{#if ../_css}} {{../_css}}{{/if}}{{#if ../_doTracking}} js-load{{else}}{{#if ../this.content.isFileDownload}} js-loadScript{{/if}}{{/if}}{{#if ../_isSelected}} {{defaultIfEmpty ../_selectedCssClass "-current"}}{{/if}}"
3
+ class="sb-link{{#if ../_css}} {{../_css}}{{/if}} {{#if ../this.content.isFileDownload}} js-load{{/if}}{{#if ../_isSelected}} {{defaultIfEmpty ../_selectedCssClass "-current"}}{{/if}}"
4
4
  {{#if ../_doNavigationTracking}}
5
5
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "1","clickLabel":"{{../_clickLabelType}}{{#if ../_clickLabelPrefix1}}::{{../_clickLabelPrefix1}}{{/if}}::{{../_clickLabelPrefix2}}-Link geklickt"}]}'
6
6
  {{/if}}
7
- {{#if ../_doTracking}}
8
- {{#with this.content.trackingData}}data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{#if ../this.content.isFileDownload}}{{this.pageName}}{{else}}mediabuttonclick::{{../../_clickLabelPrefix1}}::{{../../_clickLabelPrefix2}}{{/if}}"}]}'{{/with}}
9
- {{else}}
10
- {{#if ../this.content.isFileDownload}}
11
- {{#with this.content.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{this.pageName}}"}]}'{{/with}}
12
- {{/if}}
7
+ {{#if ../this.content.isFileDownload}}
8
+ {{#with this.content.trackingData}}data-hr-click-tracking='{"settings": [{"type":"download","secondLevelId": "{{this.secondLevelId}}","clickLabel": "{{this.pageName}}"}]}'{{/with}}
13
9
  {{/if}}
14
10
  {{#if this.isTargetBlank}} target="_blank" rel="noopener{{#if this.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
15
11
  {{#if ../_isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
@@ -13,9 +13,7 @@
13
13
  {{~#if ../_isCopyText~}}
14
14
  {{~> 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 ~}}
15
15
  {{else}}
16
- {{#decorator 'components/base/link' _cssClasses="c-teaser__mediaLink" _isAriaHidden=true
17
- _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize
18
- _clickLabelPrefix2="mediaLink" }}
16
+ {{#decorator 'components/base/link' _cssClasses="c-teaser__mediaLink" _isAriaHidden=true }}
19
17
  {{~> 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 ~}}
20
18
  {{/decorator }}
21
19
  {{/if}}
@@ -1,5 +1,5 @@
1
1
 
2
- {{#decorator 'components/base/link' _css="group" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1="clusterTeaserLink" _clickLabelPrefix2="Link" }}
2
+ {{#decorator 'components/base/link' _css="group" }}
3
3
  {{> components/teaser/components/teaser_heading
4
4
  _headlineTag="h1"
5
5
  _label=this.label
@@ -1,6 +1,6 @@
1
1
  <div class="{{~#if this.isMobile1to1}}basis-3/5 md:flex-full{{/if~}}{{#if _outerCssClasses}} {{_outerCssClasses}}{{/if}}">
2
2
  <header class="md:px-0{{#unless this.isMobile1to1}} px-5{{/unless}}">
3
- {{#decorator 'components/base/link' _css="hover:text-toplineColor" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2='headlineLink' }}
3
+ {{#decorator 'components/base/link' _css="hover:text-toplineColor" }}
4
4
  {{> components/teaser/components/teaser_heading
5
5
  _fontVariant=this.headingFontVariant
6
6
  _headlineTag=this.headlineTag
@@ -1,6 +1,6 @@
1
1
  {{#with this.commentLink}}
2
2
  <span class="whitespace-nowrap">
3
- {{#decorator 'components/base/link' _css="hover:underline decoration-1" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="comment" }}
3
+ {{#decorator 'components/base/link' _css="hover:underline decoration-1" _isAriaHidden=true}}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
6
6
  <span class="text-toplineColor">{{../../this.commentNumber}}</span>
@@ -6,12 +6,12 @@
6
6
  {{/with~}}
7
7
  {{/unless}}
8
8
  {{/unless}}
9
- {{#decorator 'components/base/link' _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2='mediaLink' }}
9
+ {{#decorator 'components/base/link' _isAriaHidden=true}}
10
10
  {{~> components/base/image/responsive_image this.teaserImage _type=this.teaserType _variant=this.imageVariant _noDelay=../this.dontLazyload _addClassImg="" ~}}
11
11
  {{/decorator}}
12
12
  {{#if this.isProgram}}
13
13
  {{#if this.showMediatheksLink}}
14
- {{#decorator 'components/base/link' _isAriaHidden=true _doTracking='true' _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink"}}
14
+ {{#decorator 'components/base/link' _isAriaHidden=true}}
15
15
  {{> components/button/button_round
16
16
  _isButton="true"
17
17
  _addClass='absolute bottom-0 right-0 fill-white hover:text-white js-mediaplayer__button my-5 mx-5'
@@ -1,11 +1,11 @@
1
- {{#decorator 'components/base/link' _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="teasertextLink" }}
1
+ {{#decorator 'components/base/link'}}
2
2
  <span class='flex space-around {{inline-switch _size '["25"]' '["hidden ","hidden md:block "]'~}}
3
3
  text-base mt-3 font-copy'>
4
4
  {{~_text~}}
5
5
  </span>
6
6
  {{/decorator}}
7
7
  {{#if this.isExtOrBrandLink}}
8
- {{#decorator 'components/base/link' _css="inline-flex flex-end text-link hover:text-link" _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="moreLink"}}
8
+ {{#decorator 'components/base/link' _css="inline-flex flex-end text-link hover:text-link"}}
9
9
  <span class="inline-flex flex-wrap items-end hover:underline decoration-1">{{this.link.readMoreText.readMore}}{{~#if this.link.hasIcon}}{{> components/base/image/icon _icon=this.link.iconName _iconmap="icons" _addClass="w-5 h-5 fill-current ml-1"}}{{/if~}}</span>
10
10
  {{/decorator}}
11
11
  {{/if}}
@@ -7,7 +7,7 @@
7
7
  {{> components/teaser/components/teaser_heading _headlineTag="h2" _label=this.label _readMore=this.link.readMoreText.readMoreScreenreader _size=this.teaserSize _title=this.title _topline=this.topline _teaserType=this.teaserType _font=(inline-switch isSerifHeading '[true, false]' '["font-headingSerif","font-heading font-bold"]') }}
8
8
  </div>
9
9
  </div>
10
- {{#decorator 'components/base/link' _css="absolute flex w-full h-full justify-center" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.teaserSize _clickLabelPrefix2="mediaLink" }}
10
+ {{#decorator 'components/base/link' _css="absolute flex w-full h-full justify-center" _isAriaHidden=true }}
11
11
  <div class="self-end px-4 py-2.5 {{inline-switch this.teaserSize '["33","50"]' '["mb-7","mb-7 md:mb-16"]'}} text-white border border-white font-heading hover:bg-white hover:text-toplineColor hover:border-toplineColor">{{this.link.readMoreText.readMoreLong}}</div>
12
12
  {{/decorator}}
13
13
  <span class="sr-only">{{this.link.readMoreText.readMoreLong}}: {{this.title}}</span>
@@ -81,7 +81,6 @@ Die Poster-Teaser-Komponente benötigt die folgenden json-Daten (enthalten im Te
81
81
  <li><b>teaserImage</b></li>
82
82
  <li><b>content.imageVariant</b></li>
83
83
  <li><b>isSerifHeading</b></li>
84
- <li><b>doTracking</b></li>
85
84
  <li><b>link.readMoreText.readMoreLong</b></li>
86
85
  </ul>
87
86