genesys-spark-chart-components 4.156.4 → 4.156.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/{color-palette-WpKShGrn.js → color-palette-_NUSml2P.js} +1 -1
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +4 -3
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
- package/dist/cjs/{index-D32B1d05.js → index-C7LpM20I.js} +109 -107
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/{color-palette-C8xSoqQ6.js → color-palette-qWbChwx-.js} +1 -1
- package/dist/esm/genesys-chart-webcomponents.js +4 -3
- package/dist/esm/gux-chart-column-beta.entry.js +2 -2
- package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
- package/dist/esm/gux-chart-line-beta.entry.js +2 -2
- package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
- package/dist/esm/gux-visualization-beta.entry.js +2 -2
- package/dist/esm/{index-7ILyl2XS.js → index-b_qwr_lO.js} +110 -107
- package/dist/esm/loader.js +3 -2
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-11bb4415.entry.js → p-3bf15cea.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-57068077.entry.js → p-3fa74fe9.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-3b15cd99.entry.js → p-6108ce67.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-e7ec206b.entry.js → p-8469c31f.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-93ac80f0.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-DQuL1Twl.js +1 -0
- package/dist/genesys-chart-webcomponents/p-b_qwr_lO.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-c8b4437b.entry.js → p-db79ff72.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-C8xSoqQ6.js → p-qWbChwx-.js} +1 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/package.json +8 -8
- package/dist/genesys-chart-webcomponents/p-7ILyl2XS.js +0 -2
- package/dist/genesys-chart-webcomponents/p-7b5b4311.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.
|
|
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 (
|
|
236
|
-
|
|
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 {
|
|
1371
|
+
export { bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { s as setNonce } from './index-
|
|
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,
|
|
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-8469c31f",[[1,"gux-visualization-beta",{visualizationSpec:[16,"visualization-spec"],embedOptions:[16,"embed-options"]}]]],["p-93ac80f0",[[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-3fa74fe9",[[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-3bf15cea",[[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-db79ff72",[[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-6108ce67",[[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,
|
|
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-qWbChwx-.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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-b_qwr_lO.js";import{V as a,t as s}from"./p-qWbChwx-.js";import{l as r}from"./p-nsqlWzyl.js";const n="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:n,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||r(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||n;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 i,
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-b_qwr_lO.js";import{D as e,a,V as h,t as o}from"./p-qWbChwx-.js";import{l}from"./p-nsqlWzyl.js";const n="category",r=class{constructor(i){t(this,i),this.labelColor=e,this.domainColor=a,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",params:[{name:"onHover",select:{type:"point",on:"mouseover"}}],config:{axis:{ticks:!1,titlePadding:8,gridColor:"#F6F7F9",labelColor:this.labelColor||e,domainColor:this.domainColor||a},axisX:{labelAngle:0,grid:!0},legend:{symbolType:"circle"}},width:{step:40},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:n,type:"nominal",scale:{range:h},legend:null},size:{condition:[{param:"onHover",empty:!1,value:100}],value:40}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||l(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=-45),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,e=this.yFieldName,a=this.yAxisTitle,h=this.legendTitle,o=this.useShape||"circle",r=this.colorFieldName||n;this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.field=e),a&&(this.baseChartSpec.encoding.y.title=a),this.baseChartSpec.encoding.color.field=r,h&&(this.baseChartSpec.encoding.color.title=h),this.baseChartSpec.mark={type:o,filled:!0},this.baseChartSpec.config.legend.symbolType=o,this.baseChartSpec.encoding.shape={field:r,type:"nominal"},this.baseChartSpec.encoding.tooltip=[{field:i,type:"nominal",title:s},{field:e,type:"quantitative",title:a},{field:r,type:"nominal",title:h}];const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){o(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"99d30b8b621965db1bb64abc45fa8075f7f1db2f",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_scatter_plot_beta}
|