pukaad-ui-lib 1.452.0 → 1.454.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.
Files changed (47) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/card/card-place/card-place.vue +1 -1
  3. package/dist/runtime/components/display/display-image-place.d.vue.ts +1 -1
  4. package/dist/runtime/components/display/display-image-place.vue.d.ts +1 -1
  5. package/dist/runtime/components/display/display-video.d.vue.ts +1 -1
  6. package/dist/runtime/components/display/display-video.vue.d.ts +1 -1
  7. package/dist/runtime/components/input/input-address.d.vue.ts +2 -2
  8. package/dist/runtime/components/input/input-address.vue.d.ts +2 -2
  9. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
  10. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
  11. package/dist/runtime/components/input/input-birth-date.d.vue.ts +1 -1
  12. package/dist/runtime/components/input/input-birth-date.vue.d.ts +1 -1
  13. package/dist/runtime/components/input/input-chat.d.vue.ts +1 -1
  14. package/dist/runtime/components/input/input-chat.vue.d.ts +1 -1
  15. package/dist/runtime/components/input/input-comment.d.vue.ts +1 -1
  16. package/dist/runtime/components/input/input-comment.vue.d.ts +1 -1
  17. package/dist/runtime/components/input/input-date-picker.d.vue.ts +1 -1
  18. package/dist/runtime/components/input/input-date-picker.vue.d.ts +1 -1
  19. package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
  20. package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
  21. package/dist/runtime/components/input/input-localized-name.d.vue.ts +1 -1
  22. package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
  23. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  24. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  25. package/dist/runtime/components/input/input-select-place.vue +2 -2
  26. package/dist/runtime/components/input/input-tag-modal.d.vue.ts +1 -1
  27. package/dist/runtime/components/input/input-tag-modal.vue.d.ts +1 -1
  28. package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
  29. package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
  30. package/dist/runtime/components/input/input-typed-field.d.vue.ts +1 -1
  31. package/dist/runtime/components/input/input-typed-field.vue.d.ts +1 -1
  32. package/dist/runtime/components/modal/modal-media-view.d.vue.ts +1 -1
  33. package/dist/runtime/components/modal/modal-media-view.vue.d.ts +1 -1
  34. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +27 -1
  35. package/dist/runtime/components/preview/preview-content.d.vue.ts +54 -0
  36. package/dist/runtime/components/preview/preview-content.vue +219 -0
  37. package/dist/runtime/components/preview/preview-content.vue.d.ts +54 -0
  38. package/dist/runtime/components/preview/preview-place.d.vue.ts +57 -0
  39. package/dist/runtime/components/preview/preview-place.vue +342 -0
  40. package/dist/runtime/components/preview/preview-place.vue.d.ts +57 -0
  41. package/dist/runtime/components/ui/chart/ChartTooltipContent.d.vue.ts +1 -1
  42. package/dist/runtime/components/ui/chart/ChartTooltipContent.vue.d.ts +1 -1
  43. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +2 -2
  44. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
  45. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +2 -2
  46. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +2 -2
  47. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.452.0",
4
+ "version": "1.454.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -9,7 +9,7 @@
9
9
  />
10
10
  <div
11
11
  v-else
12
- class="w-[227px] h-[128px] rounded-[4px] flex-shrink-0 bg-cloud flex items-center justify-center"
12
+ class="w-[227px] h-[128px] rounded-[4px] flex-shrink-0 bg-mercury flex items-center justify-center"
13
13
  >
14
14
  <Icon name="pukaad:map-location-dot" :size="36" class="text-gray" />
15
15
  </div>
@@ -15,9 +15,9 @@ type __VLS_Props = {
15
15
  };
16
16
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
17
  title: string;
18
+ state: "personal" | "office" | "business";
18
19
  photos: MediaItem[];
19
20
  videos: MediaItem[];
20
- state: "personal" | "office" | "business";
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -15,9 +15,9 @@ type __VLS_Props = {
15
15
  };
16
16
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
17
  title: string;
18
+ state: "personal" | "office" | "business";
18
19
  photos: MediaItem[];
