pukaad-ui-lib 1.394.0 → 1.396.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/drawer/drawer-post-content.vue +9 -9
- 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-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 +1 -1
- package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
- 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-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/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
:accept="coverAccept"
|
|
55
55
|
:column="coverFileType !== 'video' && fileColumns"
|
|
56
56
|
:full-width="!hasCoverFile"
|
|
57
|
-
:limit="coverFileType === 'video' ? 1 :
|
|
57
|
+
:limit="coverFileType === 'video' ? 1 : 9"
|
|
58
58
|
show-cover
|
|
59
|
-
|
|
59
|
+
class="w-full"
|
|
60
60
|
>
|
|
61
61
|
<!-- ส่ง slot เฉพาะตอนยังไม่มีไฟล์ — พอมีไฟล์แล้วปุ่มเพิ่มไฟล์ใช้หน้าตา default ของ InputFile -->
|
|
62
62
|
<template v-if="!hasCoverFile" #default>
|
|
@@ -115,11 +115,7 @@
|
|
|
115
115
|
<div class="flex flex-col gap-[8px] items-center">
|
|
116
116
|
<!-- cursor-default ทับ cursor-pointer ของการ์ด — พรีวิวคลิกไม่มีผล อย่าหลอกว่าเป็นปุ่ม
|
|
117
117
|
(ห้ามใช้ pointer-events-none เพราะจะบล็อก hover จน hover-play ของวิดีโอไม่ทำงาน) -->
|
|
118
|
-
<CardContent
|
|
119
|
-
v-if="previewItem"
|
|
120
|
-
:item="previewItem"
|
|
121
|
-
disabled-navigate
|
|
122
|
-
/>
|
|
118
|
+
<CardContent v-if="previewItem" :item="previewItem" disabled-navigate />
|
|
123
119
|
<div
|
|
124
120
|
v-else
|
|
125
121
|
class="w-[194px] h-[345px] border-[1px] border-mercury rounded-[4px] flex items-center justify-center"
|
|
@@ -192,7 +188,9 @@ const isSubmitting = ref(false);
|
|
|
192
188
|
const isEditMode = computed(
|
|
193
189
|
() => !!currentId.value && !currentId.value.startsWith("draft_")
|
|
194
190
|
);
|
|
195
|
-
const drawerTitle = computed(
|
|
191
|
+
const drawerTitle = computed(
|
|
192
|
+
() => isEditMode.value ? "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E42\u0E1E\u0E2A\u0E15\u0E4C" : "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E42\u0E1E\u0E2A\u0E15\u0E4C"
|
|
193
|
+
);
|
|
196
194
|
const previewLocation = computed(() => selectedPlaces.value[0]?.name);
|
|
197
195
|
const hasCoverText = computed(() => !!coverText.value?.trim());
|
|
198
196
|
const hasCoverFile = computed(() => coverFiles.value.length > 0);
|
|
@@ -394,7 +392,9 @@ const submitContent = async (status) => {
|
|
|
394
392
|
media_type: contentType === "video" ? "video" : "photo",
|
|
395
393
|
url: item.url,
|
|
396
394
|
description: item.description ?? "",
|
|
397
|
-
duration_seconds: parseDurationToSeconds(
|
|
395
|
+
duration_seconds: parseDurationToSeconds(
|
|
396
|
+
coverFiles.value[index]?.duration
|
|
397
|
+
)
|
|
398
398
|
}));
|
|
399
399
|
const mentions = selectedMentions.value.map((m) => ({
|
|
400
400
|
mention_type: m.mentionType,
|
|
@@ -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;
|
|
@@ -52,10 +52,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
52
52
|
options: AutocompleteOption[] | string[] | number[];
|
|
53
53
|
labelKey: string;
|
|
54
54
|
placeholder: string;
|
|
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;
|
|
@@ -52,10 +52,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
52
52
|
options: AutocompleteOption[] | string[] | number[];
|
|
53
53
|
labelKey: string;
|
|
54
54
|
placeholder: string;
|
|
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;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
options: InputSelectItem[];
|
|
15
15
|
placeholder: string;
|
|
16
|
-
limit: number;
|
|
17
16
|
showCounter: boolean;
|
|
17
|
+
limit: number;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
removable: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -13,8 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
options: InputSelectItem[];
|
|
15
15
|
placeholder: string;
|
|
16
|
-
limit: number;
|
|
17
16
|
showCounter: boolean;
|
|
17
|
+
limit: number;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
removable: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -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;
|
|
@@ -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
|
-
limit: number;
|
|
63
62
|
readonly: boolean;
|
|
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;
|
|
@@ -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
|
-
limit: number;
|
|
63
62
|
readonly: boolean;
|
|
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;
|
|
@@ -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
|
-
limit: number;
|
|
51
50
|
readonly: boolean;
|
|
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>;
|
|
@@ -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
|
-
limit: number;
|
|
51
50
|
readonly: boolean;
|
|
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;
|