@maggioli-design-system/mds-push-notification 3.0.1 → 5.0.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 (84) hide show
  1. package/dist/cjs/{index-6d7dbb0d.js → index-7cf2c20a.js} +13 -2
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-push-notification.cjs.entry.js +131 -1050
  4. package/dist/cjs/mds-push-notification.cjs.js +2 -2
  5. package/dist/collection/common/floating-controller.js +7 -4
  6. package/dist/collection/components/mds-push-notification/mds-push-notification.css +49 -392
  7. package/dist/collection/components/mds-push-notification/mds-push-notification.js +202 -290
  8. package/dist/collection/components/mds-push-notification/test/mds-push-notification.stories.js +84 -156
  9. package/dist/collection/dictionary/button.js +2 -0
  10. package/dist/components/mds-push-notification.js +137 -1064
  11. package/dist/documentation.json +108 -378
  12. package/dist/esm/{index-097e7d35.js → index-b09cc8e1.js} +13 -2
  13. package/dist/esm/loader.js +3 -3
  14. package/dist/esm/mds-push-notification.entry.js +131 -1050
  15. package/dist/esm/mds-push-notification.js +3 -3
  16. package/dist/esm-es5/index-b09cc8e1.js +1 -0
  17. package/dist/esm-es5/loader.js +1 -1
  18. package/dist/esm-es5/mds-push-notification.entry.js +1 -6
  19. package/dist/esm-es5/mds-push-notification.js +1 -1
  20. package/dist/mds-push-notification/mds-push-notification.esm.js +1 -1
  21. package/dist/mds-push-notification/mds-push-notification.js +1 -1
  22. package/dist/mds-push-notification/p-4a9f617e.entry.js +1 -0
  23. package/dist/mds-push-notification/p-8d91ff4b.js +2 -0
  24. package/dist/mds-push-notification/p-aa501d46.system.js +2 -0
  25. package/dist/mds-push-notification/p-b08da275.system.entry.js +1 -0
  26. package/dist/mds-push-notification/p-eef6f413.system.js +1 -0
  27. package/dist/stats.json +235 -557
  28. package/dist/types/components/mds-push-notification/mds-push-notification.d.ts +42 -48
  29. package/dist/types/components/mds-push-notification/meta/event-detail.d.ts +1 -1
  30. package/dist/types/components/mds-push-notification/test/mds-push-notification.stories.d.ts +4 -91
  31. package/dist/types/components.d.ts +20 -84
  32. package/dist/types/type/button.d.ts +1 -1
  33. package/dist/types/type/input-tip.d.ts +1 -0
  34. package/documentation.json +134 -384
  35. package/package.json +4 -6
  36. package/readme.md +44 -39
  37. package/src/common/floating-controller.ts +6 -3
  38. package/src/components/mds-push-notification/css/mds-push-notification-pref-theme.css +2 -6
  39. package/src/components/mds-push-notification/css/mds-push-notification-visible.css +4 -0
  40. package/src/components/mds-push-notification/mds-push-notification.css +35 -134
  41. package/src/components/mds-push-notification/mds-push-notification.tsx +135 -120
  42. package/src/components/mds-push-notification/meta/event-detail.ts +1 -1
  43. package/src/components/mds-push-notification/readme.md +44 -28
  44. package/src/components/mds-push-notification/test/mds-push-notification.e2e.ts +0 -15
  45. package/src/components/mds-push-notification/test/mds-push-notification.spec.tsx +23 -0
  46. package/src/components/mds-push-notification/test/mds-push-notification.stories.tsx +139 -190
  47. package/src/components.d.ts +20 -84
  48. package/src/dictionary/button.ts +2 -0
  49. package/src/fixtures/icons.json +6 -0
  50. package/src/type/button.ts +2 -0
  51. package/src/type/input-tip.ts +11 -0
  52. package/www/build/mds-push-notification.esm.js +1 -1
  53. package/www/build/mds-push-notification.js +1 -1
  54. package/www/build/p-4a9f617e.entry.js +1 -0
  55. package/www/build/p-8d91ff4b.js +2 -0
  56. package/www/build/p-aa501d46.system.js +2 -0
  57. package/www/build/p-b08da275.system.entry.js +1 -0
  58. package/www/build/p-eef6f413.system.js +1 -0
  59. package/dist/collection/components/mds-push-notification/meta/dictionary.js +0 -9
  60. package/dist/esm-es5/index-097e7d35.js +0 -1
  61. package/dist/mds-push-notification/p-1041e719.system.js +0 -1
  62. package/dist/mds-push-notification/p-14a35146.system.js +0 -2
  63. package/dist/mds-push-notification/p-440f71ab.entry.js +0 -6
  64. package/dist/mds-push-notification/p-c3d85a16.system.entry.js +0 -6
  65. package/dist/mds-push-notification/p-f48a9d49.js +0 -2
  66. package/dist/types/components/mds-push-notification/meta/dictionary.d.ts +0 -3
  67. package/dist/types/components/mds-push-notification/meta/types.d.ts +0 -17
  68. package/src/components/mds-push-notification/css/mds-push-notification-pref-animation.css +0 -9
  69. package/src/components/mds-push-notification/css/mds-push-notification-pref-contrast.css +0 -13
  70. package/src/components/mds-push-notification/css/mds-push-notification-variant-label.css +0 -159
  71. package/src/components/mds-push-notification/css/mds-push-notification-variant-primary.css +0 -15
  72. package/src/components/mds-push-notification/css/mds-push-notification-variant-state.css +0 -63
  73. package/src/components/mds-push-notification/meta/dictionary.ts +0 -14
  74. package/src/components/mds-push-notification/meta/locale.el.json +0 -16
  75. package/src/components/mds-push-notification/meta/locale.en.json +0 -16
  76. package/src/components/mds-push-notification/meta/locale.es.json +0 -16
  77. package/src/components/mds-push-notification/meta/locale.it.json +0 -16
  78. package/src/components/mds-push-notification/meta/types.ts +0 -23
  79. package/www/build/p-1041e719.system.js +0 -1
  80. package/www/build/p-14a35146.system.js +0 -2
  81. package/www/build/p-440f71ab.entry.js +0 -6
  82. package/www/build/p-c3d85a16.system.entry.js +0 -6
  83. package/www/build/p-f48a9d49.js +0 -2
  84. /package/dist/collection/{components/mds-push-notification/meta/types.js → type/input-tip.js} +0 -0
