@everymatrix/helper-filters 1.56.0 → 1.56.3

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-filters.cjs.js +2 -2
  2. package/dist/cjs/helper-filters_2.cjs.entry.js +192 -316
  3. package/dist/cjs/{index-f886624e.js → index-71fae404.js} +68 -203
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/helper-filters/helper-filters.js +16 -67
  7. package/dist/esm/helper-filters.js +3 -3
  8. package/dist/esm/helper-filters_2.entry.js +192 -316
  9. package/dist/esm/{index-db278f52.js → index-0fad714f.js} +68 -203
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/helper-filters/helper-filters.esm.js +1 -1
  12. package/dist/helper-filters/{p-a7e051df.entry.js → p-185df28e.entry.js} +143 -145
  13. package/dist/helper-filters/p-a730a9fa.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/helper-filters/p-01cd08da.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-filters/.stencil/packages/stencil/helper-filters/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/helper-filters/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'helper-filters';
24
- const BUILD = /* helper-filters */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, 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: 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-filters */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, 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: 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.19.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
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 : {};
@@ -177,6 +166,12 @@ var flush = () => {
177
166
  };
178
167
  var nextTick = (cb) => promiseResolve().then(cb);
179
168
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
+
170
+ // src/utils/constants.ts
171
+ var EMPTY_OBJ = {};
172
+
173
+ // src/utils/helpers.ts
174
+ var isDef = (v) => v != null;
180
175
  var isComplexType = (o) => {
181
176
  o = typeof o;
182
177
  return o === "object" || o === "function";
@@ -377,40 +372,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
377
372
  }
378
373
  if (!appliedStyles.has(scopeId2)) {
379
374
  {
380
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
375
+ styleElm = doc.createElement("style");
381
376
  styleElm.innerHTML = style;
382
377
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
383
378
  if (nonce != null) {
384
379
  styleElm.setAttribute("nonce", nonce);
385
380
  }
386
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
387
- if (styleContainerNode.nodeName === "HEAD") {
388
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
389
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
390
- styleContainerNode.insertBefore(
391
- styleElm,
392
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
393
- );
394
- } else if ("host" in styleContainerNode) {
395
- if (supportsConstructableStylesheets) {
396
- const stylesheet = new CSSStyleSheet();
397
- stylesheet.replaceSync(style);
398
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
399
- } else {
400
- const existingStyleContainer = styleContainerNode.querySelector("style");
401
- if (existingStyleContainer) {
402
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
403
- } else {
404
- styleContainerNode.prepend(styleElm);
405
- }
406
- }
407
- } else {
408
- styleContainerNode.append(styleElm);
409
- }
410
- }
411
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
412
- styleContainerNode.insertBefore(styleElm, null);
413
- }
381
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
414
382
  }
415
383
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
416
384
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -433,25 +401,23 @@ var attachStyles = (hostRef) => {
433
401
  const scopeId2 = addStyle(
434
402
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
435
403
  cmpMeta);
436
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
404
+ if (flags & 10 /* needsScopedEncapsulation */) {
437
405
  elm["s-sc"] = scopeId2;
438
406
  elm.classList.add(scopeId2 + "-h");
439
407
  }
440
408
  endAttachStyles();
441
409
  };
442
410
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
443
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
411
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
412
  if (oldValue !== newValue) {
445
413
  let isProp = isMemberInElement(elm, memberName);
446
414
  let ln = memberName.toLowerCase();
447
415
  if (memberName === "class") {
448
416
  const classList = elm.classList;
449
417
  const oldClasses = parseClassList(oldValue);
450
- let newClasses = parseClassList(newValue);
451
- {
452
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
453
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
454
- }
418
+ const newClasses = parseClassList(newValue);
419
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
420
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
455
421
  } else if (memberName === "key") ; else if (memberName === "ref") {
456
422
  if (newValue) {
457
423
  newValue(elm);
@@ -483,13 +449,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
483
449
  if (memberName === "list") {
484
450
  isProp = false;
485
451
  } else if (oldValue == null || elm[memberName] != n) {
486
- if (typeof elm.__lookupSetter__(memberName) === "function") {
487
- elm[memberName] = n;
488
- } else {
489
- elm.setAttribute(memberName, n);
490
- }
452
+ elm[memberName] = n;
491
453
  }
492
- } else if (elm[memberName] !== newValue) {
454
+ } else {
493
455
  elm[memberName] = newValue;
494
456
  }
495
457
  } catch (e) {
@@ -511,44 +473,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
511
473
  }
512
474
  };
