@maggioli-design-system/mds-paginator 4.0.1 → 4.0.2

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 (73) hide show
  1. package/dist/cjs/{index-30bc2eba.js → index-463b21cc.js} +160 -65
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-paginator.cjs.entry.js +9 -3
  4. package/dist/cjs/mds-paginator.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/floating-controller.js +180 -0
  7. package/dist/collection/common/slot.js +19 -0
  8. package/dist/collection/components/mds-paginator/mds-paginator.js +12 -2
  9. package/dist/collection/dictionary/animation.js +5 -0
  10. package/dist/collection/dictionary/file-extensions.js +6 -59
  11. package/dist/collection/dictionary/tree.js +13 -0
  12. package/dist/collection/fixtures/filenames.js +62 -1
  13. package/dist/collection/type/animation.js +1 -0
  14. package/dist/collection/type/tree.js +1 -0
  15. package/dist/collection/type/variant-file-format.js +5 -0
  16. package/dist/components/mds-paginator.js +8 -2
  17. package/dist/documentation.d.ts +8 -0
  18. package/dist/documentation.json +8 -4
  19. package/dist/esm/{index-bb799122.js → index-f3d0e7ab.js} +160 -65
  20. package/dist/esm/loader.js +2 -2
  21. package/dist/esm/mds-paginator.entry.js +9 -3
  22. package/dist/esm/mds-paginator.js +3 -3
  23. package/dist/esm-es5/index-f3d0e7ab.js +1 -0
  24. package/dist/esm-es5/loader.js +1 -1
  25. package/dist/esm-es5/mds-paginator.entry.js +1 -1
  26. package/dist/esm-es5/mds-paginator.js +1 -1
  27. package/dist/mds-paginator/mds-paginator.esm.js +1 -1
  28. package/dist/mds-paginator/mds-paginator.js +1 -1
  29. package/dist/mds-paginator/{p-bcb4edeb.system.entry.js → p-1a397fd4.system.entry.js} +1 -1
  30. package/dist/mds-paginator/p-4399f910.system.js +2 -0
  31. package/dist/mds-paginator/p-d5ae5457.js +2 -0
  32. package/dist/mds-paginator/{p-e01b6aef.entry.js → p-dc0daac5.entry.js} +1 -1
  33. package/dist/mds-paginator/{p-ad4d8236.system.js → p-e9734aa5.system.js} +1 -1
  34. package/dist/stats.json +60 -36
  35. package/dist/types/common/floating-controller.d.ts +46 -0
  36. package/dist/types/common/slot.d.ts +3 -0
  37. package/dist/types/dictionary/animation.d.ts +2 -0
  38. package/dist/types/dictionary/tree.d.ts +4 -0
  39. package/dist/types/fixtures/filenames.d.ts +62 -1
  40. package/dist/types/type/animation.d.ts +1 -0
  41. package/dist/types/type/file-types.d.ts +1 -1
  42. package/dist/types/type/tree.d.ts +3 -0
  43. package/dist/types/type/variant-file-format.d.ts +1 -1
  44. package/documentation.json +49 -15
  45. package/package.json +4 -4
  46. package/src/common/floating-controller.ts +263 -0
  47. package/src/common/slot.ts +24 -0
  48. package/src/dictionary/animation.ts +8 -0
  49. package/src/dictionary/file-extensions.ts +6 -60
  50. package/src/dictionary/tree.ts +21 -0
  51. package/src/fixtures/filenames.ts +63 -0
  52. package/src/fixtures/icons.json +21 -0
  53. package/src/fixtures/iconsauce.json +6 -0
  54. package/src/meta/file-format/locale.el.json +26 -21
  55. package/src/meta/file-format/locale.en.json +26 -21
  56. package/src/meta/file-format/locale.es.json +26 -21
  57. package/src/meta/file-format/locale.it.json +26 -21
  58. package/src/type/animation.ts +3 -0
  59. package/src/type/file-types.ts +6 -0
  60. package/src/type/tree.ts +12 -0
  61. package/src/type/variant-file-format.ts +6 -0
  62. package/www/build/mds-paginator.esm.js +1 -1
  63. package/www/build/mds-paginator.js +1 -1
  64. package/www/build/{p-bcb4edeb.system.entry.js → p-1a397fd4.system.entry.js} +1 -1
  65. package/www/build/p-4399f910.system.js +2 -0
  66. package/www/build/p-d5ae5457.js +2 -0
  67. package/www/build/{p-e01b6aef.entry.js → p-dc0daac5.entry.js} +1 -1
  68. package/www/build/{p-ad4d8236.system.js → p-e9734aa5.system.js} +1 -1
  69. package/dist/esm-es5/index-bb799122.js +0 -1
  70. package/dist/mds-paginator/p-04d97497.system.js +0 -2
  71. package/dist/mds-paginator/p-76c74f59.js +0 -2
  72. package/www/build/p-04d97497.system.js +0 -2
  73. package/www/build/p-76c74f59.js +0 -2
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-paginator';
24
- const BUILD = /* mds-paginator */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: 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, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: true, propString: false, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* mds-paginator */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: 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: true, propNumber: true, propString: false, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
-
157
- // src/utils/helpers.ts
158
- var isDef = (v) => v != null;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -353,7 +358,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
353
358
  }
