@movk/nuxt 0.1.1 → 1.1.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/README.md +84 -9
- package/dist/module.d.mts +19 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +77 -8
- package/dist/runtime/components/AutoForm.d.vue.ts +12 -6
- package/dist/runtime/components/AutoForm.vue +4 -1
- package/dist/runtime/components/AutoForm.vue.d.ts +12 -6
- package/dist/runtime/components/ColorChooser.d.vue.ts +11 -5
- package/dist/runtime/components/ColorChooser.vue.d.ts +11 -5
- package/dist/runtime/components/DatePicker.d.vue.ts +14 -5
- package/dist/runtime/components/DatePicker.vue.d.ts +14 -5
- package/dist/runtime/components/SlideVerify.d.vue.ts +107 -0
- package/dist/runtime/components/SlideVerify.vue +147 -0
- package/dist/runtime/components/SlideVerify.vue.d.ts +107 -0
- package/dist/runtime/components/StarRating.d.vue.ts +7 -7
- package/dist/runtime/components/StarRating.vue +1 -0
- package/dist/runtime/components/StarRating.vue.d.ts +7 -7
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererArray.d.vue.ts +6 -4
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererArray.vue +1 -1
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererArray.vue.d.ts +6 -4
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererField.d.vue.ts +6 -4
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererField.vue.d.ts +6 -4
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererLayout.d.vue.ts +6 -4
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererLayout.vue.d.ts +6 -4
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererNested.d.vue.ts +6 -4
- package/dist/runtime/components/auto-form-renderer/AutoFormRendererNested.vue.d.ts +6 -4
- package/dist/runtime/components/input/WithCharacterLimit.d.vue.ts +11 -5
- package/dist/runtime/components/input/WithCharacterLimit.vue.d.ts +11 -5
- package/dist/runtime/components/input/WithClear.d.vue.ts +12 -5
- package/dist/runtime/components/input/WithClear.vue.d.ts +12 -5
- package/dist/runtime/components/input/WithCopy.d.vue.ts +12 -5
- package/dist/runtime/components/input/WithCopy.vue.d.ts +12 -5
- package/dist/runtime/components/input/WithPasswordToggle.d.vue.ts +11 -5
- package/dist/runtime/components/input/WithPasswordToggle.vue.d.ts +11 -5
- package/dist/runtime/components/theme-picker/ThemePicker.d.vue.ts +3 -0
- package/dist/runtime/components/theme-picker/ThemePicker.vue +235 -0
- package/dist/runtime/components/theme-picker/ThemePicker.vue.d.ts +3 -0
- package/dist/runtime/components/theme-picker/ThemePickerButton.d.vue.ts +18 -0
- package/dist/runtime/components/theme-picker/ThemePickerButton.vue +34 -0
- package/dist/runtime/components/theme-picker/ThemePickerButton.vue.d.ts +18 -0
- package/dist/runtime/composables/useApiAuth.d.ts +47 -0
- package/dist/runtime/composables/useApiAuth.js +66 -0
- package/dist/runtime/composables/useApiFetch.d.ts +42 -0
- package/dist/runtime/composables/useApiFetch.js +41 -0
- package/dist/runtime/composables/useAutoForm.d.ts +81 -605
- package/dist/runtime/composables/useAutoForm.js +3 -1
- package/dist/runtime/composables/useClientApiFetch.d.ts +24 -0
- package/dist/runtime/composables/useClientApiFetch.js +8 -0
- package/dist/runtime/composables/useDateFormatter.d.ts +21 -7
- package/dist/runtime/composables/useDateFormatter.js +92 -57
- package/dist/runtime/composables/useDownloadWithProgress.d.ts +48 -0
- package/dist/runtime/composables/useDownloadWithProgress.js +85 -0
- package/dist/runtime/composables/useTheme.d.ts +21 -0
- package/dist/runtime/composables/useTheme.js +143 -0
- package/dist/runtime/composables/useUploadWithProgress.d.ts +52 -0
- package/dist/runtime/composables/useUploadWithProgress.js +117 -0
- package/dist/runtime/internal/useAutoFormProvider.js +2 -2
- package/dist/runtime/plugins/api.factory.d.ts +2 -0
- package/dist/runtime/plugins/api.factory.js +186 -0
- package/dist/runtime/plugins/theme.d.ts +2 -0
- package/dist/runtime/plugins/theme.js +89 -0
- package/dist/runtime/schemas/api.d.ts +590 -0
- package/dist/runtime/schemas/api.js +228 -0
- package/dist/runtime/server/api/_movk/session.post.d.ts +10 -0
- package/dist/runtime/server/api/_movk/session.post.js +18 -0
- package/dist/runtime/style.css +1 -0
- package/dist/runtime/types/api.d.ts +218 -0
- package/dist/runtime/types/api.js +0 -0
- package/dist/runtime/types/auth.d.ts +34 -0
- package/dist/runtime/types/auto-form-renderer.d.ts +14 -22
- package/dist/runtime/types/auto-form-renderer.js +0 -0
- package/dist/runtime/types/components.d.ts +29 -41
- package/dist/runtime/types/components.js +0 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +3 -2
- package/dist/runtime/utils/api-utils.d.ts +79 -0
- package/dist/runtime/utils/api-utils.js +127 -0
- package/package.json +38 -31
|
@@ -1,623 +1,99 @@
|
|
|
1
1
|
import type { IsComponent } from '@movk/core';
|
|
2
2
|
import type { AutoFormControl, AutoFormControls, TypedZodFactory } from '../types/auto-form.js';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import WithClear from '../components/input/WithClear.vue.js';
|
|
5
|
+
import WithPasswordToggle from '../components/input/WithPasswordToggle.vue.js';
|
|
6
|
+
import WithCopy from '../components/input/WithCopy.vue.js';
|
|
7
|
+
import WithCharacterLimit from '../components/input/WithCharacterLimit.vue.js';
|
|
8
|
+
import DatePicker from '../components/DatePicker.vue.js';
|
|
9
|
+
import ColorChooser from '../components/ColorChooser.vue.js';
|
|
10
|
+
import StarRating from '../components/StarRating.vue.js';
|
|
11
|
+
import SlideVerify from '../components/SlideVerify.vue.js';
|
|
12
|
+
import { UInput, UInputNumber, UCheckbox, USwitch, UTextarea, USlider, UPinInput, UInputTags, UFileUpload, USelect, USelectMenu, UInputMenu, UCheckboxGroup, URadioGroup, UInputDate, UInputTime } from '#components';
|
|
6
13
|
/**
|
|
7
14
|
* 从 Zod schema 中提取自定义元数据
|
|
8
15
|
*/
|
|
9
16
|
declare function getAutoFormMetadata(schema: z.ZodType): Record<string, any>;
|
|
10
17
|
declare function defineControl<C extends IsComponent>(e: AutoFormControl<C>): AutoFormControl<C>;
|
|
11
18
|
declare const DEFAULT_CONTROLS: {
|
|
12
|
-
readonly string: AutoFormControl<
|
|
13
|
-
readonly number: AutoFormControl<
|
|
14
|
-
readonly boolean: AutoFormControl<
|
|
15
|
-
readonly enum: AutoFormControl<
|
|
16
|
-
readonly file: AutoFormControl<
|
|
17
|
-
readonly calendarDate: AutoFormControl<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
37
|
-
__VLS_PROPS_FALLBACK: infer P_1;
|
|
38
|
-
} ? P_1 : {});
|
|
39
|
-
expose: (exposed: {}) => void;
|
|
40
|
-
attrs: any;
|
|
41
|
-
slots: {
|
|
42
|
-
default?: (props: any) => any;
|
|
43
|
-
} & {
|
|
44
|
-
leading?: (props: any) => any;
|
|
45
|
-
} & {
|
|
46
|
-
trailing?: (props: any) => any;
|
|
47
|
-
} & {
|
|
48
|
-
anchor?: (props: any) => any;
|
|
49
|
-
} & {
|
|
50
|
-
day?: (props: any) => any;
|
|
51
|
-
} & {
|
|
52
|
-
heading?: (props: any) => any;
|
|
53
|
-
} & {
|
|
54
|
-
'week-day'?: (props: any) => any;
|
|
55
|
-
};
|
|
56
|
-
emit: (((evt: "update:modelValue", date: R extends true ? DateRange | null : M extends true ? DateValue[] | undefined : DateValue | undefined) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void) & ((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: import("../types/components.js").ValueType<R, M>) => void);
|
|
57
|
-
}>) => import("vue").VNode & {
|
|
58
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
|
-
})>;
|
|
60
|
-
readonly switch: AutoFormControl<any>;
|
|
61
|
-
readonly textarea: AutoFormControl<any>;
|
|
62
|
-
readonly slider: AutoFormControl<any>;
|
|
63
|
-
readonly pinInput: AutoFormControl<any>;
|
|
64
|
-
readonly inputTags: AutoFormControl<any>;
|
|
65
|
-
readonly selectMenu: AutoFormControl<any>;
|
|
66
|
-
readonly inputMenu: AutoFormControl<any>;
|
|
67
|
-
readonly checkboxGroup: AutoFormControl<any>;
|
|
68
|
-
readonly radioGroup: AutoFormControl<any>;
|
|
69
|
-
readonly inputDate: AutoFormControl<any>;
|
|
70
|
-
readonly inputTime: AutoFormControl<any>;
|
|
71
|
-
readonly withClear: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
72
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
73
|
-
attrs: any;
|
|
74
|
-
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
75
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
76
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
77
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
78
|
-
} ? P : {});
|
|
79
|
-
expose: (exposed: {}) => void;
|
|
80
|
-
attrs: any;
|
|
81
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
82
|
-
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
83
|
-
}>) => import("vue").VNode & {
|
|
84
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
85
|
-
})>;
|
|
86
|
-
readonly withPasswordToggle: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
87
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
88
|
-
attrs: any;
|
|
89
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
90
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
91
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
92
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
93
|
-
} ? P : {});
|
|
94
|
-
expose: (exposed: {}) => void;
|
|
95
|
-
attrs: any;
|
|
96
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
97
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
98
|
-
}>) => import("vue").VNode & {
|
|
99
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
100
|
-
})>;
|
|
101
|
-
readonly withCopy: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
102
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
103
|
-
attrs: any;
|
|
104
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
105
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
106
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
107
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
108
|
-
} ? P : {});
|
|
109
|
-
expose: (exposed: {}) => void;
|
|
110
|
-
attrs: any;
|
|
111
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
112
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
113
|
-
}>) => import("vue").VNode & {
|
|
114
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
115
|
-
})>;
|
|
116
|
-
readonly withCharacterLimit: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
117
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
118
|
-
attrs: any;
|
|
119
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
120
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
121
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
122
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
123
|
-
} ? P : {});
|
|
124
|
-
expose: (exposed: {}) => void;
|
|
125
|
-
attrs: any;
|
|
126
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
127
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
128
|
-
}>) => import("vue").VNode & {
|
|
129
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
130
|
-
})>;
|
|
131
|
-
readonly colorChooser: AutoFormControl<(<P extends "click" | "hover" = "click">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
132
|
-
slots: {
|
|
133
|
-
default?: (props: any) => any;
|
|
134
|
-
} & {
|
|
135
|
-
leading?: (props: any) => any;
|
|
136
|
-
} & {
|
|
137
|
-
trailing?: (props: any) => any;
|
|
138
|
-
} & {
|
|
139
|
-
anchor?: (props: any) => any;
|
|
140
|
-
};
|
|
141
|
-
attrs: any;
|
|
142
|
-
emit: (((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: string | undefined) => void);
|
|
143
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
144
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
145
|
-
__VLS_PROPS_FALLBACK: infer P_1;
|
|
146
|
-
} ? P_1 : {});
|
|
147
|
-
expose: (exposed: {}) => void;
|
|
148
|
-
attrs: any;
|
|
149
|
-
slots: {
|
|
150
|
-
default?: (props: any) => any;
|
|
151
|
-
} & {
|
|
152
|
-
leading?: (props: any) => any;
|
|
153
|
-
} & {
|
|
154
|
-
trailing?: (props: any) => any;
|
|
155
|
-
} & {
|
|
156
|
-
anchor?: (props: any) => any;
|
|
157
|
-
};
|
|
158
|
-
emit: (((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: string | undefined) => void);
|
|
159
|
-
}>) => import("vue").VNode & {
|
|
160
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
161
|
-
})>;
|
|
162
|
-
readonly starRating: AutoFormControl<{
|
|
163
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
164
|
-
onChange?: ((value: number) => any) | undefined;
|
|
165
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
166
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
167
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
168
|
-
change: (value: number) => any;
|
|
169
|
-
"update:modelValue": (value: number) => any;
|
|
170
|
-
hover: (value: number | null) => any;
|
|
171
|
-
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
172
|
-
P: {};
|
|
173
|
-
B: {};
|
|
174
|
-
D: {};
|
|
175
|
-
C: {};
|
|
176
|
-
M: {};
|
|
177
|
-
Defaults: {};
|
|
178
|
-
}, Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
179
|
-
onChange?: ((value: number) => any) | undefined;
|
|
180
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
181
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
182
|
-
}>, {}, {}, {}, {}, {}>;
|
|
183
|
-
__isFragment?: never;
|
|
184
|
-
__isTeleport?: never;
|
|
185
|
-
__isSuspense?: never;
|
|
186
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
187
|
-
onChange?: ((value: number) => any) | undefined;
|
|
188
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
189
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
190
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
191
|
-
change: (value: number) => any;
|
|
192
|
-
"update:modelValue": (value: number) => any;
|
|
193
|
-
hover: (value: number | null) => any;
|
|
194
|
-
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
195
|
-
$slots: {
|
|
196
|
-
prefix?: (props: {
|
|
197
|
-
value: number;
|
|
198
|
-
max: number;
|
|
199
|
-
}) => any;
|
|
200
|
-
} & {
|
|
201
|
-
badge?: (props: {
|
|
202
|
-
value: number;
|
|
203
|
-
max: number;
|
|
204
|
-
label: any;
|
|
205
|
-
}) => any;
|
|
206
|
-
} & {
|
|
207
|
-
suffix?: (props: {
|
|
208
|
-
value: number;
|
|
209
|
-
max: number;
|
|
210
|
-
}) => any;
|
|
211
|
-
};
|
|
212
|
-
})>;
|
|
19
|
+
readonly string: AutoFormControl<typeof UInput>;
|
|
20
|
+
readonly number: AutoFormControl<typeof UInputNumber>;
|
|
21
|
+
readonly boolean: AutoFormControl<typeof UCheckbox>;
|
|
22
|
+
readonly enum: AutoFormControl<typeof USelect>;
|
|
23
|
+
readonly file: AutoFormControl<typeof UFileUpload>;
|
|
24
|
+
readonly calendarDate: AutoFormControl<typeof DatePicker>;
|
|
25
|
+
readonly switch: AutoFormControl<typeof USwitch>;
|
|
26
|
+
readonly textarea: AutoFormControl<typeof UTextarea>;
|
|
27
|
+
readonly slider: AutoFormControl<typeof USlider>;
|
|
28
|
+
readonly pinInput: AutoFormControl<typeof UPinInput>;
|
|
29
|
+
readonly inputTags: AutoFormControl<typeof UInputTags>;
|
|
30
|
+
readonly selectMenu: AutoFormControl<typeof USelectMenu>;
|
|
31
|
+
readonly inputMenu: AutoFormControl<typeof UInputMenu>;
|
|
32
|
+
readonly checkboxGroup: AutoFormControl<typeof UCheckboxGroup>;
|
|
33
|
+
readonly radioGroup: AutoFormControl<typeof URadioGroup>;
|
|
34
|
+
readonly inputDate: AutoFormControl<typeof UInputDate>;
|
|
35
|
+
readonly inputTime: AutoFormControl<typeof UInputTime>;
|
|
36
|
+
readonly withClear: AutoFormControl<typeof WithClear>;
|
|
37
|
+
readonly withPasswordToggle: AutoFormControl<typeof WithPasswordToggle>;
|
|
38
|
+
readonly withCopy: AutoFormControl<typeof WithCopy>;
|
|
39
|
+
readonly withCharacterLimit: AutoFormControl<typeof WithCharacterLimit>;
|
|
40
|
+
readonly colorChooser: AutoFormControl<typeof ColorChooser>;
|
|
41
|
+
readonly starRating: AutoFormControl<typeof StarRating>;
|
|
42
|
+
readonly slideVerify: AutoFormControl<typeof SlideVerify>;
|
|
213
43
|
};
|
|
214
44
|
export declare function useAutoForm<TControls extends AutoFormControls = typeof DEFAULT_CONTROLS>(controls?: TControls): {
|
|
215
45
|
defineControl: typeof defineControl;
|
|
216
46
|
afz: TypedZodFactory<TControls, {
|
|
217
|
-
readonly string: AutoFormControl<
|
|
218
|
-
readonly number: AutoFormControl<
|
|
219
|
-
readonly boolean: AutoFormControl<
|
|
220
|
-
readonly enum: AutoFormControl<
|
|
221
|
-
readonly file: AutoFormControl<
|
|
222
|
-
readonly calendarDate: AutoFormControl<
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
242
|
-
__VLS_PROPS_FALLBACK: infer P_1;
|
|
243
|
-
} ? P_1 : {});
|
|
244
|
-
expose: (exposed: {}) => void;
|
|
245
|
-
attrs: any;
|
|
246
|
-
slots: {
|
|
247
|
-
default?: (props: any) => any;
|
|
248
|
-
} & {
|
|
249
|
-
leading?: (props: any) => any;
|
|
250
|
-
} & {
|
|
251
|
-
trailing?: (props: any) => any;
|
|
252
|
-
} & {
|
|
253
|
-
anchor?: (props: any) => any;
|
|
254
|
-
} & {
|
|
255
|
-
day?: (props: any) => any;
|
|
256
|
-
} & {
|
|
257
|
-
heading?: (props: any) => any;
|
|
258
|
-
} & {
|
|
259
|
-
'week-day'?: (props: any) => any;
|
|
260
|
-
};
|
|
261
|
-
emit: (((evt: "update:modelValue", date: R extends true ? DateRange | null : M extends true ? DateValue[] | undefined : DateValue | undefined) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void) & ((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: import("../types/components.js").ValueType<R, M>) => void);
|
|
262
|
-
}>) => import("vue").VNode & {
|
|
263
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
264
|
-
})>;
|
|
265
|
-
readonly switch: AutoFormControl<any>;
|
|
266
|
-
readonly textarea: AutoFormControl<any>;
|
|
267
|
-
readonly slider: AutoFormControl<any>;
|
|
268
|
-
readonly pinInput: AutoFormControl<any>;
|
|
269
|
-
readonly inputTags: AutoFormControl<any>;
|
|
270
|
-
readonly selectMenu: AutoFormControl<any>;
|
|
271
|
-
readonly inputMenu: AutoFormControl<any>;
|
|
272
|
-
readonly checkboxGroup: AutoFormControl<any>;
|
|
273
|
-
readonly radioGroup: AutoFormControl<any>;
|
|
274
|
-
readonly inputDate: AutoFormControl<any>;
|
|
275
|
-
readonly inputTime: AutoFormControl<any>;
|
|
276
|
-
readonly withClear: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
277
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
278
|
-
attrs: any;
|
|
279
|
-
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
280
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
281
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
282
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
283
|
-
} ? P : {});
|
|
284
|
-
expose: (exposed: {}) => void;
|
|
285
|
-
attrs: any;
|
|
286
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
287
|
-
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
288
|
-
}>) => import("vue").VNode & {
|
|
289
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
290
|
-
})>;
|
|
291
|
-
readonly withPasswordToggle: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
292
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
293
|
-
attrs: any;
|
|
294
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
295
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
296
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
297
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
298
|
-
} ? P : {});
|
|
299
|
-
expose: (exposed: {}) => void;
|
|
300
|
-
attrs: any;
|
|
301
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
302
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
303
|
-
}>) => import("vue").VNode & {
|
|
304
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
305
|
-
})>;
|
|
306
|
-
readonly withCopy: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
307
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
308
|
-
attrs: any;
|
|
309
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
310
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
311
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
312
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
313
|
-
} ? P : {});
|
|
314
|
-
expose: (exposed: {}) => void;
|
|
315
|
-
attrs: any;
|
|
316
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
317
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
318
|
-
}>) => import("vue").VNode & {
|
|
319
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
320
|
-
})>;
|
|
321
|
-
readonly withCharacterLimit: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
322
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
323
|
-
attrs: any;
|
|
324
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
325
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
326
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
327
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
328
|
-
} ? P : {});
|
|
329
|
-
expose: (exposed: {}) => void;
|
|
330
|
-
attrs: any;
|
|
331
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
332
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
333
|
-
}>) => import("vue").VNode & {
|
|
334
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
335
|
-
})>;
|
|
336
|
-
readonly colorChooser: AutoFormControl<(<P extends "click" | "hover" = "click">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
337
|
-
slots: {
|
|
338
|
-
default?: (props: any) => any;
|
|
339
|
-
} & {
|
|
340
|
-
leading?: (props: any) => any;
|
|
341
|
-
} & {
|
|
342
|
-
trailing?: (props: any) => any;
|
|
343
|
-
} & {
|
|
344
|
-
anchor?: (props: any) => any;
|
|
345
|
-
};
|
|
346
|
-
attrs: any;
|
|
347
|
-
emit: (((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: string | undefined) => void);
|
|
348
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
349
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
350
|
-
__VLS_PROPS_FALLBACK: infer P_1;
|
|
351
|
-
} ? P_1 : {});
|
|
352
|
-
expose: (exposed: {}) => void;
|
|
353
|
-
attrs: any;
|
|
354
|
-
slots: {
|
|
355
|
-
default?: (props: any) => any;
|
|
356
|
-
} & {
|
|
357
|
-
leading?: (props: any) => any;
|
|
358
|
-
} & {
|
|
359
|
-
trailing?: (props: any) => any;
|
|
360
|
-
} & {
|
|
361
|
-
anchor?: (props: any) => any;
|
|
362
|
-
};
|
|
363
|
-
emit: (((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: string | undefined) => void);
|
|
364
|
-
}>) => import("vue").VNode & {
|
|
365
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
366
|
-
})>;
|
|
367
|
-
readonly starRating: AutoFormControl<{
|
|
368
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
369
|
-
onChange?: ((value: number) => any) | undefined;
|
|
370
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
371
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
372
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
373
|
-
change: (value: number) => any;
|
|
374
|
-
"update:modelValue": (value: number) => any;
|
|
375
|
-
hover: (value: number | null) => any;
|
|
376
|
-
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
377
|
-
P: {};
|
|
378
|
-
B: {};
|
|
379
|
-
D: {};
|
|
380
|
-
C: {};
|
|
381
|
-
M: {};
|
|
382
|
-
Defaults: {};
|
|
383
|
-
}, Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
384
|
-
onChange?: ((value: number) => any) | undefined;
|
|
385
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
386
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
387
|
-
}>, {}, {}, {}, {}, {}>;
|
|
388
|
-
__isFragment?: never;
|
|
389
|
-
__isTeleport?: never;
|
|
390
|
-
__isSuspense?: never;
|
|
391
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
392
|
-
onChange?: ((value: number) => any) | undefined;
|
|
393
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
394
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
395
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
396
|
-
change: (value: number) => any;
|
|
397
|
-
"update:modelValue": (value: number) => any;
|
|
398
|
-
hover: (value: number | null) => any;
|
|
399
|
-
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
400
|
-
$slots: {
|
|
401
|
-
prefix?: (props: {
|
|
402
|
-
value: number;
|
|
403
|
-
max: number;
|
|
404
|
-
}) => any;
|
|
405
|
-
} & {
|
|
406
|
-
badge?: (props: {
|
|
407
|
-
value: number;
|
|
408
|
-
max: number;
|
|
409
|
-
label: any;
|
|
410
|
-
}) => any;
|
|
411
|
-
} & {
|
|
412
|
-
suffix?: (props: {
|
|
413
|
-
value: number;
|
|
414
|
-
max: number;
|
|
415
|
-
}) => any;
|
|
416
|
-
};
|
|
417
|
-
})>;
|
|
47
|
+
readonly string: AutoFormControl<typeof UInput>;
|
|
48
|
+
readonly number: AutoFormControl<typeof UInputNumber>;
|
|
49
|
+
readonly boolean: AutoFormControl<typeof UCheckbox>;
|
|
50
|
+
readonly enum: AutoFormControl<typeof USelect>;
|
|
51
|
+
readonly file: AutoFormControl<typeof UFileUpload>;
|
|
52
|
+
readonly calendarDate: AutoFormControl<typeof DatePicker>;
|
|
53
|
+
readonly switch: AutoFormControl<typeof USwitch>;
|
|
54
|
+
readonly textarea: AutoFormControl<typeof UTextarea>;
|
|
55
|
+
readonly slider: AutoFormControl<typeof USlider>;
|
|
56
|
+
readonly pinInput: AutoFormControl<typeof UPinInput>;
|
|
57
|
+
readonly inputTags: AutoFormControl<typeof UInputTags>;
|
|
58
|
+
readonly selectMenu: AutoFormControl<typeof USelectMenu>;
|
|
59
|
+
readonly inputMenu: AutoFormControl<typeof UInputMenu>;
|
|
60
|
+
readonly checkboxGroup: AutoFormControl<typeof UCheckboxGroup>;
|
|
61
|
+
readonly radioGroup: AutoFormControl<typeof URadioGroup>;
|
|
62
|
+
readonly inputDate: AutoFormControl<typeof UInputDate>;
|
|
63
|
+
readonly inputTime: AutoFormControl<typeof UInputTime>;
|
|
64
|
+
readonly withClear: AutoFormControl<typeof WithClear>;
|
|
65
|
+
readonly withPasswordToggle: AutoFormControl<typeof WithPasswordToggle>;
|
|
66
|
+
readonly withCopy: AutoFormControl<typeof WithCopy>;
|
|
67
|
+
readonly withCharacterLimit: AutoFormControl<typeof WithCharacterLimit>;
|
|
68
|
+
readonly colorChooser: AutoFormControl<typeof ColorChooser>;
|
|
69
|
+
readonly starRating: AutoFormControl<typeof StarRating>;
|
|
70
|
+
readonly slideVerify: AutoFormControl<typeof SlideVerify>;
|
|
418
71
|
}>;
|
|
419
72
|
DEFAULT_CONTROLS: {
|
|
420
|
-
readonly string: AutoFormControl<
|
|
421
|
-
readonly number: AutoFormControl<
|
|
422
|
-
readonly boolean: AutoFormControl<
|
|
423
|
-
readonly enum: AutoFormControl<
|
|
424
|
-
readonly file: AutoFormControl<
|
|
425
|
-
readonly calendarDate: AutoFormControl<
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
445
|
-
__VLS_PROPS_FALLBACK: infer P_1;
|
|
446
|
-
} ? P_1 : {});
|
|
447
|
-
expose: (exposed: {}) => void;
|
|
448
|
-
attrs: any;
|
|
449
|
-
slots: {
|
|
450
|
-
default?: (props: any) => any;
|
|
451
|
-
} & {
|
|
452
|
-
leading?: (props: any) => any;
|
|
453
|
-
} & {
|
|
454
|
-
trailing?: (props: any) => any;
|
|
455
|
-
} & {
|
|
456
|
-
anchor?: (props: any) => any;
|
|
457
|
-
} & {
|
|
458
|
-
day?: (props: any) => any;
|
|
459
|
-
} & {
|
|
460
|
-
heading?: (props: any) => any;
|
|
461
|
-
} & {
|
|
462
|
-
'week-day'?: (props: any) => any;
|
|
463
|
-
};
|
|
464
|
-
emit: (((evt: "update:modelValue", date: R extends true ? DateRange | null : M extends true ? DateValue[] | undefined : DateValue | undefined) => void) & ((evt: "update:placeholder", ...args: [date: DateValue] & [date: DateValue]) => void) & ((evt: "update:validModelValue", date: DateRange) => void) & ((evt: "update:startValue", date: DateValue | undefined) => void) & ((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: import("../types/components.js").ValueType<R, M>) => void);
|
|
465
|
-
}>) => import("vue").VNode & {
|
|
466
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
467
|
-
})>;
|
|
468
|
-
readonly switch: AutoFormControl<any>;
|
|
469
|
-
readonly textarea: AutoFormControl<any>;
|
|
470
|
-
readonly slider: AutoFormControl<any>;
|
|
471
|
-
readonly pinInput: AutoFormControl<any>;
|
|
472
|
-
readonly inputTags: AutoFormControl<any>;
|
|
473
|
-
readonly selectMenu: AutoFormControl<any>;
|
|
474
|
-
readonly inputMenu: AutoFormControl<any>;
|
|
475
|
-
readonly checkboxGroup: AutoFormControl<any>;
|
|
476
|
-
readonly radioGroup: AutoFormControl<any>;
|
|
477
|
-
readonly inputDate: AutoFormControl<any>;
|
|
478
|
-
readonly inputTime: AutoFormControl<any>;
|
|
479
|
-
readonly withClear: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
480
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
481
|
-
attrs: any;
|
|
482
|
-
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
483
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
484
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
485
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
486
|
-
} ? P : {});
|
|
487
|
-
expose: (exposed: {}) => void;
|
|
488
|
-
attrs: any;
|
|
489
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
490
|
-
emit: (((evt: "clear") => void) & ((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: T | undefined) => void);
|
|
491
|
-
}>) => import("vue").VNode & {
|
|
492
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
493
|
-
})>;
|
|
494
|
-
readonly withPasswordToggle: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
495
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
496
|
-
attrs: any;
|
|
497
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
498
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
499
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
500
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
501
|
-
} ? P : {});
|
|
502
|
-
expose: (exposed: {}) => void;
|
|
503
|
-
attrs: any;
|
|
504
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
505
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
506
|
-
}>) => import("vue").VNode & {
|
|
507
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
508
|
-
})>;
|
|
509
|
-
readonly withCopy: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
510
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
511
|
-
attrs: any;
|
|
512
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
513
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
514
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
515
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
516
|
-
} ? P : {});
|
|
517
|
-
expose: (exposed: {}) => void;
|
|
518
|
-
attrs: any;
|
|
519
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
520
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "copy", value: string) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
521
|
-
}>) => import("vue").VNode & {
|
|
522
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
523
|
-
})>;
|
|
524
|
-
readonly withCharacterLimit: AutoFormControl<(<T extends import("@nuxt/ui/.").InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
525
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
526
|
-
attrs: any;
|
|
527
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
528
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
529
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
530
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
531
|
-
} ? P : {});
|
|
532
|
-
expose: (exposed: {}) => void;
|
|
533
|
-
attrs: any;
|
|
534
|
-
slots: import("@movk/core").OmitByKey<import("@nuxt/ui/.").InputSlots, "trailing">;
|
|
535
|
-
emit: (((evt: "blur", event: FocusEvent) => void) & ((evt: "change", event: Event) => void) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue) => void)) & ((evt: "update:modelValue", value: import("@nuxt/ui/.").AcceptableValue | undefined) => void);
|
|
536
|
-
}>) => import("vue").VNode & {
|
|
537
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
538
|
-
})>;
|
|
539
|
-
readonly colorChooser: AutoFormControl<(<P extends "click" | "hover" = "click">(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
540
|
-
slots: {
|
|
541
|
-
default?: (props: any) => any;
|
|
542
|
-
} & {
|
|
543
|
-
leading?: (props: any) => any;
|
|
544
|
-
} & {
|
|
545
|
-
trailing?: (props: any) => any;
|
|
546
|
-
} & {
|
|
547
|
-
anchor?: (props: any) => any;
|
|
548
|
-
};
|
|
549
|
-
attrs: any;
|
|
550
|
-
emit: (((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: string | undefined) => void);
|
|
551
|
-
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
552
|
-
props: any & import("vue").PublicProps & (typeof globalThis extends {
|
|
553
|
-
__VLS_PROPS_FALLBACK: infer P_1;
|
|
554
|
-
} ? P_1 : {});
|
|
555
|
-
expose: (exposed: {}) => void;
|
|
556
|
-
attrs: any;
|
|
557
|
-
slots: {
|
|
558
|
-
default?: (props: any) => any;
|
|
559
|
-
} & {
|
|
560
|
-
leading?: (props: any) => any;
|
|
561
|
-
} & {
|
|
562
|
-
trailing?: (props: any) => any;
|
|
563
|
-
} & {
|
|
564
|
-
anchor?: (props: any) => any;
|
|
565
|
-
};
|
|
566
|
-
emit: (((evt: "close:prevent") => void) & ((evt: "update:open", value: boolean) => void)) & ((evt: "update:modelValue", value: string | undefined) => void);
|
|
567
|
-
}>) => import("vue").VNode & {
|
|
568
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
569
|
-
})>;
|
|
570
|
-
readonly starRating: AutoFormControl<{
|
|
571
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
572
|
-
onChange?: ((value: number) => any) | undefined;
|
|
573
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
574
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
575
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
576
|
-
change: (value: number) => any;
|
|
577
|
-
"update:modelValue": (value: number) => any;
|
|
578
|
-
hover: (value: number | null) => any;
|
|
579
|
-
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
580
|
-
P: {};
|
|
581
|
-
B: {};
|
|
582
|
-
D: {};
|
|
583
|
-
C: {};
|
|
584
|
-
M: {};
|
|
585
|
-
Defaults: {};
|
|
586
|
-
}, Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
587
|
-
onChange?: ((value: number) => any) | undefined;
|
|
588
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
589
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
590
|
-
}>, {}, {}, {}, {}, {}>;
|
|
591
|
-
__isFragment?: never;
|
|
592
|
-
__isTeleport?: never;
|
|
593
|
-
__isSuspense?: never;
|
|
594
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("../components/StarRating.vue.js").StarRatingProps> & Readonly<{
|
|
595
|
-
onChange?: ((value: number) => any) | undefined;
|
|
596
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
597
|
-
onHover?: ((value: number | null) => any) | undefined;
|
|
598
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
599
|
-
change: (value: number) => any;
|
|
600
|
-
"update:modelValue": (value: number) => any;
|
|
601
|
-
hover: (value: number | null) => any;
|
|
602
|
-
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
603
|
-
$slots: {
|
|
604
|
-
prefix?: (props: {
|
|
605
|
-
value: number;
|
|
606
|
-
max: number;
|
|
607
|
-
}) => any;
|
|
608
|
-
} & {
|
|
609
|
-
badge?: (props: {
|
|
610
|
-
value: number;
|
|
611
|
-
max: number;
|
|
612
|
-
label: any;
|
|
613
|
-
}) => any;
|
|
614
|
-
} & {
|
|
615
|
-
suffix?: (props: {
|
|
616
|
-
value: number;
|
|
617
|
-
max: number;
|
|
618
|
-
}) => any;
|
|
619
|
-
};
|
|
620
|
-
})>;
|
|
73
|
+
readonly string: AutoFormControl<typeof UInput>;
|
|
74
|
+
readonly number: AutoFormControl<typeof UInputNumber>;
|
|
75
|
+
readonly boolean: AutoFormControl<typeof UCheckbox>;
|
|
76
|
+
readonly enum: AutoFormControl<typeof USelect>;
|
|
77
|
+
readonly file: AutoFormControl<typeof UFileUpload>;
|
|
78
|
+
readonly calendarDate: AutoFormControl<typeof DatePicker>;
|
|
79
|
+
readonly switch: AutoFormControl<typeof USwitch>;
|
|
80
|
+
readonly textarea: AutoFormControl<typeof UTextarea>;
|
|
81
|
+
readonly slider: AutoFormControl<typeof USlider>;
|
|
82
|
+
readonly pinInput: AutoFormControl<typeof UPinInput>;
|
|
83
|
+
readonly inputTags: AutoFormControl<typeof UInputTags>;
|
|
84
|
+
readonly selectMenu: AutoFormControl<typeof USelectMenu>;
|
|
85
|
+
readonly inputMenu: AutoFormControl<typeof UInputMenu>;
|
|
86
|
+
readonly checkboxGroup: AutoFormControl<typeof UCheckboxGroup>;
|
|
87
|
+
readonly radioGroup: AutoFormControl<typeof URadioGroup>;
|
|
88
|
+
readonly inputDate: AutoFormControl<typeof UInputDate>;
|
|
89
|
+
readonly inputTime: AutoFormControl<typeof UInputTime>;
|
|
90
|
+
readonly withClear: AutoFormControl<typeof WithClear>;
|
|
91
|
+
readonly withPasswordToggle: AutoFormControl<typeof WithPasswordToggle>;
|
|
92
|
+
readonly withCopy: AutoFormControl<typeof WithCopy>;
|
|
93
|
+
readonly withCharacterLimit: AutoFormControl<typeof WithCharacterLimit>;
|
|
94
|
+
readonly colorChooser: AutoFormControl<typeof ColorChooser>;
|
|
95
|
+
readonly starRating: AutoFormControl<typeof StarRating>;
|
|
96
|
+
readonly slideVerify: AutoFormControl<typeof SlideVerify>;
|
|
621
97
|
};
|
|
622
98
|
controls: TControls | undefined;
|
|
623
99
|
getAutoFormMetadata: typeof getAutoFormMetadata;
|