@factoringplus/pl-components-pack-v3 0.11.2 → 0.11.3

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.
@@ -35540,7 +35540,7 @@ function _sfc_render(g, y) {
35540
35540
  renderSlot(g.$slots, "default", {}, void 0, !0)
35541
35541
  ]);
35542
35542
  }
35543
- const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-03c9626c"]]), plSnackbar_vue_vue_type_style_index_0_scoped_c5869652_lang = "", _hoisted_1 = {
35543
+ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__scopeId", "data-v-03c9626c"]]), plSnackbar_vue_vue_type_style_index_0_scoped_846cfe39_lang = "", _hoisted_1 = {
35544
35544
  key: 0,
35545
35545
  class: "pl-snackbar__wrapper"
35546
35546
  }, _hoisted_2 = { class: "pl-snackbar__icon" }, _hoisted_3 = { class: "pl-snackbar__main" }, _hoisted_4 = { class: "pl-snackbar__text" }, _hoisted_5 = { class: "pl-snackbar__title" }, _hoisted_6 = {
@@ -35652,7 +35652,7 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render],
35652
35652
  _: 1
35653
35653
  }));
35654
35654
  }
35655
- }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c5869652"]]), snackbarAnimation = "";
35655
+ }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-846cfe39"]]), snackbarAnimation = "";
35656
35656
  let snackbarId = 0;
35657
35657
  const renderSnackbar = function(g) {
35658
35658
  const { icon: y, color: j, title: z, message: L, button: V, action: re, buttonAdd: ae, actionAdd: le } = g;
@@ -35661,7 +35661,8 @@ const renderSnackbar = function(g) {
35661
35661
  de.id = "snackbar", document.body.appendChild(de);
35662
35662
  }
35663
35663
  const ie = document.createElement("div");
35664
- return ie.id = `snackbar-${snackbarId}`, ie.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(ie), createApp({
35664
+ ie.id = `snackbar-${snackbarId}`, ie.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(ie);
35665
+ const pe = createApp({
35665
35666
  render() {
35666
35667
  return h$2(TransitionGroup, { name: "pl-snackbar-fade", mode: "out-in" }, () => [
35667
35668
  h$2(PlSnackbar, {
@@ -35677,7 +35678,12 @@ const renderSnackbar = function(g) {
35677
35678
  })
35678
35679
  ]);
35679
35680
  }
35680
- }).mount(`#snackbar-${snackbarId}`), snackbarId++, {
35681
+ });
35682
+ return pe.mount(`#snackbar-${snackbarId}`), setTimeout(() => {
35683
+ ie.classList.remove("slideIn-animation"), ie.classList.add("fadeOut-animation"), ie.addEventListener("animationend", () => {
35684
+ pe.unmount(), ie.remove();
35685
+ });
35686
+ }, 4200), snackbarId++, {
35681
35687
  id: ie.id,
35682
35688
  close: () => {
35683
35689
  closeSnackbar(ie.id);