genesys-spark-chart-components 4.156.5 → 4.156.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.
Files changed (37) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  2. package/dist/cjs/{color-palette-BTV2hPZK.js → color-palette-BD2MOILn.js} +1 -1
  3. package/dist/cjs/genesys-chart-webcomponents.cjs.js +4 -3
  4. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
  5. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
  8. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
  9. package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
  10. package/dist/cjs/{index-D32B1d05.js → index-C7LpM20I.js} +109 -107
  11. package/dist/cjs/loader.cjs.js +3 -2
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  14. package/dist/esm/{color-palette-LoQPFv__.js → color-palette-CgihSZiW.js} +1 -1
  15. package/dist/esm/genesys-chart-webcomponents.js +4 -3
  16. package/dist/esm/gux-chart-column-beta.entry.js +2 -2
  17. package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
  18. package/dist/esm/gux-chart-line-beta.entry.js +2 -2
  19. package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
  20. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
  21. package/dist/esm/gux-visualization-beta.entry.js +2 -2
  22. package/dist/esm/{index-7ILyl2XS.js → index-b_qwr_lO.js} +110 -107
  23. package/dist/esm/loader.js +3 -2
  24. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  25. package/dist/genesys-chart-webcomponents/{p-7260e64c.entry.js → p-0952a445.entry.js} +1 -1
  26. package/dist/genesys-chart-webcomponents/p-163c41d0.entry.js +1 -0
  27. package/dist/genesys-chart-webcomponents/{p-46e76ff1.entry.js → p-1c92e84c.entry.js} +1 -1
  28. package/dist/genesys-chart-webcomponents/{p-a32721c3.entry.js → p-90054747.entry.js} +1 -1
  29. package/dist/genesys-chart-webcomponents/{p-LoQPFv__.js → p-CgihSZiW.js} +1 -1
  30. package/dist/genesys-chart-webcomponents/p-DQuL1Twl.js +1 -0
  31. package/dist/genesys-chart-webcomponents/p-b_qwr_lO.js +2 -0
  32. package/dist/genesys-chart-webcomponents/{p-2e13a56f.entry.js → p-cd4169ec.entry.js} +1 -1
  33. package/dist/genesys-chart-webcomponents/{p-de6135f1.entry.js → p-f050d19a.entry.js} +1 -1
  34. package/dist/types/stencil-public-runtime.d.ts +12 -5
  35. package/package.json +3 -3
  36. package/dist/genesys-chart-webcomponents/p-7ILyl2XS.js +0 -2
  37. package/dist/genesys-chart-webcomponents/p-e49a5eef.entry.js +0 -1
@@ -1,11 +1,8 @@
1
1
  const NAMESPACE = 'genesys-chart-webcomponents';
2
2
  const BUILD = /* genesys-chart-webcomponents */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true};
3
3
 
4
- const globalScripts = () => {};
5
- const globalStyles = "";
6
-
7
4
  /*
8
- Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.35.3 | MIT Licensed | https://stenciljs.com
9
6
  */
10
7
  var __defProp = Object.defineProperty;
11
8
  var __export = (target, all) => {
@@ -230,13 +227,19 @@ var unwrapErr = (result) => {
230
227
  throw result.value;
231
228
  }
232
229
  };
230
+
231
+ // src/utils/style.ts
232
+ function createStyleSheetIfNeededAndSupported(styles2) {
233
+ return void 0;
234
+ }
235
+
236
+ // src/utils/shadow-root.ts
237
+ var globalStyleSheet;
233
238
  function createShadowRoot(cmpMeta) {
239
+ var _a;
234
240
  const shadowRoot = this.attachShadow({ mode: "open" });
235
- if (supportsConstructableStylesheets) {
236
- const sheet = new CSSStyleSheet();
237
- sheet.replaceSync(globalStyles);
238
- shadowRoot.adoptedStyleSheets.push(sheet);
239
- }
241
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
242
+ if (globalStyleSheet) shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
240
243
  }
241
244
  var createTime = (fnName, tagName = "") => {
242
245
  {
@@ -252,6 +255,102 @@ var uniqueTime = (key, measureText) => {
252
255
  };
253
256
  }
254
257
  };
