@everymatrix/helper-accordion 1.53.0 → 1.53.11

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 (20) hide show
  1. package/dist/cjs/helper-accordion.cjs.entry.js +49 -14
  2. package/dist/cjs/helper-accordion.cjs.js +2 -2
  3. package/dist/cjs/{index-a1d56791.js → index-4d78ce99.js} +164 -69
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/helper-accordion/helper-accordion.js +72 -13
  7. package/dist/esm/helper-accordion.entry.js +49 -14
  8. package/dist/esm/helper-accordion.js +3 -3
  9. package/dist/esm/{index-fc19def9.js → index-fee9f353.js} +164 -69
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/helper-accordion/helper-accordion.esm.js +1 -1
  12. package/dist/helper-accordion/p-1edb2bd3.entry.js +1 -0
  13. package/dist/helper-accordion/p-411c4f4c.js +2 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/helper-accordion/p-2977db32.js +0 -2
  18. package/dist/helper-accordion/p-483dd2ea.entry.js +0 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.dev.d.ts +0 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a1d56791.js');
5
+ const index = require('./index-4d78ce99.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
@@ -35,32 +35,67 @@ const HelperAccordion = class {
35
35
  constructor(hostRef) {
36
36
  index.registerInstance(this, hostRef);
37
37
  this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
38
- this.setClientStyling = () => {
39
- let sheet = document.createElement('style');
40
- sheet.innerHTML = this.clientStyling;
41
- this.stylingContainer.prepend(sheet);
42
- };
43
- this.setClientStylingURL = () => {
44
- let cssFile = document.createElement('style');
45
- setTimeout(() => {
46
- cssFile.innerHTML = this.clientStylingUrlContent;
47
- this.stylingContainer.prepend(cssFile);
48
- }, 1);
49
- };
38
+ /**
39
+ * Flag for ticket history
40
+ */
50
41
  this.ticketHistoryFlag = false;
42
+ /**
43
+ * Title (top header)
44
+ */
51
45
  this.headerTitle = '';
46
+ /**
47
+ * SubTitle (top header)
48
+ */
52
49
  this.headerSubtitle = '';
50
+ /**
51
+ * Description
52
+ */
53
53
  this.description = '';
54
+ /**
55
+ * Enables footer content
56
+ */
54
57
  this.footer = false;
58
+ /**
59
+ * Enables footer button for tab deletion
60
+ */
55
61
  this.deleteTab = false;
62
+ /**
63
+ * Activates postMessages as events for actions from the widget
64
+ */
56
65
  this.postMessage = false;
66
+ /**
67
+ * Name of the event emitter by the action button
68
+ */
57
69
  this.eventName = 'helperAccordionAction';
70
+ /**
71
+ * Collapsed
72
+ */
58
73
  this.collapsed = true;
74
+ /**
75
+ * Language
76
+ */
59
77
  this.language = 'en';
78
+ /**
79
+ * Client custom styling via string
80
+ */
60
81
  this.clientStyling = '';
82
+ /**
83
+ * Client custom styling via url content
84
+ */
61
85
  this.clientStylingUrlContent = '';
62
- this.showContent = undefined;
63
86
  this.limitStylingAppends = false;
87
+ this.setClientStyling = () => {
88
+ let sheet = document.createElement('style');
89
+ sheet.innerHTML = this.clientStyling;
90
+ this.stylingContainer.prepend(sheet);
91
+ };
92
+ this.setClientStylingURL = () => {
93
+ let cssFile = document.createElement('style');
94
+ setTimeout(() => {
95
+ cssFile.innerHTML = this.clientStylingUrlContent;
96
+ this.stylingContainer.prepend(cssFile);
97
+ }, 1);
98
+ };
64
99
  }
65
100
  // @TODO fix the `any` type :)
66
101
  connectedCallback() {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a1d56791.js');
5
+ const index = require('./index-4d78ce99.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('helper-accordion.cjs.js', document.baseURI).href));
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'helper-accordion';
24
- const BUILD = /* helper-accordion */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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: false, hydratedClass: true, 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: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* helper-accordion */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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: false, hydratedClass: true, 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: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | 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);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
-
157
- // src/utils/helpers.ts
158
- var isDef = (v) => v != null;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -356,7 +361,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
356
361
  }
357
362
  if (!appliedStyles.has(scopeId2)) {
358
363
  {
359
- styleElm = doc.createElement("style");
364
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
360
365
  styleElm.innerHTML = style;
361
366
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
362
367
  if (nonce != null) {
@@ -366,7 +371,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
366
371
  if (styleContainerNode.nodeName === "HEAD") {
367
372
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
368
373
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
369
- styleContainerNode.insertBefore(styleElm, referenceNode2);
374
+ styleContainerNode.insertBefore(
375
+ styleElm,
376
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
377
+ );
370
378
  } else if ("host" in styleContainerNode) {
371
379
  if (supportsConstructableStylesheets) {
372
380
  const stylesheet = new CSSStyleSheet();
@@ -416,16 +424,18 @@ var attachStyles = (hostRef) => {
416
424
  endAttachStyles();
417
425
  };
418
426
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
419
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
427
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
420
428
  if (oldValue !== newValue) {
421
429
  let isProp = isMemberInElement(elm, memberName);
422
430
  let ln = memberName.toLowerCase();
423
431
  if (memberName === "class") {
424
432
  const classList = elm.classList;
425
433
  const oldClasses = parseClassList(oldValue);
426
- const newClasses = parseClassList(newValue);
427
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
428
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
434
+ let newClasses = parseClassList(newValue);
435
+ {
436
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
437
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
438
+ }
429
439
  } else if (memberName === "key") ; else if (memberName === "ref") {
430
440
  if (newValue) {
431
441
  newValue(elm);
@@ -463,7 +473,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
463
473
  elm.setAttribute(memberName, n);
464
474
  }
465
475
  }
466
- } else {
476
+ } else if (elm[memberName] !== newValue) {
467
477
  elm[memberName] = newValue;
468
478
  }
469
479
  } catch (e) {
@@ -485,24 +495,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
485
495
  }
486
496
  };
487
497
  var parseClassListRegex = /\s/;
488
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
498
+ var parseClassList = (value) => {
499
+ if (typeof value === "object" && value && "baseVal" in value) {
500
+ value = value.baseVal;
501
+ }
502
+ if (!value || typeof value !== "string") {
503
+ return [];
504
+ }
505
+ return value.split(parseClassListRegex);
506
+ };
489
507
  var CAPTURE_EVENT_SUFFIX = "Capture";
490
508
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
491
509
 
492
510
  // src/runtime/vdom/update-element.ts
493
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
511
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
494
512
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
495
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
496
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
513
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
514
+ const newVnodeAttrs = newVnode.$attrs$ || {};
497
515
  {
498
516
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
499
517
  if (!(memberName in newVnodeAttrs)) {
500
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
518
+ setAccessor(
519
+ elm,
520
+ memberName,
521
+ oldVnodeAttrs[memberName],
522
+ void 0,
523
+ isSvgMode2,
524
+ newVnode.$flags$);
501
525
  }
502
526
  }
503
527
  }
504
528
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
505
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
529
+ setAccessor(
530
+ elm,
531
+ memberName,
532
+ oldVnodeAttrs[memberName],
533
+ newVnodeAttrs[memberName],
534
+ isSvgMode2,
535
+ newVnode.$flags$);
506
536
  }
507
537
  };
508
538
  function sortedAttrNames(attrNames) {
@@ -514,13 +544,10 @@ function sortedAttrNames(attrNames) {
514
544
  attrNames
515
545
  );
516
546
  }
517
-
518
- // src/runtime/vdom/vdom-render.ts
519
- var scopeId;
520
547
  var hostTagName;
521
548
  var useNativeShadowDom = false;
522
549
  var isSvgMode = false;
523
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
550
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
524
551
  const newVNode2 = newParentVNode.$children$[childIndex];
525
552
  let i2 = 0;
526
553
  let elm;
@@ -534,11 +561,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
534
561
  {
535
562
  updateElement(null, newVNode2, isSvgMode);
536
563
  }
537
- const rootNode = elm.getRootNode();
538
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
539
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
540
- elm.classList.add(elm["s-si"] = scopeId);
541
- }
542
564
  if (newVNode2.$children$) {
543
565
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
544
566
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -668,6 +690,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
668
690
  if (!isInitialRender) {
669
691
  return leftVNode.$key$ === rightVNode.$key$;
670
692
  }
693
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
694
+ leftVNode.$key$ = rightVNode.$key$;
695
+ }
671
696
  return true;
672
697
  }
