@ons/design-system 73.6.0 → 73.7.0

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.
@@ -42,7 +42,6 @@
42
42
  {% set preferencesText = beforeLinkPreferencesUrl + ' <a href="' + settingsLinkUrl + '">' + afterLinkPreferencesUrl %}
43
43
 
44
44
  <section
45
- role="banner"
46
45
  class="ons-cookies-banner"
47
46
  aria-label="{{ params.ariaLabel | default(ariaLabel) }}"
48
47
  {% if params.cookieDomainPolicy %}data-ons-cookie-domain-policy="{{ params.cookieDomainPolicy }}"{% endif %}
package/js/chart.js ADDED
@@ -0,0 +1,4 @@
1
+ import '../components/chart/chart';
2
+ import '../components/chart/chart.dom';
3
+ import '../components/chart/chart-iframe-resize';
4
+ import '../components/chart/chart-iframe-resize.dom';
package/js/main.js CHANGED
@@ -30,7 +30,3 @@ import '../components/modal/modal.dom';
30
30
  import '../components/timeout-modal/timeout-modal.dom';
31
31
  import '../components/timeout-panel/timeout-panel.dom';
32
32
  import '../components/video/video.dom';
33
- import '../components/chart/chart';
34
- import '../components/chart/chart.dom';
35
- import '../components/chart/chart-iframe-resize';
36
- import '../components/chart/chart-iframe-resize.dom';
@@ -243,6 +243,11 @@
243
243
  (function() {
244
244
  var s = [ '{{ assetsUrl }}/scripts/main.js' ],
245
245
  c = document.createElement('script');
246
+ var hasCharts = !!document.querySelector('[data-highcharts-base-chart], .ons-chart__iframe-wrapper iframe');
247
+
248
+ if (hasCharts) {
249
+ s.push('{{ assetsUrl }}/scripts/chart.js');
250
+ }
246
251
 
247
252
  if (!('noModule' in c)) {
248
253
  for (var i = 0; i < s.length; i++) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ons/design-system",
3
3
  "description": "ONS Design System built CSS, JS, and Nunjucks templates",
4
- "version": "73.6.0",
4
+ "version": "73.7.0",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {