pukaad-ui-lib 1.202.0 → 1.204.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 (75) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/comment.d.vue.ts +34 -4
  3. package/dist/runtime/components/comment.vue +425 -86
  4. package/dist/runtime/components/comment.vue.d.ts +34 -4
  5. package/dist/runtime/components/dialog/dialog-email-OTP.d.vue.ts +2 -2
  6. package/dist/runtime/components/dialog/dialog-email-OTP.vue.d.ts +2 -2
  7. package/dist/runtime/components/dialog/dialog-phone-OTP.d.vue.ts +2 -2
  8. package/dist/runtime/components/dialog/dialog-phone-OTP.vue.d.ts +2 -2
  9. package/dist/runtime/components/drawer/drawer.d.vue.ts +1 -1
  10. package/dist/runtime/components/drawer/drawer.vue.d.ts +1 -1
  11. package/dist/runtime/components/image/image-cropper.d.vue.ts +2 -2
  12. package/dist/runtime/components/image/image-cropper.vue.d.ts +2 -2
  13. package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
  14. package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
  15. package/dist/runtime/components/input/input-combobox.d.vue.ts +1 -1
  16. package/dist/runtime/components/input/input-combobox.vue.d.ts +1 -1
  17. package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
  18. package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
  19. package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
  20. package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
  21. package/dist/runtime/components/input/input-slider.d.vue.ts +1 -1
  22. package/dist/runtime/components/input/input-slider.vue.d.ts +1 -1
  23. package/dist/runtime/components/input/input-text-field.d.vue.ts +1 -1
  24. package/dist/runtime/components/input/input-text-field.vue.d.ts +1 -1
  25. package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
  26. package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
  27. package/dist/runtime/components/modal/modal-account-disabled-alert.d.vue.ts +2 -2
  28. package/dist/runtime/components/modal/modal-account-disabled-alert.vue.d.ts +2 -2
  29. package/dist/runtime/components/modal/modal-account-disabled-confirmed.d.vue.ts +2 -2
  30. package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue.d.ts +2 -2
  31. package/dist/runtime/components/modal/modal-account-disabled-reason.d.vue.ts +2 -2
  32. package/dist/runtime/components/modal/modal-account-disabled-reason.vue.d.ts +2 -2
  33. package/dist/runtime/components/modal/modal-password-confirmed.d.vue.ts +3 -3
  34. package/dist/runtime/components/modal/modal-password-confirmed.vue.d.ts +3 -3
  35. package/dist/runtime/components/modal/modal-password-new.d.vue.ts +2 -2
  36. package/dist/runtime/components/modal/modal-password-new.vue.d.ts +2 -2
  37. package/dist/runtime/components/modal/modal-password-verify.d.vue.ts +3 -3
  38. package/dist/runtime/components/modal/modal-password-verify.vue.d.ts +3 -3
  39. package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +2 -2
  40. package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +2 -2
  41. package/dist/runtime/components/modal/modal-report.d.vue.ts +22 -1
  42. package/dist/runtime/components/modal/modal-report.vue +86 -26
  43. package/dist/runtime/components/modal/modal-report.vue.d.ts +22 -1
  44. package/dist/runtime/components/modal/modal.d.vue.ts +1 -1
  45. package/dist/runtime/components/modal/modal.vue.d.ts +1 -1
  46. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +2 -1
  47. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.d.vue.ts +11 -2
  48. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.vue +8 -4
  49. package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.vue.d.ts +11 -2
  50. package/dist/runtime/components/ui/button/index.d.ts +1 -1
  51. package/dist/runtime/components/ui/button/index.js +1 -0
  52. package/dist/runtime/components/ui/carousel/CarouselNext.d.vue.ts +1 -1
  53. package/dist/runtime/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
  54. package/dist/runtime/components/ui/carousel/CarouselPrevious.d.vue.ts +1 -1
  55. package/dist/runtime/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
  56. package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +1 -1
  57. package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +1 -1
  58. package/dist/runtime/components/ui/input-group/index.d.ts +1 -1
  59. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +2 -2
  60. package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +2 -2
  61. package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +2 -2
  62. package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +2 -2
  63. package/dist/runtime/components/ui/pagination/PaginationFirst.d.vue.ts +1 -1
  64. package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +1 -1
  65. package/dist/runtime/components/ui/pagination/PaginationItem.d.vue.ts +1 -1
  66. package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +1 -1
  67. package/dist/runtime/components/ui/pagination/PaginationLast.d.vue.ts +1 -1
  68. package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +1 -1
  69. package/dist/runtime/components/ui/pagination/PaginationNext.d.vue.ts +1 -1
  70. package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +1 -1
  71. package/dist/runtime/components/ui/pagination/PaginationPrevious.d.vue.ts +1 -1
  72. package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +1 -1
  73. package/dist/runtime/components/ui/select/Select.d.vue.ts +2 -2
  74. package/dist/runtime/components/ui/select/Select.vue.d.ts +2 -2
  75. 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.202.0",
4
+ "version": "1.204.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -22,21 +22,51 @@ export interface CommentItem {
22
22
  reply_count: number;
23
23
  reply: Reply[];
24
24
  }
25
+ export interface CommentFetchResult {
26
+ data: CommentItem[];
27
+ totalComments: number;
28
+ meta: {
29
+ total_pages: number;
30
+ };
31
+ }
25
32
  type __VLS_Props = {
26
- comments: CommentItem[];
27
- commentCount: number;
33
+ comments?: CommentItem[];
34
+ commentCount?: number;
28
35
  currentUser: User;
36
+ fetchFn?: (page: number, pageSize: number) => Promise<CommentFetchResult>;
37
+ pageSize?: number;
29
38
  };
30
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
39
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
40
+ addComment: (comment: CommentItem) => void;
41
+ addReply: (commentId: string, reply: Reply) => void;
42
+ removeComment: (commentId: string) => void;
43
+ removeReply: (replyId: string) => void;
44
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
45
  submit: (content: string) => any;
32
46
  reply: (commentId: string, replyToUserId: string | undefined, content: string) => any;
33
47
  "like-comment": (comment: CommentItem) => any;
34
48
  "like-reply": (reply: Reply) => any;
49
+ "edit-comment": (comment: CommentItem, content: string) => any;
50
+ "edit-reply": (reply: Reply, content: string) => any;
51
+ "delete-comment": (comment: CommentItem) => any;
52
+ "delete-reply": (reply: Reply) => any;
53
+ "report-comment": (comment: CommentItem) => any;
54
+ "report-reply": (reply: Reply) => any;
35
55
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
56
  onSubmit?: ((content: string) => any) | undefined;
37
57
  onReply?: ((commentId: string, replyToUserId: string | undefined, content: string) => any) | undefined;
38
58
  "onLike-comment"?: ((comment: CommentItem) => any) | undefined;
39
59
  "onLike-reply"?: ((reply: Reply) => any) | undefined;
40
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
+ "onEdit-comment"?: ((comment: CommentItem, content: string) => any) | undefined;
61
+ "onEdit-reply"?: ((reply: Reply, content: string) => any) | undefined;
62
+ "onDelete-comment"?: ((comment: CommentItem) => any) | undefined;
63
+ "onDelete-reply"?: ((reply: Reply) => any) | undefined;
64
+ "onReport-comment"?: ((comment: CommentItem) => any) | undefined;
65
+ "onReport-reply"?: ((reply: Reply) => any) | undefined;
66
+ }>, {
67
+ comments: CommentItem[];
68
+ commentCount: number;
69
+ pageSize: number;
70
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
71
  declare const _default: typeof __VLS_export;
42
72
  export default _default;