@aeria-ui/ui 0.0.49 → 0.0.51
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/{activation-855b78be.js → activation-db795cbd.js} +27 -24
- package/dist/components/aeria-table/aeria-table.vue.d.ts +1 -1
- package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +1 -1
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +2 -1
- package/dist/{crud-view-644dd64f.js → crud-view-375a71ce.js} +1 -1
- package/dist/{index-01a0d031.js → index-74fbfb08.js} +572 -568
- package/dist/{password-change-b4db19a6.js → password-change-85ee1e80.js} +1 -1
- package/dist/{profile-8baa89be.js → profile-7d32f24a.js} +14 -14
- package/dist/{signin-aebed8c0.js → signin-c3838339.js} +12 -12
- package/dist/{signup-91d24668.js → signup-0ec1bb6e.js} +27 -28
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +3 -3
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useStore as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { A as S, _ as A, a as v } from "./index-01a0d031.js";
|
|
1
|
+
import { defineComponent as k, withAsyncContext as $, ref as x, unref as p, openBlock as f, createElementBlock as _, createVNode as r, withCtx as i, createTextVNode as y, createElementVNode as w } from "vue";
|
|
2
|
+
import { useStore as v } from "@aeria-ui/state-management";
|
|
3
|
+
import { useRouter as S } from "vue-router";
|
|
4
|
+
import { A, _ as I, a as g } from "./index-74fbfb08.js";
|
|
6
5
|
import "@aeria-ui/i18n";
|
|
7
6
|
import "@aeria-ui/core";
|
|
7
|
+
import "@aeriajs/common";
|
|
8
8
|
const R = {
|
|
9
9
|
key: 0,
|
|
10
10
|
style: { display: "grid", gap: "1rem" }
|
|
11
|
-
}, b = /* @__PURE__ */
|
|
11
|
+
}, b = /* @__PURE__ */ w("h1", null, "Cadastre uma senha", -1), q = {
|
|
12
12
|
key: 1,
|
|
13
13
|
style: { display: "grid", gap: "1rem" }
|
|
14
|
-
}, B = /* @__PURE__ */
|
|
14
|
+
}, B = /* @__PURE__ */ w("h1", null, "Conta ativada com sucesso!", -1), D = /* @__PURE__ */ k({
|
|
15
15
|
__name: "activation",
|
|
16
16
|
async setup(E) {
|
|
17
17
|
let s, u;
|
|
18
|
-
const o =
|
|
18
|
+
const o = S(), n = v("user"), h = v("meta"), V = o.currentRoute.value.query.step || "success", l = o.currentRoute.value.query.u, m = o.currentRoute.value.query.t, { error: d, result: c } = ([s, u] = $(() => n.$functions.getInfo({
|
|
19
19
|
userId: l,
|
|
20
20
|
token: m
|
|
21
|
-
})), s = await s, u(), s)
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
})), s = await s, u(), s);
|
|
22
|
+
if (d)
|
|
23
|
+
throw d;
|
|
24
|
+
const e = x({
|
|
25
|
+
name: c.name,
|
|
26
|
+
email: c.email,
|
|
24
27
|
password: "",
|
|
25
28
|
confirmation: ""
|
|
26
|
-
}),
|
|
29
|
+
}), C = async () => {
|
|
27
30
|
await n.$actions.custom(`activate?u=${l}&t=${m}`, {
|
|
28
31
|
password: e.value.password
|
|
29
|
-
}), n.credentials.email = e.value.email, await
|
|
32
|
+
}), n.credentials.email = e.value.email, await h.$actions.spawnModal({
|
|
30
33
|
title: "Sucesso!",
|
|
31
34
|
body: "Sua conta foi ativada com sucesso. Experimente fazer login com o seu email e senha."
|
|
32
35
|
}), o.push("/user/signin");
|
|
33
36
|
};
|
|
34
|
-
return (N, t) =>
|
|
37
|
+
return (N, t) => p(V) === "password" ? (f(), _("div", R, [
|
|
35
38
|
b,
|
|
36
|
-
r(
|
|
39
|
+
r(A, {
|
|
37
40
|
modelValue: e.value,
|
|
38
41
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => e.value = a),
|
|
39
42
|
form: {
|
|
@@ -47,30 +50,30 @@ const R = {
|
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
}, null, 8, ["modelValue"]),
|
|
50
|
-
r(
|
|
53
|
+
r(I, {
|
|
51
54
|
modelValue: e.value,
|
|
52
55
|
"onUpdate:modelValue": t[1] || (t[1] = (a) => e.value = a)
|
|
53
56
|
}, {
|
|
54
57
|
default: i(({ passwordError: a }) => [
|
|
55
|
-
r(
|
|
58
|
+
r(g, {
|
|
56
59
|
disabled: !!a,
|
|
57
|
-
onClick:
|
|
60
|
+
onClick: C
|
|
58
61
|
}, {
|
|
59
62
|
default: i(() => [
|
|
60
|
-
|
|
63
|
+
y(" Cadastrar senha ")
|
|
61
64
|
]),
|
|
62
65
|
_: 2
|
|
63
66
|
}, 1032, ["disabled"])
|
|
64
67
|
]),
|
|
65
68
|
_: 1
|
|
66
69
|
}, 8, ["modelValue"])
|
|
67
|
-
])) : (
|
|
70
|
+
])) : (f(), _("div", q, [
|
|
68
71
|
B,
|
|
69
|
-
r(
|
|
70
|
-
onClick: t[2] || (t[2] = (a) =>
|
|
72
|
+
r(g, {
|
|
73
|
+
onClick: t[2] || (t[2] = (a) => p(o).push("/user/signin"))
|
|
71
74
|
}, {
|
|
72
75
|
default: i(() => [
|
|
73
|
-
|
|
76
|
+
y(" Ir para a página de login ")
|
|
74
77
|
]),
|
|
75
78
|
_: 1
|
|
76
79
|
})
|
|
@@ -78,5 +81,5 @@ const R = {
|
|
|
78
81
|
}
|
|
79
82
|
});
|
|
80
83
|
export {
|
|
81
|
-
|
|
84
|
+
D as default
|
|
82
85
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
18
18
|
onItemClick?: ((value: any) => any) | undefined;
|
|
19
19
|
}, {}, {}>, Partial<Record<`row-${string}`, (_: {
|
|
20
|
-
store:
|
|
20
|
+
store: any;
|
|
21
21
|
column: string;
|
|
22
22
|
property: Property;
|
|
23
23
|
row: any;
|
|
@@ -3,7 +3,7 @@ import { Icon } from '@aeriajs/types';
|
|
|
3
3
|
type Props = {
|
|
4
4
|
idx: number;
|
|
5
5
|
itr: number;
|
|
6
|
-
date:
|
|
6
|
+
date: any;
|
|
7
7
|
icon?: Icon;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, Condition } from '@aeriajs/types';
|
|
1
|
+
import { Property, Condition, Description } from '@aeriajs/types';
|
|
2
2
|
import { FormFieldProps } from '../types';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
|
|
@@ -20,6 +20,7 @@ type Props = FormFieldProps<any> & {
|
|
|
20
20
|
layout?: {
|
|
21
21
|
fields: Record<string, LayoutConfig>;
|
|
22
22
|
};
|
|
23
|
+
formLayout?: Description['formLayout'];
|
|
23
24
|
required?: string[];
|
|
24
25
|
formComponents?: Record<string, any>;
|
|
25
26
|
propertyComponents?: Record<string, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, openBlock as t, createBlock as r, createSlots as c, withCtx as i, renderSlot as l, createCommentVNode as n } from "vue";
|
|
2
|
-
import { d as m } from "./index-
|
|
2
|
+
import { d as m } from "./index-74fbfb08.js";
|
|
3
3
|
import "@aeria-ui/i18n";
|
|
4
4
|
import "@aeria-ui/core";
|
|
5
5
|
import "@aeria-ui/state-management";
|