pukaad-ui-lib 1.227.3 → 1.228.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/image/image-cropper.d.vue.ts +2 -2
- package/dist/runtime/components/image/image-cropper.vue.d.ts +2 -2
- 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-rating.vue +1 -1
- package/dist/runtime/components/modal/modal-password-verify.vue +8 -25
- package/package.json +1 -1
- /package/dist/runtime/assets/svg/socials/{TikTok.svg → Tiktok.svg} +0 -0
- /package/dist/runtime/assets/svg/socials/{YouTube.svg → Youtube.svg} +0 -0
- /package/dist/runtime/assets/svg/socials/{Facebook.svg → facebook.svg} +0 -0
- /package/dist/runtime/assets/svg/socials/{Instagram.svg → instagram.svg} +0 -0
package/dist/module.json
CHANGED
|
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
64
64
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
|
-
background: boolean;
|
|
68
|
-
modal: boolean;
|
|
69
67
|
responsive: boolean;
|
|
70
68
|
restore: boolean;
|
|
71
69
|
checkCrossOrigin: boolean;
|
|
72
70
|
checkOrientation: boolean;
|
|
73
71
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
+
modal: boolean;
|
|
74
73
|
guides: boolean;
|
|
75
74
|
highlight: boolean;
|
|
75
|
+
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
64
64
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
|
-
background: boolean;
|
|
68
|
-
modal: boolean;
|
|
69
67
|
responsive: boolean;
|
|
70
68
|
restore: boolean;
|
|
71
69
|
checkCrossOrigin: boolean;
|
|
72
70
|
checkOrientation: boolean;
|
|
73
71
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
+
modal: boolean;
|
|
74
73
|
guides: boolean;
|
|
75
74
|
highlight: boolean;
|
|
75
|
+
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
name: string;
|
|
37
37
|
limit: number;
|
|
38
|
-
accept: string;
|
|
39
38
|
disabledErrorMessage: boolean;
|
|
39
|
+
accept: string;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
42
42
|
column: boolean;
|
|
@@ -35,8 +35,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
name: string;
|
|
37
37
|
limit: number;
|
|
38
|
-
accept: string;
|
|
39
38
|
disabledErrorMessage: boolean;
|
|
39
|
+
accept: string;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
42
42
|
column: boolean;
|
|
@@ -1,30 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Modal
|
|
3
|
-
:title="props.title"
|
|
4
|
-
:loading="loading"
|
|
5
|
-
v-model="isOpen"
|
|
6
|
-
@close="emit('close')"
|
|
7
|
-
@submit="handleSubmit"
|
|
8
|
-
>
|
|
2
|
+
<Modal :title="props.title" :loading="loading" v-model="isOpen" @close="emit('close')" @submit="handleSubmit">
|
|
9
3
|
<div v-if="props.description" class="font-body-large">
|
|
10
4
|
{{ props.description }}
|
|
11
5
|
</div>
|
|
12
|
-
<InputPassword
|
|
13
|
-
|
|
14
|
-
disabled-forgot-password
|
|
15
|
-
required
|
|
16
|
-
label="รหัสผ่าน"
|
|
17
|
-
placeholder="กรอกรหัสผ่าน"
|
|
18
|
-
v-model="password"
|
|
19
|
-
/>
|
|
6
|
+
<InputPassword ref="inputRef" disabled-forgot-password required label="รหัสผ่าน" placeholder="กรอกรหัสผ่าน"
|
|
7
|
+
v-model="password" />
|
|
20
8
|
|
|
21
9
|
<template #footer="{ meta }">
|
|
22
|
-
<Button
|
|
23
|
-
type="submit"
|
|
24
|
-
color="primary"
|
|
25
|
-
class="w-full"
|
|
26
|
-
:disabled="!meta.valid"
|
|
27
|
-
>
|
|
10
|
+
<Button type="submit" color="primary" class="w-full" :disabled="!meta.valid">
|
|
28
11
|
{{ props.confirmText }}
|
|
29
12
|
</Button>
|
|
30
13
|
</template>
|
|
@@ -63,11 +46,11 @@ const handleSubmit = async () => {
|
|
|
63
46
|
loading.value = true;
|
|
64
47
|
try {
|
|
65
48
|
if (props.mode === "secure") {
|
|
66
|
-
const
|
|
49
|
+
const res = await api("/me/password-verify", {
|
|
67
50
|
method: "POST",
|
|
68
51
|
body: { password: password.value }
|
|
69
52
|
});
|
|
70
|
-
if (
|
|
53
|
+
if (res.title !== "\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08") throw "\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";
|
|
71
54
|
emit("complete", { secId: "" });
|
|
72
55
|
isOpen.value = false;
|
|
73
56
|
} else {
|
|
@@ -83,8 +66,8 @@ const handleSubmit = async () => {
|
|
|
83
66
|
password: password.value
|
|
84
67
|
}
|
|
85
68
|
});
|
|
86
|
-
if (res.
|
|
87
|
-
emit("complete", { secId: res.data
|
|
69
|
+
if (res.title === "\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08") {
|
|
70
|
+
emit("complete", { secId: res.data?.sec_id || "" });
|
|
88
71
|
isOpen.value = false;
|
|
89
72
|
} else {
|
|
90
73
|
inputRef.value?.setErrors?.(res.message || "\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07");
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|