@maggioli-design-system/mds-push-notification 2.1.2 → 2.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 (55) hide show
  1. package/dist/cjs/{index-bdd83d01.js → index-c4051bde.js} +160 -65
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-push-notification.cjs.entry.js +20 -12
  4. package/dist/cjs/mds-push-notification.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 +10 -4
  8. package/dist/collection/components/mds-push-notification/mds-push-notification.js +41 -11
  9. package/dist/collection/dictionary/tree.js +13 -0
  10. package/dist/collection/type/tree.js +1 -0
  11. package/dist/components/mds-push-notification.js +19 -11
  12. package/dist/documentation.d.ts +8 -0
  13. package/dist/documentation.json +35 -13
  14. package/dist/esm/{index-a5ecda80.js → index-40893e6d.js} +160 -65
  15. package/dist/esm/loader.js +2 -2
  16. package/dist/esm/mds-push-notification.entry.js +20 -12
  17. package/dist/esm/mds-push-notification.js +3 -3
  18. package/dist/esm-es5/index-40893e6d.js +1 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/mds-push-notification.entry.js +2 -2
  21. package/dist/esm-es5/mds-push-notification.js +1 -1
  22. package/dist/mds-push-notification/mds-push-notification.esm.js +1 -1
  23. package/dist/mds-push-notification/mds-push-notification.js +1 -1
  24. package/dist/mds-push-notification/p-1c60e347.entry.js +6 -0
  25. package/dist/mds-push-notification/p-3b18d74e.js +2 -0
  26. package/{www/build/p-313df2a2.system.entry.js → dist/mds-push-notification/p-4ff55f8a.system.entry.js} +2 -2
  27. package/dist/mds-push-notification/p-91b16fd4.system.js +2 -0
  28. package/dist/mds-push-notification/{p-9d064301.system.js → p-be470da4.system.js} +1 -1
  29. package/dist/stats.json +107 -53
  30. package/dist/types/common/floating-controller.d.ts +46 -0
  31. package/dist/types/common/slot.d.ts +2 -1
  32. package/dist/types/dictionary/tree.d.ts +4 -0
  33. package/dist/types/type/tree.d.ts +3 -0
  34. package/documentation.json +60 -18
  35. package/package.json +6 -6
  36. package/src/common/floating-controller.ts +263 -0
  37. package/src/common/slot.ts +12 -3
  38. package/src/dictionary/tree.ts +21 -0
  39. package/src/fixtures/icons.json +20 -0
  40. package/src/fixtures/iconsauce.json +6 -0
  41. package/src/type/tree.ts +12 -0
  42. package/www/build/mds-push-notification.esm.js +1 -1
  43. package/www/build/mds-push-notification.js +1 -1
  44. package/www/build/p-1c60e347.entry.js +6 -0
  45. package/www/build/p-3b18d74e.js +2 -0
  46. package/{dist/mds-push-notification/p-313df2a2.system.entry.js → www/build/p-4ff55f8a.system.entry.js} +2 -2
  47. package/www/build/p-91b16fd4.system.js +2 -0
  48. package/www/build/{p-9d064301.system.js → p-be470da4.system.js} +1 -1
  49. package/dist/esm-es5/index-a5ecda80.js +0 -1
  50. package/dist/mds-push-notification/p-36238f45.system.js +0 -2
  51. package/dist/mds-push-notification/p-4e329022.entry.js +0 -6
  52. package/dist/mds-push-notification/p-7857bd4f.js +0 -2
  53. package/www/build/p-36238f45.system.js +0 -2
  54. package/www/build/p-4e329022.entry.js +0 -6
  55. package/www/build/p-7857bd4f.js +0 -2
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-push-notification';
24
- const BUILD = /* mds-push-notification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, 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: 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: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, 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: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* mds-push-notification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, 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: 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: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, 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: 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,
@@ -49,7 +53,8 @@ var registerHost = (hostElement, cmpMeta) => {
49
53
  hostElement["s-p"] = [];
50
54
  hostElement["s-rc"] = [];
51
55
  }
52
- return hostRefs.set(hostElement, hostRef);
56
+ const ref = hostRefs.set(hostElement, hostRef);
57
+ return ref;
53
58
  };
54
59
  var isMemberInElement = (elm, memberName) => memberName in elm;
55
60
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -86,16 +91,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
86
91
  /* webpackExclude: /\.system\.entry\.js$/ */
