hr-design-system-handlebars 1.38.1 → 1.38.3

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 (28) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/index.css +20 -3
  3. package/dist/assets/js/components/socialmedia/socialmediaCompact.feature.js +187 -0
  4. package/dist/views/components/article/components/podcast/podcast_episode_article.hbs +5 -5
  5. package/dist/views/components/article/components/podcast/podcast_playlist_all_episodes.hbs +1 -1
  6. package/dist/views/components/article/components/podcast/podcast_playlist_article.hbs +3 -3
  7. package/dist/views/components/socialmedia/socialmedia.hbs +78 -0
  8. package/dist/views/components/socialmedia/socialmedia_compact.hbs +25 -0
  9. package/dist/views/components/socialmedia/socialmedia_compact_icons.hbs +61 -0
  10. package/dist/views_static/components/article/components/podcast/podcast_episode_article.hbs +5 -5
  11. package/dist/views_static/components/article/components/podcast/podcast_playlist_all_episodes.hbs +1 -1
  12. package/dist/views_static/components/article/components/podcast/podcast_playlist_article.hbs +3 -3
  13. package/dist/views_static/components/socialmedia/socialmedia.hbs +78 -0
  14. package/dist/views_static/components/socialmedia/socialmedia_compact.hbs +25 -0
  15. package/dist/views_static/components/socialmedia/socialmedia_compact_icons.hbs +61 -0
  16. package/package.json +1 -1
  17. package/src/assets/fixtures/article/components/podcast/podcast_player_episode.json +6 -0
  18. package/src/assets/fixtures/article/components/podcast/podcast_player_playlist.json +6 -0
  19. package/src/assets/fixtures/socialsharing/socialsharing.inc.json +6 -0
  20. package/src/stories/views/components/article/components/podcast/fixtures/podcast_player_episode.json +1 -1
  21. package/src/stories/views/components/article/components/podcast/fixtures/podcast_player_playlist.json +1 -1
  22. package/src/stories/views/components/article/components/podcast/podcast_episode_article.hbs +5 -5
  23. package/src/stories/views/components/article/components/podcast/podcast_playlist_all_episodes.hbs +1 -1
  24. package/src/stories/views/components/article/components/podcast/podcast_playlist_article.hbs +3 -3
  25. package/src/stories/views/components/socialmedia/socialmedia.hbs +78 -0
  26. package/src/stories/views/components/socialmedia/socialmediaCompact.feature.js +187 -0
  27. package/src/stories/views/components/socialmedia/socialmedia_compact.hbs +25 -0
  28. package/src/stories/views/components/socialmedia/socialmedia_compact_icons.hbs +61 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.38.3 (Fri Sep 08 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - adds a minimal json for socialmedia [#718](https://github.com/mumprod/hr-design-system-handlebars/pull/718) ([@StefanVesper](https://github.com/StefanVesper))
6
+
7
+ #### Authors: 1
8
+
9
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
10
+
11
+ ---
12
+
13
+ # v1.38.2 (Fri Sep 08 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - - ordner und dateien angelegt in sb [#719](https://github.com/mumprod/hr-design-system-handlebars/pull/719) ([@StefanVesper](https://github.com/StefanVesper))
18
+
19
+ #### Authors: 1
20
+
21
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
22
+
23
+ ---
24
+
1
25
  # v1.38.1 (Thu Sep 07 2023)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -1177,6 +1177,10 @@ video {
1177
1177
  .m-auto {
1178
1178
  margin: auto;
1179
1179
  }
1180
+ .-mx-3 {
1181
+ margin-left: -0.75rem;
1182
+ margin-right: -0.75rem;
1183
+ }
1180
1184
  .mx-0 {
1181
1185
  margin-left: 0px;
1182
1186
  margin-right: 0px;
@@ -1335,6 +1339,9 @@ video {
1335
1339
  .mr-4 {
1336
1340
  margin-right: 1rem;
1337
1341
  }
1342
+ .mr-6 {
1343
+ margin-right: 1.5rem;
1344
+ }
1338
1345
  .mt-0 {
1339
1346
  margin-top: 0px;
1340
1347
  }
@@ -1991,6 +1998,10 @@ video {
1991
1998
  .border-none {
1992
1999
  border-style: none;
1993
2000
  }
2001
+ .border-\[\#797979\] {
2002
+ --tw-border-opacity: 1;
2003
+ border-color: rgba(121, 121, 121, var(--tw-border-opacity));
2004
+ }
1994
2005
  .border-\[\#e3e3e3\] {
1995
2006
  --tw-border-opacity: 1;
1996
2007
  border-color: rgba(227, 227, 227, var(--tw-border-opacity));
@@ -2281,6 +2292,9 @@ video {
2281
2292
  .to-purple-100 {
2282
2293
  --tw-gradient-to: #f3e8ff var(--tw-gradient-to-position);
2283
2294
  }
2295
+ .fill-\[\#55acee\] {
2296
+ fill: #55acee;
2297
+ }
2284
2298
  .fill-blue-congress {
2285
2299
  fill: #005293;
2286
2300
  }
@@ -3040,7 +3054,7 @@ video {
3040
3054
  border-bottom-color: var(--color-secondary-ds);
3041
3055
  }
3042
3056
  .counter-reset {
3043
- counter-reset: cnt1694100687720;
3057
+ counter-reset: cnt1694165831182;
3044
3058
  }
3045
3059
  .hyphens-auto {
3046
3060
  -webkit-hyphens: auto;
@@ -3275,7 +3289,7 @@ video {
3275
3289
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3276
3290
  }
3277
3291
  .-ordered {
3278
- counter-increment: cnt1694100687720 1;
3292
+ counter-increment: cnt1694165831182 1;
3279
3293
  }
3280
3294
  .-ordered::before {
3281
3295
  position: absolute;
@@ -3291,7 +3305,7 @@ video {
3291
3305
  letter-spacing: .0125em;
3292
3306
  --tw-text-opacity: 1;
3293
3307
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3294
- content: counter(cnt1694100687720);
3308
+ content: counter(cnt1694165831182);
3295
3309
  }
3296
3310
  /*! ****************************/
3297
3311
  /*! DataPolicy stuff */
@@ -4705,6 +4719,9 @@ video {
4705
4719
  border-color: #fff;
4706
4720
  border-color: var(--color-navigation-border-color);
4707
4721
  }
4722
+ .last\:pb-6:last-child {
4723
+ padding-bottom: 1.5rem;
4724
+ }
4708
4725
  .last\:pr-0:last-child {
4709
4726
  padding-right: 0px;
4710
4727
  }
@@ -0,0 +1,187 @@
1
+ import { fireEvent, getJSONCookie, hr$, listen, setJSONCookie, unlisten } from 'hrQuery'
2
+ import { uxAction } from 'base/tracking/atiHelper.subfeature'
3
+
4
+ const ShareCompact = (context) => {
5
+ const { options } = context
6
+ const { element: rootElement } = context
7
+ const isClosedClass = '-isClosed'
8
+ const mainButton = hr$('.c-shareCompact__mainButton', rootElement)[0]
9
+ const shareButtons = hr$('.c-shareCompact__shareButtons', rootElement)[0]
10
+ const messageDiv = hr$('.c-shareCompact__message', rootElement)[0]
11
+ const { url, title } = options
12
+ const isMobileApple = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)/i)
13
+ const isMobileOther = navigator.userAgent.match(
14
+ /(Android)|(webOS)|(Blackberry)|(Windows Phone)/i
15
+ )
16
+ const isWebview = window.parent.document.documentElement.classList.contains('webview')
17
+ //const isWebview = window.location.href.match(/(app)(\.[a-zA-Z]*)(\.de)/i) //App URL ...app.hr.de
18
+ //const isWebview = window.location.href.match(/(app)/i)
19
+ let cookie = {}
20
+ const trackingCookieLifetime = 1000 * 60 * 60 * 24 * 365 * 10
21
+
22
+ const shareLinks = {
23
+ twitter: hr$('.js-shareLinkTwitter', rootElement)[0],
24
+ facebook: hr$('.js-shareLinkFacebook', rootElement)[0],
25
+ whatsapp: hr$('.js-shareLinkWhatsapp', rootElement)[0],
26
+ mail: hr$('.js-shareLinkMail', rootElement)[0],
27
+ copy2clip: hr$('.js-shareLinkCopy', rootElement)[0],
28
+ }
29
+
30
+ let isClosed = true
31
+ const readAppVersionCookie = function () {
32
+ cookie = getJSONCookie('appSettings') || {}
33
+ }
34
+ const writeAppVersionCookie = function () {
35
+ cookie = '209'
36
+ setJSONCookie('hsAppBuildNumber', cookie, trackingCookieLifetime)
37
+ }
38
+ const closeMenu = () => {
39
+ console.log('closeMenu')
40
+ rootElement.classList.add(isClosedClass)
41
+ shareButtons.classList.add('hide')
42
+ isClosed = true
43
+ }
44
+ const openMenu = () => {
45
+ console.log('openMenu')
46
+ rootElement.classList.remove(isClosedClass)
47
+ shareButtons.classList.remove('hide')
48
+ isClosed = false
49
+ }
50
+ const nativeShare = () => {
51
+ navigator
52
+ .share({
53
+ title,
54
+ url,
55
+ })
56
+ .then(function () {
57
+ console.log('Danke fürs Teilen!')
58
+ })
59
+ .catch(console.error)
60
+ uxAction('newSocialShareClick::mainButton-nativeShare')
61
+ }
62
+ const handleClickOnMainButton = (event) => {
63
+ event.stopPropagation()
64
+ if (isWebview) {
65
+ readAppVersionCookie()
66
+ if (isMobileApple) {
67
+ console.log('apple mobile browser')
68
+ nativeShare()
69
+ } else if (isMobileOther) {
70
+ console.log('non-apple mobile browser')
71
+ /*Check Build Version of App*/
72
+ if (cookie['fireCustomJsShareEvent'] === true) {
73
+ /*Custom Event für App unter Android*/
74
+ fireEvent('hr:global:shareCompactClickAndroidApp', {
75
+ title: title,
76
+ url: url,
77
+ })
78
+ console.log('Custom-Event für Android')
79
+ } else {
80
+ fireEvent('hr:global:shareCompactClick', {
81
+ origin: rootElement,
82
+ currentTarget: event.currentTarget,
83
+ })
84
+ }
85
+ }
86
+ console.log('sharing - for app channel')
87
+ } else {
88
+ if ((navigator.share && isMobileApple) || (navigator.share && isMobileOther)) {
89
+ console.log('native share in mobile view supported')
90
+ nativeShare()
91
+ } else {
92
+ fireEvent('hr:global:shareCompactClick', {
93
+ origin: rootElement,
94
+ currentTarget: event.currentTarget,
95
+ })
96
+ }
97
+ console.log('sharing - no app channel')
98
+ }
99
+ }
100
+
101
+ const copyToClipboard = (event) => {
102
+ const el = document.createElement('textarea')
103
+ el.value = url
104
+ el.setAttribute('readonly', '')
105
+ el.style.position = 'absolute'
106
+ el.style.left = '-9999px'
107
+ document.body.appendChild(el)
108
+ el.select()
109
+ document.execCommand('copy')
110
+ document.body.removeChild(el)
111
+
112
+ messageDiv.classList.remove('hide')
113
+
114
+ window.setTimeout(() => {
115
+ messageDiv.classList.add('hide')
116
+ }, 2000)
117
+ }
118
+
119
+ const checkIfCloseOrOpen = (event) => {
120
+ if (isClosed) {
121
+ if (event.detail.origin === rootElement) {
122
+ uxAction('newSocialShareClick::mainButton-open')
123
+ openMenu()
124
+ listen('click', handleClickOnMainButton, document)
125
+ }
126
+ } else {
127
+ if (event.detail.currentTarget === mainButton) {
128
+ uxAction('newSocialShareClick::mainButton-close')
129
+ } else {
130
+ uxAction('newSocialShareClick::mainButton-close-outside')
131
+ }
132
+ closeMenu()
133
+ unlisten('click', handleClickOnMainButton, document)
134
+ }
135
+ }
136
+ const initializeShareLinksTracking = () => {
137
+ listen(
138
+ 'click',
139
+ function () {
140
+ console.log('twitter')
141
+ uxAction('newSocialShareClick::twitter')
142
+ },
143
+ shareLinks.twitter
144
+ )
145
+ listen(
146
+ 'click',
147
+ function () {
148
+ console.log('facebook')
149
+ uxAction('newSocialShareClick::facebook')
150
+ },
151
+ shareLinks.facebook
152
+ )
153
+ listen(
154
+ 'click',
155
+ function () {
156
+ console.log('whatsapp')
157
+ uxAction('newSocialShareClick::whatsapp')
158
+ },
159
+ shareLinks.whatsapp
160
+ )
161
+ listen(
162
+ 'click',
163
+ function () {
164
+ console.log('mail')
165
+ uxAction('newSocialShareClick::mail')
166
+ },
167
+ shareLinks.mail
168
+ )
169
+ listen(
170
+ 'click',
171
+ function () {
172
+ console.log('copy2clipboard')
173
+ uxAction('newSocialShareClick::copy2clipboard')
174
+ },
175
+ shareLinks.copy2clip
176
+ )
177
+ }
178
+
179
+ listen('hr:global:shareCompactClick', checkIfCloseOrOpen)
180
+ listen('click', handleClickOnMainButton, mainButton)
181
+ listen('click', copyToClipboard, shareLinks.copy2clip)
182
+ initializeShareLinksTracking()
183
+ /*if (isWebview) {
184
+ writeAppVersionCookie()
185
+ }*/
186
+ }
187
+ export default ShareCompact
@@ -19,7 +19,7 @@
19
19
  aria-label='{{loca "appendix_title"}}'>
20
20
  <div class="c-appendix">
21
21
  {{#unless _webview}}
22
- {{~#with this.backLinkUrl ~}}
22
+ {{!-- {{~#with this.backLinkUrl ~}}
23
23
  {{~> components/base/link/backlink _addClass="appendix__backlink" ~}}
24
24
  {{~/with~}}
25
25
 
@@ -29,11 +29,11 @@
29
29
 
30
30
  {{~#with this.topictags ~}}
31
31
  {{~> modules/topictag/topictag-list ~}}
32
- {{~/with~}}
32
+ {{~/with~}} --}}
33
33
 
34
- {{~#with this.socialSharing ~}}
35
- {{~> modules/socialmedia/shareit ~}}
36
- {{~/with~}}
34
+ {{!-- {{~#with this.socialSharing ~}}
35
+ {{~> components/socialmedia/socialmedia ~}}
36
+ {{~/with~}} --}}
37
37
  {{/unless}}
38
38
  </div>
39
39
  </aside>
@@ -11,7 +11,7 @@
11
11
  {{~/with~}}
12
12
 
13
13
  {{~#with this.socialSharing ~}}
14
- {{~> modules/socialmedia/shareit ~}}
14
+ {{~> components/socialmedia/socialmedia ~}}
15
15
  {{~/with~}}
16
16
  {{/unless}}
17
17
  {{~#with this.programReference~}}
@@ -20,13 +20,13 @@
20
20
 
21
21
  <aside class="grid order-2 col-span-3 py-6" aria-label='{{loca "appendix_title"}}'>
22
22
  <div class="c-appendix">
23
- {{#unless _webview}}
23
+ {{!-- {{#unless _webview}}
24
24
  {{~#with this.backLinkUrl ~}}
25
25
  {{~> base/link/backlink _addClass="appendix__backlink" ~}}
26
26
  {{~/with~}}
27
27
 
28
28
  {{~#with this.socialSharing ~}}
29
- {{~> modules/socialmedia/shareit ~}}
29
+ {{~> components/socialmedia/socialmedia ~}}
30
30
  {{~/with~}}
31
31
  {{/unless}}
32
32
  {{~#with this.programReference~}}
@@ -53,7 +53,7 @@
53
53
  </ul>
54
54
  </div>
55
55
  </div>
56
- {{~/with~}}
56
+ {{~/with~}} --}}
57
57
  </div>
58
58
  </aside>
59
59
  </div>
@@ -0,0 +1,78 @@
1
+ <div class="w-full flex px-3 first:border-t last:pb-6 border-[#797979] -socialsharing">
2
+ <div class="flex flex-wrap justify-start p-0 m-0 -mx-3">
3
+ <span class="inline-flex text-2xl font-heading">{{loca "share_headline" }}</span><!--
4
+ -->
5
+ <ul class="flex flex-wrap w-full px-5 lg:px-0 -socialsharing">
6
+ {{~#with this.twitterLink ~}}
7
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
8
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
9
+ href="{{this}}"
10
+ target="_blank"
11
+ rel="noopener noreferrer"
12
+ title="{{loca "share_twitter_linktitle" }}"
13
+ {{#with ../../this.content.trackingData}}
14
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::twitter"}]}'
15
+ {{/with}}
16
+ >
17
+ {{~> components/base/image/icon _addClass="w-8 h-8 rounded-lg fill-[#55acee]" _icon="twitter" _iconmap="icons" ~}}
18
+ </a>
19
+ </li>
20
+ {{~/with~}}
21
+ {{~#with this.facebookLink ~}}
22
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
23
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
24
+ href="{{this}}"
25
+ target="_blank"
26
+ rel="noopener noreferrer"
27
+ title="{{loca "share_facebook_linktitle" }}"
28
+ {{#with ../../this.content.trackingData}}
29
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::facebook"}]}'
30
+ {{/with}}
31
+ >
32
+ {{~> components/base/image/icon _addClass="icon--facebook" _icon="facebook-ds" _iconmap="icons" ~}}
33
+ </a>
34
+ </li>
35
+ {{~/with~}}
36
+ {{~#with this.whatsappLink ~}}
37
+ <li class="inline-flex pl-10 mr-6 lg:ml-0 list__item--whatsapp">
38
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
39
+ href="{{this}}"
40
+ target="_blank"
41
+ rel="noopener noreferrer"
42
+ title="{{loca "share_whatsapp_linktitle" }}"
43
+ {{#with ../../this.content.trackingData}}
44
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::whatsapp"}]}'
45
+ {{/with}}
46
+ >
47
+ {{~> components/base/image/icon _addClass="icon--whatsapp" _icon="whatsapp-ds" _iconmap="icons" ~}}
48
+ </a>
49
+ </li>
50
+ {{~/with~}}
51
+ {{~#with this.mailtoLink ~}}
52
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
53
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
54
+ href="{{this}}"
55
+ title="{{loca "share_mail_linktitle" }}"
56
+ {{#with ../../this.content.trackingData}}
57
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::mailto"}]}'
58
+ {{/with}}
59
+ >
60
+ {{~> components/base/image/icon _addClass="icon--mailto" _icon="mail-ds" _iconmap="icons" ~}}
61
+ </a>
62
+ </li>
63
+ {{~/with~}}
64
+
65
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
66
+ <a class="link--shareIcon touchArea{{#with ../this.content.trackingData}} js-load{{/with}}"
67
+ href="javascript:window.print()"
68
+ title="{{loca "share_print_linktitle" }}"
69
+ {{#with ../this.content.trackingData}}
70
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::printbutton"}]}'
71
+ {{/with}}
72
+ >
73
+ {{~> components/base/image/icon _addClass="icon--print" _icon="print" _iconmap="icons" ~}}
74
+ </a>
75
+ </li>
76
+ </ul>
77
+ </div>
78
+ </div>
@@ -0,0 +1,25 @@
1
+ <div class="c-shareCompact">
2
+ <div class="c-shareCompact__wrapper -isClosed js-share-compact-wrapper js-load"
3
+ data-hr-share-compact='{"title":"{{../this.escapedTitle}}", "url":"{{../this.socialSharingUrl}}" }'>
4
+ <div class="c-shareCompact__mainButton">
5
+ <button class="link--shareIcon touchArea "
6
+ id="{{../this.anchor}}-s"
7
+ rel="noopener noreferrer"
8
+ title="{{loca "share_headline" }}"
9
+ >
10
+ {{~> base/image/icon _addClass="icon--teilen-button" _icon="teilen-button" _iconmap="icons" ~}}
11
+ </button>
12
+
13
+ </div>
14
+ <div class="c-shareCompact__shareButtons hide">
15
+ <ul>
16
+ {{~> modules/socialmedia/shareCompact-icons ~}}
17
+ </ul>
18
+ </div>
19
+ <div class="c-shareCompact__message hide">
20
+ {{~> base/image/icon _addClass="" _icon="status-done" _iconmap="icons" ~}}
21
+ {{loca "ticker_sharing_message" }}
22
+ </div>
23
+ </div>
24
+
25
+ </div>
@@ -0,0 +1,61 @@
1
+ {{~#with this.twitterLink ~}}
2
+ <li class="c-shareCompact__item">
3
+ <a class="c-shareCompact__link touchArea js-shareLinkTwitter"
4
+ href="{{this}}"
5
+ target="_blank"
6
+ rel="noopener noreferrer"
7
+ title="{{loca "share_twitter_linktitle" }}"
8
+ >
9
+ {{~> base/image/icon _addClass="icon--twitter" _icon="twitter" _iconmap="icons" ~}}
10
+ </a>
11
+ </li>
12
+ {{~/with~}}
13
+ {{~#with this.facebookLink ~}}
14
+ <li class="c-shareCompact__item">
15
+ <a class="c-shareCompact__link touchArea js-shareLinkFacebook"
16
+ href="{{this}}"
17
+ target="_blank"
18
+ rel="noopener noreferrer"
19
+ title="{{loca "share_facebook_linktitle" }}"
20
+ >
21
+ {{~> base/image/icon _addClass="icon--facebook" _icon="facebook" _iconmap="icons" ~}}
22
+ </a>
23
+ </li>
24
+ {{~/with~}}
25
+ {{~#with this.whatsappLink ~}}
26
+ <li class="c-shareCompact__item -whatsapp">
27
+ <a class="c-shareCompact__link touchArea js-shareLinkWhatsapp"
28
+ href="{{this}}"
29
+ target="_blank"
30
+ rel="noopener noreferrer"
31
+ title="{{loca "share_whatsapp_linktitle" }}"
32
+ >
33
+ {{~> base/image/icon _addClass="icon--whatsapp" _icon="whatsapp" _iconmap="icons" ~}}
34
+ </a>
35
+ </li>
36
+ {{~/with~}}
37
+ {{~#with this.mailtoLink ~}}
38
+ <li class="c-shareCompact__item ">
39
+ <a class="c-shareCompact__link touchArea js-shareLinkMail"
40
+ href="{{this}}"
41
+ title="{{loca "share_mail_linktitle" }}"
42
+ {{#with ../../this.content.trackingData}}
43
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "newSocialShareClick::compact-mailto"}]}'
44
+ {{/with}}
45
+ >
46
+ {{~> base/image/icon _addClass="icon--mailto" _icon="mail" _iconmap="icons" ~}}
47
+ </a>
48
+ </li>
49
+ {{~/with~}}
50
+
51
+ <li class="c-shareCompact__item -copy">
52
+ <button class="c-shareCompact__link touchArea js-shareLinkCopy"
53
+
54
+ title="{{loca "share_copy_linktitle" }}"
55
+ {{#with ../../this.content.trackingData}}
56
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "newSocialShareClick::compact-copy"}]}'
57
+ {{/with}}
58
+ >
59
+ {{~> base/image/icon _addClass="icon--mailto" _icon="copy" _iconmap="icons" ~}}
60
+ </button>
61
+ </li>
@@ -19,7 +19,7 @@
19
19
  aria-label='{{loca "appendix_title"}}'>
20
20
  <div class="c-appendix">
21
21
  {{#unless _webview}}
22
- {{~#with this.backLinkUrl ~}}
22
+ {{!-- {{~#with this.backLinkUrl ~}}
23
23
  {{~> components/base/link/backlink _addClass="appendix__backlink" ~}}
24
24
  {{~/with~}}
25
25
 
@@ -29,11 +29,11 @@
29
29
 
30
30
  {{~#with this.topictags ~}}
31
31
  {{~> modules/topictag/topictag-list ~}}
32
- {{~/with~}}
32
+ {{~/with~}} --}}
33
33
 
34
- {{~#with this.socialSharing ~}}
35
- {{~> modules/socialmedia/shareit ~}}
36
- {{~/with~}}
34
+ {{!-- {{~#with this.socialSharing ~}}
35
+ {{~> components/socialmedia/socialmedia ~}}
36
+ {{~/with~}} --}}
37
37
  {{/unless}}
38
38
  </div>
39
39
  </aside>
@@ -11,7 +11,7 @@
11
11
  {{~/with~}}
12
12
 
13
13
  {{~#with this.socialSharing ~}}
14
- {{~> modules/socialmedia/shareit ~}}
14
+ {{~> components/socialmedia/socialmedia ~}}
15
15
  {{~/with~}}
16
16
  {{/unless}}
17
17
  {{~#with this.programReference~}}
@@ -20,13 +20,13 @@
20
20
 
21
21
  <aside class="grid order-2 col-span-3 py-6" aria-label='{{loca "appendix_title"}}'>
22
22
  <div class="c-appendix">
23
- {{#unless _webview}}
23
+ {{!-- {{#unless _webview}}
24
24
  {{~#with this.backLinkUrl ~}}
25
25
  {{~> base/link/backlink _addClass="appendix__backlink" ~}}
26
26
  {{~/with~}}
27
27
 
28
28
  {{~#with this.socialSharing ~}}
29
- {{~> modules/socialmedia/shareit ~}}
29
+ {{~> components/socialmedia/socialmedia ~}}
30
30
  {{~/with~}}
31
31
  {{/unless}}
32
32
  {{~#with this.programReference~}}
@@ -53,7 +53,7 @@
53
53
  </ul>
54
54
  </div>
55
55
  </div>
56
- {{~/with~}}
56
+ {{~/with~}} --}}
57
57
  </div>
58
58
  </aside>
59
59
  </div>
@@ -0,0 +1,78 @@
1
+ <div class="w-full flex px-3 first:border-t last:pb-6 border-[#797979] -socialsharing">
2
+ <div class="flex flex-wrap justify-start p-0 m-0 -mx-3">
3
+ <span class="inline-flex text-2xl font-heading">{{loca "share_headline" }}</span><!--
4
+ -->
5
+ <ul class="flex flex-wrap w-full px-5 lg:px-0 -socialsharing">
6
+ {{~#with this.twitterLink ~}}
7
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
8
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
9
+ href="{{this}}"
10
+ target="_blank"
11
+ rel="noopener noreferrer"
12
+ title="{{loca "share_twitter_linktitle" }}"
13
+ {{#with ../../this.content.trackingData}}
14
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::twitter"}]}'
15
+ {{/with}}
16
+ >
17
+ {{~> components/base/image/icon _addClass="w-8 h-8 rounded-lg fill-[#55acee]" _icon="twitter" _iconmap="icons" ~}}
18
+ </a>
19
+ </li>
20
+ {{~/with~}}
21
+ {{~#with this.facebookLink ~}}
22
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
23
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
24
+ href="{{this}}"
25
+ target="_blank"
26
+ rel="noopener noreferrer"
27
+ title="{{loca "share_facebook_linktitle" }}"
28
+ {{#with ../../this.content.trackingData}}
29
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::facebook"}]}'
30
+ {{/with}}
31
+ >
32
+ {{~> components/base/image/icon _addClass="icon--facebook" _icon="facebook-ds" _iconmap="icons" ~}}
33
+ </a>
34
+ </li>
35
+ {{~/with~}}
36
+ {{~#with this.whatsappLink ~}}
37
+ <li class="inline-flex pl-10 mr-6 lg:ml-0 list__item--whatsapp">
38
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
39
+ href="{{this}}"
40
+ target="_blank"
41
+ rel="noopener noreferrer"
42
+ title="{{loca "share_whatsapp_linktitle" }}"
43
+ {{#with ../../this.content.trackingData}}
44
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::whatsapp"}]}'
45
+ {{/with}}
46
+ >
47
+ {{~> components/base/image/icon _addClass="icon--whatsapp" _icon="whatsapp-ds" _iconmap="icons" ~}}
48
+ </a>
49
+ </li>
50
+ {{~/with~}}
51
+ {{~#with this.mailtoLink ~}}
52
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
53
+ <a class="link--shareIcon touchArea{{#with ../../this.content.trackingData}} js-load{{/with}}"
54
+ href="{{this}}"
55
+ title="{{loca "share_mail_linktitle" }}"
56
+ {{#with ../../this.content.trackingData}}
57
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::mailto"}]}'
58
+ {{/with}}
59
+ >
60
+ {{~> components/base/image/icon _addClass="icon--mailto" _icon="mail-ds" _iconmap="icons" ~}}
61
+ </a>
62
+ </li>
63
+ {{~/with~}}
64
+
65
+ <li class="inline-flex pl-10 mr-6 lg:ml-0">
66
+ <a class="link--shareIcon touchArea{{#with ../this.content.trackingData}} js-load{{/with}}"
67
+ href="javascript:window.print()"
68
+ title="{{loca "share_print_linktitle" }}"
69
+ {{#with ../this.content.trackingData}}
70
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::printbutton"}]}'
71
+ {{/with}}
72
+ >
73
+ {{~> components/base/image/icon _addClass="icon--print" _icon="print" _iconmap="icons" ~}}
74
+ </a>
75
+ </li>
76
+ </ul>
77
+ </div>
78
+ </div>