673
698
  return false;
@@ -708,8 +733,9 @@ var nullifyVNodeRefs = (vNode) => {
708
733
  }
709
734
  };
710
735
  var insertBefore = (parent, newNode, reference) => {
711
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
712
- return inserted;
736
+ {
737
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
738
+ }
713
739
  };
714
740
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
715
741
  const hostElm = hostRef.$hostElement$;
@@ -734,9 +760,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
734
760
  rootVnode.$flags$ |= 4 /* isHost */;
735
761
  hostRef.$vnode$ = rootVnode;
736
762
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
737
- {
738
- scopeId = hostElm["s-sc"];
739
- }
740
763
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
741
764
  patch(oldVNode, rootVnode, isInitialLoad);
742
765
  };
@@ -744,7 +767,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
744
767
  // src/runtime/update-component.ts
745
768
  var attachToAncestor = (hostRef, ancestorComponent) => {
746
769
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
747
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
770
+ const index = ancestorComponent["s-p"].push(
771
+ new Promise(
772
+ (r) => hostRef.$onRenderResolve$ = () => {
773
+ ancestorComponent["s-p"].splice(index - 1, 1);
774
+ r();
775
+ }
776
+ )
777
+ );
748
778
  }
749
779
  };
750
780
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -835,7 +865,7 @@ var postUpdateComponent = (hostRef) => {
835
865
  const instance = hostRef.$lazyInstance$ ;
836
866
  const ancestorComponent = hostRef.$ancestorComponent$;
837
867
  {
838
- safeCall(instance, "componentDidRender");
868
+ safeCall(instance, "componentDidRender", void 0, elm);
839
869
  }
840
870
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
841
871
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -869,12 +899,12 @@ var appDidLoad = (who) => {
869
899
  }
870
900
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
871
901
  };
