@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.
Files changed (78) hide show
  1. package/README.md +84 -9
  2. package/dist/module.d.mts +19 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +77 -8
  5. package/dist/runtime/components/AutoForm.d.vue.ts +12 -6
  6. package/dist/runtime/components/AutoForm.vue +4 -1
  7. package/dist/runtime/components/AutoForm.vue.d.ts +12 -6
  8. package/dist/runtime/components/ColorChooser.d.vue.ts +11 -5
  9. package/dist/runtime/components/ColorChooser.vue.d.ts +11 -5
  10. package/dist/runtime/components/DatePicker.d.vue.ts +14 -5
  11. package/dist/runtime/components/DatePicker.vue.d.ts +14 -5
  12. package/dist/runtime/components/SlideVerify.d.vue.ts +107 -0
  13. package/dist/runtime/components/SlideVerify.vue +147 -0
  14. package/dist/runtime/components/SlideVerify.vue.d.ts +107 -0
  15. package/dist/runtime/components/StarRating.d.vue.ts +7 -7
  16. package/dist/runtime/components/StarRating.vue +1 -0
  17. package/dist/runtime/components/StarRating.vue.d.ts +7 -7
  18. package/dist/runtime/components/auto-form-renderer/AutoFormRendererArray.d.vue.ts +6 -4
  19. package/dist/runtime/components/auto-form-renderer/AutoFormRendererArray.vue +1 -1
  20. package/dist/runtime/components/auto-form-renderer/AutoFormRendererArray.vue.d.ts +6 -4
  21. package/dist/runtime/components/auto-form-renderer/AutoFormRendererField.d.vue.ts +6 -4
  22. package/dist/runtime/components/auto-form-renderer/AutoFormRendererField.vue.d.ts +6 -4
  23. package/dist/runtime/components/auto-form-renderer/AutoFormRendererLayout.d.vue.ts +6 -4
  24. package/dist/runtime/components/auto-form-renderer/AutoFormRendererLayout.vue.d.ts +6 -4
  25. package/dist/runtime/components/auto-form-renderer/AutoFormRendererNested.d.vue.ts +6 -4
  26. package/dist/runtime/components/auto-form-renderer/AutoFormRendererNested.vue.d.ts +6 -4
  27. package/dist/runtime/components/input/WithCharacterLimit.d.vue.ts +11 -5
  28. package/dist/runtime/components/input/WithCharacterLimit.vue.d.ts +11 -5
  29. package/dist/runtime/components/input/WithClear.d.vue.ts +12 -5
  30. package/dist/runtime/components/input/WithClear.vue.d.ts +12 -5
  31. package/dist/runtime/components/input/WithCopy.d.vue.ts +12 -5
  32. package/dist/runtime/components/input/WithCopy.vue.d.ts +12 -5
  33. package/dist/runtime/components/input/WithPasswordToggle.d.vue.ts +11 -5
  34. package/dist/runtime/components/input/WithPasswordToggle.vue.d.ts +11 -5
  35. package/dist/runtime/components/theme-picker/ThemePicker.d.vue.ts +3 -0
  36. package/dist/runtime/components/theme-picker/ThemePicker.vue +235 -0
  37. package/dist/runtime/components/theme-picker/ThemePicker.vue.d.ts +3 -0
  38. package/dist/runtime/components/theme-picker/ThemePickerButton.d.vue.ts +18 -0
  39. package/dist/runtime/components/theme-picker/ThemePickerButton.vue +34 -0
  40. package/dist/runtime/components/theme-picker/ThemePickerButton.vue.d.ts +18 -0
  41. package/dist/runtime/composables/useApiAuth.d.ts +47 -0
  42. package/dist/runtime/composables/useApiAuth.js +66 -0
  43. package/dist/runtime/composables/useApiFetch.d.ts +42 -0
  44. package/dist/runtime/composables/useApiFetch.js +41 -0
  45. package/dist/runtime/composables/useAutoForm.d.ts +81 -605
  46. package/dist/runtime/composables/useAutoForm.js +3 -1
  47. package/dist/runtime/composables/useClientApiFetch.d.ts +24 -0
  48. package/dist/runtime/composables/useClientApiFetch.js +8 -0
  49. package/dist/runtime/composables/useDateFormatter.d.ts +21 -7
  50. package/dist/runtime/composables/useDateFormatter.js +92 -57
  51. package/dist/runtime/composables/useDownloadWithProgress.d.ts +48 -0
  52. package/dist/runtime/composables/useDownloadWithProgress.js +85 -0
  53. package/dist/runtime/composables/useTheme.d.ts +21 -0
  54. package/dist/runtime/composables/useTheme.js +143 -0
  55. package/dist/runtime/composables/useUploadWithProgress.d.ts +52 -0
  56. package/dist/runtime/composables/useUploadWithProgress.js +117 -0
  57. package/dist/runtime/internal/useAutoFormProvider.js +2 -2
  58. package/dist/runtime/plugins/api.factory.d.ts +2 -0
  59. package/dist/runtime/plugins/api.factory.js +186 -0
  60. package/dist/runtime/plugins/theme.d.ts +2 -0
  61. package/dist/runtime/plugins/theme.js +89 -0
  62. package/dist/runtime/schemas/api.d.ts +590 -0
  63. package/dist/runtime/schemas/api.js +228 -0
  64. package/dist/runtime/server/api/_movk/session.post.d.ts +10 -0
  65. package/dist/runtime/server/api/_movk/session.post.js +18 -0
  66. package/dist/runtime/style.css +1 -0
  67. package/dist/runtime/types/api.d.ts +218 -0
  68. package/dist/runtime/types/api.js +0 -0
  69. package/dist/runtime/types/auth.d.ts +34 -0
  70. package/dist/runtime/types/auto-form-renderer.d.ts +14 -22
  71. package/dist/runtime/types/auto-form-renderer.js +0 -0
  72. package/dist/runtime/types/components.d.ts +29 -41
  73. package/dist/runtime/types/components.js +0 -0
  74. package/dist/runtime/types/index.d.ts +1 -0
  75. package/dist/runtime/types/index.js +3 -2
  76. package/dist/runtime/utils/api-utils.d.ts +79 -0
  77. package/dist/runtime/utils/api-utils.js +127 -0
  78. package/package.json +38 -31
