sm-click-library-ui 0.0.216 → 0.0.218

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.
@@ -13664,7 +13664,10 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13664
13664
  );
13665
13665
  },
13666
13666
  addDepartments(e) {
13667
- console.log(this.departments), this.departments.push(e), console.log(this.departments);
13667
+ const t = this.departments.findIndex(
13668
+ (n) => n.id === e.id
13669
+ );
13670
+ t !== -1 ? this.departments[t] = e : this.departments.push(e);
13668
13671
  }
13669
13672
  }
13670
13673
  }), 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 = {
@@ -13813,8 +13816,8 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13813
13816
  ])) : q("", !0),
13814
13817
  h("div", {
13815
13818
  class: he([
13816
- s.value.length > 0 && e.multiSelect ? "dropdown-expanded" : "dropdown",
13817
- "dropdown bg-base-300"
13819
+ s.value.length > 0 && e.multiSelect ? "dropdown-depart-expanded" : "dropdown-depart",
13820
+ "dropdown-depart bg-base-300"
13818
13821
  ])
13819
13822
  }, [
13820
13823
  h("div", _p, [
@@ -13832,7 +13835,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13832
13835
  e.multiSelect && e.permissions ? (p(), D("div", Mp, [
13833
13836
  mt(h("select", {
13834
13837
  "onUpdate:modelValue": (x) => w.permission = x,
13835
- class: "select-dropdown bg-base-300"
13838
+ class: "select-dropdown-depart bg-base-300"
13836
13839
  }, g[4] || (g[4] = [
13837
13840
  h("option", { selected: "" }, "normal", -1),
13838
13841
  h("option", null, "supervisor", -1)
@@ -13851,7 +13854,7 @@ const ip = /* @__PURE__ */ yt(op, [["render", lp], ["__scopeId", "data-v-bd52dde
13851
13854
  ])
13852
13855
  ]));
13853
13856
  }
13854
- }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-831f3b64"]]), 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 = {
13857
+ }, Ml = /* @__PURE__ */ yt(Cp, [["__scopeId", "data-v-ef471f02"]]), 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 = {
13855
13858
  key: 0,
13856
13859
  xmlns: "http://www.w3.org/2000/svg",
13857
13860
  fill: "none",