@maggioli-design-system/mds-progress 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 (68) hide show
  1. package/dist/cjs/{index-abfa4aa9.js → index-e0686900.js} +130 -91
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-progress.cjs.entry.js +2 -2
  4. package/dist/cjs/mds-progress.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-progress/mds-progress.css +173 -74
  10. package/dist/collection/dictionary/keyboard.js +84 -0
  11. package/dist/collection/type/keyboard.js +1 -0
  12. package/dist/components/mds-progress.js +1 -1
  13. package/dist/documentation.json +2 -2
  14. package/dist/esm/{index-a89959e6.js → index-bdcbc2fe.js} +130 -91
  15. package/dist/esm/loader.js +2 -2
  16. package/dist/esm/mds-progress.entry.js +2 -2
  17. package/dist/esm/mds-progress.js +3 -3
  18. package/dist/esm-es5/index-bdcbc2fe.js +1 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/mds-progress.entry.js +1 -1
  21. package/dist/esm-es5/mds-progress.js +1 -1
  22. package/dist/mds-progress/mds-progress.esm.js +1 -1
  23. package/dist/mds-progress/mds-progress.js +1 -1
  24. package/dist/mds-progress/p-1d5b5b51.system.js +1 -0
  25. package/dist/mds-progress/p-69cd397a.entry.js +1 -0
  26. package/dist/mds-progress/p-8c9db3a8.system.js +2 -0
  27. package/dist/mds-progress/p-cd904a06.system.entry.js +1 -0
  28. package/dist/mds-progress/p-e65c1ecc.js +2 -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 +3 -3
  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-progress/css/mds-progress-pref-animation.css +7 -14
  40. package/src/components/mds-progress/css/mds-progress-pref-contrast.css +8 -18
  41. package/src/components/mds-progress/css/mds-progress-pref-theme.css +32 -48
  42. package/src/components/mds-progress/css/mds-progress-variant.css +7 -16
  43. package/src/components/mds-progress/mds-progress.css +3 -3
  44. package/src/dictionary/keyboard.ts +87 -0
  45. package/src/fixtures/icons.json +18 -1
  46. package/src/meta/keyboard/keys.json +83 -0
  47. package/src/tailwind/components.css +11 -46
  48. package/src/tailwind/fouc.css +118 -0
  49. package/src/tailwind/index.css +4 -0
  50. package/src/type/keyboard.ts +93 -0
  51. package/www/build/mds-progress.esm.js +1 -1
  52. package/www/build/mds-progress.js +1 -1
  53. package/www/build/p-1d5b5b51.system.js +1 -0
  54. package/www/build/p-69cd397a.entry.js +1 -0
  55. package/www/build/p-8c9db3a8.system.js +2 -0
  56. package/www/build/p-cd904a06.system.entry.js +1 -0
  57. package/www/build/p-e65c1ecc.js +2 -0
  58. package/dist/esm-es5/index-a89959e6.js +0 -1
  59. package/dist/mds-progress/p-088b5b20.system.entry.js +0 -1
  60. package/dist/mds-progress/p-2b265ffa.system.js +0 -1
  61. package/dist/mds-progress/p-64876922.system.js +0 -2
  62. package/dist/mds-progress/p-8a9536f1.js +0 -2
  63. package/dist/mds-progress/p-d8baed2c.entry.js +0 -1
  64. package/www/build/p-088b5b20.system.entry.js +0 -1
  65. package/www/build/p-2b265ffa.system.js +0 -1
  66. package/www/build/p-64876922.system.js +0 -2
  67. package/www/build/p-8a9536f1.js +0 -2
  68. package/www/build/p-d8baed2c.entry.js +0 -1
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-progress';
24
- const BUILD = /* mds-progress */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: 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: false, propMutable: false, 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: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* mds-progress */ { 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: false, propMutable: false, 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: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: false, vdomXlink: false, watchCallback: true };
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,71 +418,72 @@ 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 === "style") {
425
- {
426
- for (const prop in oldValue) {
427
- if (!newValue || newValue[prop] == null) {
428
- if (prop.includes("-")) {
429
- elm.style.removeProperty(prop);
430
- } else {
431
- elm.style[prop] = "";
432
- }
433
- }
434
- }
435
- }
436
- for (const prop in newValue) {
437
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
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 === "style") {
435
+ {
436
+ for (const prop in oldValue) {
437
+ if (!newValue || newValue[prop] == null) {
438
438
  if (prop.includes("-")) {
439
- elm.style.setProperty(prop, newValue[prop]);
439
+ elm.style.removeProperty(prop);
440
440
  } else {
441
- elm.style[prop] = newValue[prop];
441
+ elm.style[prop] = "";
442
442
  }
443
443
  }
444
444
  }
445
- } else if (memberName === "key") ; else {
446
- const isComplex = isComplexType(newValue);
447
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
448
- try {
449
- if (!elm.tagName.includes("-")) {
450
- const n = newValue == null ? "" : newValue;
451
- if (memberName === "list") {
452
- isProp = false;
453
- } else if (oldValue == null || elm[memberName] != n) {
454
- if (typeof elm.__lookupSetter__(memberName) === "function") {
455
- elm[memberName] = n;
456
- } else {
457
- elm.setAttribute(memberName, n);
458
- }
459
- }
460
- } else if (elm[memberName] !== newValue) {
461
- elm[memberName] = newValue;
462
- }
463
- } catch (e) {
445
+ }
446
+ for (const prop in newValue) {
447
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
448
+ if (prop.includes("-")) {
449
+ elm.style.setProperty(prop, newValue[prop]);
450
+ } else {
451
+ elm.style[prop] = newValue[prop];
464
452
  }
465
453
  }
466
- if (newValue == null || newValue === false) {
467
- if (newValue !== false || elm.getAttribute(memberName) === "") {
468
- {
469
- elm.removeAttribute(memberName);
454
+ }
455
+ } else if (memberName === "key") ; else {
456
+ const isComplex = isComplexType(newValue);
457
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
458
+ try {
459
+ if (!elm.tagName.includes("-")) {
460
+ const n = newValue == null ? "" : newValue;
461
+ if (memberName === "list") {
462
+ isProp = false;
463
+ } else if (oldValue == null || elm[memberName] != n) {
464
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
465
+ elm[memberName] = n;
466
+ } else {
467
+ elm.setAttribute(memberName, n);
468
+ }
470
469
  }
470
+ } else if (elm[memberName] !== newValue) {
471
+ elm[memberName] = newValue;
471
472
  }
472
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
473
- newValue = newValue === true ? "" : newValue;
473
+ } catch (e) {
474
+ }
475
+ }
476
+ if (newValue == null || newValue === false) {
477
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
474
478
  {
475
- elm.setAttribute(memberName, newValue);
479
+ elm.removeAttribute(memberName);
476
480
  }
477
481
  }
482
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
483
+ newValue = newValue === true ? "" : newValue;
484
+ {
485
+ elm.setAttribute(memberName, newValue);
486
+ }
478
487
  }
479
488
  }
480
489
  };
