@everymatrix/lottery-pagination 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 (34) hide show
  1. package/dist/cjs/{index-ddbadb0f.js → index-94cc7cac.js} +67 -202
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{lottery-pagination-038b9722.js → lottery-pagination-e0a51394.js} +22 -51
  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 +2 -2
  8. package/dist/collection/components/lottery-pagination/lottery-pagination.js +21 -76
  9. package/dist/esm/{index-893d5ea1.js → index-af8909e6.js} +67 -202
  10. package/dist/esm/index.js +2 -2
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/{lottery-pagination-d8ef15e4.js → lottery-pagination-b349c62d.js} +22 -51
  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-19a4165f.js +1 -0
  18. package/dist/lottery-pagination/p-9fa953ac.entry.js +1 -0
  19. package/dist/lottery-pagination/p-f60ce5fa.js +2 -0
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +2 -0
  22. package/dist/types/stencil-public-runtime.d.ts +0 -6
  23. package/package.json +1 -1
  24. package/dist/lottery-pagination/p-5eeb537f.js +0 -2
  25. package/dist/lottery-pagination/p-6bb4c606.js +0 -1
  26. package/dist/lottery-pagination/p-716cfefa.entry.js +0 -1
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +0 -2
  28. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +0 -2
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/main.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/preview.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/index.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  33. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  34. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'lottery-pagination';
2
- 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 };
2
+ 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,12 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+
135
+ // src/utils/helpers.ts
136
+ var isDef = (v) => v != null;
142
137
  var isComplexType = (o) => {
143
138
  o = typeof o;
144
139
  return o === "object" || o === "function";
@@ -332,40 +327,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
332
327
  }
333
328
  if (!appliedStyles.has(scopeId2)) {
334
329
  {
335
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
330
+ styleElm = doc.createElement("style");
336
331
  styleElm.innerHTML = style;
337
332
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
338
333
  if (nonce != null) {
339
334
  styleElm.setAttribute("nonce", nonce);
340
335
  }
341
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
342
- if (styleContainerNode.nodeName === "HEAD") {
343
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
344
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
345
- styleContainerNode.insertBefore(
346
- styleElm,
347
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
348
- );
349
- } else if ("host" in styleContainerNode) {
350
- if (supportsConstructableStylesheets) {
351
- const stylesheet = new CSSStyleSheet();
352
- stylesheet.replaceSync(style);
353
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
354
- } else {
355
- const existingStyleContainer = styleContainerNode.querySelector("style");
356
- if (existingStyleContainer) {
357
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
358
- } else {
359
- styleContainerNode.prepend(styleElm);
360
- }
361
- }
362
- } else {
363
- styleContainerNode.append(styleElm);
364
- }
365
- }
366
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
367
- styleContainerNode.insertBefore(styleElm, null);
368
- }
336
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
369
337
  }
370
338
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
371
339
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -388,25 +356,23 @@ var attachStyles = (hostRef) => {
388
356
  const scopeId2 = addStyle(
389
357
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
390
358
  cmpMeta);
391
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
359
+ if (flags & 10 /* needsScopedEncapsulation */) {
392
360
  elm["s-sc"] = scopeId2;
393
361
  elm.classList.add(scopeId2 + "-h");
394
362
  }
395
363
  endAttachStyles();
396
364
  };
397
365
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
398
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
366
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
399
367
  if (oldValue !== newValue) {
400
368
  let isProp = isMemberInElement(elm, memberName);
401
369
  let ln = memberName.toLowerCase();
402
370
  if (memberName === "class") {
403
371
  const classList = elm.classList;
404
372
  const oldClasses = parseClassList(oldValue);
405
- let newClasses = parseClassList(newValue);
406
- {
407
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
409
- }
373
+ const newClasses = parseClassList(newValue);
374
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
375
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
410
376
  } else if (memberName === "ref") {
411
377
  if (newValue) {
412
378
  newValue(elm);
@@ -438,13 +404,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
438
404
  if (memberName === "list") {
439
405
  isProp = false;
440
406
  } else if (oldValue == null || elm[memberName] != n) {
441
- if (typeof elm.__lookupSetter__(memberName) === "function") {
442
- elm[memberName] = n;
443
- } else {
444
- elm.setAttribute(memberName, n);
445
- }
407
+ elm[memberName] = n;
446
408
  }
447
- } else if (elm[memberName] !== newValue) {
409
+ } else {
448
410
  elm[memberName] = newValue;
449
411
  }
450
412
  } catch (e) {
@@ -466,44 +428,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
466
428
  }
467
429
  };
