hr-design-system-handlebars 1.38.3 → 1.38.4
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 +13 -0
- package/dist/assets/index.css +3 -3
- package/dist/assets/js/base/tracking/atiMediaHelper.subfeature.js +1 -1
- package/dist/assets/js/components/dataPolicySettings/dataPolicySettingsDs.feature.js +3 -3
- package/dist/assets/js/components/event/filtererDs.feature.js +1 -1
- package/dist/assets/js/components/event/nativeScrollDs.feature.js +20 -8
- package/dist/assets/js/components/mediaplayer/mediaplayerLoader.feature.js +1 -1
- package/dist/assets/js/components/modal/modal.feature.js +1 -1
- package/dist/assets/js/components/socialmedia/socialmediaCompact.feature.js +1 -1
- package/package.json +1 -1
- package/src/stories/views/base/tracking/atiMediaHelper.subfeature.js +1 -1
- package/src/stories/views/components/dataPolicySettings/dataPolicySettingsDs.feature.js +3 -3
- package/src/stories/views/components/event/filtererDs.feature.js +1 -1
- package/src/stories/views/components/event/nativeScrollDs.feature.js +20 -8
- package/src/stories/views/components/mediaplayer/mediaplayerLoader.feature.js +1 -1
- package/src/stories/views/components/modal/modal.feature.js +1 -1
- package/src/stories/views/components/socialmedia/socialmediaCompact.feature.js +1 -1
- package/dist/assets/js/base/tracking/atiHelper.subfeature.js +0 -36
- package/src/stories/views/base/tracking/atiHelper.subfeature.js +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v1.38.4 (Mon Sep 11 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Feature: Remove unused atiHelper [#721](https://github.com/mumprod/hr-design-system-handlebars/pull/721) ([@szuelch](https://github.com/szuelch) [@ampersand83](https://github.com/ampersand83))
|
|
6
|
+
|
|
7
|
+
#### Authors: 2
|
|
8
|
+
|
|
9
|
+
- [@ampersand83](https://github.com/ampersand83)
|
|
10
|
+
- [@szuelch](https://github.com/szuelch)
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v1.38.3 (Fri Sep 08 2023)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3054,7 +3054,7 @@ video {
|
|
|
3054
3054
|
border-bottom-color: var(--color-secondary-ds);
|
|
3055
3055
|
}
|
|
3056
3056
|
.counter-reset {
|
|
3057
|
-
counter-reset:
|
|
3057
|
+
counter-reset: cnt1694418733589;
|
|
3058
3058
|
}
|
|
3059
3059
|
.hyphens-auto {
|
|
3060
3060
|
-webkit-hyphens: auto;
|
|
@@ -3289,7 +3289,7 @@ video {
|
|
|
3289
3289
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3290
3290
|
}
|
|
3291
3291
|
.-ordered {
|
|
3292
|
-
counter-increment:
|
|
3292
|
+
counter-increment: cnt1694418733589 1;
|
|
3293
3293
|
}
|
|
3294
3294
|
.-ordered::before {
|
|
3295
3295
|
position: absolute;
|
|
@@ -3305,7 +3305,7 @@ video {
|
|
|
3305
3305
|
letter-spacing: .0125em;
|
|
3306
3306
|
--tw-text-opacity: 1;
|
|
3307
3307
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3308
|
-
content: counter(
|
|
3308
|
+
content: counter(cnt1694418733589);
|
|
3309
3309
|
}
|
|
3310
3310
|
/*! ****************************/
|
|
3311
3311
|
/*! DataPolicy stuff */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import DatapolicyCookie from 'components/externalService/datapolicyCookie.subfeature'
|
|
2
2
|
import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
|
|
3
3
|
import { fireEvent, getJSONCookie, hr$, setJSONCookie, listen } from 'hrQuery'
|
|
4
|
-
import { uxAction } from 'base/tracking/
|
|
4
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
5
5
|
|
|
6
6
|
const DataPolicySettings = function (context) {
|
|
7
7
|
const { options } = context,
|
|
@@ -24,7 +24,7 @@ const DataPolicySettings = function (context) {
|
|
|
24
24
|
//isWebview = window.location.href.match(/(app)/i), //App URL ...app.hr.de
|
|
25
25
|
cookie = {}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
console.log('gelaaaadeeeeeeeen')
|
|
28
28
|
///////////////////
|
|
29
29
|
// OVERLAY START //
|
|
30
30
|
///////////////////
|
|
@@ -39,7 +39,7 @@ const DataPolicySettings = function (context) {
|
|
|
39
39
|
} else {
|
|
40
40
|
settingsButton.style.display = 'inline-flex'
|
|
41
41
|
}
|
|
42
|
-
} else {
|
|
42
|
+
} else {
|
|
43
43
|
settingsButton.style.display = 'inline-flex'
|
|
44
44
|
console.log('Button immer anzeigen, weil nicht App')
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clearRequestInterval, hr$, requestInterval } from 'hrQuery'
|
|
2
|
-
import { uxAction } from 'base/tracking/
|
|
2
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
3
3
|
|
|
4
4
|
const NativeScroll = function (context) {
|
|
5
5
|
console.log('loaded feature ...')
|
|
@@ -20,10 +20,13 @@ const NativeScroll = function (context) {
|
|
|
20
20
|
let step = scrollbar.clientWidth - oneScrollbarItem.clientWidth * 1.5,
|
|
21
21
|
direction = e.currentTarget.classList.contains('-left') ? -1 : 1,
|
|
22
22
|
distance = direction * step
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
console.log(
|
|
24
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 22 ~ doScroll ~ direction',
|
|
25
|
+
direction
|
|
26
|
+
)
|
|
27
|
+
console.log('🚀 ~ file: nativeScroll.feature.js ~ line 24 ~ doScroll ~ distance', distance)
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
console.log('scrollbar ', scrollbar)
|
|
27
30
|
console.log('scrollbar width ', scrollbar.clientWidth)
|
|
28
31
|
console.log('oneScrollbarItem ', oneScrollbarItem)
|
|
29
32
|
console.log('oneScrollbarItem width ', oneScrollbarItem.clientWidth)
|
|
@@ -37,11 +40,17 @@ const NativeScroll = function (context) {
|
|
|
37
40
|
if (isTeaser) uxAction('Eventkalender:: Pfeil links geklickt', 1)
|
|
38
41
|
else uxAction('Eventkalender-Monat:: Pfeil links geklickt', 1)
|
|
39
42
|
}
|
|
40
|
-
console.log(
|
|
43
|
+
console.log(
|
|
44
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 42 ~ doScroll ~ hasNativeSmoothScroll',
|
|
45
|
+
hasNativeSmoothScroll
|
|
46
|
+
)
|
|
41
47
|
|
|
42
48
|
if (hasNativeSmoothScroll) {
|
|
43
49
|
scrollbar.scrollLeft += distance
|
|
44
|
-
console.log(
|
|
50
|
+
console.log(
|
|
51
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 43 ~ doScroll ~ scrollbar.scrollLeft',
|
|
52
|
+
scrollbar.scrollLeft
|
|
53
|
+
)
|
|
45
54
|
} else {
|
|
46
55
|
console.log('start smooth scroll')
|
|
47
56
|
startSmoothScroll(scrollbar.scrollLeft, Date.now(), distance)
|
|
@@ -60,7 +69,10 @@ const NativeScroll = function (context) {
|
|
|
60
69
|
percentage = timeLapsed / duration
|
|
61
70
|
|
|
62
71
|
percentage = percentage > 1 ? 1 : percentage
|
|
63
|
-
console.log(
|
|
72
|
+
console.log(
|
|
73
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 61 ~ loopSmoothScroll ~ percentage',
|
|
74
|
+
percentage
|
|
75
|
+
)
|
|
64
76
|
|
|
65
77
|
scrollbar.scrollLeft = start_pos + distance * easeInOutCubic(percentage)
|
|
66
78
|
|
|
@@ -107,4 +119,4 @@ const NativeScroll = function (context) {
|
|
|
107
119
|
}
|
|
108
120
|
}
|
|
109
121
|
|
|
110
|
-
export default NativeScroll
|
|
122
|
+
export default NativeScroll
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hr$, listenOnce, listen } from 'hrQuery'
|
|
2
|
-
import { uxAction } from 'base/tracking/
|
|
2
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
3
3
|
import ArdPlayerLoader from 'components/mediaplayer/ardPlayerLoader.subfeature'
|
|
4
4
|
|
|
5
5
|
const MediaplayerLoader = function (context) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fireEvent, getJSONCookie, hr$, listen, setJSONCookie, unlisten } from 'hrQuery'
|
|
2
|
-
import { uxAction } from 'base/tracking/
|
|
2
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
3
3
|
|
|
4
4
|
const ShareCompact = (context) => {
|
|
5
5
|
const { options } = context
|
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.38.
|
|
9
|
+
"version": "1.38.4",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import DatapolicyCookie from 'components/externalService/datapolicyCookie.subfeature'
|
|
2
2
|
import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
|
|
3
3
|
import { fireEvent, getJSONCookie, hr$, setJSONCookie, listen } from 'hrQuery'
|
|
4
|
-
import { uxAction } from 'base/tracking/
|
|
4
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
5
5
|
|
|
6
6
|
const DataPolicySettings = function (context) {
|
|
7
7
|
const { options } = context,
|
|
@@ -24,7 +24,7 @@ const DataPolicySettings = function (context) {
|
|
|
24
24
|
//isWebview = window.location.href.match(/(app)/i), //App URL ...app.hr.de
|
|
25
25
|
cookie = {}
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
console.log('gelaaaadeeeeeeeen')
|
|
28
28
|
///////////////////
|
|
29
29
|
// OVERLAY START //
|
|
30
30
|
///////////////////
|
|
@@ -39,7 +39,7 @@ const DataPolicySettings = function (context) {
|
|
|
39
39
|
} else {
|
|
40
40
|
settingsButton.style.display = 'inline-flex'
|
|
41
41
|
}
|
|
42
|
-
} else {
|
|
42
|
+
} else {
|
|
43
43
|
settingsButton.style.display = 'inline-flex'
|
|
44
44
|
console.log('Button immer anzeigen, weil nicht App')
|
|
45
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clearRequestInterval, hr$, requestInterval } from 'hrQuery'
|
|
2
|
-
import { uxAction } from 'base/tracking/
|
|
2
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
3
3
|
|
|
4
4
|
const NativeScroll = function (context) {
|
|
5
5
|
console.log('loaded feature ...')
|
|
@@ -20,10 +20,13 @@ const NativeScroll = function (context) {
|
|
|
20
20
|
let step = scrollbar.clientWidth - oneScrollbarItem.clientWidth * 1.5,
|
|
21
21
|
direction = e.currentTarget.classList.contains('-left') ? -1 : 1,
|
|
22
22
|
distance = direction * step
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
console.log(
|
|
24
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 22 ~ doScroll ~ direction',
|
|
25
|
+
direction
|
|
26
|
+
)
|
|
27
|
+
console.log('🚀 ~ file: nativeScroll.feature.js ~ line 24 ~ doScroll ~ distance', distance)
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
console.log('scrollbar ', scrollbar)
|
|
27
30
|
console.log('scrollbar width ', scrollbar.clientWidth)
|
|
28
31
|
console.log('oneScrollbarItem ', oneScrollbarItem)
|
|
29
32
|
console.log('oneScrollbarItem width ', oneScrollbarItem.clientWidth)
|
|
@@ -37,11 +40,17 @@ const NativeScroll = function (context) {
|
|
|
37
40
|
if (isTeaser) uxAction('Eventkalender:: Pfeil links geklickt', 1)
|
|
38
41
|
else uxAction('Eventkalender-Monat:: Pfeil links geklickt', 1)
|
|
39
42
|
}
|
|
40
|
-
console.log(
|
|
43
|
+
console.log(
|
|
44
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 42 ~ doScroll ~ hasNativeSmoothScroll',
|
|
45
|
+
hasNativeSmoothScroll
|
|
46
|
+
)
|
|
41
47
|
|
|
42
48
|
if (hasNativeSmoothScroll) {
|
|
43
49
|
scrollbar.scrollLeft += distance
|
|
44
|
-
console.log(
|
|
50
|
+
console.log(
|
|
51
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 43 ~ doScroll ~ scrollbar.scrollLeft',
|
|
52
|
+
scrollbar.scrollLeft
|
|
53
|
+
)
|
|
45
54
|
} else {
|
|
46
55
|
console.log('start smooth scroll')
|
|
47
56
|
startSmoothScroll(scrollbar.scrollLeft, Date.now(), distance)
|
|
@@ -60,7 +69,10 @@ const NativeScroll = function (context) {
|
|
|
60
69
|
percentage = timeLapsed / duration
|
|
61
70
|
|
|
62
71
|
percentage = percentage > 1 ? 1 : percentage
|
|
63
|
-
console.log(
|
|
72
|
+
console.log(
|
|
73
|
+
'🚀 ~ file: nativeScroll.feature.js ~ line 61 ~ loopSmoothScroll ~ percentage',
|
|
74
|
+
percentage
|
|
75
|
+
)
|
|
64
76
|
|
|
65
77
|
scrollbar.scrollLeft = start_pos + distance * easeInOutCubic(percentage)
|
|
66
78
|
|
|
@@ -107,4 +119,4 @@ const NativeScroll = function (context) {
|
|
|
107
119
|
}
|
|
108
120
|
}
|
|
109
121
|
|
|
110
|
-
export default NativeScroll
|
|
122
|
+
export default NativeScroll
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hr$, listenOnce, listen } from 'hrQuery'
|
|
2
|
-
import { uxAction } from 'base/tracking/
|
|
2
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
3
3
|
import ArdPlayerLoader from 'components/mediaplayer/ardPlayerLoader.subfeature'
|
|
4
4
|
|
|
5
5
|
const MediaplayerLoader = function (context) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fireEvent, getJSONCookie, hr$, listen, setJSONCookie, unlisten } from 'hrQuery'
|
|
2
|
-
import { uxAction } from 'base/tracking/
|
|
2
|
+
import { uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
3
3
|
|
|
4
4
|
const ShareCompact = (context) => {
|
|
5
5
|
const { options } = context
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
|
|
2
|
-
|
|
3
|
-
const isTrackingAllowed = () => {
|
|
4
|
-
const trackingCookie = new TrackingCookie()
|
|
5
|
-
return trackingCookie.isTrackingAccepted('ati')
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const uxAction = (label, secondLevelId) => {
|
|
9
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
10
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
11
|
-
window.xt_click('this', 'C', secondLevelId, label, 'A')
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const uxNavigation = (label, secondLevelId) => {
|
|
16
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
17
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
18
|
-
window.xt_click('this', 'C', secondLevelId, label, 'N')
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const pi = (label, secondLevelId) => {
|
|
23
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
24
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
25
|
-
window.xt_click('this', 'F', secondLevelId, label)
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const download = (label, secondLevelId) => {
|
|
30
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
31
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
32
|
-
window.xt_click('this', 'C', secondLevelId, label, 'T')
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { isTrackingAllowed, uxAction, uxNavigation, pi, download }
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
|
|
2
|
-
|
|
3
|
-
const isTrackingAllowed = () => {
|
|
4
|
-
const trackingCookie = new TrackingCookie()
|
|
5
|
-
return trackingCookie.isTrackingAccepted('ati')
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const uxAction = (label, secondLevelId) => {
|
|
9
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
10
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
11
|
-
window.xt_click('this', 'C', secondLevelId, label, 'A')
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const uxNavigation = (label, secondLevelId) => {
|
|
16
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
17
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
18
|
-
window.xt_click('this', 'C', secondLevelId, label, 'N')
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const pi = (label, secondLevelId) => {
|
|
23
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
24
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
25
|
-
window.xt_click('this', 'F', secondLevelId, label)
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const download = (label, secondLevelId) => {
|
|
30
|
-
secondLevelId = secondLevelId || window.xtn2
|
|
31
|
-
if (window.xt_click && isTrackingAllowed()) {
|
|
32
|
-
window.xt_click('this', 'C', secondLevelId, label, 'T')
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { isTrackingAllowed, uxAction, uxNavigation, pi, download }
|