pukaad-ui-lib 1.98.0 → 1.100.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 +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/image/image-cropper.d.vue.ts +2 -2
- package/dist/runtime/components/image/image-cropper.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-date-picker.vue +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-tag.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-tag.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 +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/composables/useConvert.js +1 -1
- package/dist/runtime/plugins/dayjs.d.ts +1 -2
- package/dist/runtime/plugins/dayjs.js +1 -11
- package/dist/runtime/utils/dayjs.d.ts +3 -0
- package/dist/runtime/utils/dayjs.js +12 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -86,7 +86,7 @@ const module$1 = defineNuxtModule({
|
|
|
86
86
|
config.plugins.push(tailwindcss());
|
|
87
87
|
config.optimizeDeps = config.optimizeDeps || {};
|
|
88
88
|
config.optimizeDeps.include = config.optimizeDeps.include || [];
|
|
89
|
-
config.optimizeDeps.include.push("quill", "quill-delta");
|
|
89
|
+
config.optimizeDeps.include.push("quill", "quill-delta", "dayjs");
|
|
90
90
|
});
|
|
91
91
|
_nuxt.options.runtimeConfig.public.BASE_URL_API = process.env.BASE_URL_API ?? "";
|
|
92
92
|
_nuxt.options.runtimeConfig.public.RECAPTCHA_KEY = process.env.RECAPTCHA_KEY ?? "";
|
|
@@ -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
|
-
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
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
15
|
onClose?: (() => 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;
|
|
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
64
64
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
|
+
background: boolean;
|
|
68
|
+
modal: boolean;
|
|
67
69
|
responsive: boolean;
|
|
68
70
|
restore: boolean;
|
|
69
71
|
checkCrossOrigin: boolean;
|
|
70
72
|
checkOrientation: boolean;
|
|
71
73
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
-
modal: boolean;
|
|
73
74
|
guides: boolean;
|
|
74
75
|
highlight: boolean;
|
|
75
|
-
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -64,15 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<ImageCropperProps, {
|
|
|
64
64
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ImageCropperProps> & Readonly<{}>, {
|
|
65
65
|
src: string;
|
|
66
66
|
center: boolean;
|
|
67
|
+
background: boolean;
|
|
68
|
+
modal: boolean;
|
|
67
69
|
responsive: boolean;
|
|
68
70
|
restore: boolean;
|
|
69
71
|
checkCrossOrigin: boolean;
|
|
70
72
|
checkOrientation: boolean;
|
|
71
73
|
crossorigin: "" | "anonymous" | "use-credentials";
|
|
72
|
-
modal: boolean;
|
|
73
74
|
guides: boolean;
|
|
74
75
|
highlight: boolean;
|
|
75
|
-
background: boolean;
|
|
76
76
|
autoCrop: boolean;
|
|
77
77
|
movable: boolean;
|
|
78
78
|
rotatable: boolean;
|
|
@@ -35,13 +35,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
35
35
|
required: boolean;
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
38
|
+
limit: number;
|
|
38
39
|
description: string;
|
|
39
40
|
options: AutocompleteOption[] | string[] | number[];
|
|
40
41
|
placeholder: string;
|
|
41
42
|
disabledErrorMessage: boolean;
|
|
42
43
|
disabledBorder: boolean;
|
|
43
44
|
showCounter: boolean;
|
|
44
|
-
limit: number;
|
|
45
45
|
returnObject: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
47
|
declare const _default: typeof __VLS_export;
|
|
@@ -35,13 +35,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
35
35
|
required: boolean;
|
|
36
36
|
id: string;
|
|
37
37
|
name: string;
|
|
38
|
+
limit: number;
|
|
38
39
|
description: string;
|
|
39
40
|
options: AutocompleteOption[] | string[] | number[];
|
|
40
41
|
placeholder: string;
|
|
41
42
|
disabledErrorMessage: boolean;
|
|
42
43
|
disabledBorder: boolean;
|
|
43
44
|
showCounter: boolean;
|
|
44
|
-
limit: number;
|
|
45
45
|
returnObject: boolean;
|
|
46
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
47
|
declare const _default: typeof __VLS_export;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
<script setup>
|
|
107
107
|
import { computed, ref } from "vue";
|
|
108
108
|
import { CalendarDate, getLocalTimeZone } from "@internationalized/date";
|
|
109
|
-
import dayjs from "dayjs";
|
|
109
|
+
import dayjs from "@/runtime/utils/dayjs";
|
|
110
110
|
import { cn } from "@/runtime/plugins/shadcn";
|
|
111
111
|
import { Button } from "@/runtime/components/ui/button";
|
|
112
112
|
import { Calendar } from "@/runtime/components/ui/calendar";
|
|
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
26
26
|
fullHeight: boolean;
|
|
27
27
|
label: string;
|
|
28
28
|
name: string;
|
|
29
|
-
disabledErrorMessage: boolean;
|
|
30
29
|
limit: number;
|
|
30
|
+
disabledErrorMessage: boolean;
|
|
31
31
|
accept: string;
|
|
32
32
|
labelIcon: string;
|
|
33
33
|
disabledDrop: boolean;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
26
26
|
fullHeight: boolean;
|
|
27
27
|
label: string;
|
|
28
28
|
name: string;
|
|
29
|
-
disabledErrorMessage: boolean;
|
|
30
29
|
limit: number;
|
|
30
|
+
disabledErrorMessage: boolean;
|
|
31
31
|
accept: string;
|
|
32
32
|
labelIcon: string;
|
|
33
33
|
disabledDrop: boolean;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
name: string;
|
|
21
|
-
placeholder: string;
|
|
22
21
|
limit: number;
|
|
22
|
+
placeholder: string;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -18,8 +18,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
18
18
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
name: string;
|
|
21
|
-
placeholder: string;
|
|
22
21
|
limit: number;
|
|
22
|
+
placeholder: string;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -59,10 +59,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
61
|
disabled: boolean;
|
|
62
|
+
limit: number;
|
|
62
63
|
disabledErrorMessage: boolean;
|
|
63
64
|
disabledBorder: boolean;
|
|
64
65
|
showCounter: boolean;
|
|
65
|
-
limit: number;
|
|
66
66
|
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -59,10 +59,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
61
|
disabled: boolean;
|
|
62
|
+
limit: number;
|
|
62
63
|
disabledErrorMessage: boolean;
|
|
63
64
|
disabledBorder: boolean;
|
|
64
65
|
showCounter: boolean;
|
|
65
|
-
limit: number;
|
|
66
66
|
readonly: boolean;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
68
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -44,10 +44,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
44
44
|
id: string;
|
|
45
45
|
name: string;
|
|
46
46
|
disabled: boolean;
|
|
47
|
+
limit: number;
|
|
47
48
|
disabledErrorMessage: boolean;
|
|
48
49
|
disabledBorder: boolean;
|
|
49
50
|
showCounter: boolean;
|
|
50
|
-
limit: number;
|
|
51
51
|
readonly: boolean;
|
|
52
52
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
53
53
|
rows: number;
|
|
@@ -44,10 +44,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
44
44
|
id: string;
|
|
45
45
|
name: string;
|
|
46
46
|
disabled: boolean;
|
|
47
|
+
limit: number;
|
|
47
48
|
disabledErrorMessage: boolean;
|
|
48
49
|
disabledBorder: boolean;
|
|
49
50
|
showCounter: boolean;
|
|
50
|
-
limit: number;
|
|
51
51
|
readonly: boolean;
|
|
52
52
|
resize: "none" | "both" | "horizontal" | "vertical";
|
|
53
53
|
rows: 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
|
-
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
|
onComplete?: ((value: string) => any) | undefined;
|
|
15
15
|
onClose?: (() => 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;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from "nuxt/app";
|
|
2
|
-
import dayjs from "dayjs";
|
|
3
|
-
import buddhistEra from "dayjs/plugin/buddhistEra";
|
|
4
|
-
import minMax from "dayjs/plugin/minMax";
|
|
5
|
-
import updateLocale from "dayjs/plugin/updateLocale";
|
|
6
|
-
import duration from "dayjs/plugin/duration";
|
|
7
|
-
import "dayjs/locale/th";
|
|
2
|
+
import dayjs from "../utils/dayjs.js";
|
|
8
3
|
export default defineNuxtPlugin(() => {
|
|
9
|
-
dayjs.extend(updateLocale);
|
|
10
|
-
dayjs.extend(buddhistEra);
|
|
11
|
-
dayjs.extend(minMax);
|
|
12
|
-
dayjs.extend(duration);
|
|
13
|
-
dayjs.locale("th");
|
|
14
4
|
return {
|
|
15
5
|
provide: {
|
|
16
6
|
dayjs
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import buddhistEra from "dayjs/plugin/buddhistEra";
|
|
3
|
+
import minMax from "dayjs/plugin/minMax";
|
|
4
|
+
import updateLocale from "dayjs/plugin/updateLocale";
|
|
5
|
+
import duration from "dayjs/plugin/duration";
|
|
6
|
+
import "dayjs/locale/th";
|
|
7
|
+
dayjs.extend(updateLocale);
|
|
8
|
+
dayjs.extend(buddhistEra);
|
|
9
|
+
dayjs.extend(minMax);
|
|
10
|
+
dayjs.extend(duration);
|
|
11
|
+
dayjs.locale("th");
|
|
12
|
+
export default dayjs;
|