@everymatrix/helper-tabs 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 (21) hide show
  1. package/dist/cjs/helper-tab_2.cjs.entry.js +48 -26
  2. package/dist/cjs/helper-tabs.cjs.js +2 -2
  3. package/dist/cjs/{index-7158b6b0.js → index-d6d883c7.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-tab/helper-tab.js +36 -11
  7. package/dist/collection/components/helper-tabs/helper-tabs.js +55 -14
  8. package/dist/esm/helper-tab_2.entry.js +48 -26
  9. package/dist/esm/helper-tabs.js +3 -3
  10. package/dist/esm/{index-93aaed58.js → index-308251f5.js} +164 -69
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/helper-tabs/helper-tabs.esm.js +1 -1
  13. package/dist/helper-tabs/p-a87ee1cf.entry.js +1 -0
  14. package/dist/helper-tabs/p-aac7c96a.js +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +2 -0
  16. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.dev.d.ts +2 -0
  17. package/package.json +1 -1
  18. package/dist/helper-tabs/p-80aa1adc.entry.js +0 -1
  19. package/dist/helper-tabs/p-8be01f9b.js +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-tabs/.stencil/packages/stencil/helper-tabs/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-7158b6b0.js');
5
+ const index = require('./index-d6d883c7.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['en'];
@@ -60,6 +60,24 @@ const HelperTabStyle0 = helperTabCss;
60
60
  const HelperTab = class {
61
61
  constructor(hostRef) {
62
62
  index.registerInstance(this, hostRef);
63
+ /**
64
+ * Selected index
65
+ */
66
+ this.selectedIndex = 0;
67
+ /**
68
+ * Client custom styling via string
69
+ */
70
+ this.clientStyling = '';
71
+ /**
72
+ * Client custom styling via url content
73
+ */
74
+ this.clientStylingUrlContent = '';
75
+ /**
76
+ * Language of the widget
77
+ */
78
+ this.language = 'en';
79
+ this.tabContent = '';
80
+ this.limitStylingAppends = false;
63
81
  this.setClientStyling = () => {
64
82
  let sheet = document.createElement('style');
65
83
  sheet.innerHTML = this.clientStyling;
@@ -72,17 +90,6 @@ const HelperTab = class {
72
90
  this.stylingContainer.prepend(cssFile);
73
91
  }, 1);
74
92
  };
75
- this.selectedIndex = 0;
76
- this.cmsEndpoint = undefined;
77
- this.clientStyling = '';
78
- this.clientStylingUrlContent = '';
79
- this.lowNumber = undefined;
80
- this.highNumber = undefined;
81
- this.minimumAllowed = undefined;
82
- this.maxinumAllowed = undefined;
83
- this.language = 'en';
84
- this.tabContent = '';
85
- this.limitStylingAppends = false;
86
93
  }
87
94
  componentDidRender() {
88
95
  // start custom styling area
@@ -114,6 +121,35 @@ const HelperTabsStyle0 = helperTabsCss;
114
121
  const HelperTabs = class {
115
122
  constructor(hostRef) {
116
123
  index.registerInstance(this, hostRef);
124
+ /**
125
+ * Tell me if it is disabled
126
+ */
127
+ this.disabled = false;
128
+ /**
129
+ * Tell me what tab is selected
130
+ */
131
+ this.selected = false;
132
+ /**
133
+ * Default selected index
134
+ */
135
+ this.selectedIndex = 0;
136
+ /**
137
+ * Tabs details
138
+ */
139
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
140
+ /**
141
+ * Client custom styling via string
142
+ */
143
+ this.clientStyling = '';
144
+ /**
145
+ * Client custom styling via url
146
+ */
147
+ this.clientStylingurl = '';
148
+ /**
149
+ * Client custom styling via url content
150
+ */
151
+ this.clientStylingUrlContent = '';
152
+ this.limitStylingAppends = false;
117
153
  this.setClientStyling = () => {
118
154
  let sheet = document.createElement('style');
119
155
  sheet.innerHTML = this.clientStyling;
@@ -126,20 +162,6 @@ const HelperTabs = class {
126
162
  this.stylingContainer.prepend(cssFile);
127
163
  }, 1);
128
164
  };
129
- this.disabled = false;
130
- this.label = undefined;
131
- this.selected = false;
132
- this.cmsEndpoint = undefined;
133
- this.selectedIndex = 0;
134
- this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
135
- this.clientStyling = '';
136
- this.clientStylingurl = '';
137
- this.clientStylingUrlContent = '';
138
- this.lowNumber = undefined;
139
- this.highNumber = undefined;
140
- this.minimumAllowed = undefined;
141
- this.maxinumAllowed = undefined;
142
- this.limitStylingAppends = false;
143
165
  }
144
166
  connectedCallback() {
145
167
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-7158b6b0.js');
5
+ const index = require('./index-d6d883c7.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-tabs.cjs.js', document.baseURI).href));
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'helper-tabs';
24
- const BUILD = /* helper-tabs */ { 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: false, 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: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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-tabs */ { 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: false, 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: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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";
@@ -344,7 +349,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
344
349
  }
345
350
  if (!appliedStyles.has(scopeId2)) {
346
351
  {
347
- styleElm = doc.createElement("style");
352
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
348
353
  styleElm.innerHTML = style;
349
354
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
350
355
  if (nonce != null) {
@@ -354,7 +359,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
354
359
  if (styleContainerNode.nodeName === "HEAD") {
355
360
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
356
361
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
357
- styleContainerNode.insertBefore(styleElm, referenceNode2);
362
+ styleContainerNode.insertBefore(
363
+ styleElm,
364
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
365
+ );
358
366
  } else if ("host" in styleContainerNode) {
359
367
  if (supportsConstructableStylesheets) {
360
368
  const stylesheet = new CSSStyleSheet();
@@ -404,16 +412,18 @@ var attachStyles = (hostRef) => {
404
412
  endAttachStyles();
405
413
  };
406
414
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
407
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
415
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
408
416
  if (oldValue !== newValue) {
409
417
  let isProp = isMemberInElement(elm, memberName);
410
418
  let ln = memberName.toLowerCase();
411
419
  if (memberName === "class") {
412
420
  const classList = elm.classList;
413
421
  const oldClasses = parseClassList(oldValue);
414
- const newClasses = parseClassList(newValue);
415
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
416
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
422
+ let newClasses = parseClassList(newValue);
423
+ {
424
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
426
+ }
417
427
  } else if (memberName === "key") ; else if (memberName === "ref") {
418
428
  if (newValue) {
419
429
  newValue(elm);
@@ -451,7 +461,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
451
461
  elm.setAttribute(memberName, n);
452
462
  }
453
463
  }
454
- } else {
464
+ } else if (elm[memberName] !== newValue) {
455
465
  elm[memberName] = newValue;
456
466
  }
457
467
  } catch (e) {
@@ -473,24 +483,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
473
483
  }
474
484
  };
475
485
  var parseClassListRegex = /\s/;
476
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
486
+ var parseClassList = (value) => {
487
+ if (typeof value === "object" && value && "baseVal" in value) {
488
+ value = value.baseVal;
489
+ }
490
+ if (!value || typeof value !== "string") {
491
+ return [];
492
+ }
493
+ return value.split(parseClassListRegex);
494
+ };
477
495
  var CAPTURE_EVENT_SUFFIX = "Capture";
478
496
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
479
497
 
480
498
  // src/runtime/vdom/update-element.ts
481
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
499
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
482
500
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
483
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
484
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
501
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
502
+ const newVnodeAttrs = newVnode.$attrs$ || {};
485
503
  {
486
504
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
487
505
  if (!(memberName in newVnodeAttrs)) {
488
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
506
+ setAccessor(
507
+ elm,
508
+ memberName,
509
+ oldVnodeAttrs[memberName],
510
+ void 0,
511
+ isSvgMode2,
512
+ newVnode.$flags$);
489
513
  }
490
514
  }
491
515
  }
492
516
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
493
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
517
+ setAccessor(
518
+ elm,
519
+ memberName,
520
+ oldVnodeAttrs[memberName],
521
+ newVnodeAttrs[memberName],
522
+ isSvgMode2,
523
+ newVnode.$flags$);
494
524
  }
495
525
  };
496
526
  function sortedAttrNames(attrNames) {
@@ -502,13 +532,10 @@ function sortedAttrNames(attrNames) {
502
532
  attrNames
503
533
  );
504
534
  }
505
-
506
- // src/runtime/vdom/vdom-render.ts
507
- var scopeId;
508
535
  var hostTagName;
509
536
  var useNativeShadowDom = false;
510
537
  var isSvgMode = false;
511
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
538
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
512
539
  const newVNode2 = newParentVNode.$children$[childIndex];
513
540
  let i2 = 0;
514
541
  let elm;
@@ -522,11 +549,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
522
549
  {
523
550
  updateElement(null, newVNode2, isSvgMode);
524
551
  }
525
- const rootNode = elm.getRootNode();
526
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
527
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
528
- elm.classList.add(elm["s-si"] = scopeId);
529
- }
530
552
  if (newVNode2.$children$) {
531
553
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
532
554
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -656,6 +678,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
656
678
  if (!isInitialRender) {
657
679
  return leftVNode.$key$ === rightVNode.$key$;
658
680
  }
681
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
682
+ leftVNode.$key$ = rightVNode.$key$;
683
+ }
659
684
  return true;
660
685
  }
661
686
  return false;
@@ -695,8 +720,9 @@ var nullifyVNodeRefs = (vNode) => {
695
720
  }
696
721
  };