513
475
  var parseClassListRegex = /\s/;
514
- var parseClassList = (value) => {
515
- if (typeof value === "object" && value && "baseVal" in value) {
516
- value = value.baseVal;
517
- }
518
- if (!value || typeof value !== "string") {
519
- return [];
520
- }
521
- return value.split(parseClassListRegex);
522
- };
476
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
523
477
  var CAPTURE_EVENT_SUFFIX = "Capture";
524
478
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
525
479
 
526
480
  // src/runtime/vdom/update-element.ts
527
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
481
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
528
482
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
529
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
530
- const newVnodeAttrs = newVnode.$attrs$ || {};
483
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
484
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
531
485
  {
532
486
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
533
487
  if (!(memberName in newVnodeAttrs)) {
534
- setAccessor(
535
- elm,
536
- memberName,
537
- oldVnodeAttrs[memberName],
538
- void 0,
539
- isSvgMode2,
540
- newVnode.$flags$);
488
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
541
489
  }
542
490
  }
543
491
  }
544
492
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
545
- setAccessor(
546
- elm,
547
- memberName,
548
- oldVnodeAttrs[memberName],
549
- newVnodeAttrs[memberName],
550
- isSvgMode2,
551
- newVnode.$flags$);
493
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
552
494
  }
553
495
  };
554
496
  function sortedAttrNames(attrNames) {
@@ -560,10 +502,13 @@ function sortedAttrNames(attrNames) {
560
502
  attrNames
561
503
  );
562
504
  }
505
+
506
+ // src/runtime/vdom/vdom-render.ts
507
+ var scopeId;
563
508
  var hostTagName;
564
509
  var useNativeShadowDom = false;
565
510
  var isSvgMode = false;
566
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
511
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
567
512
  const newVNode2 = newParentVNode.$children$[childIndex];
568
513
  let i2 = 0;
569
514
  let elm;
@@ -577,6 +522,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
577
522
  {
578
523
  updateElement(null, newVNode2, isSvgMode);
579
524
  }
525
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
526
+ elm.classList.add(elm["s-si"] = scopeId);
527
+ }
580
528
  if (newVNode2.$children$) {
581
529
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
582
530
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -706,9 +654,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
706
654
  if (!isInitialRender) {
707
655
  return leftVNode.$key$ === rightVNode.$key$;
708
656
  }
709
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
710
- leftVNode.$key$ = rightVNode.$key$;
711
- }
712
657
  return true;
713
658
  }
714
659
  return false;
@@ -732,10 +677,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
732
677
  elm.textContent = "";
733
678
  }
734
679
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
735
- } else if (
736
- // don't do this on initial render as it can cause non-hydrated content to be removed
737
- !isInitialRender && BUILD.updatable && oldChildren !== null
738
- ) {
680
+ } else if (oldChildren !== null) {
739
681
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
740
682
  }
741
683
  } else if (oldVNode.$text$ !== text) {
@@ -749,9 +691,8 @@ var nullifyVNodeRefs = (vNode) => {
749
691
  }
750
692
  };
751
693
  var insertBefore = (parent, newNode, reference) => {
752
- {
753
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
754
- }
694
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
695
+ return inserted;
755
696
  };
756
697
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
757
698
  const hostElm = hostRef.$hostElement$;
@@ -776,21 +717,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
776
717
  rootVnode.$flags$ |= 4 /* isHost */;
777
718
  hostRef.$vnode$ = rootVnode;
