genesys-spark-chart-components 4.137.1 → 4.137.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.
- package/dist/cjs/{color-palette-c5aba81e.js → color-palette-5ef2abb1.js} +3 -3
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +2 -2
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +10 -14
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -19
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +10 -17
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -10
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +10 -15
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -4
- package/dist/cjs/{index-409a039b.js → index-e390a39a.js} +252 -180
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +37 -15
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +41 -20
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +42 -17
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +20 -10
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +38 -15
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +6 -4
- package/dist/esm/{color-palette-b5b2d207.js → color-palette-a623ee46.js} +3 -3
- package/dist/esm/genesys-chart-webcomponents.js +3 -3
- package/dist/esm/gux-chart-column-beta.entry.js +10 -14
- package/dist/esm/gux-chart-donut-beta.entry.js +2 -19
- package/dist/esm/gux-chart-line-beta.entry.js +10 -17
- package/dist/esm/gux-chart-pie-beta.entry.js +2 -10
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +10 -15
- package/dist/esm/gux-visualization-beta.entry.js +2 -4
- package/dist/esm/{index-6f89ddc9.js → index-eabc38b4.js} +252 -180
- package/dist/esm/loader.js +2 -2
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/p-0d724f09.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-3167a2bc.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-4e1cbed4.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/{p-62e9c866.js → p-50f05a65.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-72ff1a26.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-977a4087.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-38df79fa.entry.js → p-ed27c58c.entry.js} +2 -2
- package/dist/genesys-chart-webcomponents/p-fe155fec.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +3 -3
- package/dist/genesys-chart-webcomponents/p-177ee014.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-58f02284.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-6240c9bd.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-6759e12f.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-699aab7f.js +0 -2
- package/dist/genesys-chart-webcomponents/p-eef8d50e.entry.js +0 -1
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const NAMESPACE = 'genesys-chart-webcomponents';
|
|
2
|
-
const BUILD = /* genesys-chart-webcomponents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
2
|
+
const BUILD = /* genesys-chart-webcomponents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.23.2 | 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
|
+
|
|
13
|
+
// src/client/client-host-ref.ts
|
|
12
14
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
15
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
16
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
+
};
|
|
15
19
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
20
|
const hostRef = {
|
|
17
21
|
$flags$: 0,
|
|
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
28
|
hostElement["s-p"] = [];
|
|
25
29
|
hostElement["s-rc"] = [];
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
32
|
+
return ref;
|
|
28
33
|
};
|
|
29
34
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
35
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -91,6 +96,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
91
96
|
|
|
92
97
|
// src/client/client-style.ts
|
|
93
98
|
var styles = /* @__PURE__ */ new Map();
|
|
99
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
94
100
|
var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
|
|
95
101
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
96
102
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -148,12 +154,6 @@ var flush = () => {
|
|
|
148
154
|
};
|
|
149
155
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
150
156
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
151
|
-
|
|
152
|
-
// src/utils/constants.ts
|
|
153
|
-
var EMPTY_OBJ = {};
|
|
154
|
-
|
|
155
|
-
// src/utils/helpers.ts
|
|
156
|
-
var isDef = (v) => v != null;
|
|
157
157
|
var isComplexType = (o) => {
|
|
158
158
|
o = typeof o;
|
|
159
159
|
return o === "object" || o === "function";
|
|
@@ -213,20 +213,6 @@ var unwrapErr = (result) => {
|
|
|
213
213
|
throw result.value;
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
var createTime = (fnName, tagName = "") => {
|
|
217
|
-
{
|
|
218
|
-
return () => {
|
|
219
|
-
return;
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
var uniqueTime = (key, measureText) => {
|
|
224
|
-
{
|
|
225
|
-
return () => {
|
|
226
|
-
return;
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
};
|
|
230
216
|
var h = (nodeName, vnodeData, ...children) => {
|
|
231
217
|
let child = null;
|
|
232
218
|
let key = null;
|
|
@@ -291,132 +277,6 @@ var newVNode = (tag, text) => {
|
|
|
291
277
|
};
|
|
292
278
|
var Host = {};
|
|
293
279
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
294
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
295
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
296
|
-
if (propType & 4 /* Boolean */) {
|
|
297
|
-
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
298
|
-
}
|
|
299
|
-
if (propType & 2 /* Number */) {
|
|
300
|
-
return parseFloat(propValue);
|
|
301
|
-
}
|
|
302
|
-
if (propType & 1 /* String */) {
|
|
303
|
-
return String(propValue);
|
|
304
|
-
}
|
|
305
|
-
return propValue;
|
|
306
|
-
}
|
|
307
|
-
return propValue;
|
|
308
|
-
};
|
|
309
|
-
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
310
|
-
|
|
311
|
-
// src/runtime/event-emitter.ts
|
|
312
|
-
var createEvent = (ref, name, flags) => {
|
|
313
|
-
const elm = getElement(ref);
|
|
314
|
-
return {
|
|
315
|
-
emit: (detail) => {
|
|
316
|
-
return emitEvent(elm, name, {
|
|
317
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
318
|
-
composed: !!(flags & 2 /* Composed */),
|
|
319
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
320
|
-
detail
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
};
|
|
325
|
-
var emitEvent = (elm, name, opts) => {
|
|
326
|
-
const ev = plt.ce(name, opts);
|
|
327
|
-
elm.dispatchEvent(ev);
|
|
328
|
-
return ev;
|
|
329
|
-
};
|
|
330
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
331
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
332
|
-
let style = styles.get(scopeId2);
|
|
333
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
334
|
-
style = style || new CSSStyleSheet();
|
|
335
|
-
if (typeof style === "string") {
|
|
336
|
-
style = cssText;
|
|
337
|
-
} else {
|
|
338
|
-
style.replaceSync(cssText);
|
|
339
|
-
}
|
|
340
|
-
} else {
|
|
341
|
-
style = cssText;
|
|
342
|
-
}
|
|
343
|
-
styles.set(scopeId2, style);
|
|
344
|
-
};
|
|
345
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
346
|
-
var _a;
|
|
347
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
348
|
-
const style = styles.get(scopeId2);
|
|
349
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
350
|
-
if (style) {
|
|
351
|
-
if (typeof style === "string") {
|
|
352
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
353
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
354
|
-
let styleElm;
|
|
355
|
-
if (!appliedStyles) {
|
|
356
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
357
|
-
}
|
|
358
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
359
|
-
{
|
|
360
|
-
styleElm = doc.createElement("style");
|
|
361
|
-
styleElm.innerHTML = style;
|
|
362
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
363
|
-
if (nonce != null) {
|
|
364
|
-
styleElm.setAttribute("nonce", nonce);
|
|
365
|
-
}
|
|
366
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
367
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
368
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
369
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
370
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
371
|
-
} else if ("host" in styleContainerNode) {
|
|
372
|
-
if (supportsConstructableStylesheets) {
|
|
373
|
-
const stylesheet = new CSSStyleSheet();
|
|
374
|
-
stylesheet.replaceSync(style);
|
|
375
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
376
|
-
} else {
|
|
377
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
378
|
-
if (existingStyleContainer) {
|
|
379
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
380
|
-
} else {
|
|
381
|
-
styleContainerNode.prepend(styleElm);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
} else {
|
|
385
|
-
styleContainerNode.append(styleElm);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
389
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
393
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
394
|
-
}
|
|
395
|
-
if (appliedStyles) {
|
|
396
|
-
appliedStyles.add(scopeId2);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
400
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
return scopeId2;
|
|
404
|
-
};
|
|
405
|
-
var attachStyles = (hostRef) => {
|
|
406
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
407
|
-
const elm = hostRef.$hostElement$;
|
|
408
|
-
const flags = cmpMeta.$flags$;
|
|
409
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
410
|
-
const scopeId2 = addStyle(
|
|
411
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
412
|
-
cmpMeta);
|
|
413
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
414
|
-
elm["s-sc"] = scopeId2;
|
|
415
|
-
elm.classList.add(scopeId2 + "-h");
|
|
416
|
-
}
|
|
417
|
-
endAttachStyles();
|
|
418
|
-
};
|
|
419
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
420
280
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
421
281
|
if (oldValue !== newValue) {
|
|
422
282
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -424,9 +284,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
424
284
|
if (memberName === "class") {
|
|
425
285
|
const classList = elm.classList;
|
|
426
286
|
const oldClasses = parseClassList(oldValue);
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
287
|
+
let newClasses = parseClassList(newValue);
|
|
288
|
+
if (elm["s-si"]) {
|
|
289
|
+
newClasses.push(elm["s-si"]);
|
|
290
|
+
oldClasses.forEach((c) => {
|
|
291
|
+
if (c.startsWith(elm["s-si"])) newClasses.push(c);
|
|
292
|
+
});
|
|
293
|
+
newClasses = [...new Set(newClasses)];
|
|
294
|
+
classList.add(...newClasses);
|
|
295
|
+
delete elm["s-si"];
|
|
296
|
+
} else {
|
|
297
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
298
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
299
|
+
}
|
|
430
300
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
431
301
|
if (newValue) {
|
|
432
302
|
newValue(elm);
|
|
@@ -468,13 +338,21 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
468
338
|
}
|
|
469
339
|
};
|
|
470
340
|
var parseClassListRegex = /\s/;
|
|
471
|
-
var parseClassList = (value) =>
|
|
341
|
+
var parseClassList = (value) => {
|
|
342
|
+
if (typeof value === "object" && "baseVal" in value) {
|
|
343
|
+
value = value.baseVal;
|
|
344
|
+
}
|
|
345
|
+
if (!value) {
|
|
346
|
+
return [];
|
|
347
|
+
}
|
|
348
|
+
return value.split(parseClassListRegex);
|
|
349
|
+
};
|
|
472
350
|
|
|
473
351
|
// src/runtime/vdom/update-element.ts
|
|
474
352
|
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
475
353
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
476
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
477
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
354
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
355
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
478
356
|
{
|
|
479
357
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
480
358
|
if (!(memberName in newVnodeAttrs)) {
|
|
@@ -495,13 +373,10 @@ function sortedAttrNames(attrNames) {
|
|
|
495
373
|
attrNames
|
|
496
374
|
);
|
|
497
375
|
}
|
|
498
|
-
|
|
499
|
-
// src/runtime/vdom/vdom-render.ts
|
|
500
|
-
var scopeId;
|
|
501
376
|
var hostTagName;
|
|
502
377
|
var useNativeShadowDom = false;
|
|
503
378
|
var isSvgMode = false;
|
|
504
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
379
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
505
380
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
506
381
|
let i2 = 0;
|
|
507
382
|
let elm;
|
|
@@ -513,11 +388,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
513
388
|
{
|
|
514
389
|
updateElement(null, newVNode2, isSvgMode);
|
|
515
390
|
}
|
|
516
|
-
const rootNode = elm.getRootNode();
|
|
517
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
518
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
519
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
520
|
-
}
|
|
521
391
|
if (newVNode2.$children$) {
|
|
522
392
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
523
393
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -647,6 +517,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
647
517
|
if (!isInitialRender) {
|
|
648
518
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
649
519
|
}
|
|
520
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
521
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
522
|
+
}
|
|
650
523
|
return true;
|
|
651
524
|
}
|
|
652
525
|
return false;
|
|
@@ -700,12 +573,149 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
700
573
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
701
574
|
hostRef.$vnode$ = rootVnode;
|
|
702
575
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
703
|
-
{
|
|
704
|
-
scopeId = hostElm["s-sc"];
|
|
705
|
-
}
|
|
706
576
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
707
577
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
708
578
|
};
|
|
579
|
+
var createTime = (fnName, tagName = "") => {
|
|
580
|
+
{
|
|
581
|
+
return () => {
|
|
582
|
+
return;
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
var uniqueTime = (key, measureText) => {
|
|
587
|
+
{
|
|
588
|
+
return () => {
|
|
589
|
+
return;
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
594
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
595
|
+
if (propType & 4 /* Boolean */) {
|
|
596
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
597
|
+
}
|
|
598
|
+
if (propType & 2 /* Number */) {
|
|
599
|
+
return parseFloat(propValue);
|
|
600
|
+
}
|
|
601
|
+
if (propType & 1 /* String */) {
|
|
602
|
+
return String(propValue);
|
|
603
|
+
}
|
|
604
|
+
return propValue;
|
|
605
|
+
}
|
|
606
|
+
return propValue;
|
|
607
|
+
};
|
|
608
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
609
|
+
|
|
610
|
+
// src/runtime/event-emitter.ts
|
|
611
|
+
var createEvent = (ref, name, flags) => {
|
|
612
|
+
const elm = getElement(ref);
|
|
613
|
+
return {
|
|
614
|
+
emit: (detail) => {
|
|
615
|
+
return emitEvent(elm, name, {
|
|
616
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
617
|
+
composed: !!(flags & 2 /* Composed */),
|
|
618
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
619
|
+
detail
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
var emitEvent = (elm, name, opts) => {
|
|
625
|
+
const ev = plt.ce(name, opts);
|
|
626
|
+
elm.dispatchEvent(ev);
|
|
627
|
+
return ev;
|
|
628
|
+
};
|
|
629
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
630
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
631
|
+
let style = styles.get(scopeId2);
|
|
632
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
633
|
+
style = style || new CSSStyleSheet();
|
|
634
|
+
if (typeof style === "string") {
|
|
635
|
+
style = cssText;
|
|
636
|
+
} else {
|
|
637
|
+
style.replaceSync(cssText);
|
|
638
|
+
}
|
|
639
|
+
} else {
|
|
640
|
+
style = cssText;
|
|
641
|
+
}
|
|
642
|
+
styles.set(scopeId2, style);
|
|
643
|
+
};
|
|
644
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
645
|
+
var _a;
|
|
646
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
647
|
+
const style = styles.get(scopeId2);
|
|
648
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
649
|
+
if (style) {
|
|
650
|
+
if (typeof style === "string") {
|
|
651
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
652
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
653
|
+
let styleElm;
|
|
654
|
+
if (!appliedStyles) {
|
|
655
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
656
|
+
}
|
|
657
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
658
|
+
{
|
|
659
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
660
|
+
styleElm.innerHTML = style;
|
|
661
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
662
|
+
if (nonce != null) {
|
|
663
|
+
styleElm.setAttribute("nonce", nonce);
|
|
664
|
+
}
|
|
665
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
666
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
667
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
668
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
669
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
670
|
+
} else if ("host" in styleContainerNode) {
|
|
671
|
+
if (supportsConstructableStylesheets) {
|
|
672
|
+
const stylesheet = new CSSStyleSheet();
|
|
673
|
+
stylesheet.replaceSync(style);
|
|
674
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
675
|
+
} else {
|
|
676
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
677
|
+
if (existingStyleContainer) {
|
|
678
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
679
|
+
} else {
|
|
680
|
+
styleContainerNode.prepend(styleElm);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
} else {
|
|
684
|
+
styleContainerNode.append(styleElm);
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
688
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
692
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
693
|
+
}
|
|
694
|
+
if (appliedStyles) {
|
|
695
|
+
appliedStyles.add(scopeId2);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
699
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
return scopeId2;
|
|
703
|
+
};
|
|
704
|
+
var attachStyles = (hostRef) => {
|
|
705
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
706
|
+
const elm = hostRef.$hostElement$;
|
|
707
|
+
const flags = cmpMeta.$flags$;
|
|
708
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
709
|
+
const scopeId2 = addStyle(
|
|
710
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
711
|
+
cmpMeta);
|
|
712
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
713
|
+
elm["s-sc"] = scopeId2;
|
|
714
|
+
elm.classList.add(scopeId2 + "-h");
|
|
715
|
+
}
|
|
716
|
+
endAttachStyles();
|
|
717
|
+
};
|
|
718
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
709
719
|
|
|
710
720
|
// src/runtime/update-component.ts
|
|
711
721
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -907,16 +917,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
907
917
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
908
918
|
members.map(([memberName, [memberFlags]]) => {
|
|
909
919
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
|
921
|
+
Object.defineProperty(prototype, memberName, {
|
|
922
|
+
get() {
|
|
923
|
+
return getValue(this, memberName);
|
|
924
|
+
},
|
|
925
|
+
set(newValue) {
|
|
926
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
927
|
+
},
|
|
928
|
+
configurable: true,
|
|
929
|
+
enumerable: true
|
|
930
|
+
});
|
|
931
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
932
|
+
{
|
|
933
|
+
Object.defineProperty(prototype, memberName, {
|
|
934
|
+
get() {
|
|
935
|
+
const ref = getHostRef(this);
|
|
936
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
937
|
+
if (!instance) return;
|
|
938
|
+
return instance[memberName];
|
|
939
|
+
},
|
|
940
|
+
configurable: true,
|
|
941
|
+
enumerable: true
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
if (memberFlags & 4096 /* Setter */) {
|
|
945
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
946
|
+
Object.defineProperty(prototype, memberName, {
|
|
947
|
+
set(newValue) {
|
|
948
|
+
const ref = getHostRef(this);
|
|
949
|
+
if (origSetter) {
|
|
950
|
+
const currentValue = ref.$hostElement$[memberName];
|
|
951
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
952
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
953
|
+
}
|
|
954
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
955
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
if (!ref) return;
|
|
959
|
+
const setterSetVal = () => {
|
|
960
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
961
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
962
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
963
|
+
}
|
|
964
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
965
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
966
|
+
};
|
|
967
|
+
if (ref.$lazyInstance$) {
|
|
968
|
+
setterSetVal();
|
|
969
|
+
} else {
|
|
970
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
}
|
|
920
976
|
}
|
|
921
977
|
});
|
|
922
978
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -925,7 +981,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
925
981
|
plt.jmp(() => {
|
|
926
982
|
var _a2;
|
|
927
983
|
const propName = attrNameToPropName.get(attrName);
|
|
928
|
-
if (this.hasOwnProperty(propName)) {
|
|
984
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
929
985
|
newValue = this[propName];
|
|
930
986
|
delete this[propName];
|
|
931
987
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -945,7 +1001,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
945
1001
|
}
|
|
946
1002
|
return;
|
|
947
1003
|
}
|
|
948
|
-
|
|
1004
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1005
|
+
if (!propDesc.get || !!propDesc.set) {
|
|
1006
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1007
|
+
}
|
|
949
1008
|
});
|
|
950
1009
|
};
|
|
951
1010
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1084,6 +1143,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1084
1143
|
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1085
1144
|
}
|
|
1086
1145
|
}
|
|
1146
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1147
|
+
rootAppliedStyles.delete(elm);
|
|
1148
|
+
}
|
|
1149
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1150
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1151
|
+
}
|
|
1087
1152
|
};
|
|
1088
1153
|
|
|
1089
1154
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1161,6 +1226,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1161
1226
|
}
|
|
1162
1227
|
disconnectedCallback() {
|
|
1163
1228
|
plt.jmp(() => disconnectedCallback(this));
|
|
1229
|
+
plt.raf(() => {
|
|
1230
|
+
var _a3;
|
|
1231
|
+
const hostRef = getHostRef(this);
|
|
1232
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1233
|
+
delete hostRef.$vnode$.$elm$;
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1164
1236
|
}
|
|
1165
1237
|
componentOnReady() {
|
|
1166
1238
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-eabc38b4.js';
|
|
2
|
+
export { s as setNonce } from './index-eabc38b4.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-
|
|
1
|
+
import{p as e,b as l}from"./p-977a4087.js";export{s as setNonce}from"./p-977a4087.js";import{g as a}from"./p-e1255160.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-ed27c58c",[[1,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16]}]]],["p-0d724f09",[[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"]}]]],["p-3167a2bc",[[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"]}]]],["p-4e1cbed4",[[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"],strokeDash:[4,"stroke-dash"],interpolation:[1],embedOptions:[16]},null,{chartData:["parseData"]}]]],["p-fe155fec",[[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"]}]]],["p-72ff1a26",[[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"],embedOptions:[16]},null,{chartData:["parseData"]}]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as a}from"./p-977a4087.js";import{D as s,a as e,V as r,t as h}from"./p-50f05a65.js";import{l as n}from"./p-23610106.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/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 o=i;this.baseChartSpec.config.range={[o]:r};const l=Object.assign(this.baseChartSpec,t);this.visualizationSpec=l}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"]}}};o.style="gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";export{o as gux_chart_column_beta}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,g as i}from"./p-977a4087.js";import{V as a,t as s}from"./p-50f05a65.js";import{l as n}from"./p-23610106.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;const e=this.colorFieldName||r;e&&(this.baseChartSpec.encoding.color.field=e);this.baseChartSpec.encoding.color.title=this.legendTitle||"";let i=this.outerRadius,a=this.innerRadius;i||(i=a+32),a||(a=i-32);let s=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:a},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:i,innerRadius:a,padAngle:.01}},{mark:{type:"arc",innerRadius:a,padAngle:.01}}],s=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:i,innerRadius:a}},{mark:{type:"arc",innerRadius:a,stroke:"#fff"}}];const l=this.centerText;l&&this.baseChartSpec.layer.push({data:{values:[{centerText:l,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 o=this.centerSubText;o&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:o,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 u=this.labelRadius,c=this.labelField||h;u&&this.baseChartSpec.layer.push({mark:{type:"text",radius:u},encoding:{text:{field:c,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[s].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:c,aggregate:"count",type:"quantitative"});const d=Object.assign(this.baseChartSpec,t);this.visualizationSpec=d}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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-977a4087.js";import{D as a,a as e,V as h,t as o}from"./p-50f05a65.js";import{l as n}from"./p-23610106.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,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),o&&(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),g&&(this.baseChartSpec.mark.point=g);const p=Object.assign(this.baseChartSpec,t);this.visualizationSpec=p}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 +1 @@
|
|
|
1
|
-
const t="4.137.
|
|
1
|
+
const t="4.137.2",e=20,n=3e4,o=[function(t){const[e,n,...o]=t.split(".");return{name:"spark-library",metadata:{fullVersion:`${e}.${n}.${o.join(".")}`,majorVersion:e,minorVersion:`${e}.${n}`}}}(t)];function a(){const t=window.newrelic;if(t){for(let s=0;s<e;s++){if(0==o.length)return void setTimeout(a,n);const e=o.shift();t.addPageAction(e.name,Object.assign(Object.assign({},e.metadata),{queueDepth:o.length}))}setTimeout(a,n)}}let s=!1;function i(e,n){window.newrelic&&(s||(s=!0,a()),document.contains(e)&&o.push({name:"spark-component",metadata:Object.assign(Object.assign({},n),{component:e.tagName.toLowerCase(),version:t})}))}const r=["#203B73","#1DA8B3","#75A8FF","#8452CF","#B5B5EB","#CC3EBE","#5E5782","#FF8FDD","#868C1E","#DDD933"],c="#596373",m="#596373";export{c as D,r as V,m as a,i as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,g as s}from"./p-977a4087.js";import{D as e,a,V as o,t as h}from"./p-50f05a65.js";import{l}from"./p-23610106.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:o},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,o=this.legendTitle,h=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),r&&(this.baseChartSpec.encoding.color.field=r),o&&(this.baseChartSpec.encoding.color.title=o),this.baseChartSpec.mark={type:h,filled:!0},this.baseChartSpec.config.legend.symbolType=h,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:o}];const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){h(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}
|