354
359
  if (!appliedStyles.has(scopeId2)) {
355
360
  {
356
- styleElm = doc.createElement("style");
361
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
357
362
  styleElm.innerHTML = style;
358
363
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
359
364
  if (nonce != null) {
@@ -363,7 +368,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
363
368
  if (styleContainerNode.nodeName === "HEAD") {
364
369
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
365
370
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
366
- styleContainerNode.insertBefore(styleElm, referenceNode2);
371
+ styleContainerNode.insertBefore(
372
+ styleElm,
373
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
+ );
367
375
  } else if ("host" in styleContainerNode) {
368
376
  if (supportsConstructableStylesheets) {
369
377
  const stylesheet = new CSSStyleSheet();
@@ -413,16 +421,18 @@ var attachStyles = (hostRef) => {
413
421
  endAttachStyles();
414
422
  };
415
423
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
416
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
424
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
417
425
  if (oldValue !== newValue) {
418
426
  let isProp = isMemberInElement(elm, memberName);
419
427
  let ln = memberName.toLowerCase();
420
428
  if (memberName === "class") {
421
429
  const classList = elm.classList;
422
430
  const oldClasses = parseClassList(oldValue);
423
- const newClasses = parseClassList(newValue);
424
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
431
+ let newClasses = parseClassList(newValue);
432
+ {
433
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
+ }
426
436
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
427
437
  if (memberName[2] === "-") {
428
438
  memberName = memberName.slice(3);
@@ -456,7 +466,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
456
466
  elm.setAttribute(memberName, n);
457
467
  }
458
468
  }
459
- } else {
469
+ } else if (elm[memberName] !== newValue) {
460
470
  elm[memberName] = newValue;
461
471
  }
462
472
  } catch (e) {
@@ -478,24 +488,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
478
488
  }
479
489
  };
480
490
  var parseClassListRegex = /\s/;
481
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
491
+ var parseClassList = (value) => {
492
+ if (typeof value === "object" && value && "baseVal" in value) {
493
+ value = value.baseVal;
494
+ }
495
+ if (!value || typeof value !== "string") {
496
+ return [];
497
+ }
498
+ return value.split(parseClassListRegex);
499
+ };
482
500
  var CAPTURE_EVENT_SUFFIX = "Capture";
483
501
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
484
502
 
485
503
  // src/runtime/vdom/update-element.ts
486
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
504
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
487
505
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
488
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
489
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
506
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
507
+ const newVnodeAttrs = newVnode.$attrs$ || {};
490
508
  {
491
509
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
492
510
  if (!(memberName in newVnodeAttrs)) {
493
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
511
+ setAccessor(
512
+ elm,
513
+ memberName,
514
+ oldVnodeAttrs[memberName],
515
+ void 0,
516
+ isSvgMode2,
517
+ newVnode.$flags$);
494
518
  }
495
519
  }
496
520
  }
497
521
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
498
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
522
+ setAccessor(
523
+ elm,
524
+ memberName,
525
+ oldVnodeAttrs[memberName],
526
+ newVnodeAttrs[memberName],
527
+ isSvgMode2,
528
+ newVnode.$flags$);
499
529
  }
500
530
  };
501
531
  function sortedAttrNames(attrNames) {
@@ -507,13 +537,10 @@ function sortedAttrNames(attrNames) {
507
537
  attrNames
508
538
  );
509
539
  }
510
-
511
- // src/runtime/vdom/vdom-render.ts
512
- var scopeId;
513
540
  var hostTagName;
514
541
  var useNativeShadowDom = false;
515
542
  var isSvgMode = false;
516
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
543
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
517
544
  const newVNode2 = newParentVNode.$children$[childIndex];
518
545
  let i2 = 0;
519
546
  let elm;
@@ -527,11 +554,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
527
554
  {
528
555
  updateElement(null, newVNode2, isSvgMode);
529
556
  }
