@movk/nuxt 1.4.2 → 1.5.1
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/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/module.json +2 -2
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/AutoForm.d.vue.ts +1 -1
- package/dist/runtime/components/AutoForm.vue.d.ts +1 -1
- package/dist/runtime/components/ColorChooser.d.vue.ts +1 -1
- package/dist/runtime/components/ColorChooser.vue.d.ts +1 -1
- package/dist/runtime/components/DataTable.d.vue.ts +1 -1
- package/dist/runtime/components/DataTable.vue.d.ts +1 -1
- package/dist/runtime/components/DatePicker.d.vue.ts +1 -1
- package/dist/runtime/components/DatePicker.vue.d.ts +1 -1
- package/dist/runtime/components/PillGroup.d.vue.ts +1 -1
- package/dist/runtime/components/PillGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Popconfirm.d.vue.ts +1 -1
- package/dist/runtime/components/Popconfirm.vue.d.ts +1 -1
- package/dist/runtime/components/SearchForm.d.vue.ts +1 -1
- package/dist/runtime/components/SearchForm.vue.d.ts +1 -1
- package/dist/runtime/components/Tree.d.vue.ts +1 -1
- package/dist/runtime/components/Tree.vue.d.ts +1 -1
- package/dist/runtime/components/input/AsPhoneNumberInput.d.vue.ts +1 -1
- package/dist/runtime/components/input/AsPhoneNumberInput.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithCharacterLimit.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithCharacterLimit.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithClear.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithClear.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithCopy.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithCopy.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithFloatingLabel.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithFloatingLabel.vue.d.ts +1 -1
- package/dist/runtime/components/input/WithPasswordToggle.d.vue.ts +1 -1
- package/dist/runtime/components/input/WithPasswordToggle.vue.d.ts +1 -1
- package/dist/runtime/composables/useTheme.js +3 -3
- package/dist/runtime/domains/api/auth.js +9 -3
- package/dist/runtime/domains/api/endpoint-config.d.ts +1 -1
- package/dist/runtime/domains/api/endpoint-config.js +5 -1
- package/dist/runtime/domains/auto-form/controls.d.ts +15 -95
- package/dist/runtime/domains/auto-form/controls.js +0 -2
- package/dist/runtime/domains/data-table/components/Pagination.d.vue.ts +1 -1
- package/dist/runtime/domains/data-table/components/Pagination.vue.d.ts +1 -1
- package/dist/runtime/domains/theme/theme-icons.d.ts +9 -0
- package/dist/runtime/domains/theme/theme-icons.js +7 -0
- package/dist/runtime/plugins/theme.js +2 -2
- package/dist/runtime/types/api/config.d.ts +12 -1
- package/dist/runtime/types/api/module.d.ts +1 -1
- package/dist/runtime/types/components/index.d.ts +0 -1
- package/dist/runtime/vue/plugins/theme.js +2 -2
- package/dist/shared/{nuxt.CXM2nhP4.mjs → nuxt.DJKBap-S.mjs} +0 -28
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +22 -22
- package/dist/runtime/components/StarRating.d.vue.ts +0 -52
- package/dist/runtime/components/StarRating.vue +0 -238
- package/dist/runtime/components/StarRating.vue.d.ts +0 -52
- package/dist/runtime/types/components/star-rating.d.ts +0 -55
- package/dist/runtime/types/components/star-rating.js +0 -0
|
@@ -77,7 +77,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
77
77
|
slots: import("@movk/core").OmitByKey<InputSlots, "trailing">;
|
|
78
78
|
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
79
79
|
}>) => import("vue").VNode & {
|
|
80
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
80
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
81
81
|
};
|
|
82
82
|
readonly withPasswordToggle: <T extends import("@nuxt/ui").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
83
83
|
slots: import("@movk/core").OmitByKey<InputSlots, "trailing">;
|
|
@@ -141,7 +141,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
141
141
|
slots: import("@movk/core").OmitByKey<InputSlots, "trailing">;
|
|
142
142
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
143
143
|
}>) => import("vue").VNode & {
|
|
144
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
144
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
145
145
|
};
|
|
146
146
|
readonly withCopy: <T extends import("@nuxt/ui").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
147
147
|
slots: import("@movk/core").OmitByKey<InputSlots, "trailing">;
|
|
@@ -208,7 +208,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
208
208
|
slots: import("@movk/core").OmitByKey<InputSlots, "trailing">;
|
|
209
209
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
210
210
|
}>) => import("vue").VNode & {
|
|
211
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
211
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
212
212
|
};
|
|
213
213
|
readonly withCharacterLimit: <T extends import("@nuxt/ui").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
214
214
|
slots: import("@movk/core").OmitByKey<InputSlots, "trailing">;
|
|
@@ -273,7 +273,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
273
273
|
slots: import("@movk/core").OmitByKey<InputSlots, "trailing">;
|
|
274
274
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
275
275
|
}>) => import("vue").VNode & {
|
|
276
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
276
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
277
277
|
};
|
|
278
278
|
readonly withFloatingLabel: <T extends import("@nuxt/ui").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
279
279
|
slots: import("@movk/core").OmitByKey<InputSlots, "default" | "trailing">;
|
|
@@ -340,7 +340,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
340
340
|
slots: import("@movk/core").OmitByKey<InputSlots, "default" | "trailing">;
|
|
341
341
|
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
342
342
|
}>) => import("vue").VNode & {
|
|
343
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
343
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
344
344
|
};
|
|
345
345
|
readonly asPhoneNumberInput: <T extends import("@nuxt/ui").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
346
346
|
slots: import("@movk/core").OmitByKey<InputSlots, "leading">;
|
|
@@ -405,7 +405,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
405
405
|
slots: import("@movk/core").OmitByKey<InputSlots, "leading">;
|
|
406
406
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: T) => void)) & ((event: "update:modelValue", value: T | undefined) => void);
|
|
407
407
|
}>) => import("vue").VNode & {
|
|
408
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
408
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
409
409
|
};
|
|
410
410
|
readonly textarea: any;
|
|
411
411
|
readonly switch: any;
|
|
@@ -417,87 +417,6 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
417
417
|
readonly inputTags: any;
|
|
418
418
|
readonly pinInput: any;
|
|
419
419
|
readonly listbox: any;
|
|
420
|
-
readonly starRating: {
|
|
421
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../../types").StarRatingProps & {
|
|
422
|
-
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("@nuxt/schema").AppConfig, "starRating">["slots"];
|
|
423
|
-
} & {
|
|
424
|
-
modelValue?: number;
|
|
425
|
-
}> & Readonly<{
|
|
426
|
-
onChange?: ((value: number) => any) | undefined;
|
|
427
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
428
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
429
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
430
|
-
change: (value: number) => any;
|
|
431
|
-
hover: (value: number | null) => any;
|
|
432
|
-
"update:modelValue": (value: number) => any;
|
|
433
|
-
}, import("vue").PublicProps, {
|
|
434
|
-
max: number;
|
|
435
|
-
showBadge: boolean;
|
|
436
|
-
emptyIcon: import("@nuxt/ui").IconProps["name"];
|
|
437
|
-
filledIcon: import("@nuxt/ui").IconProps["name"];
|
|
438
|
-
halfIcon: import("@nuxt/ui").IconProps["name"];
|
|
439
|
-
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
440
|
-
P: {};
|
|
441
|
-
B: {};
|
|
442
|
-
D: {};
|
|
443
|
-
C: {};
|
|
444
|
-
M: {};
|
|
445
|
-
Defaults: {};
|
|
446
|
-
}, Readonly<import("../../types").StarRatingProps & {
|
|
447
|
-
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("@nuxt/schema").AppConfig, "starRating">["slots"];
|
|
448
|
-
} & {
|
|
449
|
-
modelValue?: number;
|
|
450
|
-
}> & Readonly<{
|
|
451
|
-
onChange?: ((value: number) => any) | undefined;
|
|
452
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
453
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
454
|
-
}>, {}, {}, {}, {}, {
|
|
455
|
-
max: number;
|
|
456
|
-
showBadge: boolean;
|
|
457
|
-
emptyIcon: import("@nuxt/ui").IconProps["name"];
|
|
458
|
-
filledIcon: import("@nuxt/ui").IconProps["name"];
|
|
459
|
-
halfIcon: import("@nuxt/ui").IconProps["name"];
|
|
460
|
-
}>;
|
|
461
|
-
__isFragment?: never;
|
|
462
|
-
__isTeleport?: never;
|
|
463
|
-
__isSuspense?: never;
|
|
464
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("../../types").StarRatingProps & {
|
|
465
|
-
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("@nuxt/schema").AppConfig, "starRating">["slots"];
|
|
466
|
-
} & {
|
|
467
|
-
modelValue?: number;
|
|
468
|
-
}> & Readonly<{
|
|
469
|
-
onChange?: ((value: number) => any) | undefined;
|
|
470
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
471
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
472
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
473
|
-
change: (value: number) => any;
|
|
474
|
-
hover: (value: number | null) => any;
|
|
475
|
-
"update:modelValue": (value: number) => any;
|
|
476
|
-
}, string, {
|
|
477
|
-
max: number;
|
|
478
|
-
showBadge: boolean;
|
|
479
|
-
emptyIcon: import("@nuxt/ui").IconProps["name"];
|
|
480
|
-
filledIcon: import("@nuxt/ui").IconProps["name"];
|
|
481
|
-
halfIcon: import("@nuxt/ui").IconProps["name"];
|
|
482
|
-
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
483
|
-
$slots: {
|
|
484
|
-
prefix?: (props: {
|
|
485
|
-
value: number;
|
|
486
|
-
max: number;
|
|
487
|
-
}) => any;
|
|
488
|
-
} & {
|
|
489
|
-
badge?: (props: {
|
|
490
|
-
value: number;
|
|
491
|
-
max: number;
|
|
492
|
-
label: string;
|
|
493
|
-
}) => any;
|
|
494
|
-
} & {
|
|
495
|
-
suffix?: (props: {
|
|
496
|
-
value: number;
|
|
497
|
-
max: number;
|
|
498
|
-
}) => any;
|
|
499
|
-
};
|
|
500
|
-
});
|
|
501
420
|
readonly colorChooser: <M extends "click" | "hover">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
502
421
|
slots: import("../../types").ColorChooserSlots;
|
|
503
422
|
attrs: any;
|
|
@@ -535,6 +454,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
535
454
|
modal?: boolean | undefined;
|
|
536
455
|
openDelay?: number | undefined;
|
|
537
456
|
closeDelay?: number | undefined;
|
|
457
|
+
enableTouch?: boolean | undefined;
|
|
538
458
|
modelValue?: string | undefined;
|
|
539
459
|
onClear?: (() => any) | undefined;
|
|
540
460
|
onChange?: ((value: string | undefined) => any) | undefined;
|
|
@@ -550,12 +470,12 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
550
470
|
slots: import("../../types").ColorChooserSlots;
|
|
551
471
|
emit: (((evt: "clear") => void) & ((evt: "change", value: string | undefined) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: string | undefined) => void) & ((evt: "update:open", open: boolean) => void) & ((evt: "format-change", format: import("../../types").ColorFormat) => void)) & ((event: "update:modelValue", value: string | undefined) => void);
|
|
552
472
|
}>) => import("vue").VNode & {
|
|
553
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
473
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
554
474
|
};
|
|
555
475
|
readonly slideVerify: {
|
|
556
476
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../../types").SlideVerifyProps & {
|
|
557
|
-
size?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("
|
|
558
|
-
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("
|
|
477
|
+
size?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("nuxt/schema").AppConfig, "slideVerify">["variants"]["size"];
|
|
478
|
+
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("nuxt/schema").AppConfig, "slideVerify">["slots"];
|
|
559
479
|
} & {
|
|
560
480
|
modelValue?: boolean;
|
|
561
481
|
}> & Readonly<{
|
|
@@ -584,8 +504,8 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
584
504
|
M: {};
|
|
585
505
|
Defaults: {};
|
|
586
506
|
}, Readonly<import("../../types").SlideVerifyProps & {
|
|
587
|
-
size?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("
|
|
588
|
-
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("
|
|
507
|
+
size?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("nuxt/schema").AppConfig, "slideVerify">["variants"]["size"];
|
|
508
|
+
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("nuxt/schema").AppConfig, "slideVerify">["slots"];
|
|
589
509
|
} & {
|
|
590
510
|
modelValue?: boolean;
|
|
591
511
|
}> & Readonly<{
|
|
@@ -606,8 +526,8 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
606
526
|
__isTeleport?: never;
|
|
607
527
|
__isSuspense?: never;
|
|
608
528
|
} & import("vue").ComponentOptionsBase<Readonly<import("../../types").SlideVerifyProps & {
|
|
609
|
-
size?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("
|
|
610
|
-
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("
|
|
529
|
+
size?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("nuxt/schema").AppConfig, "slideVerify">["variants"]["size"];
|
|
530
|
+
ui?: import("@nuxt/ui").ComponentConfig<typeof UInput, import("nuxt/schema").AppConfig, "slideVerify">["slots"];
|
|
611
531
|
} & {
|
|
612
532
|
modelValue?: boolean;
|
|
613
533
|
}> & Readonly<{
|
|
@@ -671,7 +591,7 @@ declare const DEFAULT_CONTROL_COMPONENTS: {
|
|
|
671
591
|
slots: import("../../types").PillGroupSlots<T, VK, M>;
|
|
672
592
|
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", value: import("@nuxt/ui").GetModelValue<T, VK, M, undefined>) => void) & ((evt: "focus", event: FocusEvent) => void) & ((evt: "select", payload: import("../../types").PillSelectPayload<T>) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui").GetModelValue<T, VK, M, undefined>) => void)) & ((event: "update:modelValue", value: import("@nuxt/ui").GetModelValue<T, VK, M> | undefined) => void);
|
|
673
593
|
}>) => import("vue").VNode & {
|
|
674
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
594
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
675
595
|
};
|
|
676
596
|
};
|
|
677
597
|
type DefaultControlComponents = typeof DEFAULT_CONTROL_COMPONENTS;
|
|
@@ -6,7 +6,6 @@ import AsPhoneNumberInput from "../../components/input/AsPhoneNumberInput.vue";
|
|
|
6
6
|
import WithFloatingLabel from "../../components/input/WithFloatingLabel.vue";
|
|
7
7
|
import DatePicker from "../../components/DatePicker.vue";
|
|
8
8
|
import ColorChooser from "../../components/ColorChooser.vue";
|
|
9
|
-
import StarRating from "../../components/StarRating.vue";
|
|
10
9
|
import SlideVerify from "../../components/SlideVerify.vue";
|
|
11
10
|
import PillGroup from "../../components/PillGroup.vue";
|
|
12
11
|
import {
|
|
@@ -66,7 +65,6 @@ const DEFAULT_CONTROL_COMPONENTS = {
|
|
|
66
65
|
inputTags: UInputTags,
|
|
67
66
|
pinInput: UPinInput,
|
|
68
67
|
listbox: UListbox,
|
|
69
|
-
starRating: StarRating,
|
|
70
68
|
colorChooser: ColorChooser,
|
|
71
69
|
slideVerify: SlideVerify,
|
|
72
70
|
pillGroup: PillGroup
|
|
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
|
|
|
15
15
|
slots: DataTablePaginationSlots<T>;
|
|
16
16
|
emit: {};
|
|
17
17
|
}>) => import("vue").VNode & {
|
|
18
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
18
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
19
19
|
};
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
export default _default;
|
|
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends TableData>(__VLS_props: NonNullable<Await
|
|
|
15
15
|
slots: DataTablePaginationSlots<T>;
|
|
16
16
|
emit: {};
|
|
17
17
|
}>) => import("vue").VNode & {
|
|
18
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
18
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
19
19
|
};
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export type ThemeIconSet = keyof typeof themeIcons;
|
|
2
|
+
/**
|
|
3
|
+
* 按图标集覆盖当前图标表,图标集未收录的键回退当前值。
|
|
4
|
+
* 整体替换会丢失 @nuxt/ui 新增而图标集尚未跟进的键(如 4.10 的 star),故此处合并。
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveThemeIcons(set: string, current: Record<string, string>): Record<string, string>;
|
|
1
7
|
export declare const themeIcons: {
|
|
2
8
|
lucide: {
|
|
3
9
|
arrowDown: string;
|
|
@@ -37,6 +43,7 @@ export declare const themeIcons: {
|
|
|
37
43
|
reload: string;
|
|
38
44
|
search: string;
|
|
39
45
|
stop: string;
|
|
46
|
+
star: string;
|
|
40
47
|
success: string;
|
|
41
48
|
system: string;
|
|
42
49
|
tip: string;
|
|
@@ -81,6 +88,7 @@ export declare const themeIcons: {
|
|
|
81
88
|
reload: string;
|
|
82
89
|
search: string;
|
|
83
90
|
stop: string;
|
|
91
|
+
star: string;
|
|
84
92
|
success: string;
|
|
85
93
|
system: string;
|
|
86
94
|
tip: string;
|
|
@@ -125,6 +133,7 @@ export declare const themeIcons: {
|
|
|
125
133
|
reload: string;
|
|
126
134
|
search: string;
|
|
127
135
|
stop: string;
|
|
136
|
+
star: string;
|
|
128
137
|
success: string;
|
|
129
138
|
system: string;
|
|
130
139
|
tip: string;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export function resolveThemeIcons(set, current) {
|
|
2
|
+
const icons = themeIcons[set];
|
|
3
|
+
return icons ? { ...current, ...icons } : current;
|
|
4
|
+
}
|
|
1
5
|
export const themeIcons = {
|
|
2
6
|
lucide: {
|
|
3
7
|
arrowDown: "i-lucide-arrow-down",
|
|
@@ -37,6 +41,7 @@ export const themeIcons = {
|
|
|
37
41
|
reload: "i-lucide-rotate-ccw",
|
|
38
42
|
search: "i-lucide-search",
|
|
39
43
|
stop: "i-lucide-square",
|
|
44
|
+
star: "i-lucide-star",
|
|
40
45
|
success: "i-lucide-circle-check",
|
|
41
46
|
system: "i-lucide-monitor",
|
|
42
47
|
tip: "i-lucide-lightbulb",
|
|
@@ -81,6 +86,7 @@ export const themeIcons = {
|
|
|
81
86
|
reload: "i-ph-arrow-counter-clockwise",
|
|
82
87
|
search: "i-ph-magnifying-glass",
|
|
83
88
|
stop: "i-ph-square",
|
|
89
|
+
star: "i-ph-star",
|
|
84
90
|
success: "i-ph-check-circle",
|
|
85
91
|
system: "i-ph-monitor",
|
|
86
92
|
tip: "i-ph-lightbulb",
|
|
@@ -125,6 +131,7 @@ export const themeIcons = {
|
|
|
125
131
|
reload: "i-tabler-reload",
|
|
126
132
|
search: "i-tabler-search",
|
|
127
133
|
stop: "i-tabler-player-stop",
|
|
134
|
+
star: "i-tabler-star",
|
|
128
135
|
success: "i-tabler-square-rounded-check",
|
|
129
136
|
system: "i-tabler-device-desktop",
|
|
130
137
|
tip: "i-tabler-bulb",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { kebabCase } from "@movk/core";
|
|
2
2
|
import { defineNuxtPlugin, useAppConfig, useHead, useSiteConfig } from "#imports";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveThemeIcons } from "../domains/theme/theme-icons.js";
|
|
4
4
|
export default defineNuxtPlugin({
|
|
5
5
|
enforce: "post",
|
|
6
6
|
setup() {
|
|
@@ -13,7 +13,7 @@ export default defineNuxtPlugin({
|
|
|
13
13
|
const neutral = localStorage.getItem(`${name}-ui-neutral`);
|
|
14
14
|
if (neutral) appConfig.ui.colors.neutral = neutral;
|
|
15
15
|
const icons = localStorage.getItem(`${name}-ui-icons`);
|
|
16
|
-
if (icons) appConfig.ui.icons =
|
|
16
|
+
if (icons) appConfig.ui.icons = resolveThemeIcons(icons, appConfig.ui.icons);
|
|
17
17
|
}
|
|
18
18
|
if (import.meta.server) {
|
|
19
19
|
const pickerFonts = appConfig.movk?.picker?.fonts ?? [];
|
|
@@ -40,13 +40,19 @@ export interface ApiAuthConfig {
|
|
|
40
40
|
* 令牌来源类型
|
|
41
41
|
* @defaultValue 'session'
|
|
42
42
|
*/
|
|
43
|
-
tokenSource?: Suggest<'session'>;
|
|
43
|
+
tokenSource?: Suggest<'session' | 'public-runtime-config'>;
|
|
44
44
|
/**
|
|
45
45
|
* 令牌在会话对象中的路径(支持点号分隔的嵌套路径)
|
|
46
46
|
* @defaultValue 'token'
|
|
47
47
|
* @example 'token' | 'user.accessToken' | 'auth.credentials.token'
|
|
48
48
|
*/
|
|
49
49
|
sessionTokenPath?: string;
|
|
50
|
+
/**
|
|
51
|
+
* 令牌在 runtimeConfig.public 中的路径(支持点号分隔的嵌套路径),仅当 tokenSource 为 'public-runtime-config' 时生效
|
|
52
|
+
* @defaultValue 'apiToken'
|
|
53
|
+
* @example 'llmApiKey' | 'api.token'
|
|
54
|
+
*/
|
|
55
|
+
tokenPath?: string;
|
|
50
56
|
/**
|
|
51
57
|
* 令牌类型前缀
|
|
52
58
|
* @defaultValue 'Bearer'
|
|
@@ -112,6 +118,11 @@ export interface ApiEndpointPublicConfig {
|
|
|
112
118
|
* 端点别名(用于标识)
|
|
113
119
|
*/
|
|
114
120
|
alias?: string;
|
|
121
|
+
/**
|
|
122
|
+
* 该端点的公开请求头,会进入 public runtimeConfig,服务端与客户端均注入
|
|
123
|
+
* @description 仅用于非机密固定头(如 API 版本、租户标识),机密请用 headers
|
|
124
|
+
*/
|
|
125
|
+
publicHeaders?: Record<string, string>;
|
|
115
126
|
/**
|
|
116
127
|
* 端点级别的认证配置(覆盖全局配置)
|
|
117
128
|
*/
|
|
@@ -89,6 +89,6 @@ export interface ResolvedEndpointConfig extends Omit<ApiEndpointPublicConfig, 'a
|
|
|
89
89
|
toast: ApiToastConfig;
|
|
90
90
|
/** 响应配置(已合并全局默认值,必然存在) */
|
|
91
91
|
response: ApiResponseConfig;
|
|
92
|
-
/**
|
|
92
|
+
/** 请求头(服务端私有 headers 与端点 publicHeaders 的合并结果,同名键私有优先) */
|
|
93
93
|
headers?: Record<string, string>;
|
|
94
94
|
}
|
|
@@ -4,6 +4,5 @@ export type { MessageBoxEmits, MessageBoxProps, MessageBoxSlots } from './messag
|
|
|
4
4
|
export type { MTreeItem, TreeEmits, TreeExposed, TreeFilter, TreeItem, TreeLoadChildren, TreeProps, TreeSelectionResult, TreeSelectionStrategy, TreeSelectionSummary, TreeSlots } from './tree';
|
|
5
5
|
export type { PopconfirmEmits, PopconfirmProps, PopconfirmSlots } from './popconfirm';
|
|
6
6
|
export type { SlideVerifyEmits, SlideVerifyProps, SlideVerifySlots } from './slide-verify';
|
|
7
|
-
export type { StarRatingEmits, StarRatingProps } from './star-rating';
|
|
8
7
|
export type { PillGroupEmits, PillGroupProps, PillGroupSlots, PillItem, PillGroupValue, PillSelectPayload } from './pill-group';
|
|
9
8
|
export type { AsPhoneNumberInputProps, WithCharacterLimitProps, WithClearEmits, WithClearProps, WithCopyEmits, WithCopyProps, WithFloatingLabelEmits, WithFloatingLabelProps, WithPasswordToggleProps } from './input';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineNuxtPlugin, useAppConfig, useSiteConfig } from "#imports";
|
|
2
2
|
import { kebabCase } from "@movk/core";
|
|
3
|
-
import {
|
|
3
|
+
import { resolveThemeIcons } from "../../domains/theme/theme-icons.js";
|
|
4
4
|
export default defineNuxtPlugin(() => {
|
|
5
5
|
const appConfig = useAppConfig();
|
|
6
6
|
const site = useSiteConfig();
|
|
@@ -10,5 +10,5 @@ export default defineNuxtPlugin(() => {
|
|
|
10
10
|
const neutral = localStorage.getItem(`${name}-ui-neutral`);
|
|
11
11
|
if (neutral) appConfig.ui.colors.neutral = neutral;
|
|
12
12
|
const icons = localStorage.getItem(`${name}-ui-icons`);
|
|
13
|
-
if (icons) appConfig.ui.icons =
|
|
13
|
+
if (icons) appConfig.ui.icons = resolveThemeIcons(icons, appConfig.ui.icons);
|
|
14
14
|
});
|
|
@@ -372,33 +372,6 @@ const autoForm = () => ({
|
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
|
|
375
|
-
const starRating = () => ({
|
|
376
|
-
slots: {
|
|
377
|
-
root: "inline-flex items-center gap-1",
|
|
378
|
-
stars: "flex items-center gap-0.5",
|
|
379
|
-
star: "transition-all duration-150"
|
|
380
|
-
},
|
|
381
|
-
variants: {
|
|
382
|
-
interactive: {
|
|
383
|
-
true: { star: "cursor-pointer hover:scale-110" }
|
|
384
|
-
},
|
|
385
|
-
disabled: {
|
|
386
|
-
true: { star: "cursor-not-allowed opacity-50" }
|
|
387
|
-
},
|
|
388
|
-
readonly: {
|
|
389
|
-
true: { star: "cursor-default" }
|
|
390
|
-
},
|
|
391
|
-
fieldGroup: {
|
|
392
|
-
horizontal: {
|
|
393
|
-
root: "rounded-md bg-default ring ring-inset ring-accented px-1 not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]"
|
|
394
|
-
},
|
|
395
|
-
vertical: {
|
|
396
|
-
root: "rounded-md bg-default ring ring-inset ring-accented px-1 not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
|
|
402
375
|
const pillGroup = () => ({
|
|
403
376
|
slots: {
|
|
404
377
|
root: "flex items-center gap-2",
|
|
@@ -457,7 +430,6 @@ const theme = {
|
|
|
457
430
|
popconfirm: popconfirm,
|
|
458
431
|
searchForm: searchForm,
|
|
459
432
|
slideVerify: slideVerify,
|
|
460
|
-
starRating: starRating,
|
|
461
433
|
themePicker: themePicker,
|
|
462
434
|
tree: tree,
|
|
463
435
|
withCharacterLimit: withCharacterLimit,
|
package/dist/unplugin.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import MagicString from 'magic-string';
|
|
|
8
8
|
import { resolvePathSync } from 'mlly';
|
|
9
9
|
import fs from 'node:fs';
|
|
10
10
|
import path from 'node:path';
|
|
11
|
-
import { U as UI_COMPONENTS, g as getTemplates } from './shared/nuxt.
|
|
11
|
+
import { U as UI_COMPONENTS, g as getTemplates } from './shared/nuxt.DJKBap-S.mjs';
|
|
12
12
|
import { kebabCase } from 'scule';
|
|
13
13
|
import { getDefaultConfig } from '../dist/runtime/utils/theme-defaults.js';
|
|
14
14
|
import { getPackageJsonMetadata } from '../dist/runtime/utils/meta.js';
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movk/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"packageManager": "pnpm@11.
|
|
4
|
+
"version": "1.5.1",
|
|
5
|
+
"packageManager": "pnpm@11.17.0",
|
|
6
6
|
"description": "An engineering suite built on Nuxt UI: schema-driven AutoForm (Zod v4), a full-featured DataTable, standalone UI components and composables. Get the full capabilities — including API integration with auth & progress — in Nuxt 4, and use its UI, forms, tables and theming in plain Vue + Vite via the Vite plugin.",
|
|
7
7
|
"author": "YiXuan <mhaibaraai@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -124,49 +124,49 @@
|
|
|
124
124
|
"test:vue": "vitest --project vue"
|
|
125
125
|
},
|
|
126
126
|
"dependencies": {
|
|
127
|
-
"@iconify-json/lucide": "^1.2.
|
|
127
|
+
"@iconify-json/lucide": "^1.2.120",
|
|
128
128
|
"@iconify-json/ph": "^1.2.2",
|
|
129
|
-
"@iconify-json/tabler": "^1.2.
|
|
129
|
+
"@iconify-json/tabler": "^1.2.37",
|
|
130
130
|
"@internationalized/date": "^3.12.2",
|
|
131
|
-
"@movk/core": "^1.
|
|
131
|
+
"@movk/core": "^1.4.1",
|
|
132
132
|
"@nuxt/image": "^2.0.0",
|
|
133
|
-
"@nuxt/ui": "^4.
|
|
133
|
+
"@nuxt/ui": "^4.10.0",
|
|
134
134
|
"@tanstack/vue-table": "^8.21.3",
|
|
135
135
|
"@vueuse/core": "^14.3.0",
|
|
136
136
|
"@vueuse/nuxt": "^14.3.0",
|
|
137
137
|
"colortranslator": "^6.1.1",
|
|
138
138
|
"defu": "^6.1.7",
|
|
139
|
-
"magic-string": "^
|
|
139
|
+
"magic-string": "^1.1.0",
|
|
140
140
|
"maska": "^3.2.0",
|
|
141
141
|
"mlly": "^1.8.2",
|
|
142
142
|
"nuxt-auth-utils": "^0.5.29",
|
|
143
|
-
"nuxt-site-config": "^4.1.
|
|
143
|
+
"nuxt-site-config": "^4.1.2",
|
|
144
144
|
"pathe": "^2.0.3",
|
|
145
|
-
"reka-ui": "2.
|
|
145
|
+
"reka-ui": "2.10.1",
|
|
146
146
|
"scule": "^1.3.0",
|
|
147
147
|
"tailwind-variants": "^3.2.2",
|
|
148
|
-
"tailwindcss": "^4.3.
|
|
148
|
+
"tailwindcss": "^4.3.3",
|
|
149
149
|
"tinyglobby": "^0.2.17",
|
|
150
150
|
"unifont": "^0.7.4",
|
|
151
|
-
"unplugin": "^3.
|
|
151
|
+
"unplugin": "^3.3.0",
|
|
152
152
|
"zod": "^4.4.3"
|
|
153
153
|
},
|
|
154
154
|
"devDependencies": {
|
|
155
155
|
"@nuxt/eslint-config": "^1.16.0",
|
|
156
|
-
"@nuxt/kit": "^4.
|
|
157
|
-
"@nuxt/module-builder": "^1.0.
|
|
158
|
-
"@nuxt/schema": "^4.
|
|
159
|
-
"@release-it/conventional-changelog": "^
|
|
160
|
-
"eslint": "^10.
|
|
161
|
-
"happy-dom": "^20.
|
|
162
|
-
"nuxt": "^4.
|
|
163
|
-
"release-it": "^
|
|
156
|
+
"@nuxt/kit": "^4.5.1",
|
|
157
|
+
"@nuxt/module-builder": "^1.0.3",
|
|
158
|
+
"@nuxt/schema": "^4.5.1",
|
|
159
|
+
"@release-it/conventional-changelog": "^12.0.0",
|
|
160
|
+
"eslint": "^10.8.0",
|
|
161
|
+
"happy-dom": "^20.11.1",
|
|
162
|
+
"nuxt": "^4.5.1",
|
|
163
|
+
"release-it": "^21.0.0",
|
|
164
164
|
"typescript": "^6.0.3",
|
|
165
165
|
"unbuild": "^3.6.1",
|
|
166
166
|
"unplugin-auto-import": "^21.0.0",
|
|
167
167
|
"unplugin-vue-components": "^32.1.0",
|
|
168
|
-
"vitest": "^4.1.
|
|
169
|
-
"vue": "^3.5.
|
|
170
|
-
"vue-tsc": "^3.3.
|
|
168
|
+
"vitest": "^4.1.10",
|
|
169
|
+
"vue": "^3.5.40",
|
|
170
|
+
"vue-tsc": "^3.3.8"
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { ComponentConfig } from '@nuxt/ui';
|
|
2
|
-
import theme from '#build/movk-ui/star-rating';
|
|
3
|
-
import type { AppConfig } from 'nuxt/schema';
|
|
4
|
-
import type { StarRatingProps } from '../types/components/star-rating';
|
|
5
|
-
type __VLS_Props = StarRatingProps & {
|
|
6
|
-
ui?: ComponentConfig<typeof theme, AppConfig, 'starRating'>['slots'];
|
|
7
|
-
};
|
|
8
|
-
type __VLS_ModelProps = {
|
|
9
|
-
modelValue?: number;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
-
declare var __VLS_7: {
|
|
13
|
-
value: number;
|
|
14
|
-
max: number;
|
|
15
|
-
}, __VLS_19: {
|
|
16
|
-
value: number;
|
|
17
|
-
max: number;
|
|
18
|
-
label: string;
|
|
19
|
-
}, __VLS_26: {
|
|
20
|
-
value: number;
|
|
21
|
-
max: number;
|
|
22
|
-
};
|
|
23
|
-
type __VLS_Slots = {} & {
|
|
24
|
-
prefix?: (props: typeof __VLS_7) => any;
|
|
25
|
-
} & {
|
|
26
|
-
badge?: (props: typeof __VLS_19) => any;
|
|
27
|
-
} & {
|
|
28
|
-
suffix?: (props: typeof __VLS_26) => any;
|
|
29
|
-
};
|
|
30
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
change: (value: number) => any;
|
|
32
|
-
hover: (value: number | null) => any;
|
|
33
|
-
"update:modelValue": (value: number) => any;
|
|
34
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
-
onChange?: ((value: number) => any) | undefined;
|
|
36
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
37
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
38
|
-
}>, {
|
|
39
|
-
max: number;
|
|
40
|
-
showBadge: boolean;
|
|
41
|
-
emptyIcon: import("@nuxt/ui").IconProps["name"];
|
|
42
|
-
filledIcon: import("@nuxt/ui").IconProps["name"];
|
|
43
|
-
halfIcon: import("@nuxt/ui").IconProps["name"];
|
|
44
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
-
declare const _default: typeof __VLS_export;
|
|
47
|
-
export default _default;
|
|
48
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
-
new (): {
|
|
50
|
-
$slots: S;
|
|
51
|
-
};
|
|
52
|
-
};
|