468
430
  var parseClassListRegex = /\s/;
469
- var parseClassList = (value) => {
470
- if (typeof value === "object" && value && "baseVal" in value) {
471
- value = value.baseVal;
472
- }
473
- if (!value || typeof value !== "string") {
474
- return [];
475
- }
476
- return value.split(parseClassListRegex);
477
- };
431
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
478
432
  var CAPTURE_EVENT_SUFFIX = "Capture";
479
433
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
480
434
 
481
435
  // src/runtime/vdom/update-element.ts
482
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
436
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
483
437
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
484
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
485
- const newVnodeAttrs = newVnode.$attrs$ || {};
438
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
439
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
486
440
  {
487
441
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
488
442
  if (!(memberName in newVnodeAttrs)) {
489
- setAccessor(
490
- elm,
491
- memberName,
492
- oldVnodeAttrs[memberName],
493
- void 0,
494
- isSvgMode2,
495
- newVnode.$flags$);
443
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
496
444
  }
497
445
  }
498
446
  }
499
447
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
500
- setAccessor(
501
- elm,
502
- memberName,
503
- oldVnodeAttrs[memberName],
504
- newVnodeAttrs[memberName],
505
- isSvgMode2,
506
- newVnode.$flags$);
448
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
507
449
  }
508
450
  };
509
451
  function sortedAttrNames(attrNames) {
@@ -515,10 +457,13 @@ function sortedAttrNames(attrNames) {
515
457
  attrNames
516
458
  );
517
459
  }
460
+
461
+ // src/runtime/vdom/vdom-render.ts
462
+ var scopeId;
518
463
  var hostTagName;
519
464
  var useNativeShadowDom = false;
520
465
  var isSvgMode = false;
521
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
466
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
522
467
  const newVNode2 = newParentVNode.$children$[childIndex];
523
468
  let i2 = 0;
524
469
  let elm;
@@ -532,6 +477,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
532
477
  {
533
478
  updateElement(null, newVNode2, isSvgMode);
534
479
  }
480
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
481
+ elm.classList.add(elm["s-si"] = scopeId);
482
+ }
535
483
  if (newVNode2.$children$) {
536
484
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
537
485
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -636,9 +584,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
636
584
  };
637
585
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
638
586
  if (leftVNode.$tag$ === rightVNode.$tag$) {
639
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
640
- leftVNode.$key$ = rightVNode.$key$;
641
- }
642
587
  return true;
643
588
  }
644
589
  return false;
@@ -661,10 +606,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
661
606
  elm.textContent = "";
662
607
  }
663
608
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
664
- } else if (
665
- // don't do this on initial render as it can cause non-hydrated content to be removed
666
- !isInitialRender && BUILD.updatable && oldChildren !== null
667
- ) {
609
+ } else if (oldChildren !== null) {
668
610
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
669
611
  }
670
612
  } else if (oldVNode.$text$ !== text) {
@@ -678,9 +620,8 @@ var nullifyVNodeRefs = (vNode) => {
678
620
  }
679
621
  };
680
622
  var insertBefore = (parent, newNode, reference) => {
681
- {
682
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
683
- }
623
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
624
+ return inserted;
684
625
  };
685
626
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
686
627
  const hostElm = hostRef.$hostElement$;
@@ -705,21 +646,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
705
646
  rootVnode.$flags$ |= 4 /* isHost */;
706
647
  hostRef.$vnode$ = rootVnode;
707
648
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
708
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
649
+ {
650
+ scopeId = hostElm["s-sc"];
651
+ }
652
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
709
653
  patch(oldVNode, rootVnode, isInitialLoad);
