genesys-spark-chart-components 4.144.0 → 4.145.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/dist/cjs/{color-palette-f165bfaf.js → color-palette-46edeb27.js} +8 -8
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
- package/dist/esm/{color-palette-fe0de48f.js → color-palette-ab9284a1.js} +8 -8
- package/dist/esm/gux-chart-column-beta.entry.js +1 -1
- package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
- package/dist/esm/gux-chart-line-beta.entry.js +1 -1
- package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
- package/dist/esm/gux-visualization-beta.entry.js +1 -1
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-73b1013e.entry.js → p-0029fafb.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-1e0d3ba6.entry.js → p-6d4cf29f.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-59fc32ba.js → p-7034f657.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-7fa8c2f7.entry.js → p-8346b0b9.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-63cc1979.entry.js → p-a4472d17.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-b95d3af1.entry.js → p-c884d2ea.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-d828c02e.entry.js → p-ee4336f6.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +8 -8
|
@@ -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-
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-7034f657.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}
|
package/dist/stencil-wrapper.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineCustomElements } from '../dist/loader';
|
|
9
9
|
// Value templated out during build process (see scripts/wrap-stencil.js)
|
|
10
|
-
export const CHART_COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.
|
|
10
|
+
export const CHART_COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.145.0-645/chart/genesys-chart-webcomponents/';
|
|
11
11
|
// Default domain to load assets from
|
|
12
12
|
const DEFAULT_DOMAIN = 'app.mypurecloud.com';
|
|
13
13
|
// List of Genesys UI domains
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CHART_COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.
|
|
1
|
+
export declare const CHART_COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.145.0-645/chart/genesys-chart-webcomponents/";
|
|
2
2
|
export declare function registerElements(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genesys-spark-chart-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.145.0",
|
|
4
4
|
"description": "Common chart webcomponents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/stencil-wrapper.js",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"vega-lite": "5.23.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/core": "^7.
|
|
62
|
-
"@babel/preset-env": "^7.
|
|
61
|
+
"@babel/core": "^7.27.1",
|
|
62
|
+
"@babel/preset-env": "^7.27.2",
|
|
63
63
|
"@stencil/core": "4.23.2",
|
|
64
64
|
"@stencil/react-output-target": "^0.5.3",
|
|
65
65
|
"@stencil/sass": "^3.2.1",
|
|
@@ -67,12 +67,12 @@
|
|
|
67
67
|
"@types/puppeteer": "^5.4.7",
|
|
68
68
|
"axe-core": "^4.10.3",
|
|
69
69
|
"axe-live": "^1.0.1",
|
|
70
|
-
"eslint": "^9.
|
|
70
|
+
"eslint": "^9.26.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
74
|
"glob": "^11.0.2",
|
|
75
|
-
"globals": "^16.
|
|
75
|
+
"globals": "^16.1.0",
|
|
76
76
|
"handlebars": "^4.7.8",
|
|
77
77
|
"inquirer": "^12.6.0",
|
|
78
78
|
"jest": "^29.7.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"jest-environment-node": "^29.7.0",
|
|
82
82
|
"jest-junit": "^16.0.0",
|
|
83
83
|
"jest-silent-reporter": "^0.6.0",
|
|
84
|
-
"lint-staged": "^15.5.
|
|
84
|
+
"lint-staged": "^15.5.2",
|
|
85
85
|
"node-fetch": "^3.3.2",
|
|
86
86
|
"npm-run-all": "^4.1.5",
|
|
87
87
|
"postcss-html": "^1.8.0",
|
|
@@ -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.19.
|
|
97
|
+
"stylelint": "^16.19.1",
|
|
98
98
|
"stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
|
|
99
99
|
"stylelint-config-html": "^1.1.0",
|
|
100
100
|
"stylelint-config-recess-order": "^6.0.0",
|
|
101
101
|
"stylelint-config-standard": "^38.0.0",
|
|
102
|
-
"stylelint-scss": "^6.
|
|
102
|
+
"stylelint-scss": "^6.12.0",
|
|
103
103
|
"ts-loader": "^9.5.2",
|
|
104
104
|
"typescript": "5.5.4",
|
|
105
105
|
"xmldom": "^0.6.0"
|