87
92
  /* webpackMode: "lazy" */
88
93
  `./${bundleId}.entry.js${""}`
89
- )); }).then((importedModule) => {
90
- {
91
- cmpModules.set(bundleId, importedModule);
94
+ )); }).then(
95
+ (importedModule) => {
96
+ {
97
+ cmpModules.set(bundleId, importedModule);
98
+ }
99
+ return importedModule[exportName];
100
+ },
101
+ (e) => {
102
+ consoleError(e, hostRef.$hostElement$);
92
103
  }
93
- return importedModule[exportName];
94
- }, consoleError);
104
+ );
95
105
  };
96
106
 
97
107
  // src/client/client-style.ts
98
108
  var styles = /* @__PURE__ */ new Map();
109
+ var HYDRATED_STYLE_ID = "sty-id";
99
110
  var HYDRATED_CSS = "{visibility:hidden}[hydrated]{visibility:inherit}";
100
111
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
101
112
  var win = typeof window !== "undefined" ? window : {};
@@ -153,12 +164,6 @@ var flush = () => {
153
164
  };
154
165
  var nextTick = (cb) => promiseResolve().then(cb);
155
166
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
156
-
157
- // src/utils/constants.ts
158
- var EMPTY_OBJ = {};
159
-
160
- // src/utils/helpers.ts
161
- var isDef = (v) => v != null;
162
167
  var isComplexType = (o) => {
163
168
  o = typeof o;
164
169
  return o === "object" || o === "function";
@@ -359,7 +364,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
359
364
  }
360
365
  if (!appliedStyles.has(scopeId2)) {
361
366
  {
362
- styleElm = doc.createElement("style");
367
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
363
368
  styleElm.innerHTML = style;
364
369
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
365
370
  if (nonce != null) {
@@ -369,7 +374,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
369
374
  if (styleContainerNode.nodeName === "HEAD") {
370
375
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
371
376
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
372
- styleContainerNode.insertBefore(styleElm, referenceNode2);
377
+ styleContainerNode.insertBefore(
378
+ styleElm,
379
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
380
+ );
373
381
  } else if ("host" in styleContainerNode) {
374
382
  if (supportsConstructableStylesheets) {
375
383
  const stylesheet = new CSSStyleSheet();
@@ -419,16 +427,18 @@ var attachStyles = (hostRef) => {
419
427
  endAttachStyles();
420
428
  };
421
429
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
422
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
430
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
423
431
  if (oldValue !== newValue) {
424
432
  let isProp = isMemberInElement(elm, memberName);
425
433
  let ln = memberName.toLowerCase();
426
434
  if (memberName === "class") {
427
435
  const classList = elm.classList;
428
436
  const oldClasses = parseClassList(oldValue);
429
- const newClasses = parseClassList(newValue);
430
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
431
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
437
+ let newClasses = parseClassList(newValue);
438
+ {
439
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
440
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
441
+ }
432
442
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
433
443
  if (memberName[2] === "-") {
434
444
  memberName = memberName.slice(3);
@@ -462,7 +472,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
462
472
  elm.setAttribute(memberName, n);
463
473
  }
464
474
  }
465
- } else {
475
+ } else if (elm[memberName] !== newValue) {
466
476
  elm[memberName] = newValue;
467
477
  }
468
478
  } catch (e) {
@@ -484,24 +494,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
484
494
  }
485
495
  };
486
496
  var parseClassListRegex = /\s/;
487
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
497
+ var parseClassList = (value) => {
498
+ if (typeof value === "object" && value && "baseVal" in value) {
499
+ value = value.baseVal;
500
+ }
501
+ if (!value || typeof value !== "string") {
502
+ return [];
503
+ }
504
+ return value.split(parseClassListRegex);
505
+ };
488
506
  var CAPTURE_EVENT_SUFFIX = "Capture";
489
507
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
490
508
 
491
509
  // src/runtime/vdom/update-element.ts
492
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
510
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
493
511
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
494
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
495
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
512
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
513
+ const newVnodeAttrs = newVnode.$attrs$ || {};
496
514
  {
497
515
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
498
516
  if (!(memberName in newVnodeAttrs)) {
499
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
517
+ setAccessor(
518
+ elm,
519
+ memberName,
520
+ oldVnodeAttrs[memberName],
521
+ void 0,
522
+ isSvgMode2,
523
+ newVnode.$flags$);
500
524
  }
501
525
  }
502
526
  }
503
527
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
504
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
528
+ setAccessor(
529
+ elm,
530
+ memberName,
531
+ oldVnodeAttrs[memberName],
532
+ newVnodeAttrs[memberName],
533
+ isSvgMode2,
534
+ newVnode.$flags$);
505
535
  }
506
536
  };
