@everymatrix/lottery-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 (33) hide show
  1. package/dist/cjs/{index-6e6ef6de.js → index-ddbadb0f.js} +168 -67
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{lottery-pagination-a3dc058a.js → lottery-pagination-038b9722.js} +51 -22
  5. package/dist/cjs/lottery-pagination.cjs.entry.js +2 -2
  6. package/dist/cjs/lottery-pagination.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +1 -1
  8. package/dist/collection/components/lottery-pagination/lottery-pagination.js +76 -21
  9. package/dist/esm/{index-d339423e.js → index-893d5ea1.js} +168 -67
  10. package/dist/esm/index.js +2 -2
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/{lottery-pagination-55f8c7a0.js → lottery-pagination-d8ef15e4.js} +51 -22
  13. package/dist/esm/lottery-pagination.entry.js +2 -2
  14. package/dist/esm/lottery-pagination.js +3 -3
  15. package/dist/lottery-pagination/index.esm.js +1 -1
  16. package/dist/lottery-pagination/lottery-pagination.esm.js +1 -1
  17. package/dist/lottery-pagination/p-5eeb537f.js +2 -0
  18. package/dist/lottery-pagination/p-6bb4c606.js +1 -0
  19. package/dist/lottery-pagination/p-716cfefa.entry.js +1 -0
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +2 -0
  22. package/package.json +1 -1
  23. package/dist/lottery-pagination/p-70ca4bf8.js +0 -1
  24. package/dist/lottery-pagination/p-fa51c61f.js +0 -2
  25. package/dist/lottery-pagination/p-fad681ff.entry.js +0 -1
  26. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +0 -2
  27. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +0 -2
  28. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/main.d.ts +0 -0
  29. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/preview.d.ts +0 -0
  30. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/index.d.ts +0 -0
  31. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  32. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  33. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/lottery-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 = 'lottery-pagination';
24
- const BUILD = /* lottery-pagination */ { 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: 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 = /* lottery-pagination */ { 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: 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, 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: false };
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) => {
@@ -738,11 +768,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
738
768
  let maybePromise;
739
769
  if (isInitialLoad) {
740
770
  {
741
- maybePromise = safeCall(instance, "componentWillLoad");
771
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
742
772
  }
743
773
  }
744
774
  {
745
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
775
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
746
776
  }
747
777
  endSchedule();
748
778
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -810,7 +840,7 @@ var postUpdateComponent = (hostRef) => {
810
840
  const instance = hostRef.$lazyInstance$ ;
811
841
  const ancestorComponent = hostRef.$ancestorComponent$;
812
842
  {
813
- safeCall(instance, "componentDidRender");
843
+ safeCall(instance, "componentDidRender", void 0, elm);
814
844
  }
815
845
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
816
846
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -839,17 +869,14 @@ var postUpdateComponent = (hostRef) => {
839
869
  }
840
870
  };
841
871
  var appDidLoad = (who) => {
842
- {
843
- addHydratedFlag(doc.documentElement);
844
- }
845
872
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
846
873
  };
847
- var safeCall = (instance, method, arg) => {
874
+ var safeCall = (instance, method, arg, elm) => {
848
875
  if (instance && instance[method]) {
849
876
  try {
850
877
  return instance[method](arg);
851
878
  } catch (e) {
852
- consoleError(e);
879
+ consoleError(e, elm);
853
880
  }
854
881
  }
855
882
  return void 0;
@@ -892,15 +919,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
892
919
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
893
920
  members.map(([memberName, [memberFlags]]) => {
894
921
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
922
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
923
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
924
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
925
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
926
+ Object.defineProperty(prototype, memberName, {
927
+ get() {
928
+ {
929
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
930
+ return getValue(this, memberName);
931
+ }
932
+ const ref = getHostRef(this);
933
+ const instance = ref ? ref.$lazyInstance$ : prototype;
934
+ if (!instance) return;
935
+ return instance[memberName];
936
+ }
937
+ },
938
+ configurable: true,
939
+ enumerable: true
940
+ });
941
+ }
895
942
  Object.defineProperty(prototype, memberName, {
896
- get() {
897
- return getValue(this, memberName);
898
- },
899
943
  set(newValue) {
900
- setValue(this, memberName, newValue, cmpMeta);
901
- },
902
- configurable: true,
903
- enumerable: true
944
+ const ref = getHostRef(this);
945
+ if (origSetter) {
946
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
947
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
948
+ newValue = ref.$instanceValues$.get(memberName);
949
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
950
+ ref.$instanceValues$.set(memberName, currentValue);
951
+ }
952
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
953
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
954
+ setValue(this, memberName, newValue, cmpMeta);
955
+ return;
956
+ }
957
+ {
958
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
959
+ setValue(this, memberName, newValue, cmpMeta);
960
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
961
+ ref.$onReadyPromise$.then(() => {
962
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
963
+ ref.$lazyInstance$[memberName] = newValue;
964
+ }
965
+ });
966
+ }
967
+ return;
968
+ }
969
+ const setterSetVal = () => {
970
+ const currentValue = ref.$lazyInstance$[memberName];
971
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
972
+ ref.$instanceValues$.set(memberName, currentValue);
973
+ }
974
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
975
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
976
+ };
977
+ if (ref.$lazyInstance$) {
978
+ setterSetVal();
979
+ } else {
980
+ ref.$onReadyPromise$.then(() => setterSetVal());
981
+ }
982
+ }
983
+ }
904
984
  });
