hr-design-system-handlebars 1.52.17 → 1.52.19

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 (33) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/index.css +19 -3
  3. package/dist/assets/js/components/dataPolicySettings/dataPolicySettingsDs.feature.js +158 -160
  4. package/dist/assets/js/components/externalService/datapolicyCookie.subfeature.js +1 -1
  5. package/dist/assets/js/components/externalService/globalSettingsCookie.subfeature.js +41 -0
  6. package/dist/views/components/content/copytext/components/cite.hbs +1 -1
  7. package/dist/views/components/content/copytext/components/faq.hbs +2 -10
  8. package/dist/views/components/content/copytext/components/headline.hbs +1 -1
  9. package/dist/views/components/content/copytext/components/jobposting.hbs +1 -9
  10. package/dist/views/components/content/copytext/components/paragraph/paragraph.hbs +3 -0
  11. package/dist/views/components/content/copytext/components/paragraph/paragraph_body.hbs +9 -0
  12. package/dist/views/components/content/copytext/copytext.hbs +1 -1
  13. package/dist/views_static/components/content/copytext/components/cite.hbs +1 -1
  14. package/dist/views_static/components/content/copytext/components/faq.hbs +2 -10
  15. package/dist/views_static/components/content/copytext/components/headline.hbs +1 -1
  16. package/dist/views_static/components/content/copytext/components/jobposting.hbs +1 -9
  17. package/dist/views_static/components/content/copytext/components/paragraph/paragraph.hbs +3 -0
  18. package/dist/views_static/components/content/copytext/components/paragraph/paragraph_body.hbs +9 -0
  19. package/dist/views_static/components/content/copytext/copytext.hbs +1 -1
  20. package/package.json +1 -1
  21. package/src/stories/views/components/content/copytext/components/cite.hbs +1 -1
  22. package/src/stories/views/components/content/copytext/components/faq.hbs +2 -10
  23. package/src/stories/views/components/content/copytext/components/headline.hbs +1 -1
  24. package/src/stories/views/components/content/copytext/components/jobposting.hbs +1 -9
  25. package/src/stories/views/components/content/copytext/components/paragraph/paragraph.hbs +3 -0
  26. package/src/stories/views/components/content/copytext/components/paragraph/paragraph_body.hbs +9 -0
  27. package/src/stories/views/components/content/copytext/copytext.hbs +1 -1
  28. package/src/stories/views/components/dataPolicySettings/dataPolicySettingsDs.feature.js +158 -160
  29. package/src/stories/views/components/externalService/datapolicyCookie.subfeature.js +1 -1
  30. package/src/stories/views/components/externalService/globalSettingsCookie.subfeature.js +41 -0
  31. package/dist/views/components/content/copytext/components/paragraph.hbs +0 -11
  32. package/dist/views_static/components/content/copytext/components/paragraph.hbs +0 -11
  33. package/src/stories/views/components/content/copytext/components/paragraph.hbs +0 -11
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ # v1.52.19 (Mon Jan 29 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Dpe 2708 [#814](https://github.com/mumprod/hr-design-system-handlebars/pull/814) ([@Paul-Atreidis](https://github.com/Paul-Atreidis) [@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 2
8
+
9
+ - [@Paul-Atreidis](https://github.com/Paul-Atreidis)
10
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
11
+
12
+ ---
13
+
14
+ # v1.52.18 (Fri Jan 26 2024)
15
+
16
+ #### 🐛 Bug Fix
17
+
18
+ - adjust font-sizes [#820](https://github.com/mumprod/hr-design-system-handlebars/pull/820) ([@hanswurstsalat](https://github.com/hanswurstsalat))
19
+
20
+ #### Authors: 1
21
+
22
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
23
+
24
+ ---
25
+
1
26
  # v1.52.17 (Fri Jan 26 2024)
2
27
 
3
28
  #### 🐛 Bug Fix
@@ -2894,6 +2894,9 @@ a.link {
2894
2894
  .leading-7 {
2895
2895
  line-height: 1.75rem;
2896
2896
  }
2897
+ .leading-\[1\.625rem\] {
2898
+ line-height: 1.625rem;
2899
+ }
2897
2900
  .leading-\[34px\] {
2898
2901
  line-height: 34px;
2899
2902
  }
@@ -3258,7 +3261,7 @@ a.link {
3258
3261
  border-bottom-color: var(--color-secondary-ds);
3259
3262
  }
3260
3263
  .counter-reset {
3261
- counter-reset: cnt1706277173374;
3264
+ counter-reset: cnt1706545010322;
3262
3265
  }
3263
3266
  .hyphens-auto {
3264
3267
  -webkit-hyphens: auto;
@@ -3560,7 +3563,7 @@ a.link {
3560
3563
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3561
3564
  }
3562
3565
  .-ordered {
3563
- counter-increment: cnt1706277173374 1;
3566
+ counter-increment: cnt1706545010322 1;
3564
3567
  }
3565
3568
  .-ordered::before {
3566
3569
  position: absolute;
@@ -3576,7 +3579,7 @@ a.link {
3576
3579
  letter-spacing: .0125em;
3577
3580
  --tw-text-opacity: 1;
3578
3581
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3579
- content: counter(cnt1706277173374);
3582
+ content: counter(cnt1706545010322);
3580
3583
  }
3581
3584
  /*! ****************************/
3582
3585
  /*! DataPolicy stuff */
@@ -5469,6 +5472,11 @@ a.link {
5469
5472
  line-height: 1.75rem;
5470
5473
  }
5471
5474
 
5475
+ .sm480\:text-3xl {
5476
+ font-size: 1.625rem;
5477
+ line-height: 2rem;
5478
+ }
5479
+
5472
5480
  .sm480\:text-5xl {
5473
5481
  font-size: 2.125rem;
5474
5482
  line-height: 2.375rem;
@@ -5489,6 +5497,14 @@ a.link {
5489
5497
  line-height: 1.6875rem;
5490
5498
  }
5491
5499
 
5500
+ .sm480\:leading-9 {
5501
+ line-height: 2.25rem;
5502
+ }
5503
+
5504
+ .sm480\:leading-normal {
5505
+ line-height: 1.5;
5506
+ }
5507
+
5492
5508
  .sm480\:ar-16-7 {
5493
5509
  aspect-ratio: 16 / 7;
5494
5510
  }
@@ -1,9 +1,11 @@
1
+ import SettingsCookie from 'components/externalService/globalSettingsCookie.subfeature'
1
2
  import DatapolicyCookie from 'components/externalService/datapolicyCookie.subfeature'
2
3
  import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
3
4
  import { fireEvent, getJSONCookie, hr$, setJSONCookie, listen } from 'hrQuery'
4
5
  import { uxAction } from 'base/tracking/pianoHelper.subfeature'
5
6
 
6
7
  import A11yDialog from 'a11y-dialog'
8
+ import { deleteCookie } from '../../generic/hrQuery.subfeature'
7
9
 
8
10
  const DataPolicySettings = function (context) {
9
11
  const { options } = context,
@@ -16,204 +18,161 @@ const DataPolicySettings = function (context) {
16
18
  bodyElement = document.getElementsByTagName('html')[0],
17
19
  datapolicyCookie = new DatapolicyCookie(),
18
20
  trackingCookie = new TrackingCookie(),
21
+ settingsCookie = new SettingsCookie(),
19
22
  toggleSwitches = hr$('.js-toggleSwitch-checkbox', container),
20
23
  toggleSwitchesExternal = hr$('.js-toggleSwitch-external', container),
21
24
  toggleSwitchesTracking = hr$('.js-toggleSwitch-tracking', container),
22
25
  toggleAllSwitch = hr$('.js-toggleSwitch-checkbox-all', container)[0],
23
- providerTitle = hr$('.js-providerTitle', container)[0],
24
- trackingCookieLifetime = 1000 * 60 * 60 * 24 * 365 * 10
25
- let isWebview = window.parent.document.documentElement.classList.contains('webview'),
26
- cookie = {}
26
+ providerTitle = hr$('.js-providerTitle', container)[0]
27
27
 
28
- console.log('gelaaaadeeeeeeeen')
29
- ///////////////////
30
- // OVERLAY START //
31
- ///////////////////
32
- const showSettingsButton = function () {
33
- let settingsButton = document.getElementById('globalSettingsButton')
34
- if (isWebview) {
35
- console.log('Button Anzeige steuern')
36
- readAppSettingsButtonCookie()
37
- console.log(cookie['hidePrivacySettingsButton'])
38
- if (cookie['hidePrivacySettingsButton'] === true) {
39
- settingsButton.style.display = 'none'
40
- } else {
41
- settingsButton.style.display = 'inline-flex'
28
+ let isWebview = window.parent.document.documentElement.classList.contains('webview'),
29
+ appSettingsCookie = {},
30
+ dataDataPolicyCookie = {},
31
+ dataTrackingCookie = {},
32
+ dataSettingsCookie = {}
33
+
34
+ //Überprüfung ob die alten Cookies zusammengeführt werden müssen
35
+ const checkForExistingCookies = function () {
36
+ if(getJSONCookie('datapolicy') || getJSONCookie('tracking')){
37
+ console.log("hessenschau bisher => Beide Cookies existieren")
38
+ deleteOldCookiesandTransferData()
39
+ }
40
+ else{
41
+ console.log("hessenschau neu => nach der Löschung der beiden alten Cookies muß hier gelesen werden")
42
+ if(getJSONCookie('hrSettings')) {
43
+ getAllToggleValuesFromSettings()
44
+ }
45
+ else {
46
+ console.log("hessenschau neu => wenn kein hrSettings erzeugt wurde")
47
+ let whitelist = ["agf","ati","ard_mediathek","arte_concert","arte_concert_new","datawrapper_cdn"]
48
+ for (let i = 0; i < toggleSwitches.length; ++i) {
49
+ if(toggleSwitches[i].id == "agf" || toggleSwitches[i].id == "ati" || toggleSwitches[i].id == "ard_mediathek" || toggleSwitches[i].id == "arte_concert" || toggleSwitches[i].id == "arte_concert_new" || toggleSwitches[i].id == "datawrapper_cdn"){
50
+ setCookieForSettings(toggleSwitches[i].id, true)
51
+ }
52
+ else {
53
+ setCookieForSettings(toggleSwitches[i].id, false)
54
+ }
55
+ }
56
+ setAllToggleValuesFromSettings()
57
+ changeProviderTitle()
42
58
  }
43
- } else {
44
- settingsButton.style.display = 'inline-flex'
45
- console.log('Button immer anzeigen, weil nicht App')
46
59
  }
47
60
  }
48
- const readAppSettingsButtonCookie = function () {
49
- cookie = getJSONCookie('appSettings') || {}
50
- }
51
- const writeAppSettingsButtonCookie = function () {
52
- cookie = 'true'
53
- setJSONCookie('hsAppSettingsButton', cookie, trackingCookieLifetime)
54
- }
55
61
 
56
- const onDialogShow = function (event) {
57
- bodyElement.classList.add('optionOpen')
58
- const opener = event.detail == null && event.detail.target.closest('[data-a11y-dialog-show]') ? event.detail.target.closest('[data-a11y-dialog-show]') : null
59
- const pianoTracking = null != opener && undefined !== opener.dataset.pianoTracking ? JSON.parse(opener.dataset.pianoTracking) : {label:"Datenschutzerklärung"}
60
- if(undefined !== pianoTracking.secondLevelId){
61
- console.log(pianoTracking)
62
- uxAction('Einstellungsdialog geöffnet - ' + pianoTracking.label, pianoTracking.secondLevelId)
63
- }else{
64
- console.log(pianoTracking)
65
- uxAction('Einstellungsdialog geöffnet - ' + pianoTracking.label)
66
- }
62
+ const deleteOldCookiesandTransferData = function () {
63
+ dataDataPolicyCookie = getJSONCookie('datapolicy') || {}
64
+ dataTrackingCookie = getJSONCookie('tracking') || {}
65
+ let objMerge
66
+ // Beide bestehenden JSONs aus Tracking und Service werden zusammengeführt.
67
+ objMerge = JSON.stringify(dataTrackingCookie) + JSON.stringify(dataDataPolicyCookie);
68
+ objMerge = objMerge.replace(/\}\{/, ",");
69
+ objMerge = JSON.parse(objMerge);
70
+ let objArray = Object.entries(objMerge);
71
+ objArray.forEach(([key, value]) => {
72
+ //hrSettingsCookie wird geschrieben
73
+ setCookieForSettings(key, value)
74
+ });
75
+ setAllToggleValuesFromSettings()
76
+ changeProviderTitle()
77
+ deleteCookie('datapolicy')
78
+ deleteCookie('tracking')
67
79
  }
68
80
 
69
- const onDialogHide = function () {
70
- console.log("Hide")
71
- bodyElement.classList.remove('optionOpen')
72
- }
73
- const shouldDialogBeOpendOnLoad = function () {
74
- const urlParam = getUrlVars()['openDialog']
75
- if (typeof urlParam !== 'undefined' && urlParam === 'true') {
76
- dialog.show()
81
+ const setCookieForSettings = function (key, value) {
82
+ settingsCookie.setCookieForOptions(key, value)
83
+ if (value) {
84
+ fireEvent('hr:externalService-activate-' + key)
85
+ } else {
86
+ fireEvent('hr:externalService-deactivate-' + key)
77
87
  }
78
88
  }
79
- const getUrlVars = function () {
80
- let vars = {}
81
- const parts = window.location.href.replace(
82
- /[?&]+([^=&]+)=([^&]*)/gi,
83
- function (m, key, value) {
84
- vars[key] = value
85
- }
86
- )
87
- return vars
88
- }
89
- ///////////////////
90
- // OVERLAY END ////
91
- ///////////////////
92
89
 
93
- /////////////////////
94
- // TOGGLES START ////
95
- /////////////////////
90
+ const getAllToggleValuesFromSettings = function () {
91
+ setAllToggleValuesFromSettings()
92
+ changeProviderTitle()
93
+ //initial alles deaktivieren
94
+ //hr-settings schreiben
96
95
 
97
- const initializeToggleStateExternal = function () {
98
- for (let i = 0; i < toggleSwitchesExternal.length; ++i) {
99
- initializeEventListenerForService(i)
96
+ }
100
97
 
101
- setListenerForService(toggleSwitchesExternal[i])
98
+ const setAllToggleValuesFromSettings = function () {
99
+ dataSettingsCookie = getJSONCookie('hrSettings') || {}
100
+ let settingId
101
+ let settingState
102
+ for (let i = 0; i < toggleSwitches.length; ++i) {
103
+ settingId = toggleSwitches[i].id
104
+ settingState = dataSettingsCookie.settingId
105
+ document.getElementById(toggleSwitches[i].id).checked = settingState
106
+
107
+ setAllToggleEventListeners(toggleSwitches[i])
108
+ initializeAllToggleEventListeners(i)
102
109
 
103
- if (isCookieSetForService(toggleSwitchesExternal[i].id)) {
104
- toggleSwitchesExternal[i].checked = true
110
+ if (isCookieSetForSettings(toggleSwitches[i].id)) {
111
+ toggleSwitches[i].checked = true
105
112
  } else if (
106
- !isCookieExistForService(toggleSwitchesExternal[i].id) &&
107
- toggleSwitchesExternal[i].getAttribute('initial') == 'checked'
113
+ !isCookieExistForSettings(toggleSwitches[i].id) &&
114
+ toggleSwitches[i].getAttribute('initial') == 'checked'
108
115
  ) {
109
- toggleSwitchesExternal[i].checked = true
110
- setCookieForService(toggleSwitchesExternal[i])
116
+ toggleSwitches[i].checked = true
117
+ setCookieForSettings(toggleSwitches[i].id,toggleSwitches[i].checked)
111
118
  }
112
119
  }
113
-
114
- toggleAllSwitch.checked = allTogglesChecked()
115
- changeProviderTitle()
120
+ toggleAllSwitch.checked = allTogglesExternalServiceChecked()
116
121
  }
117
- const initializeToggleStateTracking = function () {
118
- for (let i = 0; i < toggleSwitchesTracking.length; ++i) {
119
- initializeEventListenerForTracking(i)
120
-
121
- setListenerForTracking(toggleSwitchesTracking[i])
122
-
123
- if (isCookieSetForTracking(toggleSwitchesTracking[i].id)) {
124
- toggleSwitchesTracking[i].checked = true
125
- }
126
122
 
127
- if (
128
- !isCookieExistForTracking(toggleSwitchesTracking[i].id) &&
129
- toggleSwitchesTracking[i].getAttribute('initial') == 'checked'
130
- ) {
131
- toggleSwitchesTracking[i].checked = true
132
- setCookieForTracking(toggleSwitchesTracking[i])
133
- }
134
- }
123
+ const isCookieSetForSettings = function (externalService) {
124
+ return settingsCookie.isSettingsCookieAccepted(externalService)
135
125
  }
136
- const initializeEventListenerForService = function (serviceId) {
137
- listen(
138
- 'hr:externalService-activate-' + toggleSwitchesExternal[serviceId].id,
139
- function () {
140
- toggleSwitchesExternal[serviceId].checked = true
141
- },
142
- document
143
- )
126
+
127
+ const isCookieExistForSettings = function (externalService) {
128
+ return settingsCookie.isSettingsCookieExistent(externalService)
144
129
  }
145
- const initializeEventListenerForTracking = function (serviceId) {
130
+
131
+ const initializeAllToggleEventListeners = function (serviceId) {
146
132
  listen(
147
- 'hr:trackingService-activate-' + toggleSwitchesTracking[serviceId].id,
133
+ 'hr:externalService-activate-' + toggleSwitches[serviceId].id,
148
134
  function () {
149
- toggleSwitchesTracking[serviceId].checked = true
135
+ toggleSwitches[serviceId].checked = true
150
136
  },
151
137
  document
152
138
  )
153
139
  }
154
- const setListenerForService = function (element) {
140
+
141
+ const setAllToggleEventListeners = function (element) {
155
142
  listen(
156
143
  'change',
157
144
  function () {
158
- setCookieForService(element)
159
- toggleAllSwitch.checked = allTogglesChecked()
145
+ setCookieForSettings(element.id, element.checked)
146
+ toggleAllSwitch.checked = allTogglesExternalServiceChecked()
160
147
  changeProviderTitle()
161
148
  },
162
149
  element
163
150
  )
164
151
  }
165
- const setListenerForTracking = function (element) {
166
- listen(
167
- 'change',
168
- function () {
169
- setCookieForTracking(element)
170
- },
171
- element
172
- )
173
- }
174
- const setCookieForService = function (element) {
175
- datapolicyCookie.setCookieForExternalService(element.id, element.checked)
176
- if (element.checked) {
177
- fireEvent('hr:externalService-activate-' + element.id)
178
- } else {
179
- console.log('fireEvent: hr:externalService-deactivate-' + element.id)
180
- fireEvent('hr:externalService-deactivate-' + element.id)
181
- }
182
- }
183
- const setCookieForTracking = function (element) {
184
- trackingCookie.setCookieForTracking(element.id, element.checked)
185
- if (element.checked) {
186
- fireEvent('hr:trackingService-activate-' + element.id)
187
- } else {
188
- fireEvent('hr:trackingService-deactivate-' + element.id)
189
- }
190
- }
191
- const toggleAll = function () {
192
- console.log('Toggle All' + toggleAllSwitch.checked)
193
152
 
153
+ const toggleAll = function () {
194
154
  for (let i = 0; i < toggleSwitchesExternal.length; ++i) {
195
155
  if (toggleSwitchesExternal[i].checked != toggleAllSwitch.checked) {
196
156
  toggleSwitchesExternal[i].checked = toggleAllSwitch.checked
197
- setCookieForService(toggleSwitchesExternal[i])
157
+ setCookieForSettings(toggleSwitchesExternal[i].id, toggleSwitchesExternal[i].checked)
198
158
  }
199
159
  }
200
-
201
160
  changeProviderTitle()
202
161
  }
203
- const allTogglesChecked = function () {
204
- let allChecked
205
162
 
163
+ const allTogglesExternalServiceChecked = function () {
164
+ let allChecked
206
165
  for (let i = 0; i < toggleSwitchesExternal.length; ++i) {
207
166
  if (toggleSwitchesExternal[i].checked) {
208
167
  allChecked = true
209
168
  } else {
210
169
  allChecked = false
211
-
212
170
  break
213
171
  }
214
172
  }
215
173
  return allChecked
216
174
  }
175
+
217
176
  const changeProviderTitle = function () {
218
177
  if (toggleAllSwitch.checked == true) {
219
178
  providerTitle.textContent = 'Alle Anbieter deaktivieren'
@@ -221,35 +180,74 @@ const DataPolicySettings = function (context) {
221
180
  providerTitle.textContent = 'Alle Anbieter aktivieren'
222
181
  }
223
182
  }
224
- const isCookieSetForService = function (externalService) {
225
- return datapolicyCookie.isDatapolicyAccepted(externalService)
226
- }
227
- const isCookieSetForTracking = function (trackingService) {
228
- return trackingCookie.isTrackingAccepted(trackingService)
229
- }
230
- const isCookieExistForService = function (externalService) {
231
- return datapolicyCookie.isDatapolicyExistent(externalService)
232
- }
233
- const isCookieExistForTracking = function (trackingService) {
234
- return trackingCookie.isTrackingCookieExistent(trackingService)
235
- }
183
+
236
184
  const initializeEventListeners = function () {
237
185
  listen('change', toggleAll, toggleAllSwitch)
238
186
  listen("show", onDialogShow, container)
239
187
  listen("hide", onDialogHide, container)
240
188
  }
241
- // steuert die Darstellung des Buttons für die hs-App ///
242
- showSettingsButton()
243
- //// 1. Toggle States aller Switches setzen ////
244
- //// Cookies setzen usw. ////
245
- initializeToggleStateExternal()
246
189
 
247
- initializeToggleStateTracking()
190
+ const readAppSettingsButtonCookie = function () {
191
+ /* Das Cookie 'appSettings' wird in der App-Logik für die Webview erzeugt. Hier nur ausgelesen, um die Option für den Settings-Button abzufragen */
192
+ appSettingsCookie = getJSONCookie('appSettings') || {}
193
+ }
248
194
 
249
- //// 2. Event Listener initialisieren ////
250
- initializeEventListeners()
195
+ //Für die hs-App wird der Button ein und ausgeblendet
196
+ const showSettingsButton = function () {
197
+ let settingsButton = document.getElementById('globalSettingsButton')
198
+ if (isWebview) {
199
+ readAppSettingsButtonCookie()
200
+ if (appSettingsCookie['hidePrivacySettingsButton'] === true) {
201
+ settingsButton.style.display = 'none'
202
+ } else {
203
+ settingsButton.style.display = 'inline-flex'
204
+ }
205
+ } else {
206
+ settingsButton.style.display = 'inline-flex'
207
+ }
208
+ }
251
209
 
210
+ const onDialogShow = function (event) {
211
+ bodyElement.classList.add('optionOpen')
212
+ const opener = event.detail == null && event.detail.target.closest('[data-a11y-dialog-show]') ? event.detail.target.closest('[data-a11y-dialog-show]') : null
213
+ const pianoTracking = null != opener && undefined !== opener.dataset.pianoTracking ? JSON.parse(opener.dataset.pianoTracking) : {label:"Datenschutzerklärung"}
214
+ if(undefined !== pianoTracking.secondLevelId){
215
+ console.log(pianoTracking)
216
+ uxAction('Einstellungsdialog geöffnet - ' + pianoTracking.label, pianoTracking.secondLevelId)
217
+ }else{
218
+ console.log(pianoTracking)
219
+ uxAction('Einstellungsdialog geöffnet - ' + pianoTracking.label)
220
+ }
221
+ }
222
+
223
+ const onDialogHide = function () {
224
+ console.log("Hide")
225
+ bodyElement.classList.remove('optionOpen')
226
+ }
227
+ const shouldDialogBeOpendOnLoad = function () {
228
+ const urlParam = getUrlVars()['openDialog']
229
+ if (typeof urlParam !== 'undefined' && urlParam === 'true') {
230
+ dialog.show()
231
+ }
232
+ }
233
+ const getUrlVars = function () {
234
+ let vars = {}
235
+ const parts = window.location.href.replace(
236
+ /[?&]+([^=&]+)=([^&]*)/gi,
237
+ function (m, key, value) {
238
+ vars[key] = value
239
+ }
240
+ )
241
+ return vars
242
+ }
243
+
244
+ // steuert die Darstellung des Buttons für die hs-App ///
245
+ showSettingsButton()
246
+ // Überprüfen ob die alten Cookies vorhanden sind
247
+ checkForExistingCookies()
248
+ initializeEventListeners()
252
249
  shouldDialogBeOpendOnLoad()
250
+
253
251
  }
254
252
 
255
253
  export default DataPolicySettings
@@ -34,7 +34,7 @@ const DataPolicyCookie = function () {
34
34
  return {
35
35
  setCookieForExternalService: setCookieForExternalService,
36
36
  isDatapolicyAccepted: isDatapolicyAccepted,
37
- isDatapolicyExistent: isDatapolicyExistent,
37
+ isDatapolicyExistent: isDatapolicyExistent
38
38
  }
39
39
  }
40
40
 
@@ -0,0 +1,41 @@
1
+ import { getJSONCookie, setJSONCookie } from 'hrQuery'
2
+
3
+ const GlobalSettingsCookie = function () {
4
+ const settingsCookieLifetime = 1000 * 60 * 60 * 24 * 365 * 10 /* 10 years */
5
+ let cookie = {}
6
+
7
+ const setCookieForOptions = function (option, state) {
8
+ if (state == null) {
9
+ state = true
10
+ }
11
+ console.log('Schreibe Settings-Cookie: ' + option + ': ' + state)
12
+ readSettingsCookie()
13
+ cookie[option] = state
14
+ writeSettingsCookie()
15
+ }
16
+
17
+ const isSettingsCookieAccepted = function (externalService) {
18
+ readSettingsCookie()
19
+ return cookie[externalService] === true
20
+ }
21
+
22
+ const writeSettingsCookie = function () {
23
+ setJSONCookie('hrSettings', cookie, settingsCookieLifetime)
24
+ }
25
+
26
+ const readSettingsCookie = function () {
27
+ cookie = getJSONCookie('hrSettings') || {}
28
+ }
29
+
30
+ const isSettingsCookieExistent = function (option) {
31
+ readSettingsCookie()
32
+ return cookie.hasOwnProperty(option)
33
+ }
34
+ return {
35
+ setCookieForOptions: setCookieForOptions,
36
+ isSettingsCookieExistent: isSettingsCookieExistent,
37
+ isSettingsCookieAccepted: isSettingsCookieAccepted
38
+ }
39
+ }
40
+
41
+ export default GlobalSettingsCookie
@@ -2,7 +2,7 @@
2
2
  {{> components/base/image/icon _icon="quotation" _addClass="sm:ml-4 mr-2 mt-px float-left text-gray-scorpion w-6 h-6 sm480:w-8 sm480:h-8 fill-current dark:fill-link-dark"}}
3
3
  <span class="sr-only">{{loca "story_cite_intro_sr" }}</span>
4
4
  <blockquote>
5
- <cite class="block mx-8 text-base not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl dark:text-text-dark">{{{this.text}}}</cite>
5
+ <cite class="block mx-8 text-lg leading-[1.625rem] not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</cite>
6
6
  {{#with this.paragraphProperties}}
7
7
  {{#with this.[0]}}
8
8
  {{#with this.citeAuthor}}
@@ -1,16 +1,8 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
2
2
  {{#with this.paragraphProperties.[0]}}
3
3
  {{#with this.faqAnswer}}
4
4
  {{#each this.split}}
5
- {{#if this.isText}}
6
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
7
- {{/if}}
8
- {{#if this.isUl}}
9
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
10
- {{/if}}
11
- {{#if this.isOl}}
12
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
13
- {{/if}}
5
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
14
6
  {{/each}}
15
7
  {{/with}}
16
8
  {{/with}}
@@ -1 +1 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl sm480:leading-9 font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
@@ -1,15 +1,7 @@
1
1
  {{#with this.paragraphProperties.[0]}}
2
2
  {{#with this.jobDescription}}
3
3
  {{#each this.split}}
4
- {{#if this.isText}}
5
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
6
- {{/if}}
7
- {{#if this.isUl}}
8
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
9
- {{/if}}
10
- {{#if this.isOl}}
11
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
12
- {{/if}}
4
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
13
5
  {{/each}}
14
6
  {{/with}}
15
7
  {{/with}}
@@ -0,0 +1,3 @@
1
+ {{#each this.text.split}}
2
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
3
+ {{/each}}
@@ -0,0 +1,9 @@
1
+ {{#if this.isText}}
2
+ <p class="mt-6 text-lg leading-[1.625rem] sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
3
+ {{/if}}
4
+ {{#if this.isUl}}
5
+ <ul class="mt-6 ml-5 text-lg leading-[1.625rem] list-disc sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
6
+ {{/if}}
7
+ {{#if this.isOl}}
8
+ <ol class="mt-6 ml-5 text-lg leading-[1.625rem] list-decimal sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
9
+ {{/if}}
@@ -104,7 +104,7 @@
104
104
  {{~/with}}
105
105
 
106
106
  {{#if this.isParagraph}}
107
- {{> components/content/copytext/components/paragraph }}
107
+ {{> components/content/copytext/components/paragraph/paragraph }}
108
108
  {{/if}}
109
109
 
110
110
  {{#if this.isCite}}
@@ -2,7 +2,7 @@
2
2
  {{> components/base/image/icon _icon="quotation" _addClass="sm:ml-4 mr-2 mt-px float-left text-gray-scorpion w-6 h-6 sm480:w-8 sm480:h-8 fill-current dark:fill-link-dark"}}
3
3
  <span class="sr-only">{{loca "story_cite_intro_sr" }}</span>
4
4
  <blockquote>
5
- <cite class="block mx-8 text-base not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl dark:text-text-dark">{{{this.text}}}</cite>
5
+ <cite class="block mx-8 text-lg leading-[1.625rem] not-italic sm480:mx-10 font-headingSerif sm:mx-14 sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</cite>
6
6
  {{#with this.paragraphProperties}}
7
7
  {{#with this.[0]}}
8
8
  {{#with this.citeAuthor}}
@@ -1,16 +1,8 @@
1
- <h2 class="clear-both text-lg sm480:text-2xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
1
+ <h2 class="clear-both text-2xl sm480:text-3xl font-headingSerif mt-11 dark:text-text-dark">{{{this.text}}}</h2>
2
2
  {{#with this.paragraphProperties.[0]}}
3
3
  {{#with this.faqAnswer}}
4
4
  {{#each this.split}}
5
- {{#if this.isText}}
6
- <p class="mt-6 text-base sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
7
- {{/if}}
8
- {{#if this.isUl}}
9
- <ul class="mt-6 ml-5 text-base list-disc sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
10
- {{/if}}
11
- {{#if this.isOl}}
12
- <ol class="mt-6 ml-5 text-base list-decimal sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
13
- {{/if}}
5
+ {{> components/content/copytext/components/paragraph/paragraph_body }}
14
6
  {{/each}}
15
7
  {{/with}}
16
8
  {{/with}}