pukaad-ui-lib 1.115.1 → 1.117.0
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/module.json +1 -1
- package/dist/runtime/components/dialog/dialog-email-OTP.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/dialog-email-OTP.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/dialog-phone-OTP.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/dialog-phone-OTP.vue.d.ts +2 -2
- package/dist/runtime/components/drawer/drawer-profile-about.vue +33 -5
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-slider.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-slider.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-account-disabled-alert.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-account-disabled-alert.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-account-disabled-confirmed.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-account-disabled-reason.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-account-disabled-reason.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +3 -3
- package/dist/runtime/components/modal/modal-password-confirmed.vue +1 -1
- package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +3 -3
- package/dist/runtime/components/modal/modal-password-new.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-password-new.vue +1 -1
- package/dist/runtime/components/modal/modal-password-new.vue.d.ts +2 -2
- package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +2 -2
- package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +2 -2
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +2 -2
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +2 -2
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +4 -4
- package/dist/runtime/composables/useApi.d.ts +1 -0
- package/dist/runtime/composables/useApi.js +24 -0
- package/package.json +1 -1
- package/dist/runtime/assets/css/fonts/Anuphan.css +0 -1
- package/dist/runtime/assets/css/fonts/Sarabun.css +0 -1
- package/dist/runtime/components/card/card-recommend-publisher.d.vue.ts +0 -24
- package/dist/runtime/components/card/card-recommend-publisher.vue +0 -63
- package/dist/runtime/components/card/card-recommend-publisher.vue.d.ts +0 -24
- package/dist/runtime/components/modal/modal-password.d.vue.ts +0 -22
- package/dist/runtime/components/modal/modal-password.vue +0 -73
- package/dist/runtime/components/modal/modal-password.vue.d.ts +0 -22
- package/dist/runtime/components/tab.d.vue.ts +0 -48
- package/dist/runtime/components/tab.vue +0 -176
- package/dist/runtime/components/tab.vue.d.ts +0 -48
- package/dist/runtime/plugins/dayjs.d.ts +0 -7
- package/dist/runtime/plugins/dayjs.js +0 -9
- package/dist/runtime/plugins/format.d.ts +0 -9
- package/dist/runtime/plugins/format.js +0 -29
package/dist/module.json
CHANGED
|
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (value: boolean) => any;
|
|
9
9
|
} & {
|
|
10
|
-
close: () => any;
|
|
11
10
|
complete: () => any;
|
|
11
|
+
close: () => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
-
onClose?: (() => any) | undefined;
|
|
15
14
|
onComplete?: (() => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
confirmedText: string;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (value: boolean) => any;
|
|
9
9
|
} & {
|
|
10
|
-
close: () => any;
|
|
11
10
|
complete: () => any;
|
|
11
|
+
close: () => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
-
onClose?: (() => any) | undefined;
|
|
15
14
|
onComplete?: (() => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
confirmedText: string;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (value: boolean) => any;
|
|
9
9
|
} & {
|
|
10
|
-
close: () => any;
|
|
11
10
|
complete: (value: string) => any;
|
|
11
|
+
close: () => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
-
onClose?: (() => any) | undefined;
|
|
15
14
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
phone: string;
|
|
18
18
|
confirmedText: string;
|
|
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (value: boolean) => any;
|
|
9
9
|
} & {
|
|
10
|
-
close: () => any;
|
|
11
10
|
complete: (value: string) => any;
|
|
11
|
+
close: () => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
-
onClose?: (() => any) | undefined;
|
|
15
14
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
phone: string;
|
|
18
18
|
confirmedText: string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<Drawer
|
|
3
3
|
class="w-[748px]"
|
|
4
4
|
title="เกี่ยวกับ"
|
|
5
|
+
:loading="loading"
|
|
5
6
|
@close="onClose"
|
|
6
7
|
disabled-auto-close
|
|
7
8
|
@submit="onSubmit"
|
|
@@ -49,8 +50,9 @@
|
|
|
49
50
|
</template>
|
|
50
51
|
|
|
51
52
|
<script setup>
|
|
52
|
-
import { useNuxtApp } from "nuxt/app";
|
|
53
|
-
const { $alert } = useNuxtApp();
|
|
53
|
+
import { useNuxtApp, useRuntimeConfig } from "nuxt/app";
|
|
54
|
+
const { $alert, $toast } = useNuxtApp();
|
|
55
|
+
const config = useRuntimeConfig();
|
|
54
56
|
import { ref, watch } from "vue";
|
|
55
57
|
const emit = defineEmits(["submit"]);
|
|
56
58
|
const props = defineProps({
|
|
@@ -65,6 +67,7 @@ const props = defineProps({
|
|
|
65
67
|
const form = ref(
|
|
66
68
|
JSON.parse(JSON.stringify(props.item))
|
|
67
69
|
);
|
|
70
|
+
const loading = ref(false);
|
|
68
71
|
const isDrawerOpen = defineModel({ type: Boolean, ...{
|
|
69
72
|
default: false
|
|
70
73
|
} });
|
|
@@ -84,8 +87,33 @@ const onClose = async () => {
|
|
|
84
87
|
isDrawerOpen.value = false;
|
|
85
88
|
}
|
|
86
89
|
};
|
|
87
|
-
const onSubmit = () => {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
const onSubmit = async () => {
|
|
91
|
+
loading.value = true;
|
|
92
|
+
try {
|
|
93
|
+
const res = await $fetch(`${config.public.BASE_URL_API}/profiles/me/about`, {
|
|
94
|
+
method: "PUT",
|
|
95
|
+
credentials: "include",
|
|
96
|
+
body: {
|
|
97
|
+
description: form.value.description,
|
|
98
|
+
category: form.value.category,
|
|
99
|
+
address: form.value.address,
|
|
100
|
+
phone: form.value.phone,
|
|
101
|
+
links: form.value.links
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
if (res.code === 200) {
|
|
105
|
+
$toast?.success?.(res.message || "\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08");
|
|
106
|
+
emit("submit", form.value);
|
|
107
|
+
isDrawerOpen.value = false;
|
|
108
|
+
} else {
|
|
109
|
+
$toast?.error?.(res.message || "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14");
|
|
110
|
+
}
|
|
111
|
+
} catch (e) {
|
|
112
|
+
$toast?.error?.(
|
|
113
|
+
e?.data?.message || "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D"
|
|
114
|
+
);
|
|
115
|
+
} finally {
|
|
116
|
+
loading.value = false;
|
|
117
|
+
}
|
|
90
118
|
};
|
|
91
119
|
</script>
|
|
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
38
38
|
description: string;
|
|
39
|
+
limit: number;
|
|
39
40
|
options: AutocompleteOption[] | string[] | number[];
|
|
40
41
|
placeholder: string;
|
|
41
|
-
limit: number;
|
|
42
42
|
disabledErrorMessage: boolean;
|
|
43
43
|
disabledBorder: boolean;
|
|
44
44
|
showCounter: boolean;
|
|
@@ -36,9 +36,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
38
38
|
description: string;
|
|
39
|
+
limit: number;
|
|
39
40
|
options: AutocompleteOption[] | string[] | number[];
|
|
40
41
|
placeholder: string;
|
|
41
|
-
limit: number;
|
|
42
42
|
disabledErrorMessage: boolean;
|
|
43
43
|
disabledBorder: boolean;
|
|
44
44
|
showCounter: boolean;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
27
27
|
fullHeight: boolean;
|
|
28
28
|
name: string;
|
|
29
29
|
limit: number;
|
|
30
|
-
accept: string;
|
|
31
30
|
disabledErrorMessage: boolean;
|
|
31
|
+
accept: string;
|
|
32
32
|
labelIcon: string;
|
|
33
33
|
disabledDrop: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
27
27
|
fullHeight: boolean;
|
|
28
28
|
name: string;
|
|
29
29
|
limit: number;
|
|
30
|
-
accept: string;
|
|
31
30
|
disabledErrorMessage: boolean;
|
|
31
|
+
accept: string;
|
|
32
32
|
labelIcon: string;
|
|
33
33
|
disabledDrop: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
}>, {
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
|
-
disabledForgotPassword: boolean;
|
|
22
21
|
new: boolean;
|
|
22
|
+
disabledForgotPassword: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
}>, {
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
|
-
disabledForgotPassword: boolean;
|
|
22
21
|
new: boolean;
|
|
22
|
+
disabledForgotPassword: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
label: string;
|
|
13
13
|
color: InputSliderColor;
|
|
14
14
|
fullWidth: boolean;
|
|
15
|
-
step: number;
|
|
16
15
|
max: number;
|
|
17
16
|
min: number;
|
|
17
|
+
step: number;
|
|
18
18
|
lineHeight: number | string;
|
|
19
19
|
appearance: boolean;
|
|
20
20
|
thumbSize: number | string;
|
|
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
label: string;
|
|
13
13
|
color: InputSliderColor;
|
|
14
14
|
fullWidth: boolean;
|
|
15
|
-
step: number;
|
|
16
15
|
max: number;
|
|
17
16
|
min: number;
|
|
17
|
+
step: number;
|
|
18
18
|
lineHeight: number | string;
|
|
19
19
|
appearance: boolean;
|
|
20
20
|
thumbSize: number | string;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
name: string;
|
|
21
|
-
placeholder: string;
|
|
22
21
|
limit: number;
|
|
22
|
+
placeholder: string;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
name: string;
|
|
21
|
-
placeholder: string;
|
|
22
21
|
limit: number;
|
|
22
|
+
placeholder: string;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -45,11 +45,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
45
45
|
name: string;
|
|
46
46
|
disabled: boolean;
|
|
47
47
|
limit: number;
|
|
48
|
-
resize: "none" | "both" | "horizontal" | "vertical";
|
|
49
48
|
disabledErrorMessage: boolean;
|
|
50
49
|
disabledBorder: boolean;
|
|
51
50
|
showCounter: boolean;
|
|
52
51
|
readonly: boolean;
|
|
52
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
53
53
|
rows: number;
|
|
54
54
|
heightScroll: boolean;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -45,11 +45,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
45
45
|
name: string;
|
|
46
46
|
disabled: boolean;
|
|
47
47
|
limit: number;
|
|
48
|
-
resize: "none" | "both" | "horizontal" | "vertical";
|
|
49
48
|
disabledErrorMessage: boolean;
|
|
50
49
|
disabledBorder: boolean;
|
|
51
50
|
showCounter: boolean;
|
|
52
51
|
readonly: boolean;
|
|
52
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
53
53
|
rows: number;
|
|
54
54
|
heightScroll: boolean;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
-
close: () => any;
|
|
12
11
|
complete: () => any;
|
|
12
|
+
close: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
15
|
onComplete?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
confirmedText: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
-
close: () => any;
|
|
12
11
|
complete: () => any;
|
|
12
|
+
close: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
15
|
onComplete?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
confirmedText: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
-
close: () => any;
|
|
12
11
|
complete: () => any;
|
|
12
|
+
close: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
15
|
onComplete?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
confirmedText: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
-
close: () => any;
|
|
12
11
|
complete: () => any;
|
|
12
|
+
close: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
15
|
onComplete?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
confirmedText: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
-
close: () => any;
|
|
12
11
|
complete: () => any;
|
|
12
|
+
close: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
15
|
onComplete?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
confirmedText: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
} & {
|
|
11
|
-
close: () => any;
|
|
12
11
|
complete: () => any;
|
|
12
|
+
close: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
16
15
|
onComplete?: (() => any) | undefined;
|
|
16
|
+
onClose?: (() => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
confirmedText: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,20 +12,20 @@ type __VLS_ModelProps = {
|
|
|
12
12
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
14
|
"update:modelValue": (value: boolean) => any;
|
|
15
|
-
close: () => any;
|
|
16
15
|
complete: (data: {
|
|
17
16
|
secId: string;
|
|
18
17
|
}) => any;
|
|
18
|
+
close: () => any;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
20
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
|
-
onClose?: (() => any) | undefined;
|
|
22
21
|
onComplete?: ((data: {
|
|
23
22
|
secId: string;
|
|
24
23
|
}) => any) | undefined;
|
|
24
|
+
onClose?: (() => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
title: string;
|
|
27
|
-
confirmText: string;
|
|
28
27
|
disabledForgotPassword: boolean;
|
|
28
|
+
confirmText: string;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -46,7 +46,7 @@ const { $toast } = useNuxtApp();
|
|
|
46
46
|
const config = useRuntimeConfig();
|
|
47
47
|
const isOpen = defineModel({ type: Boolean, ...{ default: false } });
|
|
48
48
|
const apiPath = computed(
|
|
49
|
-
() => config.public.APP_TYPE === "
|
|
49
|
+
() => config.public.APP_TYPE === "OFFICE" ? "/office/auth/password/verify" : "/personal/auth/password/verify"
|
|
50
50
|
);
|
|
51
51
|
const loading = ref(false);
|
|
52
52
|
const password = ref("");
|
|
@@ -12,20 +12,20 @@ type __VLS_ModelProps = {
|
|
|
12
12
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
13
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
14
|
"update:modelValue": (value: boolean) => any;
|
|
15
|
-
close: () => any;
|
|
16
15
|
complete: (data: {
|
|
17
16
|
secId: string;
|
|
18
17
|
}) => any;
|
|
18
|
+
close: () => any;
|
|
19
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
20
20
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
|
-
onClose?: (() => any) | undefined;
|
|
22
21
|
onComplete?: ((data: {
|
|
23
22
|
secId: string;
|
|
24
23
|
}) => any) | undefined;
|
|
24
|
+
onClose?: (() => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
title: string;
|
|
27
|
-
confirmText: string;
|
|
28
27
|
disabledForgotPassword: boolean;
|
|
28
|
+
confirmText: string;
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
31
31
|
export default _default;
|
|
@@ -11,16 +11,16 @@ type __VLS_ModelProps = {
|
|
|
11
11
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (value: boolean) => any;
|
|
14
|
-
close: () => any;
|
|
15
14
|
complete: (data: {
|
|
16
15
|
secId: string;
|
|
17
16
|
}) => any;
|
|
17
|
+
close: () => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
|
-
onClose?: (() => any) | undefined;
|
|
21
20
|
onComplete?: ((data: {
|
|
22
21
|
secId: string;
|
|
23
22
|
}) => any) | undefined;
|
|
23
|
+
onClose?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
title: string;
|
|
26
26
|
confirmText: string;
|
|
@@ -50,7 +50,7 @@ const loading = ref(false);
|
|
|
50
50
|
const password = ref("");
|
|
51
51
|
const logoutAll = ref(false);
|
|
52
52
|
const apiPath = computed(
|
|
53
|
-
() => config.public.APP_TYPE === "
|
|
53
|
+
() => config.public.APP_TYPE === "OFFICE" ? "/office/auth/password/create" : "/personal/auth/password/create"
|
|
54
54
|
);
|
|
55
55
|
watch(isOpen, (open) => {
|
|
56
56
|
if (!open) {
|
|
@@ -11,16 +11,16 @@ type __VLS_ModelProps = {
|
|
|
11
11
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (value: boolean) => any;
|
|
14
|
-
close: () => any;
|
|
15
14
|
complete: (data: {
|
|
16
15
|
secId: string;
|
|
17
16
|
}) => any;
|
|
17
|
+
close: () => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
|
-
onClose?: (() => any) | undefined;
|
|
21
20
|
onComplete?: ((data: {
|
|
22
21
|
secId: string;
|
|
23
22
|
}) => any) | undefined;
|
|
23
|
+
onClose?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
title: string;
|
|
26
26
|
confirmText: string;
|
|
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (value: boolean) => any;
|
|
9
9
|
} & {
|
|
10
|
-
close: () => any;
|
|
11
10
|
complete: (value: string) => any;
|
|
11
|
+
close: () => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
-
onClose?: (() => any) | undefined;
|
|
15
14
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
phone: string;
|
|
18
18
|
confirmedText: string;
|
|
@@ -7,12 +7,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (value: boolean) => any;
|
|
9
9
|
} & {
|
|
10
|
-
close: () => any;
|
|
11
10
|
complete: (value: string) => any;
|
|
11
|
+
close: () => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
-
onClose?: (() => any) | undefined;
|
|
15
14
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
phone: string;
|
|
18
18
|
confirmedText: string;
|
|
@@ -8,19 +8,19 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
openAutoFocus: (event: Event) => any;
|
|
12
|
+
closeAutoFocus: (event: Event) => any;
|
|
11
13
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
14
|
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
13
15
|
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
14
16
|
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
15
|
-
openAutoFocus: (event: Event) => any;
|
|
16
|
-
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
20
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
21
|
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
20
22
|
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
21
23
|
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
22
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,19 +8,19 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
openAutoFocus: (event: Event) => any;
|
|
12
|
+
closeAutoFocus: (event: Event) => any;
|
|
11
13
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
14
|
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
13
15
|
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
14
16
|
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
15
|
-
openAutoFocus: (event: Event) => any;
|
|
16
|
-
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
20
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
21
|
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
20
22
|
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
21
23
|
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
22
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,21 +13,21 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
14
|
submit: (event: Event) => any;
|
|
15
15
|
close: (event: Event) => any;
|
|
16
|
+
openAutoFocus: (event: Event) => any;
|
|
17
|
+
closeAutoFocus: (event: Event) => any;
|
|
16
18
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
17
19
|
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
18
20
|
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
19
21
|
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
20
|
-
openAutoFocus: (event: Event) => any;
|
|
21
|
-
closeAutoFocus: (event: Event) => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onSubmit?: ((event: Event) => any) | undefined;
|
|
24
24
|
onClose?: ((event: Event) => any) | undefined;
|
|
25
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
26
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
27
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
26
28
|
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
27
29
|
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
28
30
|
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
29
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
30
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
disabledCloseBtn: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,21 +13,21 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
14
|
submit: (event: Event) => any;
|
|
15
15
|
close: (event: Event) => any;
|
|
16
|
+
openAutoFocus: (event: Event) => any;
|
|
17
|
+
closeAutoFocus: (event: Event) => any;
|
|
16
18
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
17
19
|
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
18
20
|
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
19
21
|
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
20
|
-
openAutoFocus: (event: Event) => any;
|
|
21
|
-
closeAutoFocus: (event: Event) => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onSubmit?: ((event: Event) => any) | undefined;
|
|
24
24
|
onClose?: ((event: Event) => any) | undefined;
|
|
25
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
26
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
27
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
26
28
|
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
27
29
|
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
28
30
|
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
29
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
30
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
disabledCloseBtn: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|