@aeria-ui/ui 0.0.63 → 0.0.65

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.
Files changed (23) hide show
  1. package/dist/_id_-149df831.js +37 -0
  2. package/dist/{activation-7645786e.js → activation-d3f6dc73.js} +1 -1
  3. package/dist/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +31 -0
  4. package/dist/components/form/aeria-form/aeria-form.vue.d.ts +0 -4
  5. package/dist/components/form/aeria-options/aeria-options.vue.d.ts +8 -4
  6. package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +1 -0
  7. package/dist/components/form/types.d.ts +1 -0
  8. package/dist/{profile-7847d400.js → index-1bbeba72.js} +30 -30
  9. package/dist/{crud-view-3df511a9.js → index-38b13e16.js} +7 -7
  10. package/dist/index-6876218a.js +3428 -0
  11. package/dist/{password-change-55124275.js → index-87c76c28.js} +14 -14
  12. package/dist/{signin-81d4ab57.js → signin-78854e9e.js} +1 -1
  13. package/dist/{signup-ab6052da.js → signup-42edefc2.js} +1 -1
  14. package/dist/style.css +1 -1
  15. package/dist/ui.js +13 -13
  16. package/dist/views/dashboard/crud/[collection]/[id].vue.d.ts +16 -0
  17. package/package.json +2 -2
  18. package/dist/components/aeria-crud/_internals/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +0 -9
  19. package/dist/index-13fe0da8.js +0 -3321
  20. /package/dist/components/{aeria-crud/_internals/components/aeria-filter-panel → aeria-filter-panel}/aeria-filter-panel.vue.d.ts +0 -0
  21. /package/dist/views/dashboard/{crud-view/crud-view.vue.d.ts → crud/[collection]/index.vue.d.ts} +0 -0
  22. /package/dist/views/dashboard/user/password-change/{password-change.vue.d.ts → index.vue.d.ts} +0 -0
  23. /package/dist/views/dashboard/user/profile/{profile.vue.d.ts → index.vue.d.ts} +0 -0
