hr-design-system-handlebars 1.64.0 → 1.64.1

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 CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.64.1 (Wed Apr 17 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Code cleanup aspectratio fix [#909](https://github.com/mumprod/hr-design-system-handlebars/pull/909) ([@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.64.0 (Wed Apr 17 2024)
2
14
 
3
15
  #### 🚀 Enhancement
@@ -3348,7 +3348,7 @@ article.indexTextDS .indexTextHighlighted .link {
3348
3348
  border-bottom-color: var(--color-secondary-ds);
3349
3349
  }
3350
3350
  .counter-reset {
3351
- counter-reset: cnt1713357692833;
3351
+ counter-reset: cnt1713365504620;
3352
3352
  }
3353
3353
  .hyphens-auto {
3354
3354
  -webkit-hyphens: auto;
@@ -3727,7 +3727,7 @@ article.indexTextDS .indexTextHighlighted .link {
3727
3727
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3728
3728
  }
3729
3729
  .-ordered {
3730
- counter-increment: cnt1713357692833 1;
3730
+ counter-increment: cnt1713365504620 1;
3731
3731
  }
3732
3732
  .-ordered::before {
3733
3733
  position: absolute;
@@ -3743,7 +3743,7 @@ article.indexTextDS .indexTextHighlighted .link {
3743
3743
  letter-spacing: .0125em;
3744
3744
  --tw-text-opacity: 1;
3745
3745
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3746
- content: counter(cnt1713357692833);
3746
+ content: counter(cnt1713365504620);
3747
3747
  }
3748
3748
  /*! ****************************/
3749
3749
  /*! DataPolicy stuff */
@@ -1,8 +1,9 @@
1
- const DataWrapperNoResponsiveIframe = function (context, configAR, configFixedHeight, embedCode) {
1
+ const DataWrapperNoResponsiveIframe = function (context, configAR, configFixedHeight, id, embedCode) {
2
2
 
3
3
  const { element: rootElement } = context
4
4
  let aspectRatio = configAR
5
5
  let fixedHeight = configFixedHeight
6
+ let uniqueId = id
6
7
 
7
8
  const createNoResponsiveIframe = function () {
8
9
 
@@ -65,7 +66,8 @@ const DataWrapperNoResponsiveIframe = function (context, configAR, configFixedHe
65
66
  iframe.setAttribute('scrolling', 'no')
66
67
  iframe.setAttribute('frameborder', '0')
67
68
  iframe.src = embedCode
68
-
69
+ iframe.id = 'datawrapper-chart-' + uniqueId
70
+
69
71
  div.appendChild(iframe)
70
72
  parentDiv.appendChild(div)
71
73
  rootElement.appendChild(parentDiv)
@@ -157,8 +157,14 @@ const ExternalService = function (context) {
157
157
  removeDatapolicyBox()
158
158
  createUniqueID()
159
159
  if (iFrameConfig.noResponsiveIframe == 'true') {
160
- noResponsiveIframe = new DataWrapperNoResponsiveIframe(context, iFrameConfig.aspectRatio, iFrameConfig.fixedHeight, embedCode)
160
+ noResponsiveIframe = new DataWrapperNoResponsiveIframe(context, iFrameConfig.aspectRatio, iFrameConfig.fixedHeight, uniqueId, embedCode)
161
161
  noResponsiveIframe.createNoResponsiveIframe()
162
+
163
+ if (iFrameConfig.refreshContent == 'true') {
164
+ console.log("contentRefresher anfügen")
165
+ contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall)
166
+ contentRefresher.createRefresher()
167
+ }
162
168
  }
163
169
  else {
164
170
  var iframe = document.createElement('iframe')
@@ -178,6 +184,7 @@ const ExternalService = function (context) {
178
184
  'https://static.hr.de/hessenschau/datawrapper/responsiveIframe.js',
179
185
  true
180
186
  )
187
+
181
188
  if (iFrameConfig.refreshContent == 'true') {
182
189
  console.log("contentRefresher anfügen")
183
190
  contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall)
@@ -275,40 +282,17 @@ const ExternalService = function (context) {
275
282
 
276
283
  const loadIframe = function () {
277
284
  console.log('load iframe ' + id)
278
- iframe =
279
- "<iframe id='i_frame' data-isloaded='0' src='" +
280
- embedCode +
281
- "' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"
285
+ iframe = "<iframe id='i_frame' data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"
282
286
  if (iFrameConfig.aspectRatio) {
283
- iframe =
284
- "<div class='!h-full'><div class=" +
285
- getAspectRatioClass() +
286
- ' ' +
287
- id +
288
- "'><iframe id='i_frame' data-isloaded='0' src='" +
289
- embedCode +
290
- "' frameborder='0' class='w-full h-full '" +
291
- id +
292
- "' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></div>"
287
+ iframe ="<div class='!h-full'><div class='"+ getAspectRatioClass() +"'><iframe id='i_frame' data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></div>"
293
288
  //TODO Weiche Animation der Inhalte
294
289
  } else {
295
290
  if (iFrameConfig.fixedHeight) {
296
- iframe =
297
- "<div class='!h-full' style='height:" +
298
- iFrameConfig.fixedHeight +
299
- "px'><iframe data-isloaded='0' src='" +
300
- embedCode +
301
- "' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
291
+ iframe = "<div style='height:"+ iFrameConfig.fixedHeight +"px'><iframe data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
302
292
  } else {
303
- iframe =
304
- "<div class='!h-full " +
305
- id +
306
- "'><iframe data-isloaded='0' src='" +
307
- embedCode +
308
- "' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
293
+ iframe = "<div class='!h-full'><iframe data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
309
294
  }
310
295
  }
311
-
312
296
  replaceAnimated(rootElement, iframe, false)
313
297
  }
314
298
 
@@ -1,5 +1,5 @@
1
1
  {{#if this.externalServiceConfig.makeConfigurable}}
2
-
2
+ <!-- Embedding via JS with DataPolicyCheck-->
3
3
  {{> components/externalService/external_service_with_datapolicy_check }}
4
4
 
5
5
  {{else}}
@@ -8,26 +8,19 @@
8
8
  <div class="clear-both mt-10">
9
9
  <span class="sr-only">{{loca "story_externalservice_intro_sr" }}</span>
10
10
  {{#if this.externalServiceConfig.embedAsIFrame}}
11
-
11
+ <!-- Embedding via Iframe -->
12
12
  <div class="{{#if this.fixedHeight}}overflow-y-hidden{{else}}overflow-hidden{{/if}}" {{#if this.fixedHeight}}style="height:{{this.fixedHeight}}px;"{{/if}}>
13
13
  {{#unless this.fixedHeight}}<div class="{{~inline-switch this.aspectRatio '["16x9","16x7","4x3","100x27","100","9x16","7x16"]' '["ar-16-9","ar-16-7","ar-4-3","ar-100-27","ar-1-1","ar-9-16","ar-7-16","ar-16-9"]'~}}">{{/unless}}
14
- <iframe frameborder="0" width="100%" height="100%"
15
- src="{{{this.serviceUrl}}}" webkitallowfullscreen mozallowfullscreen
16
- allowfullscreen scrolling='no'>
17
- </iframe>
14
+ <iframe frameborder="0" width="100%" height="100%" src="{{{this.serviceUrl}}}" webkitallowfullscreen mozallowfullscreen allowfullscreen scrolling='no'></iframe>
18
15
  {{#unless this.fixedHeight}}</div>{{/unless}}
19
16
  </div>
20
-
21
17
  {{else}}
22
-
18
+ <!-- Embedding via JS without DataPolicyCheck-->
23
19
  <div class="c-externalService__{{this.externalServiceConfig.externalServiceId}} js-load"
24
- data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}", "embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}", "dataPolicyCheck": false, "iFrameConfig":{}}'>
25
- </div>
26
-
27
- {{/if}}
28
-
20
+ data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": false,"iFrameConfig":{}}'>
21
+ </div>
22
+ {{/if}}
29
23
  {{~> components/externalService/components/external_service_caption ~}}
30
-
31
24
  <span class="sr-only">{{loca "story_externalservice_outro_sr" }}</span>
32
25
  </div>
33
26
  {{/if}}
@@ -1,9 +1,8 @@
1
1
  <div class="grid clear-both mt-10">
2
- {{~> components/base/a11y/hiddenText _locaTag="story_externalservice_intro_sr" ~}}
2
+ {{~> components/base/a11y/hiddenText _locaTag="story_externalservice_intro_sr" ~}}
3
3
  <div class="c-externalService c-externalService__{{this.externalServiceConfig.externalServiceId}} js-load"
4
- data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}", "embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}", "dataPolicyCheck": true,"iFrameConfig": {"heightClass":""{{#if
5
- this.fixedHeight}},"fixedHeight":"{{this.fixedHeight}}", "fixedHeightClass":"-fixedHeight"{{else}},{{#if
6
- this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}","refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"}}'>
4
+ data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType":"{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": true,"iFrameConfig": { {{#if this.fixedHeight}}
5
+ "fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}"{{#if this.setTimedReloadIframe}},"refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"{{/if}} }}'>
7
6
  {{~> components/externalService/components/external_service_data_policy ~}}
8
7
  </div>
9
8
  {{~> components/externalService/components/external_service_caption ~}}
@@ -1,5 +1,5 @@
1
1
  {{#if this.externalServiceConfig.makeConfigurable}}
2
-
2
+ <!-- Embedding via JS with DataPolicyCheck-->
3
3
  {{> components/externalService/external_service_with_datapolicy_check }}
4
4
 
5
5
  {{else}}
@@ -8,26 +8,19 @@
8
8
  <div class="clear-both mt-10">
9
9
  <span class="sr-only">{{loca "story_externalservice_intro_sr" }}</span>
10
10
  {{#if this.externalServiceConfig.embedAsIFrame}}
11
-
11
+ <!-- Embedding via Iframe -->
12
12
  <div class="{{#if this.fixedHeight}}overflow-y-hidden{{else}}overflow-hidden{{/if}}" {{#if this.fixedHeight}}style="height:{{this.fixedHeight}}px;"{{/if}}>
13
13
  {{#unless this.fixedHeight}}<div class="{{~inline-switch this.aspectRatio '["16x9","16x7","4x3","100x27","100","9x16","7x16"]' '["ar-16-9","ar-16-7","ar-4-3","ar-100-27","ar-1-1","ar-9-16","ar-7-16","ar-16-9"]'~}}">{{/unless}}
14
- <iframe frameborder="0" width="100%" height="100%"
15
- src="{{{this.serviceUrl}}}" webkitallowfullscreen mozallowfullscreen
16
- allowfullscreen scrolling='no'>
17
- </iframe>
14
+ <iframe frameborder="0" width="100%" height="100%" src="{{{this.serviceUrl}}}" webkitallowfullscreen mozallowfullscreen allowfullscreen scrolling='no'></iframe>
18
15
  {{#unless this.fixedHeight}}</div>{{/unless}}
19
16
  </div>
20
-
21
17
  {{else}}
22
-
18
+ <!-- Embedding via JS without DataPolicyCheck-->
23
19
  <div class="c-externalService__{{this.externalServiceConfig.externalServiceId}} js-load"
24
- data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}", "embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}", "dataPolicyCheck": false, "iFrameConfig":{}}'>
25
- </div>
26
-
27
- {{/if}}
28
-
20
+ data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": false,"iFrameConfig":{}}'>
21
+ </div>
22
+ {{/if}}
29
23
  {{~> components/externalService/components/external_service_caption ~}}
30
-
31
24
  <span class="sr-only">{{loca "story_externalservice_outro_sr" }}</span>
32
25
  </div>
33
26
  {{/if}}
@@ -1,9 +1,8 @@
1
1
  <div class="grid clear-both mt-10">
2
- {{~> components/base/a11y/hiddenText _locaTag="story_externalservice_intro_sr" ~}}
2
+ {{~> components/base/a11y/hiddenText _locaTag="story_externalservice_intro_sr" ~}}
3
3
  <div class="c-externalService c-externalService__{{this.externalServiceConfig.externalServiceId}} js-load"
4
- data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}", "embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}", "dataPolicyCheck": true,"iFrameConfig": {"heightClass":""{{#if
5
- this.fixedHeight}},"fixedHeight":"{{this.fixedHeight}}", "fixedHeightClass":"-fixedHeight"{{else}},{{#if
6
- this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}","refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"}}'>
4
+ data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType":"{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": true,"iFrameConfig": { {{#if this.fixedHeight}}
5
+ "fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}"{{#if this.setTimedReloadIframe}},"refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"{{/if}} }}'>
7
6
  {{~> components/externalService/components/external_service_data_policy ~}}
8
7
  </div>
9
8
  {{~> 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.64.0",
9
+ "version": "1.64.1",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,8 +1,9 @@
1
- const DataWrapperNoResponsiveIframe = function (context, configAR, configFixedHeight, embedCode) {
1
+ const DataWrapperNoResponsiveIframe = function (context, configAR, configFixedHeight, id, embedCode) {
2
2
 
3
3
  const { element: rootElement } = context
4
4
  let aspectRatio = configAR
5
5
  let fixedHeight = configFixedHeight
6
+ let uniqueId = id
6
7
 
7
8
  const createNoResponsiveIframe = function () {
8
9
 
@@ -65,7 +66,8 @@ const DataWrapperNoResponsiveIframe = function (context, configAR, configFixedHe
65
66
  iframe.setAttribute('scrolling', 'no')
66
67
  iframe.setAttribute('frameborder', '0')
67
68
  iframe.src = embedCode
68
-
69
+ iframe.id = 'datawrapper-chart-' + uniqueId
70
+
69
71
  div.appendChild(iframe)
70
72
  parentDiv.appendChild(div)
71
73
  rootElement.appendChild(parentDiv)
@@ -157,8 +157,14 @@ const ExternalService = function (context) {
157
157
  removeDatapolicyBox()
158
158
  createUniqueID()
159
159
  if (iFrameConfig.noResponsiveIframe == 'true') {
160
- noResponsiveIframe = new DataWrapperNoResponsiveIframe(context, iFrameConfig.aspectRatio, iFrameConfig.fixedHeight, embedCode)
160
+ noResponsiveIframe = new DataWrapperNoResponsiveIframe(context, iFrameConfig.aspectRatio, iFrameConfig.fixedHeight, uniqueId, embedCode)
161
161
  noResponsiveIframe.createNoResponsiveIframe()
162
+
163
+ if (iFrameConfig.refreshContent == 'true') {
164
+ console.log("contentRefresher anfügen")
165
+ contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall)
166
+ contentRefresher.createRefresher()
167
+ }
162
168
  }
163
169
  else {
164
170
  var iframe = document.createElement('iframe')
@@ -178,6 +184,7 @@ const ExternalService = function (context) {
178
184
  'https://static.hr.de/hessenschau/datawrapper/responsiveIframe.js',
179
185
  true
180
186
  )
187
+
181
188
  if (iFrameConfig.refreshContent == 'true') {
182
189
  console.log("contentRefresher anfügen")
183
190
  contentRefresher = new DataWrapperContentRefresher(context, uniqueId, iFrameConfig.refreshIntervall)
@@ -275,40 +282,17 @@ const ExternalService = function (context) {
275
282
 
276
283
  const loadIframe = function () {
277
284
  console.log('load iframe ' + id)
278
- iframe =
279
- "<iframe id='i_frame' data-isloaded='0' src='" +
280
- embedCode +
281
- "' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"
285
+ iframe = "<iframe id='i_frame' data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"
282
286
  if (iFrameConfig.aspectRatio) {
283
- iframe =
284
- "<div class='!h-full'><div class=" +
285
- getAspectRatioClass() +
286
- ' ' +
287
- id +
288
- "'><iframe id='i_frame' data-isloaded='0' src='" +
289
- embedCode +
290
- "' frameborder='0' class='w-full h-full '" +
291
- id +
292
- "' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></div>"
287
+ iframe ="<div class='!h-full'><div class='"+ getAspectRatioClass() +"'><iframe id='i_frame' data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></div>"
293
288
  //TODO Weiche Animation der Inhalte
294
289
  } else {
295
290
  if (iFrameConfig.fixedHeight) {
296
- iframe =
297
- "<div class='!h-full' style='height:" +
298
- iFrameConfig.fixedHeight +
299
- "px'><iframe data-isloaded='0' src='" +
300
- embedCode +
301
- "' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
291
+ iframe = "<div style='height:"+ iFrameConfig.fixedHeight +"px'><iframe data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
302
292
  } else {
303
- iframe =
304
- "<div class='!h-full " +
305
- id +
306
- "'><iframe data-isloaded='0' src='" +
307
- embedCode +
308
- "' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
293
+ iframe = "<div class='!h-full'><iframe data-isloaded='0' src='"+ embedCode +"' frameborder='0' class='w-full h-full' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>"
309
294
  }
310
295
  }
311
-
312
296
  replaceAnimated(rootElement, iframe, false)
313
297
  }
314
298
 
@@ -1,5 +1,5 @@
1
1
  {{#if this.externalServiceConfig.makeConfigurable}}
2
-
2
+ <!-- Embedding via JS with DataPolicyCheck-->
3
3
  {{> components/externalService/external_service_with_datapolicy_check }}
4
4
 
5
5
  {{else}}
@@ -8,26 +8,19 @@
8
8
  <div class="clear-both mt-10">
9
9
  <span class="sr-only">{{loca "story_externalservice_intro_sr" }}</span>
10
10
  {{#if this.externalServiceConfig.embedAsIFrame}}
11
-
11
+ <!-- Embedding via Iframe -->
12
12
  <div class="{{#if this.fixedHeight}}overflow-y-hidden{{else}}overflow-hidden{{/if}}" {{#if this.fixedHeight}}style="height:{{this.fixedHeight}}px;"{{/if}}>
13
13
  {{#unless this.fixedHeight}}<div class="{{~inline-switch this.aspectRatio '["16x9","16x7","4x3","100x27","100","9x16","7x16"]' '["ar-16-9","ar-16-7","ar-4-3","ar-100-27","ar-1-1","ar-9-16","ar-7-16","ar-16-9"]'~}}">{{/unless}}
14
- <iframe frameborder="0" width="100%" height="100%"
15
- src="{{{this.serviceUrl}}}" webkitallowfullscreen mozallowfullscreen
16
- allowfullscreen scrolling='no'>
17
- </iframe>
14
+ <iframe frameborder="0" width="100%" height="100%" src="{{{this.serviceUrl}}}" webkitallowfullscreen mozallowfullscreen allowfullscreen scrolling='no'></iframe>
18
15
  {{#unless this.fixedHeight}}</div>{{/unless}}
19
16
  </div>
20
-
21
17
  {{else}}
22
-
18
+ <!-- Embedding via JS without DataPolicyCheck-->
23
19
  <div class="c-externalService__{{this.externalServiceConfig.externalServiceId}} js-load"
24
- data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}", "embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}", "dataPolicyCheck": false, "iFrameConfig":{}}'>
25
- </div>
26
-
27
- {{/if}}
28
-
20
+ data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": false,"iFrameConfig":{}}'>
21
+ </div>
22
+ {{/if}}
29
23
  {{~> components/externalService/components/external_service_caption ~}}
30
-
31
24
  <span class="sr-only">{{loca "story_externalservice_outro_sr" }}</span>
32
25
  </div>
33
26
  {{/if}}
@@ -26,21 +26,4 @@ Die interaktiven Elemente sind:
26
26
 
27
27
 
28
28
  ## Beispiel Dienst Giphy
29
- <Story of={ExternalServiceStories.ExterneDiensteGiphy} />
30
-
31
- ## Beispiel Dienst Datawrapper mit responsivem Iframe
32
- Der Datawrapper wird standardmässig mit einem responsiven Iframe geladen, d.h. das der Inhalt des Iframes - die Datengrafik - an den äußeren Container skaliert wird.
33
-
34
- <Story of={ExternalServiceStories.ExterneDiensteDatawrapper} />
35
-
36
- ## Beispiel Dienst Datawrapper ohne responsives Iframe und fester Höhe
37
- Ist die Konfiguration "NoResponsiveIFrame" auf TRUE gesetzt werden die Felder für "FixedHeight" und "AspectRatio" ausgelesen. Ist das Feld FixedHeight befüllt, wird der Wert daraus übernommen
38
- <Story of={ExternalServiceStories.ExterneDiensteDatawrapperNoResponsiveFixedHeight} />
39
-
40
- ## Beispiel Dienst Datawrapper ohne responsives Iframe und AspectRatio
41
- Ist die Konfiguration "NoResponsiveIFrame" auf TRUE gesetzt werden die Felder für "FixedHeight" und "AspectRatio" ausgelesen. Ist das Feld AspectRatio ausgewählt wird der Wert daraus übernommen
42
- <Story of={ExternalServiceStories.ExterneDiensteDatawrapperNoResponsiveAspectRatio} />
43
-
44
-
45
- ## Beispiel Dienst Datawrapper mit ContentRefresher
46
- <Story of={ExternalServiceStories.ExterneDiensteDatawrapperContentRefresher} />
29
+ <Story of={ExternalServiceStories.ExterneDiensteGiphy} />
@@ -28,6 +28,11 @@ export const ExterneDiensteGiphy = {
28
28
  name: 'Externe Dienste Giphy',
29
29
  args: ExternalServiceContent.Giphy,
30
30
  }
31
+ export const ExterneDiensteFlourish = {
32
+ render: TemplatePageExternalService.bind({}),
33
+ name: 'Externe Dienste Flourish',
34
+ args: ExternalServiceContent.Flourish,
35
+ }
31
36
  export const ExterneDiensteDatawrapper = {
32
37
  render: TemplatePageExternalService.bind({}),
33
38
  name: 'Externe Dienste Datawrapper MIT Responsivem Iframe',
@@ -1,9 +1,8 @@
1
1
  <div class="grid clear-both mt-10">
2
- {{~> components/base/a11y/hiddenText _locaTag="story_externalservice_intro_sr" ~}}
2
+ {{~> components/base/a11y/hiddenText _locaTag="story_externalservice_intro_sr" ~}}
3
3
  <div class="c-externalService c-externalService__{{this.externalServiceConfig.externalServiceId}} js-load"
4
- data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}", "embedType": "{{this.externalServiceConfig.externalServiceEmbedType}}", "dataPolicyCheck": true,"iFrameConfig": {"heightClass":""{{#if
5
- this.fixedHeight}},"fixedHeight":"{{this.fixedHeight}}", "fixedHeightClass":"-fixedHeight"{{else}},{{#if
6
- this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}","refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"}}'>
4
+ data-hr-external-service-ds='{"id":"{{this.externalServiceConfig.externalServiceId}}","embedCode":"{{this.serviceUrl}}","embedType":"{{this.externalServiceConfig.externalServiceEmbedType}}","dataPolicyCheck": true,"iFrameConfig": { {{#if this.fixedHeight}}
5
+ "fixedHeight":"{{this.fixedHeight}}"{{else}}{{#if this.aspectRatio}}"aspectRatio":"{{this.aspectRatio}}"{{else}}"aspectRatio":"16x9"{{/if}}{{/if}},"noResponsiveIframe":"{{{this.setResponsiveIframe}}}"{{#if this.setTimedReloadIframe}},"refreshContent":"{{{this.setTimedReloadIframe}}}","refreshIntervall":"{{this.setTimeForReload}}"{{/if}} }}'>
7
6
  {{~> components/externalService/components/external_service_data_policy ~}}
8
7
  </div>
9
8
  {{~> components/externalService/components/external_service_caption ~}}
@@ -26,7 +26,37 @@
26
26
  "setTimedReloadIframe": false,
27
27
  "setTimeForReload": ""
28
28
  },
29
- "Datawrapper_CDN": {
29
+ "Datawrapper_CDN_NoResponsiveFixedHeightReload": {
30
+ "externalServiceConfig": {
31
+ "makeConfigurable": true,
32
+ "embedAsIFrame": false,
33
+ "externalServiceId": "datawrapper_cdn",
34
+ "externalServiceEmbedType": "js",
35
+ "externalServiceName": "Datawrapper (Datengrafik)"
36
+ },
37
+ "serviceUrl": "https://datawrapper.dwcdn.net/IC3Xn/1/",
38
+ "fixedHeight": "700",
39
+ "aspectRatio": "",
40
+ "setResponsiveIframe": true,
41
+ "setTimedReloadIframe": true,
42
+ "setTimeForReload": "300"
43
+ },
44
+ "Datawrapper_CDN_NoResponsiveFixedHeight": {
45
+ "externalServiceConfig": {
46
+ "makeConfigurable": true,
47
+ "embedAsIFrame": false,
48
+ "externalServiceId": "datawrapper_cdn",
49
+ "externalServiceEmbedType": "js",
50
+ "externalServiceName": "Datawrapper (Datengrafik)"
51
+ },
52
+ "serviceUrl": "https://datawrapper.dwcdn.net/IC3Xn/1/",
53
+ "fixedHeight": "700",
54
+ "aspectRatio": "",
55
+ "setResponsiveIframe": true,
56
+ "setTimedReloadIframe": false,
57
+ "setTimeForReload": ""
58
+ },
59
+ "Datawrapper_CDN_NoResponsiveAspectRatio": {
30
60
  "externalServiceConfig": {
31
61
  "makeConfigurable": true,
32
62
  "embedAsIFrame": false,
@@ -35,11 +65,27 @@
35
65
  "externalServiceName": "Datawrapper (Datengrafik)"
36
66
  },
37
67
  "serviceUrl": "https://datawrapper.dwcdn.net/IC3Xn/1/",
38
- "fixedHeight": "380",
68
+ "fixedHeight": "",
69
+ "aspectRatio": "4x3",
39
70
  "setResponsiveIframe": true,
40
71
  "setTimedReloadIframe": false,
41
72
  "setTimeForReload": ""
42
73
  },
74
+ "Datawrapper_CDN": {
75
+ "externalServiceConfig": {
76
+ "makeConfigurable": true,
77
+ "embedAsIFrame": false,
78
+ "externalServiceId": "datawrapper_cdn",
79
+ "externalServiceEmbedType": "js",
80
+ "externalServiceName": "Datawrapper (Datengrafik)"
81
+ },
82
+ "serviceUrl": "https://datawrapper.dwcdn.net/IC3Xn/1/",
83
+ "fixedHeight": "",
84
+ "aspectRatio": "",
85
+ "setResponsiveIframe": false,
86
+ "setTimedReloadIframe": false,
87
+ "setTimeForReload": ""
88
+ },
43
89
  "Esri": {
44
90
  "externalServiceConfig": {
45
91
  "makeConfigurable": true,