@aeria-ui/ui 0.0.62 → 0.0.64

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_-b18f0e75.js +37 -0
  2. package/dist/{activation-7645786e.js → activation-57b4c031.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/{crud-view-3df511a9.js → index-1e2c789e.js} +7 -7
  9. package/dist/index-557fa3f5.js +3416 -0
  10. package/dist/{profile-7847d400.js → index-5f6fe3df.js} +30 -30
  11. package/dist/{password-change-55124275.js → index-97e23443.js} +14 -14
  12. package/dist/{signin-81d4ab57.js → signin-847b157f.js} +1 -1
  13. package/dist/{signup-ab6052da.js → signup-6a194afc.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-557fa3f5.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-557fa3f5.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;
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,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-557fa3f5.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 {