hr-design-system-handlebars 1.68.1 → 1.68.2
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 +12 -0
- package/dist/assets/index.css +3 -3
- package/dist/assets/js/components/externalService/externalServiceDs.feature.js +31 -28
- package/dist/views/components/externalService/external_service_with_datapolicy_check.hbs +1 -1
- package/dist/views_static/components/externalService/external_service_with_datapolicy_check.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.68.2 (Wed May 22 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Changing priority to Responsive Iframe [#929](https://github.com/mumprod/hr-design-system-handlebars/pull/929) ([@Paul-Atreidis](https://github.com/Paul-Atreidis))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- [@Paul-Atreidis](https://github.com/Paul-Atreidis)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.68.1 (Fri May 17 2024)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -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: cnt1716380580528;
|
|
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: cnt1716380580528 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(cnt1716380580528);
|
|
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
|
|
|
@@ -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 ~}}
|
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 ~}}
|
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.2",
|
|
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 ~}}
|