hr-design-system-handlebars 1.83.10 → 1.83.12
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 +24 -0
- package/dist/assets/index.css +7 -3
- package/dist/assets/js/components/social_sharing/socialSharingHandler.alpine.js +15 -1
- package/dist/views/components/page/base/page_wrapper.hbs +1 -1
- package/dist/views/components/page/story/story_article.hbs +2 -1
- package/dist/views/components/social_sharing/social_sharing_copytext.hbs +8 -1
- package/dist/views/components/social_sharing/social_sharing_horizontal.hbs +3 -1
- package/dist/views/components/social_sharing/social_sharing_mobile.hbs +1 -0
- package/dist/views_static/components/page/base/page_wrapper.hbs +1 -1
- package/dist/views_static/components/page/story/story_article.hbs +2 -1
- package/dist/views_static/components/social_sharing/social_sharing_copytext.hbs +8 -1
- package/dist/views_static/components/social_sharing/social_sharing_horizontal.hbs +3 -1
- package/dist/views_static/components/social_sharing/social_sharing_mobile.hbs +1 -0
- package/package.json +1 -1
- package/src/stories/views/components/page/base/page_wrapper.hbs +1 -1
- package/src/stories/views/components/page/story/story_article.hbs +2 -1
- package/src/stories/views/components/page/story/story_main.stories.js +12 -2
- package/src/stories/views/components/social_sharing/socialSharingHandler.alpine.js +15 -1
- package/src/stories/views/components/social_sharing/social_sharing_copytext.hbs +8 -1
- package/src/stories/views/components/social_sharing/social_sharing_horizontal.hbs +3 -1
- package/src/stories/views/components/social_sharing/social_sharing_mobile.hbs +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.83.12 (Wed Jul 24 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- DPE-3264 - Webview: Abstand von Dachzeile nach oben [#1029](https://github.com/mumprod/hr-design-system-handlebars/pull/1029) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.83.11 (Wed Jul 24 2024)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Social Sharing Tracking- first time show added [#1028](https://github.com/mumprod/hr-design-system-handlebars/pull/1028) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v1.83.10 (Tue Jul 23 2024)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3322,7 +3322,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3322
3322
|
border-bottom-color: var(--color-secondary-ds);
|
|
3323
3323
|
}
|
|
3324
3324
|
.counter-reset {
|
|
3325
|
-
counter-reset:
|
|
3325
|
+
counter-reset: cnt1721832713933;
|
|
3326
3326
|
}
|
|
3327
3327
|
.hyphens-auto {
|
|
3328
3328
|
-webkit-hyphens: auto;
|
|
@@ -3730,7 +3730,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3730
3730
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3731
3731
|
}
|
|
3732
3732
|
.-ordered {
|
|
3733
|
-
counter-increment:
|
|
3733
|
+
counter-increment: cnt1721832713933 1;
|
|
3734
3734
|
}
|
|
3735
3735
|
.-ordered::before {
|
|
3736
3736
|
position: absolute;
|
|
@@ -3746,7 +3746,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3746
3746
|
letter-spacing: .0125em;
|
|
3747
3747
|
--tw-text-opacity: 1;
|
|
3748
3748
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3749
|
-
content: counter(
|
|
3749
|
+
content: counter(cnt1721832713933);
|
|
3750
3750
|
}
|
|
3751
3751
|
/*! ****************************/
|
|
3752
3752
|
/*! DataPolicy stuff */
|
|
@@ -6153,6 +6153,10 @@ ul.restrictedToTwo li:nth-of-type(1n + 2) .timelineBorder {
|
|
|
6153
6153
|
margin-right: 1.625rem;
|
|
6154
6154
|
}
|
|
6155
6155
|
|
|
6156
|
+
.sm\:mt-0 {
|
|
6157
|
+
margin-top: 0px;
|
|
6158
|
+
}
|
|
6159
|
+
|
|
6156
6160
|
.sm\:mt-1 {
|
|
6157
6161
|
margin-top: 0.25rem;
|
|
6158
6162
|
}
|
|
@@ -4,7 +4,8 @@ export default (module) => ({
|
|
|
4
4
|
open: false,
|
|
5
5
|
sharingIsVisible: true,
|
|
6
6
|
isDesktop: true,
|
|
7
|
-
|
|
7
|
+
sharingModuleWasNeverShown: true,
|
|
8
|
+
desktopSharingModuleWasNeverShown: true,
|
|
8
9
|
toggle() {
|
|
9
10
|
|
|
10
11
|
var isMobileApple = /^iP/.test(navigator.platform) || /^Mac/.test(navigator.platform) && navigator.maxTouchPoints > 4;
|
|
@@ -38,6 +39,19 @@ export default (module) => ({
|
|
|
38
39
|
if(trackClick) {
|
|
39
40
|
uxAction('socialShareClick::'+module+'::sharingIconClose');
|
|
40
41
|
}
|
|
42
|
+
},
|
|
43
|
+
sharingModuleShown(desktop){
|
|
44
|
+
|
|
45
|
+
if(this.sharingModuleWasNeverShown && !desktop){
|
|
46
|
+
console.log('Sharing Module '+module+' was shown for the first time!!!');
|
|
47
|
+
uxAction('socialShareClick::'+module+'::shown');
|
|
48
|
+
this.sharingModuleWasNeverShown = false;
|
|
49
|
+
}
|
|
50
|
+
if(this.desktopSharingModuleWasNeverShown && desktop){
|
|
51
|
+
console.log('Sharing Module '+module+'Desktop was shown for the first time!!!');
|
|
52
|
+
uxAction('socialShareClick::'+module+'Desktop::shown');
|
|
53
|
+
this.desktopSharingModuleWasNeverShown = false;
|
|
54
|
+
}
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="grid grid-page">
|
|
1
|
+
<div class="grid grid-page{{#if _webview}} mt-4 sm:mt-0{{/if}}">
|
|
2
2
|
<{{#if _isArticle}}article{{else}}div{{/if}} class="grid items-baseline bg-white dark:bg-black grid-article">
|
|
3
3
|
{{> @partial-block }}
|
|
4
4
|
</{{#if _isArticle}}article{{else}}div{{/if}}>
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
{{~#with this.socialSharing ~}}
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
x-show="$screen('lg') && $store.sharingIsVisible == false && document.querySelector('.copytextWrapper').offsetHeight > 220"
|
|
4
|
+
x-init=""
|
|
5
|
+
class="{{#unless ../_useSticky}}top-0 {{/unless}}sticky w-10 col-start-2 pt-6 z-100 h-fit"
|
|
6
|
+
x-data="socialSharingHandler('vertical-desktop')"
|
|
7
|
+
x-intersect="sharingModuleShown()"
|
|
8
|
+
ax-load
|
|
9
|
+
x-ignore
|
|
3
10
|
{{#if ../_useSticky}}
|
|
4
11
|
:class="{'top-[142px]': $store.sectionNavIsVisible && $store.subNavIsVisible && $screen('lg') ,
|
|
5
12
|
'top-[106px]': $store.sectionNavIsVisible && !$store.subNavIsVisible && $screen('lg') ,
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
:aria-expanded="open"
|
|
20
20
|
:aria-controls="$id('dropdown-button')"
|
|
21
21
|
aria-label="{{loca "share_linktitle" }}"
|
|
22
|
-
x-show="$store.sharingIsVisible"
|
|
22
|
+
x-show="$store.sharingIsVisible"
|
|
23
|
+
x-intersect="sharingModuleShown()"
|
|
23
24
|
>
|
|
24
25
|
{{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
|
|
25
26
|
</button>
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
:class="{ 'hidden': !$store.sharingIsOpen.metadatabox,'flex': $store.sharingIsOpen.metadatabox }"
|
|
29
30
|
:id="$id('dropdown-button')"
|
|
30
31
|
class="self-center bg-white h-8 absolute right-[50px] md:relative md:right-0 md:h-auto hidden lg:flex"
|
|
32
|
+
x-intersect="sharingModuleShown(true)"
|
|
31
33
|
>
|
|
32
34
|
<ul class="flex gap-3">
|
|
33
35
|
{{> components/social_sharing/social_sharing_icons _socialSharingType="metadatabox" _trackingData=../this.trackingData}}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
:aria-expanded="open"
|
|
19
19
|
:aria-controls="$id('dropdown-button')"
|
|
20
20
|
aria-label='{{loca "share_linktitle" }}'
|
|
21
|
+
x-intersect="sharingModuleShown()"
|
|
21
22
|
>
|
|
22
23
|
{{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
|
|
23
24
|
</button>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div class="grid grid-page">
|
|
1
|
+
<div class="grid grid-page{{#if _webview}} mt-4 sm:mt-0{{/if}}">
|
|
2
2
|
<{{#if _isArticle}}article{{else}}div{{/if}} class="grid items-baseline bg-white dark:bg-black grid-article">
|
|
3
3
|
{{> @partial-block }}
|
|
4
4
|
</{{#if _isArticle}}article{{else}}div{{/if}}>
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
{{~#with this.socialSharing ~}}
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
x-show="$screen('lg') && $store.sharingIsVisible == false && document.querySelector('.copytextWrapper').offsetHeight > 220"
|
|
4
|
+
x-init=""
|
|
5
|
+
class="{{#unless ../_useSticky}}top-0 {{/unless}}sticky w-10 col-start-2 pt-6 z-100 h-fit"
|
|
6
|
+
x-data="socialSharingHandler('vertical-desktop')"
|
|
7
|
+
x-intersect="sharingModuleShown()"
|
|
8
|
+
ax-load
|
|
9
|
+
x-ignore
|
|
3
10
|
{{#if ../_useSticky}}
|
|
4
11
|
:class="{'top-[142px]': $store.sectionNavIsVisible && $store.subNavIsVisible && $screen('lg') ,
|
|
5
12
|
'top-[106px]': $store.sectionNavIsVisible && !$store.subNavIsVisible && $screen('lg') ,
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
:aria-expanded="open"
|
|
20
20
|
:aria-controls="$id('dropdown-button')"
|
|
21
21
|
aria-label="{{loca "share_linktitle" }}"
|
|
22
|
-
x-show="$store.sharingIsVisible"
|
|
22
|
+
x-show="$store.sharingIsVisible"
|
|
23
|
+
x-intersect="sharingModuleShown()"
|
|
23
24
|
>
|
|
24
25
|
{{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
|
|
25
26
|
</button>
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
:class="{ 'hidden': !$store.sharingIsOpen.metadatabox,'flex': $store.sharingIsOpen.metadatabox }"
|
|
29
30
|
:id="$id('dropdown-button')"
|
|
30
31
|
class="self-center bg-white h-8 absolute right-[50px] md:relative md:right-0 md:h-auto hidden lg:flex"
|
|
32
|
+
x-intersect="sharingModuleShown(true)"
|
|
31
33
|
>
|
|
32
34
|
<ul class="flex gap-3">
|
|
33
35
|
{{> components/social_sharing/social_sharing_icons _socialSharingType="metadatabox" _trackingData=../this.trackingData}}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
:aria-expanded="open"
|
|
19
19
|
:aria-controls="$id('dropdown-button')"
|
|
20
20
|
aria-label='{{loca "share_linktitle" }}'
|
|
21
|
+
x-intersect="sharingModuleShown()"
|
|
21
22
|
>
|
|
22
23
|
{{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
|
|
23
24
|
</button>
|
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.83.
|
|
9
|
+
"version": "1.83.12",
|
|
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
|
-
<div class="grid grid-page">
|
|
1
|
+
<div class="grid grid-page{{#if _webview}} mt-4 sm:mt-0{{/if}}">
|
|
2
2
|
<{{#if _isArticle}}article{{else}}div{{/if}} class="grid items-baseline bg-white dark:bg-black grid-article">
|
|
3
3
|
{{> @partial-block }}
|
|
4
4
|
</{{#if _isArticle}}article{{else}}div{{/if}}>
|
|
@@ -11,7 +11,6 @@ const Template = ({ ...args }) => {
|
|
|
11
11
|
// return `<span>${topline}</span>`;
|
|
12
12
|
return story_template({ ...args })
|
|
13
13
|
}
|
|
14
|
-
|
|
15
14
|
export default {
|
|
16
15
|
title: 'Seiten/Artikel',
|
|
17
16
|
}
|
|
@@ -24,7 +23,17 @@ export const Default = {
|
|
|
24
23
|
layout: 'fullscreen',
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
|
-
|
|
26
|
+
export const Webview = {
|
|
27
|
+
render: Template.bind({}),
|
|
28
|
+
name: 'Webview Artikel mit Topline',
|
|
29
|
+
args: {
|
|
30
|
+
...data_story,
|
|
31
|
+
_webview: true
|
|
32
|
+
},
|
|
33
|
+
parameters: {
|
|
34
|
+
layout: 'fullscreen',
|
|
35
|
+
}
|
|
36
|
+
}
|
|
28
37
|
export const WithSquareImage = {
|
|
29
38
|
render: Template.bind({}),
|
|
30
39
|
name: 'Artikel mit 1:1-Bild',
|
|
@@ -72,3 +81,4 @@ export const WithAudio = {
|
|
|
72
81
|
layout: 'fullscreen',
|
|
73
82
|
}
|
|
74
83
|
}
|
|
84
|
+
|
|
@@ -4,7 +4,8 @@ export default (module) => ({
|
|
|
4
4
|
open: false,
|
|
5
5
|
sharingIsVisible: true,
|
|
6
6
|
isDesktop: true,
|
|
7
|
-
|
|
7
|
+
sharingModuleWasNeverShown: true,
|
|
8
|
+
desktopSharingModuleWasNeverShown: true,
|
|
8
9
|
toggle() {
|
|
9
10
|
|
|
10
11
|
var isMobileApple = /^iP/.test(navigator.platform) || /^Mac/.test(navigator.platform) && navigator.maxTouchPoints > 4;
|
|
@@ -38,6 +39,19 @@ export default (module) => ({
|
|
|
38
39
|
if(trackClick) {
|
|
39
40
|
uxAction('socialShareClick::'+module+'::sharingIconClose');
|
|
40
41
|
}
|
|
42
|
+
},
|
|
43
|
+
sharingModuleShown(desktop){
|
|
44
|
+
|
|
45
|
+
if(this.sharingModuleWasNeverShown && !desktop){
|
|
46
|
+
console.log('Sharing Module '+module+' was shown for the first time!!!');
|
|
47
|
+
uxAction('socialShareClick::'+module+'::shown');
|
|
48
|
+
this.sharingModuleWasNeverShown = false;
|
|
49
|
+
}
|
|
50
|
+
if(this.desktopSharingModuleWasNeverShown && desktop){
|
|
51
|
+
console.log('Sharing Module '+module+'Desktop was shown for the first time!!!');
|
|
52
|
+
uxAction('socialShareClick::'+module+'Desktop::shown');
|
|
53
|
+
this.desktopSharingModuleWasNeverShown = false;
|
|
54
|
+
}
|
|
41
55
|
}
|
|
42
56
|
|
|
43
57
|
})
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
{{~#with this.socialSharing ~}}
|
|
2
|
-
<div
|
|
2
|
+
<div
|
|
3
|
+
x-show="$screen('lg') && $store.sharingIsVisible == false && document.querySelector('.copytextWrapper').offsetHeight > 220"
|
|
4
|
+
x-init=""
|
|
5
|
+
class="{{#unless ../_useSticky}}top-0 {{/unless}}sticky w-10 col-start-2 pt-6 z-100 h-fit"
|
|
6
|
+
x-data="socialSharingHandler('vertical-desktop')"
|
|
7
|
+
x-intersect="sharingModuleShown()"
|
|
8
|
+
ax-load
|
|
9
|
+
x-ignore
|
|
3
10
|
{{#if ../_useSticky}}
|
|
4
11
|
:class="{'top-[142px]': $store.sectionNavIsVisible && $store.subNavIsVisible && $screen('lg') ,
|
|
5
12
|
'top-[106px]': $store.sectionNavIsVisible && !$store.subNavIsVisible && $screen('lg') ,
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
:aria-expanded="open"
|
|
20
20
|
:aria-controls="$id('dropdown-button')"
|
|
21
21
|
aria-label="{{loca "share_linktitle" }}"
|
|
22
|
-
x-show="$store.sharingIsVisible"
|
|
22
|
+
x-show="$store.sharingIsVisible"
|
|
23
|
+
x-intersect="sharingModuleShown()"
|
|
23
24
|
>
|
|
24
25
|
{{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
|
|
25
26
|
</button>
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
:class="{ 'hidden': !$store.sharingIsOpen.metadatabox,'flex': $store.sharingIsOpen.metadatabox }"
|
|
29
30
|
:id="$id('dropdown-button')"
|
|
30
31
|
class="self-center bg-white h-8 absolute right-[50px] md:relative md:right-0 md:h-auto hidden lg:flex"
|
|
32
|
+
x-intersect="sharingModuleShown(true)"
|
|
31
33
|
>
|
|
32
34
|
<ul class="flex gap-3">
|
|
33
35
|
{{> components/social_sharing/social_sharing_icons _socialSharingType="metadatabox" _trackingData=../this.trackingData}}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
:aria-expanded="open"
|
|
19
19
|
:aria-controls="$id('dropdown-button')"
|
|
20
20
|
aria-label='{{loca "share_linktitle" }}'
|
|
21
|
+
x-intersect="sharingModuleShown()"
|
|
21
22
|
>
|
|
22
23
|
{{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
|
|
23
24
|
</button>
|