pukaad-ui-lib 1.390.0 → 1.392.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-content/card-content-menu.d.vue.ts +2 -0
- package/dist/runtime/components/card/card-content/card-content-menu.vue +4 -2
- package/dist/runtime/components/card/card-content/card-content-menu.vue.d.ts +2 -0
- package/dist/runtime/components/card/card-content/card-content.vue +4 -2
- 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-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/display/display-image-place.d.vue.ts +1 -1
- package/dist/runtime/components/display/display-image-place.vue.d.ts +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 +1 -1
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-search.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-search.vue.d.ts +1 -1
- 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-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-secure.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-secure.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 +30 -7
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue.d.ts +2 -45
- 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 +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +4 -4
- 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/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)" />
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
isPinned?: boolean;
|
|
5
5
|
isBookmarked?: boolean;
|
|
6
6
|
isShow?: boolean;
|
|
7
|
+
hidePin?: boolean;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
10
|
action: (name: string) => any;
|
|
@@ -13,6 +14,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
14
|
isPinned: boolean;
|
|
14
15
|
isBookmarked: boolean;
|
|
15
16
|
isShow: boolean;
|
|
17
|
+
hidePin: boolean;
|
|
16
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
19
|
declare const _default: typeof __VLS_export;
|
|
18
20
|
export default _default;
|
|
@@ -20,13 +20,15 @@ const props = defineProps({
|
|
|
20
20
|
state: { type: String, required: false },
|
|
21
21
|
isPinned: { type: Boolean, required: false, default: false },
|
|
22
22
|
isBookmarked: { type: Boolean, required: false, default: false },
|
|
23
|
-
isShow: { type: Boolean, required: false, default: false }
|
|
23
|
+
isShow: { type: Boolean, required: false, default: false },
|
|
24
|
+
hidePin: { type: Boolean, required: false, default: false }
|
|
24
25
|
});
|
|
25
26
|
const emit = defineEmits(["action"]);
|
|
26
27
|
const actions = computed(() => {
|
|
27
28
|
if (props.state === "my-content") {
|
|
29
|
+
const pinAction = props.hidePin ? [] : [{ name: "pin", icon: "lucide:pin", isActive: props.isPinned }];
|
|
28
30
|
return [
|
|
29
|
-
|
|
31
|
+
...pinAction,
|
|
30
32
|
{ name: "preview", icon: "lucide:tv-minimal-play" },
|
|
31
33
|
{
|
|
32
34
|
name: "delete",
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
isPinned?: boolean;
|
|
5
5
|
isBookmarked?: boolean;
|
|
6
6
|
isShow?: boolean;
|
|
7
|
+
hidePin?: boolean;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
10
|
action: (name: string) => any;
|
|
@@ -13,6 +14,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
14
|
isPinned: boolean;
|
|
14
15
|
isBookmarked: boolean;
|
|
15
16
|
isShow: boolean;
|
|
17
|
+
hidePin: boolean;
|
|
16
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
19
|
declare const _default: typeof __VLS_export;
|
|
18
20
|
export default _default;
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
:state="props.state"
|
|
29
29
|
:is-pinned="!!props.item.pinned"
|
|
30
30
|
:is-bookmarked="!!props.item.bookmarked"
|
|
31
|
+
:hide-pin="!!props.hidePin"
|
|
31
32
|
:is-show="isMenuShow"
|
|
32
33
|
@action="onMenuAction"
|
|
33
34
|
/>
|
|
@@ -58,7 +59,8 @@ const props = defineProps({
|
|
|
58
59
|
state: { type: String, required: false },
|
|
59
60
|
selectable: { type: Boolean, required: false, default: false },
|
|
60
61
|
disabledNavigate: { type: Boolean, required: false, default: false },
|
|
61
|
-
disable: { type: Boolean, required: false, default: false }
|
|
62
|
+
disable: { type: Boolean, required: false, default: false },
|
|
63
|
+
hidePin: { type: Boolean, required: false }
|
|
62
64
|
});
|
|
63
65
|
const emit = defineEmits(["click", "action"]);
|
|
64
66
|
const selected = defineModel("selected", { type: Boolean, ...{ default: false } });
|
|
@@ -89,7 +91,7 @@ const showTime = computed(() => !!props.item.expireAt);
|
|
|
89
91
|
const hasMenu = computed(() => {
|
|
90
92
|
if (props.selectable || !props.state) return false;
|
|
91
93
|
if (props.disable) {
|
|
92
|
-
return !!(props.item.pinned || props.item.bookmarked);
|
|
94
|
+
return !!(props.item.pinned && !props.hidePin || props.item.bookmarked);
|
|
93
95
|
}
|
|
94
96
|
return true;
|
|
95
97
|
});
|
|
@@ -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>;
|
|
@@ -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"
|
|
@@ -15,9 +15,9 @@ type __VLS_Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
17
|
title: string;
|
|
18
|
-
state: "personal" | "office" | "business";
|
|
19
18
|
photos: MediaItem[];
|
|
20
19
|
videos: MediaItem[];
|
|
20
|
+
state: "personal" | "office" | "business";
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
export default _default;
|
|
@@ -15,9 +15,9 @@ type __VLS_Props = {
|
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
17
|
title: string;
|
|
18
|
-
state: "personal" | "office" | "business";
|
|
19
18
|
photos: MediaItem[];
|
|
20
19
|
videos: MediaItem[];
|
|
20
|
+
state: "personal" | "office" | "business";
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
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;
|
|
@@ -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;
|
|
@@ -51,8 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
51
51
|
description: string;
|
|
52
52
|
labelKey: string;
|
|
53
53
|
placeholder: string;
|
|
54
|
-
options: AutocompleteOption[] | string[] | number[];
|
|
55
54
|
limit: number;
|
|
55
|
+
options: AutocompleteOption[] | string[] | number[];
|
|
56
56
|
disabledErrorMessage: boolean;
|
|
57
57
|
disabledBorder: boolean;
|
|
58
58
|
showCounter: boolean;
|
|
@@ -51,8 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
51
51
|
description: string;
|
|
52
52
|
labelKey: string;
|
|
53
53
|
placeholder: string;
|
|
54
|
-
options: AutocompleteOption[] | string[] | number[];
|
|
55
54
|
limit: number;
|
|
55
|
+
options: AutocompleteOption[] | string[] | number[];
|
|
56
56
|
disabledErrorMessage: boolean;
|
|
57
57
|
disabledBorder: boolean;
|
|
58
58
|
showCounter: boolean;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
placeholder: string;
|
|
15
|
-
options: InputSelectItem[];
|
|
16
15
|
limit: number;
|
|
16
|
+
options: InputSelectItem[];
|
|
17
17
|
showCounter: boolean;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
removable: boolean;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
placeholder: string;
|
|
15
|
-
options: InputSelectItem[];
|
|
16
15
|
limit: number;
|
|
16
|
+
options: InputSelectItem[];
|
|
17
17
|
showCounter: boolean;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
removable: boolean;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
37
37
|
name: string;
|
|
38
38
|
required: boolean;
|
|
39
39
|
placeholder: string;
|
|
40
|
-
readonly: boolean;
|
|
41
40
|
disabledErrorMessage: boolean;
|
|
41
|
+
readonly: boolean;
|
|
42
42
|
disabledIcon: boolean;
|
|
43
43
|
iconPosition: import("#pukaad-ui/types/components/input/input-search").InputSearchIconPosition;
|
|
44
44
|
roundedFull: boolean;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
37
37
|
name: string;
|
|
38
38
|
required: boolean;
|
|
39
39
|
placeholder: string;
|
|
40
|
-
readonly: boolean;
|
|
41
40
|
disabledErrorMessage: boolean;
|
|
41
|
+
readonly: boolean;
|
|
42
42
|
disabledIcon: boolean;
|
|
43
43
|
iconPosition: import("#pukaad-ui/types/components/input/input-search").InputSearchIconPosition;
|
|
44
44
|
roundedFull: boolean;
|
|
@@ -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)) {
|
|
@@ -59,11 +59,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
|
-
readonly: boolean;
|
|
63
62
|
limit: number;
|
|
64
63
|
disabledErrorMessage: boolean;
|
|
65
64
|
disabledBorder: boolean;
|
|
66
65
|
showCounter: boolean;
|
|
66
|
+
readonly: boolean;
|
|
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;
|
|
@@ -59,11 +59,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
|
-
readonly: boolean;
|
|
63
62
|
limit: number;
|
|
64
63
|
disabledErrorMessage: boolean;
|
|
65
64
|
disabledBorder: boolean;
|
|
66
65
|
showCounter: boolean;
|
|
66
|
+
readonly: boolean;
|
|
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;
|
|
@@ -47,11 +47,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
fullHeight: boolean;
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
rows: number;
|
|
50
|
-
readonly: boolean;
|
|
51
50
|
limit: number;
|
|
52
51
|
disabledErrorMessage: boolean;
|
|
53
52
|
disabledBorder: boolean;
|
|
54
53
|
showCounter: boolean;
|
|
54
|
+
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -47,11 +47,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
fullHeight: boolean;
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
rows: number;
|
|
50
|
-
readonly: boolean;
|
|
51
50
|
limit: number;
|
|
52
51
|
disabledErrorMessage: boolean;
|
|
53
52
|
disabledBorder: boolean;
|
|
54
53
|
showCounter: boolean;
|
|
54
|
+
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -21,8 +21,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
21
21
|
}>, {
|
|
22
22
|
name: string;
|
|
23
23
|
required: boolean;
|
|
24
|
-
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
24
|
limit: number;
|
|
25
|
+
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
26
26
|
showCounter: boolean;
|
|
27
27
|
removable: boolean;
|
|
28
28
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
@@ -21,8 +21,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
21
21
|
}>, {
|
|
22
22
|
name: string;
|
|
23
23
|
required: boolean;
|
|
24
|
-
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
24
|
limit: number;
|
|
25
|
+
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
26
26
|
showCounter: boolean;
|
|
27
27
|
removable: boolean;
|
|
28
28
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
onComplete?: ((state: ModalSecureState, data?: any) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
phone: string;
|
|
16
15
|
email: string;
|
|
16
|
+
phone: string;
|
|
17
17
|
twoFaEnabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
onComplete?: ((state: ModalSecureState, data?: any) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
phone: string;
|
|
16
15
|
email: string;
|
|
16
|
+
phone: string;
|
|
17
17
|
twoFaEnabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -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;
|