genesys-spark-chart-components 4.264.2 → 4.265.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 (35) hide show
  1. package/dist/cjs/{color-palette-PGbg4uD5.js → color-palette-CTtHBtMr.js} +1 -1
  2. package/dist/cjs/genesys-chart-webcomponents.cjs.js +2 -2
  3. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
  4. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
  5. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
  8. package/dist/cjs/gux-visualization-beta.cjs.entry.js +935 -2542
  9. package/dist/cjs/{index-BU_h9-dW.js → index-Bm_ReyJN.js} +19 -15
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +1 -1
  12. package/dist/esm/{color-palette-DS-oKQVC.js → color-palette-BmX9NvSy.js} +1 -1
  13. package/dist/esm/genesys-chart-webcomponents.js +3 -3
  14. package/dist/esm/gux-chart-column-beta.entry.js +2 -2
  15. package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
  16. package/dist/esm/gux-chart-line-beta.entry.js +2 -2
  17. package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
  18. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
  19. package/dist/esm/gux-visualization-beta.entry.js +930 -2537
  20. package/dist/esm/{index-B5vpMGHk.js → index-C2FEcqL3.js} +19 -15
  21. package/dist/esm/loader.js +2 -2
  22. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  23. package/dist/genesys-chart-webcomponents/{p-a66a5664.entry.js → p-1239752b.entry.js} +1 -1
  24. package/dist/genesys-chart-webcomponents/{p-7e16199f.entry.js → p-1fd6f23b.entry.js} +1 -1
  25. package/dist/genesys-chart-webcomponents/{p-dcae8ac6.entry.js → p-59b1d8b6.entry.js} +1 -1
  26. package/dist/genesys-chart-webcomponents/{p-6fdead5a.entry.js → p-784ea768.entry.js} +1 -1
  27. package/dist/genesys-chart-webcomponents/p-93dcd833.entry.js +11 -0
  28. package/dist/genesys-chart-webcomponents/{p-DS-oKQVC.js → p-BmX9NvSy.js} +1 -1
  29. package/dist/genesys-chart-webcomponents/p-C2FEcqL3.js +3 -0
  30. package/dist/genesys-chart-webcomponents/{p-496971d8.entry.js → p-c3b0b09b.entry.js} +1 -1
  31. package/dist/loader/index.d.ts +1 -1
  32. package/dist/types/stencil-public-runtime.d.ts +62 -55
  33. package/package.json +16 -16
  34. package/dist/genesys-chart-webcomponents/p-56119d47.entry.js +0 -11
  35. package/dist/genesys-chart-webcomponents/p-B5vpMGHk.js +0 -3
@@ -2,7 +2,7 @@ const NAMESPACE = 'genesys-chart-webcomponents';
2
2
  const BUILD = /* genesys-chart-webcomponents */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: true, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.44.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.45.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
 
8
8
 
@@ -607,7 +607,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
607
607
  }
608
608
  }
609
609
  if (newValue == null || newValue === false) {
610
- if (newValue !== false || elm.getAttribute(memberName) === "") {
610
+ if (newValue !== false || elm.getAttribute(memberName) === "" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {
611
611
  {
612
612
  elm.removeAttribute(memberName);
613
613
  }
@@ -620,6 +620,8 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
620
620
  }
621
621
  }
622
622
  };
623
+ var ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set(["draggable", "contenteditable", "spellcheck"]);
624
+ var isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith("aria-");
623
625
  var parseClassListRegex = /\s/;
624
626
  var parseClassList = (value) => {
625
627
  if (typeof value === "object" && value && "baseVal" in value) {
@@ -785,7 +787,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
785
787
  if (idxInOld >= 0) {
786
788
  elmToMove = oldCh[idxInOld];
787
789
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
788
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
790
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
789
791
  } else {
790
792
  patch(elmToMove, newStartVnode, isInitialRender);
791
793
  oldCh[idxInOld] = void 0;
@@ -870,9 +872,7 @@ var flushQueuedRefCallbacks = () => {
870
872
  }
871
873
  };
872
874
  var insertBefore = (parent, newNode, reference, isInitialLoad) => {
873
- if (parent.__insertBefore) {
874
- return parent.__insertBefore(newNode, reference);
875
- } else {
875
+ {
876
876
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
877
877
  }
878
878
  };
@@ -1118,8 +1118,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1118
1118
  }
1119
1119
  }
1120
1120
  };
1121
-
1122
- // src/runtime/proxy-component.ts
1123
1121
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1124
1122
  var _a, _b;
1125
1123
  const prototype = Cstr.prototype;
@@ -1190,21 +1188,26 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1190
1188
  }
