sm-click-library-ui 0.0.243 → 0.0.245
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-80914028"), 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",
|
|
@@ -13724,11 +13724,10 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
|
|
|
13724
13724
|
{ immediate: !0 }
|
|
13725
13725
|
), Fe(
|
|
13726
13726
|
() => r.departments.length,
|
|
13727
|
-
// Observa apenas o tamanho do array
|
|
13728
13727
|
async (D, _) => {
|
|
13729
|
-
console.log(
|
|
13728
|
+
Number.isInteger(_) && Number.isInteger(D) && (console.log(
|
|
13730
13729
|
`Watch disparado, tamanho do array mudou: ${_} -> ${D}`
|
|
13731
|
-
), await
|
|
13730
|
+
), await f(), await Ge(), await d());
|
|
13732
13731
|
},
|
|
13733
13732
|
{ immediate: !0 }
|
|
13734
13733
|
), Fe(
|
|
@@ -13747,22 +13746,21 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
|
|
|
13747
13746
|
), t.externalDepartments ? t.externalDepartments.splice(x, 1) : r.removeDepartments(D), a("depart", s.value));
|
|
13748
13747
|
}
|
|
13749
13748
|
async function d() {
|
|
13750
|
-
i.value = !0, h(), i.value = !1;
|
|
13749
|
+
i.value = !0, await h(), i.value = !1;
|
|
13751
13750
|
}
|
|
13752
13751
|
async function f() {
|
|
13753
|
-
|
|
13754
|
-
console.log(D), D.forEach((_) => {
|
|
13752
|
+
(t.externalDepartments || r.departments).forEach((_) => {
|
|
13755
13753
|
_.selected = !1;
|
|
13756
|
-
}), s.value = []
|
|
13754
|
+
}), s.value = [];
|
|
13757
13755
|
}
|
|
13758
|
-
function h() {
|
|
13756
|
+
async function h() {
|
|
13759
13757
|
const D = t.externalDepartments || r.departments;
|
|
13760
|
-
|
|
13758
|
+
t.department && t.department.length > 0 && (console.log(t.department), t.department.forEach((_) => {
|
|
13761
13759
|
const x = D.find((g) => g.id === _.id);
|
|
13762
13760
|
x && (x.selected = !0, s.value.some(
|
|
13763
13761
|
(B) => B.id === _.id
|
|
13764
13762
|
) || s.value.push({ ...x }));
|
|
13765
|
-
}), console.log(
|
|
13763
|
+
})), console.log(s.value), a("depart", s.value);
|
|
13766
13764
|
}
|
|
13767
13765
|
function b(D) {
|
|
13768
13766
|
const _ = s.value.findIndex(
|
|
@@ -13837,7 +13835,7 @@ const jy = /* @__PURE__ */ pt(Ly, [["render", Hy], ["__scopeId", "data-v-17a2cc3
|
|
|
13837
13835
|
])
|
|
13838
13836
|
]));
|
|
13839
13837
|
}
|
|
13840
|
-
}, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-
|
|
13838
|
+
}, Rl = /* @__PURE__ */ pt(Mg, [["__scopeId", "data-v-80914028"]]), qa = (e) => (it("data-v-bad1997e"), 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" }, $g = {
|
|
13841
13839
|
key: 0,
|
|
13842
13840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13843
13841
|
fill: "none",
|