pukaad-ui-lib 1.198.0 → 1.200.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.198.0",
4
+ "version": "1.200.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,7 +2,6 @@ export interface User {
2
2
  id: string;
3
3
  name: string;
4
4
  avatar: string;
5
- path_name?: string;
6
5
  }
7
6
  export interface Reply {
8
7
  id: string;
@@ -41,12 +41,12 @@
41
41
  <Avatar
42
42
  :size="30"
43
43
  class="cursor-pointer"
44
- @click="onViewProfileComment(cmt.user.path_name)"
44
+ @click="onViewProfileComment(cmt.user.id)"
45
45
  />
46
46
  <div class="flex flex-col gap-[4px] bg-bright p-[8px] rounded-lg">
47
47
  <div
48
48
  class="font-body-large-prominent cursor-pointer"
49
- @click="onViewProfileComment(cmt.user.path_name)"
49
+ @click="onViewProfileComment(cmt.user.id)"
50
50
  >
51
51
  {{ cmt.user.name }}
52
52
  </div>
@@ -170,12 +170,12 @@
170
170
  <Avatar
171
171
  :size="30"
172
172
  class="cursor-pointer"
173
- @click="onViewProfileComment(reply.user.path_name)"
173
+ @click="onViewProfileComment(reply.user.id)"
174
174
  />
175
175
  <div class="flex flex-col bg-bright p-[8px] rounded-lg gap-[4px]">
176
176
  <div
177
177
  class="font-body-large-prominent cursor-pointer"
178
- @click="onViewProfileComment(reply.user.path_name)"
178
+ @click="onViewProfileComment(reply.user.id)"
179
179
  >
180
180
  {{ reply.user.name }}
181
181
  </div>
@@ -191,7 +191,7 @@
191
191
  "
192
192
  ><span
193
193
  v-if="reply.reply_to"
194
- @click="onViewProfileComment(reply.reply_to.path_name)"
194
+ @click="onViewProfileComment(reply.reply_to.id)"
195
195
  class="text-primary cursor-pointer mr-1"
196
196
  >{{ reply.reply_to.name }}</span
197
197
  >{{ normalizeContent(reply.content) }}</template
@@ -199,7 +199,7 @@
199
199
  <template v-else
200
200
  ><span
201
201
  v-if="reply.reply_to"
202
- @click="onViewProfileComment(reply.reply_to.path_name)"
202
+ @click="onViewProfileComment(reply.reply_to.id)"
203
203
  class="text-primary cursor-pointer mr-1"
204
204
  >{{ reply.reply_to.name }}</span
205
205
  >{{ getTruncatedText(`reply-${reply.id}`) }}...<span
@@ -495,10 +495,8 @@ const onToggleLikeComment = (comment) => {
495
495
  const onToggleLikeReplyComment = (reply) => {
496
496
  emit("like-reply", reply);
497
497
  };
498
- const onViewProfileComment = (path_name) => {
499
- if (path_name) {
500
- router.push(`/${path_name}`);
501
- }
498
+ const onViewProfileComment = (id) => {
499
+ if (id) router.push(`/@${id}`);
502
500
  };
503
501
  const getOtherUserRepliesCount = (cmt) => (cmt.reply || []).filter((r) => r.user?.id !== currentUser.value?.id).length;
504
502
  const hasOtherUserReplies = (cmt) => getOtherUserRepliesCount(cmt) > 0;
@@ -2,7 +2,6 @@ export interface User {
2
2
  id: string;
3
3
  name: string;
4
4
  avatar: string;
5
- path_name?: string;
6
5
  }
7
6
  export interface Reply {
8
7
  id: string;
@@ -31,8 +31,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
31
31
  fullHeight: boolean;
32
32
  name: string;
33
33
  limit: number;
34
- accept: string;
35
34
  disabledErrorMessage: boolean;
35
+ accept: string;
36
36
  labelIcon: string;
37
37
  disabledDrop: boolean;
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -31,8 +31,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
31
31
  fullHeight: boolean;
32
32
  name: string;
33
33
  limit: number;
34
- accept: string;
35
34
  disabledErrorMessage: boolean;
35
+ accept: string;
36
36
  labelIcon: string;
37
37
  disabledDrop: boolean;
38
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -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;
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
12
12
  label: string;
13
13
  color: InputSliderColor;
14
14
  fullWidth: boolean;
15
- step: number;
16
15
  max: number;
17
16
  min: number;
17
+ step: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
12
12
  label: string;
13
13
  color: InputSliderColor;
14
14
  fullWidth: boolean;
15
- step: number;
16
15
  max: number;
17
16
  min: number;
17
+ step: number;
18
18
  lineHeight: number | string;
19
19
  appearance: boolean;
20
20
  thumbSize: number | string;
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
24
24
  onClose?: (() => any) | undefined;
25
25
  }>, {
26
26
  title: string;
27
- confirmText: string;
28
27
  disabledForgotPassword: boolean;
28
+ confirmText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: typeof __VLS_export;
31
31
  export default _default;
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
24
24
  onClose?: (() => any) | undefined;
25
25
  }>, {
26
26
  title: string;
27
- confirmText: string;
28
27
  disabledForgotPassword: boolean;
28
+ confirmText: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: typeof __VLS_export;
31
31
  export default _default;
@@ -28,8 +28,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
28
28
  }>, {
29
29
  title: string;
30
30
  mode: "login" | "secure";
31
- confirmText: string;
32
31
  disabledForgotPassword: boolean;
32
+ confirmText: string;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  export default _default;
@@ -28,8 +28,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
28
28
  }>, {
29
29
  title: string;
30
30
  mode: "login" | "secure";
31
- confirmText: string;
32
31
  disabledForgotPassword: boolean;
32
+ confirmText: string;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const _default: typeof __VLS_export;
35
35
  export default _default;
@@ -267,7 +267,7 @@ const saveProfileName = async (values, { setErrors }) => {
267
267
  console.error("Update profile error:", error);
268
268
  if (error.response?.status === 429) {
269
269
  setErrors({
270
- profileName: error.response?._data?.message || "\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E0A\u0E37\u0E48\u0E2D\u0E44\u0E14\u0E49\u0E43\u0E19\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07"
270
+ profileName: error.response?._data?.message.description || "\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E0A\u0E37\u0E48\u0E2D\u0E44\u0E14\u0E49\u0E43\u0E19\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07"
271
271
  });
272
272
  } else {
273
273
  $toast.error(error.message || "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C");
@@ -152,7 +152,7 @@ const menu = [
152
152
  }
153
153
  },
154
154
  {
155
- label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E23\u0E30\u0E01\u0E32\u0E28\u0E19\u0E35\u0E49",
155
+ label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E19\u0E35\u0E49",
156
156
  name: "report-announce",
157
157
  icon: "fa6-regular:flag",
158
158
  action: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.198.0",
3
+ "version": "1.200.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",