872
- var safeCall = (instance, method, arg) => {
902
+ var safeCall = (instance, method, arg, elm) => {
873
903
  if (instance && instance[method]) {
874
904
  try {
875
905
  return instance[method](arg);
876
906
  } catch (e) {
877
- consoleError(e);
907
+ consoleError(e, elm);
878
908
  }
879
909
  }
880
910
  return void 0;
@@ -917,15 +947,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
917
947
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
918
948
  members.map(([memberName, [memberFlags]]) => {
919
949
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
950
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
951
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
952
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
953
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
954
+ Object.defineProperty(prototype, memberName, {
955
+ get() {
956
+ {
957
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
958
+ return getValue(this, memberName);
959
+ }
960
+ const ref = getHostRef(this);
961
+ const instance = ref ? ref.$lazyInstance$ : prototype;
962
+ if (!instance) return;
963
+ return instance[memberName];
964
+ }
965
+ },
966
+ configurable: true,
967
+ enumerable: true
968
+ });
969
+ }
920
970
  Object.defineProperty(prototype, memberName, {
921
- get() {
922
- return getValue(this, memberName);
923
- },
924
971
  set(newValue) {
925
- setValue(this, memberName, newValue, cmpMeta);
926
- },
927
- configurable: true,
928
- enumerable: true
972
+ const ref = getHostRef(this);
973
+ if (origSetter) {
974
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
975
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
976
+ newValue = ref.$instanceValues$.get(memberName);
977
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
978
+ ref.$instanceValues$.set(memberName, currentValue);
979
+ }
980
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
981
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
982
+ setValue(this, memberName, newValue, cmpMeta);
983
+ return;
984
+ }
985
+ {
986
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
987
+ setValue(this, memberName, newValue, cmpMeta);
988
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
989
+ ref.$onReadyPromise$.then(() => {
990
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
991
+ ref.$lazyInstance$[memberName] = newValue;
992
+ }
993
+ });
994
+ }
995
+ return;
996
+ }
997
+ const setterSetVal = () => {
998
+ const currentValue = ref.$lazyInstance$[memberName];
999
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1000
+ ref.$instanceValues$.set(memberName, currentValue);
1001
+ }
1002
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1003
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1004
+ };
1005
+ if (ref.$lazyInstance$) {
1006
+ setterSetVal();
1007
+ } else {
1008
+ ref.$onReadyPromise$.then(() => setterSetVal());
1009
+ }
1010
+ }
1011
+ }
929
1012
  });
