@dhis2/analytics 25.1.10 → 25.1.11

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,10 @@
1
+ ## [25.1.11](https://github.com/dhis2/analytics/compare/v25.1.10...v25.1.11) (2023-06-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add data-test to SV icon ([#1479](https://github.com/dhis2/analytics/issues/1479)) ([df1c7ef](https://github.com/dhis2/analytics/commit/df1c7efb3136be99b5026b252a499ba0bb57ecd9))
7
+
1
8
  ## [25.1.10](https://github.com/dhis2/analytics/compare/v25.1.9...v25.1.10) (2023-05-30)
2
9
 
3
10
 
@@ -109,6 +109,7 @@ const generateValueSVG = _ref => {
109
109
  iconSvgNode.setAttribute('y', (iconSize / 2 - topMargin / 2) * -1);
110
110
  iconSvgNode.setAttribute('x', "-".concat((iconSize + getIconPadding(textSize) + textWidth) / 2));
111
111
  iconSvgNode.setAttribute('style', "color: ".concat(fillColor));
112
+ iconSvgNode.setAttribute('data-test', 'visualization-icon');
112
113
  const parser = new DOMParser();
113
114
  const svgIconDocument = parser.parseFromString(icon, 'image/svg+xml');
114
115
  Array.from(svgIconDocument.documentElement.children).forEach(node => iconSvgNode.appendChild(node));
@@ -99,6 +99,7 @@ const generateValueSVG = _ref => {
99
99
  iconSvgNode.setAttribute('y', (iconSize / 2 - topMargin / 2) * -1);
100
100
  iconSvgNode.setAttribute('x', "-".concat((iconSize + getIconPadding(textSize) + textWidth) / 2));
101
101
  iconSvgNode.setAttribute('style', "color: ".concat(fillColor));
102
+ iconSvgNode.setAttribute('data-test', 'visualization-icon');
102
103
  const parser = new DOMParser();
103
104
  const svgIconDocument = parser.parseFromString(icon, 'image/svg+xml');
104
105
  Array.from(svgIconDocument.documentElement.children).forEach(node => iconSvgNode.appendChild(node));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "25.1.10",
3
+ "version": "25.1.11",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {