pukaad-ui-lib 1.452.0 → 1.453.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 (45) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/card/card-blog.d.vue.ts +1 -1
  3. package/dist/runtime/components/card/card-blog.vue.d.ts +1 -1
  4. package/dist/runtime/components/card/card-place/card-place.vue +1 -1
  5. package/dist/runtime/components/card/card-profile/card-profile-header.d.vue.ts +1 -1
  6. package/dist/runtime/components/card/card-profile/card-profile-header.vue.d.ts +1 -1
  7. package/dist/runtime/components/card/card-reaction.d.vue.ts +1 -1
  8. package/dist/runtime/components/card/card-reaction.vue.d.ts +1 -1
  9. package/dist/runtime/components/chat/chat-conversation-item.d.vue.ts +1 -1
  10. package/dist/runtime/components/chat/chat-conversation-item.vue.d.ts +1 -1
  11. package/dist/runtime/components/display/display-image-place.d.vue.ts +1 -1
  12. package/dist/runtime/components/display/display-image-place.vue.d.ts +1 -1
  13. package/dist/runtime/components/display/display-video.d.vue.ts +4 -4
  14. package/dist/runtime/components/display/display-video.vue.d.ts +4 -4
  15. package/dist/runtime/components/input/input-address.d.vue.ts +2 -2
  16. package/dist/runtime/components/input/input-address.vue.d.ts +2 -2
  17. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +2 -2
  18. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +2 -2
  19. package/dist/runtime/components/input/input-birth-date.d.vue.ts +1 -1
  20. package/dist/runtime/components/input/input-birth-date.vue.d.ts +1 -1
  21. package/dist/runtime/components/input/input-chat.d.vue.ts +1 -1
  22. package/dist/runtime/components/input/input-chat.vue.d.ts +1 -1
  23. package/dist/runtime/components/input/input-combobox.d.vue.ts +1 -1
  24. package/dist/runtime/components/input/input-combobox.vue.d.ts +1 -1
  25. package/dist/runtime/components/input/input-date-picker.d.vue.ts +1 -1
  26. package/dist/runtime/components/input/input-date-picker.vue.d.ts +1 -1
  27. package/dist/runtime/components/input/input-localized-name.d.vue.ts +2 -2
  28. package/dist/runtime/components/input/input-localized-name.vue.d.ts +2 -2
  29. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  30. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  31. package/dist/runtime/components/input/input-select-place.vue +2 -2
  32. package/dist/runtime/components/input/input-suggest.d.vue.ts +1 -1
  33. package/dist/runtime/components/input/input-suggest.vue.d.ts +1 -1
  34. package/dist/runtime/components/input/input-tag-modal.d.vue.ts +1 -1
  35. package/dist/runtime/components/input/input-tag-modal.vue.d.ts +1 -1
  36. package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
  37. package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
  38. package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
  39. package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
  40. package/dist/runtime/components/input/input-typed-field.d.vue.ts +1 -1
  41. package/dist/runtime/components/input/input-typed-field.vue.d.ts +1 -1
  42. package/dist/runtime/components/modal/modal-media-view.d.vue.ts +1 -1
  43. package/dist/runtime/components/modal/modal-media-view.vue.d.ts +1 -1
  44. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +27 -1
  45. 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.453.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -38,8 +38,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
38
38
  "onBlog-updated"?: ((id: string, data: any) => any) | undefined;
39
39
  "onBlog-deleted"?: ((id: string) => any) | undefined;