@@ -0,0 +1,147 @@
1
+ <script setup>
2
+ import { UIcon } from "#components";
3
+ import { useElementSize } from "@vueuse/core";
4
+ import { Motion } from "motion-v";
5
+ import { computed, ref, useTemplateRef } from "vue";
6
+ defineOptions({ inheritAttrs: false });
7
+ const props = defineProps({
8
+ sliderWidth: { type: Number, required: false, default: 50 },
9
+ height: { type: Number, required: false, default: 44 },
10
+ disabled: { type: Boolean, required: false, default: false },
11
+ text: { type: String, required: false, default: "\u8BF7\u5411\u53F3\u6ED1\u52A8\u9A8C\u8BC1" },
12
+ successText: { type: String, required: false, default: "\u9A8C\u8BC1\u6210\u529F" },
13
+ icon: { type: String, required: false, default: "i-lucide-chevrons-right" },
14
+ successIcon: { type: String, required: false, default: "i-lucide-check" },
15
+ threshold: { type: Number, required: false, default: 0.9 },
16
+ trackClass: { type: [Array, String, null, Number, Boolean], required: false, skipCheck: true },
17
+ sliderClass: { type: [Array, String, null, Number, Boolean], required: false, skipCheck: true },
18
+ textClass: { type: [Array, String, null, Number, Boolean], required: false, skipCheck: true },
19
+ class: { type: [Array, String, null, Number, Boolean], required: false, skipCheck: true }
20
+ });
21
+ const emit = defineEmits(["success", "dragStart", "dragEnd"]);
22
+ const isVerified = defineModel({ type: Boolean, ...{ default: false } });
23
+ const trackRef = useTemplateRef("track");
24
+ const { width: trackWidth } = useElementSize(trackRef);
25
+ const isDragging = ref(false);
26
+ const dragX = ref(0);
27
+ const maxDragDistance = computed(
28
+ () => trackWidth.value ? Math.max(0, trackWidth.value - props.sliderWidth - 8) : 200
29
+ );
30
+ const progress = computed(
31
+ () => isVerified.value ? 1 : maxDragDistance.value ? Math.min(dragX.value / maxDragDistance.value, 1) : 0
32
+ );
33
+ const canInteract = computed(() => !props.disabled && !isVerified.value);
34
+ const springTransition = { type: "spring", stiffness: 400, damping: 30 };
35
+ function handleDragStart() {
36
+ if (!canInteract.value) return;
37
+ isDragging.value = true;
38
+ emit("dragStart");
39
+ }
40
+ function handleDrag(_event, info) {
41
+ if (!canInteract.value) return;
42
+ dragX.value = Math.max(0, Math.min(info.offset.x, maxDragDistance.value));
43
+ }
44
+ function handleDragEnd() {
45
+ if (!canInteract.value) return;
46
+ isDragging.value = false;
47
+ const success = progress.value >= props.threshold;
48
+ if (success) {
49
+ isVerified.value = true;
50
+ emit("success");
51
+ } else {
52
+ dragX.value = 0;
53
+ }
54
+ emit("dragEnd", success);
55
+ }
56
+ function reset() {
57
+ isVerified.value = false;
58
+ dragX.value = 0;
59
+ }
60
+ defineExpose({ reset });
61
+ </script>
62
+
63
+ <template>
64
+ <div
65
+ :class="[
66
+ 'relative select-none overflow-hidden rounded-lg border transition-colors duration-300',
67
+ props.class,
68
+ disabled ? 'opacity-50 cursor-not-allowed' : '',
69
+ isVerified ? 'bg-success border-transparent' : 'bg-elevated border-default'
70
+ ]"
71
+ :style="{ height: `${height}px` }"
72
+ role="slider"
73
+ :aria-label="text"
74
+ :aria-valuenow="Math.round(progress * 100)"
75
+ aria-valuemin="0"
76
+ aria-valuemax="100"
77
+ :aria-disabled="disabled"
78
+ >
79
+ <div ref="track" class="absolute inset-0" :class="trackClass">
80
+ <Motion
81
+ v-if="!isVerified"
82
+ as="div"
83
+ class="absolute inset-y-0 left-0 bg-primary/20"
84
+ :animate="{ width: `${progress * 100}%`, opacity: 0.6 }"
85
+ :transition="springTransition"
86
+ />
87
+
88
+ <div
89
+ class="absolute inset-0 flex items-center justify-center text-sm font-medium pointer-events-none"
90
+ :class="textClass"
91
+ >
92
+ <Motion
93
+ v-if="!isVerified"
94
+ as="span"
95
+ class="relative inline-block bg-size-[200%_100%] bg-clip-text text-transparent bg-no-repeat"
96
+ :style="{
97
+ backgroundImage: 'radial-gradient(circle at center, var(--color-gray-500), transparent), linear-gradient(var(--color-neutral-400), var(--color-neutral-400))',
98
+ opacity: 1 - progress * 0.5
99
+ }"
100
+ :animate="{ backgroundPosition: '-200% 50%, 0 0' }"
101
+ :initial="{ backgroundPosition: '200% 50%, 0 0' }"
102
+ :transition="{
103
+ repeat: Infinity,
104
+ duration: 2,
105
+ ease: 'linear'
106
+ }"
107
+ >
108
+ {{ text }}
109
+ </Motion>
110
+ <span v-else class="text-inverted font-medium">{{ successText }}</span>
111
+ </div>
112
+ </div>
113
+
114
+ <Motion
115
+ as="div"
116
+ class="absolute inset-1"
117
+ :style="{ width: `${sliderWidth}px` }"
118
+ :initial="{ x: 0 }"
119
+ :animate="{ x: isVerified ? maxDragDistance : isDragging ? dragX : 0 }"
120
+ :transition="isDragging ? { duration: 0 } : springTransition"
121
+ :while-hover="canInteract ? { scale: 1.02 } : void 0"
122
+ :while-tap="canInteract ? { scale: 0.98 } : void 0"
123
+ :drag="canInteract ? 'x' : false"
124
+ :drag-constraints="{ left: 0, right: maxDragDistance }"
125
+ :drag-elastic="0"
126
+ :drag-momentum="false"
127
+ @drag-start="handleDragStart"
128
+ @drag="handleDrag"
129
+ @drag-end="handleDragEnd"
130
+ >
131
+ <div
132
+ class="size-full flex items-center justify-center rounded-md shadow-sm transition-colors"
133
+ :class="[
134
+ sliderClass,
135
+ isVerified ? 'bg-white/90' : 'bg-default cursor-grab active:cursor-grabbing ring-1 ring-default'
136
+ ]"
137
+ >
138
+ <slot name="slider" :verified="isVerified" :progress="progress">
139
+ <UIcon
140
+ :name="isVerified ? successIcon : icon"
141
+ :class="['size-5', isVerified ? 'text-success' : 'text-primary']"
142
+ />
143
+ </slot>
144
+ </div>
145
+ </Motion>
146
+ </div>
147
+ </template>
@@ -0,0 +1,107 @@
1
+ import type { ClassNameValue } from 'tailwind-merge';
2
+ export interface SlideVerifyProps {
3
+ /**
4
+ * 滑块宽度
5
+ * @defaultValue 50
6
+ */
7
+ sliderWidth?: number;
8
+ /**
9
+ * 滑块高度
10
+ * @defaultValue 44
11
+ */
12
+ height?: number;
13
+ /**
14
+ * 是否禁用
15
+ * @defaultValue false
16
+ */
17
+ disabled?: boolean;
18
+ /**
19
+ * 待滑动时的提示文本
20
+ * @defaultValue '请向右滑动验证'
21
+ */
22
+ text?: string;
23
+ /**
24
+ * 验证成功时的提示文本
25
+ * @defaultValue '验证成功'
26
+ */
27
+ successText?: string;
28
+ /**
29
+ * 滑块图标
30
+ * @defaultValue 'i-lucide-chevrons-right'
31
+ */
32
+ icon?: string;
33
+ /**
34
+ * 验证成功时的图标
35
+ * @defaultValue 'i-lucide-check'
36
+ */
37
+ successIcon?: string;
38
+ /**
39
+ * 完成验证所需的阈值百分比(0-1)
40
+ * @defaultValue 0.9
41
+ */
42
+ threshold?: number;
43
+ /**
44
+ * 自定义轨道样式
45
+ */
46
+ trackClass?: ClassNameValue;
47
+ /**
48
+ * 自定义滑块样式
49
+ */
50
+ sliderClass?: ClassNameValue;
51
+ /**
52
+ * 自定义文本样式
53
+ */
54
+ textClass?: ClassNameValue;
55
+ /**
56
+ * 自定义根元素样式
57
+ */
58
+ class?: ClassNameValue;
59
+ }
60
+ export interface SlideVerifyEmits {
61
+ success: [];
62
+ dragStart: [];
63
+ dragEnd: [success: boolean];
64
+ }
65
+ type __VLS_Props = SlideVerifyProps;
66
+ declare function reset(): void;
67
+ type __VLS_ModelProps = {
68
+ modelValue?: boolean;
69
+ };
70
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
71
+ declare var __VLS_22: {
72
+ verified: boolean;
73
+ progress: number;
74
+ };
75
+ type __VLS_Slots = {} & {
76
+ slider?: (props: typeof __VLS_22) => any;
77
+ };
78
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
79
+ reset: typeof reset;
80
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
+ "update:modelValue": (value: boolean) => any;
82
+ success: () => any;
83
+ dragStart: () => any;
84
+ dragEnd: (success: boolean) => any;
85
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
86
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
87
+ onSuccess?: (() => any) | undefined;
88
+ onDragStart?: (() => any) | undefined;
89
+ onDragEnd?: ((success: boolean) => any) | undefined;
90
+ }>, {
91
+ disabled: boolean;
92
+ icon: string;
93
+ text: string;
94
+ height: number;
95
+ sliderWidth: number;
96
+ successText: string;
97
+ successIcon: string;
98
+ threshold: number;
99
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
100
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
101
+ declare const _default: typeof __VLS_export;
102
+ export default _default;
103
+ type __VLS_WithSlots<T, S> = T & {
104
+ new (): {
105
+ $slots: S;
106
+ };
107
+ };
@@ -75,29 +75,29 @@ export interface StarRatingEmits {
75
75
  declare var __VLS_1: {
76
76
  value: number;
77
77
  max: number;
78
- }, __VLS_14: {
78
+ }, __VLS_13: {
79
79
  value: number;
80
80
  max: number;
81
- label: any;
82
- }, __VLS_22: {
81
+ label: string;
82
+ }, __VLS_20: {
83
83
  value: number;
84
84
  max: number;
85
85
  };
86
86
  type __VLS_Slots = {} & {
87
87
  prefix?: (props: typeof __VLS_1) => any;
88
88
  } & {
89
- badge?: (props: typeof __VLS_14) => any;
89
+ badge?: (props: typeof __VLS_13) => any;
90
90
  } & {
91
- suffix?: (props: typeof __VLS_22) => any;
91
+ suffix?: (props: typeof __VLS_20) => any;
92
92
  };
93
93
  declare const __VLS_base: import("vue").DefineComponent<StarRatingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
94
94
  change: (value: number) => any;
95
- "update:modelValue": (value: number) => any;
96
95
  hover: (value: number | null) => any;
96
+ "update:modelValue": (value: number) => any;
97
97
  }, string, import("vue").PublicProps, Readonly<StarRatingProps> & Readonly<{
98
98
  onChange?: ((value: number) => any) | undefined;
99
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
100
99
  onHover?: ((value: number | null) => any) | undefined;
100
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
101
101
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
102
102
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
103
103
  declare const _default: typeof __VLS_export;
@@ -31,6 +31,7 @@ const {
31
31
  clearable: { type: Boolean, required: false }
32
32
  });
33
33
  const emit = defineEmits(["update:modelValue", "change", "hover"]);
34
+ defineOptions({ inheritAttrs: false });
34
35
  const hoveredStar = ref(null);
35
36
  const focusedIndex = ref(0);
36
37
  const isInteractive = computed(() => !disabled && !readonly);
@@ -75,29 +75,29 @@ export interface StarRatingEmits {
75
75
  declare var __VLS_1: {
76
76
  value: number;
77
77
  max: number;
78
- }, __VLS_14: {
78
+ }, __VLS_13: {
79
79
  value: number;
80
80
  max: number;
81
- label: any;
82
- }, __VLS_22: {
81
+ label: string;
82
+ }, __VLS_20: {
83
83
  value: number;
84
84
  max: number;
85
85
  };
86
86
  type __VLS_Slots = {} & {
87
87
  prefix?: (props: typeof __VLS_1) => any;
88
88
  } & {
89
- badge?: (props: typeof __VLS_14) => any;
89
+ badge?: (props: typeof __VLS_13) => any;
90
90
  } & {
91
- suffix?: (props: typeof __VLS_22) => any;
91
+ suffix?: (props: typeof __VLS_20) => any;
92
92
  };
93
93
  declare const __VLS_base: import("vue").DefineComponent<StarRatingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
94
94
  change: (value: number) => any;
95
- "update:modelValue": (value: number) => any;
96
95
  hover: (value: number | null) => any;
96
+ "update:modelValue": (value: number) => any;
97
97
  }, string, import("vue").PublicProps, Readonly<StarRatingProps> & Readonly<{
98
98
  onChange?: ((value: number) => any) | undefined;
99
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
100
99
  onHover?: ((value: number | null) => any) | undefined;
100
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
101
101
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
102
102
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
103
103
  declare const _default: typeof __VLS_export;
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormRendererArrayProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormRendererArrayProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormRendererArrayProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -55,7 +55,7 @@ function updateFieldPaths(template, oldBasePath, newBasePath, hintSlotFactory) {
55
55
  fieldSlots: isNested && !isObject ? {
56
56
  ...template.meta?.fieldSlots
57
57
  } : {
58
- hint: ({ open, path: path2, count }) => hintSlotFactory(template, path2, open, count),
58
+ hint: (props) => hintSlotFactory(template, props.path, props.open, props.count),
59
59
  ...template.meta?.fieldSlots
60
60
  }
61
61
  }
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormRendererArrayProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormRendererArrayProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormRendererArrayProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormFieldProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormFieldProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormFieldProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormFieldProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormFieldProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormFieldProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormRendererLayoutProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormRendererLayoutProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormRendererLayoutProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormRendererLayoutProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormRendererLayoutProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormRendererLayoutProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormRendererNestedProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormRendererNestedProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormRendererNestedProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -1,7 +1,7 @@
1
1
  import type { z } from 'zod/v4';
2
2
  import type { AutoFormRendererNestedProps } from '../../types/auto-form-renderer.js';
3
- declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<AutoFormRendererNestedProps<S>> & import("vue").PublicProps & (typeof globalThis extends {
3
+ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<AutoFormRendererNestedProps<S>> & (typeof globalThis extends {
5
5
  __VLS_PROPS_FALLBACK: infer P;
6
6
  } ? P : {});
7
7
  expose: (exposed: {}) => void;
@@ -13,6 +13,8 @@ declare const __VLS_export: <S extends z.ZodObject>(__VLS_props: NonNullable<Awa
13
13
  };
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_PrettifyLocal<T> = {
16
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
17
+ [K in keyof T]: T[K];
18
+ } : {
17
19
  [K in keyof T as K]: T[K];
18
- } & {};
20
+ }) & {};
@@ -1,9 +1,13 @@
1
1
  import type { InputProps, InputValue } from '@nuxt/ui';
2
2
  import type { WithCharacterLimitProps } from '../../types/components.js';
3
- declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<(WithCharacterLimitProps<import("@nuxt/ui/.").AcceptableValue> & {
3
+ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(WithCharacterLimitProps<import("@nuxt/ui/.").AcceptableValue> & {
5
5
  modelValue?: InputProps["modelValue"];
6
- }) & __VLS_EmitsToProps<__VLS_NormalizeEmits<((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)>>> & import("vue").PublicProps & (typeof globalThis extends {
6
+ }) & {
7
+ onBlur?: ((event: FocusEvent) => any) | undefined;
8
+ onChange?: ((event: Event) => any) | undefined;
9
+ "onUpdate:modelValue"?: ((value: import("@nuxt/ui/.").AcceptableValue | undefined) => any) | undefined;
10
+ }> & (typeof globalThis extends {
7
11
  __VLS_PROPS_FALLBACK: infer P;
8
12
  } ? P : {});
9
13
  expose: (exposed: {}) => void;
@@ -15,6 +19,8 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
15
19
  };
16
20
  declare const _default: typeof __VLS_export;
17
21
  export default _default;
18
- type __VLS_PrettifyLocal<T> = {
22
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
23
+ [K in keyof T]: T[K];
24
+ } : {
19
25
  [K in keyof T as K]: T[K];
20
- } & {};
26
+ }) & {};
@@ -1,9 +1,13 @@
1
1
  import type { InputProps, InputValue } from '@nuxt/ui';
2
2
  import type { WithCharacterLimitProps } from '../../types/components.js';
3
- declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<(WithCharacterLimitProps<import("@nuxt/ui/.").AcceptableValue> & {
3
+ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(WithCharacterLimitProps<import("@nuxt/ui/.").AcceptableValue> & {
5
5
  modelValue?: InputProps["modelValue"];
6
- }) & __VLS_EmitsToProps<__VLS_NormalizeEmits<((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)>>> & import("vue").PublicProps & (typeof globalThis extends {
6
+ }) & {
7
+ onBlur?: ((event: FocusEvent) => any) | undefined;
8
+ onChange?: ((event: Event) => any) | undefined;
9
+ "onUpdate:modelValue"?: ((value: import("@nuxt/ui/.").AcceptableValue | undefined) => any) | undefined;
10
+ }> & (typeof globalThis extends {
7
11
  __VLS_PROPS_FALLBACK: infer P;
8
12
  } ? P : {});
9
13
  expose: (exposed: {}) => void;
@@ -15,6 +19,8 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
15
19
  };
16
20
  declare const _default: typeof __VLS_export;
17
21
  export default _default;
18
- type __VLS_PrettifyLocal<T> = {
22
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
23
+ [K in keyof T]: T[K];
24
+ } : {
19
25
  [K in keyof T as K]: T[K];
20
- } & {};
26
+ }) & {};
@@ -1,9 +1,14 @@
1
1
  import type { InputProps, InputValue } from '@nuxt/ui';
2
2
  import type { WithClearProps } from '../../types/components.js';
3
- declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<(WithClearProps<import("@nuxt/ui/.").AcceptableValue> & {
3
+ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(WithClearProps<import("@nuxt/ui/.").AcceptableValue> & {
5
5
  modelValue?: InputProps<T>["modelValue"];
6
- }) & __VLS_EmitsToProps<__VLS_NormalizeEmits<((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)>>> & import("vue").PublicProps & (typeof globalThis extends {
6
+ }) & {
7
+ onClear?: (() => any) | undefined;
8
+ onBlur?: ((event: FocusEvent) => any) | undefined;
9
+ onChange?: ((event: Event) => any) | undefined;
10
+ "onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
11
+ }> & (typeof globalThis extends {
7
12
  __VLS_PROPS_FALLBACK: infer P;
8
13
  } ? P : {});
9
14
  expose: (exposed: {}) => void;
@@ -15,6 +20,8 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
15
20
  };
16
21
  declare const _default: typeof __VLS_export;
17
22
  export default _default;
18
- type __VLS_PrettifyLocal<T> = {
23
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
24
+ [K in keyof T]: T[K];
25
+ } : {
19
26
  [K in keyof T as K]: T[K];
20
- } & {};
27
+ }) & {};
@@ -1,9 +1,14 @@
1
1
  import type { InputProps, InputValue } from '@nuxt/ui';
2
2
  import type { WithClearProps } from '../../types/components.js';
3
- declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<(WithClearProps<import("@nuxt/ui/.").AcceptableValue> & {
3
+ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(WithClearProps<import("@nuxt/ui/.").AcceptableValue> & {
5
5
  modelValue?: InputProps<T>["modelValue"];
6
- }) & __VLS_EmitsToProps<__VLS_NormalizeEmits<((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)>>> & import("vue").PublicProps & (typeof globalThis extends {
6
+ }) & {
7
+ onClear?: (() => any) | undefined;
8
+ onBlur?: ((event: FocusEvent) => any) | undefined;
9
+ onChange?: ((event: Event) => any) | undefined;
10
+ "onUpdate:modelValue"?: ((value: T | undefined) => any) | undefined;
11
+ }> & (typeof globalThis extends {
7
12
  __VLS_PROPS_FALLBACK: infer P;
8
13
  } ? P : {});
9
14
  expose: (exposed: {}) => void;
@@ -15,6 +20,8 @@ declare const __VLS_export: <T extends InputValue>(__VLS_props: NonNullable<Awai
15
20
  };
16
21
  declare const _default: typeof __VLS_export;
17
22
  export default _default;
18
- type __VLS_PrettifyLocal<T> = {
23
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
24
+ [K in keyof T]: T[K];
25
+ } : {
19
26
  [K in keyof T as K]: T[K];
20
- } & {};
27
+ }) & {};