@maggioli-design-system/mds-paginator-item 3.0.2 → 3.2.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 (64) hide show
  1. package/dist/cjs/{index-4b969f26.js → index-f1dcb949.js} +117 -77
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
  4. package/dist/cjs/mds-paginator-item.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/floating-controller.js +3 -3
  7. package/dist/collection/common/slot.js +10 -1
  8. package/dist/collection/common/string.js +30 -0
  9. package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +137 -36
  10. package/dist/collection/dictionary/keyboard.js +84 -0
  11. package/dist/collection/type/keyboard.js +1 -0
  12. package/dist/components/mds-paginator-item.js +1 -1
  13. package/dist/documentation.json +2 -2
  14. package/dist/esm/{index-fa18d67b.js → index-6b7cef50.js} +117 -77
  15. package/dist/esm/loader.js +2 -2
  16. package/dist/esm/mds-paginator-item.entry.js +2 -2
  17. package/dist/esm/mds-paginator-item.js +3 -3
  18. package/dist/esm-es5/index-6b7cef50.js +1 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
  21. package/dist/esm-es5/mds-paginator-item.js +1 -1
  22. package/dist/mds-paginator-item/mds-paginator-item.esm.js +1 -1
  23. package/dist/mds-paginator-item/mds-paginator-item.js +1 -1
  24. package/dist/mds-paginator-item/p-064170da.system.entry.js +1 -0
  25. package/dist/mds-paginator-item/p-2fca24e5.js +2 -0
  26. package/dist/mds-paginator-item/{p-a712c4b4.system.js → p-87174d3f.system.js} +1 -1
  27. package/dist/mds-paginator-item/p-9c9808f6.system.js +2 -0
  28. package/dist/mds-paginator-item/p-db02f4fe.entry.js +1 -0
  29. package/dist/stats.json +38 -33
  30. package/dist/types/common/slot.d.ts +2 -1
  31. package/dist/types/common/string.d.ts +4 -0
  32. package/dist/types/dictionary/keyboard.d.ts +2 -0
  33. package/dist/types/type/keyboard.d.ts +12 -0
  34. package/documentation.json +22 -2
  35. package/package.json +4 -4
  36. package/src/common/floating-controller.ts +6 -6
  37. package/src/common/slot.ts +11 -0
  38. package/src/common/string.ts +42 -0
  39. package/src/components/mds-paginator-item/css/mds-paginator-item-pref-animation.css +5 -12
  40. package/src/components/mds-paginator-item/css/mds-paginator-item-pref-theme.css +16 -27
  41. package/src/components/mds-paginator-item/mds-paginator-item.css +1 -2
  42. package/src/dictionary/keyboard.ts +87 -0
  43. package/src/fixtures/icons.json +18 -1
  44. package/src/meta/keyboard/keys.json +83 -0
  45. package/src/tailwind/components.css +11 -46
  46. package/src/tailwind/fouc.css +118 -0
  47. package/src/tailwind/index.css +4 -0
  48. package/src/type/keyboard.ts +93 -0
  49. package/www/build/mds-paginator-item.esm.js +1 -1
  50. package/www/build/mds-paginator-item.js +1 -1
  51. package/www/build/p-064170da.system.entry.js +1 -0
  52. package/www/build/p-2fca24e5.js +2 -0
  53. package/www/build/{p-a712c4b4.system.js → p-87174d3f.system.js} +1 -1
  54. package/www/build/p-9c9808f6.system.js +2 -0
  55. package/www/build/p-db02f4fe.entry.js +1 -0
  56. package/dist/esm-es5/index-fa18d67b.js +0 -1
  57. package/dist/mds-paginator-item/p-81ef4377.system.entry.js +0 -1
  58. package/dist/mds-paginator-item/p-90a28ad3.js +0 -2
  59. package/dist/mds-paginator-item/p-e85cd5bf.system.js +0 -2
  60. package/dist/mds-paginator-item/p-fa75e3f7.entry.js +0 -1
  61. package/www/build/p-81ef4377.system.entry.js +0 -1
  62. package/www/build/p-90a28ad3.js +0 -2
  63. package/www/build/p-e85cd5bf.system.js +0 -2
  64. package/www/build/p-fa75e3f7.entry.js +0 -1
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-paginator-item';
24
- const BUILD = /* mds-paginator-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, 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: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* mds-paginator-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, 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: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
@@ -33,10 +33,15 @@ var __export = (target, all) => {
33
33
  };
34
34
 
35
35
  // src/client/client-host-ref.ts
36
- var hostRefs = /* @__PURE__ */ new WeakMap();
37
- var getHostRef = (ref) => hostRefs.get(ref);
36
+ var getHostRef = (ref) => {
37
+ if (ref.__stencil__getHostRef) {
38
+ return ref.__stencil__getHostRef();
39
+ }
40
+ return void 0;
41
+ };
38
42
  var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
