@everymatrix/helper-accordion 1.54.11 → 1.55.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 (24) hide show
  1. package/dist/cjs/helper-accordion.cjs.entry.js +15 -49
  2. package/dist/cjs/helper-accordion.cjs.js +2 -2
  3. package/dist/cjs/{index-00039b40.js → index-a85479d0.js} +70 -171
  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 +14 -74
  7. package/dist/esm/helper-accordion.entry.js +15 -49
  8. package/dist/esm/helper-accordion.js +3 -3
  9. package/dist/esm/{index-e014805e.js → index-2246d4ef.js} +70 -171
  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-196f82a5.entry.js +1 -0
  13. package/dist/helper-accordion/p-9f371648.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/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-b7fe6513.entry.js +0 -1
  18. package/dist/helper-accordion/p-d73ec3ca.js +0 -2
  19. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.d.ts +0 -2
  20. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/helper-accordion/.stencil/packages/stencil/helper-accordion/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-accordion/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-00039b40.js');
5
+ const index = require('./index-a85479d0.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['ro', 'en', 'hr'];
@@ -42,67 +42,33 @@ const HelperAccordion = class {
42
42
  constructor(hostRef) {
43
43
  index.registerInstance(this, hostRef);
44
44
  this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
45
- /**
46
- * Flag for ticket history
47
- */
45
+ this.setClientStyling = () => {
46
+ let sheet = document.createElement('style');
47
+ sheet.innerHTML = this.clientStyling;
48
+ this.stylingContainer.prepend(sheet);
49
+ };
50
+ this.setClientStylingURL = () => {
51
+ let cssFile = document.createElement('style');
52
+ setTimeout(() => {
53
+ cssFile.innerHTML = this.clientStylingUrlContent;
54
+ this.stylingContainer.prepend(cssFile);
55
+ }, 1);
56
+ };
48
57
  this.ticketHistoryFlag = false;
49
- /**
50
- * Title (top header)
51
- */
52
58
  this.headerTitle = '';
53
- /**
54
- * SubTitle (top header)
55
- */
56
59
  this.headerSubtitle = '';
57
- /**
58
- * Description
59
- */
60
60
  this.description = '';
61
- /**
62
- * Enables footer content
63
- */
64
61
  this.footer = false;
65
- /**
66
- * Enables footer button for tab deletion
67
- */
68
62
  this.deleteTab = false;
69
- /**
70
- * Activates postMessages as events for actions from the widget
71
- */
72
63
  this.postMessage = false;
73
- /**
74
- * Name of the event emitter by the action button
75
- */
76
64
  this.eventName = 'helperAccordionAction';
77
- /**
78
- * Collapsed
79
- */
80
65
  this.collapsed = true;
81
- /**
82
- * Language
83
- */
84
66
  this.language = 'en';
85
- /**
86
- * Client custom styling via string
87
- */
88
67
  this.clientStyling = '';
89
- /**
90
- * Client custom styling via url content
91
- */
92
68
  this.clientStylingUrlContent = '';
69
+ this.translationUrl = undefined;
70
+ this.showContent = undefined;
93
71
  this.limitStylingAppends = false;
94
- this.setClientStyling = () => {
95
- let sheet = document.createElement('style');
96
- sheet.innerHTML = this.clientStyling;
97
- this.stylingContainer.prepend(sheet);
98
- };
99
- this.setClientStylingURL = () => {
100
- let cssFile = document.createElement('style');
101
- setTimeout(() => {
102
- cssFile.innerHTML = this.clientStylingUrlContent;
103
- this.stylingContainer.prepend(cssFile);
104
- }, 1);
105
- };
106
72
  }
107
73
  // @TODO fix the `any` type :)
108
74
  connectedCallback() {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-00039b40.js');
5
+ const index = require('./index-a85479d0.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.22.3 | 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,23 +21,19 @@ 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: true, 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 };
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: true, 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | 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
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  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;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -361,7 +356,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
361
356
  }
362
357
  if (!appliedStyles.has(scopeId2)) {
363
358
  {
364
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
359
+ styleElm = doc.createElement("style");
365
360
  styleElm.innerHTML = style;
366
361
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
367
362
  if (nonce != null) {
@@ -371,10 +366,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
371
366
  if (styleContainerNode.nodeName === "HEAD") {
372
367
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
373
368
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
374
- styleContainerNode.insertBefore(
375
- styleElm,
376
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
377
- );
369
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
378
370
  } else if ("host" in styleContainerNode) {
379
371
  if (supportsConstructableStylesheets) {
380
372
  const stylesheet = new CSSStyleSheet();
@@ -392,7 +384,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
392
384
  styleContainerNode.append(styleElm);
393
385
  }
394
386
  }
395
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
387
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
396
388
  styleContainerNode.insertBefore(styleElm, null);
397
389
  }
398
390
  }
@@ -417,25 +409,23 @@ var attachStyles = (hostRef) => {
417
409
  const scopeId2 = addStyle(
418
410
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
419
411
  cmpMeta);
420
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
412
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
421
413
  elm["s-sc"] = scopeId2;
422
414
  elm.classList.add(scopeId2 + "-h");
423
415
  }
424
416
  endAttachStyles();
425
417
  };
426
418
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
427
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
419
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
428
420
  if (oldValue !== newValue) {
429
421
  let isProp = isMemberInElement(elm, memberName);
430
422
  let ln = memberName.toLowerCase();
431
423
  if (memberName === "class") {
432
424
  const classList = elm.classList;
433
425
  const oldClasses = parseClassList(oldValue);
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
- }
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)));
439
429
  } else if (memberName === "key") ; else if (memberName === "ref") {
440
430
  if (newValue) {
441
431
  newValue(elm);
@@ -473,7 +463,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
473
463
  elm.setAttribute(memberName, n);
474
464
  }
475
465
  }
