genesys-spark-chart-components 4.154.5 → 4.154.7
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-c063c2a1.js → color-palette-c82e85c6.js} +18 -18
- 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-47ec7abf.js → color-palette-15ff78c3.js} +18 -18
- 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-c773b5f5.entry.js → p-0c56a5f4.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-9fe7c705.entry.js → p-185cf3a6.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-ebed394e.entry.js → p-7173b463.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-cc6d4e1c.js → p-b66fe9bc.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-76d71b81.entry.js → p-d7fde892.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-0b273d6f.entry.js → p-d8169da2.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-d1cb2675.entry.js → p-f509325e.entry.js} +1 -1
- package/package.json +18 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
const t="4.154.
|
|
1
|
+
const t="4.154.7",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function a(){const t=window.newrelic;if(t){for(let s=0;s<e;s++){if(0==o.length)return void setTimeout(a,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(a,n)}}let s=!1;function i(e,n){window.newrelic&&(s||(s=!0,a()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],c="#596373",m="#596373";export{c as D,r as V,m as a,i as t}
|
|
@@ -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-b66fe9bc.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 i,g as s}from"./p-977a4087.js";import{D as a,a as e,V as h,t as o}from"./p-
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-977a4087.js";import{D as a,a as e,V as h,t as o}from"./p-b66fe9bc.js";import{l as n}from"./p-23610106.js";const l="category",r=class{constructor(i){t(this,i),this.labelColor=a,this.domainColor=e,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.legendPosition="right"}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,g=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),g&&(this.baseChartSpec.mark.point=g);const p=Object.assign(this.baseChartSpec,t);this.visualizationSpec=p}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 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as e}from"./p-977a4087.js";import{D as s,a,V as o,t as h}from"./p-
|
|
1
|
+
import{r as t,h as i,g as e}from"./p-977a4087.js";import{D as s,a,V as o,t as h}from"./p-b66fe9bc.js";import{l}from"./p-23610106.js";const n="category",r=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=a,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",params:[{name:"onHover",select:{type:"point",on:"mouseover"}}],config:{axis:{ticks:!1,titlePadding:8,gridColor:"#F6F7F9",labelColor:this.labelColor||s,domainColor:this.domainColor||a},axisX:{labelAngle:0,grid:!0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:n,type:"nominal",scale:{range:o},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||l(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.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,e=this.xAxisTitle,s=this.yFieldName,a=this.yAxisTitle,o=this.legendTitle,h=this.useShape||"circle",r=this.colorFieldName||n;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),i&&(this.baseChartSpec.encoding.x.field=i),e&&(this.baseChartSpec.encoding.x.title=e),s&&(this.baseChartSpec.encoding.y.field=s),a&&(this.baseChartSpec.encoding.y.title=a),r&&(this.baseChartSpec.encoding.color.field=r),o&&(this.baseChartSpec.encoding.color.title=o),this.baseChartSpec.mark={type:h,filled:!0},this.baseChartSpec.config.legend.symbolType=h,this.baseChartSpec.encoding.shape={field:r,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:i,type:"nominal",title:e},{field:s,type:"quantitative",title:a},{field:r,type:"nominal",title:o}];const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"99d30b8b621965db1bb64abc45fa8075f7f1db2f",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:["parseData"]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_scatter_plot_beta}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genesys-spark-chart-components",
|
|
3
|
-
"version": "4.154.
|
|
3
|
+
"version": "4.154.7",
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
100
|
+
"stylelint-config-recess-order": "^6.1.0",
|
|
101
101
|
"stylelint-config-standard": "^38.0.0",
|
|
102
|
-
"stylelint-scss": "^6.12.
|
|
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": "
|
|
113
|
+
"node": "22.14.0"
|
|
114
114
|
}
|
|
115
115
|
}
|