@aeria-ui/ui 0.0.165 → 0.0.166

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,12 +1,7 @@
1
- import { defineComponent as r, watch as n, openBlock as c, createBlock as l } from "vue";
2
- import { getGlobalStateManager as a, useStore as m } from "@aeria-ui/state-management";
3
- import { f as s } from "./index-e44e0d65.js";
4
- import "@aeria-ui/i18n";
5
- import "@aeria-ui/core";
6
- import "@aeriajs/common";
7
- import "vue-router";
8
- import "@aeria-ui/utils";
9
- const b = /* @__PURE__ */ r({
1
+ import { defineComponent as i, watch as c, createBlock as r, openBlock as l } from "vue";
2
+ import { getGlobalStateManager as a, useStore as s } from "@aeria-ui/state-management";
3
+ import { f as d } from "./index-BjelY_IF.js";
4
+ const _ = /* @__PURE__ */ i({
10
5
  __name: "[id]",
11
6
  props: {
12
7
  collection: {},
@@ -14,19 +9,19 @@ const b = /* @__PURE__ */ r({
14
9
  section: {}
15
10
  },
16
11
  setup(t) {
17
- const e = t, i = a();
18
- return n(() => [
12
+ const e = t, n = a();
13
+ return c(() => [
19
14
  e.collection,
20
15
  e.id
21
16
  ], () => {
22
- m(e.collection, i).$actions.get({
17
+ s(e.collection, n).$actions.get({
23
18
  filters: {
24
19
  _id: e.id
25
20
  }
26
21
  });
27
22
  }, {
28
23
  immediate: !0
29
- }), (o, d) => (c(), l(s, {
24
+ }), (o, m) => (l(), r(d, {
30
25
  key: o.id,
31
26
  bordered: "",
32
27
  rounded: "",
@@ -39,5 +34,5 @@ const b = /* @__PURE__ */ r({
39
34
  }
40
35
  });
41
36
  export {
42
- b as default
37
+ _ as default
43
38
  };
@@ -1,11 +1,9 @@
1
- import { defineComponent as A, inject as R, ref as M, onMounted as b, openBlock as c, createElementBlock as p, unref as s, createElementVNode as y, toDisplayString as n, createVNode as l, withCtx as m, withModifiers as C, createTextVNode as g } from "vue";
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
2
  import { INSTANCE_VARS_SYMBOL as U } from "@aeria-ui/core";
3
3
  import { useStore as $ } from "@aeria-ui/state-management";
4
4
  import { useRouter as x } 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-e44e0d65.js";
7
- import "@aeriajs/common";
8
- import "@aeria-ui/utils";
6
+ import { A as E, c as I, a as v } from "./index-BjelY_IF.js";
9
7
  const N = { key: 0 }, T = {
10
8
  key: 0,
11
9
  style: { display: "grid", gap: "1rem" }
@@ -15,10 +13,10 @@ const N = { key: 0 }, T = {
15
13
  }, B = {
16
14
  key: 1,
17
15
  style: { display: "grid", gap: "1rem" }
18
- }, H = /* @__PURE__ */ A({
16
+ }, z = /* @__PURE__ */ A({
19
17
  __name: "activation",
20
18
  setup(O) {
21
- const r = x(), u = $("user"), d = $("meta"), f = R(U), h = r.currentRoute.value.query.step || "success", _ = r.currentRoute.value.query.u, w = r.currentRoute.value.query.t, o = M({
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({
22
20
  name: "",
23
21
  email: "",
24
22
  active: !1,
@@ -30,13 +28,13 @@ const N = { key: 0 }, T = {
30
28
  });
31
29
  const k = () => {
32
30
  if (typeof f < "u") {
33
- const { next: e } = r.currentRoute.value.query;
31
+ const { next: e } = a.currentRoute.value.query;
34
32
  if (typeof e == "string" && f.allowedRedirectionUris && f.allowedRedirectionUris.includes(e)) {
35
- e.startsWith("/") ? r.push(e) : location.href = e;
33
+ e.startsWith("/") ? a.push(e) : location.href = e;
36
34
  return;
37
35
  }
38
36
  }
39
- r.push("/user/signin");
37
+ a.push("/user/signin");
40
38
  }, V = async () => {
41
39
  const { error: e, result: t } = await u.$functions.getInfo({
42
40
  userId: _,
@@ -75,12 +73,12 @@ const N = { key: 0 }, T = {
75
73
  body: "Your account was successfully activated! Try loggin with your email and password."
76
74
  }), k();
77
75
  };
78
- return (e, t) => o.value.email !== "" ? (c(), p("div", N, [
79
- s(h) === "password" ? (c(), p("div", T, [
76
+ return (e, t) => o.value.email !== "" ? (p(), c("div", N, [
77
+ s(h) === "password" ? (p(), c("div", T, [
80
78
  y("h1", null, n(s(i)("register_password")), 1),
81
79
  l(E, {
82
80
  modelValue: o.value,
83
- "onUpdate:modelValue": t[0] || (t[0] = (a) => o.value = a),
81
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => o.value = r),
84
82
  form: {
85
83
  name: {
86
84
  type: "string",
@@ -94,11 +92,11 @@ const N = { key: 0 }, T = {
94
92
  }, null, 8, ["modelValue"]),
95
93
  l(I, {
96
94
  modelValue: o.value,
97
- "onUpdate:modelValue": t[1] || (t[1] = (a) => o.value = a)
95
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => o.value = r)
98
96
  }, {
99
- default: m(({ passwordError: a }) => [
97
+ default: m(({ passwordError: r }) => [
100
98
  l(v, {
101
- disabled: !!a,
99
+ disabled: !!r,
102
100
  onClick: C(S, ["prevent"])
103
101
  }, {
104
102
  default: m(() => [
@@ -109,10 +107,10 @@ const N = { key: 0 }, T = {
109
107
  ]),
110
108
  _: 1
111
109
  }, 8, ["modelValue"])
112
- ])) : (c(), p("div", q, [
110
+ ])) : (p(), c("div", q, [
113
111
  y("h1", null, n(s(i)("successfully_activated_account")), 1),
114
112
  l(v, {
115
- onClick: t[2] || (t[2] = (a) => s(r).push("/user/signin"))
113
+ onClick: t[2] || (t[2] = (r) => s(a).push("/user/signin"))
116
114
  }, {
117
115
  default: m(() => [
118
116
  g(n(s(i)("go_to_login_page")), 1)
@@ -120,10 +118,10 @@ const N = { key: 0 }, T = {
120
118
  _: 1
121
119
  })
122
120
  ]))
123
- ])) : (c(), p("div", B, [
121
+ ])) : (p(), c("div", B, [
124
122
  y("h1", null, n(s(i)("invalid_link")), 1),
125
123
  l(v, {
126
- onClick: t[3] || (t[3] = (a) => s(r).push("/user/signin"))
124
+ onClick: t[3] || (t[3] = (r) => s(a).push("/user/signin"))
127
125
  }, {
128
126
  default: m(() => [
129
127
  g(n(s(i)("go_to_login_page")), 1)
@@ -134,5 +132,5 @@ const N = { key: 0 }, T = {
134
132
  }
135
133
  });
136
134
  export {
137
- H as default
135
+ z as default
138
136
  };
@@ -0,0 +1,25 @@
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-BjelY_IF.js";
3
+ const u = /* @__PURE__ */ o({
4
+ __name: "index",
5
+ props: {
6
+ collection: {}
7
+ },
8
+ setup(p) {
9
+ return (e, s) => e.collection ? (n(), t(m, {
10
+ key: e.collection,
11
+ collection: e.collection
12
+ }, c({ _: 2 }, [
13
+ e.$slots["crud-empty"] ? {
14
+ name: "empty",
15
+ fn: l(() => [
16
+ i(e.$slots, "crud-empty")
17
+ ]),
18
+ key: "0"
19
+ } : void 0
20
+ ]), 1032, ["collection"])) : r("", !0);
21
+ }
22
+ });
23
+ export {
24
+ u as default
25
+ };