476
- } else if (elm[memberName] !== newValue) {
466
+ } else {
477
467
  elm[memberName] = newValue;
478
468
  }
479
469
  } catch (e) {
@@ -495,44 +485,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
495
485
  }
496
486
  };
497
487
  var parseClassListRegex = /\s/;
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
- };
488
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
507
489
  var CAPTURE_EVENT_SUFFIX = "Capture";
508
490
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
509
491
 
510
492
  // src/runtime/vdom/update-element.ts
511
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
493
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
512
494
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
513
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
514
- const newVnodeAttrs = newVnode.$attrs$ || {};
495
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
496
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
515
497
  {
516
498
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
517
499
  if (!(memberName in newVnodeAttrs)) {
518
- setAccessor(
519
- elm,
520
- memberName,
521
- oldVnodeAttrs[memberName],
522
- void 0,
523
- isSvgMode2,
524
- newVnode.$flags$);
500
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
525
501
  }
526
502
  }
527
503
  }
528
504
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
529
- setAccessor(
530
- elm,
531
- memberName,
532
- oldVnodeAttrs[memberName],
533
- newVnodeAttrs[memberName],
534
- isSvgMode2,
535
- newVnode.$flags$);
505
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
536
506
  }
537
507
  };
538
508
  function sortedAttrNames(attrNames) {
@@ -544,10 +514,13 @@ function sortedAttrNames(attrNames) {
544
514
  attrNames
545
515
  );
546
516
  }
517
+
518
+ // src/runtime/vdom/vdom-render.ts
519
+ var scopeId;
547
520
  var hostTagName;
548
521
  var useNativeShadowDom = false;
549
522
  var isSvgMode = false;
550
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
523
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
551
524
  const newVNode2 = newParentVNode.$children$[childIndex];
552
525
  let i2 = 0;
553
526
  let elm;
@@ -561,6 +534,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
561
534
  {
562
535
  updateElement(null, newVNode2, isSvgMode);
563
536
  }
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
+ }
564
542
  if (newVNode2.$children$) {
565
543
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
566
544
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -690,9 +668,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
690
668
  if (!isInitialRender) {
691
669
  return leftVNode.$key$ === rightVNode.$key$;
692
670
  }
693
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
694
- leftVNode.$key$ = rightVNode.$key$;
695
- }
696
671
  return true;
697
672
  }
698
673
  return false;