697
722
  var insertBefore = (parent, newNode, reference) => {
698
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
699
- return inserted;
723
+ {
724
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
725
+ }
700
726
  };
701
727
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
702
728
  const hostElm = hostRef.$hostElement$;
@@ -721,9 +747,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
721
747
  rootVnode.$flags$ |= 4 /* isHost */;
722
748
  hostRef.$vnode$ = rootVnode;
723
749
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
724
- {
725
- scopeId = hostElm["s-sc"];
726
- }
727
750
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
728
751
  patch(oldVNode, rootVnode, isInitialLoad);
729
752
  };
@@ -731,7 +754,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
731
754
  // src/runtime/update-component.ts
732
755
  var attachToAncestor = (hostRef, ancestorComponent) => {
733
756
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
734
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
757
+ const index = ancestorComponent["s-p"].push(
758
+ new Promise(
759
+ (r) => hostRef.$onRenderResolve$ = () => {
760
+ ancestorComponent["s-p"].splice(index - 1, 1);
761
+ r();
762
+ }
763
+ )
764
+ );
735
765
  }
736
766
  };
737
767
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -822,7 +852,7 @@ var postUpdateComponent = (hostRef) => {
822
852
  const instance = hostRef.$lazyInstance$ ;
823
853
  const ancestorComponent = hostRef.$ancestorComponent$;
824
854
  {
825
- safeCall(instance, "componentDidRender");
855
+ safeCall(instance, "componentDidRender", void 0, elm);
826
856
  }
827
857
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
828
858
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -856,12 +886,12 @@ var appDidLoad = (who) => {
856
886
  }
857
887
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
858
888
  };
