@factoringplus/pl-components-pack-v3 0.11.10-pre-02 → 0.11.10

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.
@@ -35796,10 +35796,7 @@ function _sfc_render$1(g, y) {
35796
35796
  renderSlot(g.$slots, "default", {}, void 0, !0)
35797
35797
  ]);
35798
35798
  }
35799
- const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1], ["__scopeId", "data-v-03c9626c"]]), plSnackbar_vue_vue_type_style_index_0_scoped_4ad1029c_lang = "", _hoisted_1$3 = {
35800
- key: 0,
35801
- class: "pl-snackbar__wrapper"
35802
- }, _hoisted_2$3 = { class: "pl-snackbar__icon" }, _hoisted_3$2 = { class: "pl-snackbar__main" }, _hoisted_4$1 = { class: "pl-snackbar__text" }, _hoisted_5$1 = { class: "pl-snackbar__title" }, _hoisted_6$1 = {
35799
+ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1], ["__scopeId", "data-v-03c9626c"]]), plSnackbar_vue_vue_type_style_index_0_scoped_76eaac17_lang = "", _hoisted_1$3 = ["id"], _hoisted_2$3 = { class: "pl-snackbar__icon" }, _hoisted_3$2 = { class: "pl-snackbar__main" }, _hoisted_4$1 = { class: "pl-snackbar__text" }, _hoisted_5$1 = { class: "pl-snackbar__title" }, _hoisted_6$1 = {
35803
35800
  key: 0,
35804
35801
  class: "pl-snackbar__descr"
35805
35802
  }, _hoisted_7$1 = {
@@ -35808,6 +35805,10 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1
35808
35805
  }, _hoisted_8$1 = { class: "pl-snackbar__close" }, _sfc_main$3 = {
35809
35806
  __name: "pl-snackbar",
35810
35807
  props: {
35808
+ id: {
35809
+ type: Number,
35810
+ default: 0
35811
+ },
35811
35812
  icon: {
35812
35813
  type: String,
35813
35814
  default: "Cube24"
@@ -35857,13 +35858,19 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1
35857
35858
  }
35858
35859
  function V() {
35859
35860
  j.value = !1;
35861
+ const re = document.getElementById(`snackbar-${y.id}`);
35862
+ re && re.remove();
35860
35863
  }
35861
35864
  return (re, ae) => (openBlock(), createBlock(TransitionGroup, {
35862
35865
  name: "pl-snackbar-fade",
35863
35866
  mode: "out-in"
35864
35867
  }, {
35865
35868
  default: withCtx(() => [
35866
- j.value ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
35869
+ j.value ? (openBlock(), createElementBlock("div", {
35870
+ key: 0,
35871
+ id: y.id,
35872
+ class: "pl-snackbar__wrapper"
35873
+ }, [
35867
35874
  createElementVNode("div", _hoisted_2$3, [
35868
35875
  createVNode(_sfc_main$1o, {
35869
35876
  color: y.color,
@@ -35904,12 +35911,12 @@ const PlBtn = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$1
35904
35911
  onClick: V
35905
35912
  })
35906
35913
  ])
35907
- ])) : createCommentVNode("", !0)
35914
+ ], 8, _hoisted_1$3)) : createCommentVNode("", !0)
35908
35915
  ]),
35909
35916
  _: 1
35910
35917
  }));
35911
35918
  }
35912
- }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4ad1029c"]]), snackbarAnimation = "";
35919
+ }, PlSnackbar = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-76eaac17"]]), snackbarAnimation = "";
35913
35920
  let snackbarId = 0;
35914
35921
  const renderSnackbar = function(g) {
35915
35922
  const { icon: y, color: j, title: z, message: L, button: V, action: re, buttonAdd: ae, actionAdd: le, blockHide: ue } = g;
@@ -35918,7 +35925,7 @@ const renderSnackbar = function(g) {
35918
35925
  Ne.id = "snackbar", document.body.appendChild(Ne);
35919
35926
  }
35920
35927
  const pe = document.createElement("div");
35921
- pe.id = `snackbar-${snackbarId}`, pe.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(pe);
35928
+ pe.id = `snackbar-${snackbarId}`, pe == null || pe.classList.add("slideIn-animation"), document.getElementById("snackbar").appendChild(pe);
35922
35929
  const de = createApp({
35923
35930
  render() {
35924
35931
  return h$2(TransitionGroup, { name: "pl-snackbar-fade", mode: "out-in" }, () => [
@@ -35938,9 +35945,9 @@ const renderSnackbar = function(g) {
35938
35945
  }
35939
35946
  });
35940
35947
  return de.mount(`#snackbar-${snackbarId}`), ue || setTimeout(() => {
35941
- pe.classList.remove("slideIn-animation"), pe.classList.add("fadeOut-animation"), pe.addEventListener("animationend", () => {
35948
+ pe && (pe.classList.remove("slideIn-animation"), pe.classList.add("fadeOut-animation"), pe.addEventListener("animationend", () => {
35942
35949
  de.unmount(), pe.remove();
35943
- });
35950
+ }));
35944
35951
  }, 4200), snackbarId++, {
35945
35952
  id: pe.id,
35946
35953
  close: () => {
@@ -35949,9 +35956,9 @@ const renderSnackbar = function(g) {
35949
35956
  };
35950
35957
  };
35951
35958
  function removeSnackbar(g) {
35952
- g.classList.remove("slideIn-animation"), g.classList.add("fadeOut-animation"), g.addEventListener("animationend", () => {
35959
+ g && (g.classList.remove("slideIn-animation"), g.classList.add("fadeOut-animation"), g.addEventListener("animationend", () => {
35953
35960
  g && g.remove();
35954
- });
35961
+ }));
35955
35962
  }
35956
35963
  const closeSnackbar = (g) => {
35957
35964
  const y = document.getElementById(g);