@everymatrix/helper-pagination 1.55.0 → 1.56.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 (26) hide show
  1. package/dist/cjs/helper-pagination.cjs.entry.js +135 -41
  2. package/dist/cjs/helper-pagination.cjs.js +3 -3
  3. package/dist/cjs/{index-502d881b.js → index-5d7ac0d5.js} +203 -71
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/helper-pagination/helper-pagination.js +127 -44
  7. package/dist/esm/helper-pagination.entry.js +135 -41
  8. package/dist/esm/helper-pagination.js +4 -4
  9. package/dist/esm/{index-79ce7f1f.js → index-49bd7818.js} +203 -71
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/helper-pagination/helper-pagination.esm.js +1 -1
  12. package/dist/helper-pagination/p-645aa72c.entry.js +1 -0
  13. package/dist/helper-pagination/p-d28f6456.js +2 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/components/helper-pagination/helper-pagination.d.ts +10 -5
  17. package/dist/types/components.d.ts +10 -2
  18. package/package.json +1 -1
  19. package/dist/helper-pagination/p-a3272d7a.entry.js +0 -1
  20. package/dist/helper-pagination/p-ddd49f2d.js +0 -2
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'helper-pagination';
24
- const BUILD = /* helper-pagination */ { 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: true, 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: 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: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* helper-pagination */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: 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: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | 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";
@@ -349,7 +354,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
349
354
  }
350
355
  if (!appliedStyles.has(scopeId2)) {
351
356
  {
352
- styleElm = doc.createElement("style");
357
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
353
358
  styleElm.innerHTML = style;
354
359
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
355
360
  if (nonce != null) {
@@ -359,7 +364,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
359
364
  if (styleContainerNode.nodeName === "HEAD") {
360
365
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
361
366
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
362
- styleContainerNode.insertBefore(styleElm, referenceNode2);
367
+ styleContainerNode.insertBefore(
368
+ styleElm,
369
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
370
+ );
363
371
  } else if ("host" in styleContainerNode) {
364
372
  if (supportsConstructableStylesheets) {
365
373
  const stylesheet = new CSSStyleSheet();
@@ -377,7 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
377
385
  styleContainerNode.append(styleElm);
378
386
  }
379
387
  }
380
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
388
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
381
389
  styleContainerNode.insertBefore(styleElm, null);
382
390
  }
383
391
  }
@@ -402,23 +410,25 @@ var attachStyles = (hostRef) => {
402
410
  const scopeId2 = addStyle(
403
411
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
404
412
  cmpMeta);
405
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
413
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
406
414
  elm["s-sc"] = scopeId2;
407
415
  elm.classList.add(scopeId2 + "-h");
408
416
  }
409
417
  endAttachStyles();
410
418
  };
411
419
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
412
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
420
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
413
421
  if (oldValue !== newValue) {
414
422
  let isProp = isMemberInElement(elm, memberName);
415
423
  let ln = memberName.toLowerCase();
416
424
  if (memberName === "class") {
417
425
  const classList = elm.classList;
418
426
  const oldClasses = parseClassList(oldValue);
419
- const newClasses = parseClassList(newValue);
420
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
421
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
427
+ let newClasses = parseClassList(newValue);
428
+ {
429
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
430
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
431
+ }
422
432
  } else if (memberName === "ref") {
423
433
  if (newValue) {
424
434
  newValue(elm);
@@ -456,7 +466,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
456
466
  elm.setAttribute(memberName, n);
457
467
  }
458
468
  }
459
- } else {
469
+ } else if (elm[memberName] !== newValue) {
460
470
  elm[memberName] = newValue;
461
471
  }
462
472
  } catch (e) {
@@ -478,24 +488,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
478
488
  }
479
489
  };
480
490
  var parseClassListRegex = /\s/;
481
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
491
+ var parseClassList = (value) => {
492
+ if (typeof value === "object" && value && "baseVal" in value) {
493
+ value = value.baseVal;
494
+ }
495
+ if (!value || typeof value !== "string") {
496
+ return [];
497
+ }
498
+ return value.split(parseClassListRegex);
499
+ };
482
500
  var CAPTURE_EVENT_SUFFIX = "Capture";
483
501
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
484
502
 
485
503
  // src/runtime/vdom/update-element.ts