507
537
  function sortedAttrNames(attrNames) {
@@ -513,13 +543,10 @@ function sortedAttrNames(attrNames) {
513
543
  attrNames
514
544
  );
515
545
  }
516
-
517
- // src/runtime/vdom/vdom-render.ts
518
- var scopeId;
519
546
  var hostTagName;
520
547
  var useNativeShadowDom = false;
521
548
  var isSvgMode = false;
522
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
549
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
523
550
  const newVNode2 = newParentVNode.$children$[childIndex];
524
551
  let i2 = 0;
525
552
  let elm;
@@ -533,11 +560,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
533
560
  {
534
561
  updateElement(null, newVNode2, isSvgMode);
535
562
  }
536
- const rootNode = elm.getRootNode();
537
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
538
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
539
- elm.classList.add(elm["s-si"] = scopeId);
540
- }
541
563
  if (newVNode2.$children$) {
542
564
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
543
565
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -666,6 +688,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
666
688
  if (!isInitialRender) {
667
689
  return leftVNode.$key$ === rightVNode.$key$;
668
690
  }
691
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
692
+ leftVNode.$key$ = rightVNode.$key$;
693
+ }
669
694
  return true;
670
695
  }
671
696
  return false;
@@ -700,8 +725,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
700
725
  }
701
726
  };
702
727
  var insertBefore = (parent, newNode, reference) => {
703
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
704
- return inserted;
728
+ {
729
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
730
+ }
705
731
  };
706
732
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
707
733
  const hostElm = hostRef.$hostElement$;
@@ -726,9 +752,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
726
752
  rootVnode.$flags$ |= 4 /* isHost */;
727
753
  hostRef.$vnode$ = rootVnode;
728
754
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
729
- {
730
- scopeId = hostElm["s-sc"];
731
- }
732
755
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
733
756
  patch(oldVNode, rootVnode, isInitialLoad);
734
757
  };
@@ -736,7 +759,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
736
759
  // src/runtime/update-component.ts
737
760
  var attachToAncestor = (hostRef, ancestorComponent) => {
738
761
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
739
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
762
+ const index = ancestorComponent["s-p"].push(
763
+ new Promise(
764
+ (r) => hostRef.$onRenderResolve$ = () => {
765
+ ancestorComponent["s-p"].splice(index - 1, 1);
766
+ r();
767
+ }
768
+ )
769
+ );
740
770
  }
741
771
  };
742
772
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -763,7 +793,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
763
793
  let maybePromise;
764
794
  if (isInitialLoad) {
765
795
  {
766
- maybePromise = safeCall(instance, "componentWillLoad");
796
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
767
797
  }
768
798
  }
769
799
  endSchedule();
@@ -865,12 +895,12 @@ var appDidLoad = (who) => {
865
895
  }
