@aeria-ui/ui 0.0.143 → 0.0.145
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/{_id_-37025fe2.js → _id_-B9rfyNBK.js} +9 -14
- package/dist/activation-CZdJuNBp.js +136 -0
- package/dist/components/aeria-accordion/aeria-accordion.vue.d.ts +8 -12
- package/dist/components/aeria-badge/aeria-badge.vue.d.ts +8 -12
- package/dist/components/aeria-bare-button/aeria-bare-button.vue.d.ts +11 -15
- package/dist/components/aeria-button/aeria-button.vue.d.ts +10 -14
- package/dist/components/aeria-card/aeria-card.vue.d.ts +11 -15
- package/dist/components/aeria-context-menu/aeria-context-menu.vue.d.ts +19 -22
- package/dist/components/aeria-crud/_internals/helpers.d.ts +2 -3
- package/dist/components/aeria-crud/_internals/layouts/aeria-grid/aeria-grid.vue.d.ts +2 -12
- package/dist/components/aeria-crud/_internals/layouts/aeria-tabular/aeria-tabular.vue.d.ts +10 -15
- package/dist/components/aeria-crud/_internals/layouts/index.d.ts +40 -82
- package/dist/components/aeria-crud/aeria-crud.vue.d.ts +21 -26
- package/dist/components/aeria-filter-panel/aeria-filter-panel.vue.d.ts +2 -2
- package/dist/components/aeria-grid/aeria-grid.vue.d.ts +8 -12
- package/dist/components/aeria-icon/aeria-icon.vue.d.ts +9 -14
- package/dist/components/aeria-info/aeria-info.vue.d.ts +11 -26
- package/dist/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +16 -33
- package/dist/components/aeria-main/aeria-main.vue.d.ts +8 -3
- package/dist/components/aeria-menu/aeria-menu.vue.d.ts +7 -2
- package/dist/components/aeria-pagination/aeria-pagination.vue.d.ts +5 -15
- package/dist/components/aeria-panel/aeria-panel.vue.d.ts +15 -33
- package/dist/components/aeria-picture/aeria-picture.vue.d.ts +10 -14
- package/dist/components/aeria-table/aeria-table.vue.d.ts +20 -25
- package/dist/components/aeria-tabs/aeria-tabs.vue.d.ts +9 -13
- package/dist/components/dashboard/aeria-crud-topbar/aeria-crud-topbar.vue.d.ts +1 -10
- package/dist/components/dashboard/aeria-password-form/aeria-password-form.vue.d.ts +13 -17
- package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +9 -14
- package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +9 -14
- package/dist/components/form/aeria-checkbox/aeria-checkbox.vue.d.ts +16 -40
- package/dist/components/form/aeria-file/_internals/components/aeria-file-item.vue.d.ts +8 -13
- package/dist/components/form/aeria-file/aeria-file.vue.d.ts +12 -22
- package/dist/components/form/aeria-form/_internals/helpers.d.ts +2 -3
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +26 -47
- package/dist/components/form/aeria-input/aeria-input.vue.d.ts +17 -22
- package/dist/components/form/aeria-options/aeria-options.vue.d.ts +7 -29
- package/dist/components/form/aeria-search/_internals/components/aeria-search-container/aeria-search-container.vue.d.ts +14 -16
- package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +13 -18
- package/dist/components/form/aeria-search/aeria-search.vue.d.ts +3 -25
- package/dist/components/form/aeria-select/aeria-select.vue.d.ts +15 -18
- package/dist/components/form/aeria-switch/aeria-switch.vue.d.ts +8 -18
- package/dist/components/form/types.d.ts +1 -2
- package/dist/components/index.d.ts +0 -1
- package/dist/index-CYHXxuxa.js +25 -0
- package/dist/{index-075f5d1f.js → index-D9-xEbzX.js} +11 -14
- package/dist/{index-9ae58de7.js → index-DPIvfGmD.js} +36 -40
- package/dist/index-nfGoLtIp.js +3502 -0
- package/dist/redefine-password-CL5NDEZp.js +135 -0
- package/dist/routes.d.ts +10 -3
- package/dist/{signin-717aab64.js → signin-BzQLHmp1.js} +3 -6
- package/dist/{signup-2c7983c0.js → signup-CUP6Q-pT.js} +24 -28
- package/dist/ui.js +35 -42
- package/dist/views/dashboard/[collection]/[id].vue.d.ts +1 -10
- package/dist/views/dashboard/[collection]/index.vue.d.ts +8 -12
- package/dist/views/dashboard/user/profile/index.vue.d.ts +7 -2
- package/dist/views/user/redefine-password.vue.d.ts +2 -0
- package/package.json +5 -4
- package/dist/activation-0289d124.js +0 -86
- package/dist/index-057358d1.js +0 -31
- package/dist/index-caa746ed.js +0 -3522
- /package/dist/{style.css → ui.css} +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as R, inject as M, ref as b, onMounted as A, openBlock as c, createElementBlock as p, unref as s, createElementVNode as y, toDisplayString as a, createVNode as l, withCtx as m, withModifiers as C, createTextVNode as _ } from "vue";
|
|
2
|
+
import { INSTANCE_VARS_SYMBOL as U } from "@aeria-ui/core";
|
|
3
|
+
import { useStore as $ } from "@aeria-ui/state-management";
|
|
4
|
+
import { useRouter as x } from "vue-router";
|
|
5
|
+
import { t as i } from "@aeria-ui/i18n";
|
|
6
|
+
import { A as E, _ as I, a as g } from "./index-nfGoLtIp.js";
|
|
7
|
+
const N = { key: 0 }, T = {
|
|
8
|
+
key: 0,
|
|
9
|
+
style: { display: "grid", gap: "1rem" }
|
|
10
|
+
}, q = {
|
|
11
|
+
key: 1,
|
|
12
|
+
style: { display: "grid", gap: "1rem" }
|
|
13
|
+
}, B = {
|
|
14
|
+
key: 1,
|
|
15
|
+
style: { display: "grid", gap: "1rem" }
|
|
16
|
+
}, W = /* @__PURE__ */ R({
|
|
17
|
+
__name: "redefine-password",
|
|
18
|
+
setup(O) {
|
|
19
|
+
const r = x(), u = $("user"), d = $("meta"), f = M(U), h = r.currentRoute.value.query.step || "success", w = r.currentRoute.value.query.u, v = r.currentRoute.value.query.t, o = b({
|
|
20
|
+
name: "",
|
|
21
|
+
email: "",
|
|
22
|
+
password: "",
|
|
23
|
+
confirmation: ""
|
|
24
|
+
});
|
|
25
|
+
A(async () => {
|
|
26
|
+
u.$actions.signout(), await V();
|
|
27
|
+
});
|
|
28
|
+
const k = () => {
|
|
29
|
+
if (typeof f < "u") {
|
|
30
|
+
const { next: e } = r.currentRoute.value.query;
|
|
31
|
+
if (typeof e == "string" && f.allowedRedirectionUris && f.allowedRedirectionUris.includes(e)) {
|
|
32
|
+
e.startsWith("/") ? r.push(e) : location.href = e;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
r.push("/user/signin");
|
|
37
|
+
}, V = async () => {
|
|
38
|
+
const { error: e, result: t } = await u.$functions.getInfo({
|
|
39
|
+
userId: w,
|
|
40
|
+
token: v
|
|
41
|
+
});
|
|
42
|
+
if (e) {
|
|
43
|
+
d.$actions.spawnModal({
|
|
44
|
+
title: `Error! ${e.httpStatus}`,
|
|
45
|
+
body: e.code
|
|
46
|
+
});
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (!t.active) {
|
|
50
|
+
d.$actions.spawnModal({
|
|
51
|
+
title: "Attention!",
|
|
52
|
+
body: "User is not active"
|
|
53
|
+
});
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
o.value.name = t.name, o.value.email = t.email;
|
|
57
|
+
}, S = async () => {
|
|
58
|
+
const { error: e } = await u.$actions.custom("redefinePassword", {
|
|
59
|
+
password: o.value.password,
|
|
60
|
+
userId: w,
|
|
61
|
+
token: v
|
|
62
|
+
});
|
|
63
|
+
if (e) {
|
|
64
|
+
console.log(e), d.$actions.spawnModal({
|
|
65
|
+
title: `Error! ${e.httpStatus}`,
|
|
66
|
+
body: e.code
|
|
67
|
+
});
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
u.credentials.email = o.value.email, d.$actions.spawnModal({
|
|
71
|
+
title: "Success!",
|
|
72
|
+
body: "Your password was sucessfully redefined! Try loggin with your email and password."
|
|
73
|
+
}), k();
|
|
74
|
+
};
|
|
75
|
+
return (e, t) => o.value.email !== "" ? (c(), p("div", N, [
|
|
76
|
+
s(h) === "password" ? (c(), p("div", T, [
|
|
77
|
+
y("h1", null, a(s(i)("redefine_password")), 1),
|
|
78
|
+
l(E, {
|
|
79
|
+
modelValue: o.value,
|
|
80
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => o.value = n),
|
|
81
|
+
form: {
|
|
82
|
+
name: {
|
|
83
|
+
type: "string",
|
|
84
|
+
readOnly: !0
|
|
85
|
+
},
|
|
86
|
+
email: {
|
|
87
|
+
type: "string",
|
|
88
|
+
readOnly: !0
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}, null, 8, ["modelValue"]),
|
|
92
|
+
l(I, {
|
|
93
|
+
modelValue: o.value,
|
|
94
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n)
|
|
95
|
+
}, {
|
|
96
|
+
default: m(({ passwordError: n }) => [
|
|
97
|
+
l(g, {
|
|
98
|
+
disabled: !!n,
|
|
99
|
+
onClick: C(S, ["prevent"])
|
|
100
|
+
}, {
|
|
101
|
+
default: m(() => [
|
|
102
|
+
_(a(s(i)("redefine_password")), 1)
|
|
103
|
+
]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["disabled"])
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
}, 8, ["modelValue"])
|
|
109
|
+
])) : (c(), p("div", q, [
|
|
110
|
+
y("h1", null, a(s(i)("sucessfully_redefined_password")), 1),
|
|
111
|
+
l(g, {
|
|
112
|
+
onClick: t[2] || (t[2] = (n) => s(r).push("/user/signin"))
|
|
113
|
+
}, {
|
|
114
|
+
default: m(() => [
|
|
115
|
+
_(a(s(i)("go_to_login_page")), 1)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
})
|
|
119
|
+
]))
|
|
120
|
+
])) : (c(), p("div", B, [
|
|
121
|
+
y("h1", null, a(s(i)("invalid_link")), 1),
|
|
122
|
+
l(g, {
|
|
123
|
+
onClick: t[3] || (t[3] = (n) => s(r).push("/user/signin"))
|
|
124
|
+
}, {
|
|
125
|
+
default: m(() => [
|
|
126
|
+
_(a(s(i)("go_to_login_page")), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
})
|
|
130
|
+
]));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
W as default
|
|
135
|
+
};
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
2
|
import { RouteRecordRaw } from 'vue-router';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { RouteTitleConfig } from '../../core/dist';
|
|
4
|
+
type RouteConfig = {
|
|
5
|
+
meta?: {
|
|
6
|
+
title: RouteTitleConfig;
|
|
7
|
+
};
|
|
8
|
+
children?: RouteConfig[];
|
|
9
|
+
};
|
|
10
|
+
export declare const userRoutes: (component: Component | (() => Promise<Component>), children?: (RouteRecordRaw & RouteConfig)[]) => RouteRecordRaw & RouteConfig;
|
|
11
|
+
export declare const dashboardRoutes: (component: Component | (() => Promise<Component>), children?: (RouteRecordRaw & RouteConfig)[]) => RouteRecordRaw & RouteConfig;
|
|
12
|
+
export {};
|
|
@@ -2,11 +2,8 @@ import { defineComponent as T, inject as v, resolveDirective as V, openBlock as
|
|
|
2
2
|
import { INSTANCE_VARS_SYMBOL as w, STORAGE_NAMESPACE as x } from "@aeria-ui/core";
|
|
3
3
|
import { useStore as y } from "@aeria-ui/state-management";
|
|
4
4
|
import { useRouter as N } from "vue-router";
|
|
5
|
-
import { A as E, a as h } from "./index-
|
|
6
|
-
|
|
7
|
-
import "@aeriajs/common";
|
|
8
|
-
import "@aeria-ui/utils";
|
|
9
|
-
const B = { style: { "text-align": "center" } }, L = ["innerHTML"], M = { key: 1 }, R = { style: { width: "100%", display: "flex", "flex-direction": "column", gap: "1rem" } }, q = /* @__PURE__ */ T({
|
|
5
|
+
import { A as E, a as h } from "./index-nfGoLtIp.js";
|
|
6
|
+
const B = { style: { "text-align": "center" } }, L = ["innerHTML"], M = { key: 1 }, R = { style: { width: "100%", display: "flex", "flex-direction": "column", gap: "1rem" } }, I = /* @__PURE__ */ T({
|
|
10
7
|
__name: "signin",
|
|
11
8
|
setup(D) {
|
|
12
9
|
const r = N(), t = y("user"), m = y("meta"), l = v(w), p = () => {
|
|
@@ -83,5 +80,5 @@ const B = { style: { "text-align": "center" } }, L = ["innerHTML"], M = { key: 1
|
|
|
83
80
|
}
|
|
84
81
|
});
|
|
85
82
|
export {
|
|
86
|
-
|
|
83
|
+
I as default
|
|
87
84
|
};
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { defineComponent as h, withAsyncContext as A, ref as
|
|
1
|
+
import { defineComponent as h, withAsyncContext as A, ref as c, resolveDirective as C, openBlock as b, createElementBlock as $, Fragment as x, createElementVNode as p, toDisplayString as n, withDirectives as B, createBlock as S, unref as g, withCtx as s, createTextVNode as m, createVNode as i, mergeProps as U, withModifiers as D } from "vue";
|
|
2
2
|
import { useRouter as E } from "vue-router";
|
|
3
3
|
import { useStore as V } from "@aeria-ui/state-management";
|
|
4
|
-
import { b as M, A as N, _ as F, c as P, a as j } from "./index-
|
|
5
|
-
|
|
6
|
-
import "@aeria-ui/core";
|
|
7
|
-
import "@aeriajs/common";
|
|
8
|
-
import "@aeria-ui/utils";
|
|
9
|
-
const q = { style: { display: "flex", "flex-direction": "column", "align-items": "start", gap: "2rem" } }, O = /* @__PURE__ */ h({
|
|
4
|
+
import { b as M, A as N, _ as F, c as P, a as j } from "./index-nfGoLtIp.js";
|
|
5
|
+
const q = { style: { display: "flex", "flex-direction": "column", "align-items": "start", gap: "2rem" } }, H = /* @__PURE__ */ h({
|
|
10
6
|
__name: "signup",
|
|
11
7
|
async setup(I) {
|
|
12
8
|
let f, v;
|
|
13
|
-
const w = E(), l = V("user"),
|
|
14
|
-
typeof
|
|
9
|
+
const w = E(), l = V("user"), r = V("meta");
|
|
10
|
+
typeof r.descriptions.user != "object" && ([f, v] = A(() => r.$actions.describe({
|
|
15
11
|
collections: ["user"],
|
|
16
12
|
roles: !0
|
|
17
13
|
})), await f, v());
|
|
18
|
-
const u =
|
|
14
|
+
const u = c(!1), d = c({}), a = c({
|
|
19
15
|
password: "",
|
|
20
16
|
confirmation: ""
|
|
21
17
|
}), _ = async () => {
|
|
@@ -25,13 +21,13 @@ const q = { style: { display: "flex", "flex-direction": "column", "align-items":
|
|
|
25
21
|
password: a.value.password
|
|
26
22
|
});
|
|
27
23
|
if (o) {
|
|
28
|
-
|
|
24
|
+
r.$actions.spawnModal({
|
|
29
25
|
title: "Error",
|
|
30
26
|
body: o.code
|
|
31
27
|
});
|
|
32
28
|
return;
|
|
33
29
|
}
|
|
34
|
-
|
|
30
|
+
r.$actions.spawnModal({
|
|
35
31
|
title: "Conta registrada",
|
|
36
32
|
body: "Verifique o link de confirmação no seu email"
|
|
37
33
|
}), w.push({
|
|
@@ -41,21 +37,21 @@ const q = { style: { display: "flex", "flex-direction": "column", "align-items":
|
|
|
41
37
|
return (o, e) => {
|
|
42
38
|
const k = C("clickable");
|
|
43
39
|
return b(), $(x, null, [
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
p("div", null, [
|
|
41
|
+
p("h1", null, n(o.t("signup.header")), 1),
|
|
46
42
|
B((b(), S(M, {
|
|
47
43
|
icon: "arrow-left",
|
|
48
44
|
onClick: e[0] || (e[0] = (t) => g(w).push({ path: "/user/signin" }))
|
|
49
45
|
}, {
|
|
50
|
-
default:
|
|
51
|
-
m(
|
|
46
|
+
default: s(() => [
|
|
47
|
+
m(n(o.t("signup.signin")), 1)
|
|
52
48
|
]),
|
|
53
49
|
_: 1
|
|
54
50
|
})), [
|
|
55
51
|
[k]
|
|
56
52
|
])
|
|
57
53
|
]),
|
|
58
|
-
|
|
54
|
+
i(N, U({
|
|
59
55
|
modelValue: d.value,
|
|
60
56
|
"onUpdate:modelValue": e[3] || (e[3] = (t) => d.value = t)
|
|
61
57
|
}, {
|
|
@@ -66,14 +62,14 @@ const q = { style: { display: "flex", "flex-direction": "column", "align-items":
|
|
|
66
62
|
"phone"
|
|
67
63
|
])
|
|
68
64
|
}), {
|
|
69
|
-
after:
|
|
70
|
-
|
|
65
|
+
after: s(() => [
|
|
66
|
+
i(F, {
|
|
71
67
|
modelValue: a.value,
|
|
72
68
|
"onUpdate:modelValue": e[2] || (e[2] = (t) => a.value = t)
|
|
73
69
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
default: s(({ passwordError: t }) => [
|
|
71
|
+
p("div", q, [
|
|
72
|
+
i(P, {
|
|
77
73
|
modelValue: u.value,
|
|
78
74
|
"onUpdate:modelValue": e[1] || (e[1] = (y) => u.value = y),
|
|
79
75
|
property: {
|
|
@@ -81,18 +77,18 @@ const q = { style: { display: "flex", "flex-direction": "column", "align-items":
|
|
|
81
77
|
element: "checkbox"
|
|
82
78
|
}
|
|
83
79
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
m(
|
|
80
|
+
default: s(() => [
|
|
81
|
+
m(n(o.t("signup.tos_checkbox")), 1)
|
|
86
82
|
]),
|
|
87
83
|
_: 1
|
|
88
84
|
}, 8, ["modelValue"])
|
|
89
85
|
]),
|
|
90
|
-
|
|
86
|
+
i(j, {
|
|
91
87
|
disabled: !!t || !u.value,
|
|
92
88
|
onClick: D(_, ["prevent"])
|
|
93
89
|
}, {
|
|
94
|
-
default:
|
|
95
|
-
m(
|
|
90
|
+
default: s(() => [
|
|
91
|
+
m(n(o.t("signup.submit")), 1)
|
|
96
92
|
]),
|
|
97
93
|
_: 2
|
|
98
94
|
}, 1032, ["disabled"])
|
|
@@ -107,5 +103,5 @@ const q = { style: { display: "flex", "flex-direction": "column", "align-items":
|
|
|
107
103
|
}
|
|
108
104
|
});
|
|
109
105
|
export {
|
|
110
|
-
|
|
106
|
+
H as default
|
|
111
107
|
};
|
package/dist/ui.js
CHANGED
|
@@ -1,44 +1,37 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import "vue";
|
|
3
|
-
import "@aeria-ui/i18n";
|
|
4
|
-
import "@aeria-ui/core";
|
|
5
|
-
import "@aeriajs/common";
|
|
6
|
-
import "@aeria-ui/state-management";
|
|
7
|
-
import "vue-router";
|
|
8
|
-
import "@aeria-ui/utils";
|
|
1
|
+
import { j as r, C as s, k as i, l as A, a as o, m as t, c as n, n as u, d as c, F as d, v as l, p as P, A as b, o as p, b as C, q as h, w as m, e as B, r as F, g as x, x as I, s as T, h as f, _ as g, f as w, D as M, y as S, z as k, B as y, t as G, u as R, E as j, H as q, G as v } from "./index-nfGoLtIp.js";
|
|
9
2
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
3
|
+
r as AeriaAccordion,
|
|
4
|
+
s as AeriaAsync,
|
|
5
|
+
i as AeriaBadge,
|
|
6
|
+
A as AeriaBareButton,
|
|
7
|
+
o as AeriaButton,
|
|
8
|
+
t as AeriaCard,
|
|
9
|
+
n as AeriaCheckbox,
|
|
10
|
+
u as AeriaContextMenu,
|
|
11
|
+
c as AeriaCrud,
|
|
12
|
+
d as AeriaCrudTopbar,
|
|
13
|
+
l as AeriaFile,
|
|
14
|
+
P as AeriaFilterPanel,
|
|
15
|
+
b as AeriaForm,
|
|
16
|
+
p as AeriaGrid,
|
|
17
|
+
C as AeriaIcon,
|
|
18
|
+
h as AeriaInfo,
|
|
19
|
+
m as AeriaInput,
|
|
20
|
+
B as AeriaInsertPanel,
|
|
21
|
+
F as AeriaMain,
|
|
22
|
+
x as AeriaMenu,
|
|
23
|
+
I as AeriaOptions,
|
|
24
|
+
T as AeriaPagination,
|
|
25
|
+
f as AeriaPanel,
|
|
26
|
+
g as AeriaPasswordForm,
|
|
27
|
+
w as AeriaPicture,
|
|
28
|
+
M as AeriaPrompt,
|
|
29
|
+
S as AeriaSearch,
|
|
30
|
+
k as AeriaSelect,
|
|
31
|
+
y as AeriaSwitch,
|
|
32
|
+
G as AeriaTable,
|
|
33
|
+
R as AeriaTabs,
|
|
34
|
+
j as AeriaToast,
|
|
35
|
+
q as dashboardRoutes,
|
|
36
|
+
v as userRoutes
|
|
44
37
|
};
|
|
@@ -3,14 +3,5 @@ type Props = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
section?: 'edit';
|
|
5
5
|
};
|
|
6
|
-
declare const _default: import('vue').DefineComponent<
|
|
6
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
7
|
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -2,20 +2,16 @@ type Props = {
|
|
|
2
2
|
collection: string;
|
|
3
3
|
};
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
-
} : {
|
|
15
|
-
type: import('vue').PropType<T[K]>;
|
|
16
|
-
required: true;
|
|
5
|
+
slots: {
|
|
6
|
+
"crud-empty"?(_: {}): any;
|
|
17
7
|
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
18
10
|
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
19
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
16
|
new (): {
|
|
21
17
|
$slots: S;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
slots: {
|
|
3
|
+
"user-profile"?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
3
7
|
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
9
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
11
|
export default _default;
|
|
7
12
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
13
|
new (): {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeria-ui/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.145",
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"author": "",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"import": "./dist/ui.js",
|
|
17
17
|
"types": "./dist/index.d.ts"
|
|
18
18
|
},
|
|
19
|
+
"./style.css": "./dist/ui.css",
|
|
19
20
|
"./themes/*": "./themes/*",
|
|
20
21
|
"./*": "./dist/*",
|
|
21
22
|
"./vue": {
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
"@aeria-ui/i18n": "link:../i18n",
|
|
34
35
|
"@aeria-ui/state-management": "link:../state-management",
|
|
35
36
|
"@aeria-ui/utils": "link:../utils",
|
|
36
|
-
"@aeriajs/common": "0.0",
|
|
37
|
-
"@aeriajs/types": "0.0",
|
|
37
|
+
"@aeriajs/common": "~0.0.127",
|
|
38
|
+
"@aeriajs/types": "~0.0.109",
|
|
38
39
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
39
40
|
"@vue/test-utils": "^2.4.6",
|
|
40
41
|
"jsdom": "^25.0.1",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"vue-tsc": "^2.0.22"
|
|
46
47
|
},
|
|
47
48
|
"peerDependencies": {
|
|
48
|
-
"@aeria-ui/core": "^0.0.
|
|
49
|
+
"@aeria-ui/core": "^0.0.94",
|
|
49
50
|
"@aeria-ui/i18n": "^0.0.14",
|
|
50
51
|
"@aeria-ui/state-management": "^0.0.16",
|
|
51
52
|
"@aeria-ui/utils": "^0.0.6",
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, withAsyncContext as x, ref as S, unref as f, openBlock as c, createElementBlock as v, createElementVNode as y, createVNode as s, withCtx as i, withModifiers as A, createTextVNode as g } from "vue";
|
|
2
|
-
import { useStore as w } from "@aeria-ui/state-management";
|
|
3
|
-
import { useRouter as I } from "vue-router";
|
|
4
|
-
import { A as R, _ as b, a as V } from "./index-caa746ed.js";
|
|
5
|
-
import "@aeria-ui/i18n";
|
|
6
|
-
import "@aeria-ui/core";
|
|
7
|
-
import "@aeriajs/common";
|
|
8
|
-
import "@aeria-ui/utils";
|
|
9
|
-
const q = {
|
|
10
|
-
key: 0,
|
|
11
|
-
style: { display: "grid", gap: "1rem" }
|
|
12
|
-
}, B = {
|
|
13
|
-
key: 1,
|
|
14
|
-
style: { display: "grid", gap: "1rem" }
|
|
15
|
-
}, D = /* @__PURE__ */ $({
|
|
16
|
-
__name: "activation",
|
|
17
|
-
async setup(E) {
|
|
18
|
-
let r, u;
|
|
19
|
-
const a = I(), n = w("user"), C = w("meta"), _ = a.currentRoute.value.query.step || "success", l = a.currentRoute.value.query.u, m = a.currentRoute.value.query.t, { error: d, result: p } = ([r, u] = x(() => n.$functions.getInfo({
|
|
20
|
-
userId: l,
|
|
21
|
-
token: m
|
|
22
|
-
})), r = await r, u(), r);
|
|
23
|
-
if (d)
|
|
24
|
-
throw d;
|
|
25
|
-
const t = S({
|
|
26
|
-
name: p.name,
|
|
27
|
-
email: p.email,
|
|
28
|
-
password: "",
|
|
29
|
-
confirmation: ""
|
|
30
|
-
}), k = async () => {
|
|
31
|
-
await n.$actions.custom(`activate?u=${l}&t=${m}`, {
|
|
32
|
-
password: t.value.password
|
|
33
|
-
}), n.credentials.email = t.value.email, C.$actions.spawnModal({
|
|
34
|
-
title: "Sucesso!",
|
|
35
|
-
body: "Sua conta foi ativada com sucesso. Experimente fazer login com o seu email e senha."
|
|
36
|
-
}), a.push("/user/signin");
|
|
37
|
-
};
|
|
38
|
-
return (N, e) => f(_) === "password" ? (c(), v("div", q, [
|
|
39
|
-
e[4] || (e[4] = y("h1", null, "Cadastre uma senha", -1)),
|
|
40
|
-
s(R, {
|
|
41
|
-
modelValue: t.value,
|
|
42
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => t.value = o),
|
|
43
|
-
form: {
|
|
44
|
-
name: {
|
|
45
|
-
type: "string",
|
|
46
|
-
readOnly: !0
|
|
47
|
-
},
|
|
48
|
-
email: {
|
|
49
|
-
type: "string",
|
|
50
|
-
readOnly: !0
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, null, 8, ["modelValue"]),
|
|
54
|
-
s(b, {
|
|
55
|
-
modelValue: t.value,
|
|
56
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => t.value = o)
|
|
57
|
-
}, {
|
|
58
|
-
default: i(({ passwordError: o }) => [
|
|
59
|
-
s(V, {
|
|
60
|
-
disabled: !!o,
|
|
61
|
-
onClick: A(k, ["prevent"])
|
|
62
|
-
}, {
|
|
63
|
-
default: i(() => e[3] || (e[3] = [
|
|
64
|
-
g(" Cadastrar senha ")
|
|
65
|
-
])),
|
|
66
|
-
_: 2
|
|
67
|
-
}, 1032, ["disabled"])
|
|
68
|
-
]),
|
|
69
|
-
_: 1
|
|
70
|
-
}, 8, ["modelValue"])
|
|
71
|
-
])) : (c(), v("div", B, [
|
|
72
|
-
e[6] || (e[6] = y("h1", null, "Conta ativada com sucesso!", -1)),
|
|
73
|
-
s(V, {
|
|
74
|
-
onClick: e[2] || (e[2] = (o) => f(a).push("/user/signin"))
|
|
75
|
-
}, {
|
|
76
|
-
default: i(() => e[5] || (e[5] = [
|
|
77
|
-
g(" Ir para a página de login ")
|
|
78
|
-
])),
|
|
79
|
-
_: 1
|
|
80
|
-
})
|
|
81
|
-
]));
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
D as default
|
|
86
|
-
};
|
package/dist/index-057358d1.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, openBlock as t, createBlock as r, createSlots as i, withCtx as n, renderSlot as c, createCommentVNode as l } from "vue";
|
|
2
|
-
import { d as m } from "./index-caa746ed.js";
|
|
3
|
-
import "@aeria-ui/i18n";
|
|
4
|
-
import "@aeria-ui/core";
|
|
5
|
-
import "@aeriajs/common";
|
|
6
|
-
import "@aeria-ui/state-management";
|
|
7
|
-
import "vue-router";
|
|
8
|
-
import "@aeria-ui/utils";
|
|
9
|
-
const h = /* @__PURE__ */ e({
|
|
10
|
-
__name: "index",
|
|
11
|
-
props: {
|
|
12
|
-
collection: {}
|
|
13
|
-
},
|
|
14
|
-
setup(p) {
|
|
15
|
-
return (o, s) => o.collection ? (t(), r(m, {
|
|
16
|
-
key: o.collection,
|
|
17
|
-
collection: o.collection
|
|
18
|
-
}, i({ _: 2 }, [
|
|
19
|
-
o.$slots["crud-empty"] ? {
|
|
20
|
-
name: "empty",
|
|
21
|
-
fn: n(() => [
|
|
22
|
-
c(o.$slots, "crud-empty")
|
|
23
|
-
]),
|
|
24
|
-
key: "0"
|
|
25
|
-
} : void 0
|
|
26
|
-
]), 1032, ["collection"])) : l("", !0);
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
h as default
|
|
31
|
-
};
|