sm-click-library-ui 0.0.297 → 0.0.298
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.
|
@@ -2011,7 +2011,7 @@ const ud = "v1/api/attendances/attendant/", dd = "v1/api/attendances/department/
|
|
|
2011
2011
|
try {
|
|
2012
2012
|
let n = `${cd}`;
|
|
2013
2013
|
const t = await Jt.get(n);
|
|
2014
|
-
this.instances = t.data, await Promise.all(
|
|
2014
|
+
this.instances = t.data, console.log(this.instances, t.data), await Promise.all(
|
|
2015
2015
|
this.instances.map(async (a) => {
|
|
2016
2016
|
a.isLoading = !0;
|
|
2017
2017
|
try {
|
|
@@ -14274,7 +14274,7 @@ function Jg(e, n = "add") {
|
|
|
14274
14274
|
}
|
|
14275
14275
|
function ew(e, n = "add") {
|
|
14276
14276
|
const t = Rr();
|
|
14277
|
-
n === "add" ? t.addInstance(e) : n === "delete" ? t.removeInstance(e) : console.error(`Ação "${n}" não suportada em attLibInstances.`);
|
|
14277
|
+
n === "add" ? t.addInstance(e) : n === "delete" ? t.removeInstance(e) : n === "update" ? (t.instances = e, t.loaded = !0) : console.error(`Ação "${n}" não suportada em attLibInstances.`);
|
|
14278
14278
|
}
|
|
14279
14279
|
async function tw(e, n, t, a = [], r = [], o = []) {
|
|
14280
14280
|
try {
|
|
@@ -14283,7 +14283,7 @@ async function tw(e, n, t, a = [], r = [], o = []) {
|
|
|
14283
14283
|
const l = await eo(e);
|
|
14284
14284
|
r.length > 0 && (l.departments = r, l.count = r.length);
|
|
14285
14285
|
const i = await Ia(e);
|
|
14286
|
-
a.length > 0 && (i.attendants = a, i.count = a.length), await Rr(e).fetchInstances();
|
|
14286
|
+
a.length > 0 && (i.attendants = a, i.count = a.length), await (await Rr(e)).fetchInstances();
|
|
14287
14287
|
} catch (s) {
|
|
14288
14288
|
console.error("Erro no setupLibrary:", s);
|
|
14289
14289
|
}
|