@shwfed/nuxt 0.11.30 → 0.11.32
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 +78 -4
- package/dist/runtime/components/fields.vue +1 -0
- package/dist/runtime/components/fields.vue.d.ts +78 -4
- package/dist/runtime/components/ui/field/index.d.ts +1 -1
- package/dist/runtime/components/ui/field/index.js +6 -0
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +154 -6
- package/dist/runtime/components/ui/fields/Fields.vue +271 -13
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +154 -6
- package/dist/runtime/components/ui/fields/schema.d.ts +287 -0
- package/dist/runtime/components/ui/fields/schema.js +35 -7
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +76 -2
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +320 -5
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +76 -2
- package/package.json +2 -1
|
@@ -11,6 +11,8 @@ export declare const validationC: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodRe
|
|
|
11
11
|
message: z.ZodString;
|
|
12
12
|
}, z.core.$strip>>>>>;
|
|
13
13
|
export declare const StringFieldC: z.ZodObject<{
|
|
14
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
15
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
14
16
|
id: z.ZodUUID;
|
|
15
17
|
type: z.ZodLiteral<"string">;
|
|
16
18
|
path: z.ZodString;
|
|
@@ -37,6 +39,8 @@ export declare const StringFieldC: z.ZodObject<{
|
|
|
37
39
|
}, z.core.$strip>>>>>;
|
|
38
40
|
}, z.core.$strip>;
|
|
39
41
|
export declare const TextareaFieldC: z.ZodObject<{
|
|
42
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
43
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
40
44
|
id: z.ZodUUID;
|
|
41
45
|
type: z.ZodLiteral<"textarea">;
|
|
42
46
|
path: z.ZodString;
|
|
@@ -63,6 +67,8 @@ export declare const TextareaFieldC: z.ZodObject<{
|
|
|
63
67
|
}, z.core.$strip>>>>>;
|
|
64
68
|
}, z.core.$strip>;
|
|
65
69
|
export declare const NumberFieldC: z.ZodObject<{
|
|
70
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
71
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
66
72
|
id: z.ZodUUID;
|
|
67
73
|
type: z.ZodLiteral<"number">;
|
|
68
74
|
path: z.ZodString;
|
|
@@ -90,6 +96,8 @@ export declare const NumberFieldC: z.ZodObject<{
|
|
|
90
96
|
}, z.core.$strip>>>>>;
|
|
91
97
|
}, z.core.$strip>;
|
|
92
98
|
export declare const SelectFieldC: z.ZodObject<{
|
|
99
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
100
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
93
101
|
id: z.ZodUUID;
|
|
94
102
|
type: z.ZodLiteral<"select">;
|
|
95
103
|
path: z.ZodString;
|
|
@@ -118,6 +126,8 @@ export declare const SelectFieldC: z.ZodObject<{
|
|
|
118
126
|
}, z.core.$strip>>>>>;
|
|
119
127
|
}, z.core.$strip>;
|
|
120
128
|
export declare const CalendarFieldC: z.ZodObject<{
|
|
129
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
130
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
121
131
|
id: z.ZodUUID;
|
|
122
132
|
type: z.ZodLiteral<"calendar">;
|
|
123
133
|
path: z.ZodString;
|
|
@@ -149,6 +159,43 @@ export declare const CalendarFieldC: z.ZodObject<{
|
|
|
149
159
|
message: z.ZodString;
|
|
150
160
|
}, z.core.$strip>>>>>;
|
|
151
161
|
}, z.core.$strip>;
|
|
162
|
+
export declare const UploadFieldC: z.ZodObject<{
|
|
163
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
164
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
165
|
+
id: z.ZodUUID;
|
|
166
|
+
type: z.ZodLiteral<"upload">;
|
|
167
|
+
path: z.ZodString;
|
|
168
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
169
|
+
locale: z.ZodEnum<{
|
|
170
|
+
en: "en";
|
|
171
|
+
ja: "ja";
|
|
172
|
+
ko: "ko";
|
|
173
|
+
zh: "zh";
|
|
174
|
+
}>;
|
|
175
|
+
message: z.ZodString;
|
|
176
|
+
}, z.core.$strip>>>;
|
|
177
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
179
|
+
accept: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
180
|
+
description: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
181
|
+
locale: z.ZodEnum<{
|
|
182
|
+
en: "en";
|
|
183
|
+
ja: "ja";
|
|
184
|
+
ko: "ko";
|
|
185
|
+
zh: "zh";
|
|
186
|
+
}>;
|
|
187
|
+
message: z.ZodString;
|
|
188
|
+
}, z.core.$strip>>>>;
|
|
189
|
+
maxCount: z.ZodOptional<z.ZodString>;
|
|
190
|
+
style: z.ZodOptional<z.ZodString>;
|
|
191
|
+
initialValue: z.ZodOptional<z.ZodString>;
|
|
192
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
193
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
194
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
195
|
+
expression: z.ZodString;
|
|
196
|
+
message: z.ZodString;
|
|
197
|
+
}, z.core.$strip>>>>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
152
199
|
export declare const SlotFieldC: z.ZodObject<{
|
|
153
200
|
id: z.ZodUUID;
|
|
154
201
|
type: z.ZodLiteral<"slot">;
|
|
@@ -160,6 +207,8 @@ export declare const EmptyFieldC: z.ZodObject<{
|
|
|
160
207
|
style: z.ZodOptional<z.ZodString>;
|
|
161
208
|
}, z.core.$strict>;
|
|
162
209
|
export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
210
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
211
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
163
212
|
id: z.ZodUUID;
|
|
164
213
|
type: z.ZodLiteral<"string">;
|
|
165
214
|
path: z.ZodString;
|
|
@@ -185,6 +234,8 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
185
234
|
message: z.ZodString;
|
|
186
235
|
}, z.core.$strip>>>>>;
|
|
187
236
|
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
238
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
188
239
|
id: z.ZodUUID;
|
|
189
240
|
type: z.ZodLiteral<"textarea">;
|
|
190
241
|
path: z.ZodString;
|
|
@@ -210,6 +261,8 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
210
261
|
message: z.ZodString;
|
|
211
262
|
}, z.core.$strip>>>>>;
|
|
212
263
|
}, z.core.$strip>, z.ZodObject<{
|
|
264
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
265
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
213
266
|
id: z.ZodUUID;
|
|
214
267
|
type: z.ZodLiteral<"number">;
|
|
215
268
|
path: z.ZodString;
|
|
@@ -236,6 +289,8 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
236
289
|
message: z.ZodString;
|
|
237
290
|
}, z.core.$strip>>>>>;
|
|
238
291
|
}, z.core.$strip>, z.ZodObject<{
|
|
292
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
293
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
239
294
|
id: z.ZodUUID;
|
|
240
295
|
type: z.ZodLiteral<"select">;
|
|
241
296
|
path: z.ZodString;
|
|
@@ -263,6 +318,8 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
263
318
|
message: z.ZodString;
|
|
264
319
|
}, z.core.$strip>>>>>;
|
|
265
320
|
}, z.core.$strip>, z.ZodObject<{
|
|
321
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
322
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
266
323
|
id: z.ZodUUID;
|
|
267
324
|
type: z.ZodLiteral<"calendar">;
|
|
268
325
|
path: z.ZodString;
|
|
@@ -293,6 +350,42 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
293
350
|
expression: z.ZodString;
|
|
294
351
|
message: z.ZodString;
|
|
295
352
|
}, z.core.$strip>>>>>;
|
|
353
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
354
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
355
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
356
|
+
id: z.ZodUUID;
|
|
357
|
+
type: z.ZodLiteral<"upload">;
|
|
358
|
+
path: z.ZodString;
|
|
359
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
360
|
+
locale: z.ZodEnum<{
|
|
361
|
+
en: "en";
|
|
362
|
+
ja: "ja";
|
|
363
|
+
ko: "ko";
|
|
364
|
+
zh: "zh";
|
|
365
|
+
}>;
|
|
366
|
+
message: z.ZodString;
|
|
367
|
+
}, z.core.$strip>>>;
|
|
368
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
370
|
+
accept: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
371
|
+
description: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
372
|
+
locale: z.ZodEnum<{
|
|
373
|
+
en: "en";
|
|
374
|
+
ja: "ja";
|
|
375
|
+
ko: "ko";
|
|
376
|
+
zh: "zh";
|
|
377
|
+
}>;
|
|
378
|
+
message: z.ZodString;
|
|
379
|
+
}, z.core.$strip>>>>;
|
|
380
|
+
maxCount: z.ZodOptional<z.ZodString>;
|
|
381
|
+
style: z.ZodOptional<z.ZodString>;
|
|
382
|
+
initialValue: z.ZodOptional<z.ZodString>;
|
|
383
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
384
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
385
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
386
|
+
expression: z.ZodString;
|
|
387
|
+
message: z.ZodString;
|
|
388
|
+
}, z.core.$strip>>>>>;
|
|
296
389
|
}, z.core.$strip>, z.ZodObject<{
|
|
297
390
|
id: z.ZodUUID;
|
|
298
391
|
type: z.ZodLiteral<"slot">;
|
|
@@ -306,6 +399,7 @@ export declare const FieldsOrientationC: z.ZodEnum<{
|
|
|
306
399
|
vertical: "vertical";
|
|
307
400
|
horizontal: "horizontal";
|
|
308
401
|
floating: "floating";
|
|
402
|
+
contents: "contents";
|
|
309
403
|
}>;
|
|
310
404
|
export declare const FieldsStyleC: z.ZodOptional<z.ZodString>;
|
|
311
405
|
export declare const FieldsBodyC: z.ZodReadonly<z.ZodObject<{
|
|
@@ -313,9 +407,13 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodObject<{
|
|
|
313
407
|
vertical: "vertical";
|
|
314
408
|
horizontal: "horizontal";
|
|
315
409
|
floating: "floating";
|
|
410
|
+
contents: "contents";
|
|
316
411
|
}>>;
|
|
412
|
+
bordered: z.ZodOptional<z.ZodBoolean>;
|
|
317
413
|
style: z.ZodOptional<z.ZodString>;
|
|
318
414
|
fields: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
415
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
416
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
319
417
|
id: z.ZodUUID;
|
|
320
418
|
type: z.ZodLiteral<"string">;
|
|
321
419
|
path: z.ZodString;
|
|
@@ -341,6 +439,8 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodObject<{
|
|
|
341
439
|
message: z.ZodString;
|
|
342
440
|
}, z.core.$strip>>>>>;
|
|
343
441
|
}, z.core.$strip>, z.ZodObject<{
|
|
442
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
443
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
344
444
|
id: z.ZodUUID;
|
|
345
445
|
type: z.ZodLiteral<"textarea">;
|
|
346
446
|
path: z.ZodString;
|
|
@@ -366,6 +466,8 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodObject<{
|
|
|
366
466
|
message: z.ZodString;
|
|
367
467
|
}, z.core.$strip>>>>>;
|
|
368
468
|
}, z.core.$strip>, z.ZodObject<{
|
|
469
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
470
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
369
471
|
id: z.ZodUUID;
|
|
370
472
|
type: z.ZodLiteral<"number">;
|
|
371
473
|
path: z.ZodString;
|
|
@@ -392,6 +494,8 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodObject<{
|
|
|
392
494
|
message: z.ZodString;
|
|
393
495
|
}, z.core.$strip>>>>>;
|
|
394
496
|
}, z.core.$strip>, z.ZodObject<{
|
|
497
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
498
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
395
499
|
id: z.ZodUUID;
|
|
396
500
|
type: z.ZodLiteral<"select">;
|
|
397
501
|
path: z.ZodString;
|
|
@@ -419,6 +523,8 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodObject<{
|
|
|
419
523
|
message: z.ZodString;
|
|
420
524
|
}, z.core.$strip>>>>>;
|
|
421
525
|
}, z.core.$strip>, z.ZodObject<{
|
|
526
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
527
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
422
528
|
id: z.ZodUUID;
|
|
423
529
|
type: z.ZodLiteral<"calendar">;
|
|
424
530
|
path: z.ZodString;
|
|
@@ -449,6 +555,42 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodObject<{
|
|
|
449
555
|
expression: z.ZodString;
|
|
450
556
|
message: z.ZodString;
|
|
451
557
|
}, z.core.$strip>>>>>;
|
|
558
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
559
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
560
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
561
|
+
id: z.ZodUUID;
|
|
562
|
+
type: z.ZodLiteral<"upload">;
|
|
563
|
+
path: z.ZodString;
|
|
564
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
565
|
+
locale: z.ZodEnum<{
|
|
566
|
+
en: "en";
|
|
567
|
+
ja: "ja";
|
|
568
|
+
ko: "ko";
|
|
569
|
+
zh: "zh";
|
|
570
|
+
}>;
|
|
571
|
+
message: z.ZodString;
|
|
572
|
+
}, z.core.$strip>>>;
|
|
573
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
574
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
575
|
+
accept: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
576
|
+
description: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
577
|
+
locale: z.ZodEnum<{
|
|
578
|
+
en: "en";
|
|
579
|
+
ja: "ja";
|
|
580
|
+
ko: "ko";
|
|
581
|
+
zh: "zh";
|
|
582
|
+
}>;
|
|
583
|
+
message: z.ZodString;
|
|
584
|
+
}, z.core.$strip>>>>;
|
|
585
|
+
maxCount: z.ZodOptional<z.ZodString>;
|
|
586
|
+
style: z.ZodOptional<z.ZodString>;
|
|
587
|
+
initialValue: z.ZodOptional<z.ZodString>;
|
|
588
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
589
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
590
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
591
|
+
expression: z.ZodString;
|
|
592
|
+
message: z.ZodString;
|
|
593
|
+
}, z.core.$strip>>>>>;
|
|
452
594
|
}, z.core.$strip>, z.ZodObject<{
|
|
453
595
|
id: z.ZodUUID;
|
|
454
596
|
type: z.ZodLiteral<"slot">;
|
|
@@ -464,9 +606,13 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
464
606
|
vertical: "vertical";
|
|
465
607
|
horizontal: "horizontal";
|
|
466
608
|
floating: "floating";
|
|
609
|
+
contents: "contents";
|
|
467
610
|
}>>;
|
|
611
|
+
bordered: z.ZodOptional<z.ZodBoolean>;
|
|
468
612
|
style: z.ZodOptional<z.ZodString>;
|
|
469
613
|
fields: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
614
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
615
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
470
616
|
id: z.ZodUUID;
|
|
471
617
|
type: z.ZodLiteral<"string">;
|
|
472
618
|
path: z.ZodString;
|
|
@@ -492,6 +638,8 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
492
638
|
message: z.ZodString;
|
|
493
639
|
}, z.core.$strip>>>>>;
|
|
494
640
|
}, z.core.$strip>, z.ZodObject<{
|
|
641
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
642
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
495
643
|
id: z.ZodUUID;
|
|
496
644
|
type: z.ZodLiteral<"textarea">;
|
|
497
645
|
path: z.ZodString;
|
|
@@ -517,6 +665,8 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
517
665
|
message: z.ZodString;
|
|
518
666
|
}, z.core.$strip>>>>>;
|
|
519
667
|
}, z.core.$strip>, z.ZodObject<{
|
|
668
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
669
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
520
670
|
id: z.ZodUUID;
|
|
521
671
|
type: z.ZodLiteral<"number">;
|
|
522
672
|
path: z.ZodString;
|
|
@@ -543,6 +693,8 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
543
693
|
message: z.ZodString;
|
|
544
694
|
}, z.core.$strip>>>>>;
|
|
545
695
|
}, z.core.$strip>, z.ZodObject<{
|
|
696
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
697
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
546
698
|
id: z.ZodUUID;
|
|
547
699
|
type: z.ZodLiteral<"select">;
|
|
548
700
|
path: z.ZodString;
|
|
@@ -570,6 +722,8 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
570
722
|
message: z.ZodString;
|
|
571
723
|
}, z.core.$strip>>>>>;
|
|
572
724
|
}, z.core.$strip>, z.ZodObject<{
|
|
725
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
726
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
573
727
|
id: z.ZodUUID;
|
|
574
728
|
type: z.ZodLiteral<"calendar">;
|
|
575
729
|
path: z.ZodString;
|
|
@@ -600,6 +754,42 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
600
754
|
expression: z.ZodString;
|
|
601
755
|
message: z.ZodString;
|
|
602
756
|
}, z.core.$strip>>>>>;
|
|
757
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
758
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
759
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
760
|
+
id: z.ZodUUID;
|
|
761
|
+
type: z.ZodLiteral<"upload">;
|
|
762
|
+
path: z.ZodString;
|
|
763
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
764
|
+
locale: z.ZodEnum<{
|
|
765
|
+
en: "en";
|
|
766
|
+
ja: "ja";
|
|
767
|
+
ko: "ko";
|
|
768
|
+
zh: "zh";
|
|
769
|
+
}>;
|
|
770
|
+
message: z.ZodString;
|
|
771
|
+
}, z.core.$strip>>>;
|
|
772
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
773
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
774
|
+
accept: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
775
|
+
description: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
776
|
+
locale: z.ZodEnum<{
|
|
777
|
+
en: "en";
|
|
778
|
+
ja: "ja";
|
|
779
|
+
ko: "ko";
|
|
780
|
+
zh: "zh";
|
|
781
|
+
}>;
|
|
782
|
+
message: z.ZodString;
|
|
783
|
+
}, z.core.$strip>>>>;
|
|
784
|
+
maxCount: z.ZodOptional<z.ZodString>;
|
|
785
|
+
style: z.ZodOptional<z.ZodString>;
|
|
786
|
+
initialValue: z.ZodOptional<z.ZodString>;
|
|
787
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
788
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
789
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
790
|
+
expression: z.ZodString;
|
|
791
|
+
message: z.ZodString;
|
|
792
|
+
}, z.core.$strip>>>>>;
|
|
603
793
|
}, z.core.$strip>, z.ZodObject<{
|
|
604
794
|
id: z.ZodUUID;
|
|
605
795
|
type: z.ZodLiteral<"slot">;
|
|
@@ -615,9 +805,13 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
615
805
|
vertical: "vertical";
|
|
616
806
|
horizontal: "horizontal";
|
|
617
807
|
floating: "floating";
|
|
808
|
+
contents: "contents";
|
|
618
809
|
}>>;
|
|
810
|
+
bordered: z.ZodOptional<z.ZodBoolean>;
|
|
619
811
|
style: z.ZodOptional<z.ZodString>;
|
|
620
812
|
fields: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
813
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
814
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
621
815
|
id: z.ZodUUID;
|
|
622
816
|
type: z.ZodLiteral<"string">;
|
|
623
817
|
path: z.ZodString;
|
|
@@ -643,6 +837,8 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
643
837
|
message: z.ZodString;
|
|
644
838
|
}, z.core.$strip>>>>>;
|
|
645
839
|
}, z.core.$strip>, z.ZodObject<{
|
|
840
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
841
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
646
842
|
id: z.ZodUUID;
|
|
647
843
|
type: z.ZodLiteral<"textarea">;
|
|
648
844
|
path: z.ZodString;
|
|
@@ -668,6 +864,8 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
668
864
|
message: z.ZodString;
|
|
669
865
|
}, z.core.$strip>>>>>;
|
|
670
866
|
}, z.core.$strip>, z.ZodObject<{
|
|
867
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
868
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
671
869
|
id: z.ZodUUID;
|
|
672
870
|
type: z.ZodLiteral<"number">;
|
|
673
871
|
path: z.ZodString;
|
|
@@ -694,6 +892,8 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
694
892
|
message: z.ZodString;
|
|
695
893
|
}, z.core.$strip>>>>>;
|
|
696
894
|
}, z.core.$strip>, z.ZodObject<{
|
|
895
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
896
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
697
897
|
id: z.ZodUUID;
|
|
698
898
|
type: z.ZodLiteral<"select">;
|
|
699
899
|
path: z.ZodString;
|
|
@@ -721,6 +921,8 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
721
921
|
message: z.ZodString;
|
|
722
922
|
}, z.core.$strip>>>>>;
|
|
723
923
|
}, z.core.$strip>, z.ZodObject<{
|
|
924
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
925
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
724
926
|
id: z.ZodUUID;
|
|
725
927
|
type: z.ZodLiteral<"calendar">;
|
|
726
928
|
path: z.ZodString;
|
|
@@ -751,6 +953,42 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodObject<{
|
|
|
751
953
|
expression: z.ZodString;
|
|
752
954
|
message: z.ZodString;
|
|
753
955
|
}, z.core.$strip>>>>>;
|
|
956
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
957
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
958
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
959
|
+
id: z.ZodUUID;
|
|
960
|
+
type: z.ZodLiteral<"upload">;
|
|
961
|
+
path: z.ZodString;
|
|
962
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
963
|
+
locale: z.ZodEnum<{
|
|
964
|
+
en: "en";
|
|
965
|
+
ja: "ja";
|
|
966
|
+
ko: "ko";
|
|
967
|
+
zh: "zh";
|
|
968
|
+
}>;
|
|
969
|
+
message: z.ZodString;
|
|
970
|
+
}, z.core.$strip>>>;
|
|
971
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
972
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
973
|
+
accept: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
974
|
+
description: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
975
|
+
locale: z.ZodEnum<{
|
|
976
|
+
en: "en";
|
|
977
|
+
ja: "ja";
|
|
978
|
+
ko: "ko";
|
|
979
|
+
zh: "zh";
|
|
980
|
+
}>;
|
|
981
|
+
message: z.ZodString;
|
|
982
|
+
}, z.core.$strip>>>>;
|
|
983
|
+
maxCount: z.ZodOptional<z.ZodString>;
|
|
984
|
+
style: z.ZodOptional<z.ZodString>;
|
|
985
|
+
initialValue: z.ZodOptional<z.ZodString>;
|
|
986
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
987
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
988
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
989
|
+
expression: z.ZodString;
|
|
990
|
+
message: z.ZodString;
|
|
991
|
+
}, z.core.$strip>>>>>;
|
|
754
992
|
}, z.core.$strip>, z.ZodObject<{
|
|
755
993
|
id: z.ZodUUID;
|
|
756
994
|
type: z.ZodLiteral<"slot">;
|
|
@@ -768,9 +1006,13 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
768
1006
|
vertical: "vertical";
|
|
769
1007
|
horizontal: "horizontal";
|
|
770
1008
|
floating: "floating";
|
|
1009
|
+
contents: "contents";
|
|
771
1010
|
}>>;
|
|
1011
|
+
bordered: z.ZodOptional<z.ZodBoolean>;
|
|
772
1012
|
style: z.ZodOptional<z.ZodString>;
|
|
773
1013
|
fields: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1014
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
774
1016
|
id: z.ZodUUID;
|
|
775
1017
|
type: z.ZodLiteral<"string">;
|
|
776
1018
|
path: z.ZodString;
|
|
@@ -796,6 +1038,8 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
796
1038
|
message: z.ZodString;
|
|
797
1039
|
}, z.core.$strip>>>>>;
|
|
798
1040
|
}, z.core.$strip>, z.ZodObject<{
|
|
1041
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1042
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
799
1043
|
id: z.ZodUUID;
|
|
800
1044
|
type: z.ZodLiteral<"textarea">;
|
|
801
1045
|
path: z.ZodString;
|
|
@@ -821,6 +1065,8 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
821
1065
|
message: z.ZodString;
|
|
822
1066
|
}, z.core.$strip>>>>>;
|
|
823
1067
|
}, z.core.$strip>, z.ZodObject<{
|
|
1068
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
824
1070
|
id: z.ZodUUID;
|
|
825
1071
|
type: z.ZodLiteral<"number">;
|
|
826
1072
|
path: z.ZodString;
|
|
@@ -847,6 +1093,8 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
847
1093
|
message: z.ZodString;
|
|
848
1094
|
}, z.core.$strip>>>>>;
|
|
849
1095
|
}, z.core.$strip>, z.ZodObject<{
|
|
1096
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1097
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
850
1098
|
id: z.ZodUUID;
|
|
851
1099
|
type: z.ZodLiteral<"select">;
|
|
852
1100
|
path: z.ZodString;
|
|
@@ -874,6 +1122,8 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
874
1122
|
message: z.ZodString;
|
|
875
1123
|
}, z.core.$strip>>>>>;
|
|
876
1124
|
}, z.core.$strip>, z.ZodObject<{
|
|
1125
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
877
1127
|
id: z.ZodUUID;
|
|
878
1128
|
type: z.ZodLiteral<"calendar">;
|
|
879
1129
|
path: z.ZodString;
|
|
@@ -904,6 +1154,42 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
904
1154
|
expression: z.ZodString;
|
|
905
1155
|
message: z.ZodString;
|
|
906
1156
|
}, z.core.$strip>>>>>;
|
|
1157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1158
|
+
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1159
|
+
contentStyle: z.ZodOptional<z.ZodString>;
|
|
1160
|
+
id: z.ZodUUID;
|
|
1161
|
+
type: z.ZodLiteral<"upload">;
|
|
1162
|
+
path: z.ZodString;
|
|
1163
|
+
title: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1164
|
+
locale: z.ZodEnum<{
|
|
1165
|
+
en: "en";
|
|
1166
|
+
ja: "ja";
|
|
1167
|
+
ko: "ko";
|
|
1168
|
+
zh: "zh";
|
|
1169
|
+
}>;
|
|
1170
|
+
message: z.ZodString;
|
|
1171
|
+
}, z.core.$strip>>>;
|
|
1172
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1173
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
accept: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
1175
|
+
description: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1176
|
+
locale: z.ZodEnum<{
|
|
1177
|
+
en: "en";
|
|
1178
|
+
ja: "ja";
|
|
1179
|
+
ko: "ko";
|
|
1180
|
+
zh: "zh";
|
|
1181
|
+
}>;
|
|
1182
|
+
message: z.ZodString;
|
|
1183
|
+
}, z.core.$strip>>>>;
|
|
1184
|
+
maxCount: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
style: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
initialValue: z.ZodOptional<z.ZodString>;
|
|
1187
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
1188
|
+
disabled: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
validation: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
1190
|
+
expression: z.ZodString;
|
|
1191
|
+
message: z.ZodString;
|
|
1192
|
+
}, z.core.$strip>>>>>;
|
|
907
1193
|
}, z.core.$strip>, z.ZodObject<{
|
|
908
1194
|
id: z.ZodUUID;
|
|
909
1195
|
type: z.ZodLiteral<"slot">;
|
|
@@ -924,4 +1210,5 @@ export type FieldsConfig = z.infer<typeof FieldsConfigC>;
|
|
|
924
1210
|
export type FieldsConfigInput = z.input<typeof FieldsConfigInputC>;
|
|
925
1211
|
export type SlotField = z.infer<typeof SlotFieldC>;
|
|
926
1212
|
export type EmptyField = z.infer<typeof EmptyFieldC>;
|
|
1213
|
+
export type UploadField = z.infer<typeof UploadFieldC>;
|
|
927
1214
|
export declare function createFieldsConfig(body: FieldsBody): FieldsConfig;
|
|
@@ -8,6 +8,10 @@ const inheritedFieldContext = {
|
|
|
8
8
|
index: "int",
|
|
9
9
|
id: "string"
|
|
10
10
|
};
|
|
11
|
+
const fieldCellStyleShape = {
|
|
12
|
+
labelStyle: z.string().optional().describe("CSS \u6837\u5F0F\u5BF9\u8C61\u8868\u8FBE\u5F0F\uFF0C\u63A7\u5236 contents \u5E03\u5C40\u6A21\u5F0F\u4E0B\u6807\u7B7E\u5355\u5143\u683C\u7684\u5E03\u5C40\u4E0E\u5916\u89C2"),
|
|
13
|
+
contentStyle: z.string().optional().describe("CSS \u6837\u5F0F\u5BF9\u8C61\u8868\u8FBE\u5F0F\uFF0C\u63A7\u5236 contents \u5E03\u5C40\u6A21\u5F0F\u4E0B\u5185\u5BB9\u5355\u5143\u683C\u7684\u5E03\u5C40\u4E0E\u5916\u89C2")
|
|
14
|
+
};
|
|
11
15
|
export const KIND = "shwfed.component.fields";
|
|
12
16
|
export const CURRENT_COMPATIBILITY_DATE = "2026-03-20";
|
|
13
17
|
export const SUPPORTED_COMPATIBILITY_DATES = [CURRENT_COMPATIBILITY_DATE];
|
|
@@ -29,7 +33,8 @@ export const StringFieldC = z.object({
|
|
|
29
33
|
maxLength: expressionC("int").optional().describe('\u8FD4\u56DE\u6574\u6570\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u9650\u5236\u8F93\u5165\u7684\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u5982 "100"'),
|
|
30
34
|
hidden: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u9690\u85CF\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
31
35
|
disabled: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u7981\u7528\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
32
|
-
validation: validationC
|
|
36
|
+
validation: validationC,
|
|
37
|
+
...fieldCellStyleShape
|
|
33
38
|
});
|
|
34
39
|
export const TextareaFieldC = z.object({
|
|
35
40
|
id: fieldIdC,
|
|
@@ -44,7 +49,8 @@ export const TextareaFieldC = z.object({
|
|
|
44
49
|
maxLength: expressionC("int").optional().describe('\u8FD4\u56DE\u6574\u6570\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u9650\u5236\u8F93\u5165\u7684\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u5982 "100"'),
|
|
45
50
|
hidden: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u9690\u85CF\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
46
51
|
disabled: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u7981\u7528\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
47
|
-
validation: validationC
|
|
52
|
+
validation: validationC,
|
|
53
|
+
...fieldCellStyleShape
|
|
48
54
|
});
|
|
49
55
|
export const NumberFieldC = z.object({
|
|
50
56
|
id: fieldIdC,
|
|
@@ -60,7 +66,8 @@ export const NumberFieldC = z.object({
|
|
|
60
66
|
step: expressionC("double").optional().describe('\u8FD4\u56DE\u6D6E\u70B9\u6570\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u63A7\u5236\u6570\u503C\u9012\u589E\u6B65\u957F\uFF0C\u5982 "0.5"'),
|
|
61
67
|
hidden: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u9690\u85CF\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
62
68
|
disabled: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u7981\u7528\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
63
|
-
validation: validationC
|
|
69
|
+
validation: validationC,
|
|
70
|
+
...fieldCellStyleShape
|
|
64
71
|
});
|
|
65
72
|
export const SelectFieldC = z.object({
|
|
66
73
|
id: fieldIdC,
|
|
@@ -77,7 +84,8 @@ export const SelectFieldC = z.object({
|
|
|
77
84
|
initialValue: expressionC(/.+/, inheritedFieldContext).optional().describe("\u8FD4\u56DE\u4EFB\u610F\u503C\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u5728\u5B57\u6BB5\u9996\u6B21\u521D\u59CB\u5316\u4E14 path \u4E0D\u5B58\u5728\u65F6\u5199\u5165\u521D\u59CB\u503C\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
78
85
|
hidden: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u9690\u85CF\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
79
86
|
disabled: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u7981\u7528\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
80
|
-
validation: validationC
|
|
87
|
+
validation: validationC,
|
|
88
|
+
...fieldCellStyleShape
|
|
81
89
|
});
|
|
82
90
|
export const CalendarFieldC = z.object({
|
|
83
91
|
id: fieldIdC,
|
|
@@ -94,7 +102,25 @@ export const CalendarFieldC = z.object({
|
|
|
94
102
|
disableDate: expressionC(["bool", "dyn"], { date: "Date" }).optional().describe("\u8FD4\u56DE\u5E03\u5C14\u503C\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u4EE5 date\uFF08Date \u7C7B\u578B\uFF09\u4E3A\u53D8\u91CF\uFF0C\u8FD4\u56DE true \u65F6\u8BE5\u65E5\u671F\u5728\u65E5\u5386\u4E2D\u88AB\u7981\u7528"),
|
|
95
103
|
hidden: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u9690\u85CF\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
96
104
|
disabled: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u7981\u7528\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
97
|
-
validation: validationC
|
|
105
|
+
validation: validationC,
|
|
106
|
+
...fieldCellStyleShape
|
|
107
|
+
});
|
|
108
|
+
export const UploadFieldC = z.object({
|
|
109
|
+
id: fieldIdC,
|
|
110
|
+
type: z.literal("upload").describe("\u6587\u4EF6\u4E0A\u4F20\u5B57\u6BB5\uFF0C\u7ED1\u5B9A File \u5BF9\u8C61\u6570\u7EC4"),
|
|
111
|
+
path: dotPropC,
|
|
112
|
+
title: localeC.describe("\u5B57\u6BB5\u6807\u7B7E\u7684\u672C\u5730\u5316\u663E\u793A\u6587\u672C"),
|
|
113
|
+
required: z.boolean().optional().describe("\u4E3A true \u65F6\uFF0C\u4EC5\u5728\u5B57\u6BB5\u6807\u7B7E\u540E\u663E\u793A\u5FC5\u586B\u63D0\u793A\u661F\u53F7\uFF0C\u4E0D\u5F71\u54CD\u5B9E\u9645\u6821\u9A8C\u903B\u8F91"),
|
|
114
|
+
icon: z.string().optional().describe("Iconify \u56FE\u6807\u6807\u8BC6\u7B26\uFF0C\u66FF\u6362\u4E0A\u4F20\u533A\u57DF\u9ED8\u8BA4\u7684\u4E91\u4E0A\u4F20\u56FE\u6807"),
|
|
115
|
+
accept: z.array(z.string()).readonly().optional().describe("\u5141\u8BB8\u4E0A\u4F20\u7684 MIME \u7C7B\u578B\u6570\u7EC4\uFF0C\u540C\u65F6\u63A7\u5236\u6587\u4EF6\u9009\u62E9\u8FC7\u6EE4\u548C\u533A\u57DF\u63CF\u8FF0\u6587\u5B57"),
|
|
116
|
+
description: localeC.optional().describe("\u4E0A\u4F20\u533A\u57DF\u7684\u63D0\u793A\u6587\u672C\u7684\u672C\u5730\u5316\u663E\u793A\u6587\u672C\uFF0C\u66FF\u6362\u9ED8\u8BA4\u7684\u300C\u70B9\u51FB\u6216\u62D6\u62FD\u5230\u6B64\u5904\u4E0A\u4F20\u300D"),
|
|
117
|
+
maxCount: expressionC(["int", "dyn"], inheritedFieldContext).optional().describe("\u8FD4\u56DE\u6574\u6570\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u9650\u5236\u6700\u5927\u53EF\u4E0A\u4F20\u6587\u4EF6\u6570\u91CF\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
118
|
+
style: z.string().optional().describe("CSS \u6837\u5F0F\u5BF9\u8C61\u8868\u8FBE\u5F0F\uFF0C\u63A7\u5236\u5B57\u6BB5\u7684\u5E03\u5C40\u4E0E\u5916\u89C2"),
|
|
119
|
+
initialValue: expressionC(["list(dyn)", "dyn"], inheritedFieldContext).optional().describe("\u8FD4\u56DE\u6570\u7EC4\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u5728\u5B57\u6BB5\u9996\u6B21\u521D\u59CB\u5316\u4E14 path \u4E0D\u5B58\u5728\u65F6\u5199\u5165\u521D\u59CB\u503C\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
120
|
+
hidden: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u9690\u85CF\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
121
|
+
disabled: expressionC(["bool", "dyn"], inheritedFieldContext).optional().describe("\u4E3A true \u65F6\uFF0C\u7981\u7528\u8FD9\u4E2A\u5B57\u6BB5\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF"),
|
|
122
|
+
validation: validationC,
|
|
123
|
+
...fieldCellStyleShape
|
|
98
124
|
});
|
|
99
125
|
export const SlotFieldC = z.strictObject({
|
|
100
126
|
id: fieldIdC,
|
|
@@ -112,15 +138,17 @@ export const FieldC = z.discriminatedUnion("type", [
|
|
|
112
138
|
NumberFieldC,
|
|
113
139
|
SelectFieldC,
|
|
114
140
|
CalendarFieldC,
|
|
141
|
+
UploadFieldC,
|
|
115
142
|
SlotFieldC,
|
|
116
143
|
EmptyFieldC
|
|
117
144
|
]);
|
|
118
|
-
export const FieldsOrientationC = z.enum(["horizontal", "vertical", "floating"]);
|
|
145
|
+
export const FieldsOrientationC = z.enum(["horizontal", "vertical", "floating", "contents"]);
|
|
119
146
|
export const FieldsStyleC = expressionC([/^map/, "dyn"], {
|
|
120
147
|
...inheritedFieldContext
|
|
121
148
|
}).optional().describe("\u8FD4\u56DE\u5B57\u6BB5\u96C6\u5408\u5BB9\u5668\u6837\u5F0F\u5BF9\u8C61\u7684 CEL \u8868\u8FBE\u5F0F\uFF0C\u53EF\u4F7F\u7528 form\u3001row\u3001index \u548C id \u53D8\u91CF\u3002");
|
|
122
149
|
const FieldsBodyObjectC = z.object({
|
|
123
|
-
orientation: FieldsOrientationC.optional().describe("\u5B57\u6BB5\u5E03\u5C40\u65B9\u5411\uFF0C\u53EF\u9009 horizontal\u3001vertical \u6216
|
|
150
|
+
orientation: FieldsOrientationC.optional().describe("\u5B57\u6BB5\u5E03\u5C40\u65B9\u5411\uFF0C\u53EF\u9009 horizontal\u3001vertical\u3001floating \u6216 contents\uFF1B\u7559\u7A7A\u65F6\u9ED8\u8BA4 horizontal"),
|
|
151
|
+
bordered: z.boolean().optional().describe("\u4E3A true \u65F6\uFF0C\u5728 contents \u5E03\u5C40\u6A21\u5F0F\u4E0B\u4E3A\u5BB9\u5668\u548C\u6BCF\u4E2A\u5355\u5143\u683C\u6DFB\u52A0\u8868\u683C\u5F0F\u8FB9\u6846"),
|
|
124
152
|
style: FieldsStyleC,
|
|
125
153
|
fields: z.array(FieldC).readonly().describe("\u5B57\u6BB5\u5217\u8868")
|
|
126
154
|
});
|