778
719
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
779
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
720
+ {
721
+ scopeId = hostElm["s-sc"];
722
+ }
723
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
780
724
  patch(oldVNode, rootVnode, isInitialLoad);
781
725
  };
782
726
 
783
727
  // src/runtime/update-component.ts
784
728
  var attachToAncestor = (hostRef, ancestorComponent) => {
785
729
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
786
- const index = ancestorComponent["s-p"].push(
787
- new Promise(
788
- (r) => hostRef.$onRenderResolve$ = () => {
789
- ancestorComponent["s-p"].splice(index - 1, 1);
790
- r();
791
- }
792
- )
793
- );
730
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
794
731
  }
795
732
  };
796
733
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -819,12 +756,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
819
756
  {
820
757
  hostRef.$flags$ |= 256 /* isListenReady */;
821
758
  if (hostRef.$queuedListeners$) {
822
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
759
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
823
760
  hostRef.$queuedListeners$ = void 0;
824
761
  }
825
762
  }
826
763
  {
827
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
764
+ maybePromise = safeCall(instance, "componentWillLoad");
828
765
  }
829
766
  }
830
767
  endSchedule();
@@ -893,7 +830,7 @@ var postUpdateComponent = (hostRef) => {
893
830
  const instance = hostRef.$lazyInstance$ ;
894
831
  const ancestorComponent = hostRef.$ancestorComponent$;
895
832
  {
896
- safeCall(instance, "componentDidRender", void 0, elm);
833
+ safeCall(instance, "componentDidRender");
897
834
  }
898
835
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
899
836
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -922,14 +859,17 @@ var postUpdateComponent = (hostRef) => {
922
859
  }
923
860
  };
924
861
  var appDidLoad = (who) => {
862
+ {
863
+ addHydratedFlag(doc.documentElement);
864
+ }
925
865
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
926
866
  };
927
- var safeCall = (instance, method, arg, elm) => {
867
+ var safeCall = (instance, method, arg) => {
928
868
  if (instance && instance[method]) {
929
869
  try {
930
870
  return instance[method](arg);
931
871
  } catch (e) {
932
- consoleError(e, elm);
872
+ consoleError(e);
933
873
  }
934
874
  }
935
875
  return void 0;
@@ -972,68 +912,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
972
912
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
973
913
  members.map(([memberName, [memberFlags]]) => {
974
914
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
975
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
976
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
977
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
978
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
979
- Object.defineProperty(prototype, memberName, {
980
- get() {
981
- {
982
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
983
- return getValue(this, memberName);
984
- }
985
- const ref = getHostRef(this);
986
- const instance = ref ? ref.$lazyInstance$ : prototype;
987
- if (!instance) return;
988
- return instance[memberName];
989
- }
990
- },
991
- configurable: true,
992
- enumerable: true
993
- });
994
- }
995
915
  Object.defineProperty(prototype, memberName, {
916
+ get() {
917
+ return getValue(this, memberName);
918
+ },
996
919
  set(newValue) {
997
- const ref = getHostRef(this);
998
- if (origSetter) {
999
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1000
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1001
- newValue = ref.$instanceValues$.get(memberName);
1002
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1003
- ref.$instanceValues$.set(memberName, currentValue);
1004
- }
1005
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1006
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1007
- setValue(this, memberName, newValue, cmpMeta);
1008
- return;
1009
- }
1010
- {
1011
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1012
- setValue(this, memberName, newValue, cmpMeta);
1013
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1014
- ref.$onReadyPromise$.then(() => {
1015
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1016
- ref.$lazyInstance$[memberName] = newValue;
1017
- }
1018
- });
1019
- }
1020
- return;
1021
- }
1022
- const setterSetVal = () => {
1023
- const currentValue = ref.$lazyInstance$[memberName];
1024
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1025
- ref.$instanceValues$.set(memberName, currentValue);
1026
- }
1027
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1028
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1029
- };
1030
- if (ref.$lazyInstance$) {
1031
- setterSetVal();
1032
- } else {
1033
- ref.$onReadyPromise$.then(() => setterSetVal());
1034
- }
1035
- }
1036
- }
920
+ setValue(this, memberName, newValue, cmpMeta);
921
+ },
922
+ configurable: true,
923
+ enumerable: true
1037
924
  });
