hr-design-system-handlebars 1.68.1 → 1.68.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.
- package/CHANGELOG.md +24 -0
- package/dist/assets/index.css +5 -5
- package/dist/assets/js/components/externalService/externalServiceDs.feature.js +31 -28
- package/dist/assets/js/components/site_header/mainNavigationHandler.alpine.js +1 -1
- package/dist/views/components/externalService/external_service_with_datapolicy_check.hbs +1 -1
- package/dist/views/components/social_sharing/social_sharing_compact.hbs +1 -1
- package/dist/views_static/components/externalService/external_service_with_datapolicy_check.hbs +1 -1
- package/dist/views_static/components/social_sharing/social_sharing_compact.hbs +1 -1
- package/package.json +1 -1
- package/src/stories/views/components/externalService/externalServiceDs.feature.js +31 -28
- package/src/stories/views/components/externalService/external_service_with_datapolicy_check.hbs +1 -1
- package/src/stories/views/components/site_header/mainNavigationHandler.alpine.js +1 -1
- package/src/stories/views/components/social_sharing/social_sharing_compact.hbs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# v1.68.3 (Tue May 28 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fixes bottom position of sharing button in mobile view [#930](https://github.com/mumprod/hr-design-system-handlebars/pull/930) ([@StefanVesper](https://github.com/StefanVesper))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.68.2 (Wed May 22 2024)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Changing priority to Responsive Iframe [#929](https://github.com/mumprod/hr-design-system-handlebars/pull/929) ([@Paul-Atreidis](https://github.com/Paul-Atreidis))
|
|
18
|
+
|
|
19
|
+
#### Authors: 1
|
|
20
|
+
|
|
21
|
+
- [@Paul-Atreidis](https://github.com/Paul-Atreidis)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
1
25
|
# v1.68.1 (Fri May 17 2024)
|
|
2
26
|
|
|
3
27
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -1046,8 +1046,8 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
1046
1046
|
.bottom-15 {
|
|
1047
1047
|
bottom: 3.75rem;
|
|
1048
1048
|
}
|
|
1049
|
-
.bottom
|
|
1050
|
-
bottom:
|
|
1049
|
+
.bottom-\[19px\] {
|
|
1050
|
+
bottom: 19px;
|
|
1051
1051
|
}
|
|
1052
1052
|
.bottom-feature-box-height {
|
|
1053
1053
|
bottom: 0;
|
|
@@ -3347,7 +3347,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3347
3347
|
border-bottom-color: var(--color-secondary-ds);
|
|
3348
3348
|
}
|
|
3349
3349
|
.counter-reset {
|
|
3350
|
-
counter-reset:
|
|
3350
|
+
counter-reset: cnt1716893696134;
|
|
3351
3351
|
}
|
|
3352
3352
|
.hyphens-auto {
|
|
3353
3353
|
-webkit-hyphens: auto;
|
|
@@ -3726,7 +3726,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3726
3726
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3727
3727
|
}
|
|
3728
3728
|
.-ordered {
|
|
3729
|
-
counter-increment:
|
|
3729
|
+
counter-increment: cnt1716893696134 1;
|
|
3730
3730
|
}
|
|
3731
3731
|
.-ordered::before {
|
|
3732
3732
|
position: absolute;
|
|
@@ -3742,7 +3742,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3742
3742
|
letter-spacing: .0125em;
|
|
3743
3743
|
--tw-text-opacity: 1;
|
|
3744
3744
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3745
|
-
content: counter(
|
|
3745
|
+
content: counter(cnt1716893696134);
|
|
3746
3746
|
}
|
|
3747
3747
|
/*! ****************************/
|
|
3748
3748
|
/*! DataPolicy stuff */
|
|
@@ -172,31 +172,18 @@ const ExternalService = function (context) {
|
|
|
172
172
|
const createDataWrapperEmbed = function () {
|
|
173
173
|
removeDatapolicyBox()
|
|
174
174
|
createUniqueID()
|
|
175
|
-
if (iFrameConfig.
|
|
176
|
-
|
|
177
|
-
//Responsives Iframe
|
|
178
|
-
var iframe = document.createElement('iframe')
|
|
179
|
-
//Auflösen nach Tailwind-Klassen //dataWrapper-embed
|
|
180
|
-
iframe.className = 'w-0 !min-w-full border-0'
|
|
181
|
-
iframe.setAttribute('webkitallowfullscreen', '')
|
|
182
|
-
iframe.setAttribute('mozallowfullscreen', '')
|
|
183
|
-
iframe.setAttribute('allowfullscreen', '')
|
|
184
|
-
iframe.setAttribute('scrolling', 'no')
|
|
185
|
-
iframe.setAttribute('frameborder', '0')
|
|
186
|
-
iframe.src = embedCode
|
|
187
|
-
iframe.id = 'datawrapper-chart-' + uniqueId
|
|
188
|
-
rootElement.insertBefore(iframe, null)
|
|
175
|
+
if (iFrameConfig.noResponsiveIframe == 'true') {
|
|
189
176
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
177
|
+
//Klassisches Iframe mit AR-Wrapper oder fester Höhe
|
|
178
|
+
noResponsiveIframe = new DataWrapperNoResponsiveIframe(context, iFrameConfig.aspectRatio, iFrameConfig.fixedHeight, uniqueId, embedCode)
|
|
179
|
+
noResponsiveIframe.createNoResponsiveIframe()
|
|
180
|
+
|
|
181
|
+
if (iFrameConfig.refreshContent == 'true') {
|
|
182
|
+
console.log("contentRefresher anfügen")
|
|
183
|
+
contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall, false)
|
|
184
|
+
contentRefresher.createRefresher()
|
|
185
|
+
}
|
|
186
|
+
|
|
200
187
|
}
|
|
201
188
|
else {
|
|
202
189
|
if(iFrameConfig.webcomponent == 'true') {
|
|
@@ -226,15 +213,31 @@ const ExternalService = function (context) {
|
|
|
226
213
|
}
|
|
227
214
|
}
|
|
228
215
|
else {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
216
|
+
|
|
217
|
+
//Responsives Iframe
|
|
218
|
+
var iframe = document.createElement('iframe')
|
|
219
|
+
//Auflösen nach Tailwind-Klassen //dataWrapper-embed
|
|
220
|
+
iframe.className = 'w-0 !min-w-full border-0'
|
|
221
|
+
iframe.setAttribute('webkitallowfullscreen', '')
|
|
222
|
+
iframe.setAttribute('mozallowfullscreen', '')
|
|
223
|
+
iframe.setAttribute('allowfullscreen', '')
|
|
224
|
+
iframe.setAttribute('scrolling', 'no')
|
|
225
|
+
iframe.setAttribute('frameborder', '0')
|
|
226
|
+
iframe.src = embedCode
|
|
227
|
+
iframe.id = 'datawrapper-chart-' + uniqueId
|
|
228
|
+
rootElement.insertBefore(iframe, null)
|
|
229
|
+
|
|
230
|
+
loadScript(
|
|
231
|
+
'datawrapper-js',
|
|
232
|
+
'https://static.hr.de/hessenschau/datawrapper/responsiveIframe.js',
|
|
233
|
+
true
|
|
234
|
+
)
|
|
233
235
|
if (iFrameConfig.refreshContent == 'true') {
|
|
234
236
|
console.log("contentRefresher anfügen")
|
|
235
237
|
contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall, false)
|
|
236
238
|
contentRefresher.createRefresher()
|
|
237
239
|
}
|
|
240
|
+
|
|
238
241
|
}
|
|
239
242
|
|
|
240
243
|
|
|
@@ -52,7 +52,7 @@ export default () => ({
|
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
checkFooterTopForSharingBottomPos(){
|
|
55
|
-
this.$store.footerIsVisible ? this.$store.sharingBottomPos.current = Math.round(window.innerHeight - document.querySelector('.js-pageFooter').getBoundingClientRect().top) +
|
|
55
|
+
this.$store.footerIsVisible ? this.$store.sharingBottomPos.current = Math.round(window.innerHeight - document.querySelector('.js-pageFooter').getBoundingClientRect().top) + 19 +'px' : null
|
|
56
56
|
},
|
|
57
57
|
|
|
58
58
|
//Holds the percentage of scrolled viewport
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="c-externalService c-externalService__{{this.externalServiceConfig.externalServiceId}}{{#unless
|
|
4
4
|
this.fixedHeight }} -noFixedHeight{{/unless}} js-load"
|
|
5
5
|
data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType":"{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": true,"iFrameConfig": { {{#if this.fixedHeight}}
|
|
6
|
-
"fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"
|
|
6
|
+
"fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}","webcomponent":"{{{this.setWebcomponent}}}"{{#if this.setTimedReloadIframe}},"refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"{{/if}} }}'>
|
|
7
7
|
{{~> components/externalService/components/external_service_data_policy ~}}
|
|
8
8
|
</div>
|
|
9
9
|
{{~> components/externalService/components/external_service_caption ~}}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div :class="{ 'grid grid-page z-110 fixed bottom-feature-box-height left-0 w-full': $store.sharingIsVisible == false}">
|
|
11
11
|
<div :class="{ 'flex justify-start col-full sm:col-main relative': $store.sharingIsVisible == false }">
|
|
12
12
|
<div :style="($store.footerIsVisible && !$screen('lg')) && {bottom:$store.sharingBottomPos.current}"
|
|
13
|
-
:class="{ 'bottom-
|
|
13
|
+
:class="{ 'bottom-[19px] flex-col absolute mt-3 rounded-md': $store.sharingIsVisible == false && $store.footerIsVisible == false,
|
|
14
14
|
'flex-col absolute mt-3' : $store.footerIsVisible == true }"
|
|
15
15
|
class="flex self-center gap-3 bg-white left-5">
|
|
16
16
|
<button
|
package/dist/views_static/components/externalService/external_service_with_datapolicy_check.hbs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="c-externalService c-externalService__{{this.externalServiceConfig.externalServiceId}}{{#unless
|
|
4
4
|
this.fixedHeight }} -noFixedHeight{{/unless}} js-load"
|
|
5
5
|
data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType":"{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": true,"iFrameConfig": { {{#if this.fixedHeight}}
|
|
6
|
-
"fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"
|
|
6
|
+
"fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}","webcomponent":"{{{this.setWebcomponent}}}"{{#if this.setTimedReloadIframe}},"refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"{{/if}} }}'>
|
|
7
7
|
{{~> components/externalService/components/external_service_data_policy ~}}
|
|
8
8
|
</div>
|
|
9
9
|
{{~> components/externalService/components/external_service_caption ~}}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div :class="{ 'grid grid-page z-110 fixed bottom-feature-box-height left-0 w-full': $store.sharingIsVisible == false}">
|
|
11
11
|
<div :class="{ 'flex justify-start col-full sm:col-main relative': $store.sharingIsVisible == false }">
|
|
12
12
|
<div :style="($store.footerIsVisible && !$screen('lg')) && {bottom:$store.sharingBottomPos.current}"
|
|
13
|
-
:class="{ 'bottom-
|
|
13
|
+
:class="{ 'bottom-[19px] flex-col absolute mt-3 rounded-md': $store.sharingIsVisible == false && $store.footerIsVisible == false,
|
|
14
14
|
'flex-col absolute mt-3' : $store.footerIsVisible == true }"
|
|
15
15
|
class="flex self-center gap-3 bg-white left-5">
|
|
16
16
|
<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.68.
|
|
9
|
+
"version": "1.68.3",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -172,31 +172,18 @@ const ExternalService = function (context) {
|
|
|
172
172
|
const createDataWrapperEmbed = function () {
|
|
173
173
|
removeDatapolicyBox()
|
|
174
174
|
createUniqueID()
|
|
175
|
-
if (iFrameConfig.
|
|
176
|
-
|
|
177
|
-
//Responsives Iframe
|
|
178
|
-
var iframe = document.createElement('iframe')
|
|
179
|
-
//Auflösen nach Tailwind-Klassen //dataWrapper-embed
|
|
180
|
-
iframe.className = 'w-0 !min-w-full border-0'
|
|
181
|
-
iframe.setAttribute('webkitallowfullscreen', '')
|
|
182
|
-
iframe.setAttribute('mozallowfullscreen', '')
|
|
183
|
-
iframe.setAttribute('allowfullscreen', '')
|
|
184
|
-
iframe.setAttribute('scrolling', 'no')
|
|
185
|
-
iframe.setAttribute('frameborder', '0')
|
|
186
|
-
iframe.src = embedCode
|
|
187
|
-
iframe.id = 'datawrapper-chart-' + uniqueId
|
|
188
|
-
rootElement.insertBefore(iframe, null)
|
|
175
|
+
if (iFrameConfig.noResponsiveIframe == 'true') {
|
|
189
176
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
177
|
+
//Klassisches Iframe mit AR-Wrapper oder fester Höhe
|
|
178
|
+
noResponsiveIframe = new DataWrapperNoResponsiveIframe(context, iFrameConfig.aspectRatio, iFrameConfig.fixedHeight, uniqueId, embedCode)
|
|
179
|
+
noResponsiveIframe.createNoResponsiveIframe()
|
|
180
|
+
|
|
181
|
+
if (iFrameConfig.refreshContent == 'true') {
|
|
182
|
+
console.log("contentRefresher anfügen")
|
|
183
|
+
contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall, false)
|
|
184
|
+
contentRefresher.createRefresher()
|
|
185
|
+
}
|
|
186
|
+
|
|
200
187
|
}
|
|
201
188
|
else {
|
|
202
189
|
if(iFrameConfig.webcomponent == 'true') {
|
|
@@ -226,15 +213,31 @@ const ExternalService = function (context) {
|
|
|
226
213
|
}
|
|
227
214
|
}
|
|
228
215
|
else {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
216
|
+
|
|
217
|
+
//Responsives Iframe
|
|
218
|
+
var iframe = document.createElement('iframe')
|
|
219
|
+
//Auflösen nach Tailwind-Klassen //dataWrapper-embed
|
|
220
|
+
iframe.className = 'w-0 !min-w-full border-0'
|
|
221
|
+
iframe.setAttribute('webkitallowfullscreen', '')
|
|
222
|
+
iframe.setAttribute('mozallowfullscreen', '')
|
|
223
|
+
iframe.setAttribute('allowfullscreen', '')
|
|
224
|
+
iframe.setAttribute('scrolling', 'no')
|
|
225
|
+
iframe.setAttribute('frameborder', '0')
|
|
226
|
+
iframe.src = embedCode
|
|
227
|
+
iframe.id = 'datawrapper-chart-' + uniqueId
|
|
228
|
+
rootElement.insertBefore(iframe, null)
|
|
229
|
+
|
|
230
|
+
loadScript(
|
|
231
|
+
'datawrapper-js',
|
|
232
|
+
'https://static.hr.de/hessenschau/datawrapper/responsiveIframe.js',
|
|
233
|
+
true
|
|
234
|
+
)
|
|
233
235
|
if (iFrameConfig.refreshContent == 'true') {
|
|
234
236
|
console.log("contentRefresher anfügen")
|
|
235
237
|
contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall, false)
|
|
236
238
|
contentRefresher.createRefresher()
|
|
237
239
|
}
|
|
240
|
+
|
|
238
241
|
}
|
|
239
242
|
|
|
240
243
|
|
package/src/stories/views/components/externalService/external_service_with_datapolicy_check.hbs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="c-externalService c-externalService__{{this.externalServiceConfig.externalServiceId}}{{#unless
|
|
4
4
|
this.fixedHeight }} -noFixedHeight{{/unless}} js-load"
|
|
5
5
|
data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType":"{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": true,"iFrameConfig": { {{#if this.fixedHeight}}
|
|
6
|
-
"fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"
|
|
6
|
+
"fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}","webcomponent":"{{{this.setWebcomponent}}}"{{#if this.setTimedReloadIframe}},"refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"{{/if}} }}'>
|
|
7
7
|
{{~> components/externalService/components/external_service_data_policy ~}}
|
|
8
8
|
</div>
|
|
9
9
|
{{~> components/externalService/components/external_service_caption ~}}
|
|
@@ -52,7 +52,7 @@ export default () => ({
|
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
checkFooterTopForSharingBottomPos(){
|
|
55
|
-
this.$store.footerIsVisible ? this.$store.sharingBottomPos.current = Math.round(window.innerHeight - document.querySelector('.js-pageFooter').getBoundingClientRect().top) +
|
|
55
|
+
this.$store.footerIsVisible ? this.$store.sharingBottomPos.current = Math.round(window.innerHeight - document.querySelector('.js-pageFooter').getBoundingClientRect().top) + 19 +'px' : null
|
|
56
56
|
},
|
|
57
57
|
|
|
58
58
|
//Holds the percentage of scrolled viewport
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div :class="{ 'grid grid-page z-110 fixed bottom-feature-box-height left-0 w-full': $store.sharingIsVisible == false}">
|
|
11
11
|
<div :class="{ 'flex justify-start col-full sm:col-main relative': $store.sharingIsVisible == false }">
|
|
12
12
|
<div :style="($store.footerIsVisible && !$screen('lg')) && {bottom:$store.sharingBottomPos.current}"
|
|
13
|
-
:class="{ 'bottom-
|
|
13
|
+
:class="{ 'bottom-[19px] flex-col absolute mt-3 rounded-md': $store.sharingIsVisible == false && $store.footerIsVisible == false,
|
|
14
14
|
'flex-col absolute mt-3' : $store.footerIsVisible == true }"
|
|
15
15
|
class="flex self-center gap-3 bg-white left-5">
|
|
16
16
|
<button
|