486
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
504
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
487
505
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
488
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
489
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
506
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
507
+ const newVnodeAttrs = newVnode.$attrs$ || {};
490
508
  {
491
509
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
492
510
  if (!(memberName in newVnodeAttrs)) {
493
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
511
+ setAccessor(
512
+ elm,
513
+ memberName,
514
+ oldVnodeAttrs[memberName],
515
+ void 0,
516
+ isSvgMode2,
517
+ newVnode.$flags$);
494
518
  }
495
519
  }
496
520
  }
497
521
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
498
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
522
+ setAccessor(
523
+ elm,
524
+ memberName,
525
+ oldVnodeAttrs[memberName],
526
+ newVnodeAttrs[memberName],
527
+ isSvgMode2,
528
+ newVnode.$flags$);
499
529
  }
500
530
  };
501
531
  function sortedAttrNames(attrNames) {
@@ -507,13 +537,10 @@ function sortedAttrNames(attrNames) {
507
537
  attrNames
508
538
  );
509
539
  }
510
-
511
- // src/runtime/vdom/vdom-render.ts
512
- var scopeId;
513
540
  var hostTagName;
514
541
  var useNativeShadowDom = false;
515
542
  var isSvgMode = false;
516
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
543
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
517
544
  const newVNode2 = newParentVNode.$children$[childIndex];
518
545
  let i2 = 0;
519
546
  let elm;
@@ -527,11 +554,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
527
554
  {
528
555
  updateElement(null, newVNode2, isSvgMode);
529
556
  }
530
- const rootNode = elm.getRootNode();
531
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
532
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
533
- elm.classList.add(elm["s-si"] = scopeId);
534
- }
535
557
  if (newVNode2.$children$) {
536
558
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
537
559
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -636,6 +658,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
636
658
  };
637
659
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
638
660
  if (leftVNode.$tag$ === rightVNode.$tag$) {
661
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
662
+ leftVNode.$key$ = rightVNode.$key$;
663
+ }
639
664
  return true;
640
665
  }
641
666
  return false;
@@ -675,8 +700,9 @@ var nullifyVNodeRefs = (vNode) => {
675
700
  }
676
701
  };
677
702
  var insertBefore = (parent, newNode, reference) => {
678
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
679
- return inserted;
703
+ {
704
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
705
+ }
680
706
  };
681
707
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
682
708
  const hostElm = hostRef.$hostElement$;
@@ -701,17 +727,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
701
727
  rootVnode.$flags$ |= 4 /* isHost */;
702
728
  hostRef.$vnode$ = rootVnode;
703
729
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
704
- {
705
- scopeId = hostElm["s-sc"];
706
- }
707
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
730
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
708
731
  patch(oldVNode, rootVnode, isInitialLoad);
709
732
  };
710
733
 
711
734
  // src/runtime/update-component.ts
712
735
  var attachToAncestor = (hostRef, ancestorComponent) => {
713
736
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
714
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
737
+ const index = ancestorComponent["s-p"].push(
738
+ new Promise(
739
+ (r) => hostRef.$onRenderResolve$ = () => {
740
+ ancestorComponent["s-p"].splice(index - 1, 1);
741
+ r();
742
+ }
743
+ )
744
+ );
715
745
  }
716
746
  };
717
747
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -737,7 +767,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
737
767
  }
738
768
  let maybePromise;
739
769
  {
740
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
770
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
741
771
  }
742
772
  endSchedule();
