sm-click-library-ui 0.0.247 → 0.0.248
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.
|
@@ -13647,7 +13647,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
|
|
|
13647
13647
|
n !== -1 ? this.departments[n] = e : this.departments.push(e);
|
|
13648
13648
|
}
|
|
13649
13649
|
}
|
|
13650
|
-
}), ua = (e) => (it("data-v-
|
|
13650
|
+
}), ua = (e) => (it("data-v-e4eea3be"), e = e(), ut(), e), ng = { class: "depart-select-container" }, ag = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, rg = ["placeholder"], og = { class: "icon-container" }, sg = {
|
|
13651
13651
|
key: 0,
|
|
13652
13652
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13653
13653
|
fill: "none",
|
|
@@ -13723,10 +13723,9 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
|
|
|
13723
13723
|
},
|
|
13724
13724
|
{ immediate: !0 }
|
|
13725
13725
|
), Fe(
|
|
13726
|
-
() =>
|
|
13727
|
-
// Observa apenas o tamanho do array
|
|
13726
|
+
() => r.departments.length,
|
|
13728
13727
|
async (S, _) => {
|
|
13729
|
-
Number.isInteger(_) && Number.isInteger(S) && (await
|
|
13728
|
+
Number.isInteger(_) && Number.isInteger(S) && (await f(), await Ge(), await d());
|
|
13730
13729
|
},
|
|
13731
13730
|
{ immediate: !0 }
|
|
13732
13731
|
), Fe(
|
|
@@ -13754,12 +13753,16 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
|
|
|
13754
13753
|
}
|
|
13755
13754
|
async function h() {
|
|
13756
13755
|
const S = t.externalDepartments || r.departments;
|
|
13757
|
-
!S || S.length === 0
|
|
13756
|
+
if (!S || S.length === 0) {
|
|
13757
|
+
console.warn("Nenhum departamento disponível para atualização.");
|
|
13758
|
+
return;
|
|
13759
|
+
}
|
|
13760
|
+
t.department && t.department.length > 0 && t.department.forEach((_) => {
|
|
13758
13761
|
const A = S.find((v) => v.id === _.id);
|
|
13759
13762
|
A && (A.selected = !0, s.value.some(
|
|
13760
13763
|
(Y) => Y.id === _.id
|
|
13761
13764
|
) || s.value.push({ ...A }));
|
|
13762
|
-
}), a("depart", s.value)
|
|
13765
|
+
}), a("depart", s.value);
|
|
13763
13766
|
}
|
|
13764
13767
|
function b(S) {
|
|
13765
13768
|
const _ = s.value.findIndex(
|
|
@@ -13834,7 +13837,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
|
|
|
13834
13837
|
])
|
|
13835
13838
|
]));
|
|
13836
13839
|
}
|
|
13837
|
-
}, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-
|
|
13840
|
+
}, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-e4eea3be"]]), qa = (e) => (it("data-v-dabaf175"), e = e(), ut(), e), Dg = { class: "depart-select-container" }, Tg = { class: "search-container relative shadow shadow-gray-900 dark:shadow-gray-500" }, Pg = ["placeholder"], Sg = { class: "icon-container" }, Cg = {
|
|
13838
13841
|
key: 0,
|
|
13839
13842
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13840
13843
|
fill: "none",
|