@shwfed/nuxt 0.9.1 → 0.10.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 +23 -3
- package/dist/runtime/components/fields.vue +1 -0
- package/dist/runtime/components/fields.vue.d.ts +23 -3
- package/dist/runtime/components/ui/field/FieldError.vue +1 -1
- package/dist/runtime/components/ui/field/index.js +1 -1
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +43 -2
- package/dist/runtime/components/ui/fields/Fields.vue +51 -11
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +43 -2
- package/dist/runtime/components/ui/fields/schema.d.ts +30 -2
- package/dist/runtime/components/ui/fields/schema.js +16 -1
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +18 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +667 -151
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +18 -0
- package/package.json +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Effect } from 'effect';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
import type { CSSProperties } from 'vue';
|
|
3
|
+
export { CalendarFieldC, FieldC, FieldsConfigC, NumberFieldC, SelectFieldC, SlotFieldC, StringFieldC, ValidationRuleC, validationC, } from './schema.js';
|
|
4
|
+
export type { Field, FieldsConfig, SlotField, ValidationRule } from './schema.js';
|
|
4
5
|
declare const _default: typeof __VLS_export;
|
|
5
6
|
export default _default;
|
|
6
7
|
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
7
8
|
config: Effect.Effect<Readonly<{
|
|
8
9
|
fields: readonly ({
|
|
10
|
+
id: string;
|
|
9
11
|
type: "string";
|
|
10
12
|
path: string;
|
|
11
13
|
title: readonly {
|
|
@@ -23,6 +25,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
23
25
|
message: string;
|
|
24
26
|
}>[] | undefined;
|
|
25
27
|
} | {
|
|
28
|
+
id: string;
|
|
26
29
|
type: "number";
|
|
27
30
|
path: string;
|
|
28
31
|
title: readonly {
|
|
@@ -41,6 +44,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
41
44
|
message: string;
|
|
42
45
|
}>[] | undefined;
|
|
43
46
|
} | {
|
|
47
|
+
id: string;
|
|
44
48
|
type: "select";
|
|
45
49
|
path: string;
|
|
46
50
|
title: readonly {
|
|
@@ -60,6 +64,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
60
64
|
message: string;
|
|
61
65
|
}>[] | undefined;
|
|
62
66
|
} | {
|
|
67
|
+
id: string;
|
|
63
68
|
type: "calendar";
|
|
64
69
|
path: string;
|
|
65
70
|
title: readonly {
|
|
@@ -78,8 +83,13 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
78
83
|
expression: string;
|
|
79
84
|
message: string;
|
|
80
85
|
}>[] | undefined;
|
|
86
|
+
} | {
|
|
87
|
+
id: string;
|
|
88
|
+
type: "slot";
|
|
89
|
+
style?: string | undefined;
|
|
81
90
|
})[];
|
|
82
91
|
orientation?: "vertical" | "horizontal" | "floating" | undefined;
|
|
92
|
+
style?: string | undefined;
|
|
83
93
|
}> | undefined>;
|
|
84
94
|
} & {
|
|
85
95
|
modelValue?: Record<string, unknown>;
|
|
@@ -87,6 +97,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
87
97
|
"update:modelValue": (value: Record<string, unknown>) => any;
|
|
88
98
|
"update:config": (args_0: Readonly<{
|
|
89
99
|
fields: readonly ({
|
|
100
|
+
id: string;
|
|
90
101
|
type: "string";
|
|
91
102
|
path: string;
|
|
92
103
|
title: readonly {
|
|
@@ -104,6 +115,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
104
115
|
message: string;
|
|
105
116
|
}>[] | undefined;
|
|
106
117
|
} | {
|
|
118
|
+
id: string;
|
|
107
119
|
type: "number";
|
|
108
120
|
path: string;
|
|
109
121
|
title: readonly {
|
|
@@ -122,6 +134,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
122
134
|
message: string;
|
|
123
135
|
}>[] | undefined;
|
|
124
136
|
} | {
|
|
137
|
+
id: string;
|
|
125
138
|
type: "select";
|
|
126
139
|
path: string;
|
|
127
140
|
title: readonly {
|
|
@@ -141,6 +154,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
141
154
|
message: string;
|
|
142
155
|
}>[] | undefined;
|
|
143
156
|
} | {
|
|
157
|
+
id: string;
|
|
144
158
|
type: "calendar";
|
|
145
159
|
path: string;
|
|
146
160
|
title: readonly {
|
|
@@ -159,12 +173,18 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
159
173
|
expression: string;
|
|
160
174
|
message: string;
|
|
161
175
|
}>[] | undefined;
|
|
176
|
+
} | {
|
|
177
|
+
id: string;
|
|
178
|
+
type: "slot";
|
|
179
|
+
style?: string | undefined;
|
|
162
180
|
})[];
|
|
163
181
|
orientation?: "vertical" | "horizontal" | "floating" | undefined;
|
|
182
|
+
style?: string | undefined;
|
|
164
183
|
}>) => any;
|
|
165
184
|
}, string, import("vue").PublicProps, Readonly<{
|
|
166
185
|
config: Effect.Effect<Readonly<{
|
|
167
186
|
fields: readonly ({
|
|
187
|
+
id: string;
|
|
168
188
|
type: "string";
|
|
169
189
|
path: string;
|
|
170
190
|
title: readonly {
|
|
@@ -182,6 +202,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
182
202
|
message: string;
|
|
183
203
|
}>[] | undefined;
|
|
184
204
|
} | {
|
|
205
|
+
id: string;
|
|
185
206
|
type: "number";
|
|
186
207
|
path: string;
|
|
187
208
|
title: readonly {
|
|
@@ -200,6 +221,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
200
221
|
message: string;
|
|
201
222
|
}>[] | undefined;
|
|
202
223
|
} | {
|
|
224
|
+
id: string;
|
|
203
225
|
type: "select";
|
|
204
226
|
path: string;
|
|
205
227
|
title: readonly {
|
|
@@ -219,6 +241,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
219
241
|
message: string;
|
|
220
242
|
}>[] | undefined;
|
|
221
243
|
} | {
|
|
244
|
+
id: string;
|
|
222
245
|
type: "calendar";
|
|
223
246
|
path: string;
|
|
224
247
|
title: readonly {
|
|
@@ -237,8 +260,13 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
237
260
|
expression: string;
|
|
238
261
|
message: string;
|
|
239
262
|
}>[] | undefined;
|
|
263
|
+
} | {
|
|
264
|
+
id: string;
|
|
265
|
+
type: "slot";
|
|
266
|
+
style?: string | undefined;
|
|
240
267
|
})[];
|
|
241
268
|
orientation?: "vertical" | "horizontal" | "floating" | undefined;
|
|
269
|
+
style?: string | undefined;
|
|
242
270
|
}> | undefined>;
|
|
243
271
|
} & {
|
|
244
272
|
modelValue?: Record<string, unknown>;
|
|
@@ -246,6 +274,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
246
274
|
"onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
247
275
|
"onUpdate:config"?: ((args_0: Readonly<{
|
|
248
276
|
fields: readonly ({
|
|
277
|
+
id: string;
|
|
249
278
|
type: "string";
|
|
250
279
|
path: string;
|
|
251
280
|
title: readonly {
|
|
@@ -263,6 +292,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
263
292
|
message: string;
|
|
264
293
|
}>[] | undefined;
|
|
265
294
|
} | {
|
|
295
|
+
id: string;
|
|
266
296
|
type: "number";
|
|
267
297
|
path: string;
|
|
268
298
|
title: readonly {
|
|
@@ -281,6 +311,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
281
311
|
message: string;
|
|
282
312
|
}>[] | undefined;
|
|
283
313
|
} | {
|
|
314
|
+
id: string;
|
|
284
315
|
type: "select";
|
|
285
316
|
path: string;
|
|
286
317
|
title: readonly {
|
|
@@ -300,6 +331,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
300
331
|
message: string;
|
|
301
332
|
}>[] | undefined;
|
|
302
333
|
} | {
|
|
334
|
+
id: string;
|
|
303
335
|
type: "calendar";
|
|
304
336
|
path: string;
|
|
305
337
|
title: readonly {
|
|
@@ -318,10 +350,19 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
318
350
|
expression: string;
|
|
319
351
|
message: string;
|
|
320
352
|
}>[] | undefined;
|
|
353
|
+
} | {
|
|
354
|
+
id: string;
|
|
355
|
+
type: "slot";
|
|
356
|
+
style?: string | undefined;
|
|
321
357
|
})[];
|
|
322
358
|
orientation?: "vertical" | "horizontal" | "floating" | undefined;
|
|
359
|
+
style?: string | undefined;
|
|
323
360
|
}>) => any) | undefined;
|
|
324
361
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
362
|
+
[x: string]: ((props: {
|
|
363
|
+
style: CSSProperties;
|
|
364
|
+
}) => any) | undefined;
|
|
365
|
+
} & {
|
|
325
366
|
default?: (props: {}) => any;
|
|
326
367
|
}>;
|
|
327
368
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -8,6 +8,7 @@ export declare const validationC: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodRe
|
|
|
8
8
|
message: z.ZodString;
|
|
9
9
|
}, z.core.$strip>>>>>;
|
|
10
10
|
export declare const StringFieldC: z.ZodObject<{
|
|
11
|
+
id: z.ZodUUID;
|
|
11
12
|
type: z.ZodLiteral<"string">;
|
|
12
13
|
path: z.ZodString;
|
|
13
14
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -31,6 +32,7 @@ export declare const StringFieldC: z.ZodObject<{
|
|
|
31
32
|
}, z.core.$strip>>>>>;
|
|
32
33
|
}, z.core.$strip>;
|
|
33
34
|
export declare const NumberFieldC: z.ZodObject<{
|
|
35
|
+
id: z.ZodUUID;
|
|
34
36
|
type: z.ZodLiteral<"number">;
|
|
35
37
|
path: z.ZodString;
|
|
36
38
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -55,6 +57,7 @@ export declare const NumberFieldC: z.ZodObject<{
|
|
|
55
57
|
}, z.core.$strip>>>>>;
|
|
56
58
|
}, z.core.$strip>;
|
|
57
59
|
export declare const SelectFieldC: z.ZodObject<{
|
|
60
|
+
id: z.ZodUUID;
|
|
58
61
|
type: z.ZodLiteral<"select">;
|
|
59
62
|
path: z.ZodString;
|
|
60
63
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -80,6 +83,7 @@ export declare const SelectFieldC: z.ZodObject<{
|
|
|
80
83
|
}, z.core.$strip>>>>>;
|
|
81
84
|
}, z.core.$strip>;
|
|
82
85
|
export declare const CalendarFieldC: z.ZodObject<{
|
|
86
|
+
id: z.ZodUUID;
|
|
83
87
|
type: z.ZodLiteral<"calendar">;
|
|
84
88
|
path: z.ZodString;
|
|
85
89
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -108,7 +112,13 @@ export declare const CalendarFieldC: z.ZodObject<{
|
|
|
108
112
|
message: z.ZodString;
|
|
109
113
|
}, z.core.$strip>>>>>;
|
|
110
114
|
}, z.core.$strip>;
|
|
115
|
+
export declare const SlotFieldC: z.ZodObject<{
|
|
116
|
+
id: z.ZodUUID;
|
|
117
|
+
type: z.ZodLiteral<"slot">;
|
|
118
|
+
style: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strict>;
|
|
111
120
|
export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
id: z.ZodUUID;
|
|
112
122
|
type: z.ZodLiteral<"string">;
|
|
113
123
|
path: z.ZodString;
|
|
114
124
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -131,6 +141,7 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
131
141
|
message: z.ZodString;
|
|
132
142
|
}, z.core.$strip>>>>>;
|
|
133
143
|
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
id: z.ZodUUID;
|
|
134
145
|
type: z.ZodLiteral<"number">;
|
|
135
146
|
path: z.ZodString;
|
|
136
147
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -154,6 +165,7 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
154
165
|
message: z.ZodString;
|
|
155
166
|
}, z.core.$strip>>>>>;
|
|
156
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
+
id: z.ZodUUID;
|
|
157
169
|
type: z.ZodLiteral<"select">;
|
|
158
170
|
path: z.ZodString;
|
|
159
171
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -178,6 +190,7 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
178
190
|
message: z.ZodString;
|
|
179
191
|
}, z.core.$strip>>>>>;
|
|
180
192
|
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
id: z.ZodUUID;
|
|
181
194
|
type: z.ZodLiteral<"calendar">;
|
|
182
195
|
path: z.ZodString;
|
|
183
196
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -205,19 +218,26 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
205
218
|
expression: z.ZodString;
|
|
206
219
|
message: z.ZodString;
|
|
207
220
|
}, z.core.$strip>>>>>;
|
|
208
|
-
}, z.core.$strip
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
222
|
+
id: z.ZodUUID;
|
|
223
|
+
type: z.ZodLiteral<"slot">;
|
|
224
|
+
style: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strict>], "type">;
|
|
209
226
|
export declare const FieldsOrientationC: z.ZodEnum<{
|
|
210
227
|
vertical: "vertical";
|
|
211
228
|
horizontal: "horizontal";
|
|
212
229
|
floating: "floating";
|
|
213
230
|
}>;
|
|
231
|
+
export declare const FieldsStyleC: z.ZodOptional<z.ZodString>;
|
|
214
232
|
export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
215
233
|
orientation: z.ZodOptional<z.ZodEnum<{
|
|
216
234
|
vertical: "vertical";
|
|
217
235
|
horizontal: "horizontal";
|
|
218
236
|
floating: "floating";
|
|
219
237
|
}>>;
|
|
238
|
+
style: z.ZodOptional<z.ZodString>;
|
|
220
239
|
fields: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
240
|
+
id: z.ZodUUID;
|
|
221
241
|
type: z.ZodLiteral<"string">;
|
|
222
242
|
path: z.ZodString;
|
|
223
243
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -240,6 +260,7 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
240
260
|
message: z.ZodString;
|
|
241
261
|
}, z.core.$strip>>>>>;
|
|
242
262
|
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
+
id: z.ZodUUID;
|
|
243
264
|
type: z.ZodLiteral<"number">;
|
|
244
265
|
path: z.ZodString;
|
|
245
266
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -263,6 +284,7 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
263
284
|
message: z.ZodString;
|
|
264
285
|
}, z.core.$strip>>>>>;
|
|
265
286
|
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
id: z.ZodUUID;
|
|
266
288
|
type: z.ZodLiteral<"select">;
|
|
267
289
|
path: z.ZodString;
|
|
268
290
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -287,6 +309,7 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
287
309
|
message: z.ZodString;
|
|
288
310
|
}, z.core.$strip>>>>>;
|
|
289
311
|
}, z.core.$strip>, z.ZodObject<{
|
|
312
|
+
id: z.ZodUUID;
|
|
290
313
|
type: z.ZodLiteral<"calendar">;
|
|
291
314
|
path: z.ZodString;
|
|
292
315
|
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
@@ -314,8 +337,13 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
314
337
|
expression: z.ZodString;
|
|
315
338
|
message: z.ZodString;
|
|
316
339
|
}, z.core.$strip>>>>>;
|
|
317
|
-
}, z.core.$strip
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
id: z.ZodUUID;
|
|
342
|
+
type: z.ZodLiteral<"slot">;
|
|
343
|
+
style: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strict>], "type">>>;
|
|
318
345
|
}, z.core.$strip>>;
|
|
319
346
|
export type ValidationRule = z.infer<typeof ValidationRuleC>;
|
|
320
347
|
export type Field = z.infer<typeof FieldC>;
|
|
321
348
|
export type FieldsConfig = z.infer<typeof FieldsConfigC>;
|
|
349
|
+
export type SlotField = z.infer<typeof SlotFieldC>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
import { dotPropC, expressionC, localeC } from "../../../utils/coders.js";
|
|
3
|
+
const fieldIdC = z.uuid().describe("\u5B57\u6BB5\u552F\u4E00\u6807\u8BC6\uFF0C\u5FC5\u987B\u662F UUID");
|
|
3
4
|
export const ValidationRuleC = z.object({
|
|
4
5
|
expression: expressionC("bool", { value: "dyn", form: "map<string, dyn>" }).describe("\u8FD4\u56DE\u5E03\u5C14\u503C\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u53EF\u4F7F\u7528 value \u548C form \u53D8\u91CF"),
|
|
5
6
|
message: z.string().describe("\u6821\u9A8C\u5931\u8D25\u65F6\u5C55\u793A\u7684 Markdown \u6D88\u606F\uFF0C\u53EF\u5728 {{ expression }} \u4E2D\u4F7F\u7528 value \u548C form \u53D8\u91CF")
|
|
6
7
|
}).readonly();
|
|
7
8
|
export const validationC = z.array(ValidationRuleC).readonly().optional().describe("\u5B57\u6BB5\u5931\u7126\u65F6\u6309\u987A\u5E8F\u6267\u884C\u7684\u6821\u9A8C\u89C4\u5219\uFF0C\u547D\u4E2D\u7B2C\u4E00\u4E2A\u5931\u8D25\u89C4\u5219\u540E\u505C\u6B62");
|
|
8
9
|
export const StringFieldC = z.object({
|
|
10
|
+
id: fieldIdC,
|
|
9
11
|
type: z.literal("string").describe("\u5355\u884C\u6587\u672C\u8F93\u5165\u5B57\u6BB5\uFF0C\u7ED1\u5B9A string \u7C7B\u578B\u7684\u503C"),
|
|
10
12
|
path: dotPropC,
|
|
11
13
|
title: localeC.describe("\u5B57\u6BB5\u6807\u7B7E\u7684\u672C\u5730\u5316\u663E\u793A\u6587\u672C"),
|
|
@@ -18,6 +20,7 @@ export const StringFieldC = z.object({
|
|
|
18
20
|
validation: validationC
|
|
19
21
|
});
|
|
20
22
|
export const NumberFieldC = z.object({
|
|
23
|
+
id: fieldIdC,
|
|
21
24
|
type: z.literal("number").describe("\u6570\u5B57\u8F93\u5165\u5B57\u6BB5\uFF0C\u7ED1\u5B9A number \u7C7B\u578B\u7684\u503C"),
|
|
22
25
|
path: dotPropC,
|
|
23
26
|
title: localeC.describe("\u5B57\u6BB5\u6807\u7B7E\u7684\u672C\u5730\u5316\u663E\u793A\u6587\u672C"),
|
|
@@ -31,6 +34,7 @@ export const NumberFieldC = z.object({
|
|
|
31
34
|
validation: validationC
|
|
32
35
|
});
|
|
33
36
|
export const SelectFieldC = z.object({
|
|
37
|
+
id: fieldIdC,
|
|
34
38
|
type: z.literal("select").describe("\u4E0B\u62C9\u9009\u62E9\u5B57\u6BB5\uFF0C\u4ECE\u9884\u5B9A\u4E49\u9009\u9879\u4E2D\u9009\u53D6\u4E00\u4E2A\u503C"),
|
|
35
39
|
path: dotPropC,
|
|
36
40
|
title: localeC.describe("\u5B57\u6BB5\u6807\u7B7E\u7684\u672C\u5730\u5316\u663E\u793A\u6587\u672C"),
|
|
@@ -45,6 +49,7 @@ export const SelectFieldC = z.object({
|
|
|
45
49
|
validation: validationC
|
|
46
50
|
});
|
|
47
51
|
export const CalendarFieldC = z.object({
|
|
52
|
+
id: fieldIdC,
|
|
48
53
|
type: z.literal("calendar").describe("\u65E5\u671F\u9009\u62E9\u5B57\u6BB5\uFF0C\u901A\u8FC7\u5F39\u51FA\u65E5\u5386\u9762\u677F\u9009\u62E9\u65E5\u671F"),
|
|
49
54
|
path: dotPropC,
|
|
50
55
|
title: localeC.describe("\u5B57\u6BB5\u6807\u7B7E\u7684\u672C\u5730\u5316\u663E\u793A\u6587\u672C"),
|
|
@@ -58,14 +63,24 @@ export const CalendarFieldC = z.object({
|
|
|
58
63
|
disabled: expressionC("bool", { form: "map<string, dyn>" }).optional().describe("\u4E3A true \u65F6\uFF0C\u7981\u7528\u8FD9\u4E2A\u5B57\u6BB5"),
|
|
59
64
|
validation: validationC
|
|
60
65
|
});
|
|
66
|
+
export const SlotFieldC = z.strictObject({
|
|
67
|
+
id: fieldIdC,
|
|
68
|
+
type: z.literal("slot").describe("\u5177\u540D\u63D2\u69FD\u5B57\u6BB5\uFF0C\u901A\u8FC7\u5B57\u6BB5 id \u5BF9\u5E94\u7684\u5177\u540D\u63D2\u69FD\u6E32\u67D3\u5185\u5BB9"),
|
|
69
|
+
style: z.string().optional().describe("CSS \u6837\u5F0F\u5BF9\u8C61\u8868\u8FBE\u5F0F\uFF0C\u6C42\u503C\u540E\u901A\u8FC7 scoped slot \u7684 style prop \u4F20\u7ED9\u6D88\u8D39\u8005")
|
|
70
|
+
});
|
|
61
71
|
export const FieldC = z.discriminatedUnion("type", [
|
|
62
72
|
StringFieldC,
|
|
63
73
|
NumberFieldC,
|
|
64
74
|
SelectFieldC,
|
|
65
|
-
CalendarFieldC
|
|
75
|
+
CalendarFieldC,
|
|
76
|
+
SlotFieldC
|
|
66
77
|
]);
|
|
67
78
|
export const FieldsOrientationC = z.enum(["horizontal", "vertical", "floating"]);
|
|
79
|
+
export const FieldsStyleC = expressionC(/^map/, {
|
|
80
|
+
form: "map<string, dyn>"
|
|
81
|
+
}).optional().describe("\u8FD4\u56DE\u5B57\u6BB5\u96C6\u5408\u5BB9\u5668\u6837\u5F0F\u5BF9\u8C61\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u53EF\u4F7F\u7528 form \u53D8\u91CF\u3002");
|
|
68
82
|
export const FieldsConfigC = z.object({
|
|
69
83
|
orientation: FieldsOrientationC.optional().describe("\u5B57\u6BB5\u5E03\u5C40\u65B9\u5411\uFF0C\u53EF\u9009 horizontal\u3001vertical \u6216 floating\uFF1B\u7559\u7A7A\u65F6\u9ED8\u8BA4 horizontal"),
|
|
84
|
+
style: FieldsStyleC,
|
|
70
85
|
fields: z.array(FieldC).readonly().describe("\u5B57\u6BB5\u5217\u8868")
|
|
71
86
|
}).readonly();
|
|
@@ -10,6 +10,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
10
10
|
"update:open": (value: boolean) => any;
|
|
11
11
|
confirm: (args_0: Readonly<{
|
|
12
12
|
fields: readonly ({
|
|
13
|
+
id: string;
|
|
13
14
|
type: "string";
|
|
14
15
|
path: string;
|
|
15
16
|
title: readonly {
|
|
@@ -27,6 +28,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
27
28
|
message: string;
|
|
28
29
|
}>[] | undefined;
|
|
29
30
|
} | {
|
|
31
|
+
id: string;
|
|
30
32
|
type: "number";
|
|
31
33
|
path: string;
|
|
32
34
|
title: readonly {
|
|
@@ -45,6 +47,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
45
47
|
message: string;
|
|
46
48
|
}>[] | undefined;
|
|
47
49
|
} | {
|
|
50
|
+
id: string;
|
|
48
51
|
type: "select";
|
|
49
52
|
path: string;
|
|
50
53
|
title: readonly {
|
|
@@ -64,6 +67,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
64
67
|
message: string;
|
|
65
68
|
}>[] | undefined;
|
|
66
69
|
} | {
|
|
70
|
+
id: string;
|
|
67
71
|
type: "calendar";
|
|
68
72
|
path: string;
|
|
69
73
|
title: readonly {
|
|
@@ -82,13 +86,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
82
86
|
expression: string;
|
|
83
87
|
message: string;
|
|
84
88
|
}>[] | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
id: string;
|
|
91
|
+
type: "slot";
|
|
92
|
+
style?: string | undefined;
|
|
85
93
|
})[];
|
|
86
94
|
orientation?: "vertical" | "horizontal" | "floating" | undefined;
|
|
95
|
+
style?: string | undefined;
|
|
87
96
|
}>) => any;
|
|
88
97
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
89
98
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
90
99
|
onConfirm?: ((args_0: Readonly<{
|
|
91
100
|
fields: readonly ({
|
|
101
|
+
id: string;
|
|
92
102
|
type: "string";
|
|
93
103
|
path: string;
|
|
94
104
|
title: readonly {
|
|
@@ -106,6 +116,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
106
116
|
message: string;
|
|
107
117
|
}>[] | undefined;
|
|
108
118
|
} | {
|
|
119
|
+
id: string;
|
|
109
120
|
type: "number";
|
|
110
121
|
path: string;
|
|
111
122
|
title: readonly {
|
|
@@ -124,6 +135,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
124
135
|
message: string;
|
|
125
136
|
}>[] | undefined;
|
|
126
137
|
} | {
|
|
138
|
+
id: string;
|
|
127
139
|
type: "select";
|
|
128
140
|
path: string;
|
|
129
141
|
title: readonly {
|
|
@@ -143,6 +155,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
143
155
|
message: string;
|
|
144
156
|
}>[] | undefined;
|
|
145
157
|
} | {
|
|
158
|
+
id: string;
|
|
146
159
|
type: "calendar";
|
|
147
160
|
path: string;
|
|
148
161
|
title: readonly {
|
|
@@ -161,8 +174,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
161
174
|
expression: string;
|
|
162
175
|
message: string;
|
|
163
176
|
}>[] | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
id: string;
|
|
179
|
+
type: "slot";
|
|
180
|
+
style?: string | undefined;
|
|
164
181
|
})[];
|
|
165
182
|
orientation?: "vertical" | "horizontal" | "floating" | undefined;
|
|
183
|
+
style?: string | undefined;
|
|
166
184
|
}>) => any) | undefined;
|
|
167
185
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
168
186
|
declare const _default: typeof __VLS_export;
|