19
20
  videos: MediaItem[];
20
- state: "personal" | "office" | "business";
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -102,9 +102,9 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
102
102
  loop: boolean;
103
103
  controls: boolean;
104
104
  preload: "none" | "metadata" | "auto";
105
+ playsinline: boolean;
105
106
  sources: DisplayVideoSource[];
106
107
  tracks: DisplayVideoTrack[];
107
- playsinline: boolean;
108
108
  disablePictureInPicture: boolean;
109
109
  disableRemotePlayback: boolean;
110
110
  volume: number;
@@ -102,9 +102,9 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
102
102
  loop: boolean;
103
103
  controls: boolean;
104
104
  preload: "none" | "metadata" | "auto";
105
+ playsinline: boolean;
105
106
  sources: DisplayVideoSource[];
106
107
  tracks: DisplayVideoTrack[];
107
- playsinline: boolean;
108
108
  disablePictureInPicture: boolean;
109
109
  disableRemotePlayback: boolean;
110
110
  volume: number;
@@ -50,12 +50,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
50
50
  label: string;
51
51
  name: string;
52
52
  required: boolean;
53
- placeholder: string;
54
53
  layout: "vertical" | "horizontal";
55
- gap: number | string;
54
+ placeholder: string;
56
55
  labelDetail: string;
57
56
  placeholderDetail: string;
58
57
  requiredDetail: boolean;
58
+ gap: number | string;
59
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
60
  declare const _default: typeof __VLS_export;
61
61
  export default _default;
@@ -50,12 +50,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
50
50
  label: string;
51
51
  name: string;
52
52
  required: boolean;
53
- placeholder: string;
54
53
  layout: "vertical" | "horizontal";
55
- gap: number | string;
54
+ placeholder: string;
56
55
  labelDetail: string;
57
56
  placeholderDetail: string;
58
57
  requiredDetail: boolean;
58
+ gap: number | string;
59
59
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
60
  declare const _default: typeof __VLS_export;
61
61
  export default _default;
@@ -69,10 +69,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
69
69
  name: string;
70
70
  required: boolean;
71
71
  description: string;
72
+ options: AutocompleteOption[] | string[] | number[];
72
73
  labelKey: string;
73
74
  placeholder: string;
74
75
  limit: number;
75
- options: AutocompleteOption[] | string[] | number[];
76
76
  disabledErrorMessage: boolean;
77
77
  disabledBorder: boolean;
78
78
  showCounter: boolean;
@@ -69,10 +69,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
69
69
  name: string;
70
70
  required: boolean;
71
71
  description: string;
72
+ options: AutocompleteOption[] | string[] | number[];
72
73
  labelKey: string;
73
74
  placeholder: string;
74
75
  limit: number;
75
- options: AutocompleteOption[] | string[] | number[];
76
76
  disabledErrorMessage: boolean;
77
77
  disabledBorder: boolean;
78
78
  showCounter: boolean;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  id: string;
31
31
  name: string;
32
32
  required: boolean;
33
+ layout: "month-and-year" | "month-only" | "year-only";
33
34
  locale: string;
34
35
  placeholder: string;
35
- layout: "month-and-year" | "month-only" | "year-only";
36
36
  disabledErrorMessage: boolean;
37
37
  dateFormat: string;
38
38
  minAge: number;
@@ -30,9 +30,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
30
30
  id: string;
31
31
  name: string;
32
32
  required: boolean;
33
+ layout: "month-and-year" | "month-only" | "year-only";
33
34
  locale: string;
34
35
  placeholder: string;
35
- layout: "month-and-year" | "month-only" | "year-only";
36
36
  disabledErrorMessage: boolean;
37
37
  dateFormat: string;
38
38
  minAge: number;
@@ -48,8 +48,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  disabled: boolean;
49
49
  name: string;
50
50
  placeholder: string;
51
- maxHeight: number;
52
51
  maxlength: number;
52
+ maxHeight: number;
53
53
  limitImage: number;
54
54
  limitVideo: number;
55
55
  disabledMedia: boolean;