905
985
  }
906
986
  });
@@ -910,7 +990,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
910
990
  plt.jmp(() => {
911
991
  var _a2;
912
992
  const propName = attrNameToPropName.get(attrName);
913
- if (this.hasOwnProperty(propName)) {
993
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
914
994
  newValue = this[propName];
915
995
  delete this[propName];
916
996
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -930,7 +1010,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
930
1010
  }
931
1011
  return;
932
1012
  }
933
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1013
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1014
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1015
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1016
+ this[propName] = newValue;
1017
+ }
934
1018
  });
935
1019
  };
936
1020
  Cstr.observedAttributes = Array.from(
@@ -959,7 +1043,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
959
1043
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
960
1044
  const bundleId = cmpMeta.$lazyBundleId$;
961
1045
  if (bundleId) {
962
- const CstrImport = loadModule(cmpMeta);
1046
+ const CstrImport = loadModule(cmpMeta, hostRef);
963
1047
  if (CstrImport && "then" in CstrImport) {
964
1048
  const endLoad = uniqueTime();
965
1049
  Cstr = await CstrImport;
@@ -981,7 +1065,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
981
1065
  try {
982
1066
  new Cstr(hostRef);
983
1067
  } catch (e) {
984
- consoleError(e);
1068
+ consoleError(e, elm);
985
1069
  }
986
1070
  {
987
1071
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1013,7 +1097,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1013
1097
  schedule();
1014
1098
  }
1015
1099
  };
1016
- var fireConnectedCallback = (instance) => {
1100
+ var fireConnectedCallback = (instance, elm) => {
1017
1101
  };
1018
1102
 
1019
1103
  // src/runtime/connected-callback.ts
@@ -1053,7 +1137,7 @@ var connectedCallback = (elm) => {
1053
1137
  endConnected();
1054
1138
  }
1055
1139
  };
1056
- var disconnectInstance = (instance) => {
1140
+ var disconnectInstance = (instance, elm) => {
1057
1141
  };
1058
1142
  var disconnectedCallback = async (elm) => {
1059
1143
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1062,6 +1146,12 @@ var disconnectedCallback = async (elm) => {
1062
1146
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1063
1147
  }
1064
1148
  }
1149
+ if (rootAppliedStyles.has(elm)) {
1150
+ rootAppliedStyles.delete(elm);
1151
+ }
1152
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1153
+ rootAppliedStyles.delete(elm.shadowRoot);
1154
+ }
1065
1155
  };
1066
1156
 
1067
1157
  // src/runtime/bootstrap-lazy.ts
@@ -1138,6 +1228,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1138
1228
  }
1139
1229
  disconnectedCallback() {
1140
1230
  plt.jmp(() => disconnectedCallback(this));
1231
+ plt.raf(() => {
1232
+ var _a3;
1233
+ const hostRef = getHostRef(this);
1234
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1235
+ if (i2 > -1) {
1236
+ deferredConnectedCallbacks.splice(i2, 1);
1237
+ }
1238
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1239
+ delete hostRef.$vnode$.$elm$;
1240
+ }
1241
+ });
1141
1242
  }