@@ -535,7 +544,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
535
544
  let elm;
536
545
  let childNode;
537
546
  {
538
- elm = newVNode2.$elm$ = doc.createElement(
547
+ if (!win.document) {
548
+ throw new Error(
549
+ "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."
550
+ );
551
+ }
552
+ elm = newVNode2.$elm$ = win.document.createElement(
539
553
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
540
554
  );
541
555
  {
@@ -682,9 +696,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
682
696
  const newChildren = newVNode2.$children$;
683
697
  {
684
698
  {
685
- {
686
- updateElement(oldVNode, newVNode2, isSvgMode);
687
- }
699
+ updateElement(oldVNode, newVNode2, isSvgMode);
688
700
  }
689
701
  if (oldChildren !== null && newChildren !== null) {
690
702
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -726,7 +738,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
726
738
  rootVnode.$flags$ |= 4 /* isHost */;
727
739
  hostRef.$vnode$ = rootVnode;
728
740
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
729
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
741
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
730
742
  patch(oldVNode, rootVnode, isInitialLoad);
731
743
  };
732
744
 
@@ -766,10 +778,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
766
778
  }
767
779
  let maybePromise;
768
780
  if (isInitialLoad) {
769
- {
770
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
771
- }
781
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
782
+ } else {
783
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
772
784
  }
785
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
773
786
  endSchedule();
774
787
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
775
788
  };
@@ -835,14 +848,13 @@ var postUpdateComponent = (hostRef) => {
835
848
  const endPostUpdate = createTime("postUpdate", tagName);
836
849
  const instance = hostRef.$lazyInstance$ ;
837
850
  const ancestorComponent = hostRef.$ancestorComponent$;
851
+ safeCall(instance, "componentDidRender", void 0, elm);
838
852
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
839
853
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
840
854
  {
841
855
  addHydratedFlag(elm);
842
856
  }
843
- {
844
- safeCall(instance, "componentDidLoad", void 0, elm);
845
- }
857
+ safeCall(instance, "componentDidLoad", void 0, elm);
846
858
  endPostUpdate();
847
859
  {
848
860
  hostRef.$onReadyResolve$(elm);
@@ -851,6 +863,7 @@ var postUpdateComponent = (hostRef) => {
851
863
  }
852
864
  }
853
865
  } else {
866
+ safeCall(instance, "componentDidUpdate", void 0, elm);
854
867
  endPostUpdate();
855
868
  }
856
869
  {
@@ -865,9 +878,6 @@ var postUpdateComponent = (hostRef) => {
865
878
  }
866
879
  };
867
880
  var appDidLoad = (who) => {
868
- {
869
- addHydratedFlag(doc.documentElement);
870
- }
871
881
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
872
882
  };
873
883
  var safeCall = (instance, method, arg, elm) => {
@@ -891,7 +901,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
891
901
  const hostRef = getHostRef(ref);
892
902
  if (!hostRef) {
893
903
  throw new Error(
894
- `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).`
904
+ `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).`
895
905
  );
896
906
  }
897
907
  const elm = hostRef.$hostElement$ ;
@@ -917,6 +927,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
917
927
  }
918
928
  }
919
929
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
930
+ if (instance.componentShouldUpdate) {
931
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
932
+ return;
933
+ }
934
+ }
920
935
  scheduleUpdate(hostRef, false);
