genesys-spark-chart-components 4.188.0 → 4.188.2

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 (42) hide show
  1. package/dist/cjs/{color-palette-CD2pCSMX.js → color-palette-Vmg2LQJ1.js} +1 -1
  2. package/dist/cjs/genesys-chart-webcomponents.cjs.js +3 -3
  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 +2303 -2230
  9. package/dist/cjs/{index-Db4-7Uyl.js → index-DEg9dZRu.js} +77 -22
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/collection/collection-manifest.json +2 -2
  12. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +18 -21
  13. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +32 -35
  14. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +26 -28
  15. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +14 -16
  16. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +22 -24
  17. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +4 -6
  18. package/dist/collection/test/mocks/vega-embed.js +13 -0
  19. package/dist/collection/test/mocks/vega.js +2 -0
  20. package/dist/esm/{color-palette-DY-g1mh5.js → color-palette-CjGZZVKW.js} +1 -1
  21. package/dist/esm/genesys-chart-webcomponents.js +4 -4
  22. package/dist/esm/gux-chart-column-beta.entry.js +2 -2
  23. package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
  24. package/dist/esm/gux-chart-line-beta.entry.js +2 -2
  25. package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
  26. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
  27. package/dist/esm/gux-visualization-beta.entry.js +2303 -2230
  28. package/dist/esm/{index-DohbbG4E.js → index-WPqt-wWR.js} +77 -22
  29. package/dist/esm/loader.js +3 -3
  30. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  31. package/dist/genesys-chart-webcomponents/{p-49eca9f3.entry.js → p-0783e454.entry.js} +1 -1
  32. package/dist/genesys-chart-webcomponents/{p-5ba72b75.entry.js → p-6b482b95.entry.js} +1 -1
  33. package/dist/genesys-chart-webcomponents/p-85cae9cf.entry.js +11 -0
  34. package/dist/genesys-chart-webcomponents/{p-86e02782.entry.js → p-9daaf9d3.entry.js} +1 -1
  35. package/dist/genesys-chart-webcomponents/{p-DY-g1mh5.js → p-CjGZZVKW.js} +1 -1
  36. package/dist/genesys-chart-webcomponents/p-WPqt-wWR.js +2 -0
  37. package/dist/genesys-chart-webcomponents/{p-bb476e40.entry.js → p-b71cd732.entry.js} +1 -1
  38. package/dist/genesys-chart-webcomponents/{p-176500c5.entry.js → p-cfb4e3dc.entry.js} +1 -1
  39. package/dist/types/stencil-public-runtime.d.ts +49 -2
  40. package/package.json +5 -5
  41. package/dist/genesys-chart-webcomponents/p-7bc79fef.entry.js +0 -11
  42. package/dist/genesys-chart-webcomponents/p-DohbbG4E.js +0 -2
@@ -1,14 +1,46 @@
1
1
  const NAMESPACE = 'genesys-chart-webcomponents';
2
- const BUILD = /* genesys-chart-webcomponents */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
2
+ const BUILD = /* genesys-chart-webcomponents */ { hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: true, updatable: true};
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.38.3 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+ var reWireGetterSetter = (instance, hostRef) => {
13
+ var _a;
14
+ const cmpMeta = hostRef.$cmpMeta$;
15
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
16
+ members.map(([memberName, [memberFlags]]) => {
17
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
18
+ const ogValue = instance[memberName];
19
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
20
+ if (ogDescriptor) {
21
+ Object.defineProperty(instance, memberName, {
22
+ get() {
23
+ return ogDescriptor.get.call(this);
24
+ },
25
+ set(newValue) {
26
+ ogDescriptor.set.call(this, newValue);
27
+ },
28
+ configurable: true,
29
+ enumerable: true
30
+ });
31
+ }
32
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
33
+ }
34
+ });
35
+ };
36
+ function getPropertyDescriptor(obj, memberName) {
37
+ while (obj) {
38
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
39
+ if (desc == null ? void 0 : desc.get) return desc;
40
+ obj = Object.getPrototypeOf(obj);
41
+ }
42
+ return void 0;
43
+ }
12
44
 
13
45
  // src/client/client-host-ref.ts
14
46
  var getHostRef = (ref) => {
@@ -18,21 +50,29 @@ var getHostRef = (ref) => {
18
50
  return void 0;
19
51
  };
20
52
  var registerInstance = (lazyInstance, hostRef) => {
53
+ if (!hostRef) return;
21
54
  lazyInstance.__stencil__getHostRef = () => hostRef;
22
55
  hostRef.$lazyInstance$ = lazyInstance;
56
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
57
+ reWireGetterSetter(lazyInstance, hostRef);
58
+ }
23
59
  };
