pukaad-ui-lib 1.465.0 → 1.467.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 +1 -1
- package/dist/module.mjs +12 -7
- package/dist/runtime/assets/css/core.css +1 -1
- package/dist/runtime/components/card/card-blog.d.vue.ts +3 -1
- package/dist/runtime/components/card/card-blog.vue +2 -7
- package/dist/runtime/components/card/card-blog.vue.d.ts +3 -1
- package/dist/runtime/components/card/card-content/card-content-menu.d.vue.ts +0 -2
- package/dist/runtime/components/card/card-content/card-content-menu.vue +14 -14
- package/dist/runtime/components/card/card-content/card-content-menu.vue.d.ts +0 -2
- 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/card/card-review.d.vue.ts +4 -4
- package/dist/runtime/components/card/card-review.vue.d.ts +4 -4
- package/dist/runtime/components/card/card-user/card-user-item.d.vue.ts +23 -3
- package/dist/runtime/components/card/card-user/card-user-item.vue +35 -7
- package/dist/runtime/components/card/card-user/card-user-item.vue.d.ts +23 -3
- 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-video.d.vue.ts +4 -4
- package/dist/runtime/components/display/display-video.vue +2 -1
- package/dist/runtime/components/display/display-video.vue.d.ts +4 -4
- package/dist/runtime/components/drawer/drawer-profile-network.d.vue.ts +1 -1
- package/dist/runtime/components/drawer/drawer-profile-network.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-combobox.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-combobox.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-comment.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-comment.vue.d.ts +2 -2
- 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-select.vue +1 -1
- package/dist/runtime/components/input/input-suggest.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-suggest.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-textarea.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +1 -1
- package/dist/runtime/components/modal/modal-report.vue +24 -1
- package/dist/runtime/components/modal/modal-secure.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-secure.vue.d.ts +1 -1
- package/dist/runtime/components/modal/suggest-edit-place/place-address.d.vue.ts +2 -2
- package/dist/runtime/components/modal/suggest-edit-place/place-address.vue.d.ts +2 -2
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +2 -0
- package/dist/runtime/components/preview/preview-blog.d.vue.ts +39 -0
- package/dist/runtime/components/preview/preview-blog.vue +203 -0
- package/dist/runtime/components/preview/preview-blog.vue.d.ts +39 -0
- package/dist/runtime/components/preview/preview-content.d.vue.ts +1 -1
- package/dist/runtime/components/preview/preview-content.vue +53 -32
- package/dist/runtime/components/preview/preview-content.vue.d.ts +1 -1
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/chart/ChartTooltipContent.d.vue.ts +1 -1
- package/dist/runtime/components/ui/chart/ChartTooltipContent.vue.d.ts +1 -1
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.d.vue.ts +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOption.d.vue.ts +4 -4
- package/dist/runtime/components/ui/native-select/NativeSelectOption.vue.d.ts +4 -4
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +4 -4
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +2 -2
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +2 -2
- package/dist/runtime/components/ui/select/SelectItem.vue +1 -1
- package/dist/runtime/components/ui/select/SelectTrigger.vue +1 -1
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +4 -4
- package/dist/runtime/components/video.vue +2 -1
- package/dist/runtime/composables/store-notification.d.ts +1 -1
- package/dist/runtime/composables/useSso.d.ts +1 -0
- package/dist/runtime/composables/useSso.js +27 -2
- package/package.json +3 -2
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Bold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-ExtraLight.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Light.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Medium.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Regular.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-SemiBold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Thin.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Bold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-BoldItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraBold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraBoldItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraLight.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraLightItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Italic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Light.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-LightItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Medium.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-MediumItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Regular.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-SemiBold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-SemiBoldItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Thin.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ThinItalic.ttf +0 -0
|
@@ -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
|
-
|
|
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;
|
|
@@ -70,9 +70,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
70
70
|
required: boolean;
|
|
71
71
|
description: string;
|
|
72
72
|
options: AutocompleteOption[] | string[] | number[];
|
|
73
|
-
limit: number;
|
|
74
73
|
labelKey: string;
|
|
75
74
|
placeholder: string;
|
|
75
|
+
limit: number;
|
|
76
76
|
disabledErrorMessage: boolean;
|
|
77
77
|
disabledBorder: boolean;
|
|
78
78
|
showCounter: boolean;
|
|
@@ -70,9 +70,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
70
70
|
required: boolean;
|
|
71
71
|
description: string;
|
|
72
72
|
options: AutocompleteOption[] | string[] | number[];
|
|
73
|
-
limit: number;
|
|
74
73
|
labelKey: string;
|
|
75
74
|
placeholder: string;
|
|
75
|
+
limit: 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;
|
|
@@ -50,8 +50,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
disabled: boolean;
|
|
51
51
|
name: string;
|
|
52
52
|
placeholder: string;
|
|
53
|
-
maxHeight: number;
|
|
54
53
|
maxlength: number;
|
|
54
|
+
maxHeight: number;
|
|
55
55
|
limitImage: number;
|
|
56
56
|
limitVideo: number;
|
|
57
57
|
disabledMedia: boolean;
|
|
@@ -50,8 +50,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
50
50
|
disabled: boolean;
|
|
51
51
|
name: string;
|
|
52
52
|
placeholder: string;
|
|
53
|
-
maxHeight: number;
|
|
54
53
|
maxlength: number;
|
|
54
|
+
maxHeight: number;
|
|
55
55
|
limitImage: number;
|
|
56
56
|
limitVideo: number;
|
|
57
57
|
disabledMedia: boolean;
|
|
@@ -46,12 +46,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
46
46
|
}>, {
|
|
47
47
|
loading: boolean;
|
|
48
48
|
disabled: boolean;
|
|
49
|
-
cancelText: string;
|
|
50
49
|
placeholder: string;
|
|
51
|
-
|
|
50
|
+
cancelText: string;
|
|
52
51
|
disabledAvatar: boolean;
|
|
53
52
|
submitText: string;
|
|
54
53
|
actionsOnFocus: boolean;
|
|
54
|
+
autofocus: boolean;
|
|
55
55
|
disabledActions: boolean;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const _default: typeof __VLS_export;
|
|
@@ -46,12 +46,12 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
46
46
|
}>, {
|
|
47
47
|
loading: boolean;
|
|
48
48
|
disabled: boolean;
|
|
49
|
-
cancelText: string;
|
|
50
49
|
placeholder: string;
|
|
51
|
-
|
|
50
|
+
cancelText: string;
|
|
52
51
|
disabledAvatar: boolean;
|
|
53
52
|
submitText: string;
|
|
54
53
|
actionsOnFocus: boolean;
|
|
54
|
+
autofocus: boolean;
|
|
55
55
|
disabledActions: boolean;
|
|
56
56
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
57
57
|
declare const _default: typeof __VLS_export;
|
|
@@ -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;
|
|
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
options: InputSelectItem[];
|
|
15
|
+
placeholder: string;
|
|
15
16
|
removable: boolean;
|
|
16
17
|
limit: number;
|
|
17
|
-
placeholder: string;
|
|
18
18
|
showCounter: boolean;
|
|
19
19
|
addLabel: string;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,9 +12,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
name: string;
|
|
13
13
|
modelValue: LocalizedNameItem[];
|
|
14
14
|
options: InputSelectItem[];
|
|
15
|
+
placeholder: string;
|
|
15
16
|
removable: boolean;
|
|
16
17
|
limit: number;
|
|
17
|
-
placeholder: string;
|
|
18
18
|
showCounter: boolean;
|
|
19
19
|
addLabel: string;
|
|
20
20
|
}, {}, {}, {}, 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;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<div class="flex items-center gap-2">
|
|
45
45
|
<Icon v-if="option.icon" :name="option.icon" class="size-4" />
|
|
46
46
|
<div v-if="option.description" class="flex flex-col gap-[2px]">
|
|
47
|
-
<span class="font-body-
|
|
47
|
+
<span class="font-body-large">{{ option.label }}</span>
|
|
48
48
|
<span class="font-body-small text-gray">{{ option.description }}</span>
|
|
49
49
|
</div>
|
|
50
50
|
<span v-else>{{ option.label }}</span>
|
|
@@ -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;
|
|
24
23
|
labelKey: string;
|
|
25
24
|
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;
|
|
24
23
|
labelKey: string;
|
|
25
24
|
placeholder: string;
|
|
25
|
+
limit: number;
|
|
26
26
|
disabledErrorMessage: boolean;
|
|
27
27
|
disabledBorder: boolean;
|
|
28
28
|
showCounter: boolean;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
27
27
|
}>, {
|
|
28
28
|
name: string;
|
|
29
29
|
state: "user" | "admin";
|
|
30
|
-
limit: number;
|
|
31
30
|
placeholder: string;
|
|
31
|
+
limit: number;
|
|
32
32
|
profileScope: "personal" | "business";
|
|
33
33
|
ignore: string[];
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
27
27
|
}>, {
|
|
28
28
|
name: string;
|
|
29
29
|
state: "user" | "admin";
|
|
30
|
-
limit: number;
|
|
31
30
|
placeholder: string;
|
|
31
|
+
limit: number;
|
|
32
32
|
profileScope: "personal" | "business";
|
|
33
33
|
ignore: string[];
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
fullHeight: boolean;
|
|
50
|
-
limit: number;
|
|
51
50
|
rows: number;
|
|
51
|
+
limit: number;
|
|
52
52
|
disabledErrorMessage: boolean;
|
|
53
53
|
disabledBorder: boolean;
|
|
54
54
|
showCounter: boolean;
|
|
@@ -47,8 +47,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
48
48
|
fullWidth: boolean;
|
|
49
49
|
fullHeight: boolean;
|
|
50
|
-
limit: number;
|
|
51
50
|
rows: number;
|
|
51
|
+
limit: number;
|
|
52
52
|
disabledErrorMessage: boolean;
|
|
53
53
|
disabledBorder: boolean;
|
|
54
54
|
showCounter: boolean;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
onComplete?: ((data?: any) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
phone: string;
|
|
18
17
|
confirmedText: string;
|
|
18
|
+
phone: string;
|
|
19
19
|
phoneLabel: string;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
14
14
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
onComplete?: ((data?: any) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
phone: string;
|
|
18
17
|
confirmedText: string;
|
|
18
|
+
phone: string;
|
|
19
19
|
phoneLabel: string;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -82,13 +82,33 @@ const chatOptions = [
|
|
|
82
82
|
{ label: "\u0E41\u0E2D\u0E1A\u0E2D\u0E49\u0E32\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25\u0E2B\u0E23\u0E37\u0E2D\u0E18\u0E38\u0E23\u0E01\u0E34\u0E08\u0E2D\u0E37\u0E48\u0E19", value: "impersonation" },
|
|
83
83
|
{ label: "\u0E2D\u0E37\u0E48\u0E19\u0E46", value: "other" }
|
|
84
84
|
];
|
|
85
|
+
const profileOptions = [
|
|
86
|
+
{ label: "\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E44\u0E21\u0E48\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07", value: "irrelevant" },
|
|
87
|
+
{ label: "\u0E2B\u0E22\u0E32\u0E1A\u0E04\u0E32\u0E22 / \u0E44\u0E21\u0E48\u0E40\u0E2B\u0E21\u0E32\u0E30\u0E2A\u0E21", value: "inappropriate" },
|
|
88
|
+
{ label: "\u0E25\u0E32\u0E21\u0E01\u0E2D\u0E19\u0E32\u0E08\u0E32\u0E23", value: "obscene" },
|
|
89
|
+
{ label: "\u0E04\u0E27\u0E32\u0E21\u0E23\u0E38\u0E19\u0E41\u0E23\u0E07", value: "violence" },
|
|
90
|
+
{ label: "\u0E02\u0E21\u0E02\u0E39\u0E48 \u0E04\u0E38\u0E01\u0E04\u0E32\u0E21", value: "harassment" },
|
|
91
|
+
{ label: "\u0E01\u0E25\u0E31\u0E48\u0E19\u0E41\u0E01\u0E25\u0E49\u0E07", value: "bullying" },
|
|
92
|
+
{ label: "\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E04\u0E27\u0E32\u0E21\u0E40\u0E01\u0E25\u0E35\u0E22\u0E14\u0E0A\u0E31\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E02\u0E31\u0E14\u0E41\u0E22\u0E49\u0E07", value: "hate_speech" },
|
|
93
|
+
{ label: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E0B\u0E49\u0E33\u0E2B\u0E23\u0E37\u0E2D\u0E2A\u0E41\u0E1B\u0E21", value: "spam" },
|
|
94
|
+
{ label: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E17\u0E47\u0E08", value: "false_information" },
|
|
95
|
+
{ label: "\u0E25\u0E30\u0E40\u0E21\u0E34\u0E14\u0E17\u0E23\u0E31\u0E1E\u0E22\u0E4C\u0E2A\u0E34\u0E19\u0E17\u0E32\u0E07\u0E1B\u0E31\u0E0D\u0E0D\u0E32", value: "intellectual_property" },
|
|
96
|
+
{ label: "\u0E25\u0E30\u0E40\u0E21\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E15\u0E01\u0E25\u0E07\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19", value: "terms_violation" },
|
|
97
|
+
{ label: "\u0E1C\u0E34\u0E14\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22", value: "illegal" },
|
|
98
|
+
{ label: "\u0E2A\u0E48\u0E07\u0E1C\u0E25\u0E01\u0E23\u0E30\u0E17\u0E1A\u0E15\u0E48\u0E2D\u0E1A\u0E38\u0E04\u0E04\u0E25", value: "personal_impact" },
|
|
99
|
+
{ label: "\u0E40\u0E02\u0E49\u0E32\u0E02\u0E48\u0E32\u0E22\u0E2B\u0E25\u0E2D\u0E01\u0E25\u0E27\u0E07", value: "scam" },
|
|
100
|
+
{ label: "\u0E2D\u0E37\u0E48\u0E19\u0E46", value: "other" }
|
|
101
|
+
];
|
|
85
102
|
const title = computed(() => {
|
|
86
103
|
if (props.state === "place-edit") return "\u0E41\u0E08\u0E49\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02\u0E2A\u0E16\u0E32\u0E19\u0E17\u0E35\u0E48\u0E19\u0E35\u0E49";
|
|
87
104
|
if (props.state === "media") return "\u0E41\u0E08\u0E49\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02\u0E2A\u0E37\u0E48\u0E2D\u0E19\u0E35\u0E49";
|
|
88
105
|
if (props.state === "chat") return "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E0A\u0E17\u0E19\u0E35\u0E49";
|
|
106
|
+
if (props.state === "profile") return "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E35\u0E49";
|
|
89
107
|
return "";
|
|
90
108
|
});
|
|
91
|
-
const placeholderText = computed(
|
|
109
|
+
const placeholderText = computed(
|
|
110
|
+
() => props.state === "profile" ? "\u0E04\u0E33\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19" : "\u0E04\u0E33\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07"
|
|
111
|
+
);
|
|
92
112
|
const modelValue = defineModel({ type: Boolean, ...{
|
|
93
113
|
default: false
|
|
94
114
|
} });
|
|
@@ -106,6 +126,9 @@ const currentOptions = computed(() => {
|
|
|
106
126
|
if (props.state === "chat") {
|
|
107
127
|
return chatOptions;
|
|
108
128
|
}
|
|
129
|
+
if (props.state === "profile") {
|
|
130
|
+
return profileOptions;
|
|
131
|
+
}
|
|
109
132
|
return [];
|
|
110
133
|
});
|
|
111
134
|
const items = computed(() => {
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
onComplete?: ((state: ModalSecureState, data?: any) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
phone: string;
|
|
16
15
|
email: string;
|
|
16
|
+
phone: string;
|
|
17
17
|
twoFaEnabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
12
12
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
13
|
onComplete?: ((state: ModalSecureState, data?: any) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
phone: string;
|
|
16
15
|
email: string;
|
|
16
|
+
phone: string;
|
|
17
17
|
twoFaEnabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,18 +13,18 @@ type __VLS_ModelProps = {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
15
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:editType": (value: string) => any;
|
|
16
17
|
"update:latLng": (value: {
|
|
17
18
|
lat: number;
|
|
18
19
|
lng: number;
|
|
19
20
|
} | null) => any;
|
|
20
|
-
"update:editType": (value: string) => any;
|
|
21
21
|
"update:addressValue": (value: InputAddressValue) => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:editType"?: ((value: string) => any) | undefined;
|
|
23
24
|
"onUpdate:latLng"?: ((value: {
|
|
24
25
|
lat: number;
|
|
25
26
|
lng: number;
|
|
26
27
|
} | null) => any) | undefined;
|
|
27
|
-
"onUpdate:editType"?: ((value: string) => any) | undefined;
|
|
28
28
|
"onUpdate:addressValue"?: ((value: InputAddressValue) => any) | undefined;
|
|
29
29
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -13,18 +13,18 @@ type __VLS_ModelProps = {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
15
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:editType": (value: string) => any;
|
|
16
17
|
"update:latLng": (value: {
|
|
17
18
|
lat: number;
|
|
18
19
|
lng: number;
|
|
19
20
|
} | null) => any;
|
|
20
|
-
"update:editType": (value: string) => any;
|
|
21
21
|
"update:addressValue": (value: InputAddressValue) => any;
|
|
22
22
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
23
|
+
"onUpdate:editType"?: ((value: string) => any) | undefined;
|
|
23
24
|
"onUpdate:latLng"?: ((value: {
|
|
24
25
|
lat: number;
|
|
25
26
|
lng: number;
|
|
26
27
|
} | null) => any) | undefined;
|
|
27
|
-
"onUpdate:editType"?: ((value: string) => any) | undefined;
|
|
28
28
|
"onUpdate:addressValue"?: ((value: InputAddressValue) => any) | undefined;
|
|
29
29
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
:size="props.size"
|
|
9
9
|
:icon-size="props.iconSize"
|
|
10
10
|
:disabled="props.disabled"
|
|
11
|
+
:trigger-class="$attrs.class"
|
|
11
12
|
/>
|
|
12
13
|
|
|
13
14
|
<ModalShare v-model="isOpenModalShare" />
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
import { computed, ref } from "vue";
|
|
28
29
|
import { useNuxtApp } from "nuxt/app";
|
|
29
30
|
import { useApi } from "../../../composables/useApi";
|
|
31
|
+
defineOptions({ inheritAttrs: false });
|
|
30
32
|
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"]);
|
|
31
33
|
const props = defineProps({
|
|
32
34
|
state: { type: String, required: false },
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type PreviewBlogState = "personal" | "office" | "business";
|
|
2
|
+
export interface PreviewBlogData {
|
|
3
|
+
id?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
content?: {
|
|
6
|
+
ops?: {
|
|
7
|
+
insert: unknown;
|
|
8
|
+
attributes?: Record<string, unknown>;
|
|
9
|
+
}[];
|
|
10
|
+
};
|
|
11
|
+
tags?: {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}[];
|
|
15
|
+
like_count?: number;
|
|
16
|
+
view_count?: number;
|
|
17
|
+
share_count?: number;
|
|
18
|
+
created_at?: string;
|
|
19
|
+
author?: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
avatar: string | null;
|
|
23
|
+
is_verified?: boolean;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
type __VLS_Props = {
|
|
27
|
+
blogId: string | number;
|
|
28
|
+
/** เลือก endpoint ตามแอปที่เปิดพรีวิว */
|
|
29
|
+
state?: PreviewBlogState;
|
|
30
|
+
};
|
|
31
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
32
|
+
exit: () => any;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
34
|
+
onExit?: (() => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
state: PreviewBlogState;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|