710
654
  };
711
655
 
712
656
  // src/runtime/update-component.ts
713
657
  var attachToAncestor = (hostRef, ancestorComponent) => {
714
658
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
715
- const index = ancestorComponent["s-p"].push(
716
- new Promise(
717
- (r) => hostRef.$onRenderResolve$ = () => {
718
- ancestorComponent["s-p"].splice(index - 1, 1);
719
- r();
720
- }
721
- )
722
- );
659
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
723
660
  }
724
661
  };
725
662
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -746,11 +683,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
746
683
  let maybePromise;
747
684
  if (isInitialLoad) {
748
685
  {
749
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
686
+ maybePromise = safeCall(instance, "componentWillLoad");
750
687
  }
751
688
  }
752
689
  {
753
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
690
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
754
691
  }
755
692
  endSchedule();
756
693
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -818,7 +755,7 @@ var postUpdateComponent = (hostRef) => {
818
755
  const instance = hostRef.$lazyInstance$ ;
819
756
  const ancestorComponent = hostRef.$ancestorComponent$;
820
757
  {
821
- safeCall(instance, "componentDidRender", void 0, elm);
758
+ safeCall(instance, "componentDidRender");
822
759
  }
823
760
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
824
761
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -847,14 +784,17 @@ var postUpdateComponent = (hostRef) => {
847
784
  }
848
785
  };
849
786
  var appDidLoad = (who) => {
787
+ {
788
+ addHydratedFlag(doc.documentElement);
789
+ }
850
790
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
851
791
  };
852
- var safeCall = (instance, method, arg, elm) => {
792
+ var safeCall = (instance, method, arg) => {
853
793
  if (instance && instance[method]) {
854
794
  try {
855
795
  return instance[method](arg);
856
796
  } catch (e) {
857
- consoleError(e, elm);
797
+ consoleError(e);
858
798
  }
859
799
  }
860
800
  return void 0;
@@ -897,68 +837,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
897
837
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
898
838
  members.map(([memberName, [memberFlags]]) => {
899
839
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
900
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
901
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
902
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
903
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
904
- Object.defineProperty(prototype, memberName, {
905
- get() {
906
- {
907
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
908
- return getValue(this, memberName);
909
- }
910
- const ref = getHostRef(this);
911
- const instance = ref ? ref.$lazyInstance$ : prototype;
912
- if (!instance) return;
913
- return instance[memberName];
914
- }
915
- },
916
- configurable: true,
917
- enumerable: true
918
- });
919
- }
920
840
  Object.defineProperty(prototype, memberName, {
841
+ get() {
842
+ return getValue(this, memberName);
843
+ },
921
844
  set(newValue) {
922
- const ref = getHostRef(this);
923
- if (origSetter) {
924
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
925
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
926
- newValue = ref.$instanceValues$.get(memberName);
927
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
928
- ref.$instanceValues$.set(memberName, currentValue);
929
- }
930
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
931
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
932
- setValue(this, memberName, newValue, cmpMeta);
933
- return;
934
- }
935
- {
936
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
937
- setValue(this, memberName, newValue, cmpMeta);
938
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
939
- ref.$onReadyPromise$.then(() => {
940
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
941
- ref.$lazyInstance$[memberName] = newValue;
942
- }
943
- });
944
- }
945
- return;
946
- }
947
- const setterSetVal = () => {
948
- const currentValue = ref.$lazyInstance$[memberName];
949
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
950
- ref.$instanceValues$.set(memberName, currentValue);
951
- }
952
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
953
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
954
- };
955
- if (ref.$lazyInstance$) {
956
- setterSetVal();
957
- } else {
958
- ref.$onReadyPromise$.then(() => setterSetVal());
959
- }
960
- }
961
- }
845
+ setValue(this, memberName, newValue, cmpMeta);
846
+ },
847
+ configurable: true,
848
+ enumerable: true
962
849
  });
963
850
  }
964
851
  });
