genesys-spark-chart-components 4.137.1 → 4.138.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/cjs/{color-palette-c5aba81e.js → color-palette-6ca929a0.js} +3 -3
  2. package/dist/cjs/genesys-chart-webcomponents.cjs.js +2 -2
  3. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +10 -14
  4. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -19
  5. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +10 -17
  6. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -10
  7. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +10 -15
  8. package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -4
  9. package/dist/cjs/{index-409a039b.js → index-e390a39a.js} +252 -180
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +1 -1
  12. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +37 -15
  13. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +41 -20
  14. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +42 -17
  15. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +20 -10
  16. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +38 -15
  17. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +6 -4
  18. package/dist/esm/{color-palette-b5b2d207.js → color-palette-8e2dc91b.js} +3 -3
  19. package/dist/esm/genesys-chart-webcomponents.js +3 -3
  20. package/dist/esm/gux-chart-column-beta.entry.js +10 -14
  21. package/dist/esm/gux-chart-donut-beta.entry.js +2 -19
  22. package/dist/esm/gux-chart-line-beta.entry.js +10 -17
  23. package/dist/esm/gux-chart-pie-beta.entry.js +2 -10
  24. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +10 -15
  25. package/dist/esm/gux-visualization-beta.entry.js +2 -4
  26. package/dist/esm/{index-6f89ddc9.js → index-eabc38b4.js} +252 -180
  27. package/dist/esm/loader.js +2 -2
  28. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  29. package/dist/genesys-chart-webcomponents/{p-62e9c866.js → p-4fe958d6.js} +1 -1
  30. package/dist/genesys-chart-webcomponents/p-86129083.entry.js +1 -0
  31. package/dist/genesys-chart-webcomponents/p-977a4087.js +2 -0
  32. package/dist/genesys-chart-webcomponents/p-b038a88f.entry.js +1 -0
  33. package/dist/genesys-chart-webcomponents/p-bf5b441c.entry.js +1 -0
  34. package/dist/genesys-chart-webcomponents/p-c21311f9.entry.js +1 -0
  35. package/dist/genesys-chart-webcomponents/p-dd1cf093.entry.js +1 -0
  36. package/dist/genesys-chart-webcomponents/{p-38df79fa.entry.js → p-e9e86c24.entry.js} +2 -2
  37. package/dist/stencil-wrapper.js +1 -1
  38. package/dist/types/stencil-wrapper.d.ts +1 -1
  39. package/package.json +3 -3
  40. package/dist/genesys-chart-webcomponents/p-177ee014.entry.js +0 -1
  41. package/dist/genesys-chart-webcomponents/p-58f02284.entry.js +0 -1
  42. package/dist/genesys-chart-webcomponents/p-6240c9bd.entry.js +0 -1
  43. package/dist/genesys-chart-webcomponents/p-6759e12f.entry.js +0 -1
  44. package/dist/genesys-chart-webcomponents/p-699aab7f.js +0 -2
  45. package/dist/genesys-chart-webcomponents/p-eef8d50e.entry.js +0 -1
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'genesys-chart-webcomponents';
24
- 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 };
24
+ 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.23.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -113,6 +118,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
113
118
 
114
119
  // src/client/client-style.ts
115
120
  var styles = /* @__PURE__ */ new Map();
121
+ var HYDRATED_STYLE_ID = "sty-id";
116
122
  var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
117
123
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
118
124
  var win = typeof window !== "undefined" ? window : {};
@@ -170,12 +176,6 @@ var flush = () => {
170
176
  };
171
177
  var nextTick = (cb) => promiseResolve().then(cb);
172
178
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
173
-
174
- // src/utils/constants.ts
175
- var EMPTY_OBJ = {};
176
-
177
- // src/utils/helpers.ts
178
- var isDef = (v) => v != null;
179
179
  var isComplexType = (o) => {
180
180
  o = typeof o;
181
181
  return o === "object" || o === "function";
@@ -235,20 +235,6 @@ var unwrapErr = (result) => {
235
235
  throw result.value;
236
236
  }
237
237
  };
