pukaad-ui-lib 1.394.0 → 1.395.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.394.0",
4
+ "version": "1.395.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -54,7 +54,7 @@
54
54
  :accept="coverAccept"
55
55
  :column="coverFileType !== 'video' && fileColumns"
56
56
  :full-width="!hasCoverFile"
57
- :limit="coverFileType === 'video' ? 1 : 0"
57
+ :limit="coverFileType === 'video' ? 1 : 9"
58
58
  show-cover
59
59
  :class="!hasCoverFile ? 'w-full' : ''"
60
60
  >
@@ -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(() => isEditMode.value ? "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E42\u0E1E\u0E2A\u0E15\u0E4C" : "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E42\u0E1E\u0E2A\u0E15\u0E4C");
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(coverFiles.value[index]?.duration)
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,
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
50
50
  required: boolean;
51
51
  description: string;
52
52
  options: AutocompleteOption[] | string[] | number[];
53
+ limit: number;
53
54
  labelKey: string;
54
55
  placeholder: string;
55
- limit: number;
56
56
  disabledErrorMessage: boolean;
57
57
  disabledBorder: boolean;
58
58
  showCounter: boolean;
@@ -50,9 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
50
50
  required: boolean;
51
51
  description: string;
52
52
  options: AutocompleteOption[] | string[] | number[];
53
+ limit: number;
53
54
  labelKey: string;
54
55
  placeholder: string;
55
- limit: number;
56
56
  disabledErrorMessage: boolean;
57
57
  disabledBorder: boolean;
58
58
  showCounter: boolean;
@@ -59,8 +59,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
59
59
  }>, {
60
60
  pageSize: number;
61
61
  name: string;
62
- labelKey: string;
63
62
  limit: number;
63
+ labelKey: string;
64
64
  valueKey: string;
65
65
  multiple: boolean;
66
66
  placeholderSearch: string;
@@ -59,8 +59,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
59
59
  }>, {
60
60
  pageSize: number;
61
61
  name: string;
62
- labelKey: string;
63
62
  limit: number;
63
+ labelKey: string;
64
64
  valueKey: string;
65
65
  multiple: boolean;
66
66
  placeholderSearch: string;
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
12
12
  name: string;
13
13
  modelValue: LocalizedNameItem[];
14
14
  options: InputSelectItem[];
15
- placeholder: string;
16
15
  limit: number;
16
+ placeholder: string;
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
  options: InputSelectItem[];
15
- placeholder: string;
16
15
  limit: number;
16
+ placeholder: string;
17
17
  showCounter: boolean;
18
18
  addLabel: string;
19
19
  removable: boolean;
@@ -20,9 +20,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
20
20
  name: string;
21
21
  required: boolean;
22
22
  description: string;
23
+ limit: number;
23
24
  labelKey: string;
24
25
  placeholder: string;
25
- limit: number;
26
26
  disabledErrorMessage: boolean;
27
27
  disabledBorder: boolean;
28
28
  showCounter: boolean;
@@ -20,9 +20,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
20
20
  name: string;
21
21
  required: boolean;
22
22
  description: string;
23
+ limit: number;
23
24
  labelKey: string;
24
25
  placeholder: string;
25
- limit: number;
26
26
  disabledErrorMessage: boolean;
27
27
  disabledBorder: boolean;
28
28
  showCounter: boolean;
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
26
26
  }>, {
27
27
  name: string;
28
28
  state: "user" | "admin";
29
- placeholder: string;
30
29
  limit: number;
30
+ placeholder: string;
31
31
  ignore: string[];
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
26
26
  }>, {
27
27
  name: string;
28
28
  state: "user" | "admin";
29
- placeholder: string;
30
29
  limit: number;
30
+ placeholder: string;
31
31
  ignore: string[];
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
@@ -46,8 +46,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
46
46
  resize: "none" | "both" | "horizontal" | "vertical";
47
47
  fullHeight: boolean;
48
48
  fullWidth: boolean;
49
- rows: number;
50
49
  limit: number;
50
+ rows: number;
51
51
  readonly: boolean;
52
52
  disabledErrorMessage: boolean;
53
53
  disabledBorder: boolean;
@@ -46,8 +46,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
46
46
  resize: "none" | "both" | "horizontal" | "vertical";
47
47
  fullHeight: boolean;
48
48
  fullWidth: boolean;
49
- rows: number;
50
49
  limit: number;
50
+ rows: number;
51
51
  readonly: boolean;
52
52
  disabledErrorMessage: boolean;
53
53
  disabledBorder: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.394.0",
3
+ "version": "1.395.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",