40
40
  }>, {
41
- disabledMenu: boolean;
42
41
  isMyProfile: boolean;
42
+ disabledMenu: boolean;
43
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
44
  declare const _default: typeof __VLS_export;
45
45
  export default _default;
@@ -38,8 +38,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
38
38
  "onBlog-updated"?: ((id: string, data: any) => any) | undefined;
39
39
  "onBlog-deleted"?: ((id: string) => any) | undefined;
40
40
  }>, {
41
- disabledMenu: boolean;
42
41
  isMyProfile: boolean;
42
+ disabledMenu: boolean;
43
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
44
  declare const _default: typeof __VLS_export;
45
45
  export default _default;
@@ -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>
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
7
7
  onFollow?: ((isFollowing: boolean) => any) | undefined;
8
8
  }>, {
9
9
  type: "article" | "media" | "sale-info";
10
- preview: boolean;
11
10
  disabledPadding: boolean;
11
+ preview: boolean;
12
12
  optionMenuButtonType: "solid" | "text";
13
13
  actionsHidden: boolean;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
7
7
  onFollow?: ((isFollowing: boolean) => any) | undefined;
8
8
  }>, {
9
9
  type: "article" | "media" | "sale-info";
10
- preview: boolean;
11
10
  disabledPadding: boolean;
11
+ preview: boolean;
12
12
  optionMenuButtonType: "solid" | "text";
13
13
  actionsHidden: boolean;
14
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -25,7 +25,6 @@ type __VLS_Props = {
25
25
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
26
  disabled: boolean;
27
27
  id: string;
28
- state: string;
29
28
  itemCount: Count;
30
29
  itemActive: Reacted;
31
30
  padding: string | number;
@@ -33,6 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
33
32
  disabledDividerTop: boolean;
34
33
  disabledDividerBottom: boolean;
35
34
  iconSize: number | string;
35
+ state: string;
36
36
  loginPath: string;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
@@ -25,7 +25,6 @@ type __VLS_Props = {
25
25
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
26
  disabled: boolean;
27
27
  id: string;
28
- state: string;
29
28
  itemCount: Count;
30
29
  itemActive: Reacted;
31
30
  padding: string | number;
@@ -33,6 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
33
32
  disabledDividerTop: boolean;
34
33
  disabledDividerBottom: boolean;
35
34
  iconSize: number | string;
35
+ state: string;
36
36
  loginPath: string;
37
37
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: typeof __VLS_export;
@@ -26,13 +26,13 @@ declare const __VLS_export: import("vue").DefineComponent<ChatConversationItemPr
26
26
  name: string;
27
27
  avatar: string | null;
28
28
  muted: boolean;
29
+ disabledMenu: boolean;
29
30
  preview: string;
30
31
  to: string;
31
32
  active: boolean;
32
33
  typing: boolean;
33
34
  unreadCount: number;
34
35
  pinned: boolean;
35
- disabledMenu: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  export default _default;
@@ -26,13 +26,13 @@ declare const __VLS_export: import("vue").DefineComponent<ChatConversationItemPr
26
26
  name: string;
27
27
  avatar: string | null;
28
28
  muted: boolean;
29
+ disabledMenu: boolean;
29
30
  preview: string;
30
31
  to: string;
31
32
  active: boolean;
32
33
  typing: boolean;
33
34
  unreadCount: number;
34
35
  pinned: boolean;
35
- disabledMenu: boolean;
36
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
37
  declare const _default: typeof __VLS_export;
38
38
  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;
@@ -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;
@@ -81,16 +81,16 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
81
81
  toggle: () => void;
82
82
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
83
  close: (payload: DisplayVideoAction) => any;
84
- prev: (payload: DisplayVideoAction) => any;
85
- next: (payload: DisplayVideoAction) => any;
86
84
  fullscreen: (payload: DisplayVideoAction) => any;
87
85
  "play-click": (payload: DisplayVideoAction) => any;
86
+ prev: (payload: DisplayVideoAction) => any;
87
+ next: (payload: DisplayVideoAction) => any;
88
88
  }, string, import("vue").PublicProps, Readonly<DisplayVideoProps> & Readonly<{
89
89
  onClose?: ((payload: DisplayVideoAction) => any) | undefined;
90
- onPrev?: ((payload: DisplayVideoAction) => any) | undefined;
91
- onNext?: ((payload: DisplayVideoAction) => any) | undefined;
92
90
  onFullscreen?: ((payload: DisplayVideoAction) => any) | undefined;
93
91
  "onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
92
+ onPrev?: ((payload: DisplayVideoAction) => any) | undefined;
93
+ onNext?: ((payload: DisplayVideoAction) => any) | undefined;
94
94
  }>, {
95
95
  src: string;
96
96
  fullWidth: boolean;
@@ -81,16 +81,16 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
81
81
  toggle: () => void;
82
82
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
83
  close: (payload: DisplayVideoAction) => any;
84
- prev: (payload: DisplayVideoAction) => any;
85
- next: (payload: DisplayVideoAction) => any;
86
84
  fullscreen: (payload: DisplayVideoAction) => any;
87
85
  "play-click": (payload: DisplayVideoAction) => any;
86
+ prev: (payload: DisplayVideoAction) => any;
87
+ next: (payload: DisplayVideoAction) => any;
88
88
  }, string, import("vue").PublicProps, Readonly<DisplayVideoProps> & Readonly<{
89
89
  onClose?: ((payload: DisplayVideoAction) => any) | undefined;
90
- onPrev?: ((payload: DisplayVideoAction) => any) | undefined;
91
- onNext?: ((payload: DisplayVideoAction) => any) | undefined;
92
90
  onFullscreen?: ((payload: DisplayVideoAction) => any) | undefined;
93
91
  "onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
92
+ onPrev?: ((payload: DisplayVideoAction) => any) | undefined;
93
+ onNext?: ((payload: DisplayVideoAction) => any) | undefined;
94
94
  }>, {
95
95
  src: string;
96
96
  fullWidth: boolean;
@@ -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[];
73
+ limit: number;
72
74
  labelKey: string;
73
75
  placeholder: string;
74
- 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[];
73
+ limit: number;
72
74
  labelKey: string;
73
75
  placeholder: string;
74
- 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;
@@ -60,8 +60,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
60
60
  }>, {
61
61
  pageSize: number;
62
62
  name: string;
63
- labelKey: string;
64
63
  limit: number;
64
+ labelKey: string;
65
65
  valueKey: string;
66
66
  multiple: boolean;
67
67
  placeholderSearch: string;
@@ -60,8 +60,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
60
60
  }>, {
61
61
  pageSize: number;
62
62
  name: string;
63
- labelKey: string;
64
63
  limit: number;
64
+ labelKey: string;
65
65
  valueKey: string;
66
66
  multiple: boolean;
67
67
  placeholderSearch: 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;
@@ -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
- placeholder: string;
15
- limit: number;
16
14
  options: InputSelectItem[];
15
+ limit: number;
16
+ placeholder: string;
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
- placeholder: string;
15
- limit: number;
16
14
  options: InputSelectItem[];
15
+ limit: number;
16
+ placeholder: string;
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"
@@ -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;
@@ -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,9 +26,9 @@ 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";
31
30
  limit: number;
31
+ placeholder: string;
32
32
  profileScope: "personal" | "business";
33
33
  ignore: string[];
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -26,9 +26,9 @@ 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";
31
30
  limit: number;
31
+ placeholder: string;
32
32
  profileScope: "personal" | "business";
33
33
  ignore: string[];
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -46,8 +46,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
46
46
  resize: "none" | "both" | "horizontal" | "vertical";
47
47
  fullWidth: boolean;
48
48
  fullHeight: 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
  fullWidth: boolean;
48
48
  fullHeight: boolean;
49
- rows: number;
50
49
  limit: number;
50
+ rows: number;
51
51
  readonly: boolean;
52
52
  disabledErrorMessage: boolean;
53
53
  disabledBorder: boolean;
@@ -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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.452.0",
3
+ "version": "1.453.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",