866
896
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
867
897
  };
868
- var safeCall = (instance, method, arg) => {
898
+ var safeCall = (instance, method, arg, elm) => {
869
899
  if (instance && instance[method]) {
870
900
  try {
871
901
  return instance[method](arg);
872
902
  } catch (e) {
873
- consoleError(e);
903
+ consoleError(e, elm);
874
904
  }
875
905
  }
876
906
  return void 0;
@@ -913,15 +943,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
913
943
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
914
944
  members.map(([memberName, [memberFlags]]) => {
915
945
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
946
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
947
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
948
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
949
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
950
+ Object.defineProperty(prototype, memberName, {
951
+ get() {
952
+ {
953
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
954
+ return getValue(this, memberName);
955
+ }
956
+ const ref = getHostRef(this);
957
+ const instance = ref ? ref.$lazyInstance$ : prototype;
958
+ if (!instance) return;
959
+ return instance[memberName];
960
+ }
961
+ },
962
+ configurable: true,
963
+ enumerable: true
964
+ });
965
+ }
916
966
  Object.defineProperty(prototype, memberName, {
917
- get() {
918
- return getValue(this, memberName);
919
- },
920
967
  set(newValue) {
921
- setValue(this, memberName, newValue, cmpMeta);
922
- },
923
- configurable: true,
924
- enumerable: true
968
+ const ref = getHostRef(this);
969
+ if (origSetter) {
970
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
971
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
972
+ newValue = ref.$instanceValues$.get(memberName);
973
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
974
+ ref.$instanceValues$.set(memberName, currentValue);
975
+ }
976
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
977
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
978
+ setValue(this, memberName, newValue, cmpMeta);
979
+ return;
980
+ }
981
+ {
982
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
983
+ setValue(this, memberName, newValue, cmpMeta);
984
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
985
+ ref.$onReadyPromise$.then(() => {
986
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
987
+ ref.$lazyInstance$[memberName] = newValue;
988
+ }
989
+ });
990
+ }
991
+ return;
992
+ }
993
+ const setterSetVal = () => {
994
+ const currentValue = ref.$lazyInstance$[memberName];
995
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
996
+ ref.$instanceValues$.set(memberName, currentValue);
997
+ }
998
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
999
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1000
+ };
1001
+ if (ref.$lazyInstance$) {
1002
+ setterSetVal();
1003
+ } else {
1004
+ ref.$onReadyPromise$.then(() => setterSetVal());
1005
+ }
1006
+ }
1007
+ }
925
1008
  });
926
1009
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
927
1010
  Object.defineProperty(prototype, memberName, {
@@ -942,7 +1025,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
942
1025
  plt.jmp(() => {
943
1026
  var _a2;
944
1027
  const propName = attrNameToPropName.get(attrName);
945
- if (this.hasOwnProperty(propName)) {
1028
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
946
1029
  newValue = this[propName];
947
1030
  delete this[propName];
948
1031
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -962,7 +1045,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
962
1045
  }
963
1046
  return;
964
1047
  }
965
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1048
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1049
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1050
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1051
+ this[propName] = newValue;
1052
+ }
966
1053
  });
967
1054
  };
