genesys-spark-chart-components 4.154.6 → 4.155.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.
Files changed (23) hide show
  1. package/dist/cjs/{color-palette-1debbbba.js → color-palette-d3da8bf7.js} +18 -18
  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-b8818ec9.js → color-palette-a79b1aac.js} +18 -18
  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-f068f8f2.entry.js → p-19d6feca.entry.js} +1 -1
  17. package/dist/genesys-chart-webcomponents/{p-761457eb.js → p-22c066a2.js} +1 -1
  18. package/dist/genesys-chart-webcomponents/{p-1d267e45.entry.js → p-3c039745.entry.js} +1 -1
  19. package/dist/genesys-chart-webcomponents/{p-64c2e7e3.entry.js → p-4d99a574.entry.js} +1 -1
  20. package/dist/genesys-chart-webcomponents/{p-1f3539e7.entry.js → p-7e5fa729.entry.js} +1 -1
  21. package/dist/genesys-chart-webcomponents/{p-f76facc3.entry.js → p-9617a5da.entry.js} +1 -1
  22. package/dist/genesys-chart-webcomponents/{p-d43bb9c2.entry.js → p-ec37c345.entry.js} +1 -1
  23. package/package.json +18 -18
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-761457eb.js";import{l as n}from"./p-23610106.js";const r="category",h="value",l=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:r,type:"nominal",scale:{range:a},legend:null}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right",this.showTooltip=!0}parseData(){this.outerRadius||this.innerRadius||n(this.root,"requires at least one of outer-radius or inner-radius");let t={};this.chartData&&(t={data:this.chartData}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition),this.includeLegend?(this.baseChartSpec.encoding.color.legend={},(this.legendX||this.legendY)&&(this.baseChartSpec.config.legend.orient="none",this.legendX&&(this.baseChartSpec.encoding.color.legend.legendX=this.legendX),this.legendY&&(this.baseChartSpec.encoding.color.legend.legendY=this.legendY)),this.legendFontSize&&(this.baseChartSpec.encoding.color.legend.labelFontSize=this.legendFontSize),this.legendSymbolSize&&(this.baseChartSpec.encoding.color.legend.symbolSize=this.legendSymbolSize)):this.baseChartSpec.encoding.color.legend=null;const e=this.colorFieldName||r;e&&(this.baseChartSpec.encoding.color.field=e);this.baseChartSpec.encoding.color.title=this.legendTitle||"";let i=this.outerRadius,a=this.innerRadius;i||(i=a+32),a||(a=i-32);let s=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:a},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:i,innerRadius:a,padAngle:.01}},{mark:{type:"arc",innerRadius:a,padAngle:.01}}],s=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:i,innerRadius:a}},{mark:{type:"arc",innerRadius:a,stroke:"#fff"}}];const l=this.centerText;l&&this.baseChartSpec.layer.push({data:{values:[{centerText:l,value:0}]},mark:{align:"center",type:"text",baseline:"middle"},encoding:{color:{value:"#4C5054"},text:{field:"centerText"},size:{value:{expr:"height * 0.09"}},tooltip:null}});const o=this.centerSubText;o&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:o,value:0}]},mark:{align:"center",type:"text",baseline:"middle",y:{expr:"height/2 + 20"}},encoding:{color:{value:"#6A6D70"},text:{field:"centerSubText"},size:{value:{expr:"height * 0.06"}},tooltip:null}});const u=this.labelRadius,c=this.labelField||h;u&&this.baseChartSpec.layer.push({mark:{type:"text",radius:u},encoding:{text:{field:c,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[s].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:c,aggregate:"count",type:"quantitative"});const d=Object.assign(this.baseChartSpec,t);this.visualizationSpec=d}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"1841c32ed4312b87b8bdeca52a007a6905effce9",visualizationSpec:this.visualizationSpec,embedOptions:this.tooltipSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};l.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{l as gux_chart_donut_beta}
1
+ import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-22c066a2.js";import{l as n}from"./p-23610106.js";const r="category",h="value",l=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:r,type:"nominal",scale:{range:a},legend:null}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right",this.showTooltip=!0}parseData(){this.outerRadius||this.innerRadius||n(this.root,"requires at least one of outer-radius or inner-radius");let t={};this.chartData&&(t={data:this.chartData}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition),this.includeLegend?(this.baseChartSpec.encoding.color.legend={},(this.legendX||this.legendY)&&(this.baseChartSpec.config.legend.orient="none",this.legendX&&(this.baseChartSpec.encoding.color.legend.legendX=this.legendX),this.legendY&&(this.baseChartSpec.encoding.color.legend.legendY=this.legendY)),this.legendFontSize&&(this.baseChartSpec.encoding.color.legend.labelFontSize=this.legendFontSize),this.legendSymbolSize&&(this.baseChartSpec.encoding.color.legend.symbolSize=this.legendSymbolSize)):this.baseChartSpec.encoding.color.legend=null;const e=this.colorFieldName||r;e&&(this.baseChartSpec.encoding.color.field=e);this.baseChartSpec.encoding.color.title=this.legendTitle||"";let i=this.outerRadius,a=this.innerRadius;i||(i=a+32),a||(a=i-32);let s=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:a},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:i,innerRadius:a,padAngle:.01}},{mark:{type:"arc",innerRadius:a,padAngle:.01}}],s=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:i,innerRadius:a}},{mark:{type:"arc",innerRadius:a,stroke:"#fff"}}];const l=this.centerText;l&&this.baseChartSpec.layer.push({data:{values:[{centerText:l,value:0}]},mark:{align:"center",type:"text",baseline:"middle"},encoding:{color:{value:"#4C5054"},text:{field:"centerText"},size:{value:{expr:"height * 0.09"}},tooltip:null}});const o=this.centerSubText;o&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:o,value:0}]},mark:{align:"center",type:"text",baseline:"middle",y:{expr:"height/2 + 20"}},encoding:{color:{value:"#6A6D70"},text:{field:"centerSubText"},size:{value:{expr:"height * 0.06"}},tooltip:null}});const u=this.labelRadius,c=this.labelField||h;u&&this.baseChartSpec.layer.push({mark:{type:"text",radius:u},encoding:{text:{field:c,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[s].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:c,aggregate:"count",type:"quantitative"});const d=Object.assign(this.baseChartSpec,t);this.visualizationSpec=d}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"1841c32ed4312b87b8bdeca52a007a6905effce9",visualizationSpec:this.visualizationSpec,embedOptions:this.tooltipSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};l.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{l as gux_chart_donut_beta}
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-761457eb.js";import{l as r}from"./p-23610106.js";const o="category",h="value",n=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:o,type:"nominal",scale:{range:a},legend:null},tooltip:{aggregate:"count",type:"quantitative"}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right"}parseData(){this.outerRadius||r(this.root,"requires outer-radius");let t={};this.chartData&&(t={data:this.chartData}),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const e=this.colorFieldName||o;e&&(this.baseChartSpec.encoding.color.field=e);const i=this.legendTitle;i&&(this.baseChartSpec.encoding.color.title=i),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const a=this.labelRadius;a&&this.baseChartSpec.layer.push({mark:{type:"text",radius:a},encoding:{text:{field:this.labelField||h,type:"quantitative"}}});const s=Object.assign(this.baseChartSpec,t);this.visualizationSpec=s}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"b3049772a9d436bf4d6aa1b0e9ebe21a9d9e84e9",visualizationSpec:this.visualizationSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
1
+ import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-22c066a2.js";import{l as r}from"./p-23610106.js";const o="category",h="value",n=class{constructor(e){t(this,e),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:o,type:"nominal",scale:{range:a},legend:null},tooltip:{aggregate:"count",type:"quantitative"}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:h,type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right"}parseData(){this.outerRadius||r(this.root,"requires outer-radius");let t={};this.chartData&&(t={data:this.chartData}),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const e=this.colorFieldName||o;e&&(this.baseChartSpec.encoding.color.field=e);const i=this.legendTitle;i&&(this.baseChartSpec.encoding.color.title=i),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const a=this.labelRadius;a&&this.baseChartSpec.layer.push({mark:{type:"text",radius:a},encoding:{text:{field:this.labelField||h,type:"quantitative"}}});const s=Object.assign(this.baseChartSpec,t);this.visualizationSpec=s}componentWillLoad(){s(this.root),this.parseData()}render(){return e("gux-visualization-beta",{key:"b3049772a9d436bf4d6aa1b0e9ebe21a9d9e84e9",visualizationSpec:this.visualizationSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-chart-components",
3
- "version": "4.154.6",
3
+ "version": "4.155.0",
4
4
  "description": "Common chart webcomponents",
5
5
  "license": "MIT",
6
6
  "main": "dist/stencil-wrapper.js",
@@ -31,17 +31,17 @@
31
31
  "stencil": "stencil build --prod",
32
32
  "stencil.dev": "stencil build --dev --watch --serve --no-open",
33
33
  "stylelint": "stylelint --fix \"**/*.{css,html,scss}\"",
34
- "test": "TZ=UTC stencil test --spec --e2e",
35
- "test.ci": "TZ=UTC npm run test.ci.spec",
36
- "test.ci.e2e": "TZ=UTC stencil test --e2e --maxWorkers=1",
37
- "test.ci.spec": "TZ=UTC stencil test --spec --maxWorkers=1",
38
- "test.e2e": "TZ=UTC stencil test --e2e",
39
- "test.e2e.update-snapshot": "TZ=UTC stencil test --e2e --updateSnapshot",
40
- "test.screenshot": "TZ=UTC stencil test --e2e --screenshot",
41
- "test.unit": "TZ=UTC stencil build dev && stencil test --spec",
42
- "test.unit.update-snapshot": "TZ=UTC stencil test --spec --updateSnapshot",
43
- "test.update-snapshot": "TZ=UTC stencil test --spec --e2e --updateSnapshot",
44
- "test.watch": "TZ=UTC stencil test --spec --e2e --watch",
34
+ "test": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --e2e",
35
+ "test.ci": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC npm run test.ci.spec",
36
+ "test.ci.e2e": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e --maxWorkers=1",
37
+ "test.ci.spec": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --maxWorkers=1",
38
+ "test.e2e": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e",
39
+ "test.e2e.update-snapshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e --updateSnapshot",
40
+ "test.screenshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --e2e --screenshot",
41
+ "test.unit": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil build dev && stencil test --spec",
42
+ "test.unit.update-snapshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --updateSnapshot",
43
+ "test.update-snapshot": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --e2e --updateSnapshot",
44
+ "test.watch": "LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=UTC stencil test --spec --e2e --watch",
45
45
  "update-en-i18n": "./scripts/update-en-i18n.js",
46
46
  "version-sync": "npm version --no-git-tag-version --allow-same-version"
47
47
  },
@@ -67,11 +67,11 @@
67
67
  "@types/puppeteer": "^5.4.7",
68
68
  "axe-core": "^4.10.3",
69
69
  "axe-live": "^1.0.1",
70
- "eslint": "^9.28.0",
70
+ "eslint": "^9.29.0",
71
71
  "eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
72
72
  "file-loader": "^6.2.0",
73
73
  "genesys-spark-tokens": "file:../genesys-spark-tokens",
74
- "glob": "^11.0.2",
74
+ "glob": "^11.0.3",
75
75
  "globals": "^16.2.0",
76
76
  "handlebars": "^4.7.8",
77
77
  "inquirer": "^12.6.3",
@@ -94,12 +94,12 @@
94
94
  "rollup-plugin-copy": "^3.5.0",
95
95
  "semver-sort": "^1.0.0",
96
96
  "smob": "^1.5.0",
97
- "stylelint": "^16.20.0",
97
+ "stylelint": "^16.21.0",
98
98
  "stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
99
99
  "stylelint-config-html": "^1.1.0",
100
- "stylelint-config-recess-order": "^6.0.0",
100
+ "stylelint-config-recess-order": "^6.1.0",
101
101
  "stylelint-config-standard": "^38.0.0",
102
- "stylelint-scss": "^6.12.0",
102
+ "stylelint-scss": "^6.12.1",
103
103
  "ts-loader": "^9.5.2",
104
104
  "typescript": "5.5.4",
105
105
  "xmldom": "^0.6.0"
@@ -110,6 +110,6 @@
110
110
  "collection": "dist/collection/collection-manifest.json",
111
111
  "prettier": "prettier-config-genesys-spark-components",
112
112
  "volta": {
113
- "node": "20.9.0"
113
+ "node": "22.14.0"
114
114
  }
115
115
  }