genesys-spark-chart-components 4.262.3 → 4.262.6

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.
Files changed (60) hide show
  1. package/dist/cjs/{color-palette-DvqNWJQu.js → color-palette-CIfKETRv.js} +1 -1
  2. package/dist/cjs/genesys-chart-webcomponents.cjs.js +2 -2
  3. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +7 -9
  4. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +7 -9
  5. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +7 -9
  7. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
  8. package/dist/cjs/gux-visualization-beta.cjs.entry.js +4924 -1286
  9. package/dist/cjs/{index-B2yCxXKo.js → index-BU_h9-dW.js} +35 -6
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +1 -1
  12. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +5 -7
  13. package/dist/collection/components/beta/gux-chart-column/tests/gux-chart-column.common.js +63 -0
  14. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +5 -7
  15. package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.common.js +50 -0
  16. package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.common.js +62 -0
  17. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +5 -7
  18. package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.common.js +45 -0
  19. package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.common.js +54 -0
  20. package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.common.js +116 -0
  21. package/dist/collection/test/commonTestUtils.js +1 -0
  22. package/dist/collection/test/expectToHaveNoViolations.js +44 -0
  23. package/dist/collection/test/playwrightTestUtils.js +177 -0
  24. package/dist/collection/test/setupAxeTests.js +5 -64
  25. package/dist/esm/{color-palette-UcK_0_i-.js → color-palette-D-Gi1-DZ.js} +1 -1
  26. package/dist/esm/genesys-chart-webcomponents.js +3 -3
  27. package/dist/esm/gux-chart-column-beta.entry.js +7 -9
  28. package/dist/esm/gux-chart-donut-beta.entry.js +7 -9
  29. package/dist/esm/gux-chart-line-beta.entry.js +2 -2
  30. package/dist/esm/gux-chart-pie-beta.entry.js +7 -9
  31. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
  32. package/dist/esm/gux-visualization-beta.entry.js +4919 -1281
  33. package/dist/esm/{index-B1rXZ1zs.js → index-B5vpMGHk.js} +35 -6
  34. package/dist/esm/loader.js +2 -2
  35. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  36. package/dist/genesys-chart-webcomponents/p-2077462e.entry.js +1 -0
  37. package/dist/genesys-chart-webcomponents/p-315054e8.entry.js +1 -0
  38. package/dist/genesys-chart-webcomponents/{p-4b686f37.entry.js → p-52de3bcb.entry.js} +1 -1
  39. package/dist/genesys-chart-webcomponents/p-96698672.entry.js +11 -0
  40. package/dist/genesys-chart-webcomponents/p-B5vpMGHk.js +3 -0
  41. package/dist/genesys-chart-webcomponents/{p-UcK_0_i-.js → p-D-Gi1-DZ.js} +1 -1
  42. package/dist/genesys-chart-webcomponents/{p-a8831833.entry.js → p-b9df873c.entry.js} +1 -1
  43. package/dist/genesys-chart-webcomponents/p-e77f6da7.entry.js +1 -0
  44. package/dist/types/components/beta/gux-chart-column/tests/gux-chart-column.common.d.ts +5 -0
  45. package/dist/types/components/beta/gux-chart-donut/tests/gux-chart-donut.common.d.ts +5 -0
  46. package/dist/types/components/beta/gux-chart-line/tests/gux-chart-line.common.d.ts +5 -0
  47. package/dist/types/components/beta/gux-chart-pie/tests/gux-chart-pie.common.d.ts +5 -0
  48. package/dist/types/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.common.d.ts +5 -0
  49. package/dist/types/components/beta/gux-visualization/tests/gux-visualization.common.d.ts +6 -0
  50. package/dist/types/stencil-public-runtime.d.ts +11 -0
  51. package/dist/types/test/commonTestUtils.d.ts +4 -0
  52. package/dist/types/test/expectToHaveNoViolations.d.ts +14 -0
  53. package/dist/types/test/playwrightTestUtils.d.ts +27 -0
  54. package/dist/types/test/setupAxeTests.d.ts +1 -0
  55. package/package.json +19 -11
  56. package/dist/genesys-chart-webcomponents/p-1afa7103.entry.js +0 -11
  57. package/dist/genesys-chart-webcomponents/p-7e8d4182.entry.js +0 -1
  58. package/dist/genesys-chart-webcomponents/p-B1rXZ1zs.js +0 -2
  59. package/dist/genesys-chart-webcomponents/p-c3dd9597.entry.js +0 -1
  60. package/dist/genesys-chart-webcomponents/p-d8c65dfa.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "4.262.3";
3
+ const version = "4.262.6";
4
4
  var packageInfo = {
5
5
  version: version};