530
- const rootNode = elm.getRootNode();
531
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
532
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
533
- elm.classList.add(elm["s-si"] = scopeId);
534
- }
535
557
  if (newVNode2.$children$) {
536
558
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
537
559
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -660,6 +682,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
660
682
  if (!isInitialRender) {
661
683
  return leftVNode.$key$ === rightVNode.$key$;
662
684
  }
685
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
686
+ leftVNode.$key$ = rightVNode.$key$;
687
+ }
663
688
  return true;
664
689
  }
665
690
  return false;
@@ -693,8 +718,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
693
718
  }
694
719
  };
695
720
  var insertBefore = (parent, newNode, reference) => {
696
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
697
- return inserted;
721
+ {
722
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
723
+ }
698
724
  };
699
725
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
700
726
  const hostElm = hostRef.$hostElement$;
@@ -719,9 +745,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
719
745
  rootVnode.$flags$ |= 4 /* isHost */;
720
746
  hostRef.$vnode$ = rootVnode;
721
747
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
722
- {
723
- scopeId = hostElm["s-sc"];
724
- }
725
748
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
726
749
  patch(oldVNode, rootVnode, isInitialLoad);
727
750
  };
@@ -729,7 +752,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
729
752
  // src/runtime/update-component.ts
730
753
  var attachToAncestor = (hostRef, ancestorComponent) => {
731
754
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
732
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
755
+ const index = ancestorComponent["s-p"].push(
756
+ new Promise(
757
+ (r) => hostRef.$onRenderResolve$ = () => {
758
+ ancestorComponent["s-p"].splice(index - 1, 1);
759
+ r();
760
+ }
761
+ )
762
+ );
733
763
  }
734
764
  };
735
765
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -825,7 +855,7 @@ var postUpdateComponent = (hostRef) => {
825
855
  addHydratedFlag(elm);
826
856
  }
827
857
  {
828
- safeCall(instance, "componentDidLoad");
858
+ safeCall(instance, "componentDidLoad", void 0, elm);
829
859
  }
830
860
  endPostUpdate();
831
861
  {
@@ -854,12 +884,12 @@ var appDidLoad = (who) => {
854
884
  }
855
885
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
856
886
  };
857
- var safeCall = (instance, method, arg) => {
887
+ var safeCall = (instance, method, arg, elm) => {
858
888
  if (instance && instance[method]) {
859
889
  try {
860
890
  return instance[method](arg);
861
891
  } catch (e) {
862
- consoleError(e);
892
+ consoleError(e, elm);
863
893
  }
864
894
  }
865
895
  return void 0;
@@ -902,15 +932,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
902
932
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
903
933
  members.map(([memberName, [memberFlags]]) => {
904
934
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
935
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
936
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
937
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
938
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
939
+ Object.defineProperty(prototype, memberName, {
940
+ get() {
941
+ {
942
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
943
+ return getValue(this, memberName);
944
+ }
945
+ const ref = getHostRef(this);
946
+ const instance = ref ? ref.$lazyInstance$ : prototype;
947
+ if (!instance) return;
948
+ return instance[memberName];
949
+ }
950
+ },
951
+ configurable: true,
952
+ enumerable: true
953
+ });
954
+ }
905
955
  Object.defineProperty(prototype, memberName, {
906
- get() {
907
- return getValue(this, memberName);
908
- },
909
956
  set(newValue) {
910
- setValue(this, memberName, newValue, cmpMeta);
911
- },
912
- configurable: true,
913
- enumerable: true
957
+ const ref = getHostRef(this);
958
+ if (origSetter) {
959
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
960
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
961
+ newValue = ref.$instanceValues$.get(memberName);
962
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
963
+ ref.$instanceValues$.set(memberName, currentValue);
964
+ }
965
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
966
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
967
+ setValue(this, memberName, newValue, cmpMeta);
968
+ return;
969
+ }
970
+ {
971
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
972
+ setValue(this, memberName, newValue, cmpMeta);
973
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
974
+ ref.$onReadyPromise$.then(() => {
975
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
976
+ ref.$lazyInstance$[memberName] = newValue;
977
+ }
978
+ });
979
+ }
980
+ return;
981
+ }
982
+ const setterSetVal = () => {
983
+ const currentValue = ref.$lazyInstance$[memberName];
984
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
985
+ ref.$instanceValues$.set(memberName, currentValue);
986
+ }
987
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
988
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
989
+ };
990
+ if (ref.$lazyInstance$) {
991
+ setterSetVal();
992
+ } else {
993
+ ref.$onReadyPromise$.then(() => setterSetVal());
994
+ }
995
+ }
996
+ }
914
997
  });
915
998
  }
916
999
  });