1142
1243
  componentOnReady() {
1143
1244
  return getHostRef(this).$onReadyPromise$;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotteryPagination = require('./lottery-pagination-a3dc058a.js');
6
- require('./index-6e6ef6de.js');
5
+ const lotteryPagination = require('./lottery-pagination-038b9722.js');
6
+ require('./index-ddbadb0f.js');
7
7
 
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6e6ef6de.js');
5
+ const index = require('./index-ddbadb0f.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-6e6ef6de.js');
3
+ const index = require('./index-ddbadb0f.js');
4
4
 
5
5
  /**
6
6
  * @name isMobile
@@ -73,8 +73,58 @@ const LotteryPagination = class {
73
73
  constructor(hostRef) {
74
74
  index.registerInstance(this, hostRef);
75
75
  this.hpPageChange = index.createEvent(this, "hpPageChange", 7);
76
+ /**
77
+ * Next page string value - determines if the next page is disabled or active
78
+ */
79
+ this.nextPage = false;
80
+ /**
81
+ * Previous page string value - determines if the previous page is disabled or active
82
+ */
83
+ this.prevPage = false;
84
+ /**
85
+ * The received offset
86
+ */
87
+ this.offset = 0;
88
+ /**
89
+ * The received limit for the number of pages
90
+ */
91
+ this.limit = 10;
92
+ /**
93
+ * The received total number of pages
94
+ */
95
+ this.total = 1;
96
+ /**
97
+ * Language
98
+ */
99
+ this.language = 'en';
100
+ /**
101
+ * Client custom styling via string
102
+ */
103
+ this.clientStyling = '';
104
+ /**
105
+ * Client custom styling via url content
106
+ */
107
+ this.clientStylingUrlContent = '';
108
+ this.isReset = false;
109
+ /**
110
+ * Component working variable for last page
111
+ */
112
+ this.lastPage = false;
113
+ /**
114
+ * Component working variable for prvious page
115
+ */
116
+ this.previousPage = false;
117
+ /**
118
+ * In component working variable for the array of pages
119
+ */
120
+ this.pagesArray = [];
121
+ /**
122
+ * In component working variable for last page
123
+ */
124
+ this.endInt = 0;
76
125
  this.userAgent = window.navigator.userAgent;
77
126
  this.currentPage = 1;
127
+ this.limitStylingAppends = false;
78
128
  /**
79
129
  * Navigation logic
80
130
  */
@@ -152,27 +202,6 @@ const LotteryPagination = class {
152
202
  this.stylingContainer.prepend(cssFile);
153
203
  }, 1);
154
204
  };
155
- this.nextPage = false;
156
- this.prevPage = false;
157
- this.offset = 0;
158
- this.limit = 10;
159
- this.total = 1;
160
- this.language = 'en';
161
- this.clientStyling = '';
162
- this.clientStylingUrlContent = '';
163
- this.arrowsActive = undefined;
164
- this.secondaryArrowsActive = undefined;
165
- this.numberedNavActive = undefined;
166
- this.isReset = false;
167
- this.translationUrl = undefined;
168
- this.offsetInt = undefined;
169
- this.lastPage = false;
170
- this.previousPage = false;
171
- this.limitInt = undefined;
172
- this.totalInt = undefined;
173
- this.pagesArray = [];
174
- this.endInt = 0;
175
- this.limitStylingAppends = false;
176
205
  }
177
206
  componentWillLoad() {
178
207
  if (this.translationUrl) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotteryPagination = require('./lottery-pagination-a3dc058a.js');
6
- require('./index-6e6ef6de.js');
5
+ const lotteryPagination = require('./lottery-pagination-038b9722.js');
6
+ require('./index-ddbadb0f.js');
7
7
 
8
8
 
9
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6e6ef6de.js');
5
+ const index = require('./index-ddbadb0f.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.26.0 | 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('lottery-pagination.cjs.js', document.baseURI).href));
@@ -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": [],