238
- var createTime = (fnName, tagName = "") => {
239
- {
240
- return () => {
241
- return;
242
- };
243
- }
244
- };
245
- var uniqueTime = (key, measureText) => {
246
- {
247
- return () => {
248
- return;
249
- };
250
- }
251
- };
252
238
  var h = (nodeName, vnodeData, ...children) => {
253
239
  let child = null;
254
240
  let key = null;
@@ -313,132 +299,6 @@ var newVNode = (tag, text) => {
313
299
  };
314
300
  var Host = {};
315
301
  var isHost = (node) => node && node.$tag$ === Host;
316
- var parsePropertyValue = (propValue, propType) => {
317
- if (propValue != null && !isComplexType(propValue)) {
318
- if (propType & 4 /* Boolean */) {
319
- return propValue === "false" ? false : propValue === "" || !!propValue;
320
- }
321
- if (propType & 2 /* Number */) {
322
- return parseFloat(propValue);
323
- }
324
- if (propType & 1 /* String */) {
325
- return String(propValue);
326
- }
327
- return propValue;
328
- }
329
- return propValue;
330
- };
331
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
332
-
333
- // src/runtime/event-emitter.ts
334
- var createEvent = (ref, name, flags) => {
335
- const elm = getElement(ref);
336
- return {
337
- emit: (detail) => {
338
- return emitEvent(elm, name, {
339
- bubbles: !!(flags & 4 /* Bubbles */),
340
- composed: !!(flags & 2 /* Composed */),
341
- cancelable: !!(flags & 1 /* Cancellable */),
342
- detail
343
- });
344
- }
345
- };
346
- };
347
- var emitEvent = (elm, name, opts) => {
348
- const ev = plt.ce(name, opts);
349
- elm.dispatchEvent(ev);
350
- return ev;
351
- };
352
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
353
- var registerStyle = (scopeId2, cssText, allowCS) => {
354
- let style = styles.get(scopeId2);
355
- if (supportsConstructableStylesheets && allowCS) {
356
- style = style || new CSSStyleSheet();
357
- if (typeof style === "string") {
358
- style = cssText;
359
- } else {
360
- style.replaceSync(cssText);
361
- }
362
- } else {
363
- style = cssText;
364
- }
365
- styles.set(scopeId2, style);
366
- };
367
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
368
- var _a;
369
- const scopeId2 = getScopeId(cmpMeta);
370
- const style = styles.get(scopeId2);
371
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
372
- if (style) {
373
- if (typeof style === "string") {
374
- styleContainerNode = styleContainerNode.head || styleContainerNode;
375
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
376
- let styleElm;
377
- if (!appliedStyles) {
378
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
379
- }
380
- if (!appliedStyles.has(scopeId2)) {
381
- {
382
- styleElm = doc.createElement("style");
383
- styleElm.innerHTML = style;
384
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
385
- if (nonce != null) {
386
- styleElm.setAttribute("nonce", nonce);
387
- }
388
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
389
- if (styleContainerNode.nodeName === "HEAD") {
390
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
391
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
392
- styleContainerNode.insertBefore(styleElm, referenceNode2);
393
- } else if ("host" in styleContainerNode) {
394
- if (supportsConstructableStylesheets) {
395
- const stylesheet = new CSSStyleSheet();
396
- stylesheet.replaceSync(style);
397
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
398
- } else {
399
- const existingStyleContainer = styleContainerNode.querySelector("style");
400
- if (existingStyleContainer) {
401
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
402
- } else {
403
- styleContainerNode.prepend(styleElm);
404
- }
405
- }
406
- } else {
407
- styleContainerNode.append(styleElm);
408
- }
409
- }
410
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
411
- styleContainerNode.insertBefore(styleElm, null);
412
- }
413
- }
414
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
415
- styleElm.innerHTML += SLOT_FB_CSS;
416
- }
417
- if (appliedStyles) {
418
- appliedStyles.add(scopeId2);
419
- }
420
- }
421
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
422
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
423
- }
424
- }
425
- return scopeId2;
426
- };
427
- var attachStyles = (hostRef) => {
428
- const cmpMeta = hostRef.$cmpMeta$;
429
- const elm = hostRef.$hostElement$;
430
- const flags = cmpMeta.$flags$;
431
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
432
- const scopeId2 = addStyle(
433
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
434
- cmpMeta);
435
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
436
- elm["s-sc"] = scopeId2;
437
- elm.classList.add(scopeId2 + "-h");
438
- }
439
- endAttachStyles();
440
- };
441
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
442
302
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
443
303
  if (oldValue !== newValue) {
444
304
  let isProp = isMemberInElement(elm, memberName);
@@ -446,9 +306,19 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
446
306
  if (memberName === "class") {
447
307
  const classList = elm.classList;
448
308
  const oldClasses = parseClassList(oldValue);
449
- const newClasses = parseClassList(newValue);
450
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
451
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
309
+ let newClasses = parseClassList(newValue);
310
+ if (elm["s-si"]) {
311
+ newClasses.push(elm["s-si"]);
312
+ oldClasses.forEach((c) => {
313
+ if (c.startsWith(elm["s-si"])) newClasses.push(c);
314
+ });
315
+ newClasses = [...new Set(newClasses)];
316
+ classList.add(...newClasses);
317
+ delete elm["s-si"];
318
+ } else {
319
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
320
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
321
+ }
452
322
  } else if (memberName === "key") ; else if (memberName === "ref") {
453
323
  if (newValue) {
454
324
  newValue(elm);
@@ -490,13 +360,21 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
490
360
  }
491
361
  };
492
362
  var parseClassListRegex = /\s/;
493
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
363
+ var parseClassList = (value) => {
364
+ if (typeof value === "object" && "baseVal" in value) {
365
+ value = value.baseVal;
366
+ }
367
+ if (!value) {
368
+ return [];
369
+ }
370
+ return value.split(parseClassListRegex);
371
+ };
494
372
 
495
373
  // src/runtime/vdom/update-element.ts
496
374
  var updateElement = (oldVnode, newVnode, isSvgMode2) => {
497
375
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
498
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
499
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
376
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
377
+ const newVnodeAttrs = newVnode.$attrs$ || {};
500
378
  {
501
379
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
502
380
  if (!(memberName in newVnodeAttrs)) {
@@ -517,13 +395,10 @@ function sortedAttrNames(attrNames) {
517
395
  attrNames
518
396
  );
519
397
  }
520
-
521
- // src/runtime/vdom/vdom-render.ts
522
- var scopeId;
523
398
  var hostTagName;
524
399
  var useNativeShadowDom = false;
525
400
  var isSvgMode = false;
526
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
401
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
527
402
  const newVNode2 = newParentVNode.$children$[childIndex];
528
403
  let i2 = 0;
529
404
  let elm;
@@ -535,11 +410,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
535
410
  {
536
411
  updateElement(null, newVNode2, isSvgMode);
537
412
  }
538
- const rootNode = elm.getRootNode();
539
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
540
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
541
- elm.classList.add(elm["s-si"] = scopeId);
542
- }
543
413
  if (newVNode2.$children$) {
544
414
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
545
415
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -669,6 +539,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
669
539
  if (!isInitialRender) {
670
540
  return leftVNode.$key$ === rightVNode.$key$;
671
541
  }
542
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
543
+ leftVNode.$key$ = rightVNode.$key$;
544
+ }
672
545
  return true;
673
546
  }
674
547
  return false;
@@ -722,12 +595,149 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
722
595
  rootVnode.$flags$ |= 4 /* isHost */;
723
596
  hostRef.$vnode$ = rootVnode;
724
597
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
725
- {
726
- scopeId = hostElm["s-sc"];
727
- }
728
598
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
729
599
  patch(oldVNode, rootVnode, isInitialLoad);
730
600
  };