43
+ lazyInstance.__stencil__getHostRef = () => hostRef;
44
+ hostRef.$lazyInstance$ = lazyInstance;
40
45
  };
41
46
  var registerHost = (hostElement, cmpMeta) => {
42
47
  const hostRef = {
@@ -50,7 +55,8 @@ var registerHost = (hostElement, cmpMeta) => {
50
55
  hostElement["s-p"] = [];
51
56
  hostElement["s-rc"] = [];
52
57
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
58
+ const ref = hostRef;
59
+ hostElement.__stencil__getHostRef = () => ref;
54
60
  return ref;
55
61
  };
56
62
  var isMemberInElement = (elm, memberName) => memberName in elm;
@@ -107,7 +113,6 @@ var HYDRATED_STYLE_ID = "sty-id";
107
113
  var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
108
114
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
115
  var win = typeof window !== "undefined" ? window : {};
110
- var doc = win.document || { head: {} };
111
116
  var plt = {
112
117
  $flags$: 0,
113
118
  $resourcesUrl$: "",
@@ -167,9 +172,9 @@ var isComplexType = (o) => {
167
172
  };
168
173
 
169
174
  // src/utils/query-nonce-meta-tag-content.ts
170
- function queryNonceMetaTagContent(doc2) {
175
+ function queryNonceMetaTagContent(doc) {
171
176
  var _a, _b, _c;
172
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
177
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
173
178
  }
174
179
 
175
180
  // src/utils/result.ts
@@ -335,7 +340,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
335
340
  var _a;
336
341
  const scopeId2 = getScopeId(cmpMeta);
337
342
  const style = styles.get(scopeId2);
338
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
343
+ if (!win.document) {
344
+ return scopeId2;
345
+ }
346
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
339
347
  if (style) {
340
348
  if (typeof style === "string") {
341
349
  styleContainerNode = styleContainerNode.head || styleContainerNode;
@@ -346,9 +354,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
346
354
  }
347
355
  if (!appliedStyles.has(scopeId2)) {
348
356
  {
349
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
357
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
350
358
  styleElm.innerHTML = style;
351
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
359
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
352
360
  if (nonce != null) {
353
361
  styleElm.setAttribute("nonce", nonce);
354
362
  }
@@ -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,7 +410,7 @@ 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
  }
@@ -410,50 +418,51 @@ var attachStyles = (hostRef) => {
410
418
  };
411
419
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
412
420
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
413
- if (oldValue !== newValue) {
414
- let isProp = isMemberInElement(elm, memberName);
415
- memberName.toLowerCase();
416
- if (memberName === "class") {
417
- const classList = elm.classList;
418
- const oldClasses = parseClassList(oldValue);
419
- let newClasses = parseClassList(newValue);
420
- {
421
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
423
- }
424
- } else if (memberName === "key") ; else {
425
- const isComplex = isComplexType(newValue);
426
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
427
- try {
428
- if (!elm.tagName.includes("-")) {
429
- const n = newValue == null ? "" : newValue;
430
- if (memberName === "list") {
431
- isProp = false;
432
- } else if (oldValue == null || elm[memberName] != n) {
433
- if (typeof elm.__lookupSetter__(memberName) === "function") {
434
- elm[memberName] = n;
435
- } else {
436
- elm.setAttribute(memberName, n);
437
- }
421
+ if (oldValue === newValue) {
422
+ return;
423
+ }
424
+ let isProp = isMemberInElement(elm, memberName);
425
+ memberName.toLowerCase();
426
+ if (memberName === "class") {
427
+ const classList = elm.classList;
428
+ const oldClasses = parseClassList(oldValue);
429
+ let newClasses = parseClassList(newValue);
430
+ {
431
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
432
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
433
+ }
434
+ } else if (memberName === "key") ; else {
435
+ const isComplex = isComplexType(newValue);
436
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
437
+ try {
438
+ if (!elm.tagName.includes("-")) {
439
+ const n = newValue == null ? "" : newValue;
440
+ if (memberName === "list") {
441
+ isProp = false;
442
+ } else if (oldValue == null || elm[memberName] != n) {
443
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
444
+ elm[memberName] = n;
445
+ } else {
446
+ elm.setAttribute(memberName, n);
438
447
  }
439
- } else if (elm[memberName] !== newValue) {
440
- elm[memberName] = newValue;
441
448
  }
442
- } catch (e) {
449
+ } else if (elm[memberName] !== newValue) {
450
+ elm[memberName] = newValue;
443
451
  }
452
+ } catch (e) {
444
453
  }
445
- if (newValue == null || newValue === false) {
446
- if (newValue !== false || elm.getAttribute(memberName) === "") {
447
- {
448
- elm.removeAttribute(memberName);
449
- }
450
- }
451
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
452
- newValue = newValue === true ? "" : newValue;
454
+ }
455
+ if (newValue == null || newValue === false) {
456
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
453
457
  {
454
- elm.setAttribute(memberName, newValue);
458
+ elm.removeAttribute(memberName);
455
459
  }
456
460
  }
461
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
462
+ newValue = newValue === true ? "" : newValue;
463
+ {
464
+ elm.setAttribute(memberName, newValue);
465
+ }
457
466
  }
458
467
  }
459
468
  };
@@ -514,9 +523,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
514
523
  let elm;
515
524
  let childNode;
516
525
  if (newVNode2.$text$ !== null) {
517
- elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
526
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
518
527
  } else {
519
- elm = newVNode2.$elm$ = doc.createElement(
528
+ if (!win.document) {
529
+ throw new Error(
530
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
531
+ );
532
+ }
533
+ elm = newVNode2.$elm$ = win.document.createElement(
520
534
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
521
535
  );
522
536
  {
@@ -661,13 +675,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
661
675
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
662
676
  const oldChildren = oldVNode.$children$;
663
677
  const newChildren = newVNode2.$children$;
664
- const tag = newVNode2.$tag$;
665
678
  const text = newVNode2.$text$;
666
679
  if (text === null) {
667
680
  {
668
- if (tag === "slot" && !useNativeShadowDom) ; else {
669
- updateElement(oldVNode, newVNode2, isSvgMode);
670
- }
681
+ updateElement(oldVNode, newVNode2, isSvgMode);
671
682
  }
672
683
  if (oldChildren !== null && newChildren !== null) {
673
684
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -714,7 +725,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
714
725
  rootVnode.$flags$ |= 4 /* isHost */;
715
726
  hostRef.$vnode$ = rootVnode;
716
727
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
717
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
728
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
718
729
  patch(oldVNode, rootVnode, isInitialLoad);
719
730
  };
720
731
 
@@ -753,6 +764,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
753
764
  );
754
765
  }
755
766
  let maybePromise;
767
+ if (isInitialLoad) {
768
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
769
+ } else {
770
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
771
+ }
772
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
756
773
  endSchedule();
757
774
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
758
775
  };
@@ -818,14 +835,13 @@ var postUpdateComponent = (hostRef) => {
818
835
  const endPostUpdate = createTime("postUpdate", tagName);
819
836
  const instance = hostRef.$lazyInstance$ ;
820
837
  const ancestorComponent = hostRef.$ancestorComponent$;
838
+ safeCall(instance, "componentDidRender", void 0, elm);
821
839
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
822
840
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
823
841
  {
824
842
  addHydratedFlag(elm);
825
843
  }
826
- {
827
- safeCall(instance, "componentDidLoad", void 0, elm);
828
- }
844
+ safeCall(instance, "componentDidLoad", void 0, elm);
829
845
  endPostUpdate();
830
846
  {
831
847
  hostRef.$onReadyResolve$(elm);
@@ -834,9 +850,7 @@ var postUpdateComponent = (hostRef) => {
834
850
  }
835
851
  }
836
852
  } else {
837
- {
838
- safeCall(instance, "componentDidUpdate", void 0, elm);
839
- }
853
+ safeCall(instance, "componentDidUpdate", void 0, elm);
840
854
  endPostUpdate();
841
855
  }
842
856
  {
@@ -851,9 +865,6 @@ var postUpdateComponent = (hostRef) => {
851
865
  }
852
866
  };
853
867
  var appDidLoad = (who) => {
854
- {
855
- addHydratedFlag(doc.documentElement);
856
- }
857
868
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
858
869
  };
859
870
  var safeCall = (instance, method, arg, elm) => {
@@ -877,7 +888,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
877
888
  const hostRef = getHostRef(ref);
878
889
  if (!hostRef) {
879
890
  throw new Error(
880
- `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).`
891
+ `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/stenciljs/core/issues/5457).`
881
892
  );
882
893
  }
883
894
  const oldVal = hostRef.$instanceValues$.get(propName);
@@ -890,6 +901,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
890
901
  hostRef.$instanceValues$.set(propName, newVal);
891
902
  if (instance) {
892
903
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
904
+ if (instance.componentShouldUpdate) {
905
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
906
+ return;
907
+ }
908
+ }
893
909
  scheduleUpdate(hostRef, false);
894
910
  }
895
911
  }
@@ -1026,7 +1042,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1026
1042
  let Cstr;
1027
1043
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1028
1044
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1029
- {
1045
+ const bundleId = cmpMeta.$lazyBundleId$;
1046
+ if (bundleId) {
1030
1047
  const CstrImport = loadModule(cmpMeta, hostRef);
1031
1048
  if (CstrImport && "then" in CstrImport) {
1032
1049
  const endLoad = uniqueTime();
@@ -1055,6 +1072,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1055
1072
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1056
1073
  }
1057
1074
  endNewInstance();
1075
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1076
+ } else {
1077
+ Cstr = elm.constructor;
1078
+ const cmpTag = elm.localName;
1079
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1058
1080
  }
1059
1081
  if (Cstr && Cstr.style) {
1060
1082
  let style;
@@ -1078,6 +1100,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1078
1100
  }
1079
1101
  };
1080
1102
  var fireConnectedCallback = (instance, elm) => {
1103
+ {
1104
+ safeCall(instance, "connectedCallback", void 0, elm);
1105
+ }
1081
1106
  };
1082
1107
 
1083
1108
  // src/runtime/connected-callback.ts
@@ -1110,20 +1135,27 @@ var connectedCallback = (elm) => {
1110
1135
  initializeComponent(elm, hostRef, cmpMeta);
1111
1136
  }
1112
1137
  } else {
1113
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1114
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1138
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1139
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1140
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1141
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1115
1142
  }
1116
1143
  }
1117
1144
  endConnected();
1118
1145
  }
1119
1146
  };
1120
1147
  var disconnectInstance = (instance, elm) => {
1148
+ {
1149
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1150
+ }
1121
1151
  };
1122
1152
  var disconnectedCallback = async (elm) => {
1123
1153
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1124
1154
  const hostRef = getHostRef(elm);
1125
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1126
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1155
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1156
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1157
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1158
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1127
1159
  }
1128
1160
  }
1129
1161
  if (rootAppliedStyles.has(elm)) {
@@ -1137,18 +1169,22 @@ var disconnectedCallback = async (elm) => {
1137
1169
  // src/runtime/bootstrap-lazy.ts
1138
1170
  var bootstrapLazy = (lazyBundles, options = {}) => {
1139
1171
  var _a;
1172
+ if (!win.document) {
1173
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1174
+ return;
1175
+ }
1140
1176
  const endBootstrap = createTime();
1141
1177
  const cmpTags = [];
1142
1178
  const exclude = options.exclude || [];
1143
1179
  const customElements2 = win.customElements;
1144
- const head = doc.head;
1180
+ const head = win.document.head;
1145
1181
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1146
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
1182
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1147
1183
  const deferredConnectedCallbacks = [];
1148
1184
  let appLoadFallback;
1149
1185
  let isBootstrapping = true;
1150
1186
  Object.assign(plt, options);
1151
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1187
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1152
1188
  let hasSlotRelocation = false;
1153
1189
  lazyBundles.map((lazyBundle) => {
1154
1190
  lazyBundle[1].map((compactMeta) => {
@@ -1211,6 +1247,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1211
1247
  plt.raf(() => {
1212
1248
  var _a3;
1213
1249
  const hostRef = getHostRef(this);
1250
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1251
+ if (i2 > -1) {
1252
+ deferredConnectedCallbacks.splice(i2, 1);
1253
+ }
1214
1254
  if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1215
1255
  delete hostRef.$vnode$.$elm$;
1216
1256
  }
@@ -1239,7 +1279,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1239
1279
  }
1240
1280
  if (dataStyles.innerHTML.length) {
1241
1281
  dataStyles.setAttribute("data-styles", "");
1242
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1282
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1243
1283
  if (nonce != null) {
1244
1284
  dataStyles.setAttribute("nonce", nonce);
1245
1285
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4b969f26.js');
5
+ const index = require('./index-f1dcb949.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4b969f26.js');
5
+ const index = require('./index-f1dcb949.js');
6
6
 
7
7
  class KeyboardManager {
8
8
  constructor() {
@@ -50,7 +50,7 @@ class KeyboardManager {
50
50
  }
51
51
  }
52
52
 
53
- const mdsPaginatorItemCss = "@-webkit-keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n @keyframes focus-bounce {\n 0%, 75%, 100% {\n outline-offset: var(--magma-outline-focus-offset, 6px);\n }\n\n 50% {\n outline-offset: var(--magma-outline-blur-offset, 2px);\n }\n}\n /* included for focus effect */\n@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-paginator-item-background-disabled: Sets the background-color of the item when is disabled\n * @prop --mds-paginator-item-background-hover: Sets the background-color of the item when the mouse is over it\n * @prop --mds-paginator-item-background-selected: Sets the background-color of the item when is selected\n * @prop --mds-paginator-item-background: Sets the background-color of the pages area and the item\n * @prop --mds-paginator-item-color-disabled: Sets the color of the item when is disabled\n * @prop --mds-paginator-item-color-hover: Sets the text color of the item when the mouse is over it\n * @prop --mds-paginator-item-color-selected: Sets the text color of the item when is selected\n * @prop --mds-paginator-item-color: Sets the text color of the component\n * @prop --mds-paginator-item-radius: Sets the border-radius of the component\n * @prop --mds-paginator-item-shadow-disabled: Sets the box-shadow of the item when is disabled\n * @prop --mds-paginator-item-shadow-hover: Sets the box-shadow of the item when the mouse is over it\n * @prop --mds-paginator-item-shadow-selected: Sets the box-shadow of the item when is selected\n * @prop --mds-paginator-item-shadow: Sets the box-shadow of the component\n * @prop --mds-paginator-item-size: Sets the height and the min-width of the paginator item\n */\n\n:host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--variant-primary-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-radius: 200px;\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n --mds-paginator-item-size: 2.25rem;\n -webkit-animation-duration: var(--magma-outline-animation-duration, 1s);\n animation-duration: var(--magma-outline-animation-duration, 1s);\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n -webkit-animation-name: focus-bounce;\n animation-name: focus-bounce;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n outline: var(--magma-outline-blur);\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;\n transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;\n -webkit-transition-timing-function: ease-in-out;\n transition-timing-function: ease-in-out;\n}\n\n:host:focus-visible {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n -webkit-transition-duration: 200ms;\n transition-duration: 200ms;\n -webkit-transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n\n -ms-flex-align: center;\n\n align-items: center;\n background-color: var(--mds-paginator-item-background);\n border-radius: var(--mds-paginator-item-radius);\n -webkit-box-shadow: var(--mds-paginator-item-shadow);\n box-shadow: var(--mds-paginator-item-shadow);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: var(--mds-paginator-item-color);\n cursor: pointer;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n height: var(--mds-paginator-item-size);\n -ms-flex-pack: center;\n justify-content: center;\n min-width: var(--mds-paginator-item-size);\n -webkit-transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, color, outline, outline-offset, -webkit-box-shadow;\n transition-property: background-color, box-shadow, color, outline, outline-offset;\n transition-property: background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n:host(:focus-visible) {\n\n --magma-outline-blur: var(--magma-outline-focus);\n\n -webkit-animation-play-state: running;\n\n animation-play-state: running;\n }\n\n:host(:hover) {\n background-color: var(--mds-paginator-item-background-hover);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-hover);\n box-shadow: var(--mds-paginator-item-shadow-hover);\n color: var(--mds-paginator-item-color-hover);\n fill: var(--mds-paginator-item-color-hover);\n}\n\n:host([icon]) {\n padding: 0rem;\n}\n\n:host([selected]) {\n background-color: var(--mds-paginator-item-background-selected);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-selected);\n box-shadow: var(--mds-paginator-item-shadow-selected);\n color: var(--mds-paginator-item-color-selected);\n fill: var(--mds-paginator-item-color-selected);\n pointer-events: none;\n}\n\n:host([disabled]) {\n background-color: var(--mds-paginator-item-background-disabled);\n -webkit-box-shadow: var(--mds-paginator-item-shadow-disabled);\n box-shadow: var(--mds-paginator-item-shadow-disabled);\n color: var(--mds-paginator-item-color-disabled);\n fill: var(--mds-paginator-item-color-disabled);\n pointer-events: none;\n}\n\n.icon {\n padding-left: 0rem;\n padding-right: 0rem;\n\n fill: currentcolor;\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n\n@container style(--magma-pref-animation: system) {\n\n @media (prefers-reduced-motion) {\n :host {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--variant-primary-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host {\n\n --mds-paginator-item-background-disabled: rgb(var(--tone-neutral-09));\n --mds-paginator-item-background-hover: rgb(var(--tone-neutral-08));\n --mds-paginator-item-background-selected: rgb(var(--variant-primary-03));\n --mds-paginator-item-background: transparent;\n --mds-paginator-item-color-disabled: rgb(var(--tone-neutral-06));\n --mds-paginator-item-color-hover: rgb(var(--tone-neutral-02));\n --mds-paginator-item-color-selected: rgb(var(--tone-neutral));\n --mds-paginator-item-color: rgb(var(--tone-neutral-02));\n --mds-paginator-item-shadow-disabled: none;\n --mds-paginator-item-shadow-hover: none;\n --mds-paginator-item-shadow-selected: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);\n --mds-paginator-item-shadow: none;\n }\n }\n}\n\n";
53
+ const mdsPaginatorItemCss = "@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}:host:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}:host{padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0rem}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0rem;padding-right:0rem;fill:currentcolor}:host-context(.pref-animation-reduce){-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system){-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);--mds-paginator-item-shadow:none}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--variant-primary-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);--mds-paginator-item-shadow:none}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
54
54
  const MdsPaginatorItemStyle0 = mdsPaginatorItemCss;
55
55
 
56
56
  const MdsPaginatorItem = class {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4b969f26.js');
5
+ const index = require('./index-f1dcb949.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.27.2 | 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('mds-paginator-item.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.25.1",
7
+ "version": "4.27.2",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -143,12 +143,12 @@ export class FloatingController {
143
143
  }
144
144
  export class Backdrop {
145
145
  constructor(backdropId) {
146
- this.defaultBackdropId = 'mds-backdrop';
146
+ this.defaultBackdropId = 'magma-backdrop';
147
147
  this.backdropBackgroundVisible = 'rgba(var(--magma-backdrop-color, 0 0 0) / var(--magma-backdrop-opacity, 0.1))';
148
148
  this.backdropBackgroundHidden = 'rgba(var(--magma-backdrop-color, 0 0 0) / 0)';
149
149
  this.backdropId = backdropId !== null && backdropId !== void 0 ? backdropId : this.defaultBackdropId;
150
- this.cssBackdropZIndex = `var(--${this.backdropId}-z-index)`;
151
- this.cssBackdropDuration = `var(--${this.backdropId}-duration)`;
150
+ this.cssBackdropZIndex = `var(--${this.backdropId}-z-index, 4000)`;
151
+ this.cssBackdropDuration = `var(--${this.backdropId}-animation-duration, 300ms)`;
152
152
  }
153
153
  attachBackdrop() {
154
154
  if (!this.backdropEl) {
@@ -16,4 +16,13 @@ const hasSlottedNodes = (el, name) => {
16
16
  }
17
17
  return false;
18
18
  };
19
- export { hasSlottedElements, hasSlottedNodes, };
19
+ const hasSlotted = (el, name) => {
20
+ var _a;
21
+ const query = name ? `slot[name="${name}"]` : 'slot:not([name])';
22
+ const slot = (_a = el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(query);
23
+ if (slot) {
24
+ return slot.assignedNodes().length > 0 || slot.assignedElements().length > 0;
25
+ }
26
+ return false;
27
+ };
28
+ export { hasSlottedElements, hasSlottedNodes, hasSlotted, };
@@ -0,0 +1,30 @@
1
+ const levenshteinDistance = (a, b) => {
2
+ const dp = Array.from({ length: a.length + 1 }, (_, i) =>
3
+ // eslint-disable-next-line no-nested-ternary
4
+ Array.from({ length: b.length + 1 }, (_, j) => (i === 0 ? j : j === 0 ? i : 0)));
5
+ for (let i = 1; i <= a.length; i++) {
6
+ for (let j = 1; j <= b.length; j++) {
7
+ if (a[i - 1] === b[j - 1]) {
8
+ dp[i][j] = dp[i - 1][j - 1];
9
+ }
10
+ else {
11
+ dp[i][j] = 1 + Math.min(dp[i - 1][j], dp[i][j - 1], dp[i - 1][j - 1]);
12
+ }
13
+ }
14
+ }
15
+ return dp[a.length][b.length];
16
+ };
17
+ const closest = (input, validCodes) => {
18
+ let [closest] = validCodes;
19
+ let minDistance = levenshteinDistance(input, closest);
20
+ for (const code of validCodes) {
21
+ const distance = levenshteinDistance(input, code);
22
+ if (distance < minDistance) {
23
+ minDistance = distance;
24
+ closest = code;
25
+ }
26
+ }
27
+ return closest;
28
+ };
29
+ const firstLetterUppercase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
30
+ export { closest, firstLetterUppercase, levenshteinDistance, };