genesys-spark-chart-components 4.74.1 → 4.76.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 (51) hide show
  1. package/dist/{esm/usage-0deb6ff1.js → cjs/color-palette-ced3f161.js} +22 -2
  2. package/dist/cjs/genesys-chart-webcomponents.cjs.js +1 -1
  3. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +11 -7
  4. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +4 -4
  5. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +10 -6
  6. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +4 -4
  7. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +10 -6
  8. package/dist/cjs/gux-visualization-beta.cjs.entry.js +16 -6
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/log-error-8f448752.js +7 -0
  11. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +45 -5
  12. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +44 -4
  13. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +44 -4
  14. package/dist/collection/components/beta/gux-visualization/gux-visualization.css +0 -16
  15. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +14 -3
  16. package/dist/collection/utils/theme/color-palette.js +2 -0
  17. package/dist/{cjs/usage-930af94e.js → esm/color-palette-fbf1d13a.js} +17 -4
  18. package/dist/esm/genesys-chart-webcomponents.js +1 -1
  19. package/dist/esm/gux-chart-column-beta.entry.js +8 -4
  20. package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
  21. package/dist/esm/gux-chart-line-beta.entry.js +8 -4
  22. package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
  23. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +8 -4
  24. package/dist/esm/gux-visualization-beta.entry.js +15 -5
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/esm/log-error-fbbfc3ab.js +5 -0
  27. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  28. package/dist/genesys-chart-webcomponents/p-11ca8f7a.entry.js +11 -0
  29. package/dist/genesys-chart-webcomponents/p-23610106.js +1 -0
  30. package/dist/genesys-chart-webcomponents/p-2bd05383.entry.js +1 -0
  31. package/dist/genesys-chart-webcomponents/{p-e391631f.entry.js → p-7de3755f.entry.js} +1 -1
  32. package/dist/genesys-chart-webcomponents/{p-72b1fd29.entry.js → p-89fdbe65.entry.js} +1 -1
  33. package/dist/genesys-chart-webcomponents/p-a3f6eb0d.js +1 -0
  34. package/dist/genesys-chart-webcomponents/p-b54c323e.entry.js +1 -0
  35. package/dist/genesys-chart-webcomponents/p-e2b74880.entry.js +1 -0
  36. package/dist/stencil-wrapper.js +1 -1
  37. package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +8 -0
  38. package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +8 -0
  39. package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +8 -0
  40. package/dist/types/components.d.ts +48 -0
  41. package/dist/types/stencil-wrapper.d.ts +1 -1
  42. package/dist/types/utils/theme/color-palette.d.ts +2 -0
  43. package/package.json +1 -1
  44. package/dist/cjs/log-error-28c7064e.js +0 -21
  45. package/dist/esm/log-error-ff9bdda4.js +0 -18
  46. package/dist/genesys-chart-webcomponents/p-53538c0a.entry.js +0 -11
  47. package/dist/genesys-chart-webcomponents/p-5e706362.js +0 -1
  48. package/dist/genesys-chart-webcomponents/p-64b49c41.entry.js +0 -1
  49. package/dist/genesys-chart-webcomponents/p-88fa4466.entry.js +0 -1
  50. package/dist/genesys-chart-webcomponents/p-c982ed58.entry.js +0 -1
  51. package/dist/genesys-chart-webcomponents/p-f50e3789.js +0 -1
@@ -1 +0,0 @@
1
- const t="4.74.1",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 i(){const t=window.newrelic;if(t){for(let r=0;r<e;r++){if(0==o.length)return void setTimeout(i,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(i,n)}}let r=!1;function c(e,n){window.newrelic&&(r||(r=!0,i()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}export{c as t}
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as s}from"./p-e068d41d.js";import{t as e}from"./p-5e706362.js";import{V as h,l as a}from"./p-f50e3789.js";const o="category",n=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},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:o,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},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||a(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,e=this.yFieldName,h=this.yAxisTitle,n=this.legendTitle,r=this.colorFieldName||o,l=this.interpolation,d=this.strokeDash,c=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.field=e),h&&(this.baseChartSpec.encoding.y.title=h),r&&(this.baseChartSpec.encoding.color.field=r),n&&(this.baseChartSpec.encoding.color.title=n),d&&(this.baseChartSpec.encoding.strokeDash={field:r,type:"nominal"}),l&&(this.baseChartSpec.mark.interpolate=l),c&&(this.baseChartSpec.mark.point=c);const g=Object.assign(this.baseChartSpec,t);this.visualizationSpec=g}componentWillLoad(){e(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"d312d8b365db65c08f3631bb4976e74f7bf077ac",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_line_beta}
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as s}from"./p-e068d41d.js";import{t as e}from"./p-5e706362.js";import{V as a,l as h}from"./p-f50e3789.js";const o="category",n=class{constructor(i){t(this,i),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"},axisX:{labelAngle:0,grid:!0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:o,type:"nominal",scale:{range:a},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.legendPosition="right",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.useShape=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||h(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,s=this.xAxisTitle,e=this.yFieldName,a=this.yAxisTitle,n=this.legendTitle,l=this.useShape||"circle",r=this.colorFieldName||o;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.field=e),a&&(this.baseChartSpec.encoding.y.title=a),r&&(this.baseChartSpec.encoding.color.field=r),n&&(this.baseChartSpec.encoding.color.title=n),this.baseChartSpec.mark={type:l,filled:!0},this.baseChartSpec.config.legend.symbolType=l,this.baseChartSpec.encoding.shape={field:r,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:i,type:"nominal",title:s},{field:e,type:"quantitative",title:a},{field:r,type:"nominal",title:n}];const d=Object.assign(this.baseChartSpec,t);this.visualizationSpec=d}componentWillLoad(){e(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"94b4f927328d22a8764207acdd36cb8bef342ea0",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_scatter_plot_beta}
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as a}from"./p-e068d41d.js";import{t as s}from"./p-5e706362.js";import{V as e,l as h}from"./p-f50e3789.js";const o=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8},axisX:{labelAngle:0},scale:{bandPaddingInner:.4,bandPaddingOuter:.4},legend:{symbolType:"circle"},bar:{color:e[0]}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},tooltip:{aggregate:"count",type:"quantitative"}}},this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.xFieldName=void 0,this.yFieldName=void 0,this.xAxisTitle=void 0,this.yAxisTitle=void 0,this.legendTitle=void 0,this.legendPosition="right",this.chartLayers=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||h(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={field:"category"}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,a=this.yFieldName,s=this.xAxisTitle,o=this.yAxisTitle,r=this.legendTitle;if(this.chartLayers){const t=this.chartLayers.map((t=>({mark:"bar",transform:[{filter:{field:"series",equal:t}}],encoding:{x:{field:i,type:"nominal"},y:{field:a,type:"quantitative"}}})));this.baseChartSpec.layer=t}else i&&(this.baseChartSpec.encoding.x.field=i),a&&(this.baseChartSpec.encoding.y.field=a),s&&(this.baseChartSpec.encoding.x.title=s),o&&(this.baseChartSpec.encoding.y.title=o),r&&(this.baseChartSpec.encoding.color.title=r);this.baseChartSpec.config.range={[i]:e};const n=Object.assign(this.baseChartSpec,t);this.visualizationSpec=n}componentWillLoad(){s(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"204c508da5ccda0059c2500fa91b06ad6ac91c2d",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:["parseData"]}}};o.style="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}";export{o as gux_chart_column_beta}
@@ -1 +0,0 @@
1
- const B=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"];function D(B,D){console.error(`[${B.tagName.toLowerCase()}] ${D}`,B)}export{B as V,D as l}