601
+ var createTime = (fnName, tagName = "") => {
602
+ {
603
+ return () => {
604
+ return;
605
+ };
606
+ }
607
+ };
608
+ var uniqueTime = (key, measureText) => {
609
+ {
610
+ return () => {
611
+ return;
612
+ };
613
+ }
614
+ };
615
+ var parsePropertyValue = (propValue, propType) => {
616
+ if (propValue != null && !isComplexType(propValue)) {
617
+ if (propType & 4 /* Boolean */) {
618
+ return propValue === "false" ? false : propValue === "" || !!propValue;
619
+ }
620
+ if (propType & 2 /* Number */) {
621
+ return parseFloat(propValue);
622
+ }
623
+ if (propType & 1 /* String */) {
624
+ return String(propValue);
625
+ }
626
+ return propValue;
627
+ }
628
+ return propValue;
629
+ };
630
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
631
+
632
+ // src/runtime/event-emitter.ts
633
+ var createEvent = (ref, name, flags) => {
634
+ const elm = getElement(ref);
635
+ return {
636
+ emit: (detail) => {
637
+ return emitEvent(elm, name, {
638
+ bubbles: !!(flags & 4 /* Bubbles */),
639
+ composed: !!(flags & 2 /* Composed */),
640
+ cancelable: !!(flags & 1 /* Cancellable */),
641
+ detail
642
+ });
643
+ }
644
+ };
645
+ };
646
+ var emitEvent = (elm, name, opts) => {
647
+ const ev = plt.ce(name, opts);
648
+ elm.dispatchEvent(ev);
649
+ return ev;
650
+ };
651
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
652
+ var registerStyle = (scopeId2, cssText, allowCS) => {
653
+ let style = styles.get(scopeId2);
654
+ if (supportsConstructableStylesheets && allowCS) {
655
+ style = style || new CSSStyleSheet();
656
+ if (typeof style === "string") {
657
+ style = cssText;
658
+ } else {
659
+ style.replaceSync(cssText);
660
+ }
661
+ } else {
662
+ style = cssText;
663
+ }
664
+ styles.set(scopeId2, style);
665
+ };
666
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
667
+ var _a;
668
+ const scopeId2 = getScopeId(cmpMeta);
669
+ const style = styles.get(scopeId2);
670
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
671
+ if (style) {
672
+ if (typeof style === "string") {
673
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
674
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
675
+ let styleElm;
676
+ if (!appliedStyles) {
677
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
678
+ }
679
+ if (!appliedStyles.has(scopeId2)) {
680
+ {
681
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
682
+ styleElm.innerHTML = style;
683
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
684
+ if (nonce != null) {
685
+ styleElm.setAttribute("nonce", nonce);
686
+ }
687
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
688
+ if (styleContainerNode.nodeName === "HEAD") {
689
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
690
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
691
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
692
+ } else if ("host" in styleContainerNode) {
693
+ if (supportsConstructableStylesheets) {
694
+ const stylesheet = new CSSStyleSheet();
695
+ stylesheet.replaceSync(style);
696
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
697
+ } else {
698
+ const existingStyleContainer = styleContainerNode.querySelector("style");
699
+ if (existingStyleContainer) {
700
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
701
+ } else {
702
+ styleContainerNode.prepend(styleElm);
703
+ }
704
+ }
705
+ } else {
706
+ styleContainerNode.append(styleElm);
707
+ }
708
+ }
709
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
710
+ styleContainerNode.insertBefore(styleElm, null);
711
+ }
712
+ }
713
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
714
+ styleElm.innerHTML += SLOT_FB_CSS;
715
+ }
716
+ if (appliedStyles) {
717
+ appliedStyles.add(scopeId2);
718
+ }
719
+ }
720
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
721
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
722
+ }
723
+ }
724
+ return scopeId2;
725
+ };
726
+ var attachStyles = (hostRef) => {
727
+ const cmpMeta = hostRef.$cmpMeta$;
728
+ const elm = hostRef.$hostElement$;
729
+ const flags = cmpMeta.$flags$;
730
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
731
+ const scopeId2 = addStyle(
732
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
733
+ cmpMeta);
734
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
735
+ elm["s-sc"] = scopeId2;
736
+ elm.classList.add(scopeId2 + "-h");
737
+ }
738
+ endAttachStyles();
739
+ };
740
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
731
741
 
