genesys-spark-chart-components 4.118.0 → 4.119.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.
Files changed (26) hide show
  1. package/dist/cjs/{color-palette-73729ebd.js → color-palette-a1aa5edd.js} +5 -6
  2. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
  8. package/dist/esm/{color-palette-825cfa86.js → color-palette-ffe394e2.js} +5 -6
  9. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  10. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  11. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  12. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  13. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  14. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  15. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  16. package/dist/genesys-chart-webcomponents/{p-b7d71476.entry.js → p-0e76f798.entry.js} +1 -1
  17. package/dist/genesys-chart-webcomponents/{p-4c66da4f.entry.js → p-2bf31fca.entry.js} +1 -1
  18. package/dist/genesys-chart-webcomponents/{p-80c6c9b1.entry.js → p-4588254f.entry.js} +1 -1
  19. package/dist/genesys-chart-webcomponents/{p-c0f2d392.js → p-69095e87.js} +1 -1
  20. package/dist/genesys-chart-webcomponents/{p-1ad842dd.entry.js → p-6ed914e7.entry.js} +1 -1
  21. package/dist/genesys-chart-webcomponents/{p-5f45d3a9.entry.js → p-ccd18314.entry.js} +1 -1
  22. package/dist/genesys-chart-webcomponents/{p-90667e1b.entry.js → p-f8b13e77.entry.js} +1 -1
  23. package/dist/stencil-wrapper.js +1 -1
  24. package/dist/types/stencil-wrapper.d.ts +1 -1
  25. package/dist/types/utils/tracking/usage.d.ts +6 -2
  26. package/package.json +5 -6
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "genesys-spark-chart-components";
4
- const version = "4.118.0";
4
+ const version = "4.119.1";
5
5
  const description = "Common chart webcomponents";
6
6
  const license = "MIT";
7
7
  const main = "dist/stencil-wrapper.js";
