@hostlink/nuxt-light 1.49.3 → 1.49.4
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 +11 -14
- package/dist/runtime/components/l-add-btn.d.vue.ts +2 -2
- package/dist/runtime/components/l-add-btn.vue.d.ts +2 -2
- package/dist/runtime/components/l-customizer.d.vue.ts +4 -4
- package/dist/runtime/components/l-customizer.vue.d.ts +4 -4
- package/dist/runtime/components/l-date-picker.d.vue.ts +1 -1
- package/dist/runtime/components/l-date-picker.vue.d.ts +1 -1
- package/dist/runtime/components/l-editor.d.vue.ts +1 -1
- package/dist/runtime/components/l-editor.vue.d.ts +1 -1
- package/dist/runtime/components/l-form-dialog.d.vue.ts +2 -2
- package/dist/runtime/components/l-form-dialog.vue.d.ts +2 -2
- package/dist/runtime/components/l-time-picker.d.vue.ts +1 -1
- package/dist/runtime/components/l-time-picker.vue.d.ts +1 -1
- package/dist/runtime/composables/useLight.d.ts +8 -8
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -349,26 +349,23 @@ const module = defineNuxtModule({
|
|
|
349
349
|
addImportsDir(resolver.resolve("./runtime/composables"));
|
|
350
350
|
const files = await resolveFiles(process.cwd() + "/models", ["*"]);
|
|
351
351
|
const files2 = await resolveFiles(process.cwd() + "/app/models", ["*"]);
|
|
352
|
-
|
|
353
|
-
model: []
|
|
354
|
-
};
|
|
352
|
+
let content = "";
|
|
355
353
|
for (const file of [...files, ...files2]) {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
354
|
+
content += `(await import('${file}')).default();
|
|
355
|
+
`;
|
|
356
|
+
}
|
|
357
|
+
addPluginTemplate({
|
|
358
|
+
filename: `light.module.options.mjs`,
|
|
359
|
+
mode: "client",
|
|
360
|
+
getContents: () => `import { defineNuxtPlugin } from '#app/nuxt'
|
|
361
361
|
|
|
362
362
|
export default defineNuxtPlugin({
|
|
363
|
-
name: '
|
|
363
|
+
name: 'light-model-plugin',
|
|
364
364
|
async setup (nuxtApp) {
|
|
365
|
-
|
|
366
|
-
const a=await import('${file}');
|
|
367
|
-
a.default();
|
|
365
|
+
${content}
|
|
368
366
|
}
|
|
369
367
|
})`
|
|
370
|
-
|
|
371
|
-
}
|
|
368
|
+
});
|
|
372
369
|
addPlugin({
|
|
373
370
|
src: resolver.resolve("./runtime/plugin"),
|
|
374
371
|
mode: "client"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
label: string;
|
|
3
|
-
color?: string | undefined;
|
|
4
3
|
to?: string | undefined;
|
|
4
|
+
color?: string | undefined;
|
|
5
5
|
$props: {
|
|
6
6
|
readonly label?: string | undefined;
|
|
7
|
-
readonly color?: string | undefined;
|
|
8
7
|
readonly to?: string | undefined;
|
|
8
|
+
readonly color?: string | undefined;
|
|
9
9
|
};
|
|
10
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
label: string;
|
|
3
|
-
color?: string | undefined;
|
|
4
3
|
to?: string | undefined;
|
|
4
|
+
color?: string | undefined;
|
|
5
5
|
$props: {
|
|
6
6
|
readonly label?: string | undefined;
|
|
7
|
-
readonly color?: string | undefined;
|
|
8
7
|
readonly to?: string | undefined;
|
|
8
|
+
readonly color?: string | undefined;
|
|
9
9
|
};
|
|
10
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
11
|
export default _default;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$emit: (event: "update:theme" | "update:menuOverlayHeader" | "update:dense" | "update:color" | "update:miniState" | "update:footer", ...args: any[]) => void;
|
|
3
|
-
time: string;
|
|
4
3
|
color: string;
|
|
4
|
+
time: string;
|
|
5
5
|
theme: string;
|
|
6
6
|
dense: boolean;
|
|
7
|
-
footer: boolean;
|
|
8
7
|
miniState: boolean;
|
|
8
|
+
footer: boolean;
|
|
9
9
|
menuOverlayHeader: boolean;
|
|
10
10
|
$props: {
|
|
11
|
-
readonly time?: string | undefined;
|
|
12
11
|
readonly color?: string | undefined;
|
|
12
|
+
readonly time?: string | undefined;
|
|
13
13
|
readonly theme?: string | undefined;
|
|
14
14
|
readonly dense?: boolean | undefined;
|
|
15
|
-
readonly footer?: boolean | undefined;
|
|
16
15
|
readonly miniState?: boolean | undefined;
|
|
16
|
+
readonly footer?: boolean | undefined;
|
|
17
17
|
readonly menuOverlayHeader?: boolean | undefined;
|
|
18
18
|
};
|
|
19
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$emit: (event: "update:theme" | "update:menuOverlayHeader" | "update:dense" | "update:color" | "update:miniState" | "update:footer", ...args: any[]) => void;
|
|
3
|
-
time: string;
|
|
4
3
|
color: string;
|
|
4
|
+
time: string;
|
|
5
5
|
theme: string;
|
|
6
6
|
dense: boolean;
|
|
7
|
-
footer: boolean;
|
|
8
7
|
miniState: boolean;
|
|
8
|
+
footer: boolean;
|
|
9
9
|
menuOverlayHeader: boolean;
|
|
10
10
|
$props: {
|
|
11
|
-
readonly time?: string | undefined;
|
|
12
11
|
readonly color?: string | undefined;
|
|
12
|
+
readonly time?: string | undefined;
|
|
13
13
|
readonly theme?: string | undefined;
|
|
14
14
|
readonly dense?: boolean | undefined;
|
|
15
|
-
readonly footer?: boolean | undefined;
|
|
16
15
|
readonly miniState?: boolean | undefined;
|
|
16
|
+
readonly footer?: boolean | undefined;
|
|
17
17
|
readonly menuOverlayHeader?: boolean | undefined;
|
|
18
18
|
};
|
|
19
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -13,11 +13,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
disable: boolean;
|
|
17
16
|
dark: boolean | null;
|
|
18
17
|
rounded: boolean;
|
|
19
18
|
square: boolean;
|
|
20
19
|
dense: boolean;
|
|
20
|
+
disable: boolean;
|
|
21
21
|
outlined: boolean;
|
|
22
22
|
filled: boolean;
|
|
23
23
|
stackLabel: boolean;
|
|
@@ -13,11 +13,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
disable: boolean;
|
|
17
16
|
dark: boolean | null;
|
|
18
17
|
rounded: boolean;
|
|
19
18
|
square: boolean;
|
|
20
19
|
dense: boolean;
|
|
20
|
+
disable: boolean;
|
|
21
21
|
outlined: boolean;
|
|
22
22
|
filled: boolean;
|
|
23
23
|
stackLabel: boolean;
|
|
@@ -6,9 +6,9 @@ declare const _default: import("vue").DefineComponent<LEditorProps, {}, {}, {},
|
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<LEditorProps> & Readonly<{
|
|
7
7
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
-
modelValue: string;
|
|
10
9
|
dense: boolean;
|
|
11
10
|
placeholder: string;
|
|
11
|
+
modelValue: string;
|
|
12
12
|
fonts: any | undefined;
|
|
13
13
|
toolbar: readonly any[];
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -6,9 +6,9 @@ declare const _default: import("vue").DefineComponent<LEditorProps, {}, {}, {},
|
|
|
6
6
|
}, string, import("vue").PublicProps, Readonly<LEditorProps> & Readonly<{
|
|
7
7
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
8
8
|
}>, {
|
|
9
|
-
modelValue: string;
|
|
10
9
|
dense: boolean;
|
|
11
10
|
placeholder: string;
|
|
11
|
+
modelValue: string;
|
|
12
12
|
fonts: any | undefined;
|
|
13
13
|
toolbar: readonly any[];
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,15 +5,15 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
7
|
$emit: (event: "submit", ...args: any[]) => void;
|
|
8
|
-
value: Record<string, any>;
|
|
9
8
|
cancel: Function;
|
|
9
|
+
value: Record<string, any>;
|
|
10
10
|
width: string;
|
|
11
11
|
title: string;
|
|
12
12
|
save: Function;
|
|
13
13
|
showNotification: boolean;
|
|
14
14
|
$props: {
|
|
15
|
-
readonly value?: Record<string, any> | undefined;
|
|
16
15
|
readonly cancel?: Function | undefined;
|
|
16
|
+
readonly value?: Record<string, any> | undefined;
|
|
17
17
|
readonly width?: string | undefined;
|
|
18
18
|
readonly title?: string | undefined;
|
|
19
19
|
readonly save?: Function | undefined;
|
|
@@ -5,15 +5,15 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
7
|
$emit: (event: "submit", ...args: any[]) => void;
|
|
8
|
-
value: Record<string, any>;
|
|
9
8
|
cancel: Function;
|
|
9
|
+
value: Record<string, any>;
|
|
10
10
|
width: string;
|
|
11
11
|
title: string;
|
|
12
12
|
save: Function;
|
|
13
13
|
showNotification: boolean;
|
|
14
14
|
$props: {
|
|
15
|
-
readonly value?: Record<string, any> | undefined;
|
|
16
15
|
readonly cancel?: Function | undefined;
|
|
16
|
+
readonly value?: Record<string, any> | undefined;
|
|
17
17
|
readonly width?: string | undefined;
|
|
18
18
|
readonly title?: string | undefined;
|
|
19
19
|
readonly save?: Function | undefined;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
23
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
required: boolean;
|
|
27
26
|
format24h: boolean;
|
|
27
|
+
required: boolean;
|
|
28
28
|
mask: string;
|
|
29
29
|
hideBottomSpace: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
23
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
required: boolean;
|
|
27
26
|
format24h: boolean;
|
|
27
|
+
required: boolean;
|
|
28
28
|
mask: string;
|
|
29
29
|
hideBottomSpace: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -224,8 +224,6 @@ declare const light: {
|
|
|
224
224
|
isoName: string;
|
|
225
225
|
nativeName: string;
|
|
226
226
|
label: {
|
|
227
|
-
create: string;
|
|
228
|
-
set: string;
|
|
229
227
|
cancel: string;
|
|
230
228
|
close: string;
|
|
231
229
|
reset: string;
|
|
@@ -233,9 +231,11 @@ declare const light: {
|
|
|
233
231
|
filter: string;
|
|
234
232
|
update: string;
|
|
235
233
|
remove: string;
|
|
234
|
+
set: string;
|
|
236
235
|
clear: string;
|
|
237
236
|
ok: string;
|
|
238
237
|
search: string;
|
|
238
|
+
create: string;
|
|
239
239
|
refresh: string;
|
|
240
240
|
expand: (label?: string | undefined) => string;
|
|
241
241
|
collapse: (label?: string | undefined) => string;
|
|
@@ -319,9 +319,9 @@ declare const light: {
|
|
|
319
319
|
name: string;
|
|
320
320
|
type: {
|
|
321
321
|
info: string;
|
|
322
|
-
positive: string;
|
|
323
|
-
negative: string;
|
|
324
322
|
warning: string;
|
|
323
|
+
negative: string;
|
|
324
|
+
positive: string;
|
|
325
325
|
};
|
|
326
326
|
arrow: {
|
|
327
327
|
left: string;
|
|
@@ -830,8 +830,6 @@ declare const _default: () => {
|
|
|
830
830
|
isoName: string;
|
|
831
831
|
nativeName: string;
|
|
832
832
|
label: {
|
|
833
|
-
create: string;
|
|
834
|
-
set: string;
|
|
835
833
|
cancel: string;
|
|
836
834
|
close: string;
|
|
837
835
|
reset: string;
|
|
@@ -839,9 +837,11 @@ declare const _default: () => {
|
|
|
839
837
|
filter: string;
|
|
840
838
|
update: string;
|
|
841
839
|
remove: string;
|
|
840
|
+
set: string;
|
|
842
841
|
clear: string;
|
|
843
842
|
ok: string;
|
|
844
843
|
search: string;
|
|
844
|
+
create: string;
|
|
845
845
|
refresh: string;
|
|
846
846
|
expand: (label?: string | undefined) => string;
|
|
847
847
|
collapse: (label?: string | undefined) => string;
|
|
@@ -925,9 +925,9 @@ declare const _default: () => {
|
|
|
925
925
|
name: string;
|
|
926
926
|
type: {
|
|
927
927
|
info: string;
|
|
928
|
-
positive: string;
|
|
929
|
-
negative: string;
|
|
930
928
|
warning: string;
|
|
929
|
+
negative: string;
|
|
930
|
+
positive: string;
|
|
931
931
|
};
|
|
932
932
|
arrow: {
|
|
933
933
|
left: string;
|