pukaad-ui-lib 1.97.0 → 1.99.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 +3 -41
- package/dist/runtime/components/card/card-profile-header.d.vue.ts +1 -1
- package/dist/runtime/components/card/card-profile-header.vue.d.ts +1 -1
- 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/modal/modal-review-detail.d.vue.ts +1 -1
- package/dist/runtime/components/modal/modal-review-detail.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir,
|
|
1
|
+
import { defineNuxtModule, createResolver, addImportsDir, addComponentsDir, installModule, addPlugin } from '@nuxt/kit';
|
|
2
2
|
import tailwindcss from '@tailwindcss/vite';
|
|
3
3
|
|
|
4
4
|
const module$1 = defineNuxtModule({
|
|
@@ -16,16 +16,6 @@ const module$1 = defineNuxtModule({
|
|
|
16
16
|
prefix: "",
|
|
17
17
|
global: true
|
|
18
18
|
});
|
|
19
|
-
addImports({
|
|
20
|
-
name: "dayjs",
|
|
21
|
-
as: "dayjs",
|
|
22
|
-
from: "#dayjs"
|
|
23
|
-
});
|
|
24
|
-
addTemplate({
|
|
25
|
-
filename: "dayjs.imports.mjs",
|
|
26
|
-
getContents: () => generateImportDayJs(),
|
|
27
|
-
write: true
|
|
28
|
-
});
|
|
29
19
|
await installModule("@nuxt/icon", {
|
|
30
20
|
mode: "svg",
|
|
31
21
|
customCollections: [
|
|
@@ -79,7 +69,6 @@ const module$1 = defineNuxtModule({
|
|
|
79
69
|
});
|
|
80
70
|
addPlugin(resolver.resolve("./runtime/plugins/re-captcha"));
|
|
81
71
|
addPlugin(resolver.resolve("./runtime/plugins/loadingPage"));
|
|
82
|
-
addPlugin(resolver.resolve("./runtime/plugins/dayjs"));
|
|
83
72
|
addPlugin(resolver.resolve("./runtime/plugins/alert"));
|
|
84
73
|
addPlugin(resolver.resolve("./runtime/plugins/toast"));
|
|
85
74
|
addPlugin(resolver.resolve("./runtime/plugins/quill.client"));
|
|
@@ -97,41 +86,14 @@ const module$1 = defineNuxtModule({
|
|
|
97
86
|
config.plugins.push(tailwindcss());
|
|
98
87
|
config.optimizeDeps = config.optimizeDeps || {};
|
|
99
88
|
config.optimizeDeps.include = config.optimizeDeps.include || [];
|
|
100
|
-
config.optimizeDeps.include.push("quill", "quill-delta");
|
|
89
|
+
config.optimizeDeps.include.push("quill", "quill-delta", "dayjs");
|
|
101
90
|
});
|
|
102
91
|
_nuxt.options.runtimeConfig.public.BASE_URL_API = process.env.BASE_URL_API ?? "";
|
|
103
92
|
_nuxt.options.runtimeConfig.public.RECAPTCHA_KEY = process.env.RECAPTCHA_KEY ?? "";
|
|
104
|
-
_nuxt.options.alias["#dayjs"] = resolver.resolve(
|
|
105
|
-
_nuxt.options.buildDir,
|
|
106
|
-
"dayjs.imports.mjs"
|
|
107
|
-
);
|
|
108
93
|
_nuxt.hook("prepare:types", ({ references }) => {
|
|
109
|
-
references.push(
|
|
110
|
-
{ types: "dayjs/plugin/buddhistEra" },
|
|
111
|
-
{ types: "dayjs/plugin/minMax" },
|
|
112
|
-
{ types: "dayjs/plugin/updateLocale" },
|
|
113
|
-
{ path: resolver.resolve("./types/convert.d.ts") }
|
|
114
|
-
);
|
|
94
|
+
references.push({ path: resolver.resolve("./types/convert.d.ts") });
|
|
115
95
|
});
|
|
116
96
|
}
|
|
117
97
|
});
|
|
118
|
-
const generateImportDayJs = () => {
|
|
119
|
-
return `
|
|
120
|
-
import dayjs from "dayjs";
|
|
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
|
-
import "dayjs/locale/th";
|
|
126
|
-
|
|
127
|
-
dayjs.extend(updateLocale);
|
|
128
|
-
dayjs.extend(buddhistEra);
|
|
129
|
-
dayjs.extend(minMax);
|
|
130
|
-
dayjs.extend(duration);
|
|
131
|
-
dayjs.locale("th");
|
|
132
|
-
|
|
133
|
-
export default dayjs;
|
|
134
|
-
`;
|
|
135
|
-
};
|
|
136
98
|
|
|
137
99
|
export { module$1 as default };
|
|
@@ -7,9 +7,9 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
|
|
|
7
7
|
onChat?: (() => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
type: "article" | "media" | "sale-info";
|
|
10
|
+
preview: boolean;
|
|
10
11
|
optionMenuButtonType: "solid" | "text";
|
|
11
12
|
actionsHidden: boolean;
|
|
12
|
-
preview: boolean;
|
|
13
13
|
disabledPadding: boolean;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,9 +7,9 @@ declare const __VLS_export: import("vue").DefineComponent<CardProfileAboutProps,
|
|
|
7
7
|
onChat?: (() => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
9
|
type: "article" | "media" | "sale-info";
|
|
10
|
+
preview: boolean;
|
|
10
11
|
optionMenuButtonType: "solid" | "text";
|
|
11
12
|
actionsHidden: boolean;
|
|
12
|
-
preview: boolean;
|
|
13
13
|
disabledPadding: boolean;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
@@ -35,9 +35,9 @@ 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
|
-
limit: number;
|
|
41
41
|
placeholder: string;
|
|
42
42
|
disabledErrorMessage: boolean;
|
|
43
43
|
disabledBorder: boolean;
|
|
@@ -35,9 +35,9 @@ 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
|
-
limit: number;
|
|
41
41
|
placeholder: string;
|
|
42
42
|
disabledErrorMessage: boolean;
|
|
43
43
|
disabledBorder: boolean;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
14
14
|
items: string[];
|
|
15
15
|
selectIndex: number;
|
|
16
16
|
title: string;
|
|
17
|
-
isProfile: boolean;
|
|
18
17
|
review: import("../../../types/components/card/card-review.js").CardReviewProps;
|
|
18
|
+
isProfile: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
export default _default;
|
|
@@ -14,8 +14,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
14
14
|
items: string[];
|
|
15
15
|
selectIndex: number;
|
|
16
16
|
title: string;
|
|
17
|
-
isProfile: boolean;
|
|
18
17
|
review: import("../../../types/components/card/card-review.js").CardReviewProps;
|
|
18
|
+
isProfile: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
export default _default;
|