pukaad-ui-lib 1.93.0 → 1.95.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 +4 -9
- package/dist/runtime/components/avatar.d.vue.ts +0 -4
- package/dist/runtime/components/avatar.vue +1 -10
- package/dist/runtime/components/avatar.vue.d.ts +0 -4
- package/dist/runtime/components/button.d.vue.ts +1 -1
- package/dist/runtime/components/button.vue.d.ts +1 -1
- package/dist/runtime/components/dialog/dialog-phone-OTP.d.vue.ts +1 -1
- package/dist/runtime/components/dialog/dialog-phone-OTP.vue.d.ts +1 -1
- package/dist/runtime/components/divider.d.vue.ts +1 -1
- package/dist/runtime/components/divider.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-slider.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-slider.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-review-detail.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-review-detail.vue.d.ts +1 -1
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.d.vue.ts +1 -1
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.vue.d.ts +1 -1
- package/dist/runtime/components/ui/button/index.d.ts +1 -1
- package/dist/runtime/components/ui/carousel/CarouselNext.d.vue.ts +1 -1
- package/dist/runtime/components/ui/carousel/CarouselNext.vue.d.ts +1 -1
- package/dist/runtime/components/ui/carousel/CarouselPrevious.d.vue.ts +1 -1
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue.d.ts +1 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +1 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +1 -1
- package/dist/runtime/composables/useConvert.d.ts +0 -20
- package/dist/runtime/composables/useConvert.js +0 -42
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -118,17 +118,12 @@ const module$1 = defineNuxtModule({
|
|
|
118
118
|
const generateImportDayJs = () => {
|
|
119
119
|
return `
|
|
120
120
|
import dayjs from "dayjs";
|
|
121
|
-
import
|
|
122
|
-
import
|
|
123
|
-
import
|
|
124
|
-
import
|
|
121
|
+
import buddhistEra from "dayjs/plugin/buddhistEra";
|
|
122
|
+
import minMax from "dayjs/plugin/minMax";
|
|
123
|
+
import updateLocale from "dayjs/plugin/updateLocale";
|
|
124
|
+
import duration from "dayjs/plugin/duration";
|
|
125
125
|
import "dayjs/locale/th";
|
|
126
126
|
|
|
127
|
-
const buddhistEra = buddhistEraPkg.default || buddhistEraPkg;
|
|
128
|
-
const minMax = minMaxPkg.default || minMaxPkg;
|
|
129
|
-
const updateLocale = updateLocalePkg.default || updateLocalePkg;
|
|
130
|
-
const duration = durationPkg.default || durationPkg;
|
|
131
|
-
|
|
132
127
|
dayjs.extend(updateLocale);
|
|
133
128
|
dayjs.extend(buddhistEra);
|
|
134
129
|
dayjs.extend(minMax);
|
|
@@ -4,8 +4,6 @@ interface Props {
|
|
|
4
4
|
src?: string;
|
|
5
5
|
alt?: string;
|
|
6
6
|
class?: HTMLAttributes["class"];
|
|
7
|
-
showStatus?: boolean;
|
|
8
|
-
online?: boolean;
|
|
9
7
|
}
|
|
10
8
|
declare var __VLS_19: {};
|
|
11
9
|
type __VLS_Slots = {} & {
|
|
@@ -13,8 +11,6 @@ type __VLS_Slots = {} & {
|
|
|
13
11
|
};
|
|
14
12
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
13
|
size: number | string;
|
|
16
|
-
showStatus: boolean;
|
|
17
|
-
online: boolean;
|
|
18
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -6,9 +6,7 @@ const props = defineProps({
|
|
|
6
6
|
size: { type: [Number, String], required: false, default: 40 },
|
|
7
7
|
src: { type: String, required: false },
|
|
8
8
|
alt: { type: String, required: false },
|
|
9
|
-
class: { type: null, required: false }
|
|
10
|
-
showStatus: { type: Boolean, required: false, default: false },
|
|
11
|
-
online: { type: Boolean, required: false, default: false }
|
|
9
|
+
class: { type: null, required: false }
|
|
12
10
|
});
|
|
13
11
|
const sizeStyle = computed(() => {
|
|
14
12
|
let size;
|
|
@@ -44,12 +42,5 @@ const sizeStyle = computed(() => {
|
|
|
44
42
|
>
|
|
45
43
|
<slot name="fallback"> </slot>
|
|
46
44
|
</ShadAvatarFallback>
|
|
47
|
-
|
|
48
|
-
<!-- Online Status Dot -->
|
|
49
|
-
<span
|
|
50
|
-
v-if="showStatus"
|
|
51
|
-
class="absolute bottom-0 right-0 w-[12px] h-[12px] rounded-full border-2 border-white"
|
|
52
|
-
:class="online ? 'bg-green-500' : 'bg-gray-300'"
|
|
53
|
-
/>
|
|
54
45
|
</ShadAvatar>
|
|
55
46
|
</template>
|
|
@@ -4,8 +4,6 @@ interface Props {
|
|
|
4
4
|
src?: string;
|
|
5
5
|
alt?: string;
|
|
6
6
|
class?: HTMLAttributes["class"];
|
|
7
|
-
showStatus?: boolean;
|
|
8
|
-
online?: boolean;
|
|
9
7
|
}
|
|
10
8
|
declare var __VLS_19: {};
|
|
11
9
|
type __VLS_Slots = {} & {
|
|
@@ -13,8 +11,6 @@ type __VLS_Slots = {} & {
|
|
|
13
11
|
};
|
|
14
12
|
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
15
13
|
size: number | string;
|
|
16
|
-
showStatus: boolean;
|
|
17
|
-
online: boolean;
|
|
18
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,10 +14,10 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
default?: (props: typeof __VLS_8) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
17
|
-
circle: boolean;
|
|
18
17
|
type: ButtonType;
|
|
19
18
|
variant: ButtonVariant;
|
|
20
19
|
color: ButtonColor;
|
|
20
|
+
circle: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,10 +14,10 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
default?: (props: typeof __VLS_8) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
|
|
17
|
-
circle: boolean;
|
|
18
17
|
type: ButtonType;
|
|
19
18
|
variant: ButtonVariant;
|
|
20
19
|
color: ButtonColor;
|
|
20
|
+
circle: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
14
14
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
15
|
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
confirmedText: string;
|
|
18
17
|
phone: string;
|
|
18
|
+
confirmedText: 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
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
15
|
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
confirmedText: string;
|
|
18
17
|
phone: string;
|
|
18
|
+
confirmedText: string;
|
|
19
19
|
phoneLabel: string;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { DividerProps, DividerColor } from "@/types/components/divider";
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
3
3
|
size: number | string;
|
|
4
|
-
style: import("@/types/components/divider").DividerStyle;
|
|
5
4
|
color: DividerColor;
|
|
6
5
|
height: number | string;
|
|
6
|
+
style: import("@/types/components/divider").DividerStyle;
|
|
7
7
|
alignment: import("@/types/components/divider").DividerAlignment;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { DividerProps, DividerColor } from "@/types/components/divider";
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<DividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DividerProps> & Readonly<{}>, {
|
|
3
3
|
size: number | string;
|
|
4
|
-
style: import("@/types/components/divider").DividerStyle;
|
|
5
4
|
color: DividerColor;
|
|
6
5
|
height: number | string;
|
|
6
|
+
style: import("@/types/components/divider").DividerStyle;
|
|
7
7
|
alignment: import("@/types/components/divider").DividerAlignment;
|
|
8
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
9
|
declare const _default: typeof __VLS_export;
|
|
@@ -20,11 +20,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
20
20
|
onSelect?: ((files: File[]) => any) | undefined;
|
|
21
21
|
"onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
label: string;
|
|
24
23
|
width: number | string;
|
|
25
24
|
height: number | string;
|
|
26
25
|
fullWidth: boolean;
|
|
27
26
|
fullHeight: boolean;
|
|
27
|
+
label: string;
|
|
28
28
|
name: string;
|
|
29
29
|
limit: number;
|
|
30
30
|
accept: string;
|
|
@@ -20,11 +20,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
20
20
|
onSelect?: ((files: File[]) => any) | undefined;
|
|
21
21
|
"onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
label: string;
|
|
24
23
|
width: number | string;
|
|
25
24
|
height: number | string;
|
|
26
25
|
fullWidth: boolean;
|
|
27
26
|
fullHeight: boolean;
|
|
27
|
+
label: string;
|
|
28
28
|
name: string;
|
|
29
29
|
limit: number;
|
|
30
30
|
accept: string;
|
|
@@ -9,9 +9,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
11
11
|
}>, {
|
|
12
|
-
label: string;
|
|
13
12
|
color: InputSliderColor;
|
|
14
13
|
fullWidth: boolean;
|
|
14
|
+
label: string;
|
|
15
15
|
step: number;
|
|
16
16
|
max: number;
|
|
17
17
|
min: number;
|
|
@@ -9,9 +9,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
10
|
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
11
11
|
}>, {
|
|
12
|
-
label: string;
|
|
13
12
|
color: InputSliderColor;
|
|
14
13
|
fullWidth: boolean;
|
|
14
|
+
label: string;
|
|
15
15
|
step: number;
|
|
16
16
|
max: number;
|
|
17
17
|
min: number;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
14
14
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
15
|
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
confirmedText: string;
|
|
18
17
|
phone: string;
|
|
18
|
+
confirmedText: 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
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
15
|
onClose?: (() => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
|
-
confirmedText: string;
|
|
18
17
|
phone: string;
|
|
18
|
+
confirmedText: string;
|
|
19
19
|
phoneLabel: string;
|
|
20
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,9 +11,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
11
11
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
12
|
"onToggle-like"?: ((reviewId: string, liked: boolean) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
title: string;
|
|
15
14
|
items: string[];
|
|
16
15
|
selectIndex: number;
|
|
16
|
+
title: string;
|
|
17
17
|
isProfile: boolean;
|
|
18
18
|
review: import("../../../types/components/card/card-review.js").CardReviewProps;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -11,9 +11,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
11
11
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
12
|
"onToggle-like"?: ((reviewId: string, liked: boolean) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
|
-
title: string;
|
|
15
14
|
items: string[];
|
|
16
15
|
selectIndex: number;
|
|
16
|
+
title: string;
|
|
17
17
|
isProfile: boolean;
|
|
18
18
|
review: import("../../../types/components/card/card-review.js").CardReviewProps;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PickerOptionMenuProps, PickerOptionMenuItem } from "@/types/components/picker/picker-option-menu/picker-option-menu";
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PickerOptionMenuProps> & Readonly<{}>, {
|
|
3
|
-
circle: boolean;
|
|
4
3
|
variant: ButtonVariant;
|
|
4
|
+
circle: boolean;
|
|
5
5
|
items: PickerOptionMenuItem[];
|
|
6
6
|
horizontal: boolean;
|
|
7
7
|
disabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PickerOptionMenuProps, PickerOptionMenuItem } from "@/types/components/picker/picker-option-menu/picker-option-menu";
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PickerOptionMenuProps> & Readonly<{}>, {
|
|
3
|
-
circle: boolean;
|
|
4
3
|
variant: ButtonVariant;
|
|
4
|
+
circle: boolean;
|
|
5
5
|
items: PickerOptionMenuItem[];
|
|
6
6
|
horizontal: boolean;
|
|
7
7
|
disabled: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { VariantProps } from "class-variance-authority";
|
|
2
2
|
export { default as Button } from "./Button.vue.js";
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "
|
|
4
|
+
variant?: "link" | "default" | "outline" | "ghost" | "text" | "icon" | null | undefined;
|
|
5
5
|
color?: "default" | "primary" | "secondary" | "destructive" | null | undefined;
|
|
6
6
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
12
|
size: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
13
|
-
variant: "link" | "default" | "
|
|
13
|
+
variant: "link" | "default" | "outline" | "ghost" | "text" | "icon" | null;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
12
|
size: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
13
|
-
variant: "link" | "default" | "
|
|
13
|
+
variant: "link" | "default" | "outline" | "ghost" | "text" | "icon" | null;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
12
|
size: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
13
|
-
variant: "link" | "default" | "
|
|
13
|
+
variant: "link" | "default" | "outline" | "ghost" | "text" | "icon" | null;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
12
|
size: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null;
|
|
13
|
-
variant: "link" | "default" | "
|
|
13
|
+
variant: "link" | "default" | "outline" | "ghost" | "text" | "icon" | null;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,7 +5,7 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<InputGroupButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupButtonProps> & Readonly<{}>, {
|
|
7
7
|
size: "sm" | "icon-sm" | "icon-xs" | "xs" | null;
|
|
8
|
-
variant: "link" | "default" | "
|
|
8
|
+
variant: "link" | "default" | "outline" | "ghost" | "text" | "icon" | null;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,7 +5,7 @@ type __VLS_Slots = {} & {
|
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import("vue").DefineComponent<InputGroupButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupButtonProps> & Readonly<{}>, {
|
|
7
7
|
size: "sm" | "icon-sm" | "icon-xs" | "xs" | null;
|
|
8
|
-
variant: "link" | "default" | "
|
|
8
|
+
variant: "link" | "default" | "outline" | "ghost" | "text" | "icon" | null;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,24 +1,4 @@
|
|
|
1
1
|
export declare class Convert {
|
|
2
|
-
/**
|
|
3
|
-
* Convert date to Thai Buddhist Era
|
|
4
|
-
* @example convertDate("2026-01-20") => "20 มกราคม 2569"
|
|
5
|
-
*/
|
|
6
|
-
convertDate(date: string | Date | null | undefined): string;
|
|
7
|
-
/**
|
|
8
|
-
* Convert datetime to Thai Buddhist Era with comma separator
|
|
9
|
-
* @example convertDateTime("2026-01-20T13:30:00") => "20 มกราคม 2569, 13:30 น."
|
|
10
|
-
*/
|
|
11
|
-
convertDateTime(date: string | Date | null | undefined): string;
|
|
12
|
-
/**
|
|
13
|
-
* Convert date to short format
|
|
14
|
-
* @example convertShortDate("2026-01-20") => "20/01/69"
|
|
15
|
-
*/
|
|
16
|
-
convertShortDate(date: string | Date | null | undefined): string;
|
|
17
|
-
/**
|
|
18
|
-
* Convert time only
|
|
19
|
-
* @example convertTime("2026-01-20T13:30:00") => "13:30 น."
|
|
20
|
-
*/
|
|
21
|
-
convertTime(date: string | Date | null | undefined): string;
|
|
22
2
|
/**
|
|
23
3
|
* Convert number to Thai format
|
|
24
4
|
* @example convertNumber(1500000) => "1.5 ล้าน"
|
|
@@ -1,46 +1,4 @@
|
|
|
1
|
-
import dayjs from "#dayjs";
|
|
2
|
-
const djs = dayjs;
|
|
3
1
|
export class Convert {
|
|
4
|
-
/**
|
|
5
|
-
* Convert date to Thai Buddhist Era
|
|
6
|
-
* @example convertDate("2026-01-20") => "20 มกราคม 2569"
|
|
7
|
-
*/
|
|
8
|
-
convertDate(date) {
|
|
9
|
-
if (!date) return "-";
|
|
10
|
-
const d = djs(date);
|
|
11
|
-
if (!d.isValid()) return "-";
|
|
12
|
-
return d.format("D MMMM BBBB");
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Convert datetime to Thai Buddhist Era with comma separator
|
|
16
|
-
* @example convertDateTime("2026-01-20T13:30:00") => "20 มกราคม 2569, 13:30 น."
|
|
17
|
-
*/
|
|
18
|
-
convertDateTime(date) {
|
|
19
|
-
if (!date) return "-";
|
|
20
|
-
const d = djs(date);
|
|
21
|
-
if (!d.isValid()) return "-";
|
|
22
|
-
return d.format("D MMMM BBBB, HH:mm \u0E19.");
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Convert date to short format
|
|
26
|
-
* @example convertShortDate("2026-01-20") => "20/01/69"
|
|
27
|
-
*/
|
|
28
|
-
convertShortDate(date) {
|
|
29
|
-
if (!date) return "-";
|
|
30
|
-
const d = djs(date);
|
|
31
|
-
if (!d.isValid()) return "-";
|
|
32
|
-
return d.format("DD/MM/BB");
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Convert time only
|
|
36
|
-
* @example convertTime("2026-01-20T13:30:00") => "13:30 น."
|
|
37
|
-
*/
|
|
38
|
-
convertTime(date) {
|
|
39
|
-
if (!date) return "-";
|
|
40
|
-
const d = djs(date);
|
|
41
|
-
if (!d.isValid()) return "-";
|
|
42
|
-
return d.format("HH:mm \u0E19.");
|
|
43
|
-
}
|
|
44
2
|
/**
|
|
45
3
|
* Convert number to Thai format
|
|
46
4
|
* @example convertNumber(1500000) => "1.5 ล้าน"
|