1191
1189
  return;
1192
1190
  }
1193
- const setterSetVal = () => {
1191
+ const parsedValue = parsePropertyValue(
1192
+ newValue,
1193
+ memberFlags);
1194
+ const setterSetVal = (val) => {
1194
1195
  const currentValue = ref.$lazyInstance$[memberName];
1195
1196
  if (!ref.$instanceValues$.get(memberName) && currentValue) {
1196
1197
  ref.$instanceValues$.set(memberName, currentValue);
1197
1198
  }
1198
- ref.$lazyInstance$[memberName] = parsePropertyValue(
1199
- newValue,
1200
- memberFlags);
1199
+ ref.$lazyInstance$[memberName] = val;
1201
1200
  setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1202
1201
  };
1203
1202
  if (ref.$lazyInstance$) {
1204
- setterSetVal();
1203
+ setterSetVal(parsedValue);
1205
1204
  } else {
1205
+ ref.$instanceValues$.set(memberName, parsedValue);
1206
1206
  ref.$fetchedCbList$.push(() => {
1207
- setterSetVal();
1207
+ const pendingValue = ref.$instanceValues$.get(memberName);
1208
+ if (ref.$lazyInstance$[memberName] !== pendingValue) {
1209
+ setterSetVal(pendingValue);
1210
+ }
1208
1211
  });
1209
1212
  }
1210
1213
  }
@@ -1241,7 +1244,8 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1241
1244
  return;
1242
1245
  }
1243
1246
  const propFlags = members.find(([m]) => m === propName);
1244
- const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
1247
+ const propMemberFlags = propFlags ? propFlags[1][0] : 0;
1248
+ const isBooleanTarget = propMemberFlags & 4 /* Boolean */;
1245
1249
  const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
