sm-click-library-ui 0.0.152 → 0.0.154

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.
@@ -13551,7 +13551,7 @@ const Ly = /* @__PURE__ */ kt($y, [["render", Fy], ["__scopeId", "data-v-ac25948
13551
13551
  }
13552
13552
  }
13553
13553
  }
13554
- }), ln = (e) => (vt("data-v-55ab3fa1"), e = e(), yt(), e), Gy = { class: "container" }, Zy = { class: "search-container relative" }, Ky = ["placeholder"], Jy = { class: "icon-container" }, eg = {
13554
+ }), ln = (e) => (vt("data-v-21255490"), e = e(), yt(), e), Gy = { class: "container" }, Zy = { class: "search-container relative" }, Ky = ["placeholder"], Jy = { class: "icon-container" }, eg = {
13555
13555
  key: 0,
13556
13556
  xmlns: "http://www.w3.org/2000/svg",
13557
13557
  fill: "none",
@@ -13586,7 +13586,7 @@ const Ly = /* @__PURE__ */ kt($y, [["render", Fy], ["__scopeId", "data-v-ac25948
13586
13586
  })
13587
13587
  ], -1)), lg = [
13588
13588
  sg
13589
- ], ig = { class: "department-list bg-base-300" }, ug = ["onClick"], cg = {
13589
+ ], ig = { class: "department-list" }, ug = ["onClick"], cg = {
13590
13590
  key: 0,
13591
13591
  style: { width: "150px" }
13592
13592
  }, dg = ["onUpdate:modelValue"], fg = /* @__PURE__ */ ln(() => /* @__PURE__ */ p("option", { selected: "" }, "normal", -1)), mg = /* @__PURE__ */ ln(() => /* @__PURE__ */ p("option", null, "supervisor", -1)), hg = [
@@ -13606,7 +13606,7 @@ const Ly = /* @__PURE__ */ kt($y, [["render", Fy], ["__scopeId", "data-v-ac25948
13606
13606
  department: { type: Array, default: null },
13607
13607
  modal_filter: { type: String, default: null },
13608
13608
  multiSelect: { type: Boolean, default: !0 },
13609
- permissions: { type: Boolean, default: !0 }
13609
+ permissions: { type: Boolean, default: !1 }
13610
13610
  },
13611
13611
  emits: ["depart"],
13612
13612
  setup(e, { emit: a }) {
@@ -13628,8 +13628,9 @@ const Ly = /* @__PURE__ */ kt($y, [["render", Fy], ["__scopeId", "data-v-ac25948
13628
13628
  u.value = !0, c(), u.value = !1;
13629
13629
  }
13630
13630
  function c() {
13631
- t.department && t.department.forEach((v) => {
13632
- s.value.some((S) => S.id === v.id) || s.value.push({ ...v, selected: !0 });
13631
+ t.department && t.department.length > 0 && t.department.forEach((v) => {
13632
+ const y = r.departments.find((S) => S.id === v.id);
13633
+ y && (y.selected = !0, s.value.some((A) => A.id === v.id) || s.value.push({ ...y }));
13633
13634
  }), n("depart", s.value);
13634
13635
  }
13635
13636
  function d(v) {
@@ -13648,7 +13649,7 @@ const Ly = /* @__PURE__ */ kt($y, [["render", Fy], ["__scopeId", "data-v-ac25948
13648
13649
  mt(p("input", {
13649
13650
  "onUpdate:modelValue": y[0] || (y[0] = (S) => o.value = S),
13650
13651
  placeholder: s.value.length > 0 ? e.multiSelect ? `Selecionados: ${s.value.length}` : `Selecionado: ${s.value[0].name}` : "Pesquise por nome.",
13651
- class: "search-input"
13652
+ class: "select-depart-input"
13652
13653
  }, null, 8, Ky), [
13653
13654
  [ma, o.value]
13654
13655
  ]),
@@ -13700,7 +13701,7 @@ const Ly = /* @__PURE__ */ kt($y, [["render", Fy], ["__scopeId", "data-v-ac25948
13700
13701
  ])
13701
13702
  ]));
13702
13703
  }
13703
- }, Ol = /* @__PURE__ */ kt(wg, [["__scopeId", "data-v-55ab3fa1"]]), bg = Mn("debug", {
13704
+ }, Ol = /* @__PURE__ */ kt(wg, [["__scopeId", "data-v-21255490"]]), bg = Mn("debug", {
13704
13705
  state: () => ({
13705
13706
  message: "Debug store initialized"
13706
13707
  }),