6
6
 
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B2yCxXKo.js');
3
+ var index = require('./index-BU_h9-dW.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.43.5 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.44.0 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B2yCxXKo.js');
4
- var colorPalette = require('./color-palette-DvqNWJQu.js');
3
+ var index = require('./index-BU_h9-dW.js');
4
+ var colorPalette = require('./color-palette-CIfKETRv.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartColumnCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}`;
@@ -54,10 +54,6 @@ const GuxColumnChart = class {
54
54
  if (!this.xFieldName || !this.yFieldName) {
55
55
  logError.logError(this.root, 'requires x-field-name and y-field-name');
56
56
  }
57
- let chartData = {};
58
- if (this.chartData) {
59
- chartData = { data: this.chartData };
60
- }
61
57
  if (this.xTickLabelSlant) {
62
58
  this.baseChartSpec.config.axisX.labelAngle = 45;
63
59
  }
@@ -116,15 +112,17 @@ const GuxColumnChart = class {
116
112
  [rangeField]: colorPalette.VISUALIZATION_COLORS
117
113
  };
118
114
  this.baseChartSpec.config.range = rangeConfig;
119
- const spec = Object.assign(this.baseChartSpec, chartData);
120
- this.visualizationSpec = spec;
115
+ if (this.chartData) {
116
+ this.baseChartSpec.data = this.chartData;
117
+ }
118
+ this.visualizationSpec = JSON.parse(JSON.stringify(this.baseChartSpec));
121
119
  }
122
120
  componentWillLoad() {
123
121
  colorPalette.trackComponent(this.root);
124
122
  this.parseData();
125
123
  }
126
124
  render() {
127
- return (index.h("gux-visualization-beta", { key: '3747bc873408091885951d9b093bcb386a85b545', visualizationSpec: this.visualizationSpec }));
125
+ return (index.h("gux-visualization-beta", { key: 'bd2bf20b792ced36ea252d1332b3049c3ff5a652', visualizationSpec: this.visualizationSpec }));
128
126
  }
129
127
  get root() { return index.getElement(this); }
130
128
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B2yCxXKo.js');
4
- var colorPalette = require('./color-palette-DvqNWJQu.js');
3
+ var index = require('./index-BU_h9-dW.js');
4
+ var colorPalette = require('./color-palette-CIfKETRv.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartDonutCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -49,10 +49,6 @@ const GuxDonutChart = class {
49
49
  if (!this.outerRadius && !this.innerRadius) {
50
50
  logError.logError(this.root, 'requires at least one of outer-radius or inner-radius');
51
51
  }
52
- let chartData = {};
53
- if (this.chartData) {
54
- chartData = { data: this.chartData };
55
- }
56
52
  this.baseChartSpec.config.legend.orient = this.legendPosition;
57
53
  if (this.includeLegend) {
58
54
  this.baseChartSpec.encoding.color.legend = {};
@@ -186,15 +182,17 @@ const GuxDonutChart = class {
186
182
  };
187
183
  }
188
184
  }
189
- const spec = Object.assign(this.baseChartSpec, chartData);
190
- this.visualizationSpec = spec;
185
+ if (this.chartData) {
186
+ this.baseChartSpec.data = this.chartData;
187
+ }
188
+ this.visualizationSpec = JSON.parse(JSON.stringify(this.baseChartSpec));
191
189
  }
192
190
  componentWillLoad() {
193
191
  colorPalette.trackComponent(this.root);
194
192
  this.parseData();
195
193
  }
196
194
  render() {
197
- return (index.h("gux-visualization-beta", { key: '9c6ad7f05c2f788bd677dca62fd91505cba0b525', visualizationSpec: this.visualizationSpec, embedOptions: this.tooltipSpec }));
195
+ return (index.h("gux-visualization-beta", { key: 'd8fd27820d40a737e614891b68c579d03422399e', visualizationSpec: this.visualizationSpec, embedOptions: this.tooltipSpec }));
198
196
  }
199
197
  get root() { return index.getElement(this); }
200
198
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B2yCxXKo.js');
4
- var colorPalette = require('./color-palette-DvqNWJQu.js');
3
+ var index = require('./index-BU_h9-dW.js');
4
+ var colorPalette = require('./color-palette-CIfKETRv.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartLineCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B2yCxXKo.js');
4
- var colorPalette = require('./color-palette-DvqNWJQu.js');
3
+ var index = require('./index-BU_h9-dW.js');
4
+ var colorPalette = require('./color-palette-CIfKETRv.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartPieCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;
@@ -48,10 +48,6 @@ const GuxPieChart = class {
48
48
  if (!this.outerRadius) {
49
49
  logError.logError(this.root, 'requires outer-radius');
50
50
  }
51
- let chartData = {};
52
- if (this.chartData) {
53
- chartData = { data: this.chartData };
54
- }
55
51
  if (this.includeLegend) {
56
52
  this.baseChartSpec.encoding.color.legend = true;
57
53
  }
@@ -79,15 +75,17 @@ const GuxPieChart = class {
79
75
  }
80
76
  });
81
77
  }
82
- const spec = Object.assign(this.baseChartSpec, chartData);
83
- this.visualizationSpec = spec;
78
+ if (this.chartData) {
79
+ this.baseChartSpec.data = this.chartData;
80
+ }
81
+ this.visualizationSpec = JSON.parse(JSON.stringify(this.baseChartSpec));
84
82
  }
85
83
  componentWillLoad() {
86
84
  colorPalette.trackComponent(this.root);
87
85
  this.parseData();
88
86
  }
89
87
  render() {
90
- return (index.h("gux-visualization-beta", { key: 'bda28ea5f2fbd01ee1a91287f2c30446db02d910', visualizationSpec: this.visualizationSpec }));
88
+ return (index.h("gux-visualization-beta", { key: '14ea025a649390ac62820a42990bbbf4f7b8f4f5', visualizationSpec: this.visualizationSpec }));
91
89
  }
92
90
  get root() { return index.getElement(this); }
93
91
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-B2yCxXKo.js');
4
- var colorPalette = require('./color-palette-DvqNWJQu.js');
3
+ var index = require('./index-BU_h9-dW.js');
4
+ var colorPalette = require('./color-palette-CIfKETRv.js');
5
5
  var logError = require('./log-error-BMPVm36Q.js');
6
6
 
7
7
  const guxChartScatterPlotCss = () => `gux-visualization-beta{height:fit-content;color:#2e394c}`;