pukaad-ui-lib 1.382.0 → 1.384.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-content/card-content-video.vue +1 -1
- package/dist/runtime/components/drawer/drawer-post-content.vue +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-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/input/input-personal-card-id.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-personal-card-id.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-select-place.vue +22 -0
- 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/dist/runtime/composables/useContentCard.d.ts +5 -1
- package/dist/runtime/composables/useContentCard.js +3 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -193,7 +193,7 @@ const isEditMode = computed(
|
|
|
193
193
|
() => !!currentId.value && !currentId.value.startsWith("draft_")
|
|
194
194
|
);
|
|
195
195
|
const drawerTitle = computed(() => isEditMode.value ? "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E42\u0E1E\u0E2A\u0E15\u0E4C" : "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E42\u0E1E\u0E2A\u0E15\u0E4C");
|
|
196
|
-
const previewLocation = computed(() => selectedPlaces.value[0]?.
|
|
196
|
+
const previewLocation = computed(() => selectedPlaces.value[0]?.name);
|
|
197
197
|
const hasCoverText = computed(() => !!coverText.value?.trim());
|
|
198
198
|
const hasCoverFile = computed(() => coverFiles.value.length > 0);
|
|
199
199
|
const coverFileType = computed(() => {
|
|
@@ -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;
|
|
@@ -50,10 +50,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
name: string;
|
|
51
51
|
required: boolean;
|
|
52
52
|
placeholder: string;
|
|
53
|
+
gap: string;
|
|
53
54
|
labelDetail: string;
|
|
54
55
|
placeholderDetail: string;
|
|
55
56
|
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;
|
|
@@ -50,10 +50,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
name: string;
|
|
51
51
|
required: boolean;
|
|
52
52
|
placeholder: string;
|
|
53
|
+
gap: string;
|
|
53
54
|
labelDetail: string;
|
|
54
55
|
placeholderDetail: string;
|
|
55
56
|
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
|
fullWidth: boolean;
|
|
37
37
|
limit: number;
|
|
38
|
-
disabledErrorMessage: boolean;
|
|
39
38
|
accept: string;
|
|
39
|
+
disabledErrorMessage: boolean;
|
|
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
|
fullWidth: boolean;
|
|
37
37
|
limit: number;
|
|
38
|
-
disabledErrorMessage: boolean;
|
|
39
38
|
accept: string;
|
|
39
|
+
disabledErrorMessage: boolean;
|
|
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
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: 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
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
remove: () => any;
|
|
15
14
|
complete: (file: File) => any;
|
|
15
|
+
remove: () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onRemove?: (() => any) | undefined;
|
|
19
18
|
onComplete?: ((file: File) => any) | undefined;
|
|
19
|
+
onRemove?: (() => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
remove: () => any;
|
|
15
14
|
complete: (file: File) => any;
|
|
15
|
+
remove: () => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onRemove?: (() => any) | undefined;
|
|
19
18
|
onComplete?: ((file: File) => any) | undefined;
|
|
19
|
+
onRemove?: (() => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -19,11 +19,22 @@
|
|
|
19
19
|
@click="toggleSelect(place.id)"
|
|
20
20
|
>
|
|
21
21
|
<Image
|
|
22
|
+
v-if="place.image"
|
|
22
23
|
:src="place.image"
|
|
23
24
|
:width="70"
|
|
24
25
|
:height="40"
|
|
25
26
|
class="shrink-0 rounded-[4px]"
|
|
26
27
|
/>
|
|
28
|
+
<div
|
|
29
|
+
v-else
|
|
30
|
+
class="w-[70px] h-[40px] bg-cloud flex items-center justify-center rounded-[4px]"
|
|
31
|
+
>
|
|
32
|
+
<Icon
|
|
33
|
+
name="pukaad:map-location-dot"
|
|
34
|
+
size="24"
|
|
35
|
+
class="text-gray shrink-0"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
27
38
|
<div class="flex flex-col gap-[4px] min-w-0 flex-1">
|
|
28
39
|
<div class="font-body-medium truncate">{{ place.name }}</div>
|
|
29
40
|
<div class="font-body-small text-gray truncate">
|
|
@@ -71,11 +82,22 @@
|
|
|
71
82
|
class="flex gap-[8px] items-start w-full min-w-0"
|
|
72
83
|
>
|
|
73
84
|
<Image
|
|
85
|
+
v-if="item.image"
|
|
74
86
|
:src="item.image"
|
|
75
87
|
:width="70"
|
|
76
88
|
:height="40"
|
|
77
89
|
class="shrink-0 rounded-[4px]"
|
|
78
90
|
/>
|
|
91
|
+
<div
|
|
92
|
+
v-else
|
|
93
|
+
class="w-[70px] h-[40px] bg-cloud flex items-center justify-center rounded-[4px]"
|
|
94
|
+
>
|
|
95
|
+
<Icon
|
|
96
|
+
name="pukaad:map-location-dot"
|
|
97
|
+
size="24"
|
|
98
|
+
class="text-gray shrink-0"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
79
101
|
<div class="flex flex-col gap-[4px] min-w-0 flex-1">
|
|
80
102
|
<div class="font-body-medium w-full truncate">{{ item.name }}</div>
|
|
81
103
|
<div class="font-body-small text-gray w-full truncate">
|
|
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
24
24
|
}) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
title: string;
|
|
27
|
-
disabledForgotPassword: boolean;
|
|
28
27
|
confirmText: string;
|
|
28
|
+
disabledForgotPassword: boolean;
|
|
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
|
-
disabledForgotPassword: boolean;
|
|
28
27
|
confirmText: string;
|
|
28
|
+
disabledForgotPassword: boolean;
|
|
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
|
-
disabledForgotPassword: boolean;
|
|
36
35
|
confirmText: string;
|
|
36
|
+
disabledForgotPassword: boolean;
|
|
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
|
-
disabledForgotPassword: boolean;
|
|
36
35
|
confirmText: string;
|
|
36
|
+
disabledForgotPassword: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
|
39
39
|
export default _default;
|
|
@@ -21,5 +21,9 @@ export interface RawContentCard {
|
|
|
21
21
|
}[];
|
|
22
22
|
is_pinned?: boolean;
|
|
23
23
|
is_liked?: boolean;
|
|
24
|
+
expire_at?: string;
|
|
24
25
|
}
|
|
25
|
-
export
|
|
26
|
+
export interface MapContentToCardOptions {
|
|
27
|
+
showExpiry?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare const mapContentToCard: (raw: RawContentCard, options?: MapContentToCardOptions) => CardContentItem;
|
|
@@ -6,7 +6,7 @@ export const CONTENT_COVER_COLORS = [
|
|
|
6
6
|
{ hex: "#FDD", name: "red-info" },
|
|
7
7
|
{ hex: "#FFE6F4", name: "pink-info" }
|
|
8
8
|
];
|
|
9
|
-
export const mapContentToCard = (raw) => {
|
|
9
|
+
export const mapContentToCard = (raw, options = {}) => {
|
|
10
10
|
const type = raw.content_type === "post_it" ? "postIt" : raw.content_type;
|
|
11
11
|
const firstMedia = raw.media?.[0];
|
|
12
12
|
const place = raw.places?.[0];
|
|
@@ -15,7 +15,8 @@ export const mapContentToCard = (raw) => {
|
|
|
15
15
|
type,
|
|
16
16
|
location: place?.address || place?.name,
|
|
17
17
|
pinned: !!raw.is_pinned,
|
|
18
|
-
bookmarked: !!raw.is_liked
|
|
18
|
+
bookmarked: !!raw.is_liked,
|
|
19
|
+
expireAt: options.showExpiry ? raw.expire_at : void 0
|
|
19
20
|
};
|
|
20
21
|
if (type === "postIt") {
|
|
21
22
|
item.content = raw.cover_text;
|