@luizleon/sf.prefeiturasp.vuecomponents 4.0.6 → 4.0.8
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.
- package/dist/components/button/Button.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/services/authService.d.ts +1 -2
- package/dist/sf.prefeiturasp.vuecomponents.cjs +3 -3
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +16 -32
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +17 -17
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/package.json +1 -1
|
@@ -311,7 +311,8 @@ const dl = /* @__PURE__ */ rr(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
311
311
|
name: {},
|
|
312
312
|
id: {},
|
|
313
313
|
type: { default: "button" },
|
|
314
|
-
value: {}
|
|
314
|
+
value: {},
|
|
315
|
+
iconFilled: { type: Boolean }
|
|
315
316
|
},
|
|
316
317
|
setup(t) {
|
|
317
318
|
const e = t;
|
|
@@ -335,8 +336,9 @@ const dl = /* @__PURE__ */ rr(sl, [["render", ul]]), us = /* @__PURE__ */ Ze({
|
|
|
335
336
|
loading: e.loading,
|
|
336
337
|
size: e.size,
|
|
337
338
|
color: void 0,
|
|
338
|
-
"button-props": { tabindex: -1 }
|
|
339
|
-
|
|
339
|
+
"button-props": { tabindex: -1 },
|
|
340
|
+
filled: e.iconFilled
|
|
341
|
+
}, null, 8, ["icon", "loading", "size", "filled"])) : e.loading ? (K(), Te(Vr, {
|
|
340
342
|
key: 1,
|
|
341
343
|
loading: !0,
|
|
342
344
|
size: e.size,
|
|
@@ -3471,35 +3473,13 @@ function ef(t) {
|
|
|
3471
3473
|
const e = new Ys(t), n = {
|
|
3472
3474
|
Instance: e,
|
|
3473
3475
|
isAuthenticated: !1,
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
try {
|
|
3482
|
-
o(), document.documentElement.classList.add("app-mounted");
|
|
3483
|
-
} catch (l) {
|
|
3484
|
-
console.error(l), document.documentElement.setAttribute(
|
|
3485
|
-
"data-app-message",
|
|
3486
|
-
"Ocorreu um erro na inicialização. Verifique o console para mais detalhes."
|
|
3487
|
-
);
|
|
3488
|
-
}
|
|
3489
|
-
}).catch((s) => {
|
|
3490
|
-
document.documentElement.setAttribute(
|
|
3491
|
-
"data-app-message",
|
|
3492
|
-
"Ocorreu na comunicação com o servidor de autenticação."
|
|
3493
|
-
);
|
|
3494
|
-
});
|
|
3495
|
-
},
|
|
3496
|
-
Logout: () => {
|
|
3497
|
-
e.logout({
|
|
3498
|
-
redirectUri: location.origin
|
|
3499
|
-
}).then(() => {
|
|
3500
|
-
sessionStorage.removeItem("name");
|
|
3501
|
-
});
|
|
3502
|
-
}
|
|
3476
|
+
InitAsync: async (r = {}) => await Qd() ? (r.onLoad === "login-required" && document.documentElement.setAttribute(
|
|
3477
|
+
"data-app-message",
|
|
3478
|
+
"Autorizando..."
|
|
3479
|
+
), await e.init(r).then(async (i) => (i && (n.isAuthenticated = !0, await Zd(e, n)), n.User ?? null)).catch((i) => (console.error(i), document.documentElement.setAttribute(
|
|
3480
|
+
"data-app-message",
|
|
3481
|
+
"Ocorreu um erro na inicialização. Verifique o console para mais detalhes."
|
|
3482
|
+
), null))) : null
|
|
3503
3483
|
};
|
|
3504
3484
|
return Xs = n, n;
|
|
3505
3485
|
}
|
|
@@ -8948,10 +8928,14 @@ class ng {
|
|
|
8948
8928
|
}
|
|
8949
8929
|
}
|
|
8950
8930
|
const mg = (t, e) => new ng(t, e);
|
|
8931
|
+
function pg() {
|
|
8932
|
+
document.documentElement.classList.add("app-mounted");
|
|
8933
|
+
}
|
|
8951
8934
|
Xr.SetInitialTheme();
|
|
8952
8935
|
export {
|
|
8953
8936
|
zi as AppResult,
|
|
8954
8937
|
ng as AxiosClient,
|
|
8938
|
+
pg as RemovePreloader,
|
|
8955
8939
|
kl as SfButton,
|
|
8956
8940
|
cg as SfContent,
|
|
8957
8941
|
wl as SfDrawer,
|