pukaad-ui-lib 1.451.0 → 1.452.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.d.mts +0 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +0 -5
- package/dist/runtime/components/card/card-blog.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-blog.vue.d.ts +1 -1
- package/dist/runtime/components/card/card-profile/card-profile-header.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-profile/card-profile-header.vue.d.ts +1 -1
- package/dist/runtime/components/card/card-reaction.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-reaction.vue.d.ts +1 -1
- package/dist/runtime/components/chat/chat-conversation-item.d.vue.ts +1 -1
- package/dist/runtime/components/chat/chat-conversation-item.vue.d.ts +1 -1
- package/dist/runtime/components/display/display-image-place.d.vue.ts +1 -1
- package/dist/runtime/components/display/display-image-place.vue.d.ts +1 -1
- package/dist/runtime/components/display/display-video.d.vue.ts +1 -1
- package/dist/runtime/components/display/display-video.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-address.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-address.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-birth-date.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-birth-date.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-chat.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-chat.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-date-picker.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-date-picker.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-file.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-file.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-localized-name.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-password.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-password.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-tag-modal.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-tag-modal.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-typed-field.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-typed-field.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-media-view.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-media-view.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-user-account-search.vue +3 -8
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +3 -3
- package/package.json +2 -3
- package/dist/runtime/components/input/input-recaptcha.d.vue.ts +0 -21
- package/dist/runtime/components/input/input-recaptcha.vue +0 -57
- package/dist/runtime/components/input/input-recaptcha.vue.d.ts +0 -21
- package/dist/runtime/plugins/re-captcha.d.ts +0 -2
- package/dist/runtime/plugins/re-captcha.js +0 -13
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -56,7 +56,6 @@ const module$1 = defineNuxtModule({
|
|
|
56
56
|
rating: true,
|
|
57
57
|
shadcn: true,
|
|
58
58
|
tailwind: true,
|
|
59
|
-
recaptcha: false,
|
|
60
59
|
loadingPage: true,
|
|
61
60
|
alert: true,
|
|
62
61
|
toast: true,
|
|
@@ -152,9 +151,6 @@ const module$1 = defineNuxtModule({
|
|
|
152
151
|
]
|
|
153
152
|
});
|
|
154
153
|
}
|
|
155
|
-
if (isEnabled(features.recaptcha, false)) {
|
|
156
|
-
addPlugin(resolver.resolve("./runtime/plugins/re-captcha"));
|
|
157
|
-
}
|
|
158
154
|
if (isEnabled(features.loadingPage, true)) {
|
|
159
155
|
addPlugin(resolver.resolve("./runtime/plugins/loadingPage"));
|
|
160
156
|
}
|
|
@@ -244,7 +240,6 @@ const module$1 = defineNuxtModule({
|
|
|
244
240
|
}
|
|
245
241
|
});
|
|
246
242
|
_nuxt.options.runtimeConfig.public.BASE_URL_API ??= process.env.BASE_URL_API ?? "";
|
|
247
|
-
_nuxt.options.runtimeConfig.public.RECAPTCHA_KEY ??= process.env.RECAPTCHA_KEY ?? "";
|
|
248
243
|
_nuxt.hook("prepare:types", ({ references }) => {
|
|
249
244
|
references.push({ path: resolver.resolve("./types/convert.d.ts") });
|
|
250
245
|
references.push({ path: resolver.resolve("./types/google-translate.d.ts") });
|
|
@@ -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
|
-
isMyProfile: boolean;
|
|
42
41
|
disabledMenu: boolean;
|
|
42
|
+
isMyProfile: 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
|
-
isMyProfile: boolean;
|
|
42
41
|
disabledMenu: boolean;
|
|
42
|
+
isMyProfile: boolean;
|
|
43
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
44
|
declare const _default: typeof __VLS_export;
|
|
45
45
|
export default _default;
|
|
@@ -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
|
-
disabledPadding: boolean;
|
|
11
10
|
preview: boolean;
|
|
11
|
+
disabledPadding: 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
|
-
disabledPadding: boolean;
|
|
11
10
|
preview: boolean;
|
|
11
|
+
disabledPadding: boolean;
|
|
12
12
|
optionMenuButtonType: "solid" | "text";
|
|
13
13
|
actionsHidden: boolean;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -25,6 +25,7 @@ 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;
|
|
28
29
|
itemCount: Count;
|
|
29
30
|
itemActive: Reacted;
|
|
30
31
|
padding: string | number;
|
|
@@ -32,7 +33,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
32
33
|
disabledDividerTop: boolean;
|
|
33
34
|
disabledDividerBottom: boolean;
|
|
34
35
|
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,6 +25,7 @@ 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;
|
|
28
29
|
itemCount: Count;
|
|
29
30
|
itemActive: Reacted;
|
|
30
31
|
padding: string | number;
|
|
@@ -32,7 +33,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
32
33
|
disabledDividerTop: boolean;
|
|
33
34
|
disabledDividerBottom: boolean;
|
|
34
35
|
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;
|
|
30
29
|
preview: string;
|
|
31
30
|
to: string;
|
|
32
31
|
active: boolean;
|
|
33
32
|
typing: boolean;
|
|
34
33
|
unreadCount: number;
|
|
35
34
|
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;
|
|
30
29
|
preview: string;
|
|
31
30
|
to: string;
|
|
32
31
|
active: boolean;
|
|
33
32
|
typing: boolean;
|
|
34
33
|
unreadCount: number;
|
|
35
34
|
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";
|
|
19
18
|
photos: MediaItem[];
|
|
20
19
|
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";
|
|
19
18
|
photos: MediaItem[];
|
|
20
19
|
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;
|
|
106
105
|
sources: DisplayVideoSource[];
|
|
107
106
|
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;
|
|
106
105
|
sources: DisplayVideoSource[];
|
|
107
106
|
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
|
-
layout: "vertical" | "horizontal";
|
|
54
53
|
placeholder: string;
|
|
54
|
+
layout: "vertical" | "horizontal";
|
|
55
|
+
gap: number | string;
|
|
55
56
|
labelDetail: string;
|
|
56
57
|
placeholderDetail: string;
|
|
57
58
|
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
|
-
layout: "vertical" | "horizontal";
|
|
54
53
|
placeholder: string;
|
|
54
|
+
layout: "vertical" | "horizontal";
|
|
55
|
+
gap: number | string;
|
|
55
56
|
labelDetail: string;
|
|
56
57
|
placeholderDetail: string;
|
|
57
58
|
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
72
|
labelKey: string;
|
|
74
73
|
placeholder: string;
|
|
75
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
72
|
labelKey: string;
|
|
74
73
|
placeholder: string;
|
|
75
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";
|
|
34
33
|
locale: string;
|
|
35
34
|
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";
|
|
34
33
|
locale: string;
|
|
35
34
|
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
|
-
maxlength: number;
|
|
52
51
|
maxHeight: number;
|
|
52
|
+
maxlength: 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
|
-
maxlength: number;
|
|
52
51
|
maxHeight: number;
|
|
52
|
+
maxlength: number;
|
|
53
53
|
limitImage: number;
|
|
54
54
|
limitVideo: number;
|
|
55
55
|
disabledMedia: 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";
|
|
48
47
|
locale: string;
|
|
49
48
|
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";
|
|
48
47
|
locale: string;
|
|
49
48
|
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
|
-
disabledErrorMessage: boolean;
|
|
41
40
|
accept: string;
|
|
41
|
+
disabledErrorMessage: boolean;
|
|
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
|
-
disabledErrorMessage: boolean;
|
|
41
40
|
accept: string;
|
|
41
|
+
disabledErrorMessage: boolean;
|
|
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[];
|
|
15
14
|
placeholder: string;
|
|
16
15
|
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[];
|
|
15
14
|
placeholder: string;
|
|
16
15
|
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
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: 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
|
-
new: boolean;
|
|
26
25
|
disabledForgotPassword: boolean;
|
|
26
|
+
new: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -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[];
|
|
44
43
|
labelKey: string;
|
|
45
44
|
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[];
|
|
44
43
|
labelKey: string;
|
|
45
44
|
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
|
-
state: "user" | "admin";
|
|
30
29
|
placeholder: string;
|
|
30
|
+
state: "user" | "admin";
|
|
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
|
-
state: "user" | "admin";
|
|
30
29
|
placeholder: string;
|
|
30
|
+
state: "user" | "admin";
|
|
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
|
-
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
24
|
limit: number;
|
|
25
|
+
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
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
|
-
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
24
|
limit: number;
|
|
25
|
+
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
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
|
-
startIndex: number;
|
|
27
26
|
uploaderLabel: string;
|
|
27
|
+
startIndex: number;
|
|
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
|
-
startIndex: number;
|
|
27
26
|
uploaderLabel: string;
|
|
27
|
+
startIndex: number;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
30
30
|
export default _default;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
width="425px"
|
|
6
6
|
:loading="isLoading"
|
|
7
7
|
>
|
|
8
|
-
<!-- Step 1: phone
|
|
8
|
+
<!-- Step 1: phone -->
|
|
9
9
|
<div v-if="step === 'search'" class="flex flex-col gap-[24px]">
|
|
10
10
|
<p class="font-body-large">
|
|
11
11
|
ป้อนเบอร์โทรศัพท์ที่เชื่อมโยงกับบัญชีของคุณ เพื่อเปลี่ยนรหัสผ่าน
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
placeholder="กรอกเบอร์โทรศัพท์"
|
|
16
16
|
v-model="phone"
|
|
17
17
|
/>
|
|
18
|
-
<InputRecaptcha ref="recaptchaRef" name="recaptcha" v-model="recaptcha" />
|
|
19
18
|
</div>
|
|
20
19
|
|
|
21
20
|
<!-- Step 2: select OTP method -->
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
v-if="step === 'search'"
|
|
49
48
|
class="w-full"
|
|
50
49
|
color="primary"
|
|
51
|
-
:disabled="!phone ||
|
|
50
|
+
:disabled="!phone || isLoading"
|
|
52
51
|
@click="onSearchNext"
|
|
53
52
|
>
|
|
54
53
|
ถัดไป
|
|
@@ -85,8 +84,6 @@ const modelValue = defineModel({ type: Boolean, ...{ default: false } });
|
|
|
85
84
|
const step = ref("search");
|
|
86
85
|
const isLoading = ref(false);
|
|
87
86
|
const phone = ref("");
|
|
88
|
-
const recaptcha = ref("");
|
|
89
|
-
const recaptchaRef = ref(null);
|
|
90
87
|
const maskedPhone = ref("");
|
|
91
88
|
const maskedEmail = ref(null);
|
|
92
89
|
const hasEmail = ref(false);
|
|
@@ -105,7 +102,7 @@ const onSearchNext = async () => {
|
|
|
105
102
|
try {
|
|
106
103
|
const res = await api("/auth/forgot-password/find-account", {
|
|
107
104
|
method: "POST",
|
|
108
|
-
body: { phone: phone.value
|
|
105
|
+
body: { phone: phone.value }
|
|
109
106
|
});
|
|
110
107
|
maskedPhone.value = res.data.masked_phone;
|
|
111
108
|
maskedEmail.value = res.data.masked_email;
|
|
@@ -136,7 +133,6 @@ const emitComplete = () => {
|
|
|
136
133
|
const goBack = () => {
|
|
137
134
|
step.value = "search";
|
|
138
135
|
phone.value = "";
|
|
139
|
-
recaptcha.value = "";
|
|
140
136
|
selectedMethod.value = null;
|
|
141
137
|
maskedPhone.value = "";
|
|
142
138
|
maskedEmail.value = null;
|
|
@@ -146,7 +142,6 @@ watch(modelValue, (v) => {
|
|
|
146
142
|
if (!v) {
|
|
147
143
|
step.value = "search";
|
|
148
144
|
phone.value = "";
|
|
149
|
-
recaptcha.value = "";
|
|
150
145
|
selectedMethod.value = null;
|
|
151
146
|
maskedPhone.value = "";
|
|
152
147
|
maskedEmail.value = null;
|
|
@@ -75,9 +75,9 @@ const menu = [
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
label: "\u0E1A\u0E25\u0E47\u0E2D\u0E04",
|
|
78
|
+
label: "\u0E1A\u0E25\u0E47\u0E2D\u0E04\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C",
|
|
79
79
|
name: "profile-block",
|
|
80
|
-
icon: "
|
|
80
|
+
icon: "lucide:ban",
|
|
81
81
|
action: () => {
|
|
82
82
|
emit("profile-block");
|
|
83
83
|
}
|
|
@@ -272,7 +272,7 @@ const menu = [
|
|
|
272
272
|
const items = computed(() => {
|
|
273
273
|
if (props.state === "profile") {
|
|
274
274
|
return menu.filter(
|
|
275
|
-
(fil) => ["profile-share", "report-profile"].includes(fil.name)
|
|
275
|
+
(fil) => ["profile-share", "profile-block", "report-profile"].includes(fil.name)
|
|
276
276
|
);
|
|
277
277
|
}
|
|
278
278
|
if (props.state === "my-profile") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pukaad-ui-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.452.0",
|
|
4
4
|
"description": "pukaad-ui for MeMSG",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,8 +65,7 @@
|
|
|
65
65
|
"tailwind-variants": "^3.1.1",
|
|
66
66
|
"tailwindcss": "^4.3.0",
|
|
67
67
|
"tw-animate-css": "^1.4.0",
|
|
68
|
-
"vee-validate": "^4.15.1"
|
|
69
|
-
"vue3-recaptcha-v2": "^2.1.0"
|
|
68
|
+
"vee-validate": "^4.15.1"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
71
|
"nuxt": "^3.15.0 || ^4.0.0",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
name?: string;
|
|
3
|
-
};
|
|
4
|
-
type __VLS_ModelProps = {
|
|
5
|
-
modelValue?: unknown | string | null;
|
|
6
|
-
};
|
|
7
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
9
|
-
reset: () => void;
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: unknown) => any;
|
|
12
|
-
} & {
|
|
13
|
-
verify: (token: string) => any;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
16
|
-
onVerify?: ((token: string) => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
name: string;
|
|
19
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const _default: typeof __VLS_export;
|
|
21
|
-
export default _default;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ShadFormField
|
|
3
|
-
:name="props.name"
|
|
4
|
-
:rules="rules"
|
|
5
|
-
v-slot="{ componentField }"
|
|
6
|
-
v-model="tokenValue"
|
|
7
|
-
>
|
|
8
|
-
<ShadFormItem>
|
|
9
|
-
<ShadFormControl>
|
|
10
|
-
<input v-bind="componentField" class="hidden" />
|
|
11
|
-
<RecaptchaV2
|
|
12
|
-
language="th"
|
|
13
|
-
@widget-id="handleWidgetId"
|
|
14
|
-
@load-callback="onVerify"
|
|
15
|
-
@expired-callback="onExpired"
|
|
16
|
-
/>
|
|
17
|
-
<ShadFormMessage />
|
|
18
|
-
</ShadFormControl>
|
|
19
|
-
</ShadFormItem>
|
|
20
|
-
</ShadFormField>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script setup>
|
|
24
|
-
import { ref } from "vue";
|
|
25
|
-
import { RecaptchaV2, useRecaptcha } from "vue3-recaptcha-v2";
|
|
26
|
-
const { handleReset } = useRecaptcha();
|
|
27
|
-
const emit = defineEmits(["verify"]);
|
|
28
|
-
const props = defineProps({
|
|
29
|
-
name: { type: String, required: false, default: "" }
|
|
30
|
-
});
|
|
31
|
-
const tokenValue = defineModel({ type: null, ...{
|
|
32
|
-
default: null
|
|
33
|
-
} });
|
|
34
|
-
const widgetId = ref();
|
|
35
|
-
const onVerify = (token) => {
|
|
36
|
-
const t = token;
|
|
37
|
-
tokenValue.value = t;
|
|
38
|
-
emit("verify", t);
|
|
39
|
-
};
|
|
40
|
-
const onExpired = () => {
|
|
41
|
-
tokenValue.value = null;
|
|
42
|
-
};
|
|
43
|
-
const rules = () => {
|
|
44
|
-
if (!tokenValue.value) return "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E15\u0E31\u0E27\u0E15\u0E19";
|
|
45
|
-
return true;
|
|
46
|
-
};
|
|
47
|
-
const handleWidgetId = (id) => {
|
|
48
|
-
widgetId.value = id;
|
|
49
|
-
};
|
|
50
|
-
const reset = () => {
|
|
51
|
-
tokenValue.value = null;
|
|
52
|
-
handleReset(widgetId.value ?? 0);
|
|
53
|
-
};
|
|
54
|
-
defineExpose({
|
|
55
|
-
reset
|
|
56
|
-
});
|
|
57
|
-
</script>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
name?: string;
|
|
3
|
-
};
|
|
4
|
-
type __VLS_ModelProps = {
|
|
5
|
-
modelValue?: unknown | string | null;
|
|
6
|
-
};
|
|
7
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
9
|
-
reset: () => void;
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: unknown) => any;
|
|
12
|
-
} & {
|
|
13
|
-
verify: (token: string) => any;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
16
|
-
onVerify?: ((token: string) => any) | undefined;
|
|
17
|
-
}>, {
|
|
18
|
-
name: string;
|
|
19
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const _default: typeof __VLS_export;
|
|
21
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "nuxt/app";
|
|
2
|
-
import { install as VueRecaptchaInstall } from "vue3-recaptcha-v2";
|
|
3
|
-
export default defineNuxtPlugin((nuxtApp) => {
|
|
4
|
-
const recaptchaKey = nuxtApp.$config.public?.RECAPTCHA_KEY;
|
|
5
|
-
if (!recaptchaKey) {
|
|
6
|
-
console.warn("[reCAPTCHA] RECAPTCHA_KEY is missing in runtime config");
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
nuxtApp.vueApp.use(VueRecaptchaInstall, {
|
|
10
|
-
sitekey: String(recaptchaKey),
|
|
11
|
-
cnDomains: false
|
|
12
|
-
});
|
|
13
|
-
});
|