859
- var safeCall = (instance, method, arg) => {
889
+ var safeCall = (instance, method, arg, elm) => {
860
890
  if (instance && instance[method]) {
861
891
  try {
862
892
  return instance[method](arg);
863
893
  } catch (e) {
864
- consoleError(e);
894
+ consoleError(e, elm);
865
895
  }
866
896
  }
867
897
  return void 0;
@@ -904,15 +934,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
904
934
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
905
935
  members.map(([memberName, [memberFlags]]) => {
906
936
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
937
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
938
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
939
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
940
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
941
+ Object.defineProperty(prototype, memberName, {
942
+ get() {
943
+ {
944
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
945
+ return getValue(this, memberName);
946
+ }
947
+ const ref = getHostRef(this);
948
+ const instance = ref ? ref.$lazyInstance$ : prototype;
949
+ if (!instance) return;
950
+ return instance[memberName];
951
+ }
952
+ },
953
+ configurable: true,
954
+ enumerable: true
955
+ });
956
+ }
907
957
  Object.defineProperty(prototype, memberName, {
908
- get() {
909
- return getValue(this, memberName);
910
- },
911
958
  set(newValue) {
912
- setValue(this, memberName, newValue, cmpMeta);
913
- },
914
- configurable: true,
915
- enumerable: true
959
+ const ref = getHostRef(this);
960
+ if (origSetter) {
961
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
962
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
963
+ newValue = ref.$instanceValues$.get(memberName);
964
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
965
+ ref.$instanceValues$.set(memberName, currentValue);
966
+ }
967
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
968
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
969
+ setValue(this, memberName, newValue, cmpMeta);
970
+ return;
971
+ }
972
+ {
973
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
974
+ setValue(this, memberName, newValue, cmpMeta);
975
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
976
+ ref.$onReadyPromise$.then(() => {
977
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
978
+ ref.$lazyInstance$[memberName] = newValue;
979
+ }
980
+ });
981
+ }
982
+ return;
983
+ }
984
+ const setterSetVal = () => {
985
+ const currentValue = ref.$lazyInstance$[memberName];
986
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
987
+ ref.$instanceValues$.set(memberName, currentValue);
988
+ }
989
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
990
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
991
+ };
992
+ if (ref.$lazyInstance$) {
993
+ setterSetVal();
994
+ } else {
995
+ ref.$onReadyPromise$.then(() => setterSetVal());
996
+ }
997
+ }
998
+ }
916
999
  });