930
1013
  }
931
1014
  });
@@ -935,7 +1018,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
935
1018
  plt.jmp(() => {
936
1019
  var _a2;
937
1020
  const propName = attrNameToPropName.get(attrName);
938
- if (this.hasOwnProperty(propName)) {
1021
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
939
1022
  newValue = this[propName];
940
1023
  delete this[propName];
941
1024
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -955,7 +1038,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
955
1038
  }
956
1039
  return;
957
1040
  }
958
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1041
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1042
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1043
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1044
+ this[propName] = newValue;
1045
+ }
959
1046
  });
960
1047
  };
961
1048
  Cstr.observedAttributes = Array.from(
@@ -982,9 +1069,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
982
1069
  let Cstr;
983
1070
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
984
1071
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
985
- const bundleId = cmpMeta.$lazyBundleId$;
986
- if (bundleId) {
987
- const CstrImport = loadModule(cmpMeta);
1072
+ {
1073
+ const CstrImport = loadModule(cmpMeta, hostRef);
988
1074
  if (CstrImport && "then" in CstrImport) {
989
1075
  const endLoad = uniqueTime();
990
1076
  Cstr = await CstrImport;
@@ -1006,17 +1092,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1006
1092
  try {
1007
1093
  new Cstr(hostRef);
1008
1094
  } catch (e) {
1009
- consoleError(e);
1095
+ consoleError(e, elm);
1010
1096
  }
1011
1097
  {
1012
1098
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1013
1099
  }
1014
1100
  endNewInstance();
1015
- fireConnectedCallback(hostRef.$lazyInstance$);
1016
- } else {
1017
- Cstr = elm.constructor;
1018
- const cmpTag = elm.localName;
1019
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1101
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1020
1102
  }
1021
1103
  if (Cstr && Cstr.style) {
1022
1104
  let style;
@@ -1039,9 +1121,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1039
1121
  schedule();
1040
1122
  }
1041
1123
  };
1042
- var fireConnectedCallback = (instance) => {
1124
+ var fireConnectedCallback = (instance, elm) => {
1043
1125
  {
1044
- safeCall(instance, "connectedCallback");
1126
+ safeCall(instance, "connectedCallback", void 0, elm);
1045
1127
  }
1046
1128
  };
1047
1129
 
@@ -1076,15 +1158,15 @@ var connectedCallback = (elm) => {
1076
1158
  }
1077
1159
  } else {
1078
1160
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1079
- fireConnectedCallback(hostRef.$lazyInstance$);
1161
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1080
1162
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1081
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1163
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1082
1164
  }
1083
1165
  }
1084
1166
  endConnected();
1085
1167
  }
1086
1168
  };
1087
- var disconnectInstance = (instance) => {
1169
+ var disconnectInstance = (instance, elm) => {
1088
1170
  };
1089
1171
  var disconnectedCallback = async (elm) => {
1090
1172
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1093,6 +1175,12 @@ var disconnectedCallback = async (elm) => {
1093
1175
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1094
1176
  }
1095
1177
  }
1178
+ if (rootAppliedStyles.has(elm)) {
1179
+ rootAppliedStyles.delete(elm);
1180
+ }
1181
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1182
+ rootAppliedStyles.delete(elm.shadowRoot);
1183
+ }
1096
1184
  };
1097
1185
 
1098
1186
  // src/runtime/bootstrap-lazy.ts
@@ -1169,6 +1257,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1169
1257
  }
1170
1258
  disconnectedCallback() {
1171
1259
  plt.jmp(() => disconnectedCallback(this));
1260
+ plt.raf(() => {
1261
+ var _a3;
1262
+ const hostRef = getHostRef(this);
1263
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1264
+ delete hostRef.$vnode$.$elm$;
1265
+ }
1266
+ });
1172
1267
  }
1173
1268
  componentOnReady() {
1174
1269
  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-a1d56791.js');
5
+ const index = require('./index-4d78ce99.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],