@shwfed/nuxt 0.8.3 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/fields.d.vue.ts +160 -158
- package/dist/runtime/components/fields.vue +10 -8
- package/dist/runtime/components/fields.vue.d.ts +160 -158
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +311 -159
- package/dist/runtime/components/ui/fields/Fields.vue +32 -20
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +311 -159
- package/dist/runtime/components/ui/fields/schema.d.ts +111 -0
- package/dist/runtime/components/ui/fields/schema.js +5 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +156 -150
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +64 -21
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +156 -150
- package/package.json +1 -1
|
@@ -1,175 +1,327 @@
|
|
|
1
1
|
import { Effect } from 'effect';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { CalendarFieldC, FieldC, NumberFieldC, SelectFieldC, StringFieldC, ValidationRuleC, validationC, } from './schema.js';
|
|
5
|
-
export type { Field, ValidationRule } from './schema.js';
|
|
2
|
+
export { CalendarFieldC, FieldC, FieldsConfigC, NumberFieldC, SelectFieldC, StringFieldC, ValidationRuleC, validationC, } from './schema.js';
|
|
3
|
+
export type { Field, FieldsConfig, ValidationRule } from './schema.js';
|
|
6
4
|
declare const _default: typeof __VLS_export;
|
|
7
5
|
export default _default;
|
|
8
6
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
config: Effect.Effect<Readonly<{
|
|
8
|
+
orientation: "vertical" | "horizontal" | "floating";
|
|
9
|
+
fields: readonly ({
|
|
10
|
+
type: "string";
|
|
11
|
+
path: string;
|
|
12
|
+
title: readonly {
|
|
13
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
14
|
+
message: string;
|
|
15
|
+
}[];
|
|
16
|
+
icon?: string | undefined;
|
|
17
|
+
style?: string | undefined;
|
|
18
|
+
discardEmptyString?: boolean | undefined;
|
|
19
|
+
maxLength?: string | undefined;
|
|
20
|
+
hidden?: string | undefined;
|
|
21
|
+
disabled?: string | undefined;
|
|
22
|
+
validation?: readonly Readonly<{
|
|
23
|
+
expression: string;
|
|
24
|
+
message: string;
|
|
25
|
+
}>[] | undefined;
|
|
26
|
+
} | {
|
|
27
|
+
type: "number";
|
|
28
|
+
path: string;
|
|
29
|
+
title: readonly {
|
|
30
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
31
|
+
message: string;
|
|
32
|
+
}[];
|
|
33
|
+
icon?: string | undefined;
|
|
34
|
+
style?: string | undefined;
|
|
35
|
+
min?: string | undefined;
|
|
36
|
+
max?: string | undefined;
|
|
37
|
+
step?: string | undefined;
|
|
38
|
+
hidden?: string | undefined;
|
|
39
|
+
disabled?: string | undefined;
|
|
40
|
+
validation?: readonly Readonly<{
|
|
41
|
+
expression: string;
|
|
42
|
+
message: string;
|
|
43
|
+
}>[] | undefined;
|
|
44
|
+
} | {
|
|
45
|
+
type: "select";
|
|
46
|
+
path: string;
|
|
47
|
+
title: readonly {
|
|
48
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
49
|
+
message: string;
|
|
50
|
+
}[];
|
|
51
|
+
options: string;
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
key: string;
|
|
55
|
+
icon?: string | undefined;
|
|
56
|
+
style?: string | undefined;
|
|
57
|
+
hidden?: string | undefined;
|
|
58
|
+
disabled?: string | undefined;
|
|
59
|
+
validation?: readonly Readonly<{
|
|
60
|
+
expression: string;
|
|
61
|
+
message: string;
|
|
62
|
+
}>[] | undefined;
|
|
63
|
+
} | {
|
|
64
|
+
type: "calendar";
|
|
65
|
+
path: string;
|
|
66
|
+
title: readonly {
|
|
67
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
68
|
+
message: string;
|
|
69
|
+
}[];
|
|
70
|
+
mode: "date" | "month" | "year";
|
|
71
|
+
value: string;
|
|
72
|
+
icon?: string | undefined;
|
|
73
|
+
style?: string | undefined;
|
|
74
|
+
display?: string | undefined;
|
|
75
|
+
disableDate?: string | undefined;
|
|
76
|
+
hidden?: string | undefined;
|
|
77
|
+
disabled?: string | undefined;
|
|
78
|
+
validation?: readonly Readonly<{
|
|
79
|
+
expression: string;
|
|
80
|
+
message: string;
|
|
81
|
+
}>[] | undefined;
|
|
82
|
+
})[];
|
|
83
|
+
}>>;
|
|
11
84
|
} & {
|
|
12
85
|
modelValue?: Record<string, unknown>;
|
|
13
86
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
87
|
"update:modelValue": (value: Record<string, unknown>) => any;
|
|
15
|
-
"update:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
"update:config": (args_0: Readonly<{
|
|
89
|
+
orientation: "vertical" | "horizontal" | "floating";
|
|
90
|
+
fields: readonly ({
|
|
91
|
+
type: "string";
|
|
92
|
+
path: string;
|
|
93
|
+
title: readonly {
|
|
94
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
95
|
+
message: string;
|
|
96
|
+
}[];
|
|
97
|
+
icon?: string | undefined;
|
|
98
|
+
style?: string | undefined;
|
|
99
|
+
discardEmptyString?: boolean | undefined;
|
|
100
|
+
maxLength?: string | undefined;
|
|
101
|
+
hidden?: string | undefined;
|
|
102
|
+
disabled?: string | undefined;
|
|
103
|
+
validation?: readonly Readonly<{
|
|
104
|
+
expression: string;
|
|
105
|
+
message: string;
|
|
106
|
+
}>[] | undefined;
|
|
107
|
+
} | {
|
|
108
|
+
type: "number";
|
|
109
|
+
path: string;
|
|
110
|
+
title: readonly {
|
|
111
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
112
|
+
message: string;
|
|
113
|
+
}[];
|
|
114
|
+
icon?: string | undefined;
|
|
115
|
+
style?: string | undefined;
|
|
116
|
+
min?: string | undefined;
|
|
117
|
+
max?: string | undefined;
|
|
118
|
+
step?: string | undefined;
|
|
119
|
+
hidden?: string | undefined;
|
|
120
|
+
disabled?: string | undefined;
|
|
121
|
+
validation?: readonly Readonly<{
|
|
122
|
+
expression: string;
|
|
123
|
+
message: string;
|
|
124
|
+
}>[] | undefined;
|
|
125
|
+
} | {
|
|
126
|
+
type: "select";
|
|
127
|
+
path: string;
|
|
128
|
+
title: readonly {
|
|
129
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
130
|
+
message: string;
|
|
131
|
+
}[];
|
|
132
|
+
options: string;
|
|
133
|
+
label: string;
|
|
134
|
+
value: string;
|
|
135
|
+
key: string;
|
|
136
|
+
icon?: string | undefined;
|
|
137
|
+
style?: string | undefined;
|
|
138
|
+
hidden?: string | undefined;
|
|
139
|
+
disabled?: string | undefined;
|
|
140
|
+
validation?: readonly Readonly<{
|
|
141
|
+
expression: string;
|
|
142
|
+
message: string;
|
|
143
|
+
}>[] | undefined;
|
|
144
|
+
} | {
|
|
145
|
+
type: "calendar";
|
|
146
|
+
path: string;
|
|
147
|
+
title: readonly {
|
|
148
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
149
|
+
message: string;
|
|
150
|
+
}[];
|
|
151
|
+
mode: "date" | "month" | "year";
|
|
152
|
+
value: string;
|
|
153
|
+
icon?: string | undefined;
|
|
154
|
+
style?: string | undefined;
|
|
155
|
+
display?: string | undefined;
|
|
156
|
+
disableDate?: string | undefined;
|
|
157
|
+
hidden?: string | undefined;
|
|
158
|
+
disabled?: string | undefined;
|
|
159
|
+
validation?: readonly Readonly<{
|
|
160
|
+
expression: string;
|
|
161
|
+
message: string;
|
|
162
|
+
}>[] | undefined;
|
|
163
|
+
})[];
|
|
164
|
+
}>) => any;
|
|
89
165
|
}, string, import("vue").PublicProps, Readonly<{
|
|
90
|
-
|
|
91
|
-
|
|
166
|
+
config: Effect.Effect<Readonly<{
|
|
167
|
+
orientation: "vertical" | "horizontal" | "floating";
|
|
168
|
+
fields: readonly ({
|
|
169
|
+
type: "string";
|
|
170
|
+
path: string;
|
|
171
|
+
title: readonly {
|
|
172
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
173
|
+
message: string;
|
|
174
|
+
}[];
|
|
175
|
+
icon?: string | undefined;
|
|
176
|
+
style?: string | undefined;
|
|
177
|
+
discardEmptyString?: boolean | undefined;
|
|
178
|
+
maxLength?: string | undefined;
|
|
179
|
+
hidden?: string | undefined;
|
|
180
|
+
disabled?: string | undefined;
|
|
181
|
+
validation?: readonly Readonly<{
|
|
182
|
+
expression: string;
|
|
183
|
+
message: string;
|
|
184
|
+
}>[] | undefined;
|
|
185
|
+
} | {
|
|
186
|
+
type: "number";
|
|
187
|
+
path: string;
|
|
188
|
+
title: readonly {
|
|
189
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
190
|
+
message: string;
|
|
191
|
+
}[];
|
|
192
|
+
icon?: string | undefined;
|
|
193
|
+
style?: string | undefined;
|
|
194
|
+
min?: string | undefined;
|
|
195
|
+
max?: string | undefined;
|
|
196
|
+
step?: string | undefined;
|
|
197
|
+
hidden?: string | undefined;
|
|
198
|
+
disabled?: string | undefined;
|
|
199
|
+
validation?: readonly Readonly<{
|
|
200
|
+
expression: string;
|
|
201
|
+
message: string;
|
|
202
|
+
}>[] | undefined;
|
|
203
|
+
} | {
|
|
204
|
+
type: "select";
|
|
205
|
+
path: string;
|
|
206
|
+
title: readonly {
|
|
207
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
208
|
+
message: string;
|
|
209
|
+
}[];
|
|
210
|
+
options: string;
|
|
211
|
+
label: string;
|
|
212
|
+
value: string;
|
|
213
|
+
key: string;
|
|
214
|
+
icon?: string | undefined;
|
|
215
|
+
style?: string | undefined;
|
|
216
|
+
hidden?: string | undefined;
|
|
217
|
+
disabled?: string | undefined;
|
|
218
|
+
validation?: readonly Readonly<{
|
|
219
|
+
expression: string;
|
|
220
|
+
message: string;
|
|
221
|
+
}>[] | undefined;
|
|
222
|
+
} | {
|
|
223
|
+
type: "calendar";
|
|
224
|
+
path: string;
|
|
225
|
+
title: readonly {
|
|
226
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
227
|
+
message: string;
|
|
228
|
+
}[];
|
|
229
|
+
mode: "date" | "month" | "year";
|
|
230
|
+
value: string;
|
|
231
|
+
icon?: string | undefined;
|
|
232
|
+
style?: string | undefined;
|
|
233
|
+
display?: string | undefined;
|
|
234
|
+
disableDate?: string | undefined;
|
|
235
|
+
hidden?: string | undefined;
|
|
236
|
+
disabled?: string | undefined;
|
|
237
|
+
validation?: readonly Readonly<{
|
|
238
|
+
expression: string;
|
|
239
|
+
message: string;
|
|
240
|
+
}>[] | undefined;
|
|
241
|
+
})[];
|
|
242
|
+
}>>;
|
|
92
243
|
} & {
|
|
93
244
|
modelValue?: Record<string, unknown>;
|
|
94
245
|
}> & Readonly<{
|
|
95
246
|
"onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
96
|
-
"onUpdate:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
}
|
|
247
|
+
"onUpdate:config"?: ((args_0: Readonly<{
|
|
248
|
+
orientation: "vertical" | "horizontal" | "floating";
|
|
249
|
+
fields: readonly ({
|
|
250
|
+
type: "string";
|
|
251
|
+
path: string;
|
|
252
|
+
title: readonly {
|
|
253
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
254
|
+
message: string;
|
|
255
|
+
}[];
|
|
256
|
+
icon?: string | undefined;
|
|
257
|
+
style?: string | undefined;
|
|
258
|
+
discardEmptyString?: boolean | undefined;
|
|
259
|
+
maxLength?: string | undefined;
|
|
260
|
+
hidden?: string | undefined;
|
|
261
|
+
disabled?: string | undefined;
|
|
262
|
+
validation?: readonly Readonly<{
|
|
263
|
+
expression: string;
|
|
264
|
+
message: string;
|
|
265
|
+
}>[] | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
type: "number";
|
|
268
|
+
path: string;
|
|
269
|
+
title: readonly {
|
|
270
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
271
|
+
message: string;
|
|
272
|
+
}[];
|
|
273
|
+
icon?: string | undefined;
|
|
274
|
+
style?: string | undefined;
|
|
275
|
+
min?: string | undefined;
|
|
276
|
+
max?: string | undefined;
|
|
277
|
+
step?: string | undefined;
|
|
278
|
+
hidden?: string | undefined;
|
|
279
|
+
disabled?: string | undefined;
|
|
280
|
+
validation?: readonly Readonly<{
|
|
281
|
+
expression: string;
|
|
282
|
+
message: string;
|
|
283
|
+
}>[] | undefined;
|
|
284
|
+
} | {
|
|
285
|
+
type: "select";
|
|
286
|
+
path: string;
|
|
287
|
+
title: readonly {
|
|
288
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
289
|
+
message: string;
|
|
290
|
+
}[];
|
|
291
|
+
options: string;
|
|
292
|
+
label: string;
|
|
293
|
+
value: string;
|
|
294
|
+
key: string;
|
|
295
|
+
icon?: string | undefined;
|
|
296
|
+
style?: string | undefined;
|
|
297
|
+
hidden?: string | undefined;
|
|
298
|
+
disabled?: string | undefined;
|
|
299
|
+
validation?: readonly Readonly<{
|
|
300
|
+
expression: string;
|
|
301
|
+
message: string;
|
|
302
|
+
}>[] | undefined;
|
|
303
|
+
} | {
|
|
304
|
+
type: "calendar";
|
|
305
|
+
path: string;
|
|
306
|
+
title: readonly {
|
|
307
|
+
locale: "zh" | "ja" | "en" | "ko";
|
|
308
|
+
message: string;
|
|
309
|
+
}[];
|
|
310
|
+
mode: "date" | "month" | "year";
|
|
311
|
+
value: string;
|
|
312
|
+
icon?: string | undefined;
|
|
313
|
+
style?: string | undefined;
|
|
314
|
+
display?: string | undefined;
|
|
315
|
+
disableDate?: string | undefined;
|
|
316
|
+
hidden?: string | undefined;
|
|
317
|
+
disabled?: string | undefined;
|
|
318
|
+
validation?: readonly Readonly<{
|
|
319
|
+
expression: string;
|
|
320
|
+
message: string;
|
|
321
|
+
}>[] | undefined;
|
|
322
|
+
})[];
|
|
323
|
+
}>) => any) | undefined;
|
|
324
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
173
325
|
default?: (props: {}) => any;
|
|
174
326
|
}>;
|
|
175
327
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -206,5 +206,116 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
206
206
|
message: z.ZodString;
|
|
207
207
|
}, z.core.$strip>>>>>;
|
|
208
208
|
}, z.core.$strip>], "type">;
|
|
209
|
+
export declare const FieldsOrientationC: z.ZodEnum<{
|
|
210
|
+
vertical: "vertical";
|
|
211
|
+
horizontal: "horizontal";
|
|
212
|
+
floating: "floating";
|
|
213
|
+
}>;
|
|
214
|
+
export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
215
|
+
orientation: z.ZodEnum<{
|
|
216
|
+
vertical: "vertical";
|
|
217
|
+
horizontal: "horizontal";
|
|
218
|
+
floating: "floating";
|
|
219
|
+
}>;
|
|
220
|
+
fields: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
221
|
+
type: z.ZodLiteral<"string">;
|
|
222
|
+
path: z.ZodString;
|
|
223
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
224
|
+
locale: z.ZodEnum<{
|
|
225
|
+
zh: "zh";
|
|
226
|
+
ja: "ja";
|
|
227
|
+
en: "en";
|
|
228
|
+
ko: "ko";
|
|
229
|
+
}>;
|
|
230
|
+
message: z.ZodString;
|
|
231
|
+
}, z.core.$strip>>>;
|
|
232
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
233
|
+
style: z.ZodOptional<z.ZodString>;
|
|
234
|
+
discardEmptyString: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
maxLength: z.ZodOptional<z.ZodString>;
|
|
236
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
237
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
238
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
239
|
+
expression: z.ZodString;
|
|
240
|
+
message: z.ZodString;
|
|
241
|
+
}, z.core.$strip>>>>>;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
type: z.ZodLiteral<"number">;
|
|
244
|
+
path: z.ZodString;
|
|
245
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
246
|
+
locale: z.ZodEnum<{
|
|
247
|
+
zh: "zh";
|
|
248
|
+
ja: "ja";
|
|
249
|
+
en: "en";
|
|
250
|
+
ko: "ko";
|
|
251
|
+
}>;
|
|
252
|
+
message: z.ZodString;
|
|
253
|
+
}, z.core.$strip>>>;
|
|
254
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
255
|
+
style: z.ZodOptional<z.ZodString>;
|
|
256
|
+
min: z.ZodOptional<z.ZodString>;
|
|
257
|
+
max: z.ZodOptional<z.ZodString>;
|
|
258
|
+
step: z.ZodOptional<z.ZodString>;
|
|
259
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
260
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
261
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
262
|
+
expression: z.ZodString;
|
|
263
|
+
message: z.ZodString;
|
|
264
|
+
}, z.core.$strip>>>>>;
|
|
265
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"select">;
|
|
267
|
+
path: z.ZodString;
|
|
268
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
269
|
+
locale: z.ZodEnum<{
|
|
270
|
+
zh: "zh";
|
|
271
|
+
ja: "ja";
|
|
272
|
+
en: "en";
|
|
273
|
+
ko: "ko";
|
|
274
|
+
}>;
|
|
275
|
+
message: z.ZodString;
|
|
276
|
+
}, z.core.$strip>>>;
|
|
277
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
278
|
+
options: z.ZodString;
|
|
279
|
+
label: z.ZodString;
|
|
280
|
+
value: z.ZodString;
|
|
281
|
+
key: z.ZodString;
|
|
282
|
+
style: z.ZodOptional<z.ZodString>;
|
|
283
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
284
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
285
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
286
|
+
expression: z.ZodString;
|
|
287
|
+
message: z.ZodString;
|
|
288
|
+
}, z.core.$strip>>>>>;
|
|
289
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
290
|
+
type: z.ZodLiteral<"calendar">;
|
|
291
|
+
path: z.ZodString;
|
|
292
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
293
|
+
locale: z.ZodEnum<{
|
|
294
|
+
zh: "zh";
|
|
295
|
+
ja: "ja";
|
|
296
|
+
en: "en";
|
|
297
|
+
ko: "ko";
|
|
298
|
+
}>;
|
|
299
|
+
message: z.ZodString;
|
|
300
|
+
}, z.core.$strip>>>;
|
|
301
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
302
|
+
style: z.ZodOptional<z.ZodString>;
|
|
303
|
+
mode: z.ZodEnum<{
|
|
304
|
+
date: "date";
|
|
305
|
+
month: "month";
|
|
306
|
+
year: "year";
|
|
307
|
+
}>;
|
|
308
|
+
display: z.ZodOptional<z.ZodString>;
|
|
309
|
+
value: z.ZodString;
|
|
310
|
+
disableDate: z.ZodOptional<z.ZodString>;
|
|
311
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
312
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
313
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
314
|
+
expression: z.ZodString;
|
|
315
|
+
message: z.ZodString;
|
|
316
|
+
}, z.core.$strip>>>>>;
|
|
317
|
+
}, z.core.$strip>], "type">>>;
|
|
318
|
+
}, z.core.$strip>>;
|
|
209
319
|
export type ValidationRule = z.infer<typeof ValidationRuleC>;
|
|
210
320
|
export type Field = z.infer<typeof FieldC>;
|
|
321
|
+
export type FieldsConfig = z.infer<typeof FieldsConfigC>;
|
|
@@ -64,3 +64,8 @@ export const FieldC = z.discriminatedUnion("type", [
|
|
|
64
64
|
SelectFieldC,
|
|
65
65
|
CalendarFieldC
|
|
66
66
|
]);
|
|
67
|
+
export const FieldsOrientationC = z.enum(["horizontal", "vertical", "floating"]);
|
|
68
|
+
export const FieldsConfigC = z.object({
|
|
69
|
+
orientation: FieldsOrientationC.describe("\u5B57\u6BB5\u5E03\u5C40\u65B9\u5411\uFF0C\u53EF\u9009 horizontal\u3001vertical \u6216 floating"),
|
|
70
|
+
fields: z.array(FieldC).readonly().describe("\u5B57\u6BB5\u5217\u8868")
|
|
71
|
+
}).readonly();
|