@@ -21,7 +21,7 @@ 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, constructableCSS: true, cssAnnotations: true, devTools: 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: true };
24
+ const BUILD = /* mds-push-notification */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: 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: false, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
@@ -449,7 +449,11 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
449
449
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
450
450
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
451
451
  }
452
- } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
452
+ } else if (memberName === "key") ; else if (memberName === "ref") {
453
+ if (newValue) {
454
+ newValue(elm);
455
+ }
456
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
453
457
  if (memberName[2] === "-") {
454
458
  memberName = memberName.slice(3);
455
459
  } else if (isMemberInElement(win, ln)) {
@@ -607,6 +611,7 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
607
611
  const vnode = vnodes[index];
608
612
  if (vnode) {
609
613
  const elm = vnode.$elm$;
614
+ nullifyVNodeRefs(vnode);
610
615
  if (elm) {
611
616
  elm.remove();
612
617
  }
@@ -735,6 +740,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
735
740
  elm.data = text;
736
741
  }
737
742
  };
743
+ var nullifyVNodeRefs = (vNode) => {
744
+ {
745
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
746
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
747
+ }
748
+ };
738
749
  var insertBefore = (parent, newNode, reference) => {
739
750
  {
740
751
  return parent == null ? void 0 : parent.insertBefore(newNode, reference);
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6d7dbb0d.js');
5
+ const index = require('./index-7cf2c20a.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["mds-push-notification.cjs",[[1,"mds-push-notification",{"datetime":[1537],"dateFormat":[513,"date-format"],"deletable":[1540],"icon":[513],"initials":[1537],"message":[513],"preview":[513],"src":[513],"subject":[513],"tone":[513],"variant":[513],"language":[32],"updateLang":[64]},null,{"deletable":["handleDeletableChange"]}]]]], options);
11
+ return index.bootstrapLazy([["mds-push-notification.cjs",[[1,"mds-push-notification",{"visible":[1540],"behavior":[1],"show":[64],"hide":[64],"removeNotification":[64]},null,{"visible":["visibleChanged"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;