743
773
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -804,14 +834,14 @@ var postUpdateComponent = (hostRef) => {
804
834
  const endPostUpdate = createTime("postUpdate", tagName);
805
835
  const instance = hostRef.$lazyInstance$ ;
806
836
  const ancestorComponent = hostRef.$ancestorComponent$;
807
- {
808
- safeCall(instance, "componentDidRender");
809
- }
810
837
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
811
838
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
812
839
  {
813
840
  addHydratedFlag(elm);
814
841
  }
842
+ {
843
+ safeCall(instance, "componentDidLoad", void 0, elm);
844
+ }
815
845
  endPostUpdate();
816
846
  {
817
847
  hostRef.$onReadyResolve$(elm);
@@ -834,17 +864,14 @@ var postUpdateComponent = (hostRef) => {
834
864
  }
835
865
  };
836
866
  var appDidLoad = (who) => {
837
- {
838
- addHydratedFlag(doc.documentElement);
839
- }
840
867
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
841
868
  };
842
- var safeCall = (instance, method, arg) => {
869
+ var safeCall = (instance, method, arg, elm) => {
843
870
  if (instance && instance[method]) {
844
871
  try {
845
872
  return instance[method](arg);
846
873
  } catch (e) {
847
- consoleError(e);
874
+ consoleError(e, elm);
848
875
  }
849
876
  }
850
877
  return void 0;
@@ -863,6 +890,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
863
890
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
864
891
  );
865
892
  }
893
+ const elm = hostRef.$hostElement$ ;
866
894
  const oldVal = hostRef.$instanceValues$.get(propName);
867
895
  const flags = hostRef.$flags$;
868
896
  const instance = hostRef.$lazyInstance$ ;
@@ -872,6 +900,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
872
900
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
873
901
  hostRef.$instanceValues$.set(propName, newVal);
874
902
  if (instance) {
903
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
904
+ const watchMethods = cmpMeta.$watchers$[propName];
905
+ if (watchMethods) {
906
+ watchMethods.map((watchMethodName) => {
907
+ try {
908
+ instance[watchMethodName](newVal, oldVal, propName);
909
+ } catch (e) {
910
+ consoleError(e, elm);
911
+ }
912
+ });
913
+ }
914
+ }
875
915
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
876
916
  scheduleUpdate(hostRef, false);
877
917
  }
@@ -883,19 +923,75 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
883
923
  var proxyComponent = (Cstr, cmpMeta, flags) => {
884
924
  var _a, _b;
885
925
  const prototype = Cstr.prototype;
886
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
926
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
927
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
928
+ cmpMeta.$watchers$ = Cstr.watchers;
929
+ }
887
930
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
888
931
  members.map(([memberName, [memberFlags]]) => {
889
932
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
933
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
934
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
935
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
936
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
937
+ Object.defineProperty(prototype, memberName, {
938
+ get() {
939
+ {
940
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
941
+ return getValue(this, memberName);
942
+ }
943
+ const ref = getHostRef(this);
944
+ const instance = ref ? ref.$lazyInstance$ : prototype;
945
+ if (!instance) return;
946
+ return instance[memberName];
947
+ }
948
+ },
949
+ configurable: true,
950
+ enumerable: true
951
+ });
952
+ }
890
953
  Object.defineProperty(prototype, memberName, {
891
- get() {
892
- return getValue(this, memberName);
893
- },
894
954
  set(newValue) {
895
- setValue(this, memberName, newValue, cmpMeta);
896
- },
897
- configurable: true,
898
- enumerable: true
955
+ const ref = getHostRef(this);
956
+ if (origSetter) {
957
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
958
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
959
+ newValue = ref.$instanceValues$.get(memberName);
960
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
961
+ ref.$instanceValues$.set(memberName, currentValue);
962
+ }
963
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
964
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
965
+ setValue(this, memberName, newValue, cmpMeta);
966
+ return;
967
+ }
968
+ {
969
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
970
+ setValue(this, memberName, newValue, cmpMeta);
971
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
972
+ ref.$onReadyPromise$.then(() => {
973
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
974
+ ref.$lazyInstance$[memberName] = newValue;
975
+ }
976
+ });
977
+ }
978
+ return;
979
+ }
980
+ const setterSetVal = () => {
981
+ const currentValue = ref.$lazyInstance$[memberName];
982
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
983
+ ref.$instanceValues$.set(memberName, currentValue);
984
+ }
985
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
986
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
987
+ };
988
+ if (ref.$lazyInstance$) {
989
+ setterSetVal();
990
+ } else {
991
+ ref.$onReadyPromise$.then(() => setterSetVal());
992
+ }
993
+ }
994
+ }
899
995
  });
900
996
  }
901
997
  });
@@ -905,7 +1001,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
905
1001
  plt.jmp(() => {
906
1002
  var _a2;
907
1003
  const propName = attrNameToPropName.get(attrName);
908
- if (this.hasOwnProperty(propName)) {
1004
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
909
1005
  newValue = this[propName];
910
1006
  delete this[propName];
911
1007
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -925,7 +1021,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
925
1021
  }
926
1022
  return;
927
1023
  }
928
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1024
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1025
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1026
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1027
+ this[propName] = newValue;
1028
+ }
929
1029
  });
930
1030
  };
