@aeria-ui/ui 0.0.145 → 0.0.147
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.
- package/dist/{_id_-B9rfyNBK.js → _id_-35671aff.js} +14 -9
- package/dist/{activation-CZdJuNBp.js → activation-9b511196.js} +15 -13
- package/dist/components/aeria-accordion/aeria-accordion.vue.d.ts +12 -8
- package/dist/components/aeria-badge/aeria-badge.vue.d.ts +12 -8
- package/dist/components/aeria-bare-button/aeria-bare-button.vue.d.ts +15 -11
- package/dist/components/aeria-button/aeria-button.vue.d.ts +14 -10
- package/dist/components/aeria-card/aeria-card.vue.d.ts +15 -11
- package/dist/components/aeria-context-menu/aeria-context-menu.vue.d.ts +22 -19
- package/dist/components/aeria-crud/_internals/helpers.d.ts +3 -2
- package/dist/components/aeria-crud/_internals/layouts/aeria-grid/aeria-grid.vue.d.ts +12 -2
- package/dist/components/aeria-crud/_internals/layouts/aeria-tabular/aeria-tabular.vue.d.ts +15 -10
- package/dist/components/aeria-crud/_internals/layouts/index.d.ts +82 -40
- package/dist/components/aeria-crud/aeria-crud.vue.d.ts +26 -21
- package/dist/components/aeria-filter-panel/aeria-filter-panel.vue.d.ts +2 -2
- package/dist/components/aeria-grid/aeria-grid.vue.d.ts +12 -8
- package/dist/components/aeria-icon/aeria-icon.vue.d.ts +14 -9
- package/dist/components/aeria-info/aeria-info.vue.d.ts +26 -11
- package/dist/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +33 -16
- package/dist/components/aeria-main/aeria-main.vue.d.ts +3 -8
- package/dist/components/aeria-menu/aeria-menu.vue.d.ts +2 -7
- package/dist/components/aeria-pagination/aeria-pagination.vue.d.ts +15 -5
- package/dist/components/aeria-panel/aeria-panel.vue.d.ts +33 -15
- package/dist/components/aeria-picture/aeria-picture.vue.d.ts +14 -10
- package/dist/components/aeria-table/aeria-table.vue.d.ts +25 -20
- package/dist/components/aeria-tabs/aeria-tabs.vue.d.ts +13 -9
- package/dist/components/dashboard/aeria-crud-topbar/aeria-crud-topbar.vue.d.ts +10 -1
- package/dist/components/dashboard/aeria-password-form/aeria-password-form.vue.d.ts +17 -13
- package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +14 -9
- package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +14 -9
- package/dist/components/form/aeria-checkbox/aeria-checkbox.vue.d.ts +26 -16
- package/dist/components/form/aeria-file/_internals/components/aeria-file-item.vue.d.ts +13 -8
- package/dist/components/form/aeria-file/aeria-file.vue.d.ts +22 -12
- package/dist/components/form/aeria-form/_internals/helpers.d.ts +3 -2
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +47 -26
- package/dist/components/form/aeria-input/aeria-input.vue.d.ts +22 -17
- package/dist/components/form/aeria-options/aeria-options.vue.d.ts +29 -7
- package/dist/components/form/aeria-search/_internals/components/aeria-search-container/aeria-search-container.vue.d.ts +16 -14
- package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +18 -13
- package/dist/components/form/aeria-search/aeria-search.vue.d.ts +25 -3
- package/dist/components/form/aeria-select/aeria-select.vue.d.ts +18 -15
- package/dist/components/form/aeria-switch/aeria-switch.vue.d.ts +18 -8
- package/dist/components/form/types.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index-13f71246.js +31 -0
- package/dist/index-17786102.js +144 -0
- package/dist/index-54fc64aa.js +66 -0
- package/dist/index-da006cde.js +3529 -0
- package/dist/{redefine-password-CL5NDEZp.js → redefine-password-a556ab1e.js} +10 -8
- package/dist/routes.d.ts +2 -1
- package/dist/signin-80046a53.js +91 -0
- package/dist/{signup-CUP6Q-pT.js → signup-2b9cbf2c.js} +28 -24
- package/dist/style.css +1 -0
- package/dist/ui.js +42 -35
- package/dist/views/dashboard/[collection]/[id].vue.d.ts +10 -1
- package/dist/views/dashboard/[collection]/index.vue.d.ts +12 -8
- package/dist/views/dashboard/user/profile/index.vue.d.ts +2 -7
- package/package.json +2 -2
- package/dist/index-CYHXxuxa.js +0 -25
- package/dist/index-D9-xEbzX.js +0 -57
- package/dist/index-DPIvfGmD.js +0 -130
- package/dist/index-nfGoLtIp.js +0 -3502
- package/dist/signin-BzQLHmp1.js +0 -84
- package/dist/ui.css +0 -1
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import { Property, EnumProperty, BooleanProperty } from '
|
|
1
|
+
import { Property, EnumProperty, BooleanProperty } from '@aeriajs/types';
|
|
2
2
|
import { FormFieldProps } from '../types.js';
|
|
3
|
+
|
|
3
4
|
type Props = FormFieldProps<any, Property & (EnumProperty | BooleanProperty)> & {
|
|
4
5
|
booleanRef?: boolean;
|
|
5
6
|
multiple?: boolean | number;
|
|
6
7
|
noOutline?: boolean;
|
|
7
8
|
};
|
|
8
9
|
declare function __VLS_template(): {
|
|
9
|
-
|
|
10
|
-
default?(_: {}): any;
|
|
11
|
-
};
|
|
12
|
-
refs: {
|
|
13
|
-
select: HTMLSelectElement;
|
|
14
|
-
};
|
|
15
|
-
attrs: Partial<{}>;
|
|
10
|
+
default?(_: {}): any;
|
|
16
11
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
change: (value: unknown) => void;
|
|
14
|
+
"update:modelValue": (value: unknown) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
|
|
22
16
|
onChange?: ((value: unknown) => any) | undefined;
|
|
23
17
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
24
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
26
20
|
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
27
30
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
31
|
new (): {
|
|
29
32
|
$slots: S;
|
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
import { BooleanProperty } from '
|
|
1
|
+
import { BooleanProperty } from '@aeriajs/types';
|
|
2
2
|
import { FormFieldProps } from '../types.js';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FormFieldProps<any, (import('@aeriajs/types').PropertyBase & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').RefProperty & BooleanProperty) | (import('@aeriajs/types').PropertyBase & Omit<import('@aeriajs/types').RefProperty, "$ref"> & {
|
|
4
5
|
$ref: "file";
|
|
5
6
|
accept?: readonly string[];
|
|
6
7
|
extensions?: readonly string[];
|
|
7
|
-
} & BooleanProperty) | (import('
|
|
8
|
-
change: (value: boolean) =>
|
|
9
|
-
"update:modelValue": (value: boolean) =>
|
|
10
|
-
}, string, import('vue').PublicProps, Readonly<FormFieldProps<any, (import('
|
|
8
|
+
} & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').EnumProperty & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').GetterProperty & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').ConstProperty & BooleanProperty)>>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
change: (value: boolean) => void;
|
|
10
|
+
"update:modelValue": (value: boolean) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FormFieldProps<any, (import('@aeriajs/types').PropertyBase & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').RefProperty & BooleanProperty) | (import('@aeriajs/types').PropertyBase & Omit<import('@aeriajs/types').RefProperty, "$ref"> & {
|
|
11
12
|
$ref: "file";
|
|
12
13
|
accept?: readonly string[];
|
|
13
14
|
extensions?: readonly string[];
|
|
14
|
-
} & BooleanProperty) | (import('
|
|
15
|
+
} & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').EnumProperty & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').GetterProperty & BooleanProperty) | (import('@aeriajs/types').PropertyBase & import('@aeriajs/types').ConstProperty & BooleanProperty)>>>> & Readonly<{
|
|
15
16
|
onChange?: ((value: boolean) => any) | undefined;
|
|
16
17
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
18
19
|
default?(_: {}): any;
|
|
19
20
|
}>;
|
|
20
21
|
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
21
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
32
|
new (): {
|
|
23
33
|
$slots: S;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Property, RefProperty, ArrayProperty } from '
|
|
1
|
+
import { Property, RefProperty, ArrayProperty } from '@aeriajs/types';
|
|
2
|
+
|
|
2
3
|
export type FormFieldProps<TModelValue, TProperty = Property> = {
|
|
3
4
|
modelValue?: TModelValue;
|
|
4
5
|
property?: TProperty;
|
|
@@ -17,6 +17,7 @@ import { default as AeriaPanel } from './aeria-panel/aeria-panel.vue';
|
|
|
17
17
|
import { default as AeriaPicture } from './aeria-picture/aeria-picture.vue';
|
|
18
18
|
import { default as AeriaTable } from './aeria-table/aeria-table.vue';
|
|
19
19
|
import { default as AeriaTabs } from './aeria-tabs/aeria-tabs.vue';
|
|
20
|
+
|
|
20
21
|
export { AeriaAccordion, AeriaBadge, AeriaBareButton, AeriaButton, AeriaCard, AeriaContextMenu, AeriaCrud, AeriaGrid, AeriaFilterPanel, AeriaIcon, AeriaInfo, AeriaInsertPanel, AeriaMain, AeriaMenu, AeriaPagination, AeriaPanel, AeriaPicture, AeriaTable, AeriaTabs, };
|
|
21
22
|
export * from './form/index.js';
|
|
22
23
|
export * from './utils/index.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as e, openBlock as t, createBlock as r, createSlots as i, withCtx as n, renderSlot as c, createCommentVNode as l } from "vue";
|
|
2
|
+
import { d as m } from "./index-da006cde.js";
|
|
3
|
+
import "@aeria-ui/i18n";
|
|
4
|
+
import "@aeria-ui/core";
|
|
5
|
+
import "@aeriajs/common";
|
|
6
|
+
import "@aeria-ui/state-management";
|
|
7
|
+
import "vue-router";
|
|
8
|
+
import "@aeria-ui/utils";
|
|
9
|
+
const h = /* @__PURE__ */ e({
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: {
|
|
12
|
+
collection: {}
|
|
13
|
+
},
|
|
14
|
+
setup(p) {
|
|
15
|
+
return (o, s) => o.collection ? (t(), r(m, {
|
|
16
|
+
key: o.collection,
|
|
17
|
+
collection: o.collection
|
|
18
|
+
}, i({ _: 2 }, [
|
|
19
|
+
o.$slots["crud-empty"] ? {
|
|
20
|
+
name: "empty",
|
|
21
|
+
fn: n(() => [
|
|
22
|
+
c(o.$slots, "crud-empty")
|
|
23
|
+
]),
|
|
24
|
+
key: "0"
|
|
25
|
+
} : void 0
|
|
26
|
+
]), 1032, ["collection"])) : l("", !0);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
h as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { defineComponent as k, ref as h, resolveDirective as A, openBlock as d, createElementBlock as V, Fragment as C, createVNode as n, mergeProps as v, unref as i, withCtx as r, createElementVNode as w, toDisplayString as u, renderSlot as I, createCommentVNode as N, withDirectives as m, createBlock as f, createTextVNode as c } from "vue";
|
|
2
|
+
import { useRouter as P } from "vue-router";
|
|
3
|
+
import { useStore as y } from "@aeria-ui/state-management";
|
|
4
|
+
import { STORAGE_NAMESPACE as b } from "@aeria-ui/core";
|
|
5
|
+
import { f as E, g as z, b as p, h as O, a as x, A as B, i as M } from "./index-da006cde.js";
|
|
6
|
+
import "@aeria-ui/i18n";
|
|
7
|
+
import "@aeriajs/common";
|
|
8
|
+
import "@aeria-ui/utils";
|
|
9
|
+
const U = { class: "profile__user-name" }, D = /* @__PURE__ */ k({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(F) {
|
|
12
|
+
const _ = P(), e = y("user"), g = y("meta"), s = h(!1);
|
|
13
|
+
e.$actions.setItem(e.currentUser);
|
|
14
|
+
const S = async () => {
|
|
15
|
+
const { error: o } = await e.$actions.custom(
|
|
16
|
+
"editProfile",
|
|
17
|
+
e.diffedItem
|
|
18
|
+
);
|
|
19
|
+
if (o) {
|
|
20
|
+
g.$actions.spawnModal({
|
|
21
|
+
title: `Error! ${o.httpStatus}`,
|
|
22
|
+
body: o.code
|
|
23
|
+
});
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (typeof localStorage < "u") {
|
|
27
|
+
const t = localStorage.getItem(`${b}:auth`);
|
|
28
|
+
if (t) {
|
|
29
|
+
const a = JSON.parse(t);
|
|
30
|
+
a.user = e.item, localStorage.setItem(`${b}:auth`, JSON.stringify(a));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
g.$actions.spawnModal({
|
|
34
|
+
title: "Feito!",
|
|
35
|
+
body: "Suas informações foram salvas"
|
|
36
|
+
}), s.value = !1;
|
|
37
|
+
}, $ = async () => {
|
|
38
|
+
e.$actions.signout(), _.push("/user/signin");
|
|
39
|
+
};
|
|
40
|
+
return (o, t) => {
|
|
41
|
+
const a = A("clickable");
|
|
42
|
+
return d(), V(C, null, [
|
|
43
|
+
n(E, v({ alt: "User picture" }, {
|
|
44
|
+
width: "14rem",
|
|
45
|
+
height: "14rem"
|
|
46
|
+
}, {
|
|
47
|
+
bordered: "",
|
|
48
|
+
"file-id": i(e).item.picture_file && typeof i(e).item.picture_file == "object" ? i(e).item.picture_file._id : i(e).item.picture_file,
|
|
49
|
+
style: { display: "flex", "flex-direction": "column", "align-items": "center" }
|
|
50
|
+
}), {
|
|
51
|
+
caption: r(() => [
|
|
52
|
+
w("div", U, u(i(e).item.name), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 16, ["file-id"]),
|
|
56
|
+
o.$slots["user-profile"] ? I(o.$slots, "user-profile", { key: 0 }, void 0, !0) : N("", !0),
|
|
57
|
+
n(z, null, {
|
|
58
|
+
"edit-profile": r(() => [
|
|
59
|
+
m((d(), f(p, {
|
|
60
|
+
icon: "pencil",
|
|
61
|
+
onClick: t[0] || (t[0] = (l) => s.value = !0)
|
|
62
|
+
}, {
|
|
63
|
+
default: r(() => [
|
|
64
|
+
c(u(o.t("edit_profile", { capitalize: !0 })), 1)
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
})), [
|
|
68
|
+
[a]
|
|
69
|
+
])
|
|
70
|
+
]),
|
|
71
|
+
"change-password": r(() => [
|
|
72
|
+
m((d(), f(p, {
|
|
73
|
+
icon: "key",
|
|
74
|
+
onClick: t[1] || (t[1] = (l) => i(_).push("/dashboard/user/changepass"))
|
|
75
|
+
}, {
|
|
76
|
+
default: r(() => [
|
|
77
|
+
c(u(o.t("change_password", { capitalize: !0 })), 1)
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
})), [
|
|
81
|
+
[a]
|
|
82
|
+
])
|
|
83
|
+
]),
|
|
84
|
+
signout: r(() => [
|
|
85
|
+
m((d(), f(p, {
|
|
86
|
+
icon: "sign-out",
|
|
87
|
+
onClick: $
|
|
88
|
+
}, {
|
|
89
|
+
default: r(() => [
|
|
90
|
+
c(u(o.t("signout", { capitalize: !0 })), 1)
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
})), [
|
|
94
|
+
[a]
|
|
95
|
+
])
|
|
96
|
+
]),
|
|
97
|
+
_: 1
|
|
98
|
+
}),
|
|
99
|
+
n(O, {
|
|
100
|
+
modelValue: s.value,
|
|
101
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => s.value = l),
|
|
102
|
+
float: "",
|
|
103
|
+
"close-hint": "",
|
|
104
|
+
title: o.t("edit_profile", { capitalize: !0 }),
|
|
105
|
+
onOverlayClick: t[4] || (t[4] = (l) => s.value = !1)
|
|
106
|
+
}, {
|
|
107
|
+
footer: r(() => [
|
|
108
|
+
n(x, {
|
|
109
|
+
large: "",
|
|
110
|
+
disabled: !i(e).diffedItem._id,
|
|
111
|
+
loading: i(e).loading.insert,
|
|
112
|
+
onClick: S
|
|
113
|
+
}, {
|
|
114
|
+
default: r(() => [
|
|
115
|
+
c(u(o.t("action.save", { capitalize: !0 })), 1)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["disabled", "loading"])
|
|
119
|
+
]),
|
|
120
|
+
default: r(() => [
|
|
121
|
+
n(B, v({
|
|
122
|
+
modelValue: i(e).item,
|
|
123
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => i(e).item = l)
|
|
124
|
+
}, {
|
|
125
|
+
collection: "user",
|
|
126
|
+
form: i(e).$actions.useProperties([
|
|
127
|
+
"name",
|
|
128
|
+
"email",
|
|
129
|
+
"phone",
|
|
130
|
+
"picture_file"
|
|
131
|
+
]),
|
|
132
|
+
formLayout: i(e).description.formLayout
|
|
133
|
+
}), null, 16, ["modelValue"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["modelValue", "title"])
|
|
137
|
+
], 64);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
const K = /* @__PURE__ */ M(D, [["__scopeId", "data-v-368b73ef"]]);
|
|
142
|
+
export {
|
|
143
|
+
K as default
|
|
144
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as u, ref as m, openBlock as _, createBlock as f, withCtx as r, createVNode as d, withModifiers as w, createTextVNode as b, toDisplayString as h, unref as v } from "vue";
|
|
2
|
+
import { useRouter as x } from "vue-router";
|
|
3
|
+
import { useI18n as $ } from "@aeria-ui/i18n";
|
|
4
|
+
import { useStore as l } from "@aeria-ui/state-management";
|
|
5
|
+
import { h as y, _ as S, a as V } from "./index-da006cde.js";
|
|
6
|
+
import "@aeria-ui/core";
|
|
7
|
+
import "@aeriajs/common";
|
|
8
|
+
import "@aeria-ui/utils";
|
|
9
|
+
const D = /* @__PURE__ */ u({
|
|
10
|
+
__name: "index",
|
|
11
|
+
setup(k) {
|
|
12
|
+
const c = x(), s = l("user"), i = l("meta"), { t } = $(), o = m({
|
|
13
|
+
password: "",
|
|
14
|
+
confirmation: ""
|
|
15
|
+
}), p = async () => {
|
|
16
|
+
const { error: e } = await s.$actions.custom("editProfile", {
|
|
17
|
+
_id: s.item._id,
|
|
18
|
+
password: o.value.password
|
|
19
|
+
});
|
|
20
|
+
if (e) {
|
|
21
|
+
i.$actions.spawnModal({
|
|
22
|
+
title: `Error! ${e.httpStatus}`,
|
|
23
|
+
body: e.code
|
|
24
|
+
});
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
i.$actions.spawnModal({
|
|
28
|
+
title: `${t("done", {
|
|
29
|
+
capitalize: !0
|
|
30
|
+
})}!`,
|
|
31
|
+
body: t("password_has_been_changed", {
|
|
32
|
+
capitalize: !0
|
|
33
|
+
})
|
|
34
|
+
}), c.back();
|
|
35
|
+
};
|
|
36
|
+
return (e, n) => (_(), f(y, {
|
|
37
|
+
bordered: "",
|
|
38
|
+
style: { "--panel-max-width": "40rem" }
|
|
39
|
+
}, {
|
|
40
|
+
default: r(() => [
|
|
41
|
+
d(S, {
|
|
42
|
+
modelValue: o.value,
|
|
43
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a)
|
|
44
|
+
}, {
|
|
45
|
+
default: r(({ passwordError: a }) => [
|
|
46
|
+
d(V, {
|
|
47
|
+
class: "passchange__save-button",
|
|
48
|
+
disabled: !!a,
|
|
49
|
+
onClick: w(p, ["prevent"])
|
|
50
|
+
}, {
|
|
51
|
+
default: r(() => [
|
|
52
|
+
b(h(v(t)("action.save", { capitalize: !0 })), 1)
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["disabled"])
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 8, ["modelValue"])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
D as default
|
|
66
|
+
};
|