1038
925
  }
1039
926
  });
@@ -1043,11 +930,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1043
930
  plt.jmp(() => {
1044
931
  var _a2;
1045
932
  const propName = attrNameToPropName.get(attrName);
1046
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
933
+ if (this.hasOwnProperty(propName)) {
1047
934
  newValue = this[propName];
1048
935
  delete this[propName];
1049
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1050
- this[propName] == newValue) {
936
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1051
937
  return;
1052
938
  } else if (propName == null) {
1053
939
  const hostRef = getHostRef(this);
@@ -1063,11 +949,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1063
949
  }
1064
950
  return;
1065
951
  }
1066
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1067
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1068
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1069
- this[propName] = newValue;
1070
- }
952
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1071
953
  });
1072
954
  };
1073
955
  Cstr.observedAttributes = Array.from(
@@ -1096,7 +978,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1096
978
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1097
979
  const bundleId = cmpMeta.$lazyBundleId$;
1098
980
  if (bundleId) {
1099
- const CstrImport = loadModule(cmpMeta, hostRef);
981
+ const CstrImport = loadModule(cmpMeta);
1100
982
  if (CstrImport && "then" in CstrImport) {
1101
983
  const endLoad = uniqueTime();
1102
984
  Cstr = await CstrImport;
@@ -1118,7 +1000,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1118
1000
  try {
1119
1001
  new Cstr(hostRef);
1120
1002
  } catch (e) {
1121
- consoleError(e, elm);
1003
+ consoleError(e);
1122
1004
  }
1123
1005
  {
1124
1006
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1150,7 +1032,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1150
1032
  schedule();
1151
1033
  }
1152
1034
  };
1153
- var fireConnectedCallback = (instance, elm) => {
1035
+ var fireConnectedCallback = (instance) => {
1154
1036
  };
1155
1037
 
1156
1038
  // src/runtime/connected-callback.ts
@@ -1191,7 +1073,7 @@ var connectedCallback = (elm) => {
1191
1073
  endConnected();
1192
1074
  }
1193
1075
  };
1194
- var disconnectInstance = (instance, elm) => {
1076
+ var disconnectInstance = (instance) => {
1195
1077
  };
1196
1078
  var disconnectedCallback = async (elm) => {
1197
1079
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1206,12 +1088,6 @@ var disconnectedCallback = async (elm) => {
1206
1088
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1207
1089
  }
1208
1090
  }
1209
- if (rootAppliedStyles.has(elm)) {
1210
- rootAppliedStyles.delete(elm);
1211
- }
1212
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1213
- rootAppliedStyles.delete(elm.shadowRoot);
1214
- }
1215
1091
  };
1216
1092
 
1217
1093
  // src/runtime/bootstrap-lazy.ts
@@ -1292,17 +1168,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1292
1168
  }
1293
1169
  disconnectedCallback() {
1294
1170
  plt.jmp(() => disconnectedCallback(this));
1295
- plt.raf(() => {
1296
- var _a3;
1297
- const hostRef = getHostRef(this);
1298
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1299
- if (i2 > -1) {
1300
- deferredConnectedCallbacks.splice(i2, 1);
1301
- }
1302
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1303
- delete hostRef.$vnode$.$elm$;
1304
- }
1305
- });
1306
1171
  }
1307
1172
  componentOnReady() {
1308
1173
  return getHostRef(this).$onReadyPromise$;
@@ -1366,7 +1231,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1366
1231
  }
1367
1232
  }
1368
1233
  } catch (e) {
1369
- consoleError(e, hostRef.$hostElement$);
1234
+ consoleError(e);
1370
1235
  }
1371
1236
  };
1372
1237
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f886624e.js');
5
+ const index = require('./index-71fae404.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [
11
11
  {