732
742
  // src/runtime/update-component.ts
733
743
  var attachToAncestor = (hostRef, ancestorComponent) => {
@@ -929,16 +939,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
929
939
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
930
940
  members.map(([memberName, [memberFlags]]) => {
931
941
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
932
- Object.defineProperty(prototype, memberName, {
933
- get() {
934
- return getValue(this, memberName);
935
- },
936
- set(newValue) {
937
- setValue(this, memberName, newValue, cmpMeta);
938
- },
939
- configurable: true,
940
- enumerable: true
941
- });
942
+ if ((memberFlags & 2048 /* Getter */) === 0) {
943
+ Object.defineProperty(prototype, memberName, {
944
+ get() {
945
+ return getValue(this, memberName);
946
+ },
947
+ set(newValue) {
948
+ setValue(this, memberName, newValue, cmpMeta);
949
+ },
950
+ configurable: true,
951
+ enumerable: true
952
+ });
953
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
954
+ {
955
+ Object.defineProperty(prototype, memberName, {
956
+ get() {
957
+ const ref = getHostRef(this);
958
+ const instance = ref ? ref.$lazyInstance$ : prototype;
959
+ if (!instance) return;
960
+ return instance[memberName];
961
+ },
962
+ configurable: true,
963
+ enumerable: true
964
+ });
965
+ }
966
+ if (memberFlags & 4096 /* Setter */) {
967
+ const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
968
+ Object.defineProperty(prototype, memberName, {
969
+ set(newValue) {
970
+ const ref = getHostRef(this);
971
+ if (origSetter) {
972
+ const currentValue = ref.$hostElement$[memberName];
973
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
974
+ ref.$instanceValues$.set(memberName, currentValue);
975
+ }
976
+ origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
977
+ setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
978
+ return;
979
+ }
980
+ if (!ref) return;
981
+ const setterSetVal = () => {
982
+ const currentValue = ref.$lazyInstance$[memberName];
983
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
984
+ ref.$instanceValues$.set(memberName, currentValue);
985
+ }
986
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
987
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
988
+ };
989
+ if (ref.$lazyInstance$) {
990
+ setterSetVal();
991
+ } else {
992
+ ref.$onReadyPromise$.then(() => setterSetVal());
993
+ }
994
+ }
995
+ });
996
+ }
997
+ }
942
998
  }
