pukaad-ui-lib 1.237.0 → 1.238.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/card/card-user-blog.d.vue.ts +2 -0
- package/dist/runtime/components/card/card-user-blog.vue +14 -12
- package/dist/runtime/components/card/card-user-blog.vue.d.ts +2 -0
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.d.vue.ts +2 -2
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -24,9 +24,11 @@ type __VLS_Props = {
|
|
|
24
24
|
isMyProfile?: boolean;
|
|
25
25
|
};
|
|
26
26
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
"blog-edit": () => any;
|
|
27
28
|
"blog-updated": () => any;
|
|
28
29
|
"blog-deleted": () => any;
|
|
29
30
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
"onBlog-edit"?: (() => any) | undefined;
|
|
30
32
|
"onBlog-updated"?: (() => any) | undefined;
|
|
31
33
|
"onBlog-deleted"?: (() => any) | undefined;
|
|
32
34
|
}>, {
|
|
@@ -74,15 +74,15 @@
|
|
|
74
74
|
}"
|
|
75
75
|
state="blog"
|
|
76
76
|
/>
|
|
77
|
-
</div>
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
<!-- Edit Blog Drawer — อยู่ใน root เดียวกันเพื่อหลีกเลี่ยง fragment -->
|
|
79
|
+
<DrawerPostBlog
|
|
80
|
+
v-if="editBlogItem"
|
|
81
|
+
v-model="isEditDrawerOpen"
|
|
82
|
+
:item="editBlogItem"
|
|
83
|
+
@success="onEditSuccess"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
86
86
|
</template>
|
|
87
87
|
|
|
88
88
|
<script setup>
|
|
@@ -99,7 +99,7 @@ const props = defineProps({
|
|
|
99
99
|
isMyProfile: { type: Boolean, required: false, default: false }
|
|
100
100
|
});
|
|
101
101
|
const router = useRouter();
|
|
102
|
-
const emit = defineEmits(["blog-updated", "blog-deleted"]);
|
|
102
|
+
const emit = defineEmits(["blog-edit", "blog-updated", "blog-deleted"]);
|
|
103
103
|
const isPinned = ref(props.item.is_pinned);
|
|
104
104
|
const isEditDrawerOpen = ref(false);
|
|
105
105
|
const editBlogItem = ref(null);
|
|
@@ -149,7 +149,9 @@ const onBlogEdit = async () => {
|
|
|
149
149
|
};
|
|
150
150
|
isEditDrawerOpen.value = true;
|
|
151
151
|
} catch (e) {
|
|
152
|
-
$toast.error(
|
|
152
|
+
$toast.error(
|
|
153
|
+
e?.data?.message?.description || "\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E1A\u0E17\u0E04\u0E27\u0E32\u0E21\u0E44\u0E14\u0E49"
|
|
154
|
+
);
|
|
153
155
|
}
|
|
154
156
|
};
|
|
155
157
|
const onEditSuccess = () => {
|
|
@@ -158,8 +160,8 @@ const onEditSuccess = () => {
|
|
|
158
160
|
const onBlogDelete = async () => {
|
|
159
161
|
const { isConfirmed } = await $alert.show({
|
|
160
162
|
type: "warning",
|
|
161
|
-
title: "\u0E25\u0E1A\u0E1A\
|
|
162
|
-
description: "\
|
|
163
|
+
title: "\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E25\u0E1A\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E19\u0E35\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48 ?",
|
|
164
|
+
description: "\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E01\u0E39\u0E49\u0E04\u0E37\u0E19\u0E42\u0E1E\u0E2A\u0E15\u0E4C\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E25\u0E1A\u0E44\u0E1B\u0E41\u0E25\u0E49\u0E27\u0E44\u0E14\u0E49",
|
|
163
165
|
confirmText: "\u0E25\u0E1A",
|
|
164
166
|
cancelText: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
|
|
165
167
|
showCancelBtn: true
|
|
@@ -24,9 +24,11 @@ type __VLS_Props = {
|
|
|
24
24
|
isMyProfile?: boolean;
|
|
25
25
|
};
|
|
26
26
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
"blog-edit": () => any;
|
|
27
28
|
"blog-updated": () => any;
|
|
28
29
|
"blog-deleted": () => any;
|
|
29
30
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
"onBlog-edit"?: (() => any) | undefined;
|
|
30
32
|
"onBlog-updated"?: (() => any) | undefined;
|
|
31
33
|
"onBlog-deleted"?: (() => any) | undefined;
|
|
32
34
|
}>, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PickerOptionMenuUserProps } from "@/types/components/picker/picker-option-menu/picker-option-menu-user";
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
"blog-edit": () => any;
|
|
3
4
|
"report-announce": () => any;
|
|
4
5
|
"blog-unpin": () => any;
|
|
5
6
|
"blog-pin": () => any;
|
|
6
|
-
"blog-edit": () => any;
|
|
7
7
|
"blog-delete": () => any;
|
|
8
8
|
"profile-name-updated": (name: string) => any;
|
|
9
9
|
"profile-edit": () => any;
|
|
@@ -19,10 +19,10 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
|
|
|
19
19
|
"review-delete": () => any;
|
|
20
20
|
archive: () => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
|
|
22
|
+
"onBlog-edit"?: (() => any) | undefined;
|
|
22
23
|
"onReport-announce"?: (() => any) | undefined;
|
|
23
24
|
"onBlog-unpin"?: (() => any) | undefined;
|
|
24
25
|
"onBlog-pin"?: (() => any) | undefined;
|
|
25
|
-
"onBlog-edit"?: (() => any) | undefined;
|
|
26
26
|
"onBlog-delete"?: (() => any) | undefined;
|
|
27
27
|
"onProfile-name-updated"?: ((name: string) => any) | undefined;
|
|
28
28
|
"onProfile-edit"?: (() => any) | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PickerOptionMenuUserProps } from "@/types/components/picker/picker-option-menu/picker-option-menu-user";
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
"blog-edit": () => any;
|
|
3
4
|
"report-announce": () => any;
|
|
4
5
|
"blog-unpin": () => any;
|
|
5
6
|
"blog-pin": () => any;
|
|
6
|
-
"blog-edit": () => any;
|
|
7
7
|
"blog-delete": () => any;
|
|
8
8
|
"profile-name-updated": (name: string) => any;
|
|
9
9
|
"profile-edit": () => any;
|
|
@@ -19,10 +19,10 @@ declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserPr
|
|
|
19
19
|
"review-delete": () => any;
|
|
20
20
|
archive: () => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
|
|
22
|
+
"onBlog-edit"?: (() => any) | undefined;
|
|
22
23
|
"onReport-announce"?: (() => any) | undefined;
|
|
23
24
|
"onBlog-unpin"?: (() => any) | undefined;
|
|
24
25
|
"onBlog-pin"?: (() => any) | undefined;
|
|
25
|
-
"onBlog-edit"?: (() => any) | undefined;
|
|
26
26
|
"onBlog-delete"?: (() => any) | undefined;
|
|
27
27
|
"onProfile-name-updated"?: ((name: string) => any) | undefined;
|
|
28
28
|
"onProfile-edit"?: (() => any) | undefined;
|