@prefabs.tech/vue3-user 0.15.0 → 0.16.0
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/PrefabsTechVue3User.es.js +19 -11
- package/dist/PrefabsTechVue3User.umd.js +9 -9
- package/dist/src/layouts/BasicLayout.vue.d.ts.map +1 -1
- package/dist/src/router.d.ts.map +1 -1
- package/dist/src/store.d.ts +6 -0
- package/dist/src/store.d.ts.map +1 -1
- package/dist/src/types/auth.d.ts +1 -0
- package/dist/src/types/auth.d.ts.map +1 -1
- package/dist/src/views/Login.vue.d.ts.map +1 -1
- package/dist/vue3-user.css +1 -1
- package/package.json +11 -11
|
@@ -16668,7 +16668,7 @@ const IA = ["for"], $A = ["id", "disabled", "placeholder", "type"], PA = {
|
|
|
16668
16668
|
type: String
|
|
16669
16669
|
},
|
|
16670
16670
|
name: {
|
|
16671
|
-
default: "
|
|
16671
|
+
default: "input",
|
|
16672
16672
|
required: !1,
|
|
16673
16673
|
type: String
|
|
16674
16674
|
},
|
|
@@ -17500,10 +17500,14 @@ const IA = ["for"], $A = ["id", "disabled", "placeholder", "type"], PA = {
|
|
|
17500
17500
|
await i(_).then(async (w) => {
|
|
17501
17501
|
if (w) {
|
|
17502
17502
|
const R = t?.user?.supportedRoles;
|
|
17503
|
-
u(w), R && await a.verifySessionRoles(R) || !R?.length
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
}
|
|
17503
|
+
if (u(w), R && await a.verifySessionRoles(R) || !R?.length) {
|
|
17504
|
+
const k = sessionStorage.getItem("redirectAfterLogin");
|
|
17505
|
+
k ? (sessionStorage.removeItem("redirectAfterLogin"), c.push(k)) : c.push({ name: "home" });
|
|
17506
|
+
} else
|
|
17507
|
+
We.emit("notify", {
|
|
17508
|
+
text: n("user.login.messages.permissionDenied"),
|
|
17509
|
+
type: "error"
|
|
17510
|
+
}), s();
|
|
17507
17511
|
}
|
|
17508
17512
|
}).catch((w) => {
|
|
17509
17513
|
d.value = w.message;
|
|
@@ -22859,7 +22863,11 @@ const BM = { class: "pagination" }, VM = {
|
|
|
22859
22863
|
const r = a.meta, n = lt(), l = !!t?.features?.signUp?.emailVerification, o = a.name, i = ["verifyEmail", "verifyEmailReminder"], { user: s } = ia(n), { getUser: u, getVerificationStatus: c } = n;
|
|
22860
22864
|
s.value || (s.value = await u());
|
|
22861
22865
|
const d = s.value?.thirdParty && t?.socialLogins?.includes(s.value?.thirdParty?.id);
|
|
22862
|
-
if (r.authenticated && !s.value
|
|
22866
|
+
if (r.authenticated && !s.value) {
|
|
22867
|
+
sessionStorage.setItem("redirectAfterLogin", a.fullPath), e.push({ name: "login" });
|
|
22868
|
+
return;
|
|
22869
|
+
}
|
|
22870
|
+
if (d && o === "changePassword" && e.push({ name: "home" }), r.authenticated && l && s.value) {
|
|
22863
22871
|
const y = await c();
|
|
22864
22872
|
if (!y && ![...i, "profile"].includes(o)) {
|
|
22865
22873
|
e.push({ name: "verifyEmailReminder" });
|
|
@@ -23772,7 +23780,7 @@ const BM = { class: "pagination" }, VM = {
|
|
|
23772
23780
|
header: l("user.table.defaultColumns.email")
|
|
23773
23781
|
},
|
|
23774
23782
|
{
|
|
23775
|
-
accessorFn: (M) => (M.givenName ? M.givenName : "") + (M.middleNames ? " " + M.middleNames : "") + (M.surname ? " " + M.surname : "") || "-",
|
|
23783
|
+
accessorFn: (M) => M.name?.trim() ? M.name : (M.givenName ? M.givenName : "") + (M.middleNames ? " " + M.middleNames : "") + (M.surname ? " " + M.surname : "") || "-",
|
|
23776
23784
|
accessorKey: "name",
|
|
23777
23785
|
cell: ({ getValue: M }) => M(),
|
|
23778
23786
|
enableColumnFilter: !0,
|
|
@@ -24023,13 +24031,13 @@ const BM = { class: "pagination" }, VM = {
|
|
|
24023
24031
|
return d && !d.meta?.authenticated;
|
|
24024
24032
|
}));
|
|
24025
24033
|
return (c, d) => (A(), ae(m(yg), {
|
|
24026
|
-
"aria-expanded": l.value?.expanded
|
|
24027
|
-
"no-locale-switcher": e.noLocaleSwitcher
|
|
24034
|
+
"aria-expanded": l.value?.expanded
|
|
24028
24035
|
}, {
|
|
24029
24036
|
header: Q(() => [
|
|
24030
24037
|
ue(m(bg), {
|
|
24031
24038
|
ref_key: "appHeader",
|
|
24032
24039
|
ref: l,
|
|
24040
|
+
"no-locale-switcher": e.noLocaleSwitcher,
|
|
24033
24041
|
"no-toggle": ""
|
|
24034
24042
|
}, {
|
|
24035
24043
|
logo: Q(() => [
|
|
@@ -24056,13 +24064,13 @@ const BM = { class: "pagination" }, VM = {
|
|
|
24056
24064
|
]), 1024)) : U("", !0)
|
|
24057
24065
|
]),
|
|
24058
24066
|
_: 3
|
|
24059
|
-
},
|
|
24067
|
+
}, 8, ["no-locale-switcher"])
|
|
24060
24068
|
]),
|
|
24061
24069
|
default: Q(() => [
|
|
24062
24070
|
ie(c.$slots, "default")
|
|
24063
24071
|
]),
|
|
24064
24072
|
_: 3
|
|
24065
|
-
}, 8, ["aria-expanded"
|
|
24073
|
+
}, 8, ["aria-expanded"]));
|
|
24066
24074
|
}
|
|
24067
24075
|
}), mx = {
|
|
24068
24076
|
name: "SidebarHeaderLayout"
|