sm-click-library-ui 0.0.202 → 0.0.204

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.
@@ -13659,6 +13659,11 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13659
13659
  } catch (n) {
13660
13660
  console.log("Erro ao buscar departamentos:", n);
13661
13661
  }
13662
+ },
13663
+ removeDepartments(e) {
13664
+ this.departments = this.departments.filter(
13665
+ (n) => n.id !== e
13666
+ );
13662
13667
  }
13663
13668
  }
13664
13669
  }), hp = { class: "depart-select-container" }, vp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, pp = ["placeholder"], yp = { class: "icon-container" }, gp = {
@@ -13722,10 +13727,12 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13722
13727
  { immediate: !0 }
13723
13728
  );
13724
13729
  function u(M) {
13725
- const w = (t.externalDepartments || r.departments).find((x) => x.id === M);
13726
- console.log("delete", w), w && (s.value = s.value.filter(
13730
+ const w = (t.externalDepartments || r.departments).findIndex(
13731
+ (x) => x.id === M
13732
+ );
13733
+ w !== -1 && (s.value = s.value.filter(
13727
13734
  (x) => x.id !== M
13728
- ), w.selected = !1, a("depart", s.value), console.log(s.value));
13735
+ ), t.externalDepartments ? t.externalDepartments.splice(w, 1) : r.removeDepartments(M), a("depart", s.value));
13729
13736
  }
13730
13737
  async function d() {
13731
13738
  i.value = !0, f(), i.value = !1;
@@ -13843,7 +13850,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13843
13850
  ])
13844
13851
  ]));
13845
13852
  }
13846
- }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-5ea82b0b"]]), Pp = { class: "depart-select-container" }, Sp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Op = ["placeholder"], $p = { class: "icon-container" }, Ep = {
13853
+ }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-980eb631"]]), Pp = { class: "depart-select-container" }, Sp = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Op = ["placeholder"], $p = { class: "icon-container" }, Ep = {
13847
13854
  key: 0,
13848
13855
  xmlns: "http://www.w3.org/2000/svg",
13849
13856
  fill: "none",