@sapui5/sap.viz 1.96.2 → 1.97.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.viz",
3
- "version": "1.96.2",
3
+ "version": "1.97.0",
4
4
  "description": "SAPUI5 Library sap.viz",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -5,7 +5,7 @@
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>SAPUI5
7
7
  * (c) Copyright 2009-2021 SAP SE. All rights reserved.</copyright>
8
- <version>1.96.2</version>
8
+ <version>1.97.0</version>
9
9
 
10
10
  <documentation>Chart controls based on the SAP BI CVOM charting library</documentation>
11
11
 
@@ -240,7 +240,7 @@ sap.ui.define([
240
240
 
241
241
  //@@end generated-elements-list
242
242
  ],
243
- version: "1.96.2"
243
+ version: "1.97.0"
244
244
  });
245
245
 
246
246
  //@@begin generated-enums
@@ -27008,12 +27008,14 @@ define('sap/viz/framework/export/ExportTooltips',[
27008
27008
  });
27009
27009
 
27010
27010
  define('sap/viz/framework/export/ChartExportSVG',[
27011
+ 'sap/viz/framework/common/util/CSSUtils',
27011
27012
  'sap/viz/framework/common/util/ObjectUtils',
27012
27013
  'sap/viz/framework/common/util/TypeUtils',
27013
27014
  "sap/viz/framework/common/log/Logger",
27014
27015
  "sap/viz/framework/core/ChartViewRegistry",
27015
27016
  'sap/viz/framework/export/ExportTooltips'
27016
27017
  ], function(
27018
+ CSSUtils,
27017
27019
  ObjectUtils,
27018
27020
  TypeUtils,
27019
27021
  Logger,
@@ -27120,8 +27122,29 @@ define('sap/viz/framework/export/ChartExportSVG',[
27120
27122
  };
27121
27123
 
27122
27124
  ChartExportSVG._getSvgFromDom = function (chartAppInstance, option) {
27123
- var svg = chartAppInstance._rootElement.node().cloneNode(true);
27124
-
27125
+ var svg;
27126
+ try {
27127
+ svg = chartAppInstance._rootElement.node().cloneNode(true);
27128
+ }
27129
+ catch (err) {
27130
+ // the Safari bug seems similar to the old (2013) bug in Webkit:
27131
+ // bugs.webkit.org/show_bug.cgi?id=112270. The fix will generate a CSP log / report.
27132
+ // To remove this if Safari does fix the "cloneNode" issue.
27133
+ if (!svg) {
27134
+ var rootENote = chartAppInstance._rootElement.node();
27135
+ var iHtml = rootENote.innerHTML;
27136
+ svg = document.createElement('svg');
27137
+ svg.innerHTML = iHtml;
27138
+ for (var iRoot = 0; iRoot < rootENote.attributes.length; iRoot++) {
27139
+ var attrib = rootENote.attributes[iRoot];
27140
+ if (attrib.name !== "style") {
27141
+ svg.setAttribute(attrib.name, attrib.value);
27142
+ } else {
27143
+ CSSUtils.setDOMStyle(svg, attrib.value);
27144
+ }
27145
+ }
27146
+ }
27147
+ }
27125
27148
  var guid = ObjectUtils.guid("sap-viz");
27126
27149
  // add svg namespace
27127
27150
  // set namespace to avoid generate "ns1:href"
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/core/ElementMetadata'],
17
17
  *
18
18
  * @class
19
19
  * @author SAP SE
20
- * @version 1.96.2
20
+ * @version 1.97.0
21
21
  * @since 1.30.0
22
22
  * @alias sap.viz.ui5.core.BaseChartMetadata
23
23
  */
package/ui5.yaml CHANGED
@@ -1,4 +1,4 @@
1
- specVersion: '1.0'
1
+ specVersion: '2.6'
2
2
  type: library
3
3
  metadata:
4
4
  name: sap.viz
@@ -23,3 +23,9 @@ builder:
23
23
  - "sap/viz/resources/**"
24
24
  - "sap/viz/ui5/container/libs/**"
25
25
  - "sap/viz/ui5/controls/libs/**"
26
+ minification:
27
+ excludes:
28
+ - "sap/viz/resources/**/*.js"
29
+ - "sap/viz/ui5/container/libs/locale/*.js"
30
+ - "sap/viz/ui5/controls/libs/resources/locale/*.js"
31
+ - "sap/viz/ui5/controls/libs/sap-viz-vizframe/resources/locale/*.js"