hr-design-system-handlebars 1.47.0 → 1.47.1

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
+ # v1.47.1 (Mon Oct 30 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - indextext:title not mandatory, accordion:strip html [#743](https://github.com/mumprod/hr-design-system-handlebars/pull/743) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
1
13
  # v1.47.0 (Fri Oct 27 2023)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -466,6 +466,10 @@ var helpers = {
466
466
 
467
467
  return tokenStr
468
468
  },
469
+
470
+ 'strip': function (input, param) {
471
+ return input
472
+ },
469
473
  }
470
474
 
471
475
  // Export helpers
@@ -3044,7 +3044,7 @@ video {
3044
3044
  border-bottom-color: var(--color-secondary-ds);
3045
3045
  }
3046
3046
  .counter-reset {
3047
- counter-reset: cnt1698404940065;
3047
+ counter-reset: cnt1698698179379;
3048
3048
  }
3049
3049
  .hyphens-auto {
3050
3050
  -webkit-hyphens: auto;
@@ -3307,7 +3307,7 @@ video {
3307
3307
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3308
3308
  }
3309
3309
  .-ordered {
3310
- counter-increment: cnt1698404940065 1;
3310
+ counter-increment: cnt1698698179379 1;
3311
3311
  }
3312
3312
  .-ordered::before {
3313
3313
  position: absolute;
@@ -3323,7 +3323,7 @@ video {
3323
3323
  letter-spacing: .0125em;
3324
3324
  --tw-text-opacity: 1;
3325
3325
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3326
- content: counter(cnt1698404940065);
3326
+ content: counter(cnt1698698179379);
3327
3327
  }
3328
3328
  /*! ****************************/
3329
3329
  /*! DataPolicy stuff */
@@ -8,8 +8,8 @@
8
8
  <button type="button"
9
9
  class="w-full text-left accordion link-focus"
10
10
  @click="selected !== {{nextRandom}} ? (selected = {{getRandom}}, setTimeout(() => {if($el.getBoundingClientRect().top<0){$el.scrollIntoView({ block: 'start' })}}, 700)) : selected = null"
11
- x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{this.text}} schließen' : 'Abschnitt {{this.text}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
12
- data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{this.text}}-Link geklickt"}]}'
11
+ x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{strip this.text html}} schließen' : 'Abschnitt {{strip this.text html}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
12
+ data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{strip this.text html}}-Link geklickt"}]}'
13
13
  aria-controls="accordionItem{{getRandom}}"
14
14
  >
15
15
  <div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
@@ -8,14 +8,16 @@
8
8
  }}
9
9
  '
10
10
  >
11
- <h3
12
- class='text-2xl md:text-4xl font-title
13
- {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
14
- >
15
- {{this.title}}
16
- </h3>
11
+ {{#if this.title}}
12
+ <h3
13
+ class='text-2xl md:text-4xl font-title
14
+ {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
15
+ >
16
+ {{this.title}}
17
+ </h3>
18
+ {{/if}}
17
19
  <p
18
- class='mt-6 text-sm md:text-base font-copy
20
+ class='{{#if this.title}}mt-6 {{/if}}text-sm md:text-base font-copy
19
21
  {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
20
22
  >
21
23
  {{{this.shorttext}}}
@@ -8,8 +8,8 @@
8
8
  <button type="button"
9
9
  class="w-full text-left accordion link-focus"
10
10
  @click="selected !== {{nextRandom}} ? (selected = {{getRandom}}, setTimeout(() => {if($el.getBoundingClientRect().top<0){$el.scrollIntoView({ block: 'start' })}}, 700)) : selected = null"
11
- x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{this.text}} schließen' : 'Abschnitt {{this.text}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
12
- data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{this.text}}-Link geklickt"}]}'
11
+ x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{strip this.text html}} schließen' : 'Abschnitt {{strip this.text html}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
12
+ data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{strip this.text html}}-Link geklickt"}]}'
13
13
  aria-controls="accordionItem{{getRandom}}"
14
14
  >
15
15
  <div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
@@ -8,14 +8,16 @@
8
8
  }}
9
9
  '
10
10
  >
11
- <h3
12
- class='text-2xl md:text-4xl font-title
13
- {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
14
- >
15
- {{this.title}}
16
- </h3>
11
+ {{#if this.title}}
12
+ <h3
13
+ class='text-2xl md:text-4xl font-title
14
+ {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
15
+ >
16
+ {{this.title}}
17
+ </h3>
18
+ {{/if}}
17
19
  <p
18
- class='mt-6 text-sm md:text-base font-copy
20
+ class='{{#if this.title}}mt-6 {{/if}}text-sm md:text-base font-copy
19
21
  {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
20
22
  >
21
23
  {{{this.shorttext}}}
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": "1.47.0",
9
+ "version": "1.47.1",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -8,8 +8,8 @@
8
8
  <button type="button"
9
9
  class="w-full text-left accordion link-focus"
10
10
  @click="selected !== {{nextRandom}} ? (selected = {{getRandom}}, setTimeout(() => {if($el.getBoundingClientRect().top<0){$el.scrollIntoView({ block: 'start' })}}, 700)) : selected = null"
11
- x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{this.text}} schließen' : 'Abschnitt {{this.text}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
12
- data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{this.text}}-Link geklickt"}]}'
11
+ x-effect="$el.setAttribute('aria-label', selected == {{getRandom}} ? 'Abschnitt {{strip this.text html}} schließen' : 'Abschnitt {{strip this.text html}} öffnen');$el.setAttribute('aria-expanded', selected == {{getRandom}} ? 'true' : 'false')"
12
+ data-hr-click-tracking='{"settings": [{"type": "uxAction", "clickLabel": "Akkordeon::{{strip this.text html}}-Link geklickt"}]}'
13
13
  aria-controls="accordionItem{{getRandom}}"
14
14
  >
15
15
  <div class="flex flex-row justify-between border-t basis-10/12 content-evenly border-gray-alto">
@@ -8,14 +8,16 @@
8
8
  }}
9
9
  '
10
10
  >
11
- <h3
12
- class='text-2xl md:text-4xl font-title
13
- {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
14
- >
15
- {{this.title}}
16
- </h3>
11
+ {{#if this.title}}
12
+ <h3
13
+ class='text-2xl md:text-4xl font-title
14
+ {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
15
+ >
16
+ {{this.title}}
17
+ </h3>
18
+ {{/if}}
17
19
  <p
18
- class='mt-6 text-sm md:text-base font-copy
20
+ class='{{#if this.title}}mt-6 {{/if}}text-sm md:text-base font-copy
19
21
  {{~inline-switch this.teaserType '["highlighted"]' '[" text-white",""]'}}'
20
22
  >
21
23
  {{{this.shorttext}}}