921
936
  }
922
937
  }
@@ -1056,7 +1071,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1056
1071
  let Cstr;
1057
1072
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1058
1073
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1059
- {
1074
+ const bundleId = cmpMeta.$lazyBundleId$;
1075
+ if (bundleId) {
1060
1076
  const CstrImport = loadModule(cmpMeta, hostRef);
1061
1077
  if (CstrImport && "then" in CstrImport) {
1062
1078
  const endLoad = uniqueTime();
@@ -1091,6 +1107,11 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1091
1107
  hostRef.$flags$ |= 128 /* isWatchReady */;
1092
1108
  }
1093
1109
  endNewInstance();
1110
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1111
+ } else {
1112
+ Cstr = elm.constructor;
1113
+ const cmpTag = elm.localName;
1114
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1094
1115
  }
1095
1116
  if (Cstr && Cstr.style) {
1096
1117
  let style;
@@ -1114,6 +1135,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1114
1135
  }
1115
1136
  };
1116
1137
  var fireConnectedCallback = (instance, elm) => {
1138
+ {
1139
+ safeCall(instance, "connectedCallback", void 0, elm);
1140
+ }
1117
1141
  };
1118
1142
 
1119
1143
  // src/runtime/connected-callback.ts
@@ -1146,20 +1170,27 @@ var connectedCallback = (elm) => {
1146
1170
  initializeComponent(elm, hostRef, cmpMeta);
1147
1171
  }
1148
1172
  } else {
1149
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1150
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1173
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1174
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1175
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1176
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1151
1177
  }
1152
1178
  }
1153
1179
  endConnected();
1154
1180
  }
1155
1181
  };
1156
1182
  var disconnectInstance = (instance, elm) => {
1183
+ {
1184
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1185
+ }
1157
1186
  };
1158
1187
  var disconnectedCallback = async (elm) => {
1159
1188
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1160
1189
  const hostRef = getHostRef(elm);
1161
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1162
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1190
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1191
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1192
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1193
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1163
1194
  }