@@ -0,0 +1,37 @@
1
+ import { defineComponent as i, 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 { e as s } from "./index-6876218a.js";
4
+ import "@aeria-ui/i18n";
5
+ import "@aeria-ui/core";
6
+ import "@aeriajs/common";
7
+ import "vue-router";
8
+ const k = /* @__PURE__ */ i({
9
+ __name: "[id]",
10
+ props: {
11
+ collection: {},
12
+ id: {},
13
+ section: {}
14
+ },
15
+ setup(t) {
16
+ const o = t, r = a();
17
+ return n(() => o.collection, () => {
18
+ m(o.collection, r).$actions.get({
19
+ filters: {
20
+ _id: o.id
21
+ }
22
+ });
23
+ }, {
24
+ immediate: !0
25
+ }), (e, d) => (c(), l(s, {
26
+ key: e.id,
27
+ bordered: "",
28
+ rounded: "",
29
+ collection: e.collection,
30
+ "read-only": e.section !== "edit",
31
+ style: { "--panel-max-width": "40rem" }
32
+ }, null, 8, ["collection", "read-only"]));
33
+ }
34
+ });
35
+ export {
36
+ k as default
37
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as k, withAsyncContext as $, ref as x, unref as p, openBlock as f, createElementBlock as _, createVNode as r, withCtx as i, withModifiers as S, createTextVNode as v, createElementVNode as g } from "vue";
2
2
  import { useStore as y } from "@aeria-ui/state-management";
3
3
  import { useRouter as A } from "vue-router";
4
- import { A as I, _ as R, a as w } from "./index-13fe0da8.js";
4
+ import { A as I, _ as R, a as w } from "./index-6876218a.js";
5
5
  import "@aeria-ui/i18n";
6
6
  import "@aeria-ui/core";
7
7
  import "@aeriajs/common";
@@ -0,0 +1,31 @@
1
+ type Props = {
2
+ collection?: string;
3
+ modelValue?: boolean | string;
4
+ readOnly?: boolean;
5
+ };
6
+ declare function __VLS_template(): Partial<Record<string, (_: any) => any>> & {
7
+ header?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:modelValue": (value: boolean) => void;
11
+ cancel: () => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
13
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
+ onCancel?: (() => any) | undefined;
15
+ }, {}, {}>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -15,7 +15,6 @@ type LayoutConfig = {
15
15
  type Props = FormFieldProps<any> & {
16
16
  form?: Record<string, Property>;
17
17
  collection?: string | Ref<string>;
18
- isReadOnly?: boolean;
19
18
  searchOnly?: boolean;
20
19
  layout?: {
21
20
  fields: Record<string, LayoutConfig>;
@@ -44,7 +43,6 @@ declare function __VLS_template(): Partial<Record<`field-${string}`, (_: {
44
43
  }): any;
45
44
  };
46
45
  declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
47
- isReadOnly: boolean;
48
46
  searchony: boolean;
49
47
  validationErrors: null;
50
48
  highlightRequired: boolean;
@@ -53,7 +51,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
53
51
  "update:modelValue": (value: any) => void;
54
52
  change: (value: any) => void;
55
53
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
56
- isReadOnly: boolean;
57
54
  searchony: boolean;
58
55
  validationErrors: null;
59
56
  highlightRequired: boolean;
@@ -62,7 +59,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
62
59
  onInput?: ((value: any) => any) | undefined;
63
60
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
64
61
  }, {
65
- isReadOnly: boolean;
66
62
  validationErrors: Record<string, any> | null;
67
63
  highlightRequired: boolean;
68
64
  }, {}>;
@@ -2,18 +2,22 @@ import { ArrayProperty, EnumProperty } from '@aeriajs/types';
2
2
  import { FormFieldProps } from '../types';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Omit<FormFieldProps<any>, "property"> & {
5
- property: EnumProperty | (ArrayProperty & {
5
+ property: (EnumProperty | (ArrayProperty & {
6
6
  items: EnumProperty;
7
- });
7
+ })) & {
8
+ readOnly?: boolean;
9
+ };
8
10
  columns?: number;
9
11
  }>, {
10
12
  columns: number;
11
13
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
14
  "update:modelValue": (value: any) => void;
13
15
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Omit<FormFieldProps<any>, "property"> & {
14
- property: EnumProperty | (ArrayProperty & {
16
+ property: (EnumProperty | (ArrayProperty & {
15
17
  items: EnumProperty;
16
- });
18
+ })) & {
19
+ readOnly?: boolean;
20
+ };
17
21
  columns?: number;
18
22
  }>, {
19
23
  columns: number;
@@ -5,6 +5,7 @@ type Props = {
5
5
  indexes: readonly string[];
6
6
  modelValue?: any;
7
7
  property: SearchProperty;
8
+ readOnly?: boolean;
8
9
  };
9
10
  declare function __VLS_template(): {
10
11
  default?(_: {}): any;
@@ -6,5 +6,6 @@ export type FormFieldProps<TModelValue, TProperty = Property> = {
6
6
  propertyName?: string;
7
7
  parentPropertyName?: string;
8
8
  parentCollection?: string;
9
+ readOnly?: boolean;
9
10
  };
10
11
  export type SearchProperty = RefProperty | ArrayOfRefs;
@@ -1,14 +1,14 @@
1
- import { defineComponent as S, ref as h, resolveDirective as w, openBlock as u, createElementBlock as A, Fragment as V, createVNode as s, mergeProps as _, unref as o, withCtx as r, createElementVNode as C, toDisplayString as n, renderSlot as b, createCommentVNode as N, withDirectives as p, createBlock as d, createTextVNode as c } from "vue";
1
+ import { defineComponent as S, ref as b, resolveDirective as h, openBlock as u, createElementBlock as w, Fragment as A, createVNode as s, mergeProps as _, unref as o, withCtx as a, createElementVNode as V, toDisplayString as n, renderSlot as C, createCommentVNode as N, withDirectives as d, createBlock as p, createTextVNode as c } from "vue";
2
2
  import { useRouter as P } from "vue-router";
3
3
  import { useStore as g } from "@aeria-ui/state-management";
4
4
  import { STORAGE_NAMESPACE as v } from "@aeria-ui/core";
5
- import { e as z, f as E, b as f, g as I, a as O, A as B, h as U } from "./index-13fe0da8.js";
5
+ import { f as z, g as E, b as f, h as I, a as O, A as B, i as U } from "./index-6876218a.js";
6
6
  import "@aeria-ui/i18n";
7
7
  import "@aeriajs/common";
8
- const D = { class: "profile__user-name" }, F = /* @__PURE__ */ S({
9
- __name: "profile",
10
- setup(M) {
11
- const e = g("user"), y = g("meta"), l = h(!1);
8
+ const x = { class: "profile__user-name" }, D = /* @__PURE__ */ S({
9
+ __name: "index",
10
+ setup(F) {
11
+ const e = g("user"), y = g("meta"), l = b(!1);
12
12
  e.$actions.setItem(e.currentUser);
13
13
  const $ = async () => {
14
14
  await e.$actions.insert({
@@ -27,8 +27,8 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ S({
27
27
  await e.$actions.signout(), P().push("/user/signin");
28
28
  };
29
29
  return (i, t) => {
30
- const m = w("clickable");
31
- return u(), A(V, null, [
30
+ const m = h("clickable");
31
+ return u(), w(A, null, [
32
32
  s(z, _({ alt: "User picture" }, {
33
33
  width: "14rem",
34
34
  height: "14rem"
@@ -37,19 +37,19 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ S({
37
37
  "file-id": o(e).item.picture_file && typeof o(e).item.picture_file == "object" ? o(e).item.picture_file._id : o(e).item.picture_file,
38
38
  style: { display: "flex", "flex-direction": "column", "align-items": "center" }
39
39
  }), {
40
- caption: r(() => [
41
- C("div", D, n(o(e).item.name), 1)
40
+ caption: a(() => [
41
+ V("div", x, n(o(e).item.name), 1)
42
42
  ]),
43
43
  _: 1
44
44
  }, 16, ["file-id"]),
45
- i.$slots["user-profile"] ? b(i.$slots, "user-profile", { key: 0 }, void 0, !0) : N("", !0),
45
+ i.$slots["user-profile"] ? C(i.$slots, "user-profile", { key: 0 }, void 0, !0) : N("", !0),
46
46
  s(E, null, {
47
- "edit-profile": r(() => [
48
- p((u(), d(f, {
47
+ "edit-profile": a(() => [
48
+ d((u(), p(f, {
49
49
  icon: "pencil",
50
- onClick: t[0] || (t[0] = (a) => l.value = !0)
50
+ onClick: t[0] || (t[0] = (r) => l.value = !0)
51
51
  }, {
52
- default: r(() => [
52
+ default: a(() => [
53
53
  c(n(i.t("edit_profile", { capitalize: !0 })), 1)
54
54
  ]),
55
55
  _: 1
@@ -57,12 +57,12 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ S({
57
57
  [m]
58
58
  ])
59
59
  ]),
60
- "change-password": r(() => [
61
- p((u(), d(f, {
60
+ "change-password": a(() => [
61
+ d((u(), p(f, {
62
62
  icon: "key",
63
- onClick: t[1] || (t[1] = (a) => i.$router.push("/dashboard/user/changepass"))
63
+ onClick: t[1] || (t[1] = (r) => i.$router.push("/dashboard/user/changepass"))
64
64
  }, {
65
- default: r(() => [
65
+ default: a(() => [
66
66
  c(n(i.t("change_password", { capitalize: !0 })), 1)
67
67
  ]),
68
68
  _: 1
@@ -70,12 +70,12 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ S({
70
70
  [m]
71
71
  ])
72
72
  ]),
73
- signout: r(() => [
74
- p((u(), d(f, {
73
+ signout: a(() => [
74
+ d((u(), p(f, {
75
75
  icon: "sign-out",
76
76
  onClick: k
77
77
  }, {
78
- default: r(() => [
78
+ default: a(() => [
79
79
  c(n(i.t("signout", { capitalize: !0 })), 1)
80
80
  ]),
81
81
  _: 1
@@ -87,28 +87,28 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ S({
87
87
  }),
88
88
  s(I, {
89
89
  modelValue: l.value,
90
- "onUpdate:modelValue": t[3] || (t[3] = (a) => l.value = a),
90
+ "onUpdate:modelValue": t[3] || (t[3] = (r) => l.value = r),
91
91
  float: "",
92
92
  "close-hint": "",
93
93
  title: i.t("edit_profile", { capitalize: !0 }),
94
- onOverlayClick: t[4] || (t[4] = (a) => l.value = !1)
94
+ onOverlayClick: t[4] || (t[4] = (r) => l.value = !1)
95
95
  }, {
96
- footer: r(() => [
96
+ footer: a(() => [
97
97
  s(O, {
98
98
  large: "",
99
99
  loading: o(e).loading.insert,
100
100
  onClick: $
101
101
  }, {
102
- default: r(() => [
102
+ default: a(() => [
103
103
  c(n(i.t("action.save", { capitalize: !0 })), 1)
104
104
  ]),
105
105
  _: 1
106
106
  }, 8, ["loading"])
107
107
  ]),
108
- default: r(() => [
108
+ default: a(() => [
109
109
  s(B, _({
110
110
  modelValue: o(e).item,
111
- "onUpdate:modelValue": t[2] || (t[2] = (a) => o(e).item = a)
111
+ "onUpdate:modelValue": t[2] || (t[2] = (r) => o(e).item = r)
112
112
  }, {
113
113
  collection: "user",
114
114
  form: o(e).$actions.useProperties([
@@ -126,7 +126,7 @@ const D = { class: "profile__user-name" }, F = /* @__PURE__ */ S({
126
126
  };
127
127
  }
128
128
  });
129
- const x = /* @__PURE__ */ U(F, [["__scopeId", "data-v-cfc85adc"]]);
129
+ const q = /* @__PURE__ */ U(D, [["__scopeId", "data-v-357c9b3a"]]);
130
130
  export {
131
- x as default
131
+ q as default
132
132
  };
@@ -1,12 +1,12 @@
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-13fe0da8.js";
1
+ import { defineComponent as e, openBlock as t, createBlock as r, createSlots as n, withCtx as c, renderSlot as i, createCommentVNode as l } from "vue";
2
+ import { d as m } from "./index-6876218a.js";
3
3
  import "@aeria-ui/i18n";
4
4
  import "@aeria-ui/core";
5
5
  import "@aeriajs/common";
6
6
  import "@aeria-ui/state-management";
7
7
  import "vue-router";
8
8
  const _ = /* @__PURE__ */ e({
9
- __name: "crud-view",
9
+ __name: "index",
10
10
  props: {
11
11
  collection: {}
12
12
  },
@@ -14,15 +14,15 @@ const _ = /* @__PURE__ */ e({
14
14
  return (o, s) => o.collection ? (t(), r(m, {
15
15
  key: o.collection,
16
16
  collection: o.collection
17
- }, c({ _: 2 }, [
17
+ }, n({ _: 2 }, [
18
18
  o.$slots["crud-empty"] ? {
19
19
  name: "empty",
20
- fn: i(() => [
21
- l(o.$slots, "crud-empty")
20
+ fn: c(() => [
21
+ i(o.$slots, "crud-empty")
22
22
  ]),
23
23
  key: "0"
24
24
  } : void 0
25
- ]), 1032, ["collection"])) : n("", !0);
25
+ ]), 1032, ["collection"])) : l("", !0);
26
26
  }
27
27
  });
28
28
  export {