pukaad-ui-lib 1.358.0 → 1.359.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/display/display-image-place.vue +4 -0
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +3 -3
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +3 -3
- 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-suggest.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-suggest.vue.d.ts +2 -2
- 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 +3 -0
- package/dist/runtime/components/modal/modal-media-view.vue +3 -2
- package/dist/runtime/components/modal/modal-media-view.vue.d.ts +3 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -221,6 +221,7 @@
|
|
|
221
221
|
:items="mediaItems"
|
|
222
222
|
:title="props.title"
|
|
223
223
|
:start-index="mediaStartIndex"
|
|
224
|
+
:uploader-label="uploaderLabel"
|
|
224
225
|
/>
|
|
225
226
|
</template>
|
|
226
227
|
|
|
@@ -240,6 +241,9 @@ const layoutMode = computed(() => {
|
|
|
240
241
|
if (props.state === "office" || props.state === "business") return "album";
|
|
241
242
|
return "featured";
|
|
242
243
|
});
|
|
244
|
+
const uploaderLabel = computed(
|
|
245
|
+
() => props.state === "business" ? "\u0E1D\u0E48\u0E32\u0E22\u0E08\u0E31\u0E14\u0E01\u0E32\u0E23" : "\u0E1C\u0E39\u0E49\u0E14\u0E39\u0E41\u0E25\u0E23\u0E30\u0E1A\u0E1A"
|
|
246
|
+
);
|
|
243
247
|
const photos = computed(() => props.photos.filter((p) => !!p.url));
|
|
244
248
|
const videos = computed(() => props.videos.filter((p) => !!p.url));
|
|
245
249
|
const featuredPhoto2Overflow = computed(() => {
|
|
@@ -48,14 +48,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
48
48
|
id: string;
|
|
49
49
|
name: string;
|
|
50
50
|
required: boolean;
|
|
51
|
-
options: AutocompleteOption[] | string[] | number[];
|
|
52
|
-
description: string;
|
|
53
51
|
labelKey: string;
|
|
54
52
|
placeholder: string;
|
|
55
|
-
|
|
53
|
+
options: AutocompleteOption[] | string[] | number[];
|
|
54
|
+
description: string;
|
|
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;
|
|
@@ -48,14 +48,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
48
48
|
id: string;
|
|
49
49
|
name: string;
|
|
50
50
|
required: boolean;
|
|
51
|
-
options: AutocompleteOption[] | string[] | number[];
|
|
52
|
-
description: string;
|
|
53
51
|
labelKey: string;
|
|
54
52
|
placeholder: string;
|
|
55
|
-
|
|
53
|
+
options: AutocompleteOption[] | string[] | number[];
|
|
54
|
+
description: string;
|
|
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;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
}>, {
|
|
13
13
|
name: string;
|
|
14
14
|
modelValue: InputLinkItem[] | ContactChannel[];
|
|
15
|
-
limit: number;
|
|
16
15
|
showCounter: boolean;
|
|
16
|
+
limit: number;
|
|
17
17
|
format: "legacy" | "contact_channel";
|
|
18
18
|
defaultFirst: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
}>, {
|
|
13
13
|
name: string;
|
|
14
14
|
modelValue: InputLinkItem[] | ContactChannel[];
|
|
15
|
-
limit: number;
|
|
16
15
|
showCounter: boolean;
|
|
16
|
+
limit: number;
|
|
17
17
|
format: "legacy" | "contact_channel";
|
|
18
18
|
defaultFirst: boolean;
|
|
19
19
|
}, {}, {}, {}, 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
|
-
options: InputSelectItem[];
|
|
15
14
|
placeholder: string;
|
|
16
|
-
|
|
15
|
+
options: InputSelectItem[];
|
|
17
16
|
showCounter: boolean;
|
|
17
|
+
limit: number;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -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
|
-
options: InputSelectItem[];
|
|
15
14
|
placeholder: string;
|
|
16
|
-
|
|
15
|
+
options: InputSelectItem[];
|
|
17
16
|
showCounter: boolean;
|
|
17
|
+
limit: number;
|
|
18
18
|
addLabel: string;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -19,13 +19,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
|
-
description: string;
|
|
23
22
|
labelKey: string;
|
|
24
23
|
placeholder: string;
|
|
25
|
-
|
|
24
|
+
description: string;
|
|
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;
|
|
@@ -19,13 +19,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
|
-
description: string;
|
|
23
22
|
labelKey: string;
|
|
24
23
|
placeholder: string;
|
|
25
|
-
|
|
24
|
+
description: string;
|
|
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
|
-
state: "user" | "admin";
|
|
29
28
|
placeholder: string;
|
|
29
|
+
state: "user" | "admin";
|
|
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
|
-
state: "user" | "admin";
|
|
29
28
|
placeholder: string;
|
|
29
|
+
state: "user" | "admin";
|
|
30
30
|
limit: number;
|
|
31
31
|
ignore: string[];
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -59,10 +59,10 @@ 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
|
disabledErrorMessage: boolean;
|
|
64
63
|
disabledBorder: boolean;
|
|
65
64
|
showCounter: boolean;
|
|
65
|
+
limit: number;
|
|
66
66
|
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -59,10 +59,10 @@ 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
|
disabledErrorMessage: boolean;
|
|
64
63
|
disabledBorder: boolean;
|
|
65
64
|
showCounter: boolean;
|
|
65
|
+
limit: number;
|
|
66
66
|
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -47,10 +47,10 @@ 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
|
disabledErrorMessage: boolean;
|
|
52
51
|
disabledBorder: boolean;
|
|
53
52
|
showCounter: boolean;
|
|
53
|
+
limit: number;
|
|
54
54
|
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
@@ -47,10 +47,10 @@ 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
|
disabledErrorMessage: boolean;
|
|
52
51
|
disabledBorder: boolean;
|
|
53
52
|
showCounter: boolean;
|
|
53
|
+
limit: number;
|
|
54
54
|
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
22
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
23
|
-
limit: number;
|
|
24
23
|
showCounter: boolean;
|
|
24
|
+
limit: number;
|
|
25
25
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
26
26
|
resetOnTypeChange: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
20
20
|
name: string;
|
|
21
21
|
required: boolean;
|
|
22
22
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
23
|
-
limit: number;
|
|
24
23
|
showCounter: boolean;
|
|
24
|
+
limit: number;
|
|
25
25
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
26
26
|
resetOnTypeChange: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -6,6 +6,8 @@ export interface ModalMediaViewProps {
|
|
|
6
6
|
startIndex?: number;
|
|
7
7
|
/** ข้อมูล review เต็ม สำหรับแสดง overlay รีวิว */
|
|
8
8
|
review?: CardReviewProps;
|
|
9
|
+
/** ป้ายชื่อผู้ดูแลสื่อนี้ ที่แสดงใน overlay (โหมดไม่ใช่ review) — office = "ผู้ดูแลระบบ", business = "ฝ่ายจัดการ" */
|
|
10
|
+
uploaderLabel?: string;
|
|
9
11
|
}
|
|
10
12
|
type __VLS_Props = ModalMediaViewProps;
|
|
11
13
|
type __VLS_ModelProps = {
|
|
@@ -20,6 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
20
22
|
title: string;
|
|
21
23
|
items: CarouselItem[];
|
|
22
24
|
startIndex: number;
|
|
25
|
+
uploaderLabel: string;
|
|
23
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
27
|
declare const _default: typeof __VLS_export;
|
|
25
28
|
export default _default;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
class="p-[16px] h-[125px] flex flex-col gap-[8px] text-white font-body-large"
|
|
28
28
|
>
|
|
29
29
|
<div class="flex justify-between items-center">
|
|
30
|
-
<div class="font-body-large-prominent"
|
|
30
|
+
<div class="font-body-large-prominent">{{ props.uploaderLabel }}</div>
|
|
31
31
|
<Icon
|
|
32
32
|
name="lucide:flag"
|
|
33
33
|
class="cursor-pointer"
|
|
@@ -180,7 +180,8 @@ const props = defineProps({
|
|
|
180
180
|
items: { type: Array, required: false, default: () => [] },
|
|
181
181
|
title: { type: String, required: false, default: "" },
|
|
182
182
|
startIndex: { type: Number, required: false, default: 0 },
|
|
183
|
-
review: { type: Object, required: false }
|
|
183
|
+
review: { type: Object, required: false },
|
|
184
|
+
uploaderLabel: { type: String, required: false, default: "\u0E1C\u0E39\u0E49\u0E14\u0E39\u0E41\u0E25\u0E23\u0E30\u0E1A\u0E1A" }
|
|
184
185
|
});
|
|
185
186
|
const isOpen = defineModel({ type: Boolean, ...{ default: false } });
|
|
186
187
|
const showMoreDescription = ref(false);
|
|
@@ -6,6 +6,8 @@ export interface ModalMediaViewProps {
|
|
|
6
6
|
startIndex?: number;
|
|
7
7
|
/** ข้อมูล review เต็ม สำหรับแสดง overlay รีวิว */
|
|
8
8
|
review?: CardReviewProps;
|
|
9
|
+
/** ป้ายชื่อผู้ดูแลสื่อนี้ ที่แสดงใน overlay (โหมดไม่ใช่ review) — office = "ผู้ดูแลระบบ", business = "ฝ่ายจัดการ" */
|
|
10
|
+
uploaderLabel?: string;
|
|
9
11
|
}
|
|
10
12
|
type __VLS_Props = ModalMediaViewProps;
|
|
11
13
|
type __VLS_ModelProps = {
|
|
@@ -20,6 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
20
22
|
title: string;
|
|
21
23
|
items: CarouselItem[];
|
|
22
24
|
startIndex: number;
|
|
25
|
+
uploaderLabel: string;
|
|
23
26
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
27
|
declare const _default: typeof __VLS_export;
|
|
25
28
|
export default _default;
|