@@ -733,9 +708,8 @@ var nullifyVNodeRefs = (vNode) => {
733
708
  }
734
709
  };
735
710
  var insertBefore = (parent, newNode, reference) => {
736
- {
737
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
738
- }
711
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
712
+ return inserted;
739
713
  };
740
714
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
741
715
  const hostElm = hostRef.$hostElement$;
@@ -760,21 +734,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
760
734
  rootVnode.$flags$ |= 4 /* isHost */;
761
735
  hostRef.$vnode$ = rootVnode;
762
736
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
763
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
737
+ {
738
+ scopeId = hostElm["s-sc"];
739
+ }
740
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
764
741
  patch(oldVNode, rootVnode, isInitialLoad);
765
742
  };
766
743
 
767
744
  // src/runtime/update-component.ts
768
745
  var attachToAncestor = (hostRef, ancestorComponent) => {
769
746
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
747
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
778
748
  }
779
749
  };
780
750
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -801,7 +771,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
801
771
  let maybePromise;
802
772
  if (isInitialLoad) {
803
773
  {
804
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
774
+ maybePromise = safeCall(instance, "componentWillLoad");
805
775
  }
806
776
  }
807
777
  endSchedule();
@@ -870,7 +840,7 @@ var postUpdateComponent = (hostRef) => {
870
840
  const instance = hostRef.$lazyInstance$ ;
871
841
  const ancestorComponent = hostRef.$ancestorComponent$;
872
842
  {
873
- safeCall(instance, "componentDidRender", void 0, elm);
843
+ safeCall(instance, "componentDidRender");
874
844
  }
875
845
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
876
846
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -899,14 +869,17 @@ var postUpdateComponent = (hostRef) => {
899
869
  }
900
870
  };
901
871
  var appDidLoad = (who) => {
872
+ {
873
+ addHydratedFlag(doc.documentElement);
874
+ }
902
875
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
903
876
  };
904
- var safeCall = (instance, method, arg, elm) => {
877
+ var safeCall = (instance, method, arg) => {
905
878
  if (instance && instance[method]) {
906
879
  try {
907
880
  return instance[method](arg);
908
881
  } catch (e) {
909
- consoleError(e, elm);
882
+ consoleError(e);
910
883
  }
911
884
  }
912
885
  return void 0;
@@ -949,68 +922,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
949
922
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
950
923
  members.map(([memberName, [memberFlags]]) => {
951
924
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
952
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
953
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
954
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
955
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
956
- Object.defineProperty(prototype, memberName, {
957
- get() {
958
- {
959
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
960
- return getValue(this, memberName);
961
- }
962
- const ref = getHostRef(this);
963
- const instance = ref ? ref.$lazyInstance$ : prototype;
964
- if (!instance) return;
965
- return instance[memberName];
966
- }
967
- },
968
- configurable: true,
969
- enumerable: true
970
- });
971
- }
972
925
  Object.defineProperty(prototype, memberName, {
926
+ get() {
927
+ return getValue(this, memberName);
928
+ },
973
929
  set(newValue) {
974
- const ref = getHostRef(this);
975
- if (origSetter) {
976
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
977
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
978
- newValue = ref.$instanceValues$.get(memberName);
979
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
980
- ref.$instanceValues$.set(memberName, currentValue);
981
- }
982
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
983
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
984
- setValue(this, memberName, newValue, cmpMeta);
985
- return;
986
- }
987
- {
988
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
989
- setValue(this, memberName, newValue, cmpMeta);
990
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
991
- ref.$onReadyPromise$.then(() => {
992
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
993
- ref.$lazyInstance$[memberName] = newValue;
994
- }
995
- });
996
- }
997
- return;
998
- }
999
- const setterSetVal = () => {
1000
- const currentValue = ref.$lazyInstance$[memberName];
1001
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1002
- ref.$instanceValues$.set(memberName, currentValue);
1003
- }
1004
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1005
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1006
- };
1007
- if (ref.$lazyInstance$) {
1008
- setterSetVal();
1009
- } else {
1010
- ref.$onReadyPromise$.then(() => setterSetVal());
1011
- }
1012
- }
1013
- }
930
+ setValue(this, memberName, newValue, cmpMeta);
931
+ },
932
+ configurable: true,
933
+ enumerable: true
1014
934
  });