931
1031
  Cstr.observedAttributes = Array.from(
@@ -954,7 +1054,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
954
1054
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
955
1055
  const bundleId = cmpMeta.$lazyBundleId$;
956
1056
  if (bundleId) {
957
- const CstrImport = loadModule(cmpMeta);
1057
+ const CstrImport = loadModule(cmpMeta, hostRef);
958
1058
  if (CstrImport && "then" in CstrImport) {
959
1059
  const endLoad = uniqueTime();
960
1060
  Cstr = await CstrImport;
@@ -966,6 +1066,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
966
1066
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
967
1067
  }
968
1068
  if (!Cstr.isProxied) {
1069
+ {
1070
+ cmpMeta.$watchers$ = Cstr.watchers;
1071
+ }
969
1072
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
970
1073
  Cstr.isProxied = true;
971
1074
  }
@@ -976,11 +1079,14 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
976
1079
  try {
977
1080
  new Cstr(hostRef);
978
1081
  } catch (e) {
979
- consoleError(e);
1082
+ consoleError(e, elm);
980
1083
  }
981
1084
  {
982
1085
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
983
1086
  }
1087
+ {
1088
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1089
+ }
984
1090
  endNewInstance();
985
1091
  } else {
986
1092
  Cstr = elm.constructor;
@@ -1008,7 +1114,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1008
1114
  schedule();
1009
1115
  }
1010
1116
  };
1011
- var fireConnectedCallback = (instance) => {
1117
+ var fireConnectedCallback = (instance, elm) => {
1012
1118
  };
1013
1119
 
1014
1120
  // src/runtime/connected-callback.ts
@@ -1048,15 +1154,26 @@ var connectedCallback = (elm) => {
1048
1154
  endConnected();
1049
1155
  }
1050
1156
  };
1051
- var disconnectInstance = (instance) => {
1157
+ var disconnectInstance = (instance, elm) => {
1158
+ {
1159
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1160
+ }
1052
1161
  };
1053
1162
  var disconnectedCallback = async (elm) => {
1054
1163
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1055
1164
  const hostRef = getHostRef(elm);
1056
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1057
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1165
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1166
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1167
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1168
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1058
1169
  }
1059
1170
  }
1171
+ if (rootAppliedStyles.has(elm)) {
1172
+ rootAppliedStyles.delete(elm);
1173
+ }
1174
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1175
+ rootAppliedStyles.delete(elm.shadowRoot);
1176
+ }
1060
1177
  };
1061
1178
 
1062
1179
  // src/runtime/bootstrap-lazy.ts
@@ -1077,6 +1194,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1077
1194
  let hasSlotRelocation = false;
1078
1195
  lazyBundles.map((lazyBundle) => {
1079
1196
  lazyBundle[1].map((compactMeta) => {
1197
+ var _a2;
1080
1198
  const cmpMeta = {
1081
1199
  $flags$: compactMeta[0],
1082
1200
  $tagName$: compactMeta[1],
@@ -1092,6 +1210,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1092
1210
  {
1093
1211
  cmpMeta.$attrsToReflect$ = [];
1094
1212
  }
1213
+ {
1214
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1215
+ }
1095
1216
  const tagName = cmpMeta.$tagName$;
1096
1217
  const HostElement = class extends HTMLElement {
1097
1218
  // StencilLazyHost
@@ -1133,6 +1254,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1133
1254
  }
1134
1255
  disconnectedCallback() {
1135
1256
  plt.jmp(() => disconnectedCallback(this));
1257
+ plt.raf(() => {
1258
+ var _a3;
1259
+ const hostRef = getHostRef(this);
1260
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1261
+ if (i2 > -1) {
1262
+ deferredConnectedCallbacks.splice(i2, 1);
1263
+ }
1264
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1265
+ delete hostRef.$vnode$.$elm$;
1266
+ }
1267
+ });
1136
1268
  }
1137
1269
  componentOnReady() {
1138
1270
  return getHostRef(this).$onReadyPromise$;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-502d881b.js');
5
+ const index = require('./index-5d7ac0d5.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["helper-pagination.cjs",[[1,"helper-pagination",{"nextPage":[1537,"next-page"],"prevPage":[1537,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrlContent":[1537,"client-styling-url-content"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]]], options);
11
+ return index.bootstrapLazy([["helper-pagination.cjs",[[1,"helper-pagination",{"nextPage":[1537,"next-page"],"prevPage":[1537,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"mbSource":[1,"mb-source"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[1537,"client-styling-url"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],