1246
1250
  if (isBooleanTarget) {
1247
1251
  newValue = newValue === null || newValue === "false" ? false : true;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-B5vpMGHk.js';
2
- export { s as setNonce } from './index-B5vpMGHk.js';
1
+ import { b as bootstrapLazy } from './index-C2FEcqL3.js';
2
+ export { s as setNonce } from './index-C2FEcqL3.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-B5vpMGHk.js";export{s as setNonce}from"./p-B5vpMGHk.js";import{g as i}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["p-56119d47",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16],screenreaderDescription:[1,"screenreader-description"]}]]],["p-a66a5664",[[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:0}]}]]],["p-496971d8",[[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:0}]}]]],["p-6fdead5a",[[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"],xGridVisible:[4,"x-grid-visible"],yGridVisible:[4,"y-grid-visible"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-dcae8ac6",[[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:0}]}]]],["p-7e16199f",[[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"],xGridVisible:[4,"x-grid-visible"],yGridVisible:[4,"y-grid-visible"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]]],e))));
1
+ import{p as e,b as l}from"./p-C2FEcqL3.js";export{s as setNonce}from"./p-C2FEcqL3.js";import{g as i}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,i={};return""!==l&&(i.resourcesUrl=new URL(".",l).href),e(i)})().then((async e=>(await i(),l([["p-93dcd833",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16],screenreaderDescription:[1,"screenreader-description"]}]]],["p-1239752b",[[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:0}]}]]],["p-c3b0b09b",[[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:0}]}]]],["p-784ea768",[[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"],xGridVisible:[4,"x-grid-visible"],yGridVisible:[4,"y-grid-visible"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]],["p-59b1d8b6",[[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:0}]}]]],["p-1fd6f23b",[[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"],xGridVisible:[4,"x-grid-visible"],yGridVisible:[4,"y-grid-visible"],embedOptions:[16]},null,{chartData:[{parseData:0}]}]]]],e))));
@@ -1 +1 @@
1
- import{r as t,h as i,g as a}from"./p-B5vpMGHk.js";import{D as s,a as e,V as r,t as h}from"./p-DS-oKQVC.js";import{l as n}from"./p-nsqlWzyl.js";const o=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v6.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8,labelColor:s,domainColor:e},axisX:{labelAngle:0},scale:{bandPaddingInner:.4,bandPaddingOuter:.4},legend:{symbolType:"circle"},bar:{color:r[0]}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name"),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color={field:"category"}),this.baseChartSpec.config.legend.orient=this.legendPosition;const t=this.xFieldName,i=this.yFieldName,a=this.xAxisTitle,s=this.yAxisTitle,e=this.legendTitle;if(this.chartLayers){const a=this.chartLayers.map((a=>({mark:"bar",transform:[{filter:{field:"series",equal:a}}],encoding:{x:{field:t,type:"nominal"},y:{field:i,type:"quantitative"}}})));this.baseChartSpec.layer=a}else t&&(this.baseChartSpec.encoding.x.field=t),i&&(this.baseChartSpec.encoding.y.field=i),a&&(this.baseChartSpec.encoding.x.title=a),s&&(this.baseChartSpec.encoding.y.title=s),e&&(this.baseChartSpec.encoding.color.title=e);const h=t;this.baseChartSpec.config.range={[h]:r},this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"bd2bf20b792ced36ea252d1332b3049c3ff5a652",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:[{parseData:0}]}}};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{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";export{o as gux_chart_column_beta}
1
+ import{r as t,h as i,g as a}from"./p-C2FEcqL3.js";import{D as s,a as e,V as r,t as h}from"./p-BmX9NvSy.js";import{l as n}from"./p-nsqlWzyl.js";const o=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v6.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8,labelColor:s,domainColor:e},axisX:{labelAngle:0},scale:{bandPaddingInner:.4,bandPaddingOuter:.4},legend:{symbolType:"circle"},bar:{color:r[0]}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name"),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color={field:"category"}),this.baseChartSpec.config.legend.orient=this.legendPosition;const t=this.xFieldName,i=this.yFieldName,a=this.xAxisTitle,s=this.yAxisTitle,e=this.legendTitle;if(this.chartLayers){const a=this.chartLayers.map((a=>({mark:"bar",transform:[{filter:{field:"series",equal:a}}],encoding:{x:{field:t,type:"nominal"},y:{field:i,type:"quantitative"}}})));this.baseChartSpec.layer=a}else t&&(this.baseChartSpec.encoding.x.field=t),i&&(this.baseChartSpec.encoding.y.field=i),a&&(this.baseChartSpec.encoding.x.title=a),s&&(this.baseChartSpec.encoding.y.title=s),e&&(this.baseChartSpec.encoding.color.title=e);const h=t;this.baseChartSpec.config.range={[h]:r},this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"bd2bf20b792ced36ea252d1332b3049c3ff5a652",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:[{parseData:0}]}}};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{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";export{o as gux_chart_column_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as e}from"./p-B5vpMGHk.js";import{D as s,a,V as h,t as o}from"./p-DS-oKQVC.js";import{l}from"./p-nsqlWzyl.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/v6.json",params:[{name:"onHover",select:{type:"point",on:"mouseover"}}],config:{axis:{ticks:!1,titlePadding:8,gridColor:"#F6F7F9",labelColor:s,domainColor:a},axisX:{labelAngle:0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:n,type:"nominal",scale:{range:h},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.legendPosition="right",this.xGridVisible=!0,this.yGridVisible=!1}parseData(){this.xFieldName&&this.yFieldName||l(this.root,"requires x-field-name and y-field-name"),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=-45),this.baseChartSpec.config.legend.orient=this.legendPosition;const t=this.xFieldName,i=this.xAxisTitle,e=this.yFieldName,s=this.yAxisTitle,a=this.legendTitle,h=this.useShape||"circle",o=this.colorFieldName||n;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),t&&(this.baseChartSpec.encoding.x.field=t),this.baseChartSpec.encoding.x.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.x.axis),{grid:this.yGridVisible}),i&&(this.baseChartSpec.encoding.x.title=i),e&&(this.baseChartSpec.encoding.y.field=e),this.baseChartSpec.encoding.y.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.y.axis),{grid:this.xGridVisible}),s&&(this.baseChartSpec.encoding.y.title=s),this.baseChartSpec.encoding.color.field=o,a&&(this.baseChartSpec.encoding.color.title=a),this.baseChartSpec.mark={type:h,filled:!0},this.baseChartSpec.config.legend.symbolType=h,this.baseChartSpec.encoding.shape={field:o,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:t,type:"nominal",title:i},{field:e,type:"quantitative",title:s},{field:o,type:"nominal",title:a}],this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"8e87c0daedfbc677eb570ee954742ed058b617ed",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:[{parseData:0}]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_scatter_plot_beta}
1
+ import{r as t,h as i,g as e}from"./p-C2FEcqL3.js";import{D as s,a,V as h,t as o}from"./p-BmX9NvSy.js";import{l}from"./p-nsqlWzyl.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/v6.json",params:[{name:"onHover",select:{type:"point",on:"mouseover"}}],config:{axis:{ticks:!1,titlePadding:8,gridColor:"#F6F7F9",labelColor:s,domainColor:a},axisX:{labelAngle:0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:n,type:"nominal",scale:{range:h},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.legendPosition="right",this.xGridVisible=!0,this.yGridVisible=!1}parseData(){this.xFieldName&&this.yFieldName||l(this.root,"requires x-field-name and y-field-name"),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=-45),this.baseChartSpec.config.legend.orient=this.legendPosition;const t=this.xFieldName,i=this.xAxisTitle,e=this.yFieldName,s=this.yAxisTitle,a=this.legendTitle,h=this.useShape||"circle",o=this.colorFieldName||n;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),t&&(this.baseChartSpec.encoding.x.field=t),this.baseChartSpec.encoding.x.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.x.axis),{grid:this.yGridVisible}),i&&(this.baseChartSpec.encoding.x.title=i),e&&(this.baseChartSpec.encoding.y.field=e),this.baseChartSpec.encoding.y.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.y.axis),{grid:this.xGridVisible}),s&&(this.baseChartSpec.encoding.y.title=s),this.baseChartSpec.encoding.color.field=o,a&&(this.baseChartSpec.encoding.color.title=a),this.baseChartSpec.mark={type:h,filled:!0},this.baseChartSpec.config.legend.symbolType=h,this.baseChartSpec.encoding.shape={field:o,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:t,type:"nominal",title:i},{field:e,type:"quantitative",title:s},{field:o,type:"nominal",title:a}],this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"8e87c0daedfbc677eb570ee954742ed058b617ed",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:[{parseData:0}]}}};r.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{r as gux_chart_scatter_plot_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as e}from"./p-B5vpMGHk.js";import{V as a,t as s}from"./p-DS-oKQVC.js";import{l as r}from"./p-nsqlWzyl.js";const o="category",h="value",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v6.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"),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.baseChartSpec.config.legend.orient=this.legendPosition,this.baseChartSpec.encoding.color.field=this.colorFieldName||o;const t=this.legendTitle;t&&(this.baseChartSpec.encoding.color.title=t),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const i=this.labelRadius;i&&this.baseChartSpec.layer.push({mark:{type:"text",radius:i},encoding:{text:{field:this.labelField||h,type:"quantitative"}}}),this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){s(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"14ea025a649390ac62820a42990bbbf4f7b8f4f5",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:[{parseData:0}]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
1
+ import{r as t,h as i,g as e}from"./p-C2FEcqL3.js";import{V as a,t as s}from"./p-BmX9NvSy.js";import{l as r}from"./p-nsqlWzyl.js";const o="category",h="value",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v6.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"),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.baseChartSpec.config.legend.orient=this.legendPosition,this.baseChartSpec.encoding.color.field=this.colorFieldName||o;const t=this.legendTitle;t&&(this.baseChartSpec.encoding.color.title=t),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:this.outerRadius}}];const i=this.labelRadius;i&&this.baseChartSpec.layer.push({mark:{type:"text",radius:i},encoding:{text:{field:this.labelField||h,type:"quantitative"}}}),this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){s(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"14ea025a649390ac62820a42990bbbf4f7b8f4f5",visualizationSpec:this.visualizationSpec})}get root(){return e(this)}static get watchers(){return{chartData:[{parseData:0}]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_pie_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-B5vpMGHk.js";import{D as e,a,V as h,t as o}from"./p-DS-oKQVC.js";import{l as n}from"./p-nsqlWzyl.js";const r="category",l=class{constructor(i){t(this,i),this.labelColor=e,this.domainColor=a,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v6.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8,labelColor:e,domainColor:a},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:r,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right",this.xGridVisible=!0,this.yGridVisible=!1}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name"),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.baseChartSpec.config.legend.orient=this.legendPosition;const t=this.xFieldName,i=this.xAxisTitle,s=this.yFieldName,e=this.yAxisTitle,a=this.legendTitle,h=this.colorFieldName||r,o=this.interpolation,l=this.strokeDash,c=this.includeDataPointMarkers;t&&(this.baseChartSpec.encoding.x.field=t),this.baseChartSpec.encoding.x.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.x.axis),{grid:this.yGridVisible}),i&&(this.baseChartSpec.encoding.x.title=i),s&&(this.baseChartSpec.encoding.y.field=s),this.baseChartSpec.encoding.y.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.y.axis),{grid:this.xGridVisible}),e&&(this.baseChartSpec.encoding.y.title=e),this.baseChartSpec.encoding.color.field=h,a&&(this.baseChartSpec.encoding.color.title=a),l&&(this.baseChartSpec.encoding.strokeDash={field:h,type:"nominal"}),o&&(this.baseChartSpec.mark.interpolate=o),c&&(this.baseChartSpec.mark.point=c),this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"f0d52101782cd4c59f787b6d26ef2b627b637f90",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:[{parseData:0}]}}};l.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{l as gux_chart_line_beta}
1
+ import{r as t,h as i,g as s}from"./p-C2FEcqL3.js";import{D as e,a,V as h,t as n}from"./p-BmX9NvSy.js";import{l as o}from"./p-nsqlWzyl.js";const r="category",l=class{constructor(i){t(this,i),this.labelColor=e,this.domainColor=a,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v6.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8,labelColor:e,domainColor:a},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:r,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right",this.xGridVisible=!0,this.yGridVisible=!1}parseData(){this.xFieldName&&this.yFieldName||o(this.root,"requires x-field-name and y-field-name"),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.baseChartSpec.config.legend.orient=this.legendPosition;const t=this.xFieldName,i=this.xAxisTitle,s=this.yFieldName,e=this.yAxisTitle,a=this.legendTitle,h=this.colorFieldName||r,n=this.interpolation,l=this.strokeDash,c=this.includeDataPointMarkers;t&&(this.baseChartSpec.encoding.x.field=t),this.baseChartSpec.encoding.x.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.x.axis),{grid:this.yGridVisible}),i&&(this.baseChartSpec.encoding.x.title=i),s&&(this.baseChartSpec.encoding.y.field=s),this.baseChartSpec.encoding.y.axis=Object.assign(Object.assign({},this.baseChartSpec.encoding.y.axis),{grid:this.xGridVisible}),e&&(this.baseChartSpec.encoding.y.title=e),this.baseChartSpec.encoding.color.field=h,a&&(this.baseChartSpec.encoding.color.title=a),l&&(this.baseChartSpec.encoding.strokeDash={field:h,type:"nominal"}),n&&(this.baseChartSpec.mark.interpolate=n),c&&(this.baseChartSpec.mark.point=c),this.chartData&&(this.baseChartSpec.data=this.chartData),this.visualizationSpec=JSON.parse(JSON.stringify(this.baseChartSpec))}componentWillLoad(){n(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"f0d52101782cd4c59f787b6d26ef2b627b637f90",visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:[{parseData:0}]}}};l.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{l as gux_chart_line_beta}