@@ -920,7 +1003,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
920
1003
  plt.jmp(() => {
921
1004
  var _a2;
922
1005
  const propName = attrNameToPropName.get(attrName);
923
- if (this.hasOwnProperty(propName)) {
1006
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
924
1007
  newValue = this[propName];
925
1008
  delete this[propName];
926
1009
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -940,7 +1023,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
940
1023
  }
941
1024
  return;
942
1025
  }
943
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1026
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1027
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1028
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1029
+ this[propName] = newValue;
1030
+ }
944
1031
  });
945
1032
  };
946
1033
  Cstr.observedAttributes = Array.from(
@@ -967,9 +1054,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
967
1054
  let Cstr;
968
1055
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
969
1056
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
970
- const bundleId = cmpMeta.$lazyBundleId$;
971
- if (bundleId) {
972
- const CstrImport = loadModule(cmpMeta);
1057
+ {
1058
+ const CstrImport = loadModule(cmpMeta, hostRef);
973
1059
  if (CstrImport && "then" in CstrImport) {
974
1060
  const endLoad = uniqueTime();
975
1061
  Cstr = await CstrImport;
@@ -991,16 +1077,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
991
1077
  try {
992
1078
  new Cstr(hostRef);
993
1079
  } catch (e) {
994
- consoleError(e);
1080
+ consoleError(e, elm);
995
1081
  }
996
1082
  {
997
1083
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
998
1084
  }
999
1085
  endNewInstance();
1000
- } else {
1001
- Cstr = elm.constructor;
1002
- const cmpTag = elm.localName;
1003
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1004
1086
  }
1005
1087
  if (Cstr && Cstr.style) {
1006
1088
  let style;
@@ -1023,7 +1105,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1023
1105
  schedule();
1024
1106
  }
1025
1107
  };
1026
- var fireConnectedCallback = (instance) => {
1108
+ var fireConnectedCallback = (instance, elm) => {
1027
1109
  };
1028
1110
 
1029
1111
  // src/runtime/connected-callback.ts
@@ -1063,7 +1145,7 @@ var connectedCallback = (elm) => {
1063
1145
  endConnected();
1064
1146
  }
1065
1147
  };
1066
- var disconnectInstance = (instance) => {
1148
+ var disconnectInstance = (instance, elm) => {
1067
1149
  };
1068
1150
  var disconnectedCallback = async (elm) => {
1069
1151
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1072,6 +1154,12 @@ var disconnectedCallback = async (elm) => {
1072
1154
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1073
1155
  }
1074
1156
  }
1157
+ if (rootAppliedStyles.has(elm)) {
1158
+ rootAppliedStyles.delete(elm);
1159
+ }
1160
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1161
+ rootAppliedStyles.delete(elm.shadowRoot);
1162
+ }
1075
1163
  };
1076
1164
 
1077
1165
  // src/runtime/bootstrap-lazy.ts
@@ -1148,6 +1236,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1148
1236
  }
1149
1237
  disconnectedCallback() {
1150
1238
  plt.jmp(() => disconnectedCallback(this));
1239
+ plt.raf(() => {
1240
+ var _a3;
1241
+ const hostRef = getHostRef(this);
1242
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1243
+ delete hostRef.$vnode$.$elm$;
1244
+ }
1245
+ });
1151
1246
  }
1152
1247
  componentOnReady() {
1153
1248
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-30bc2eba.js');
5
+ const index = require('./index-463b21cc.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-30bc2eba.js');
5
+ const index = require('./index-463b21cc.js');
6
6
 
7
7
  const miBaselineArrowBack = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8l8 8l1.41-1.41L7.83 13H20v-2z"/></svg>`;
8
8
 
@@ -15,6 +15,14 @@ const MdsPaginator = class {
15
15
  constructor(hostRef) {
16
16
  index.registerInstance(this, hostRef);
17
17
  this.pageChangedEvent = index.createEvent(this, "mdsPaginatorChange", 7);
18
+ /**
19
+ * Specifies the number of total pages to be handled
20
+ */
21
+ this.pages = 0;
22
+ /**
23
+ * Specifies the current page selected in the paginator
24
+ */
25
+ this.currentPage = 1;
18
26
  this.scrollPage = (index) => {
19
27
  var _a;
20
28
  const elementIndex = index;
@@ -54,8 +62,6 @@ const MdsPaginator = class {
54
62
  }
55
63
  this.pageChangedEvent.emit({ page: this.currentPage, caller });
56
64
  };
57
- this.pages = 0;
58
- this.currentPage = 1;
59
65
  }
60
66
  componentDidLoad() {
61
67
  setTimeout(() => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-30bc2eba.js');
5
+ const index = require('./index-463b21cc.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | 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.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.2",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],