258
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
259
+ var registerStyle = (scopeId2, cssText, allowCS) => {
260
+ let style = styles.get(scopeId2);
261
+ if (supportsConstructableStylesheets && allowCS) {
262
+ style = style || new CSSStyleSheet();
263
+ if (typeof style === "string") {
264
+ style = cssText;
265
+ } else {
266
+ style.replaceSync(cssText);
267
+ }
268
+ } else {
269
+ style = cssText;
270
+ }
271
+ styles.set(scopeId2, style);
272
+ };
273
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
274
+ var _a;
275
+ const scopeId2 = getScopeId(cmpMeta);
276
+ const style = styles.get(scopeId2);
277
+ if (!win.document) {
278
+ return scopeId2;
279
+ }
280
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
281
+ if (style) {
282
+ if (typeof style === "string") {
283
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
284
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
285
+ let styleElm;
286
+ if (!appliedStyles) {
287
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
288
+ }
289
+ if (!appliedStyles.has(scopeId2)) {
290
+ {
291
+ styleElm = win.document.createElement("style");
292
+ styleElm.innerHTML = style;
293
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
294
+ if (nonce != null) {
295
+ styleElm.setAttribute("nonce", nonce);
296
+ }
297
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
298
+ if (styleContainerNode.nodeName === "HEAD") {
299
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
300
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
301
+ styleContainerNode.insertBefore(
302
+ styleElm,
303
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
304
+ );
305
+ } else if ("host" in styleContainerNode) {
306
+ if (supportsConstructableStylesheets) {
307
+ const stylesheet = new CSSStyleSheet();
308
+ stylesheet.replaceSync(style);
309
+ styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
310
+ } else {
311
+ const existingStyleContainer = styleContainerNode.querySelector("style");
312
+ if (existingStyleContainer) {
313
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
314
+ } else {
315
+ styleContainerNode.prepend(styleElm);
316
+ }
317
+ }
318
+ } else {
319
+ styleContainerNode.append(styleElm);
320
+ }
321
+ }
322
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
323
+ styleContainerNode.insertBefore(styleElm, null);
324
+ }
325
+ }
326
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
327
+ styleElm.innerHTML += SLOT_FB_CSS;
328
+ }
329
+ if (appliedStyles) {
330
+ appliedStyles.add(scopeId2);
331
+ }
332
+ }
333
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
334
+ styleContainerNode.adoptedStyleSheets.push(style);
335
+ }
336
+ }
337
+ return scopeId2;
338
+ };
339
+ var attachStyles = (hostRef) => {
340
+ const cmpMeta = hostRef.$cmpMeta$;
341
+ const elm = hostRef.$hostElement$;
342
+ const flags = cmpMeta.$flags$;
343
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
344
+ const scopeId2 = addStyle(
345
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
346
+ cmpMeta);
347
+ if (flags & 10 /* needsScopedEncapsulation */) {
348
+ elm["s-sc"] = scopeId2;
349
+ elm.classList.add(scopeId2 + "-h");
350
+ }
351
+ endAttachStyles();
352
+ };
353
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
255
354
  var h = (nodeName, vnodeData, ...children) => {
256
355
  let child = null;
257
356
  let key = null;
@@ -366,102 +465,6 @@ var emitEvent = (elm, name, opts) => {
366
465
  elm.dispatchEvent(ev);
367
466
  return ev;
368
467
  };
369
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
370
- var registerStyle = (scopeId2, cssText, allowCS) => {
371
- let style = styles.get(scopeId2);
372
- if (supportsConstructableStylesheets && allowCS) {
373
- style = style || new CSSStyleSheet();
374
- if (typeof style === "string") {
375
- style = cssText;
376
- } else {
377
- style.replaceSync(cssText);
378
- }
379
- } else {
380
- style = cssText;
381
- }
382
- styles.set(scopeId2, style);
383
- };
384
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
385
- var _a;
386
- const scopeId2 = getScopeId(cmpMeta);
387
- const style = styles.get(scopeId2);
388
- if (!win.document) {
389
- return scopeId2;
390
- }
391
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
392
- if (style) {
393
- if (typeof style === "string") {
394
- styleContainerNode = styleContainerNode.head || styleContainerNode;
395
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
396
- let styleElm;
397
- if (!appliedStyles) {
398
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
399
- }
400
- if (!appliedStyles.has(scopeId2)) {
401
- {
402
- styleElm = win.document.createElement("style");
403
- styleElm.innerHTML = style;
404
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
405
- if (nonce != null) {
406
- styleElm.setAttribute("nonce", nonce);
407
- }
408
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
409
- if (styleContainerNode.nodeName === "HEAD") {
410
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
411
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
412
- styleContainerNode.insertBefore(
413
- styleElm,
414
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
415
- );
416
- } else if ("host" in styleContainerNode) {
417
- if (supportsConstructableStylesheets) {
418
- const stylesheet = new CSSStyleSheet();
419
- stylesheet.replaceSync(style);
420
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
421
- } else {
422
- const existingStyleContainer = styleContainerNode.querySelector("style");
423
- if (existingStyleContainer) {
424
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
425
- } else {
426
- styleContainerNode.prepend(styleElm);
427
- }
428
- }
429
- } else {
430
- styleContainerNode.append(styleElm);
431
- }
432
- }
433
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
434
- styleContainerNode.insertBefore(styleElm, null);
435
- }
436
- }
437
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
438
- styleElm.innerHTML += SLOT_FB_CSS;
439
- }
440
- if (appliedStyles) {
441
- appliedStyles.add(scopeId2);
442
- }
443
- }
444
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
445
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
446
- }
447
- }
448
- return scopeId2;
449
- };
450
- var attachStyles = (hostRef) => {
451
- const cmpMeta = hostRef.$cmpMeta$;
452
- const elm = hostRef.$hostElement$;
453
- const flags = cmpMeta.$flags$;
454
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
455
- const scopeId2 = addStyle(
456
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
457
- cmpMeta);
458
- if (flags & 10 /* needsScopedEncapsulation */) {
459
- elm["s-sc"] = scopeId2;
460
- elm.classList.add(scopeId2 + "-h");
461
- }
462
- endAttachStyles();
463
- };
464
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
465
468
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
466
469
  if (oldValue === newValue) {
467
470
  return;
@@ -735,7 +738,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
735
738
  !isInitialRender && BUILD.updatable && oldChildren !== null
736
739
  ) {
737
740
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
738
- }
741
+ } else ;
739
742
  }