@@ -968,11 +855,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
968
855
  plt.jmp(() => {
969
856
  var _a2;
970
857
  const propName = attrNameToPropName.get(attrName);
971
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
858
+ if (this.hasOwnProperty(propName)) {
972
859
  newValue = this[propName];
973
860
  delete this[propName];
974
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
975
- this[propName] == newValue) {
861
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
976
862
  return;
977
863
  } else if (propName == null) {
978
864
  const hostRef = getHostRef(this);
@@ -988,11 +874,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
988
874
  }
989
875
  return;
990
876
  }
991
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
992
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
993
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
994
- this[propName] = newValue;
995
- }
877
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
996
878
  });
997
879
  };
998
880
  Cstr.observedAttributes = Array.from(
@@ -1021,7 +903,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1021
903
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1022
904
  const bundleId = cmpMeta.$lazyBundleId$;
1023
905
  if (bundleId) {
1024
- const CstrImport = loadModule(cmpMeta, hostRef);
906
+ const CstrImport = loadModule(cmpMeta);
1025
907
  if (CstrImport && "then" in CstrImport) {
1026
908
  const endLoad = uniqueTime();
1027
909
  Cstr = await CstrImport;
@@ -1043,7 +925,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1043
925
  try {
1044
926
  new Cstr(hostRef);
1045
927
  } catch (e) {
1046
- consoleError(e, elm);
928
+ consoleError(e);
1047
929
  }
1048
930
  {
1049
931
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1075,7 +957,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1075
957
  schedule();
1076
958
  }
1077
959
  };
1078
- var fireConnectedCallback = (instance, elm) => {
960
+ var fireConnectedCallback = (instance) => {
1079
961
  };
1080
962
 
1081
963
  // src/runtime/connected-callback.ts
@@ -1115,7 +997,7 @@ var connectedCallback = (elm) => {
1115
997
  endConnected();
1116
998
  }
1117
999
  };
1118
- var disconnectInstance = (instance, elm) => {
1000
+ var disconnectInstance = (instance) => {
1119
1001
  };
1120
1002
  var disconnectedCallback = async (elm) => {
1121
1003
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1124,12 +1006,6 @@ var disconnectedCallback = async (elm) => {
1124
1006
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1125
1007
  }
1126
1008
  }
1127
- if (rootAppliedStyles.has(elm)) {
1128
- rootAppliedStyles.delete(elm);
1129
- }
1130
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1131
- rootAppliedStyles.delete(elm.shadowRoot);
1132
- }
1133
1009
  };
1134
1010
 
1135
1011
  // src/runtime/bootstrap-lazy.ts
@@ -1206,17 +1082,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1206
1082
  }
1207
1083
  disconnectedCallback() {
1208
1084
  plt.jmp(() => disconnectedCallback(this));
1209
- plt.raf(() => {
1210
- var _a3;
1211
- const hostRef = getHostRef(this);
1212
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1213
- if (i2 > -1) {
1214
- deferredConnectedCallbacks.splice(i2, 1);
1215
- }
1216
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1217
- delete hostRef.$vnode$.$elm$;
1218
- }
1219
- });
1220
1085
  }