24
60
  var registerHost = (hostElement, cmpMeta) => {
25
61
  const hostRef = {
26
62
  $flags$: 0,
27
63
  $hostElement$: hostElement,
28
64
  $cmpMeta$: cmpMeta,
29
- $instanceValues$: /* @__PURE__ */ new Map()
65
+ $instanceValues$: /* @__PURE__ */ new Map(),
66
+ $serializerValues$: /* @__PURE__ */ new Map()
30
67
  };
31
68
  {
32
69
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
33
70
  hostElement["s-p"] = [];
34
71
  hostElement["s-rc"] = [];
35
72
  }
73
+ {
74
+ hostRef.$fetchedCbList$ = [];
75
+ }
36
76
  const ref = hostRef;
37
77
  hostElement.__stencil__getHostRef = () => ref;
38
78
  return ref;
@@ -443,12 +483,6 @@ createSupportsRuleRe("::slotted");
443
483
  createSupportsRuleRe(":host");
444
484
  createSupportsRuleRe(":host-context");
445
485
  var parsePropertyValue = (propValue, propType, isFormAssociated) => {
446
- if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
447
- try {
448
- return JSON.parse(propValue);
449
- } catch (e) {
450
- }
451
- }
452
486
  if (propValue != null && !isComplexType(propValue)) {
453
487
  if (propType & 4 /* Boolean */) {
454
488
  {
@@ -838,6 +872,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
838
872
  }
839
873
  let maybePromise;
840
874
  if (isInitialLoad) {
875
+ {
876
+ if (hostRef.$fetchedCbList$.length) {
877
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
878
+ }
879
+ }
841
880
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
842
881
  } else {
843
882
  maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
@@ -1007,9 +1046,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1007
1046
  var proxyComponent = (Cstr, cmpMeta, flags) => {
1008
1047
  var _a, _b;
1009
1048
  const prototype = Cstr.prototype;
1010
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
1011
- if (Cstr.watchers && !cmpMeta.$watchers$) {
1012
- cmpMeta.$watchers$ = Cstr.watchers;
1049
+ if (cmpMeta.$members$ || BUILD.propChangeCallback) {
1050
+ {
1051
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
1052
+ cmpMeta.$watchers$ = Cstr.watchers;
1053
+ }
1054
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
1055
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1056
+ }
1057
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
1058
+ cmpMeta.$serializers$ = Cstr.serializers;
1059
+ }
1013
1060
  }
1014
1061
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1015
1062
  members.map(([memberName, [memberFlags]]) => {
@@ -1044,8 +1091,6 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1044
1091
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1045
1092
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1046
1093
  newValue = ref.$instanceValues$.get(memberName);
1047
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1048
- ref.$instanceValues$.set(memberName, currentValue);
1049
1094
  }
1050
1095
  origSetter.apply(this, [
1051
1096
  parsePropertyValue(
@@ -1060,7 +1105,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1060
1105
  if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1061
1106
  setValue(this, memberName, newValue, cmpMeta);
1062
1107
  if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1063
- ref.$onReadyPromise$.then(() => {
1108
+ ref.$fetchedCbList$.push(() => {
1064
1109
  if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1065
1110
  ref.$lazyInstance$[memberName] = newValue;
1066
1111
  }
@@ -1081,7 +1126,9 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1081
1126
  if (ref.$lazyInstance$) {
1082
1127
  setterSetVal();
1083
1128
  } else {
1084
- ref.$onReadyPromise$.then(() => setterSetVal());
1129
+ ref.$fetchedCbList$.push(() => {
1130
+ setterSetVal();
1131
+ });
1085
1132
  }
1086
1133
  }
1087
1134
  }
@@ -1094,14 +1141,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1094
1141
  plt.jmp(() => {
1095
1142
  var _a2;
1096
1143
  const propName = attrNameToPropName.get(attrName);
1144
+ const hostRef = getHostRef(this);
1097
1145
  if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1098
1146
  newValue = this[propName];
1099
1147
  delete this[propName];
1100
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1148
+ }
1149
+ if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1101
1150
  this[propName] == newValue) {
1102
1151
  return;
1103
1152
  } else if (propName == null) {
1104
- const hostRef = getHostRef(this);
1105
1153
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1106
1154
  if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1107
1155
  const instance = hostRef.$lazyInstance$ ;
@@ -1114,9 +1162,12 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1114
1162
  }
1115
1163
  return;
1116
1164
  }
1165
+ const propFlags = members.find(([m]) => m === propName);
1166
+ if (propFlags && propFlags[1][0] & 4 /* Boolean */) {
1167
+ newValue = newValue === null || newValue === "false" ? false : true;
1168
+ }
1117
1169
  const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1118
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1119
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1170
+ if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
1120
1171
  this[propName] = newValue;
1121
1172
  }
1122
1173
  });
@@ -1157,6 +1208,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1157
1208
  if (!Cstr.isProxied) {
1158
1209
  {
1159
1210
  cmpMeta.$watchers$ = Cstr.watchers;
1211
+ cmpMeta.$serializers$ = Cstr.serializers;
1212
+ cmpMeta.$deserializers$ = Cstr.deserializers;
1160
1213
  }
1161
1214
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1162
1215
  Cstr.isProxied = true;
@@ -1232,7 +1285,7 @@ var connectedCallback = (elm) => {
1232
1285
  }
1233
1286
  if (cmpMeta.$members$) {
1234
1287
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1235
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1288
+ if (memberFlags & 31 /* Prop */ && memberName in elm && elm[memberName] !== Object.prototype[memberName]) {
1236
1289
  const value = elm[memberName];
1237
1290
  delete elm[memberName];
1238
1291
  elm[memberName] = value;
@@ -1296,7 +1349,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1296
1349
  let hasSlotRelocation = false;
1297
1350
  lazyBundles.map((lazyBundle) => {
1298
1351
  lazyBundle[1].map((compactMeta) => {
1299
- var _a2;
1352
+ var _a2, _b, _c;
1300
1353
  const cmpMeta = {
1301
1354
  $flags$: compactMeta[0],
1302
1355
  $tagName$: compactMeta[1],
@@ -1311,6 +1364,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1311
1364
  }
1312
1365
  {
1313
1366
  cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1367
+ cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
1368
+ cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
1314
1369
  }
1315
1370
  const tagName = cmpMeta.$tagName$;
1316
1371
  const HostElement = class extends HTMLElement {
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-DohbbG4E.js';
2
- export { s as setNonce } from './index-DohbbG4E.js';
1
+ import { b as bootstrapLazy } from './index-WPqt-wWR.js';
2
+ export { s as setNonce } from './index-WPqt-wWR.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["gux-visualization-beta",[[257,"gux-visualization-beta",{"visualizationSpec":[16,"visualization-spec"],"embedOptions":[16,"embed-options"],"screenreaderDescription":[1,"screenreader-description"]}]]],["gux-chart-column-beta",[[257,"gux-chart-column-beta",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"chartData":[16,"chart-data"],"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,"chart-layers"],"embedOptions":[16,"embed-options"]},null,{"chartData":["parseData"]}]]],["gux-chart-donut-beta",[[257,"gux-chart-donut-beta",{"chartData":[16,"chart-data"],"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,"tooltip-options"],"legendX":[2,"legend-x"],"legendY":[2,"legend-y"],"legendFontSize":[2,"legend-font-size"],"legendSymbolSize":[2,"legend-symbol-size"],"embedOptions":[16,"embed-options"]},null,{"chartData":["parseData"]}]]],["gux-chart-line-beta",[[257,"gux-chart-line-beta",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"chartData":[16,"chart-data"],"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"],"strokeDash":[4,"stroke-dash"],"interpolation":[1],"embedOptions":[16,"embed-options"]},null,{"chartData":["parseData"]}]]],["gux-chart-pie-beta",[[257,"gux-chart-pie-beta",{"chartData":[16,"chart-data"],"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,"embed-options"]},null,{"chartData":["parseData"]}]]],["gux-chart-scatter-plot-beta",[[257,"gux-chart-scatter-plot-beta",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"chartData":[16,"chart-data"],"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"],"embedOptions":[16,"embed-options"]},null,{"chartData":["parseData"]}]]]], options);
8
+ return bootstrapLazy([["gux-visualization-beta",[[257,"gux-visualization-beta",{"visualizationSpec":[16],"embedOptions":[16],"screenreaderDescription":[1,"screenreader-description"]}]]],["gux-chart-column-beta",[[257,"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"]}]]],["gux-chart-donut-beta",[[257,"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"]}]]],["gux-chart-line-beta",[[257,"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"],"strokeDash":[4,"stroke-dash"],"interpolation":[1],"embedOptions":[16]},null,{"chartData":["parseData"]}]]],["gux-chart-pie-beta",[[257,"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"]}]]],["gux-chart-scatter-plot-beta",[[257,"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"],"embedOptions":[16]},null,{"chartData":["parseData"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-DohbbG4E.js";export{s as setNonce}from"./p-DohbbG4E.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-7bc79fef",[[257,"gux-visualization-beta",{visualizationSpec:[16,"visualization-spec"],embedOptions:[16,"embed-options"],screenreaderDescription:[1,"screenreader-description"]}]]],["p-bb476e40",[[257,"gux-chart-column-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16,"chart-data"],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,"chart-layers"],embedOptions:[16,"embed-options"]},null,{chartData:["parseData"]}]]],["p-49eca9f3",[[257,"gux-chart-donut-beta",{chartData:[16,"chart-data"],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,"tooltip-options"],legendX:[2,"legend-x"],legendY:[2,"legend-y"],legendFontSize:[2,"legend-font-size"],legendSymbolSize:[2,"legend-symbol-size"],embedOptions:[16,"embed-options"]},null,{chartData:["parseData"]}]]],["p-86e02782",[[257,"gux-chart-line-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16,"chart-data"],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"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16,"embed-options"]},null,{chartData:["parseData"]}]]],["p-5ba72b75",[[257,"gux-chart-pie-beta",{chartData:[16,"chart-data"],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,"embed-options"]},null,{chartData:["parseData"]}]]],["p-176500c5",[[257,"gux-chart-scatter-plot-beta",{labelColor:[1,"label-color"],domainColor:[1,"domain-color"],chartData:[16,"chart-data"],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"],embedOptions:[16,"embed-options"]},null,{chartData:["parseData"]}]]]],e))));
1
+ import{p as e,b as l}from"./p-WPqt-wWR.js";export{s as setNonce}from"./p-WPqt-wWR.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-85cae9cf",[[257,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16],screenreaderDescription:[1,"screenreader-description"]}]]],["p-b71cd732",[[257,"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"]}]]],["p-0783e454",[[257,"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"]}]]],["p-9daaf9d3",[[257,"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"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-6b482b95",[[257,"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"]}]]],["p-cfb4e3dc",[[257,"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"],embedOptions:[16]},null,{chartData:["parseData"]}]]]],e))));
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-DohbbG4E.js";import{V as a,t as s}from"./p-DY-g1mh5.js";import{l as n}from"./p-nsqlWzyl.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,this.baseChartSpec.encoding.color.field=this.colorFieldName||r;this.baseChartSpec.encoding.color.title=this.legendTitle||"";let e=this.outerRadius,i=this.innerRadius;e||(e=i+32),i||(i=e-32);let a=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:i},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:e,innerRadius:i,padAngle:.01}},{mark:{type:"arc",innerRadius:i,padAngle:.01}}],a=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:e,innerRadius:i}},{mark:{type:"arc",innerRadius:i,stroke:"#fff"}}];const s=this.centerText;s&&this.baseChartSpec.layer.push({data:{values:[{centerText:s,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 l=this.centerSubText;l&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:l,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 o=this.labelRadius,u=this.labelField||h;o&&this.baseChartSpec.layer.push({mark:{type:"text",radius:o},encoding:{text:{field:u,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[a].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:u,aggregate:"count",type:"quantitative"});const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}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-WPqt-wWR.js";import{V as a,t as s}from"./p-CjGZZVKW.js";import{l as n}from"./p-nsqlWzyl.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,this.baseChartSpec.encoding.color.field=this.colorFieldName||r;this.baseChartSpec.encoding.color.title=this.legendTitle||"";let e=this.outerRadius,i=this.innerRadius;e||(e=i+32),i||(i=e-32);let a=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:i},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:e,innerRadius:i,padAngle:.01}},{mark:{type:"arc",innerRadius:i,padAngle:.01}}],a=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:e,innerRadius:i}},{mark:{type:"arc",innerRadius:i,stroke:"#fff"}}];const s=this.centerText;s&&this.baseChartSpec.layer.push({data:{values:[{centerText:s,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 l=this.centerSubText;l&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:l,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 o=this.labelRadius,u=this.labelField||h;o&&this.baseChartSpec.layer.push({mark:{type:"text",radius:o},encoding:{text:{field:u,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[a].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:u,aggregate:"count",type:"quantitative"});const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}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-DohbbG4E.js";import{V as a,t as s}from"./p-DY-g1mh5.js";import{l as r}from"./p-nsqlWzyl.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),this.baseChartSpec.encoding.color.field=this.colorFieldName||o;const e=this.legendTitle;e&&(this.baseChartSpec.encoding.color.title=e),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"}}});const a=Object.assign(this.baseChartSpec,t);this.visualizationSpec=a}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-WPqt-wWR.js";import{V as a,t as s}from"./p-CjGZZVKW.js";import{l as r}from"./p-nsqlWzyl.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),this.baseChartSpec.encoding.color.field=this.colorFieldName||o;const e=this.legendTitle;e&&(this.baseChartSpec.encoding.color.title=e),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"}}});const a=Object.assign(this.baseChartSpec,t);this.visualizationSpec=a}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}