1164
1195
  }
1165
1196
  if (rootAppliedStyles.has(elm)) {
@@ -1173,18 +1204,22 @@ var disconnectedCallback = async (elm) => {
1173
1204
  // src/runtime/bootstrap-lazy.ts
1174
1205
  var bootstrapLazy = (lazyBundles, options = {}) => {
1175
1206
  var _a;
1207
+ if (!win.document) {
1208
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
1209
+ return;
1210
+ }
1176
1211
  const endBootstrap = createTime();
1177
1212
  const cmpTags = [];
1178
1213
  const exclude = options.exclude || [];
1179
1214
  const customElements2 = win.customElements;
1180
- const head = doc.head;
1215
+ const head = win.document.head;
1181
1216
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1182
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
1217
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1183
1218
  const deferredConnectedCallbacks = [];
1184
1219
  let appLoadFallback;
1185
1220
  let isBootstrapping = true;
1186
1221
  Object.assign(plt, options);
1187
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1222
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1188
1223
  let hasSlotRelocation = false;
1189
1224
  lazyBundles.map((lazyBundle) => {
1190
1225
  lazyBundle[1].map((compactMeta) => {
@@ -1251,6 +1286,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1251
1286
  plt.raf(() => {
1252
1287
  var _a3;
1253
1288
  const hostRef = getHostRef(this);
1289
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1290
+ if (i2 > -1) {
1291
+ deferredConnectedCallbacks.splice(i2, 1);
1292
+ }
1254
1293
  if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1255
1294
  delete hostRef.$vnode$.$elm$;
1256
1295
  }
@@ -1279,7 +1318,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1279
1318
  }
1280
1319
  if (dataStyles.innerHTML.length) {
1281
1320
  dataStyles.setAttribute("data-styles", "");
1282
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1321
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1283
1322
  if (nonce != null) {
1284
1323
  dataStyles.setAttribute("nonce", nonce);
1285
1324
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-abfa4aa9.js');
5
+ const index = require('./index-e0686900.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-abfa4aa9.js');
5
+ const index = require('./index-e0686900.js');
6
6
 
7
7
  const removeAttributesIf = (element, attribute, valueCheck = 'true', cleanAttributes) => {
8
8
  if (ifAttribute(element, attribute, valueCheck)) {
@@ -21,7 +21,7 @@ const ifAttribute = (element, attribute, valueCheck = 'true') => {
21
21
  return false;
22
22
  };
23
23
 
24
- const mdsProgressCss = "@tailwind components;\n@tailwind utilities;\n\n/**\n * @prop --mds-progress-background: Sets the background-color of the component\n * @prop --mds-progress-color: Sets the background-color of the progress\n * @prop --mds-progress-duration: Sets the duration of the progress bar animation\n * @prop --mds-progress-radius: Sets the border-radius of the component\n * @prop --mds-progress-thickness: Sets the thickness of the progress bar\n */\n\n:host {\n\n --mds-progress-background: rgb(var(--tone-neutral-08));\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-duration: 750ms;\n --mds-progress-radius: 0.5rem;\n --mds-progress-thickness: 0.5rem;\n -webkit-transition-duration: 300ms;\n transition-duration: 300ms;\n -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n background-color: var(--mds-progress-background);\n border-radius: var(--mds-progress-radius);\n display: -ms-flexbox;\n display: flex;\n height: var(--mds-progress-thickness);\n min-width: var(--mds-progress-thickness);\n overflow: hidden;\n position: relative;\n -webkit-transition-property: background-color;\n transition-property: background-color;\n width: 100%;\n}\n\n:host( [direction=\"vertical\"] ) {\n -ms-flex-direction: column;\n flex-direction: column;\n height: unset;\n min-height: var(--mds-progress-thickness);\n width: var(--mds-progress-thickness);\n}\n\n.progress{\n\n -webkit-transition-duration: 500ms;\n\n transition-duration: 500ms;\n\n -webkit-transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);\n\n background-color: var(--mds-progress-color);\n border-radius: var(--mds-progress-radius);\n -webkit-transition-duration: var(--mds-progress-duration);\n transition-duration: var(--mds-progress-duration);\n -webkit-transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow;\n transition-property: background-color, flex-grow, -ms-flex-positive;\n}\n\n@tailwind utilities;\n\n:host( [variant=\"dark\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral-04));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n:host( [variant=\"light\"] ) {\n\n --mds-progress-color: rgb(var(--tone-neutral));\n --mds-progress-background: rgb(var(--tone-neutral-05));\n}\n\n:host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-06));\n --mds-progress-background: rgb(var(--status-error-09));\n}\n\n:host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-06));\n --mds-progress-background: rgb(var(--status-warning-09));\n}\n\n:host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-06));\n --mds-progress-background: rgb(var(--status-success-09));\n}\n\n:host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-06));\n --mds-progress-background: rgb(var(--status-info-09));\n}\n\n:host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-03));\n --mds-progress-background: rgb(var(--tone-neutral-08));\n}\n\n@tailwind utilities;\n\n@container style(--magma-pref-animation: reduce) {\n :host,\n .progress {\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 .progress {\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n }\n}\n\n@container style(--magma-pref-theme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n}\n\n@container style(--magma-pref-theme: system) {\n\n @media (prefers-color-scheme: dark) {\n :host,\n :host( [variant=\"primary\"] ) {\n\n --mds-progress-color: rgb(var(--variant-primary-05));\n --mds-progress-background: rgb(var(--tone-neutral-07));\n }\n\n :host( [variant=\"error\"] ) {\n\n --mds-progress-color: rgb(var(--status-error-04));\n --mds-progress-background: rgb(var(--status-error-07));\n }\n\n :host( [variant=\"warning\"] ) {\n\n --mds-progress-color: rgb(var(--status-warning-04));\n --mds-progress-background: rgb(var(--status-warning-07));\n }\n\n :host( [variant=\"success\"] ) {\n\n --mds-progress-color: rgb(var(--status-success-04));\n --mds-progress-background: rgb(var(--status-success-07));\n }\n\n :host( [variant=\"info\"] ) {\n\n --mds-progress-color: rgb(var(--status-info-04));\n --mds-progress-background: rgb(var(--status-info-07));\n }\n }\n}\n\n";
24
+ const mdsProgressCss = "@tailwind components; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--variant-primary-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;position:relative;-webkit-transition-property:background-color;transition-property:background-color;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-duration:500ms;transition-duration:500ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}:host([variant=\"dark\"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant=\"light\"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-03));--mds-progress-background:rgb(var(--tone-neutral-08))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .progress{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .progress{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark),:host-context(.pref-theme-dark):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}:host-context(.pref-theme-dark):host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-04));--mds-progress-background:rgb(var(--status-error-07))}:host-context(.pref-theme-dark):host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-04));--mds-progress-background:rgb(var(--status-warning-07))}:host-context(.pref-theme-dark):host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-04));--mds-progress-background:rgb(var(--status-success-07))}:host-context(.pref-theme-dark):host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-04));--mds-progress-background:rgb(var(--status-info-07))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system),:host-context(.pref-theme-system):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}:host-context(.pref-theme-system):host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-04));--mds-progress-background:rgb(var(--status-error-07))}:host-context(.pref-theme-system):host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-04));--mds-progress-background:rgb(var(--status-warning-07))}:host-context(.pref-theme-system):host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-04));--mds-progress-background:rgb(var(--status-success-07))}:host-context(.pref-theme-system):host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-04));--mds-progress-background:rgb(var(--status-info-07))}}:host-context(.pref-contrast-more),:host-context(.pref-contrast-more):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}@media (prefers-contrast: more){:host-context(.pref-contrast-system),:host-context(.pref-contrast-more):host([variant=\"primary\"]){--mds-progress-color:rgb(var(--variant-primary-05));--mds-progress-background:rgb(var(--tone-neutral-07))}}: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}";
25
25
  const MdsProgressStyle0 = mdsProgressCss;
26
26
 
27
27
  const MdsProgress = class {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-abfa4aa9.js');
5
+ const index = require('./index-e0686900.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-progress.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, };