pukaad-ui-lib 1.390.0 → 1.391.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-blog.vue +1 -1
- package/dist/runtime/components/card/card-profile/card-profile-header.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-profile/card-profile-header.vue.d.ts +1 -1
- package/dist/runtime/components/card/card-reaction.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-reaction.vue.d.ts +1 -1
- package/dist/runtime/components/card/card-review.d.vue.ts +5 -5
- package/dist/runtime/components/card/card-review.vue.d.ts +5 -5
- package/dist/runtime/components/card/card-user/card-user-blog.vue +1 -1
- package/dist/runtime/components/drawer/drawer-profile-network.d.vue.ts +1 -1
- package/dist/runtime/components/drawer/drawer-profile-network.vue.d.ts +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-autocomplete.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-autocomplete.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-link.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-link.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-localized-name.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-select-place.d.vue.ts +1 -0
- package/dist/runtime/components/input/input-select-place.vue +17 -8
- package/dist/runtime/components/input/input-select-place.vue.d.ts +1 -0
- package/dist/runtime/components/input/input-suggest.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-suggest.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-text-field.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-text-field.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/input/input-typed-field.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-typed-field.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-media-view.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-media-view.vue.d.ts +1 -1
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.d.vue.ts +2 -45
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +22 -7
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue.d.ts +2 -45
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<div v-if="!props.disabledMenu" class="flex items-center gap-[8px] text-gray" @click.stop>
|
|
40
40
|
<Icon v-if="isPinned" name="mage:pin-fill" :size="20" />
|
|
41
41
|
<PickerOptionMenuUser v-if="props.item.author" :state="
|
|
42
|
-
props.isMyProfile ? isPinned ? 'my-blog-pined' : 'my-blog' : '
|
|
42
|
+
props.isMyProfile ? isPinned ? 'my-blog-pined' : 'my-blog' : 'blog'
|
|
43
43
|
" disabled-padding @blog-unpin="$emit('blog-unpinned', props.item.id)"
|
|
44
44
|
@blog-pin="$emit('blog-pinned', props.item.id)" @blog-edit="$emit('blog-edit')"
|
|
45
45
|
@blog-delete="$emit('blog-deleted', props.item.id)" />
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
|
|
|
7
7
|
onChat?: (() => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
type: "article" | "media" | "sale-info";
|
|
10
|
-
preview: boolean;
|
|
11
10
|
disabledPadding: boolean;
|
|
11
|
+
preview: boolean;
|
|
12
12
|
optionMenuButtonType: "solid" | "text";
|
|
13
13
|
actionsHidden: boolean;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
|
|
|
7
7
|
onChat?: (() => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
type: "article" | "media" | "sale-info";
|
|
10
|
-
preview: boolean;
|
|
11
10
|
disabledPadding: boolean;
|
|
11
|
+
preview: boolean;
|
|
12
12
|
optionMenuButtonType: "solid" | "text";
|
|
13
13
|
actionsHidden: boolean;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -24,7 +24,6 @@ type __VLS_Props = {
|
|
|
24
24
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
id: string;
|
|
27
|
-
state: string;
|
|
28
27
|
itemCount: Count;
|
|
29
28
|
itemActive: Reacted;
|
|
30
29
|
padding: string | number;
|
|
@@ -32,6 +31,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
32
31
|
disabledDividerTop: boolean;
|
|
33
32
|
disabledDividerBottom: boolean;
|
|
34
33
|
iconSize: number | string;
|
|
34
|
+
state: string;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const _default: typeof __VLS_export;
|
|
37
37
|
export default _default;
|
|
@@ -24,7 +24,6 @@ type __VLS_Props = {
|
|
|
24
24
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
id: string;
|
|
27
|
-
state: string;
|
|
28
27
|
itemCount: Count;
|
|
29
28
|
itemActive: Reacted;
|
|
30
29
|
padding: string | number;
|
|
@@ -32,6 +31,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
32
31
|
disabledDividerTop: boolean;
|
|
33
32
|
disabledDividerBottom: boolean;
|
|
34
33
|
iconSize: number | string;
|
|
34
|
+
state: string;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const _default: typeof __VLS_export;
|
|
37
37
|
export default _default;
|
|
@@ -36,17 +36,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
36
36
|
"onReply-delete"?: ((item: CardReviewProps) => any) | undefined;
|
|
37
37
|
}>, {
|
|
38
38
|
item: CardReviewProps;
|
|
39
|
+
disabledMenu: boolean;
|
|
40
|
+
isProfile: boolean;
|
|
41
|
+
disabledLike: boolean;
|
|
42
|
+
allowReply: boolean;
|
|
43
|
+
replyAvatar: string;
|
|
39
44
|
place: {
|
|
40
45
|
id: string | number;
|
|
41
46
|
name?: string;
|
|
42
47
|
address?: string;
|
|
43
48
|
cover?: string;
|
|
44
49
|
};
|
|
45
|
-
disabledMenu: boolean;
|
|
46
|
-
isProfile: boolean;
|
|
47
|
-
disabledLike: boolean;
|
|
48
|
-
allowReply: boolean;
|
|
49
|
-
replyAvatar: string;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const _default: typeof __VLS_export;
|
|
52
52
|
export default _default;
|
|
@@ -36,17 +36,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
36
36
|
"onReply-delete"?: ((item: CardReviewProps) => any) | undefined;
|
|
37
37
|
}>, {
|
|
38
38
|
item: CardReviewProps;
|
|
39
|
+
disabledMenu: boolean;
|
|
40
|
+
isProfile: boolean;
|
|
41
|
+
disabledLike: boolean;
|
|
42
|
+
allowReply: boolean;
|
|
43
|
+
replyAvatar: string;
|
|
39
44
|
place: {
|
|
40
45
|
id: string | number;
|
|
41
46
|
name?: string;
|
|
42
47
|
address?: string;
|
|
43
48
|
cover?: string;
|
|
44
49
|
};
|
|
45
|
-
disabledMenu: boolean;
|
|
46
|
-
isProfile: boolean;
|
|
47
|
-
disabledLike: boolean;
|
|
48
|
-
allowReply: boolean;
|
|
49
|
-
replyAvatar: string;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const _default: typeof __VLS_export;
|
|
52
52
|
export default _default;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<Icon v-if="isPinned" name="lucide:pin" :size="20" />
|
|
34
34
|
<PickerOptionMenuUser
|
|
35
35
|
:state="
|
|
36
|
-
props.isMyProfile ? isPinned ? 'my-blog-pined' : 'my-blog' : '
|
|
36
|
+
props.isMyProfile ? isPinned ? 'my-blog-pined' : 'my-blog' : 'blog'
|
|
37
37
|
"
|
|
38
38
|
disabled-padding
|
|
39
39
|
@blog-unpin="onBlogUnpin"
|
|
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
30
30
|
"onExplore-places"?: (() => any) | undefined;
|
|
31
31
|
"onRequire-auth"?: (() => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
|
+
isMyProfile: boolean;
|
|
33
34
|
profileId: string;
|
|
34
35
|
defaultTab: "followers" | "following" | "favorites";
|
|
35
|
-
isMyProfile: boolean;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
38
38
|
export default _default;
|
|
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
30
30
|
"onExplore-places"?: (() => any) | undefined;
|
|
31
31
|
"onRequire-auth"?: (() => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
|
+
isMyProfile: boolean;
|
|
33
34
|
profileId: string;
|
|
34
35
|
defaultTab: "followers" | "following" | "favorites";
|
|
35
|
-
isMyProfile: boolean;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
38
38
|
export default _default;
|
|
@@ -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;
|
|
67
69
|
responsive: boolean;
|
|
68
70
|
restore: boolean;
|
|
69
71
|
checkCrossOrigin: boolean;
|
|
70
72
|
checkOrientation: boolean;
|
|
71
73
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
-
modal: boolean;
|
|
73
74
|
guides: boolean;
|
|
74
75
|
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;
|
|
67
69
|
responsive: boolean;
|
|
68
70
|
restore: boolean;
|
|
69
71
|
checkCrossOrigin: boolean;
|
|
70
72
|
checkOrientation: boolean;
|
|
71
73
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
-
modal: boolean;
|
|
73
74
|
guides: boolean;
|
|
74
75
|
highlight: boolean;
|
|
75
|
-
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -49,13 +49,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
49
|
name: string;
|
|
50
50
|
required: boolean;
|
|
51
51
|
description: string;
|
|
52
|
+
options: AutocompleteOption[] | string[] | number[];
|
|
52
53
|
labelKey: string;
|
|
53
54
|
placeholder: string;
|
|
54
|
-
options: AutocompleteOption[] | string[] | number[];
|
|
55
|
-
limit: number;
|
|
56
55
|
disabledErrorMessage: boolean;
|
|
57
56
|
disabledBorder: boolean;
|
|
58
57
|
showCounter: boolean;
|
|
58
|
+
limit: number;
|
|
59
59
|
returnObject: boolean;
|
|
60
60
|
freeText: boolean;
|
|
61
61
|
valueKey: string;
|
|
@@ -49,13 +49,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
49
|
name: string;
|
|
50
50
|
required: boolean;
|
|
51
51
|
description: string;
|
|
52
|
+
options: AutocompleteOption[] | string[] | number[];
|
|
52
53
|
labelKey: string;
|
|
53
54
|
placeholder: string;
|
|
54
|
-
options: AutocompleteOption[] | string[] | number[];
|
|
55
|
-
limit: number;
|
|
56
55
|
disabledErrorMessage: boolean;
|
|
57
56
|
disabledBorder: boolean;
|
|
58
57
|
showCounter: boolean;
|
|
58
|
+
limit: number;
|
|
59
59
|
returnObject: boolean;
|
|
60
60
|
freeText: boolean;
|
|
61
61
|
valueKey: string;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
34
34
|
name: string;
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
|
-
limit: number;
|
|
38
37
|
disabledErrorMessage: boolean;
|
|
38
|
+
limit: number;
|
|
39
39
|
accept: string;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
34
34
|
name: string;
|
|
35
35
|
fullHeight: boolean;
|
|
36
36
|
fullWidth: boolean;
|
|
37
|
-
limit: number;
|
|
38
37
|
disabledErrorMessage: boolean;
|
|
38
|
+
limit: number;
|
|
39
39
|
accept: string;
|
|
40
40
|
labelIcon: string;
|
|
41
41
|
disabledDrop: boolean;
|
|
@@ -17,8 +17,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
17
17
|
label: string;
|
|
18
18
|
name: string;
|
|
19
19
|
modelValue: InputLinkItem[] | ContactChannel[];
|
|
20
|
-
limit: number;
|
|
21
20
|
showCounter: boolean;
|
|
21
|
+
limit: number;
|
|
22
22
|
format: "legacy" | "contact_channel";
|
|
23
23
|
hideType: boolean;
|
|
24
24
|
hideAddButton: boolean;
|
|
@@ -17,8 +17,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
|
17
17
|
label: string;
|
|
18
18
|
name: string;
|
|
19
19
|
modelValue: InputLinkItem[] | ContactChannel[];
|
|
20
|
-
limit: number;
|
|
21
20
|
showCounter: boolean;
|
|
21
|
+
limit: number;
|
|
22
22
|
format: "legacy" | "contact_channel";
|
|
23
23
|
hideType: boolean;
|
|
24
24
|
hideAddButton: boolean;
|
|
@@ -11,10 +11,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
11
|
label: string;
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
|
-
placeholder: string;
|
|
15
14
|
options: InputSelectItem[];
|
|
16
|
-
|
|
15
|
+
placeholder: string;
|
|
17
16
|
showCounter: boolean;
|
|
17
|
+
limit: number;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
removable: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -11,10 +11,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
11
|
label: string;
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
|
-
placeholder: string;
|
|
15
14
|
options: InputSelectItem[];
|
|
16
|
-
|
|
15
|
+
placeholder: string;
|
|
17
16
|
showCounter: boolean;
|
|
17
|
+
limit: number;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
removable: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
<Image
|
|
22
22
|
v-if="place.image"
|
|
23
23
|
:src="place.image"
|
|
24
|
-
:width="
|
|
25
|
-
:height="
|
|
24
|
+
:width="105"
|
|
25
|
+
:height="60"
|
|
26
26
|
class="shrink-0 rounded-[4px]"
|
|
27
27
|
/>
|
|
28
28
|
<div
|
|
29
29
|
v-else
|
|
30
|
-
class="w-[
|
|
30
|
+
class="w-[105px] h-[60px] bg-cloud flex items-center justify-center rounded-[4px]"
|
|
31
31
|
>
|
|
32
32
|
<Icon
|
|
33
33
|
name="pukaad:map-location-dot"
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
<div class="font-body-small text-gray truncate">
|
|
41
41
|
{{ place.address }}
|
|
42
42
|
</div>
|
|
43
|
+
<div class="font-body-small text-gray">
|
|
44
|
+
{{ $convert.convertNumber(place.post_count ?? 0) }} โพสต์
|
|
45
|
+
</div>
|
|
43
46
|
</div>
|
|
44
47
|
<Icon
|
|
45
48
|
v-if="isSelected(place.id)"
|
|
@@ -84,13 +87,13 @@
|
|
|
84
87
|
<Image
|
|
85
88
|
v-if="item.image"
|
|
86
89
|
:src="item.image"
|
|
87
|
-
:width="
|
|
88
|
-
:height="
|
|
90
|
+
:width="105"
|
|
91
|
+
:height="60"
|
|
89
92
|
class="shrink-0 rounded-[4px]"
|
|
90
93
|
/>
|
|
91
94
|
<div
|
|
92
95
|
v-else
|
|
93
|
-
class="w-[
|
|
96
|
+
class="w-[105px] h-[60px] bg-cloud flex items-center justify-center rounded-[4px]"
|
|
94
97
|
>
|
|
95
98
|
<Icon
|
|
96
99
|
name="pukaad:map-location-dot"
|
|
@@ -103,6 +106,9 @@
|
|
|
103
106
|
<div class="font-body-small text-gray w-full truncate">
|
|
104
107
|
{{ item.address }}
|
|
105
108
|
</div>
|
|
109
|
+
<div class="font-body-small text-gray">
|
|
110
|
+
{{ $convert.convertNumber(item.post_count ?? 0) }} โพสต์
|
|
111
|
+
</div>
|
|
106
112
|
</div>
|
|
107
113
|
<Icon
|
|
108
114
|
name="lucide:x"
|
|
@@ -138,7 +144,8 @@ const mapPlace = (raw) => ({
|
|
|
138
144
|
id: raw.id,
|
|
139
145
|
name: raw.name,
|
|
140
146
|
address: raw.address,
|
|
141
|
-
image: raw.cover_image
|
|
147
|
+
image: raw.cover_image,
|
|
148
|
+
post_count: raw.post_count ?? 0
|
|
142
149
|
});
|
|
143
150
|
const performSearch = async (q) => {
|
|
144
151
|
isSearching.value = true;
|
|
@@ -205,7 +212,9 @@ const handleSuggestPlaceCreated = (_data, record) => {
|
|
|
205
212
|
id,
|
|
206
213
|
name: String(record.business_name ?? ""),
|
|
207
214
|
address: address?.full_address ?? "",
|
|
208
|
-
image: String(record.image_cover ?? "")
|
|
215
|
+
image: String(record.image_cover ?? ""),
|
|
216
|
+
post_count: 0
|
|
217
|
+
// สถานที่เพิ่งสร้างใหม่ ยังไม่มีโพสต์ผูกแน่นอน
|
|
209
218
|
};
|
|
210
219
|
selectedCache.value.set(id, item);
|
|
211
220
|
if (!selectedIds.value.includes(id)) {
|
|
@@ -22,10 +22,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
description: string;
|
|
23
23
|
labelKey: string;
|
|
24
24
|
placeholder: string;
|
|
25
|
-
limit: number;
|
|
26
25
|
disabledErrorMessage: boolean;
|
|
27
26
|
disabledBorder: boolean;
|
|
28
27
|
showCounter: boolean;
|
|
28
|
+
limit: number;
|
|
29
29
|
descriptionKey: string;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -22,10 +22,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
description: string;
|
|
23
23
|
labelKey: string;
|
|
24
24
|
placeholder: string;
|
|
25
|
-
limit: number;
|
|
26
25
|
disabledErrorMessage: boolean;
|
|
27
26
|
disabledBorder: boolean;
|
|
28
27
|
showCounter: boolean;
|
|
28
|
+
limit: number;
|
|
29
29
|
descriptionKey: string;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
25
25
|
"onUpdate:modelValue"?: ((value: SelectedTag[]) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
name: string;
|
|
28
|
-
placeholder: string;
|
|
29
28
|
state: "user" | "admin";
|
|
29
|
+
placeholder: string;
|
|
30
30
|
limit: number;
|
|
31
31
|
ignore: string[];
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -25,8 +25,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
25
25
|
"onUpdate:modelValue"?: ((value: SelectedTag[]) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
name: string;
|
|
28
|
-
placeholder: string;
|
|
29
28
|
state: "user" | "admin";
|
|
29
|
+
placeholder: string;
|
|
30
30
|
limit: number;
|
|
31
31
|
ignore: string[];
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -60,10 +60,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
62
|
readonly: boolean;
|
|
63
|
-
limit: number;
|
|
64
63
|
disabledErrorMessage: boolean;
|
|
65
64
|
disabledBorder: boolean;
|
|
66
65
|
showCounter: boolean;
|
|
66
|
+
limit: number;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
69
|
declare const _default: typeof __VLS_export;
|
|
@@ -60,10 +60,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
62
|
readonly: boolean;
|
|
63
|
-
limit: number;
|
|
64
63
|
disabledErrorMessage: boolean;
|
|
65
64
|
disabledBorder: boolean;
|
|
66
65
|
showCounter: boolean;
|
|
66
|
+
limit: number;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
69
|
declare const _default: typeof __VLS_export;
|
|
@@ -48,10 +48,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
rows: number;
|
|
50
50
|
readonly: boolean;
|
|
51
|
-
limit: number;
|
|
52
51
|
disabledErrorMessage: boolean;
|
|
53
52
|
disabledBorder: boolean;
|
|
54
53
|
showCounter: boolean;
|
|
54
|
+
limit: number;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -48,10 +48,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
rows: number;
|
|
50
50
|
readonly: boolean;
|
|
51
|
-
limit: number;
|
|
52
51
|
disabledErrorMessage: boolean;
|
|
53
52
|
disabledBorder: boolean;
|
|
54
53
|
showCounter: boolean;
|
|
54
|
+
limit: number;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
22
22
|
name: string;
|
|
23
23
|
required: boolean;
|
|
24
24
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
|
-
limit: number;
|
|
26
25
|
showCounter: boolean;
|
|
26
|
+
limit: number;
|
|
27
27
|
removable: boolean;
|
|
28
28
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
29
29
|
resetOnTypeChange: boolean;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
22
22
|
name: string;
|
|
23
23
|
required: boolean;
|
|
24
24
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
|
-
limit: number;
|
|
26
25
|
showCounter: boolean;
|
|
26
|
+
limit: number;
|
|
27
27
|
removable: boolean;
|
|
28
28
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
29
29
|
resetOnTypeChange: boolean;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
23
23
|
}>, {
|
|
24
24
|
title: string;
|
|
25
25
|
items: CarouselItem[];
|
|
26
|
-
uploaderLabel: string;
|
|
27
26
|
startIndex: number;
|
|
27
|
+
uploaderLabel: string;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
30
30
|
export default _default;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
23
23
|
}>, {
|
|
24
24
|
title: string;
|
|
25
25
|
items: CarouselItem[];
|
|
26
|
-
uploaderLabel: string;
|
|
27
26
|
startIndex: number;
|
|
27
|
+
uploaderLabel: string;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
30
30
|
export default _default;
|
|
@@ -1,51 +1,8 @@
|
|
|
1
1
|
import type { PickerOptionMenuUserProps } from "#pukaad-ui/types/components/picker/picker-option-menu/picker-option-menu-user";
|
|
2
|
-
import type { ModalReportSubmitPayload } from "#pukaad-ui/types/components/modal/modal-report";
|
|
3
2
|
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
-
|
|
5
|
-
"report-announce": () => any;
|
|
6
|
-
"blog-unpin": () => any;
|
|
7
|
-
"blog-pin": () => any;
|
|
8
|
-
"blog-delete": () => any;
|
|
9
|
-
"reply-delete": () => any;
|
|
10
|
-
"report-review": () => any;
|
|
11
|
-
"review-edit": () => any;
|
|
12
|
-
"review-delete": () => any;
|
|
13
|
-
"review-reply": () => any;
|
|
14
|
-
"reply-edit": () => any;
|
|
15
|
-
"profile-name-updated": (name: string) => any;
|
|
16
|
-
"profile-edit": () => any;
|
|
17
|
-
"profile-share": () => any;
|
|
18
|
-
"profile-follower-delete": () => any;
|
|
19
|
-
"profile-block": () => any;
|
|
20
|
-
"report-blog": () => any;
|
|
21
|
-
"report-place": () => any;
|
|
22
|
-
"report-profile": () => any;
|
|
23
|
-
"place-close-duplicate": () => any;
|
|
24
|
-
archive: () => any;
|
|
25
|
-
"report-submit": (payload: ModalReportSubmitPayload) => any;
|
|
3
|
+
[x: string]: any;
|
|
26
4
|
}, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
|
|
27
|
-
|
|
28
|
-
"onReport-announce"?: (() => any) | undefined;
|
|
29
|
-
"onBlog-unpin"?: (() => any) | undefined;
|
|
30
|
-
"onBlog-pin"?: (() => any) | undefined;
|
|
31
|
-
"onBlog-delete"?: (() => any) | undefined;
|
|
32
|
-
"onReply-delete"?: (() => any) | undefined;
|
|
33
|
-
"onReport-review"?: (() => any) | undefined;
|
|
34
|
-
"onReview-edit"?: (() => any) | undefined;
|
|
35
|
-
"onReview-delete"?: (() => any) | undefined;
|
|
36
|
-
"onReview-reply"?: (() => any) | undefined;
|
|
37
|
-
"onReply-edit"?: (() => any) | undefined;
|
|
38
|
-
"onProfile-name-updated"?: ((name: string) => any) | undefined;
|
|
39
|
-
"onProfile-edit"?: (() => any) | undefined;
|
|
40
|
-
"onProfile-share"?: (() => any) | undefined;
|
|
41
|
-
"onProfile-follower-delete"?: (() => any) | undefined;
|
|
42
|
-
"onProfile-block"?: (() => any) | undefined;
|
|
43
|
-
"onReport-blog"?: (() => any) | undefined;
|
|
44
|
-
"onReport-place"?: (() => any) | undefined;
|
|
45
|
-
"onReport-profile"?: (() => any) | undefined;
|
|
46
|
-
"onPlace-close-duplicate"?: (() => any) | undefined;
|
|
47
|
-
onArchive?: (() => any) | undefined;
|
|
48
|
-
"onReport-submit"?: ((payload: ModalReportSubmitPayload) => any) | undefined;
|
|
5
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
49
6
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
7
|
declare const _default: typeof __VLS_export;
|
|
51
8
|
export default _default;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
<script setup>
|
|
27
27
|
import { computed, ref } from "vue";
|
|
28
|
-
const emit = defineEmits(["profile-edit", "profile-share", "profile-follower-delete", "profile-block", "blog-pin", "blog-unpin", "blog-edit", "blog-delete", "report-blog", "report-place", "report-profile", "report
|
|
28
|
+
const emit = defineEmits(["profile-edit", "profile-share", "profile-follower-delete", "profile-block", "blog-pin", "blog-unpin", "blog-edit", "blog-delete", "report-blog", "report-place", "report-profile", "delete", "report", "report-review", "place-close-duplicate", "review-edit", "review-delete", "review-reply", "reply-edit", "reply-delete", "archive", "profile-name-updated", "report-submit"]);
|
|
29
29
|
const props = defineProps({
|
|
30
30
|
state: { type: String, required: false },
|
|
31
31
|
profileDetail: { type: Object, required: false },
|
|
@@ -161,13 +161,23 @@ const menu = [
|
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
|
-
label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19
|
|
165
|
-
name: "report
|
|
164
|
+
label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",
|
|
165
|
+
name: "report",
|
|
166
166
|
icon: "fa6-regular:flag",
|
|
167
167
|
action: () => {
|
|
168
168
|
isOpenModalReport.value = true;
|
|
169
|
-
reportState.value = "
|
|
170
|
-
emit("report
|
|
169
|
+
reportState.value = "content";
|
|
170
|
+
emit("report");
|
|
171
|
+
emit("report-blog");
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
label: "\u0E25\u0E1A",
|
|
176
|
+
name: "delete",
|
|
177
|
+
icon: "lucide:trash-2",
|
|
178
|
+
action: () => {
|
|
179
|
+
emit("delete");
|
|
180
|
+
emit("blog-delete");
|
|
171
181
|
}
|
|
172
182
|
},
|
|
173
183
|
// ลำดับใน array นี้ = ลำดับที่แสดงในเมนู (items ใช้ menu.filter ซึ่งคงลำดับเดิมไว้)
|
|
@@ -279,9 +289,14 @@ const items = computed(() => {
|
|
|
279
289
|
}
|
|
280
290
|
];
|
|
281
291
|
}
|
|
282
|
-
if (props.state === "report
|
|
292
|
+
if (props.state === "report") {
|
|
293
|
+
return menu.filter(
|
|
294
|
+
(item) => ["report"].includes(item.name)
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
if (props.state === "delete") {
|
|
283
298
|
return menu.filter(
|
|
284
|
-
(item) => ["
|
|
299
|
+
(item) => ["delete"].includes(item.name)
|
|
285
300
|
);
|
|
286
301
|
}
|
|
287
302
|
return [];
|
|
@@ -1,51 +1,8 @@
|
|
|
1
1
|
import type { PickerOptionMenuUserProps } from "#pukaad-ui/types/components/picker/picker-option-menu/picker-option-menu-user";
|
|
2
|
-
import type { ModalReportSubmitPayload } from "#pukaad-ui/types/components/modal/modal-report";
|
|
3
2
|
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
-
|
|
5
|
-
"report-announce": () => any;
|
|
6
|
-
"blog-unpin": () => any;
|
|
7
|
-
"blog-pin": () => any;
|
|
8
|
-
"blog-delete": () => any;
|
|
9
|
-
"reply-delete": () => any;
|
|
10
|
-
"report-review": () => any;
|
|
11
|
-
"review-edit": () => any;
|
|
12
|
-
"review-delete": () => any;
|
|
13
|
-
"review-reply": () => any;
|
|
14
|
-
"reply-edit": () => any;
|
|
15
|
-
"profile-name-updated": (name: string) => any;
|
|
16
|
-
"profile-edit": () => any;
|
|
17
|
-
"profile-share": () => any;
|
|
18
|
-
"profile-follower-delete": () => any;
|
|
19
|
-
"profile-block": () => any;
|
|
20
|
-
"report-blog": () => any;
|
|
21
|
-
"report-place": () => any;
|
|
22
|
-
"report-profile": () => any;
|
|
23
|
-
"place-close-duplicate": () => any;
|
|
24
|
-
archive: () => any;
|
|
25
|
-
"report-submit": (payload: ModalReportSubmitPayload) => any;
|
|
3
|
+
[x: string]: any;
|
|
26
4
|
}, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
|
|
27
|
-
|
|
28
|
-
"onReport-announce"?: (() => any) | undefined;
|
|
29
|
-
"onBlog-unpin"?: (() => any) | undefined;
|
|
30
|
-
"onBlog-pin"?: (() => any) | undefined;
|
|
31
|
-
"onBlog-delete"?: (() => any) | undefined;
|
|
32
|
-
"onReply-delete"?: (() => any) | undefined;
|
|
33
|
-
"onReport-review"?: (() => any) | undefined;
|
|
34
|
-
"onReview-edit"?: (() => any) | undefined;
|
|
35
|
-
"onReview-delete"?: (() => any) | undefined;
|
|
36
|
-
"onReview-reply"?: (() => any) | undefined;
|
|
37
|
-
"onReply-edit"?: (() => any) | undefined;
|
|
38
|
-
"onProfile-name-updated"?: ((name: string) => any) | undefined;
|
|
39
|
-
"onProfile-edit"?: (() => any) | undefined;
|
|
40
|
-
"onProfile-share"?: (() => any) | undefined;
|
|
41
|
-
"onProfile-follower-delete"?: (() => any) | undefined;
|
|
42
|
-
"onProfile-block"?: (() => any) | undefined;
|
|
43
|
-
"onReport-blog"?: (() => any) | undefined;
|
|
44
|
-
"onReport-place"?: (() => any) | undefined;
|
|
45
|
-
"onReport-profile"?: (() => any) | undefined;
|
|
46
|
-
"onPlace-close-duplicate"?: (() => any) | undefined;
|
|
47
|
-
onArchive?: (() => any) | undefined;
|
|
48
|
-
"onReport-submit"?: ((payload: ModalReportSubmitPayload) => any) | undefined;
|
|
5
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
49
6
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
7
|
declare const _default: typeof __VLS_export;
|
|
51
8
|
export default _default;
|