1221
1086
  componentOnReady() {
1222
1087
  return getHostRef(this).$onReadyPromise$;
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { L as LotteryPagination } from './lottery-pagination-d8ef15e4.js';
2
- import './index-893d5ea1.js';
1
+ export { L as LotteryPagination } from './lottery-pagination-b349c62d.js';
2
+ import './index-af8909e6.js';
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-893d5ea1.js';
2
- export { s as setNonce } from './index-893d5ea1.js';
1
+ import { b as bootstrapLazy } from './index-af8909e6.js';
2
+ export { s as setNonce } from './index-af8909e6.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-893d5ea1.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-af8909e6.js';
2
2
 
3
3
  /**
4
4
  * @name isMobile
@@ -71,58 +71,8 @@ const LotteryPagination = class {
71
71
  constructor(hostRef) {
72
72
  registerInstance(this, hostRef);
73
73
  this.hpPageChange = createEvent(this, "hpPageChange", 7);
74
- /**
75
- * Next page string value - determines if the next page is disabled or active
76
- */
77
- this.nextPage = false;
78
- /**
79
- * Previous page string value - determines if the previous page is disabled or active
80
- */
81
- this.prevPage = false;
82
- /**
83
- * The received offset
84
- */
85
- this.offset = 0;
86
- /**
87
- * The received limit for the number of pages
88
- */
89
- this.limit = 10;
90
- /**
91
- * The received total number of pages
92
- */
93
- this.total = 1;
94
- /**
95
- * Language
96
- */
97
- this.language = 'en';
98
- /**
99
- * Client custom styling via string
100
- */
101
- this.clientStyling = '';
102
- /**
103
- * Client custom styling via url content
104
- */
105
- this.clientStylingUrlContent = '';
106
- this.isReset = false;
107
- /**
108
- * Component working variable for last page
109
- */
110
- this.lastPage = false;
111
- /**
112
- * Component working variable for prvious page
113
- */
114
- this.previousPage = false;
115
- /**
116
- * In component working variable for the array of pages
117
- */
118
- this.pagesArray = [];
119
- /**
120
- * In component working variable for last page
121
- */
122
- this.endInt = 0;
123
74
  this.userAgent = window.navigator.userAgent;
124
75
  this.currentPage = 1;
125
- this.limitStylingAppends = false;
126
76
  /**
127
77
  * Navigation logic
128
78
  */
@@ -200,6 +150,27 @@ const LotteryPagination = class {
200
150
  this.stylingContainer.prepend(cssFile);
201
151
  }, 1);
202
152
  };
153
+ this.nextPage = false;
154
+ this.prevPage = false;
155
+ this.offset = 0;
156
+ this.limit = 10;
157
+ this.total = 1;
158
+ this.language = 'en';
159
+ this.clientStyling = '';
160
+ this.clientStylingUrlContent = '';
161
+ this.arrowsActive = undefined;
162
+ this.secondaryArrowsActive = undefined;
163
+ this.numberedNavActive = undefined;
164
+ this.isReset = false;
165
+ this.translationUrl = undefined;
166
+ this.offsetInt = undefined;
167
+ this.lastPage = false;
168
+ this.previousPage = false;
169
+ this.limitInt = undefined;
170
+ this.totalInt = undefined;
171
+ this.pagesArray = [];
172
+ this.endInt = 0;
173
+ this.limitStylingAppends = false;
203
174
  }
204
175
  componentWillLoad() {
205
176
  if (this.translationUrl) {
@@ -1,2 +1,2 @@
1
- export { L as lottery_pagination } from './lottery-pagination-d8ef15e4.js';
2
- import './index-893d5ea1.js';
1
+ export { L as lottery_pagination } from './lottery-pagination-b349c62d.js';
2
+ import './index-af8909e6.js';
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-893d5ea1.js';
2
- export { s as setNonce } from './index-893d5ea1.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-af8909e6.js';
2
+ export { s as setNonce } from './index-af8909e6.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1 +1 @@
1
- export{L as LotteryPagination}from"./p-6bb4c606.js";import"./p-5eeb537f.js";
1
+ export{L as LotteryPagination}from"./p-19a4165f.js";import"./p-f60ce5fa.js";
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-5eeb537f.js";export{s as setNonce}from"./p-5eeb537f.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-716cfefa",[[1,"lottery-pagination",{nextPage:[1540,"next-page"],prevPage:[1540,"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"],isReset:[1540,"is-reset"],translationUrl:[520,"translation-url"],offsetInt:[32],lastPage:[32],previousPage:[32],limitInt:[32],totalInt:[32],pagesArray:[32],endInt:[32],limitStylingAppends:[32]}]]]],t))));
1
+ import{p as t,b as e}from"./p-f60ce5fa.js";export{s as setNonce}from"./p-f60ce5fa.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-9fa953ac",[[1,"lottery-pagination",{nextPage:[1540,"next-page"],prevPage:[1540,"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"],isReset:[1540,"is-reset"],translationUrl:[520,"translation-url"],offsetInt:[32],lastPage:[32],previousPage:[32],limitInt:[32],totalInt:[32],pagesArray:[32],endInt:[32],limitStylingAppends:[32]}]]]],t))));