943
999
  });
944
1000
  if ((flags & 1 /* isElementConstructor */)) {
@@ -947,7 +1003,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
947
1003
  plt.jmp(() => {
948
1004
  var _a2;
949
1005
  const propName = attrNameToPropName.get(attrName);
950
- if (this.hasOwnProperty(propName)) {
1006
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
951
1007
  newValue = this[propName];
952
1008
  delete this[propName];
953
1009
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -967,7 +1023,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
967
1023
  }
968
1024
  return;
969
1025
  }
970
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1026
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1027
+ if (!propDesc.get || !!propDesc.set) {
1028
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1029
+ }
971
1030
  });
972
1031
  };
973
1032
  Cstr.observedAttributes = Array.from(
@@ -1106,6 +1165,12 @@ var disconnectedCallback = async (elm) => {
1106
1165
  hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1107
1166
  }
1108
1167
  }
1168
+ if (rootAppliedStyles.has(elm)) {
1169
+ rootAppliedStyles.delete(elm);
1170
+ }
1171
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1172
+ rootAppliedStyles.delete(elm.shadowRoot);
1173
+ }
1109
1174
  };
1110
1175
 
1111
1176
  // src/runtime/bootstrap-lazy.ts
@@ -1183,6 +1248,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1183
1248
  }
1184
1249
  disconnectedCallback() {
1185
1250
  plt.jmp(() => disconnectedCallback(this));
1251
+ plt.raf(() => {
1252
+ var _a3;
1253
+ const hostRef = getHostRef(this);
1254
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1255
+ delete hostRef.$vnode$.$elm$;
1256
+ }
1257
+ });
1186
1258
  }
1187
1259
  componentOnReady() {
1188
1260
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-409a039b.js');
5
+ const index = require('./index-e390a39a.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "compiler": {
11
11
  "name": "@stencil/core",
12
- "version": "4.22.3",
12
+ "version": "4.23.2",
13
13
  "typescriptVersion": "5.5.4"
14
14
  },
15
15
  "collections": [],