@aeria-ui/ui 0.0.130 → 0.0.132

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 r, watch as n, openBlock as c, createBlock as l } from "vue";
2
2
  import { getGlobalStateManager as a, useStore as m } from "@aeria-ui/state-management";
3
- import { e as s } from "./index-a64ae3c0.js";
3
+ import { e as s } from "./index-c6ea2c43.js";
4
4
  import "@aeria-ui/i18n";
5
5
  import "@aeria-ui/core";
6
6
  import "@aeriajs/common";
@@ -1,7 +1,7 @@
1
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
2
  import { useStore as w } from "@aeria-ui/state-management";
3
3
  import { useRouter as I } from "vue-router";
4
- import { A as R, _ as b, a as V } from "./index-a64ae3c0.js";
4
+ import { A as R, _ as b, a as V } from "./index-c6ea2c43.js";
5
5
  import "@aeria-ui/i18n";
6
6
  import "@aeria-ui/core";
7
7
  import "@aeriajs/common";
@@ -1,19 +1,19 @@
1
- import { defineComponent as h, ref as A, resolveDirective as V, openBlock as u, createElementBlock as C, Fragment as b, createVNode as s, mergeProps as g, unref as i, withCtx as r, createElementVNode as w, toDisplayString as n, renderSlot as N, createCommentVNode as P, withDirectives as m, createBlock as p, createTextVNode as d } from "vue";
2
- import { useRouter as z } from "vue-router";
1
+ import { defineComponent as b, ref as h, resolveDirective as A, openBlock as u, createElementBlock as V, Fragment as C, createVNode as s, mergeProps as g, unref as i, withCtx as r, createElementVNode as w, toDisplayString as n, renderSlot as N, createCommentVNode as I, withDirectives as m, createBlock as p, createTextVNode as c } from "vue";
2
+ import { useRouter as P } from "vue-router";
3
3
  import { useStore as v } from "@aeria-ui/state-management";
4
4
  import { STORAGE_NAMESPACE as y } from "@aeria-ui/core";
5
- import { f as E, g as I, b as f, h as O, a as x, A as B, i as U } from "./index-a64ae3c0.js";
5
+ import { f as z, g as E, b as f, h as O, a as x, A as B, i as U } from "./index-c6ea2c43.js";
6
6
  import "@aeria-ui/i18n";
7
7
  import "@aeriajs/common";
8
8
  import "@aeria-ui/utils";
9
- const D = { class: "profile__user-name" }, F = /* @__PURE__ */ h({
9
+ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ b({
10
10
  __name: "index",
11
11
  setup(M) {
12
- const _ = z(), e = v("user"), S = v("meta"), l = A(!1);
12
+ const _ = P(), e = v("user"), S = v("meta"), l = h(!1);
13
13
  e.$actions.setItem(e.currentUser);
14
14
  const k = async () => {
15
15
  if (await e.$actions.insert({
16
- what: e.item
16
+ what: e.condensedItem
17
17
  }), typeof localStorage < "u") {
18
18
  const o = localStorage.getItem(`${y}:auth`);
19
19
  if (o) {
@@ -29,9 +29,9 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ h({
29
29
  e.$actions.signout(), _.push("/user/signin");
30
30
  };
31
31
  return (o, t) => {
32
- const c = V("clickable");
33
- return u(), C(b, null, [
34
- s(E, g({ alt: "User picture" }, {
32
+ const d = A("clickable");
33
+ return u(), V(C, null, [
34
+ s(z, g({ alt: "User picture" }, {
35
35
  width: "14rem",
36
36
  height: "14rem"
37
37
  }, {
@@ -44,19 +44,19 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ h({
44
44
  ]),
45
45
  _: 1
46
46
  }, 16, ["file-id"]),
47
- o.$slots["user-profile"] ? N(o.$slots, "user-profile", { key: 0 }, void 0, !0) : P("", !0),
48
- s(I, null, {
47
+ o.$slots["user-profile"] ? N(o.$slots, "user-profile", { key: 0 }, void 0, !0) : I("", !0),
48
+ s(E, null, {
49
49
  "edit-profile": r(() => [
50
50
  m((u(), p(f, {
51
51
  icon: "pencil",
52
52
  onClick: t[0] || (t[0] = (a) => l.value = !0)
53
53
  }, {
54
54
  default: r(() => [
55
- d(n(o.t("edit_profile", { capitalize: !0 })), 1)
55
+ c(n(o.t("edit_profile", { capitalize: !0 })), 1)
56
56
  ]),
57
57
  _: 1
58
58
  })), [
59
- [c]
59
+ [d]
60
60
  ])
61
61
  ]),
62
62
  "change-password": r(() => [
@@ -65,11 +65,11 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ h({
65
65
  onClick: t[1] || (t[1] = (a) => i(_).push("/dashboard/user/changepass"))
66
66
  }, {
67
67
  default: r(() => [
68
- d(n(o.t("change_password", { capitalize: !0 })), 1)
68
+ c(n(o.t("change_password", { capitalize: !0 })), 1)
69
69
  ]),
70
70
  _: 1
71
71
  })), [
72
- [c]
72
+ [d]
73
73
  ])
74
74
  ]),
75
75
  signout: r(() => [
@@ -78,11 +78,11 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ h({
78
78
  onClick: $
79
79
  }, {
80
80
  default: r(() => [
81
- d(n(o.t("signout", { capitalize: !0 })), 1)
81
+ c(n(o.t("signout", { capitalize: !0 })), 1)
82
82
  ]),
83
83
  _: 1
84
84
  })), [
85
- [c]
85
+ [d]
86
86
  ])
87
87
  ]),
88
88
  _: 1
@@ -102,7 +102,7 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ h({
102
102
  onClick: k
103
103
  }, {
104
104
  default: r(() => [
105
- d(n(o.t("action.save", { capitalize: !0 })), 1)
105
+ c(n(o.t("action.save", { capitalize: !0 })), 1)
106
106
  ]),
107
107
  _: 1
108
108
  }, 8, ["loading"])
@@ -128,7 +128,7 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ h({
128
128
  };
129
129
  }
130
130
  });
131
- const K = /* @__PURE__ */ U(F, [["__scopeId", "data-v-d7e87647"]]);
131
+ const K = /* @__PURE__ */ U(F, [["__scopeId", "data-v-177346b0"]]);
132
132
  export {
133
133
  K as default
134
134
  };