@@ -65,7 +65,6 @@ const devDependencies = {
65
65
  "@stencil/react-output-target": "^0.5.3",
66
66
  "@stencil/sass": "^3.0.12",
67
67
  "@types/jest": "^29.5.14",
68
- "@types/new-relic-browser": "^0.1118.2",
69
68
  "@types/puppeteer": "^5.4.7",
70
69
  "axe-core": "^4.10.2",
71
70
  "axe-live": "^1.0.1",
@@ -74,7 +73,7 @@ const devDependencies = {
74
73
  "file-loader": "^6.2.0",
75
74
  "genesys-spark-tokens": "file:../genesys-spark-tokens",
76
75
  glob: "^11.0.1",
77
- globals: "^15.14.0",
76
+ globals: "^15.15.0",
78
77
  handlebars: "^4.7.8",
79
78
  inquirer: "^12.4.1",
80
79
  jest: "^29.7.0",
@@ -89,7 +88,7 @@ const devDependencies = {
89
88
  "postcss-html": "^1.8.0",
90
89
  "postcss-less": "^6.0.0",
91
90
  "postcss-scss": "^4.0.9",
92
- prettier: "^3.5.0",
91
+ prettier: "^3.5.1",
93
92
  "prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
94
93
  "prettier-package-json": "^2.8.0",
95
94
  puppeteer: "^14.4.1",
@@ -99,11 +98,11 @@ const devDependencies = {
99
98
  stylelint: "^16.14.1",
100
99
  "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
101
100
  "stylelint-config-html": "^1.1.0",
102
- "stylelint-config-recess-order": "^5.1.1",
101
+ "stylelint-config-recess-order": "^6.0.0",
103
102
  "stylelint-config-standard": "^36.0.1",
104
103
  "stylelint-scss": "^6.11.0",
105
104
  "ts-loader": "^9.5.2",
106
- typescript: "^4.9.5",
105
+ typescript: "5.5.4",
107
106
  xmldom: "^0.6.0"
108
107
  };
109
108
  const publishConfig = {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-73729ebd.js');
6
+ const colorPalette = require('./color-palette-a1aa5edd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  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 .mark-rect.layer_1_marks path{fill:#1da8b3}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-73729ebd.js');
6
+ const colorPalette = require('./color-palette-a1aa5edd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-73729ebd.js');
6
+ const colorPalette = require('./color-palette-a1aa5edd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartLineCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-73729ebd.js');
6
+ const colorPalette = require('./color-palette-a1aa5edd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartPieCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-73729ebd.js');
6
+ const colorPalette = require('./color-palette-a1aa5edd.js');
7
7
  const logError = require('./log-error-8f448752.js');
8
8
 
9
9
  const guxChartScatterPlotCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index$2 = require('./index-bb73bd35.js');
6
- const colorPalette = require('./color-palette-73729ebd.js');
6
+ const colorPalette = require('./color-palette-a1aa5edd.js');
7
7
 
8
8
  // Note: This regex matches even invalid JSON strings, but since we’re
9
9
  // working on the output of `JSON.stringify` we know that only valid strings
@@ -1,5 +1,5 @@
1
1
  const name = "genesys-spark-chart-components";
2
- const version = "4.118.0";
2
+ const version = "4.119.1";
3
3
  const description = "Common chart webcomponents";
4
4
  const license = "MIT";
5
5
  const main = "dist/stencil-wrapper.js";
@@ -63,7 +63,6 @@ const devDependencies = {
63
63
  "@stencil/react-output-target": "^0.5.3",
64
64
  "@stencil/sass": "^3.0.12",
65
65
  "@types/jest": "^29.5.14",
66
- "@types/new-relic-browser": "^0.1118.2",
67
66
  "@types/puppeteer": "^5.4.7",
68
67
  "axe-core": "^4.10.2",
69
68
  "axe-live": "^1.0.1",
@@ -72,7 +71,7 @@ const devDependencies = {
72
71
  "file-loader": "^6.2.0",
73
72
  "genesys-spark-tokens": "file:../genesys-spark-tokens",
74
73
  glob: "^11.0.1",
75
- globals: "^15.14.0",
74
+ globals: "^15.15.0",
76
75
  handlebars: "^4.7.8",
77
76
  inquirer: "^12.4.1",
78
77
  jest: "^29.7.0",
@@ -87,7 +86,7 @@ const devDependencies = {
87
86
  "postcss-html": "^1.8.0",
88
87
  "postcss-less": "^6.0.0",
89
88
  "postcss-scss": "^4.0.9",
90
- prettier: "^3.5.0",
89
+ prettier: "^3.5.1",
91
90
  "prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
92
91
  "prettier-package-json": "^2.8.0",
93
92
  puppeteer: "^14.4.1",
@@ -97,11 +96,11 @@ const devDependencies = {
97
96
  stylelint: "^16.14.1",
98
97
  "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
99
98
  "stylelint-config-html": "^1.1.0",
100
- "stylelint-config-recess-order": "^5.1.1",
99
+ "stylelint-config-recess-order": "^6.0.0",
101
100
  "stylelint-config-standard": "^36.0.1",
102
101
  "stylelint-scss": "^6.11.0",
103
102
  "ts-loader": "^9.5.2",
104
- typescript: "^4.9.5",
103
+ typescript: "5.5.4",
105
104
  xmldom: "^0.6.0"
106
105
  };
107
106
  const publishConfig = {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ffe394e2.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  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 .mark-rect.layer_1_marks path{fill:#1da8b3}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
2
+ import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ffe394e2.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ffe394e2.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartLineCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
2
+ import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ffe394e2.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartPieCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-825cfa86.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-ffe394e2.js';
3
3
  import { l as logError } from './log-error-fbbfc3ab.js';
4
4
 
5
5
  const guxChartScatterPlotCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-d8134161.js';
2
- import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, t as trackComponent } from './color-palette-825cfa86.js';
2
+ import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, t as trackComponent } from './color-palette-ffe394e2.js';
3
3
 
4
4
  // Note: This regex matches even invalid JSON strings, but since we’re
5
5
  // working on the output of `JSON.stringify` we know that only valid strings
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-3f79bb4f.js";export{s as setNonce}from"./p-3f79bb4f.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-4c66da4f",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16]}]]],["p-80c6c9b1",[[1,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],xFieldName:[1,"x-field-name"],yFieldName:[1,"y-field-name"],xAxisTitle:[1,"x-axis-title"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],legendPosition:[1,"legend-position"],chartLayers:[16],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-5f45d3a9",[[1,"gux-chart-donut-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],innerRadius:[2,"inner-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],gauge:[4],centerText:[1,"center-text"],centerSubText:[1,"center-sub-text"],showTooltip:[4,"show-tooltip"],tooltipOptions:[16],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-b7d71476",[[1,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],includeDataPointMarkers:[4,"include-data-point-markers"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-90667e1b",[[1,"gux-chart-pie-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-1ad842dd",[[1,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],useShape:[1,"use-shape"],embedOptions:[16]},null,{chartData:["parseData"]}]]]],e))));
1
+ import{p as e,b as l}from"./p-3f79bb4f.js";export{s as setNonce}from"./p-3f79bb4f.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-2bf31fca",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16]}]]],["p-4588254f",[[1,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],xFieldName:[1,"x-field-name"],yFieldName:[1,"y-field-name"],xAxisTitle:[1,"x-axis-title"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],legendPosition:[1,"legend-position"],chartLayers:[16],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-ccd18314",[[1,"gux-chart-donut-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],innerRadius:[2,"inner-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],gauge:[4],centerText:[1,"center-text"],centerSubText:[1,"center-sub-text"],showTooltip:[4,"show-tooltip"],tooltipOptions:[16],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-0e76f798",[[1,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],includeDataPointMarkers:[4,"include-data-point-markers"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-f8b13e77",[[1,"gux-chart-pie-beta",{chartData:[16],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],outerRadius:[2,"outer-radius"],labelRadius:[2,"label-radius"],labelField:[1,"label-field"],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-6ed914e7",[[1,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16],xTickLabelSlant:[4,"x-tick-label-slant"],includeLegend:[4,"include-legend"],legendPosition:[1,"legend-position"],xFieldName:[1,"x-field-name"],xAxisTitle:[1,"x-axis-title"],yFieldName:[1,"y-field-name"],yAxisTitle:[1,"y-axis-title"],legendTitle:[1,"legend-title"],colorFieldName:[1,"color-field-name"],useShape:[1,"use-shape"],embedOptions:[16]},null,{chartData:["parseData"]}]]]],e))));
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-3f79bb4f.js";import{D as a,a as h,V as e,t as o}from"./p-c0f2d392.js";import{l as n}from"./p-23610106.js";const l="category",r=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||a,domainColor:this.domainColor||h},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:l,type:"nominal",scale:{range:e},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.labelColor=a,this.domainColor=h,this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.legendPosition="right",this.includeDataPointMarkers=void 0,this.xFieldName=void 0,this.xAxisTitle=void 0,this.yFieldName=void 0,this.yAxisTitle=void 0,this.legendTitle=void 0,this.colorFieldName=void 0,this.strokeDash=void 0,this.interpolation=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,a=this.yFieldName,h=this.yAxisTitle,e=this.legendTitle,o=this.colorFieldName||l,r=this.interpolation,c=this.strokeDash,d=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),a&&(this.baseChartSpec.encoding.y.field=a),h&&(this.baseChartSpec.encoding.y.title=h),o&&(this.baseChartSpec.encoding.color.field=o),e&&(this.baseChartSpec.encoding.color.title=e),c&&(this.baseChartSpec.encoding.strokeDash={field:o,type:"nominal"}),r&&(this.baseChartSpec.mark.interpolate=r),d&&(this.baseChartSpec.mark.point=d);const g=Object.assign(this.baseChartSpec,t);this.visualizationSpec=g}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"9a0bbdde50dc38102cff841ca0b2aa9aa47b47ff",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_line_beta}
1
+ import{r as t,h as i,g as s}from"./p-3f79bb4f.js";import{D as a,a as e,V as h,t as o}from"./p-69095e87.js";import{l as n}from"./p-23610106.js";const l="category",r=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||a,domainColor:this.domainColor||e},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:l,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.labelColor=a,this.domainColor=e,this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.legendPosition="right",this.includeDataPointMarkers=void 0,this.xFieldName=void 0,this.xAxisTitle=void 0,this.yFieldName=void 0,this.yAxisTitle=void 0,this.legendTitle=void 0,this.colorFieldName=void 0,this.strokeDash=void 0,this.interpolation=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,a=this.yFieldName,e=this.yAxisTitle,h=this.legendTitle,o=this.colorFieldName||l,r=this.interpolation,c=this.strokeDash,d=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),a&&(this.baseChartSpec.encoding.y.field=a),e&&(this.baseChartSpec.encoding.y.title=e),o&&(this.baseChartSpec.encoding.color.field=o),h&&(this.baseChartSpec.encoding.color.title=h),c&&(this.baseChartSpec.encoding.strokeDash={field:o,type:"nominal"}),r&&(this.baseChartSpec.mark.interpolate=r),d&&(this.baseChartSpec.mark.point=d);const g=Object.assign(this.baseChartSpec,t);this.visualizationSpec=g}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"9a0bbdde50dc38102cff841ca0b2aa9aa47b47ff",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_line_beta}