pukaad-ui-lib 1.450.1 → 1.450.2
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/runtime/components/card/card-blog.vue +2 -2
- package/dist/runtime/components/card/card-review.vue +2 -2
- package/dist/runtime/components/card/card-user/card-user-blog.vue +2 -2
- package/dist/runtime/components/comment.vue +3 -3
- package/dist/runtime/components/data-table.d.vue.ts +2 -2
- package/dist/runtime/components/data-table.vue.d.ts +2 -2
- 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-chat.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-chat.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-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-passport.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-passport.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-personal-card-id-selfie.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-personal-card-id-selfie.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-personal-card-id.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-personal-card-id.vue.d.ts +2 -2
- package/dist/runtime/components/input/input-radio.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-radio.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-search.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-search.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-text-field.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-text-field.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-textarea.d.vue.ts +2 -2
- package/dist/runtime/components/input/input-textarea.vue.d.ts +2 -2
- 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.vue +3 -3
- 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/table.d.vue.ts +1 -1
- package/dist/runtime/components/table.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/sheet/SheetContent.d.vue.ts +4 -4
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +4 -4
- package/dist/runtime/components/video.d.vue.ts +1 -1
- package/dist/runtime/components/video.vue.d.ts +1 -1
- package/dist/runtime/composables/store-notification.d.ts +1 -1
- package/dist/runtime/composables/useConvert.d.ts +2 -1
- package/dist/runtime/composables/useConvert.js +2 -1
- package/package.json +1 -1
- package/dist/runtime/components/data-list.d.vue.ts +0 -55
- package/dist/runtime/components/data-list.vue +0 -78
- package/dist/runtime/components/data-list.vue.d.ts +0 -55
- package/dist/runtime/components/input/input-media.d.vue.ts +0 -22
- package/dist/runtime/components/input/input-media.vue +0 -141
- package/dist/runtime/components/input/input-media.vue.d.ts +0 -22
- package/dist/runtime/components/list/list-menu.d.vue.ts +0 -93
- package/dist/runtime/components/list/list-menu.vue +0 -33
- package/dist/runtime/components/list/list-menu.vue.d.ts +0 -93
- package/dist/runtime/components/modal/modal-review-detail.d.vue.ts +0 -21
- package/dist/runtime/components/modal/modal-review-detail.vue +0 -192
- package/dist/runtime/components/modal/modal-review-detail.vue.d.ts +0 -21
- package/dist/runtime/components/profile-cover.d.vue.ts +0 -3
- package/dist/runtime/components/profile-cover.vue +0 -86
- package/dist/runtime/components/profile-cover.vue.d.ts +0 -3
- package/dist/runtime/components/tab_old.d.vue.ts +0 -48
- package/dist/runtime/components/tab_old.vue +0 -176
- package/dist/runtime/components/tab_old.vue.d.ts +0 -48
package/dist/module.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<div class="text-gray flex gap-[4px] items-center">
|
|
15
15
|
<div>•</div>
|
|
16
|
-
<div>{{
|
|
16
|
+
<div>{{ convertDateToRelativeText(displayDate) }}</div>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
<div v-if="!displayImage" class="text-body-large text-gray"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
import { useConvert } from "#pukaad-ui/runtime/composables/useConvert";
|
|
55
55
|
import { useRouter } from "vue-router";
|
|
56
56
|
import { computed, ref, watch, onMounted, onBeforeUnmount } from "vue";
|
|
57
|
-
const { convertNumber,
|
|
57
|
+
const { convertNumber, convertDateToRelativeText } = useConvert();
|
|
58
58
|
const router = useRouter();
|
|
59
59
|
const props = defineProps({
|
|
60
60
|
item: { type: Object, required: true },
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
/>
|
|
62
62
|
<div class="text-gray font-body-small">
|
|
63
63
|
{{
|
|
64
|
-
|
|
64
|
+
convertDateToRelativeText(props.item.review?.created_at ?? "")
|
|
65
65
|
}}
|
|
66
66
|
</div>
|
|
67
67
|
</div>
|
|
@@ -146,7 +146,7 @@ import { useNuxtApp } from "nuxt/app";
|
|
|
146
146
|
import { useConvert } from "../../composables/useConvert";
|
|
147
147
|
import { useApi } from "../../composables/useApi";
|
|
148
148
|
const router = useRouter();
|
|
149
|
-
const { convertNumber,
|
|
149
|
+
const { convertNumber, convertDateToRelativeText } = useConvert();
|
|
150
150
|
const api = useApi();
|
|
151
151
|
const nuxtApp = useNuxtApp();
|
|
152
152
|
const $toast = nuxtApp.$toast;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
<div class="text-gray font-body-small flex gap-[4px] items-center">
|
|
25
25
|
<div>
|
|
26
|
-
{{
|
|
26
|
+
{{ convertDateToRelativeText(props.item.create_at) }}
|
|
27
27
|
</div>
|
|
28
28
|
<div>•</div>
|
|
29
29
|
<div>{{ convertNumber(props.item.view_count) }} วิว</div>
|
|
@@ -91,7 +91,7 @@ import { ref, watch } from "vue";
|
|
|
91
91
|
import { useNuxtApp } from "nuxt/app";
|
|
92
92
|
import { useConvert } from "#pukaad-ui/runtime/composables/useConvert";
|
|
93
93
|
import { useApi } from "../../../composables/useApi";
|
|
94
|
-
const { convertNumber,
|
|
94
|
+
const { convertNumber, convertDateToRelativeText } = useConvert();
|
|
95
95
|
const { $toast, $alert } = useNuxtApp();
|
|
96
96
|
const api = useApi();
|
|
97
97
|
const props = defineProps({
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
<div class="pl-[38px] flex gap-[16px] text-gray">
|
|
53
53
|
<div class="font-body-large">
|
|
54
|
-
{{
|
|
54
|
+
{{ convertDateToRelativeText(cmt.created_at) }}
|
|
55
55
|
</div>
|
|
56
56
|
<div class="flex gap-[4px] items-center cursor-pointer" @click="onToggleLikeComment(cmt)">
|
|
57
57
|
<Icon :name="
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
</div>
|
|
132
132
|
<div class="pl-[38px] flex gap-[16px] text-gray">
|
|
133
133
|
<div class="font-body-large">
|
|
134
|
-
{{
|
|
134
|
+
{{ convertDateToRelativeText(reply.created_at) }}
|
|
135
135
|
</div>
|
|
136
136
|
<div class="flex gap-[4px] items-center cursor-pointer" @click="onToggleLikeReplyComment(reply)">
|
|
137
137
|
<Icon :name="
|
|
@@ -194,7 +194,7 @@ const resolvedCommentCount = computed(
|
|
|
194
194
|
() => props.fetchFn ? internalCommentCount.value : props.commentCount ?? 0
|
|
195
195
|
);
|
|
196
196
|
const router = useRouter();
|
|
197
|
-
const {
|
|
197
|
+
const { convertDateToRelativeText } = useConvert();
|
|
198
198
|
const openedComments = ref([]);
|
|
199
199
|
const expandedContentIds = ref([]);
|
|
200
200
|
const truncatedTexts = ref({});
|
|
@@ -74,13 +74,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
74
74
|
}>, {
|
|
75
75
|
loading: boolean;
|
|
76
76
|
items: Record<string, any>[];
|
|
77
|
-
disabledPagination: boolean;
|
|
78
|
-
totalPage: number;
|
|
79
77
|
itemHeader: TableHeader[];
|
|
80
78
|
headerAlignment: TableHeaderAlignment;
|
|
81
79
|
cellAlignment: TableHeaderAlignment;
|
|
82
80
|
disabledHeader: boolean;
|
|
83
81
|
disabledSort: boolean;
|
|
82
|
+
disabledPagination: boolean;
|
|
83
|
+
totalPage: number;
|
|
84
84
|
selectable: boolean;
|
|
85
85
|
selectKey: string;
|
|
86
86
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -74,13 +74,13 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
74
74
|
}>, {
|
|
75
75
|
loading: boolean;
|
|
76
76
|
items: Record<string, any>[];
|
|
77
|
-
disabledPagination: boolean;
|
|
78
|
-
totalPage: number;
|
|
79
77
|
itemHeader: TableHeader[];
|
|
80
78
|
headerAlignment: TableHeaderAlignment;
|
|
81
79
|
cellAlignment: TableHeaderAlignment;
|
|
82
80
|
disabledHeader: boolean;
|
|
83
81
|
disabledSort: boolean;
|
|
82
|
+
disabledPagination: boolean;
|
|
83
|
+
totalPage: number;
|
|
84
84
|
selectable: boolean;
|
|
85
85
|
selectKey: string;
|
|
86
86
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -93,8 +93,8 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
|
|
|
93
93
|
"onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
95
|
src: string;
|
|
96
|
-
fullHeight: boolean;
|
|
97
96
|
fullWidth: boolean;
|
|
97
|
+
fullHeight: boolean;
|
|
98
98
|
fit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
99
99
|
poster: string;
|
|
100
100
|
autoplay: boolean;
|
|
@@ -93,8 +93,8 @@ declare const __VLS_base: import("vue").DefineComponent<DisplayVideoProps, {
|
|
|
93
93
|
"onPlay-click"?: ((payload: DisplayVideoAction) => any) | undefined;
|
|
94
94
|
}>, {
|
|
95
95
|
src: string;
|
|
96
|
-
fullHeight: boolean;
|
|
97
96
|
fullWidth: boolean;
|
|
97
|
+
fullHeight: boolean;
|
|
98
98
|
fit: "cover" | "contain" | "fill" | "none" | "scale-down";
|
|
99
99
|
poster: string;
|
|
100
100
|
autoplay: boolean;
|
|
@@ -47,9 +47,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
}>, {
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
name: string;
|
|
50
|
-
maxHeight: number;
|
|
51
50
|
placeholder: string;
|
|
52
51
|
maxlength: number;
|
|
52
|
+
maxHeight: number;
|
|
53
53
|
limitImage: number;
|
|
54
54
|
limitVideo: number;
|
|
55
55
|
disabledMedia: boolean;
|
|
@@ -47,9 +47,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
}>, {
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
name: string;
|
|
50
|
-
maxHeight: number;
|
|
51
50
|
placeholder: string;
|
|
52
51
|
maxlength: number;
|
|
52
|
+
maxHeight: number;
|
|
53
53
|
limitImage: number;
|
|
54
54
|
limitVideo: number;
|
|
55
55
|
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;
|
|
50
|
+
cancelText: string;
|
|
51
|
+
autofocus: boolean;
|
|
51
52
|
disabledAvatar: boolean;
|
|
52
53
|
submitText: string;
|
|
53
54
|
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;
|
|
50
|
+
cancelText: string;
|
|
51
|
+
autofocus: boolean;
|
|
51
52
|
disabledAvatar: boolean;
|
|
52
53
|
submitText: string;
|
|
53
54
|
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;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
34
34
|
width: number | string;
|
|
35
35
|
height: number | string;
|
|
36
36
|
name: string;
|
|
37
|
-
fullHeight: boolean;
|
|
38
37
|
fullWidth: boolean;
|
|
38
|
+
fullHeight: boolean;
|
|
39
39
|
limit: number;
|
|
40
40
|
disabledErrorMessage: boolean;
|
|
41
41
|
accept: string;
|
|
@@ -34,8 +34,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
34
34
|
width: number | string;
|
|
35
35
|
height: number | string;
|
|
36
36
|
name: string;
|
|
37
|
-
fullHeight: boolean;
|
|
38
37
|
fullWidth: boolean;
|
|
38
|
+
fullHeight: boolean;
|
|
39
39
|
limit: number;
|
|
40
40
|
disabledErrorMessage: boolean;
|
|
41
41
|
accept: string;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
14
14
|
options: InputSelectItem[];
|
|
15
15
|
placeholder: string;
|
|
16
16
|
limit: number;
|
|
17
|
+
removable: boolean;
|
|
17
18
|
showCounter: boolean;
|
|
18
19
|
addLabel: string;
|
|
19
|
-
removable: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
export default _default;
|
|
@@ -14,9 +14,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
14
14
|
options: InputSelectItem[];
|
|
15
15
|
placeholder: string;
|
|
16
16
|
limit: number;
|
|
17
|
+
removable: boolean;
|
|
17
18
|
showCounter: boolean;
|
|
18
19
|
addLabel: string;
|
|
19
|
-
removable: boolean;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
export default _default;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
complete: (file: File) => any;
|
|
15
14
|
remove: () => any;
|
|
15
|
+
complete: (file: File) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onComplete?: ((file: File) => any) | undefined;
|
|
19
18
|
onRemove?: (() => any) | undefined;
|
|
19
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
complete: (file: File) => any;
|
|
15
14
|
remove: () => any;
|
|
15
|
+
complete: (file: File) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onComplete?: ((file: File) => any) | undefined;
|
|
19
18
|
onRemove?: (() => any) | undefined;
|
|
19
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
complete: (file: File) => any;
|
|
15
14
|
remove: () => any;
|
|
15
|
+
complete: (file: File) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onComplete?: ((file: File) => any) | undefined;
|
|
19
18
|
onRemove?: (() => any) | undefined;
|
|
19
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
complete: (file: File) => any;
|
|
15
14
|
remove: () => any;
|
|
15
|
+
complete: (file: File) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onComplete?: ((file: File) => any) | undefined;
|
|
19
18
|
onRemove?: (() => any) | undefined;
|
|
19
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
complete: (file: File) => any;
|
|
15
14
|
remove: () => any;
|
|
15
|
+
complete: (file: File) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onComplete?: ((file: File) => any) | undefined;
|
|
19
18
|
onRemove?: (() => any) | undefined;
|
|
19
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -11,12 +11,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: File | null) => any;
|
|
13
13
|
} & {
|
|
14
|
-
complete: (file: File) => any;
|
|
15
14
|
remove: () => any;
|
|
15
|
+
complete: (file: File) => any;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
17
|
"onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
|
|
18
|
-
onComplete?: ((file: File) => any) | undefined;
|
|
19
18
|
onRemove?: (() => any) | undefined;
|
|
19
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
name: string;
|
|
22
22
|
disabledErrorMessage: boolean;
|
|
@@ -35,11 +35,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
items: import("#pukaad-ui/types/components/input/input-radio").InputRadioItem[] | string[] | number[];
|
|
36
36
|
item: string | number;
|
|
37
37
|
name: string;
|
|
38
|
-
columnGap: number | string;
|
|
39
38
|
layout: "vertical" | "horizontal";
|
|
40
39
|
disabledErrorMessage: boolean;
|
|
41
40
|
labelPosition: "left" | "right";
|
|
42
41
|
layoutGap: number | string;
|
|
42
|
+
columnGap: number | string;
|
|
43
43
|
standalone: boolean;
|
|
44
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -35,11 +35,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
35
35
|
items: import("#pukaad-ui/types/components/input/input-radio").InputRadioItem[] | string[] | number[];
|
|
36
36
|
item: string | number;
|
|
37
37
|
name: string;
|
|
38
|
-
columnGap: number | string;
|
|
39
38
|
layout: "vertical" | "horizontal";
|
|
40
39
|
disabledErrorMessage: boolean;
|
|
41
40
|
labelPosition: "left" | "right";
|
|
42
41
|
layoutGap: number | string;
|
|
42
|
+
columnGap: number | string;
|
|
43
43
|
standalone: boolean;
|
|
44
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -37,10 +37,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
37
37
|
name: string;
|
|
38
38
|
required: boolean;
|
|
39
39
|
placeholder: string;
|
|
40
|
+
readonly: boolean;
|
|
40
41
|
disabledErrorMessage: boolean;
|
|
41
42
|
iconPosition: import("#pukaad-ui/types/components/input/input-search").InputSearchIconPosition;
|
|
42
43
|
disabledIcon: boolean;
|
|
43
|
-
readonly: boolean;
|
|
44
44
|
roundedFull: boolean;
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
46
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -37,10 +37,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
37
37
|
name: string;
|
|
38
38
|
required: boolean;
|
|
39
39
|
placeholder: string;
|
|
40
|
+
readonly: boolean;
|
|
40
41
|
disabledErrorMessage: boolean;
|
|
41
42
|
iconPosition: import("#pukaad-ui/types/components/input/input-search").InputSearchIconPosition;
|
|
42
43
|
disabledIcon: boolean;
|
|
43
|
-
readonly: boolean;
|
|
44
44
|
roundedFull: boolean;
|
|
45
45
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
46
46
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -60,10 +60,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
62
|
limit: number;
|
|
63
|
+
readonly: boolean;
|
|
63
64
|
disabledErrorMessage: boolean;
|
|
64
65
|
disabledBorder: boolean;
|
|
65
66
|
showCounter: boolean;
|
|
66
|
-
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
69
|
declare const _default: typeof __VLS_export;
|
|
@@ -60,10 +60,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
60
60
|
name: string;
|
|
61
61
|
required: boolean;
|
|
62
62
|
limit: number;
|
|
63
|
+
readonly: boolean;
|
|
63
64
|
disabledErrorMessage: boolean;
|
|
64
65
|
disabledBorder: boolean;
|
|
65
66
|
showCounter: boolean;
|
|
66
|
-
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
69
69
|
declare const _default: typeof __VLS_export;
|
|
@@ -44,14 +44,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
44
44
|
name: string;
|
|
45
45
|
required: boolean;
|
|
46
46
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
47
|
-
fullHeight: boolean;
|
|
48
47
|
fullWidth: boolean;
|
|
48
|
+
fullHeight: boolean;
|
|
49
49
|
rows: number;
|
|
50
50
|
limit: number;
|
|
51
|
+
readonly: boolean;
|
|
51
52
|
disabledErrorMessage: boolean;
|
|
52
53
|
disabledBorder: boolean;
|
|
53
54
|
showCounter: boolean;
|
|
54
|
-
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -44,14 +44,14 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
44
44
|
name: string;
|
|
45
45
|
required: boolean;
|
|
46
46
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
47
|
-
fullHeight: boolean;
|
|
48
47
|
fullWidth: boolean;
|
|
48
|
+
fullHeight: boolean;
|
|
49
49
|
rows: number;
|
|
50
50
|
limit: number;
|
|
51
|
+
readonly: boolean;
|
|
51
52
|
disabledErrorMessage: boolean;
|
|
52
53
|
disabledBorder: boolean;
|
|
53
54
|
showCounter: boolean;
|
|
54
|
-
readonly: boolean;
|
|
55
55
|
heightScroll: boolean;
|
|
56
56
|
spaceToComma: boolean;
|
|
57
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
23
23
|
required: boolean;
|
|
24
24
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
25
|
limit: number;
|
|
26
|
-
showCounter: boolean;
|
|
27
26
|
removable: boolean;
|
|
27
|
+
showCounter: boolean;
|
|
28
28
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
29
29
|
resetOnTypeChange: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
23
23
|
required: boolean;
|
|
24
24
|
options: import("../../../types/components/input/input-select.js").InputSelectItem[];
|
|
25
25
|
limit: number;
|
|
26
|
-
showCounter: boolean;
|
|
27
26
|
removable: boolean;
|
|
27
|
+
showCounter: boolean;
|
|
28
28
|
selectClass: import("vue").HTMLAttributes["class"];
|
|
29
29
|
resetOnTypeChange: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
/>
|
|
92
92
|
<span class="font-body-small opacity-75">
|
|
93
93
|
{{
|
|
94
|
-
|
|
94
|
+
convertDateToRelativeText(
|
|
95
95
|
props.review.review.created_at ?? ""
|
|
96
96
|
)
|
|
97
97
|
}}
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
/>
|
|
149
149
|
<span class="font-body-small opacity-75">
|
|
150
150
|
{{
|
|
151
|
-
|
|
151
|
+
convertDateToRelativeText(
|
|
152
152
|
props.review.review.created_at ?? ""
|
|
153
153
|
)
|
|
154
154
|
}}
|
|
@@ -181,7 +181,7 @@ import { ref, computed } from "vue";
|
|
|
181
181
|
import { useNuxtApp } from "nuxt/app";
|
|
182
182
|
import { useConvert } from "../../composables/useConvert";
|
|
183
183
|
import { useApi } from "../../composables/useApi";
|
|
184
|
-
const { convertNumber,
|
|
184
|
+
const { convertNumber, convertDateToRelativeText } = useConvert();
|
|
185
185
|
const api = useApi();
|
|
186
186
|
const { $alert } = useNuxtApp();
|
|
187
187
|
const props = defineProps({
|
|
@@ -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
|
-
email: string;
|
|
16
15
|
phone: string;
|
|
16
|
+
email: 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
|
-
email: string;
|
|
16
15
|
phone: string;
|
|
16
|
+
email: string;
|
|
17
17
|
twoFaEnabled: boolean;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -40,11 +40,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
40
40
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
42
|
items: Record<string, any>[];
|
|
43
|
-
totalPage: number;
|
|
44
43
|
itemHeader: TableHeader[];
|
|
45
44
|
headerAlignment: "start" | "center" | "end";
|
|
46
45
|
disabledHeader: false;
|
|
47
46
|
disabledSort: false;
|
|
47
|
+
totalPage: number;
|
|
48
48
|
paginationVisible: number;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -40,11 +40,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
40
40
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
42
|
items: Record<string, any>[];
|
|
43
|
-
totalPage: number;
|
|
44
43
|
itemHeader: TableHeader[];
|
|
45
44
|
headerAlignment: "start" | "center" | "end";
|
|
46
45
|
disabledHeader: false;
|
|
47
46
|
disabledSort: false;
|
|
47
|
+
totalPage: number;
|
|
48
48
|
paginationVisible: number;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -8,19 +8,19 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
openAutoFocus: (event: Event) => any;
|
|
12
|
-
closeAutoFocus: (event: Event) => any;
|
|
13
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
14
12
|
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
15
13
|
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
16
14
|
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
15
|
+
openAutoFocus: (event: Event) => any;
|
|
16
|
+
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
18
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
19
|
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
22
20
|
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
23
21
|
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
22
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -8,19 +8,19 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
default?: (props: typeof __VLS_19) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
openAutoFocus: (event: Event) => any;
|
|
12
|
-
closeAutoFocus: (event: Event) => any;
|
|
13
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
14
12
|
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
15
13
|
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
16
14
|
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
15
|
+
openAutoFocus: (event: Event) => any;
|
|
16
|
+
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
-
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
19
|
-
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
20
18
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
21
19
|
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
22
20
|
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
23
21
|
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
22
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
@@ -18,8 +18,8 @@ type __VLS_Slots = {} & {
|
|
|
18
18
|
default?: (props: typeof __VLS_1) => any;
|
|
19
19
|
};
|
|
20
20
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
-
payload: Record<string, any>;
|
|
22
21
|
config: ChartConfig;
|
|
22
|
+
payload: Record<string, any>;
|
|
23
23
|
indicator: "line" | "dot" | "dashed";
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|