@@ -48,8 +48,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
48
48
  disabled: boolean;
49
49
  name: string;
50
50
  placeholder: string;
51
- maxHeight: number;
52
51
  maxlength: number;
52
+ maxHeight: number;
53
53
  limitImage: number;
54
54
  limitVideo: number;
55
55
  disabledMedia: boolean;
@@ -46,8 +46,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
46
46
  }>, {
47
47
  loading: boolean;
48
48
  disabled: boolean;
49
- placeholder: string;
50
49
  cancelText: string;
50
+ placeholder: string;
51
51
  autofocus: boolean;
52
52
  disabledAvatar: boolean;
53
53
  submitText: string;
@@ -46,8 +46,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
46
46
  }>, {
47
47
  loading: boolean;
48
48
  disabled: boolean;
49
- placeholder: string;
50
49
  cancelText: string;
50
+ placeholder: string;
51
51
  autofocus: boolean;
52
52
  disabledAvatar: boolean;
53
53
  submitText: string;
@@ -44,9 +44,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
44
44
  id: string;
45
45
  name: string;
46
46
  required: boolean;
47
+ layout: "month-and-year" | "month-only" | "year-only";
47
48
  locale: string;
48
49
  placeholder: string;
49
- layout: "month-and-year" | "month-only" | "year-only";
50
50
  disabledErrorMessage: boolean;
51
51
  dateFormat: string;
52
52
  showTime: boolean;
@@ -44,9 +44,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
44
44
  id: string;
45
45
  name: string;
46
46
  required: boolean;
47
+ layout: "month-and-year" | "month-only" | "year-only";
47
48
  locale: string;
48
49
  placeholder: string;
49
- layout: "month-and-year" | "month-only" | "year-only";
50
50
  disabledErrorMessage: boolean;
51
51
  dateFormat: string;
52
52
  showTime: boolean;
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
37
37
  fullWidth: boolean;
38
38
  fullHeight: boolean;
39
39
  limit: number;
40
- accept: string;
41
40
  disabledErrorMessage: boolean;
41
+ accept: string;
42
42
  labelIcon: string;
43
43
  disabledDrop: boolean;
44
44
  column: boolean;
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
37
37
  fullWidth: boolean;
38
38
  fullHeight: boolean;
39
39
  limit: number;
40
- accept: string;
41
40
  disabledErrorMessage: boolean;
41
+ accept: string;
42
42
  labelIcon: string;
43
43
  disabledDrop: boolean;
44
44
  column: boolean;
@@ -11,9 +11,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
11
11
  label: string;
12
12
  name: string;
13
13
  modelValue: LocalizedNameItem[];
14
+ options: InputSelectItem[];
14
15
  placeholder: string;
15
16
  limit: number;
16
- options: InputSelectItem[];
17
17
  removable: boolean;
18
18
  showCounter: boolean;
19
19
  addLabel: string;
@@ -11,9 +11,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
11
11
  label: string;
12
12
  name: string;
13
13
  modelValue: LocalizedNameItem[];
14
+ options: InputSelectItem[];
14
15
  placeholder: string;
15
16
  limit: number;
16
- options: InputSelectItem[];
17
17
  removable: boolean;
18
18
  showCounter: boolean;
19
19
  addLabel: string;
@@ -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;
@@ -36,7 +36,7 @@
36
36
  />
37
37
  <div
38
38
  v-else
39
- class="w-[105px] h-[60px] bg-cloud flex items-center justify-center rounded-[4px]"
39
+ class="w-[105px] h-[60px] bg-mercury flex items-center justify-center rounded-[4px]"
40
40
  >
41
41
  <Icon
42
42
  name="pukaad:map-location-dot"
@@ -118,7 +118,7 @@
118
118
  />
119
119
  <div
120
120
  v-else
121
- class="w-[105px] h-[60px] bg-cloud flex items-center justify-center rounded-[4px]"
121
+ class="w-[105px] h-[60px] bg-mercury flex items-center justify-center rounded-[4px]"
122
122
  >
123
123
  <Icon
124
124
  name="pukaad:map-location-dot"
@@ -40,9 +40,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
40
40
  id: string;
41
41
  name: string;
42
42
  required: boolean;
43
+ options: InputTagModalOption[];
43
44
  labelKey: string;
44
45
  placeholder: string;
45
- options: InputTagModalOption[];
46
46
  disabledErrorMessage: boolean;
47
47
  valueKey: string;
48
48
  searchPlaceholder: string;
@@ -40,9 +40,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
40
40
  id: string;
41
41
  name: string;
42
42
  required: boolean;
43
+ options: InputTagModalOption[];
43
44
  labelKey: string;
44
45
  placeholder: string;
45
- options: InputTagModalOption[];
46
46
  disabledErrorMessage: boolean;
47
47
  valueKey: string;
48
48
  searchPlaceholder: string;
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
26
26
  "onUpdate:modelValue"?: ((value: SelectedTag[]) => any) | undefined;
27
27
  }>, {
28
28
  name: string;
29
- placeholder: string;
30
29
  state: "user" | "admin";
30
+ placeholder: string;
31
31
  limit: number;
32
32
  profileScope: "personal" | "business";
33
33
  ignore: string[];
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
26
26
  "onUpdate:modelValue"?: ((value: SelectedTag[]) => any) | undefined;
27
27
  }>, {
28
28
  name: string;
29
- placeholder: string;
30
29
  state: "user" | "admin";
30
+ placeholder: string;
31
31
  limit: number;
32
32
  profileScope: "personal" | "business";
33
33
  ignore: string[];
@@ -21,8 +21,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
21
21
  }>, {
22
22
  name: string;
23
23
  required: boolean;
24
- limit: number;
25
24
  options: import("../../../types/components/input/input-select.js").InputSelectItem[];
25
+ limit: number;
26
26
  removable: boolean;
27
27
  showCounter: boolean;
28
28
  selectClass: import("vue").HTMLAttributes["class"];
@@ -21,8 +21,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
21
21
  }>, {
22
22
  name: string;
23
23
  required: boolean;
24
- limit: number;
25
24
  options: import("../../../types/components/input/input-select.js").InputSelectItem[];
25
+ limit: number;
26
26
  removable: boolean;
27
27
  showCounter: boolean;
28
28
  selectClass: import("vue").HTMLAttributes["class"];
@@ -23,8 +23,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
23
23
  }>, {
24
24
  title: string;
25
25
  items: CarouselItem[];
26
- uploaderLabel: string;
27
26
  startIndex: number;
27
+ uploaderLabel: string;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
@@ -23,8 +23,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
23
23
  }>, {
24
24
  title: string;
25
25
  items: CarouselItem[];
26
- uploaderLabel: string;
27
26
  startIndex: number;
27
+ uploaderLabel: string;
28
28
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: typeof __VLS_export;
30
30
  export default _default;
@@ -25,7 +25,9 @@
25
25
 
26
26
  <script setup>
27
27
  import { computed, ref } from "vue";
28
- const emit = defineEmits(["profile-edit", "profile-share", "profile-follower-delete", "profile-block", "blog-pin", "blog-unpin", "blog-edit", "blog-delete", "report-blog", "report-place", "report-profile", "report-content", "report-spotlight", "report-tag", "report-label", "delete-content", "content-delete", "delete", "report", "report-review", "place-close-duplicate", "review-edit", "review-delete", "review-reply", "reply-edit", "reply-delete", "archive", "profile-name-updated", "report-submit"]);
28
+ import { useNuxtApp } from "nuxt/app";
29
+ import { useApi } from "../../../composables/useApi";
30
+ const emit = defineEmits(["profile-edit", "profile-share", "profile-follower-delete", "profile-block", "profile-blocked", "blog-pin", "blog-unpin", "blog-edit", "blog-delete", "report-blog", "report-place", "report-profile", "report-content", "report-spotlight", "report-tag", "report-label", "delete-content", "content-delete", "delete", "report", "report-review", "place-close-duplicate", "review-edit", "review-delete", "review-reply", "reply-edit", "reply-delete", "archive", "profile-name-updated", "report-submit"]);
29
31
  const props = defineProps({
30
32
  state: { type: String, required: false },
31
33
  profileDetail: { type: Object, required: false },
@@ -47,6 +49,29 @@ const onReportSubmit = (payload) => {
47
49
  emit("report-submit", payload);
48
50
  isOpenModalReport.value = false;
49
51
  };
52
+ const { $toast, $alert } = useNuxtApp();
53
+ const api = useApi();
54
+ const onProfileBlock = async () => {
55
+ const profileId = props.profileDetail?.basicId;
56
+ if (!profileId) return;
57
+ const profileName = props.profileDetail?.profileName || "\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E19\u0E35\u0E49";
58
+ const { isConfirmed } = await $alert.show({
59
+ type: "warning",
60
+ title: "\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E19\u0E35\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48 ?",
61
+ description: `${profileName} \u0E08\u0E30\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07\u0E42\u0E1E\u0E2A\u0E15\u0E4C\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E16\u0E36\u0E07\u0E04\u0E38\u0E13 \u0E21\u0E2D\u0E07\u0E40\u0E2B\u0E47\u0E19\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E40\u0E2B\u0E47\u0E19 \u0E2B\u0E23\u0E37\u0E2D\u0E23\u0E35\u0E27\u0E34\u0E27\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u0E41\u0E25\u0E30\u0E08\u0E30\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E14\u0E49\u0E27\u0E22`,
62
+ confirmText: "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",
63
+ cancelText: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
64
+ showCancelBtn: true
65
+ });
66
+ if (!isConfirmed) return;
67
+ try {
68
+ await api(`/profiles/${profileId}/block`, { method: "POST" });
69
+ $toast.success(`\u0E1A\u0E25\u0E47\u0E2D\u0E01 ${profileName} \u0E41\u0E25\u0E49\u0E27`);
70
+ emit("profile-blocked", profileId);
71
+ } catch (e) {
72
+ $toast.error(e?.data?.message?.description || "\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C\u0E44\u0E14\u0E49");
73
+ }
74
+ };
50
75
  const menu = [
51
76
  {
52
77
  label: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C",
@@ -80,6 +105,7 @@ const menu = [
80
105
  icon: "lucide:ban",
81
106
  action: () => {
82
107
  emit("profile-block");
108
+ onProfileBlock();
83
109
  }
84
110
  },
85
111
  {
@@ -0,0 +1,54 @@
1
+ import type { CardReferItem } from "#pukaad-ui/runtime/components/card/card-refer.vue";
2
+ export type PreviewContentState = "personal" | "business";
3
+ export interface PreviewContentData {
4
+ id?: string;
5
+ content_type?: "post_it" | "image" | "video";
6
+ labels?: {
7
+ id: string;
8
+ name: string;
9
+ }[];
10
+ cover_text?: string;
11
+ cover_color?: string;
12
+ video_poster_url?: string;
13
+ description?: string;
14
+ media?: {
15
+ media_type: string;
16
+ url: string;
17
+ description?: string;
18
+ }[];
19
+ tags?: {
20
+ id: string;
21
+ name: string;
22
+ }[];
23
+ mentions?: CardReferItem[];
24
+ places?: {
25
+ id: string;
26
+ name: string;
27
+ address?: string;
28
+ }[];
29
+ like_count?: number;
30
+ bookmark_count?: number;
31
+ share_count?: number;
32
+ author?: {
33
+ id: string;
34
+ name: string;
35
+ avatar: string | null;
36
+ follower_count?: number;
37
+ published_count?: number;
38
+ response_rate?: number;
39
+ };
40
+ }
41
+ type __VLS_Props = {
42
+ contentId: string | number;
43
+ /** เลือก endpoint ตามแอปที่เปิดพรีวิว */
44
+ state?: PreviewContentState;
45
+ };
46
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
+ exit: () => any;
48
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
49
+ onExit?: (() => any) | undefined;
50
+ }>, {
51
+ state: PreviewContentState;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
+ declare const _default: typeof __VLS_export;
54
+ export default _default;