pukaad-ui-lib 1.290.0 → 1.291.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-place.vue +27 -7
- package/dist/runtime/components/input/input-address.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-address.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/modal/modal-password-confirmed.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-password-verify.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-password-verify.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex gap-[16px] items-center">
|
|
3
|
-
<Image
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<Image
|
|
4
|
+
v-if="coverImage"
|
|
5
|
+
:src="coverImage"
|
|
6
|
+
width="227"
|
|
7
|
+
height="128"
|
|
8
|
+
class="rounded-[4px] flex-shrink-0 object-cover"
|
|
9
|
+
/>
|
|
10
|
+
<div
|
|
11
|
+
v-else
|
|
12
|
+
class="w-[227px] h-[128px] rounded-[4px] flex-shrink-0 bg-cloud flex items-center justify-center"
|
|
13
|
+
>
|
|
6
14
|
<Icon name="pukaad:map-location-dot" :size="36" class="text-gray" />
|
|
7
15
|
</div>
|
|
8
16
|
<div class="flex flex-col gap-[4px]">
|
|
@@ -11,7 +19,11 @@
|
|
|
11
19
|
</div>
|
|
12
20
|
|
|
13
21
|
<div class="flex items-center gap-[4px] font-body-medium text-gray">
|
|
14
|
-
<InputRating
|
|
22
|
+
<InputRating
|
|
23
|
+
:size="10"
|
|
24
|
+
readonly
|
|
25
|
+
:model-value="props.item?.rating || 0"
|
|
26
|
+
/>
|
|
15
27
|
<template v-if="props.item?.like_count !== void 0">
|
|
16
28
|
<span>•</span>
|
|
17
29
|
<span>ถูกใจ {{ convertNumber(props.item.like_count) }}</span>
|
|
@@ -21,7 +33,10 @@
|
|
|
21
33
|
<div v-if="placeAddress" class="font-body-medium text-gray">
|
|
22
34
|
{{ placeAddress }}
|
|
23
35
|
</div>
|
|
24
|
-
<div
|
|
36
|
+
<div
|
|
37
|
+
v-if="props.item?.description"
|
|
38
|
+
class="font-body-medium text-gray line-clamp-2"
|
|
39
|
+
>
|
|
25
40
|
{{ props.item.description }}
|
|
26
41
|
</div>
|
|
27
42
|
</div>
|
|
@@ -29,13 +44,18 @@
|
|
|
29
44
|
</template>
|
|
30
45
|
|
|
31
46
|
<script setup>
|
|
47
|
+
import { computed } from "vue";
|
|
32
48
|
import { useConvert } from "../../composables/useConvert";
|
|
33
49
|
const { convertNumber } = useConvert();
|
|
34
50
|
const props = defineProps({
|
|
35
51
|
item: { type: Object, required: false, default: () => ({}) }
|
|
36
52
|
});
|
|
37
|
-
const coverImage = computed(
|
|
38
|
-
|
|
53
|
+
const coverImage = computed(
|
|
54
|
+
() => props.item?.cover_image || props.item?.image_cover || ""
|
|
55
|
+
);
|
|
56
|
+
const placeName = computed(
|
|
57
|
+
() => props.item?.name || props.item?.business_name || ""
|
|
58
|
+
);
|
|
39
59
|
const placeAddress = computed(() => {
|
|
40
60
|
if (typeof props.item?.address === "string") return props.item.address;
|
|
41
61
|
return props.item?.full_address || "";
|
|
@@ -49,11 +49,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
49
|
label: string;
|
|
50
50
|
required: boolean;
|
|
51
51
|
name: string;
|
|
52
|
-
gap: string;
|
|
53
52
|
placeholder: string;
|
|
54
53
|
labelDetail: string;
|
|
55
54
|
placeholderDetail: string;
|
|
56
55
|
requiredDetail: boolean;
|
|
56
|
+
gap: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
@@ -49,11 +49,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
49
49
|
label: string;
|
|
50
50
|
required: boolean;
|
|
51
51
|
name: string;
|
|
52
|
-
gap: string;
|
|
53
52
|
placeholder: string;
|
|
54
53
|
labelDetail: string;
|
|
55
54
|
placeholderDetail: string;
|
|
56
55
|
requiredDetail: boolean;
|
|
56
|
+
gap: string;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
@@ -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;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
disabledForgotPassword: boolean;
|
|
26
25
|
new: boolean;
|
|
26
|
+
disabledForgotPassword: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
22
22
|
}>, {
|
|
23
23
|
id: string;
|
|
24
24
|
name: string;
|
|
25
|
-
disabledForgotPassword: boolean;
|
|
26
25
|
new: boolean;
|
|
26
|
+
disabledForgotPassword: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
24
24
|
}) => 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;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
24
24
|
}) => 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;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
32
|
}>, {
|
|
33
33
|
title: string;
|
|
34
34
|
mode: "login" | "secure";
|
|
35
|
-
confirmText: string;
|
|
36
35
|
disabledForgotPassword: boolean;
|
|
36
|
+
confirmText: string;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
32
32
|
}>, {
|
|
33
33
|
title: string;
|
|
34
34
|
mode: "login" | "secure";
|
|
35
|
-
confirmText: string;
|
|
36
35
|
disabledForgotPassword: boolean;
|
|
36
|
+
confirmText: string;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|