1015
935
  }
1016
936
  });
@@ -1020,7 +940,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1020
940
  plt.jmp(() => {
1021
941
  var _a2;
1022
942
  const propName = attrNameToPropName.get(attrName);
1023
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
943
+ if (this.hasOwnProperty(propName)) {
1024
944
  newValue = this[propName];
1025
945
  delete this[propName];
1026
946
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1040,11 +960,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1040
960
  }
1041
961
  return;
1042
962
  }
1043
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1044
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1045
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1046
- this[propName] = newValue;
1047
- }
963
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1048
964
  });
1049
965
  };
1050
966
  Cstr.observedAttributes = Array.from(
@@ -1073,7 +989,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1073
989
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1074
990
  const bundleId = cmpMeta.$lazyBundleId$;
1075
991
  if (bundleId) {
1076
- const CstrImport = loadModule(cmpMeta, hostRef);
992
+ const CstrImport = loadModule(cmpMeta);
1077
993
  if (CstrImport && "then" in CstrImport) {
1078
994
  const endLoad = uniqueTime();
1079
995
  Cstr = await CstrImport;
@@ -1095,13 +1011,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1095
1011
  try {
1096
1012
  new Cstr(hostRef);
1097
1013
  } catch (e) {
1098
- consoleError(e, elm);
1014
+ consoleError(e);
1099
1015
  }
1100
1016
  {
1101
1017
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1102
1018
  }
1103
1019
  endNewInstance();
1104
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1020
+ fireConnectedCallback(hostRef.$lazyInstance$);
1105
1021
  } else {
1106
1022
  Cstr = elm.constructor;
1107
1023
  const cmpTag = elm.localName;
@@ -1128,9 +1044,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1128
1044
  schedule();
1129
1045
  }
1130
1046
  };
1131
- var fireConnectedCallback = (instance, elm) => {
1047
+ var fireConnectedCallback = (instance) => {
1132
1048
  {
1133
- safeCall(instance, "connectedCallback", void 0, elm);
1049
+ safeCall(instance, "connectedCallback");
1134
1050
  }
1135
1051
  };
1136
1052
 
@@ -1165,15 +1081,15 @@ var connectedCallback = (elm) => {
1165
1081
  }
1166
1082
  } else {
1167
1083
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1168
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1084
+ fireConnectedCallback(hostRef.$lazyInstance$);
1169
1085
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1170
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1086
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1171
1087
  }
1172
1088
  }
1173
1089
  endConnected();
1174
1090
  }
1175
1091
  };
1176
- var disconnectInstance = (instance, elm) => {
1092
+ var disconnectInstance = (instance) => {
1177
1093
  };
1178
1094
  var disconnectedCallback = async (elm) => {
1179
1095
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1182,12 +1098,6 @@ var disconnectedCallback = async (elm) => {
1182
1098
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1183
1099
  }
1184
1100
  }
1185
- if (rootAppliedStyles.has(elm)) {
1186
- rootAppliedStyles.delete(elm);
1187
- }
1188
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1189
- rootAppliedStyles.delete(elm.shadowRoot);
1190
- }
1191
1101
  };
1192
1102
 
1193
1103
  // src/runtime/bootstrap-lazy.ts
@@ -1264,17 +1174,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1264
1174
  }
1265
1175
  disconnectedCallback() {
1266
1176
  plt.jmp(() => disconnectedCallback(this));
1267
- plt.raf(() => {
1268
- var _a3;
1269
- const hostRef = getHostRef(this);
1270
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1271
- if (i2 > -1) {
1272
- deferredConnectedCallbacks.splice(i2, 1);
1273
- }
1274
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1275
- delete hostRef.$vnode$.$elm$;
1276
- }
1277
- });
1278
1177
  }
1279
1178
  componentOnReady() {
1280
1179
  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-00039b40.js');
5
+ const index = require('./index-a85479d0.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.26.0",
7
+ "version": "4.22.3",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],