917
1000
  }
918
1001
  });
@@ -922,7 +1005,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
922
1005
  plt.jmp(() => {
923
1006
  var _a2;
924
1007
  const propName = attrNameToPropName.get(attrName);
925
- if (this.hasOwnProperty(propName)) {
1008
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
926
1009
  newValue = this[propName];
927
1010
  delete this[propName];
928
1011
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -942,7 +1025,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
942
1025
  }
943
1026
  return;
944
1027
  }
945
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1028
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1029
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1030
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1031
+ this[propName] = newValue;
1032
+ }
946
1033
  });
947
1034
  };
948
1035
  Cstr.observedAttributes = Array.from(
@@ -969,9 +1056,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
969
1056
  let Cstr;
970
1057
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
971
1058
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
972
- const bundleId = cmpMeta.$lazyBundleId$;
973
- if (bundleId) {
974
- const CstrImport = loadModule(cmpMeta);
1059
+ {
1060
+ const CstrImport = loadModule(cmpMeta, hostRef);
975
1061
  if (CstrImport && "then" in CstrImport) {
976
1062
  const endLoad = uniqueTime();
977
1063
  Cstr = await CstrImport;
@@ -993,17 +1079,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
993
1079
  try {
994
1080
  new Cstr(hostRef);
995
1081
  } catch (e) {
996
- consoleError(e);
1082
+ consoleError(e, elm);
997
1083
  }
998
1084
  {
999
1085
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1000
1086
  }
1001
1087
  endNewInstance();
1002
- fireConnectedCallback(hostRef.$lazyInstance$);
1003
- } else {
1004
- Cstr = elm.constructor;
1005
- const cmpTag = elm.localName;
1006
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1088
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1007
1089
  }
1008
1090
  if (Cstr && Cstr.style) {
1009
1091
  let style;
@@ -1026,9 +1108,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1026
1108
  schedule();
1027
1109
  }
1028
1110
  };
1029
- var fireConnectedCallback = (instance) => {
1111
+ var fireConnectedCallback = (instance, elm) => {
1030
1112
  {
1031
- safeCall(instance, "connectedCallback");
1113
+ safeCall(instance, "connectedCallback", void 0, elm);
1032
1114
  }
1033
1115
  };
1034
1116
 
@@ -1063,15 +1145,15 @@ var connectedCallback = (elm) => {
1063
1145
  }
1064
1146
  } else {
1065
1147
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1066
- fireConnectedCallback(hostRef.$lazyInstance$);
1148
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1067
1149
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1068
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1150
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1069
1151
  }
1070
1152
  }
1071
1153
  endConnected();
1072
1154
  }
1073
1155
  };
1074
- var disconnectInstance = (instance) => {
1156
+ var disconnectInstance = (instance, elm) => {
1075
1157
  };
1076
1158
  var disconnectedCallback = async (elm) => {
1077
1159
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1080,6 +1162,12 @@ var disconnectedCallback = async (elm) => {
1080
1162
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1081
1163
  }
1082
1164
  }
1165
+ if (rootAppliedStyles.has(elm)) {
1166
+ rootAppliedStyles.delete(elm);
1167
+ }
1168
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1169
+ rootAppliedStyles.delete(elm.shadowRoot);
1170
+ }
1083
1171
  };
1084
1172
 
1085
1173
  // src/runtime/bootstrap-lazy.ts
@@ -1156,6 +1244,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1156
1244
  }
1157
1245
  disconnectedCallback() {
1158
1246
  plt.jmp(() => disconnectedCallback(this));
1247
+ plt.raf(() => {
1248
+ var _a3;
1249
+ const hostRef = getHostRef(this);
1250
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1251
+ delete hostRef.$vnode$.$elm$;
1252
+ }
1253
+ });
1159
1254
  }
1160
1255
  componentOnReady() {
1161
1256
  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-7158b6b0.js');
5
+ const index = require('./index-d6d883c7.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "compiler": {
7
7
  "name": "@stencil/core",
8
- "version": "4.22.3",
8
+ "version": "4.25.1",
9
9
  "typescriptVersion": "5.5.4"
10
10
  },
11
11
  "collections": [],