@aeria-ui/ui 0.0.189 → 0.0.191

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,6 +1,6 @@
1
1
  import { defineComponent as i, watch as c, createBlock as r, openBlock as l } from "vue";
2
2
  import { getGlobalStateManager as a, useStore as s } from "@aeria-ui/state-management";
3
- import { f as d } from "./index-CupcG__W.js";
3
+ import { f as d } from "./index-Bo3rVDNK.js";
4
4
  const _ = /* @__PURE__ */ i({
5
5
  __name: "[id]",
6
6
  props: {
@@ -1,22 +1,25 @@
1
- import { defineComponent as A, inject as R, ref as M, onMounted as b, createElementBlock as c, openBlock as p, unref as s, createElementVNode as y, createVNode as l, toDisplayString as n, withCtx as m, withModifiers as C, createTextVNode as g } from "vue";
2
- import { INSTANCE_VARS_SYMBOL as U } from "@aeria-ui/core";
1
+ import { defineComponent as A, inject as M, ref as R, onMounted as b, createElementBlock as c, openBlock as p, unref as s, createElementVNode as _, createVNode as l, toDisplayString as r, withCtx as m, withModifiers as x, createTextVNode as v } from "vue";
2
+ import { INSTANCE_VARS_SYMBOL as C } from "@aeria-ui/core";
3
3
  import { useStore as $ } from "@aeria-ui/state-management";
4
- import { useRouter as x } from "vue-router";
4
+ import { useRouter as I } from "vue-router";
5
5
  import { t as i } from "@aeria-ui/i18n";
6
- import { A as E, c as I, a as v } from "./index-CupcG__W.js";
7
- const N = { key: 0 }, T = {
6
+ import { A as U, c as E, a as y, _ as N } from "./index-Bo3rVDNK.js";
7
+ const T = { key: 0 }, B = {
8
8
  key: 0,
9
- style: { display: "grid", gap: "1rem" }
9
+ style: {}
10
10
  }, q = {
11
11
  key: 1,
12
- style: { display: "grid", gap: "1rem" }
13
- }, B = {
12
+ style: {}
13
+ }, O = {
14
14
  key: 1,
15
- style: { display: "grid", gap: "1rem" }
16
- }, z = /* @__PURE__ */ A({
15
+ style: {}
16
+ }, Y = /* @__PURE__ */ A({
17
17
  __name: "activation",
18
- setup(O) {
19
- const a = x(), u = $("user"), d = $("meta"), f = R(U), h = a.currentRoute.value.query.step || "success", _ = a.currentRoute.value.query.u, w = a.currentRoute.value.query.t, o = M({
18
+ setup(j) {
19
+ const a = I(), u = $("user"), d = $("meta"), f = M(C), h = a.currentRoute.value.query.step || "success", {
20
+ u: g,
21
+ t: w
22
+ } = a.currentRoute.value.query, o = R({
20
23
  name: "",
21
24
  email: "",
22
25
  active: !1,
@@ -37,7 +40,7 @@ const N = { key: 0 }, T = {
37
40
  a.push("/user/signin");
38
41
  }, V = async () => {
39
42
  const { error: e, result: t } = await u.$functions.getInfo({
40
- userId: _,
43
+ userId: g,
41
44
  token: w
42
45
  });
43
46
  if (e) {
@@ -58,7 +61,7 @@ const N = { key: 0 }, T = {
58
61
  }, S = async () => {
59
62
  const { error: e } = await u.$actions.custom("activate", {
60
63
  password: o.value.password,
61
- userId: _,
64
+ userId: g,
62
65
  token: w
63
66
  });
64
67
  if (e) {
@@ -73,12 +76,12 @@ const N = { key: 0 }, T = {
73
76
  body: "Your account was successfully activated! Try loggin with your email and password."
74
77
  }), k();
75
78
  };
76
- return (e, t) => o.value.email !== "" ? (p(), c("div", N, [
77
- s(h) === "password" ? (p(), c("div", T, [
78
- y("h1", null, n(s(i)("register_password")), 1),
79
- l(E, {
79
+ return (e, t) => o.value.email !== "" ? (p(), c("div", T, [
80
+ s(h) === "password" ? (p(), c("div", B, [
81
+ _("h1", null, r(s(i)("register_password")), 1),
82
+ l(U, {
80
83
  modelValue: o.value,
81
- "onUpdate:modelValue": t[0] || (t[0] = (r) => o.value = r),
84
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => o.value = n),
82
85
  form: {
83
86
  name: {
84
87
  type: "string",
@@ -90,17 +93,17 @@ const N = { key: 0 }, T = {
90
93
  }
91
94
  }
92
95
  }, null, 8, ["modelValue"]),
93
- l(I, {
96
+ l(E, {
94
97
  modelValue: o.value,
95
- "onUpdate:modelValue": t[1] || (t[1] = (r) => o.value = r)
98
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n)
96
99
  }, {
97
- default: m(({ passwordError: r }) => [
98
- l(v, {
99
- disabled: !!r,
100
- onClick: C(S, ["prevent"])
100
+ default: m(({ passwordError: n }) => [
101
+ l(y, {
102
+ disabled: !!n,
103
+ onClick: x(S, ["prevent"])
101
104
  }, {
102
105
  default: m(() => [
103
- g(n(s(i)("register_password")), 1)
106
+ v(r(s(i)("register_password")), 1)
104
107
  ]),
105
108
  _: 2
106
109
  }, 1032, ["disabled"])
@@ -108,29 +111,29 @@ const N = { key: 0 }, T = {
108
111
  _: 1
109
112
  }, 8, ["modelValue"])
110
113
  ])) : (p(), c("div", q, [
111
- y("h1", null, n(s(i)("successfully_activated_account")), 1),
112
- l(v, {
113
- onClick: t[2] || (t[2] = (r) => s(a).push("/user/signin"))
114
+ _("h1", null, r(s(i)("successfully_activated_account")), 1),
115
+ l(y, {
116
+ onClick: t[2] || (t[2] = (n) => s(a).push("/user/signin"))
114
117
  }, {
115
118
  default: m(() => [
116
- g(n(s(i)("go_to_login_page")), 1)
119
+ v(r(s(i)("go_to_login_page")), 1)
117
120
  ]),
118
121
  _: 1
119
122
  })
120
123
  ]))
121
- ])) : (p(), c("div", B, [
122
- y("h1", null, n(s(i)("invalid_link")), 1),
123
- l(v, {
124
- onClick: t[3] || (t[3] = (r) => s(a).push("/user/signin"))
124
+ ])) : (p(), c("div", O, [
125
+ _("h1", null, r(s(i)("invalid_link")), 1),
126
+ l(y, {
127
+ onClick: t[3] || (t[3] = (n) => s(a).push("/user/signin"))
125
128
  }, {
126
129
  default: m(() => [
127
- g(n(s(i)("go_to_login_page")), 1)
130
+ v(r(s(i)("go_to_login_page")), 1)
128
131
  ]),
129
132
  _: 1
130
133
  })
131
134
  ]));
132
135
  }
133
- });
136
+ }), H = /* @__PURE__ */ N(Y, [["__scopeId", "data-v-144e82a6"]]);
134
137
  export {
135
- z as default
138
+ H as default
136
139
  };
@@ -1,25 +1,12 @@
1
- import { Property, Condition, Description } from '../../../../../../node_modules/@aeriajs/types';
1
+ import { Property, Description, RequiredProperties } from '../../../../../../node_modules/@aeriajs/types';
2
2
  import { FormFieldProps } from '../types.js';
3
3
  import { Ref } from 'vue';
4
- type LayoutConfig = {
5
- span?: string;
6
- verticalSpacing?: string;
7
- optionsColumns?: number;
8
- if?: Condition<any>;
9
- component?: {
10
- name: string;
11
- props?: object;
12
- };
13
- };
14
4
  type Props = FormFieldProps<any> & {
15
5
  form?: Record<string, Property>;
16
6
  collection?: string | Ref<string>;
17
7
  searchOnly?: boolean;
18
- layout?: {
19
- fields: Record<string, LayoutConfig>;
20
- };
21
- formLayout?: Description['formLayout'];
22
- required?: string[] | boolean;
8
+ layout?: Description['formLayout'];
9
+ required?: boolean | RequiredProperties;
23
10
  formComponents?: Record<string, unknown>;
24
11
  propertyComponents?: Record<string, unknown>;
25
12
  omitFormHeader?: boolean;
@@ -61,7 +48,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
61
48
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
62
49
  onClipboardCopy?: ((value: string) => any) | undefined;
63
50
  }>, {
64
- required: boolean & (boolean | string[]);
51
+ required: boolean & (boolean | RequiredProperties);
65
52
  searchOnly: boolean;
66
53
  validationErrors: Record<string, unknown> | null;
67
54
  highlightRequired: boolean;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, createBlock as t, createCommentVNode as r, openBlock as n, createSlots as c, withCtx as l, renderSlot as i } from "vue";
2
- import { e as m } from "./index-CupcG__W.js";
2
+ import { e as m } from "./index-Bo3rVDNK.js";
3
3
  const u = /* @__PURE__ */ o({
4
4
  __name: "index",
5
5
  props: {
@@ -2,7 +2,7 @@ import { defineComponent as k, ref as h, resolveDirective as A, createElementBlo
2
2
  import { useRouter as P } from "vue-router";
3
3
  import { useStore as y } from "@aeria-ui/state-management";
4
4
  import { STORAGE_NAMESPACE as S } from "@aeria-ui/core";
5
- import { g as E, h as z, b as p, i as O, A as B, a as M, _ as U } from "./index-CupcG__W.js";
5
+ import { g as E, h as z, b as p, i as O, A as B, a as M, _ as U } from "./index-Bo3rVDNK.js";
6
6
  const D = { class: "profile__user-name" }, F = /* @__PURE__ */ k({
7
7
  __name: "index",
8
8
  setup(j) {