@aeria-ui/ui 0.0.48 → 0.0.50

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.
@@ -1,39 +1,42 @@
1
- import { defineComponent as C, withAsyncContext as k, ref as $, unref as c, openBlock as p, createElementBlock as f, createVNode as r, withCtx as i, createTextVNode as _, createElementVNode as g } from "vue";
2
- import { useStore as y } from "@aeria-ui/state-management";
3
- import { throwIfLeft as x } from "@aeriajs/common";
4
- import { useRouter as I } from "vue-router";
5
- import { A as S, _ as A, a as v } from "./index-37dc84d1.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__ */ g("h1", null, "Cadastre uma senha", -1), q = {
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__ */ g("h1", null, "Conta ativada com sucesso!", -1), j = /* @__PURE__ */ C({
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 = I(), n = y("user"), w = y("meta"), h = o.currentRoute.value.query.step || "success", l = o.currentRoute.value.query.u, m = o.currentRoute.value.query.t, d = x(([s, u] = k(() => n.$functions.getInfo({
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)), e = $({
22
- name: d.name,
23
- email: d.email,
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
- }), V = async () => {
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 w.$actions.spawnModal({
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) => c(h) === "password" ? (p(), f("div", R, [
37
+ return (N, t) => p(V) === "password" ? (f(), _("div", R, [
35
38
  b,
36
- r(S, {
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(A, {
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(v, {
58
+ r(g, {
56
59
  disabled: !!a,
57
- onClick: V
60
+ onClick: C
58
61
  }, {
59
62
  default: i(() => [
60
- _(" Cadastrar senha ")
63
+ y(" Cadastrar senha ")
61
64
  ]),
62
65
  _: 2
63
66
  }, 1032, ["disabled"])
64
67
  ]),
65
68
  _: 1
66
69
  }, 8, ["modelValue"])
67
- ])) : (p(), f("div", q, [
70
+ ])) : (f(), _("div", q, [
68
71
  B,
69
- r(v, {
70
- onClick: t[2] || (t[2] = (a) => c(o).push("/user/signin"))
72
+ r(g, {
73
+ onClick: t[2] || (t[2] = (a) => p(o).push("/user/signin"))
71
74
  }, {
72
75
  default: i(() => [
73
- _(" Ir para a página de login ")
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
- j as default
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: import('@aeria-ui/state-management').Store | null;
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: string;
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-37dc84d1.js";
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";