968
1055
  Cstr.observedAttributes = Array.from(
@@ -989,9 +1076,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
989
1076
  let Cstr;
990
1077
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
991
1078
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
992
- const bundleId = cmpMeta.$lazyBundleId$;
993
- if (bundleId) {
994
- const CstrImport = loadModule(cmpMeta);
1079
+ {
1080
+ const CstrImport = loadModule(cmpMeta, hostRef);
995
1081
  if (CstrImport && "then" in CstrImport) {
996
1082
  const endLoad = uniqueTime();
997
1083
  Cstr = await CstrImport;
@@ -1013,16 +1099,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1013
1099
  try {
1014
1100
  new Cstr(hostRef);
1015
1101
  } catch (e) {
1016
- consoleError(e);
1102
+ consoleError(e, elm);
1017
1103
  }
1018
1104
  {
1019
1105
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1020
1106
  }
1021
1107
  endNewInstance();
1022
- } else {
1023
- Cstr = elm.constructor;
1024
- const cmpTag = elm.localName;
1025
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1026
1108
  }
1027
1109
  if (Cstr && Cstr.style) {
1028
1110
  let style;
@@ -1045,7 +1127,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1045
1127
  schedule();
1046
1128
  }
1047
1129
  };
1048
- var fireConnectedCallback = (instance) => {
1130
+ var fireConnectedCallback = (instance, elm) => {
1049
1131
  };
1050
1132
 
1051
1133
  // src/runtime/connected-callback.ts
@@ -1085,7 +1167,7 @@ var connectedCallback = (elm) => {
1085
1167
  endConnected();
1086
1168
  }
1087
1169
  };
1088
- var disconnectInstance = (instance) => {
1170
+ var disconnectInstance = (instance, elm) => {
1089
1171
  };
1090
1172
  var disconnectedCallback = async (elm) => {
1091
1173
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1094,6 +1176,12 @@ var disconnectedCallback = async (elm) => {
1094
1176
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1095
1177
  }
1096
1178
  }
1179
+ if (rootAppliedStyles.has(elm)) {
1180
+ rootAppliedStyles.delete(elm);
1181
+ }
1182
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1183
+ rootAppliedStyles.delete(elm.shadowRoot);
1184
+ }
1097
1185
  };
1098
1186
 
1099
1187
  // src/runtime/bootstrap-lazy.ts
@@ -1170,6 +1258,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1170
1258
  }
1171
1259
  disconnectedCallback() {
1172
1260
  plt.jmp(() => disconnectedCallback(this));
1261
+ plt.raf(() => {
1262
+ var _a3;
1263
+ const hostRef = getHostRef(this);
1264
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1265
+ delete hostRef.$vnode$.$elm$;
1266
+ }
1267
+ });
1173
1268
  }
1174
1269
  componentOnReady() {
1175
1270
  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-bdd83d01.js');
5
+ const index = require('./index-c4051bde.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-bdd83d01.js');
5
+ const index = require('./index-c4051bde.js');
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
@@ -1015,22 +1015,30 @@ const MdsPushNotification = class {
1015
1015
  es: localeEs,
1016
1016
  it: localeIt,
1017
1017
  });
1018
- this.onClickClose = (e) => {
1019
- e.stopPropagation();
1020
- this.closedEvent.emit();
1021
- };
1022
- this.language = undefined;
1023
- this.datetime = undefined;
1018
+ /**
1019
+ * Specifies if the notification date format shows time passed or displays date as a static string
1020
+ */
1024
1021
  this.dateFormat = 'timeago';
1022
+ /**
1023
+ * Specifies if the component is dismissable or not, it should be set to true by default is used with it's parent component `mds-push-notifications`
1024
+ */
1025
1025
  this.deletable = true;
1026
- this.icon = undefined;
1027
- this.initials = undefined;
1026
+ /**
1027
+ * Specifies the message of the component
1028
+ */
1028
1029
  this.message = 'Nessun messaggio disponibile';
1030
+ /**
1031
+ * Specifies if the `src` attribute is used to show a the image as avatar or full image
1032
+ */
1029
1033
  this.preview = 'image';
1030
- this.src = undefined;
1031
- this.subject = undefined;
1034
+ /**
1035
+ * Specifies the color tone of the component
1036
+ */
1032
1037
  this.tone = 'weak';
1033
- this.variant = undefined;
1038
+ this.onClickClose = (e) => {
1039
+ e.stopPropagation();
1040
+ this.closedEvent.emit();
1041
+ };
1034
1042
  }
1035
1043
  async updateLang() {
1036
1044
  this.language = this.t.lang(this.host);
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bdd83d01.js');
5
+ const index = require('./index-c4051bde.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-push-notification.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": [],