740
743
  };
741
744
  var nullifyVNodeRefs = (vNode) => {
@@ -1365,4 +1368,4 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1365
1368
  // src/runtime/nonce.ts
1366
1369
  var setNonce = (nonce) => plt.$nonce$ = nonce;
1367
1370
 
1368
- export { getElement as a, bootstrapLazy as b, createEvent as c, globalScripts as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1371
+ export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -1,5 +1,6 @@
1
- import { g as globalScripts, b as bootstrapLazy } from './index-7ILyl2XS.js';
2
- export { s as setNonce } from './index-7ILyl2XS.js';
1
+ import { b as bootstrapLazy } from './index-b_qwr_lO.js';
2
+ export { s as setNonce } from './index-b_qwr_lO.js';
3
+ import { g as globalScripts } from './app-globals-DQuL1Twl.js';
3
4
 
4
5
  const defineCustomElements = async (win, options) => {
5
6
  if (typeof window === 'undefined') return undefined;
@@ -1 +1 @@
1
- import{p as e,g as l,b as a}from"./p-7ILyl2XS.js";export{s as setNonce}from"./p-7ILyl2XS.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await l(),a([["p-46e76ff1",[[1,"gux-visualization-beta",{visualizationSpec:[16,"visualization-spec"],embedOptions:[16,"embed-options"]}]]],["p-e49a5eef",[[1,"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-2e13a56f",[[1,"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-7260e64c",[[1,"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-de6135f1",[[1,"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-a32721c3",[[1,"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-b_qwr_lO.js";export{s as setNonce}from"./p-b_qwr_lO.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-1c92e84c",[[1,"gux-visualization-beta",{visualizationSpec:[16,"visualization-spec"],embedOptions:[16,"embed-options"]}]]],["p-163c41d0",[[1,"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-cd4169ec",[[1,"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-0952a445",[[1,"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-f050d19a",[[1,"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-90054747",[[1,"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 +1 @@
1
- import{r as t,h as i,a as s}from"./p-7ILyl2XS.js";import{D as a,a as e,V as h,t as o}from"./p-LoQPFv__.js";import{l as n}from"./p-nsqlWzyl.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,p=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),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),p&&(this.baseChartSpec.mark.point=p);const g=Object.assign(this.baseChartSpec,t);this.visualizationSpec=g}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
+ import{r as t,h as i,g as s}from"./p-b_qwr_lO.js";import{D as a,a as e,V as h,t as n}from"./p-CgihSZiW.js";import{l as o}from"./p-nsqlWzyl.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||o(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,n=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),this.baseChartSpec.encoding.color.field=n,h&&(this.baseChartSpec.encoding.color.title=h),c&&(this.baseChartSpec.encoding.strokeDash={field:n,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(){n(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}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as a}from"./p-b_qwr_lO.js";import{D as s,a as e,V as r,t as h}from"./p-CgihSZiW.js";import{l as n}from"./p-nsqlWzyl.js";const l=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||s,domainColor:this.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");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,e=this.yAxisTitle,h=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),e&&(this.baseChartSpec.encoding.y.title=e),h&&(this.baseChartSpec.encoding.color.title=h);const l=i;this.baseChartSpec.config.range={[l]:r};const o=Object.assign(this.baseChartSpec,t);this.visualizationSpec=o}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"5bcc2fcee3bfb4905b9fdbb572593402531f960d",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:["parseData"]}}};l.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{l as gux_chart_column_beta}