hr-design-system-handlebars 1.52.15 β†’ 1.52.17

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,28 @@
1
+ # v1.52.17 (Fri Jan 26 2024)
2
+
3
+ #### πŸ› Bug Fix
4
+
5
+ - Scrollpfeil bei hauptnavi sichtbar obwohl nicht nΓΆtig [#817](https://github.com/mumprod/hr-design-system-handlebars/pull/817) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
13
+ # v1.52.16 (Fri Jan 26 2024)
14
+
15
+ #### πŸ› Bug Fix
16
+
17
+ - Adjust image spacing in copytext [#819](https://github.com/mumprod/hr-design-system-handlebars/pull/819) (saad.elbaciri@hr.de [@selbaciri](https://github.com/selbaciri))
18
+
19
+ #### Authors: 2
20
+
21
+ - Saad El Baciri ([@selbaciri](https://github.com/selbaciri))
22
+ - selbaciri (saad.elbaciri@hr.de)
23
+
24
+ ---
25
+
1
26
  # v1.52.15 (Fri Jan 26 2024)
2
27
 
3
28
  #### πŸ› Bug Fix
@@ -1665,9 +1665,6 @@ a.link {
1665
1665
  .w-9 {
1666
1666
  width: 2.25rem;
1667
1667
  }
1668
- .w-\[1600px\] {
1669
- width: 1600px;
1670
- }
1671
1668
  .w-\[19px\] {
1672
1669
  width: 19px;
1673
1670
  }
@@ -3261,7 +3258,7 @@ a.link {
3261
3258
  border-bottom-color: var(--color-secondary-ds);
3262
3259
  }
3263
3260
  .counter-reset {
3264
- counter-reset: cnt1706266888562;
3261
+ counter-reset: cnt1706277173374;
3265
3262
  }
3266
3263
  .hyphens-auto {
3267
3264
  -webkit-hyphens: auto;
@@ -3563,7 +3560,7 @@ a.link {
3563
3560
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3564
3561
  }
3565
3562
  .-ordered {
3566
- counter-increment: cnt1706266888562 1;
3563
+ counter-increment: cnt1706277173374 1;
3567
3564
  }
3568
3565
  .-ordered::before {
3569
3566
  position: absolute;
@@ -3579,7 +3576,7 @@ a.link {
3579
3576
  letter-spacing: .0125em;
3580
3577
  --tw-text-opacity: 1;
3581
3578
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3582
- content: counter(cnt1706266888562);
3579
+ content: counter(cnt1706277173374);
3583
3580
  }
3584
3581
  /*! ****************************/
3585
3582
  /*! DataPolicy stuff */
@@ -5414,6 +5411,11 @@ a.link {
5414
5411
  margin-bottom: 1.25rem;
5415
5412
  }
5416
5413
 
5414
+ .sm480\:my-7 {
5415
+ margin-top: 1.75rem;
5416
+ margin-bottom: 1.75rem;
5417
+ }
5418
+
5417
5419
  .sm480\:mb-7 {
5418
5420
  margin-bottom: 1.75rem;
5419
5421
  }
@@ -5422,8 +5424,8 @@ a.link {
5422
5424
  margin-left: 2rem;
5423
5425
  }
5424
5426
 
5425
- .sm480\:mr-4 {
5426
- margin-right: 1rem;
5427
+ .sm480\:mr-5 {
5428
+ margin-right: 1.25rem;
5427
5429
  }
5428
5430
 
5429
5431
  .sm480\:mt-4 {
@@ -25,6 +25,24 @@ export default function slider() {
25
25
  checkIfScrollable(e){
26
26
  e.scrollWidth > e.clientWidth ? this.isScrollable=true : this.isScrollable=false;
27
27
  this.arrowsDisplay(e);
28
+ },
29
+ throttle(f, delay) {
30
+ let timer = 0;
31
+ return function(...args) {
32
+ clearTimeout(timer);
33
+ timer = setTimeout(() => f.apply(this, args), delay);
34
+ }
35
+ },
36
+ initialize(e) {
37
+ this.checkIfScrollable(e);
38
+
39
+ const resizeObserver = new ResizeObserver(this.throttle((entries) => {
40
+ entries.forEach(entry => {
41
+ this.checkIfScrollable(e);
42
+ });
43
+ }, 100));
44
+
45
+ resizeObserver.observe(e);
28
46
  }
29
47
  };
30
48
  }
@@ -1,4 +1,4 @@
1
- <figure class="relative mt-6 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
1
+ <figure class="relative my-6 sm480:my-7 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
2
2
  {{#if _noAr }}
3
3
  {{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
4
4
  {{else}}
@@ -7,7 +7,7 @@
7
7
  _isWebview=../../_isWebview}}
8
8
  {{else}}
9
9
  {{> components/content/copytext/components/image/figure
10
- _cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
10
+ _cssClass="sm480:mr-5 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
11
11
  _type="story"
12
12
  _variant="copytext-portrait"
13
13
  _noAr="true"
@@ -22,7 +22,7 @@
22
22
  _isWebview=../../_isWebview}}
23
23
  {{else}}
24
24
  {{> components/content/copytext/components/image/figure
25
- _cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
25
+ _cssClass="sm480:mr-5 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
26
26
  _type="story"
27
27
  _variant="copytext"
28
28
  _pictureAddClass="ar-16-9"
@@ -1,6 +1,5 @@
1
1
  <div x-data="slider()"
2
- x-init="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
3
- @resize.window="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
2
+ x-init="initialize($refs.scrollContainer_{{getRandom}})"
4
3
  class="relative w-full"
5
4
  ax-load
6
5
  x-ignore
@@ -1,9 +1,18 @@
1
1
  <div class="w-full h-auto mb-10">
2
2
  {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
3
3
 
4
- <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white w-[1600px] bg-primary">
4
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
5
5
  <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann. Die Pfeile werden dynamisch angezeigt/ausgeblendet sobald der Rand des Inhalts erreicht ist. </p>
6
6
  </div>
7
7
 
8
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
+ </div>
10
+ <div class="w-full h-auto mb-10">
11
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
12
+
13
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
14
+ <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann.</p>
15
+ </div>
16
+
8
17
  {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
18
  </div>
@@ -1,4 +1,4 @@
1
- <figure class="relative mt-6 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
1
+ <figure class="relative my-6 sm480:my-7 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
2
2
  {{#if _noAr }}
3
3
  {{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
4
4
  {{else}}
@@ -7,7 +7,7 @@
7
7
  _isWebview=../../_isWebview}}
8
8
  {{else}}
9
9
  {{> components/content/copytext/components/image/figure
10
- _cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
10
+ _cssClass="sm480:mr-5 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
11
11
  _type="story"
12
12
  _variant="copytext-portrait"
13
13
  _noAr="true"
@@ -22,7 +22,7 @@
22
22
  _isWebview=../../_isWebview}}
23
23
  {{else}}
24
24
  {{> components/content/copytext/components/image/figure
25
- _cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
25
+ _cssClass="sm480:mr-5 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
26
26
  _type="story"
27
27
  _variant="copytext"
28
28
  _pictureAddClass="ar-16-9"
@@ -1,6 +1,5 @@
1
1
  <div x-data="slider()"
2
- x-init="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
3
- @resize.window="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
2
+ x-init="initialize($refs.scrollContainer_{{getRandom}})"
4
3
  class="relative w-full"
5
4
  ax-load
6
5
  x-ignore
@@ -1,9 +1,18 @@
1
1
  <div class="w-full h-auto mb-10">
2
2
  {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
3
3
 
4
- <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white w-[1600px] bg-primary">
4
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
5
5
  <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann. Die Pfeile werden dynamisch angezeigt/ausgeblendet sobald der Rand des Inhalts erreicht ist. </p>
6
6
  </div>
7
7
 
8
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
+ </div>
10
+ <div class="w-full h-auto mb-10">
11
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
12
+
13
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
14
+ <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann.</p>
15
+ </div>
16
+
8
17
  {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
18
  </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": "1.52.15",
9
+ "version": "1.52.17",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,4 +1,4 @@
1
- <figure class="relative mt-6 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
1
+ <figure class="relative my-6 sm480:my-7 -mx-4 sm480:mx-0 {{#if _cssClasses}} {{_cssClasses}}{{/if}} {{_cssClass}}">
2
2
  {{#if _noAr }}
3
3
  {{> components/base/image/responsive_image _type=_type _variant=_variant _addClass=_pictureAddClass _isWebview=_isWebview _noDelay=_noDelay}}
4
4
  {{else}}
@@ -7,7 +7,7 @@
7
7
  _isWebview=../../_isWebview}}
8
8
  {{else}}
9
9
  {{> components/content/copytext/components/image/figure
10
- _cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
10
+ _cssClass="sm480:mr-5 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
11
11
  _type="story"
12
12
  _variant="copytext-portrait"
13
13
  _noAr="true"
@@ -22,7 +22,7 @@
22
22
  _isWebview=../../_isWebview}}
23
23
  {{else}}
24
24
  {{> components/content/copytext/components/image/figure
25
- _cssClass="sm480:mr-4 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
25
+ _cssClass="sm480:mr-5 sm480:w-1/2 w-auto flex-col float-none sm480:float-left break-inside-avoid page-break-inside-avoid"
26
26
  _type="story"
27
27
  _variant="copytext"
28
28
  _pictureAddClass="ar-16-9"
@@ -25,6 +25,24 @@ export default function slider() {
25
25
  checkIfScrollable(e){
26
26
  e.scrollWidth > e.clientWidth ? this.isScrollable=true : this.isScrollable=false;
27
27
  this.arrowsDisplay(e);
28
+ },
29
+ throttle(f, delay) {
30
+ let timer = 0;
31
+ return function(...args) {
32
+ clearTimeout(timer);
33
+ timer = setTimeout(() => f.apply(this, args), delay);
34
+ }
35
+ },
36
+ initialize(e) {
37
+ this.checkIfScrollable(e);
38
+
39
+ const resizeObserver = new ResizeObserver(this.throttle((entries) => {
40
+ entries.forEach(entry => {
41
+ this.checkIfScrollable(e);
42
+ });
43
+ }, 100));
44
+
45
+ resizeObserver.observe(e);
28
46
  }
29
47
  };
30
48
  }
@@ -1,6 +1,5 @@
1
1
  <div x-data="slider()"
2
- x-init="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
3
- @resize.window="checkIfScrollable($refs.scrollContainer_{{getRandom}})"
2
+ x-init="initialize($refs.scrollContainer_{{getRandom}})"
4
3
  class="relative w-full"
5
4
  ax-load
6
5
  x-ignore
@@ -1,9 +1,18 @@
1
1
  <div class="w-full h-auto mb-10">
2
2
  {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
3
3
 
4
- <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white w-[1600px] bg-primary">
4
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
5
5
  <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann. Die Pfeile werden dynamisch angezeigt/ausgeblendet sobald der Rand des Inhalts erreicht ist. </p>
6
6
  </div>
7
7
 
8
+ {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
+ </div>
10
+ <div class="w-full h-auto mb-10">
11
+ {{#> components/horizontal_scroll_container/horizontal_scroll_container _viewport="xs" _onDarkBackground="true" _bgcolor="var(--color-navigation-bg)" _iconcolor="navigation-icons"}}
12
+
13
+ <div class="flex h-auto p-4 pr-10 text-lg leading-6 text-white bg-primary">
14
+ <p class="whitespace-nowrap ">Guten Tag. Dieses Div kann mittels click auf die Pfeiltasten verschoben werden kann.</p>
15
+ </div>
16
+
8
17
  {{/components/horizontal_scroll_container/horizontal_scroll_container}}
9
18
  </div>