@shwfed/nuxt 0.11.46 → 0.11.47
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 +40 -0
- package/dist/runtime/components/fields.vue.d.ts +40 -0
- package/dist/runtime/components/ui/fields/Fields.d.vue.ts +82 -2
- package/dist/runtime/components/ui/fields/Fields.vue +41 -6
- package/dist/runtime/components/ui/fields/Fields.vue.d.ts +82 -2
- package/dist/runtime/components/ui/fields/schema.d.ts +307 -0
- package/dist/runtime/components/ui/fields/schema.js +11 -1
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.d.vue.ts +40 -0
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue +91 -24
- package/dist/runtime/components/ui/fields-configurator/FieldsConfiguratorDialog.vue.d.ts +40 -0
- package/package.json +1 -1
|
@@ -125,6 +125,22 @@ export declare const MarkdownFieldC: z.ZodObject<{
|
|
|
125
125
|
message: z.ZodString;
|
|
126
126
|
}, z.core.$strip>>>;
|
|
127
127
|
}, z.core.$strict>;
|
|
128
|
+
export declare const MarkdownBodyFieldC: z.ZodObject<{
|
|
129
|
+
id: z.ZodUUID;
|
|
130
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
131
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
132
|
+
locale: z.ZodEnum<{
|
|
133
|
+
en: "en";
|
|
134
|
+
ja: "ja";
|
|
135
|
+
ko: "ko";
|
|
136
|
+
zh: "zh";
|
|
137
|
+
}>;
|
|
138
|
+
message: z.ZodString;
|
|
139
|
+
}, z.core.$strip>>>;
|
|
140
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
style: z.ZodOptional<z.ZodString>;
|
|
142
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strict>;
|
|
128
144
|
export declare const SelectFieldC: z.ZodObject<{
|
|
129
145
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
130
146
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -391,6 +407,21 @@ export declare const FieldC: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
391
407
|
}>;
|
|
392
408
|
message: z.ZodString;
|
|
393
409
|
}, z.core.$strip>>>;
|
|
410
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
411
|
+
id: z.ZodUUID;
|
|
412
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
413
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
414
|
+
locale: z.ZodEnum<{
|
|
415
|
+
en: "en";
|
|
416
|
+
ja: "ja";
|
|
417
|
+
ko: "ko";
|
|
418
|
+
zh: "zh";
|
|
419
|
+
}>;
|
|
420
|
+
message: z.ZodString;
|
|
421
|
+
}, z.core.$strip>>>;
|
|
422
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
+
style: z.ZodOptional<z.ZodString>;
|
|
424
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
394
425
|
}, z.core.$strict>, z.ZodObject<{
|
|
395
426
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
396
427
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -663,6 +694,21 @@ export declare const FieldGroupC: z.ZodReadonly<z.ZodObject<{
|
|
|
663
694
|
}>;
|
|
664
695
|
message: z.ZodString;
|
|
665
696
|
}, z.core.$strip>>>;
|
|
697
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
698
|
+
id: z.ZodUUID;
|
|
699
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
700
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
701
|
+
locale: z.ZodEnum<{
|
|
702
|
+
en: "en";
|
|
703
|
+
ja: "ja";
|
|
704
|
+
ko: "ko";
|
|
705
|
+
zh: "zh";
|
|
706
|
+
}>;
|
|
707
|
+
message: z.ZodString;
|
|
708
|
+
}, z.core.$strip>>>;
|
|
709
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
710
|
+
style: z.ZodOptional<z.ZodString>;
|
|
711
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
666
712
|
}, z.core.$strict>, z.ZodObject<{
|
|
667
713
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
668
714
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -926,6 +972,21 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
926
972
|
}>;
|
|
927
973
|
message: z.ZodString;
|
|
928
974
|
}, z.core.$strip>>>;
|
|
975
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
976
|
+
id: z.ZodUUID;
|
|
977
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
978
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
979
|
+
locale: z.ZodEnum<{
|
|
980
|
+
en: "en";
|
|
981
|
+
ja: "ja";
|
|
982
|
+
ko: "ko";
|
|
983
|
+
zh: "zh";
|
|
984
|
+
}>;
|
|
985
|
+
message: z.ZodString;
|
|
986
|
+
}, z.core.$strip>>>;
|
|
987
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
988
|
+
style: z.ZodOptional<z.ZodString>;
|
|
989
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
929
990
|
}, z.core.$strict>, z.ZodObject<{
|
|
930
991
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
931
992
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -1190,6 +1251,21 @@ export declare const FieldsBodyInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
1190
1251
|
}>;
|
|
1191
1252
|
message: z.ZodString;
|
|
1192
1253
|
}, z.core.$strip>>>;
|
|
1254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1255
|
+
id: z.ZodUUID;
|
|
1256
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
1257
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1258
|
+
locale: z.ZodEnum<{
|
|
1259
|
+
en: "en";
|
|
1260
|
+
ja: "ja";
|
|
1261
|
+
ko: "ko";
|
|
1262
|
+
zh: "zh";
|
|
1263
|
+
}>;
|
|
1264
|
+
message: z.ZodString;
|
|
1265
|
+
}, z.core.$strip>>>;
|
|
1266
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
1267
|
+
style: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
1193
1269
|
}, z.core.$strict>, z.ZodObject<{
|
|
1194
1270
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1195
1271
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -1462,6 +1538,21 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
1462
1538
|
}>;
|
|
1463
1539
|
message: z.ZodString;
|
|
1464
1540
|
}, z.core.$strip>>>;
|
|
1541
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1542
|
+
id: z.ZodUUID;
|
|
1543
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
1544
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1545
|
+
locale: z.ZodEnum<{
|
|
1546
|
+
en: "en";
|
|
1547
|
+
ja: "ja";
|
|
1548
|
+
ko: "ko";
|
|
1549
|
+
zh: "zh";
|
|
1550
|
+
}>;
|
|
1551
|
+
message: z.ZodString;
|
|
1552
|
+
}, z.core.$strip>>>;
|
|
1553
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
1554
|
+
style: z.ZodOptional<z.ZodString>;
|
|
1555
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
1465
1556
|
}, z.core.$strict>, z.ZodObject<{
|
|
1466
1557
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1467
1558
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -1726,6 +1817,21 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
1726
1817
|
}>;
|
|
1727
1818
|
message: z.ZodString;
|
|
1728
1819
|
}, z.core.$strip>>>;
|
|
1820
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1821
|
+
id: z.ZodUUID;
|
|
1822
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
1823
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
1824
|
+
locale: z.ZodEnum<{
|
|
1825
|
+
en: "en";
|
|
1826
|
+
ja: "ja";
|
|
1827
|
+
ko: "ko";
|
|
1828
|
+
zh: "zh";
|
|
1829
|
+
}>;
|
|
1830
|
+
message: z.ZodString;
|
|
1831
|
+
}, z.core.$strip>>>;
|
|
1832
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
1833
|
+
style: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
1729
1835
|
}, z.core.$strict>, z.ZodObject<{
|
|
1730
1836
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
1731
1837
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -1972,6 +2078,16 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
1972
2078
|
style?: string | undefined;
|
|
1973
2079
|
hidden?: string | undefined;
|
|
1974
2080
|
hideLabel?: boolean | undefined;
|
|
2081
|
+
} | {
|
|
2082
|
+
id: string;
|
|
2083
|
+
type: "markdown-body";
|
|
2084
|
+
locale: readonly {
|
|
2085
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
2086
|
+
message: string;
|
|
2087
|
+
}[];
|
|
2088
|
+
inline?: boolean | undefined;
|
|
2089
|
+
style?: string | undefined;
|
|
2090
|
+
hidden?: string | undefined;
|
|
1975
2091
|
} | {
|
|
1976
2092
|
options: string;
|
|
1977
2093
|
label: string;
|
|
@@ -2176,6 +2292,16 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
2176
2292
|
style?: string | undefined;
|
|
2177
2293
|
hidden?: string | undefined;
|
|
2178
2294
|
hideLabel?: boolean | undefined;
|
|
2295
|
+
} | {
|
|
2296
|
+
id: string;
|
|
2297
|
+
type: "markdown-body";
|
|
2298
|
+
locale: readonly {
|
|
2299
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
2300
|
+
message: string;
|
|
2301
|
+
}[];
|
|
2302
|
+
inline?: boolean | undefined;
|
|
2303
|
+
style?: string | undefined;
|
|
2304
|
+
hidden?: string | undefined;
|
|
2179
2305
|
} | {
|
|
2180
2306
|
options: string;
|
|
2181
2307
|
label: string;
|
|
@@ -2384,6 +2510,16 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
2384
2510
|
style?: string | undefined;
|
|
2385
2511
|
hidden?: string | undefined;
|
|
2386
2512
|
hideLabel?: boolean | undefined;
|
|
2513
|
+
} | {
|
|
2514
|
+
id: string;
|
|
2515
|
+
type: "markdown-body";
|
|
2516
|
+
locale: readonly {
|
|
2517
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
2518
|
+
message: string;
|
|
2519
|
+
}[];
|
|
2520
|
+
inline?: boolean | undefined;
|
|
2521
|
+
style?: string | undefined;
|
|
2522
|
+
hidden?: string | undefined;
|
|
2387
2523
|
} | {
|
|
2388
2524
|
options: string;
|
|
2389
2525
|
label: string;
|
|
@@ -2588,6 +2724,16 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
2588
2724
|
style?: string | undefined;
|
|
2589
2725
|
hidden?: string | undefined;
|
|
2590
2726
|
hideLabel?: boolean | undefined;
|
|
2727
|
+
} | {
|
|
2728
|
+
id: string;
|
|
2729
|
+
type: "markdown-body";
|
|
2730
|
+
locale: readonly {
|
|
2731
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
2732
|
+
message: string;
|
|
2733
|
+
}[];
|
|
2734
|
+
inline?: boolean | undefined;
|
|
2735
|
+
style?: string | undefined;
|
|
2736
|
+
hidden?: string | undefined;
|
|
2591
2737
|
} | {
|
|
2592
2738
|
options: string;
|
|
2593
2739
|
label: string;
|
|
@@ -2821,6 +2967,21 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
2821
2967
|
}>;
|
|
2822
2968
|
message: z.ZodString;
|
|
2823
2969
|
}, z.core.$strip>>>;
|
|
2970
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2971
|
+
id: z.ZodUUID;
|
|
2972
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
2973
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2974
|
+
locale: z.ZodEnum<{
|
|
2975
|
+
en: "en";
|
|
2976
|
+
ja: "ja";
|
|
2977
|
+
ko: "ko";
|
|
2978
|
+
zh: "zh";
|
|
2979
|
+
}>;
|
|
2980
|
+
message: z.ZodString;
|
|
2981
|
+
}, z.core.$strip>>>;
|
|
2982
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
2983
|
+
style: z.ZodOptional<z.ZodString>;
|
|
2984
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
2824
2985
|
}, z.core.$strict>, z.ZodObject<{
|
|
2825
2986
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
2826
2987
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -3085,6 +3246,21 @@ export declare const FieldsBodyC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObject<
|
|
|
3085
3246
|
}>;
|
|
3086
3247
|
message: z.ZodString;
|
|
3087
3248
|
}, z.core.$strip>>>;
|
|
3249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3250
|
+
id: z.ZodUUID;
|
|
3251
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
3252
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
3253
|
+
locale: z.ZodEnum<{
|
|
3254
|
+
en: "en";
|
|
3255
|
+
ja: "ja";
|
|
3256
|
+
ko: "ko";
|
|
3257
|
+
zh: "zh";
|
|
3258
|
+
}>;
|
|
3259
|
+
message: z.ZodString;
|
|
3260
|
+
}, z.core.$strip>>>;
|
|
3261
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
3262
|
+
style: z.ZodOptional<z.ZodString>;
|
|
3263
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
3088
3264
|
}, z.core.$strict>, z.ZodObject<{
|
|
3089
3265
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
3090
3266
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -3357,6 +3533,21 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
3357
3533
|
}>;
|
|
3358
3534
|
message: z.ZodString;
|
|
3359
3535
|
}, z.core.$strip>>>;
|
|
3536
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3537
|
+
id: z.ZodUUID;
|
|
3538
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
3539
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
3540
|
+
locale: z.ZodEnum<{
|
|
3541
|
+
en: "en";
|
|
3542
|
+
ja: "ja";
|
|
3543
|
+
ko: "ko";
|
|
3544
|
+
zh: "zh";
|
|
3545
|
+
}>;
|
|
3546
|
+
message: z.ZodString;
|
|
3547
|
+
}, z.core.$strip>>>;
|
|
3548
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
3549
|
+
style: z.ZodOptional<z.ZodString>;
|
|
3550
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
3360
3551
|
}, z.core.$strict>, z.ZodObject<{
|
|
3361
3552
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
3362
3553
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -3621,6 +3812,21 @@ export declare const FieldsConfigInputC: z.ZodReadonly<z.ZodObject<{
|
|
|
3621
3812
|
}>;
|
|
3622
3813
|
message: z.ZodString;
|
|
3623
3814
|
}, z.core.$strip>>>;
|
|
3815
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3816
|
+
id: z.ZodUUID;
|
|
3817
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
3818
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
3819
|
+
locale: z.ZodEnum<{
|
|
3820
|
+
en: "en";
|
|
3821
|
+
ja: "ja";
|
|
3822
|
+
ko: "ko";
|
|
3823
|
+
zh: "zh";
|
|
3824
|
+
}>;
|
|
3825
|
+
message: z.ZodString;
|
|
3826
|
+
}, z.core.$strip>>>;
|
|
3827
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
3828
|
+
style: z.ZodOptional<z.ZodString>;
|
|
3829
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
3624
3830
|
}, z.core.$strict>, z.ZodObject<{
|
|
3625
3831
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
3626
3832
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -3895,6 +4101,21 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
3895
4101
|
}>;
|
|
3896
4102
|
message: z.ZodString;
|
|
3897
4103
|
}, z.core.$strip>>>;
|
|
4104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4105
|
+
id: z.ZodUUID;
|
|
4106
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
4107
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
4108
|
+
locale: z.ZodEnum<{
|
|
4109
|
+
en: "en";
|
|
4110
|
+
ja: "ja";
|
|
4111
|
+
ko: "ko";
|
|
4112
|
+
zh: "zh";
|
|
4113
|
+
}>;
|
|
4114
|
+
message: z.ZodString;
|
|
4115
|
+
}, z.core.$strip>>>;
|
|
4116
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
4117
|
+
style: z.ZodOptional<z.ZodString>;
|
|
4118
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
3898
4119
|
}, z.core.$strict>, z.ZodObject<{
|
|
3899
4120
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
3900
4121
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -4159,6 +4380,21 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
4159
4380
|
}>;
|
|
4160
4381
|
message: z.ZodString;
|
|
4161
4382
|
}, z.core.$strip>>>;
|
|
4383
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4384
|
+
id: z.ZodUUID;
|
|
4385
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
4386
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
4387
|
+
locale: z.ZodEnum<{
|
|
4388
|
+
en: "en";
|
|
4389
|
+
ja: "ja";
|
|
4390
|
+
ko: "ko";
|
|
4391
|
+
zh: "zh";
|
|
4392
|
+
}>;
|
|
4393
|
+
message: z.ZodString;
|
|
4394
|
+
}, z.core.$strip>>>;
|
|
4395
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
4396
|
+
style: z.ZodOptional<z.ZodString>;
|
|
4397
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
4162
4398
|
}, z.core.$strict>, z.ZodObject<{
|
|
4163
4399
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
4164
4400
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -4407,6 +4643,16 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
4407
4643
|
style?: string | undefined;
|
|
4408
4644
|
hidden?: string | undefined;
|
|
4409
4645
|
hideLabel?: boolean | undefined;
|
|
4646
|
+
} | {
|
|
4647
|
+
id: string;
|
|
4648
|
+
type: "markdown-body";
|
|
4649
|
+
locale: readonly {
|
|
4650
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
4651
|
+
message: string;
|
|
4652
|
+
}[];
|
|
4653
|
+
inline?: boolean | undefined;
|
|
4654
|
+
style?: string | undefined;
|
|
4655
|
+
hidden?: string | undefined;
|
|
4410
4656
|
} | {
|
|
4411
4657
|
options: string;
|
|
4412
4658
|
label: string;
|
|
@@ -4611,6 +4857,16 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
4611
4857
|
style?: string | undefined;
|
|
4612
4858
|
hidden?: string | undefined;
|
|
4613
4859
|
hideLabel?: boolean | undefined;
|
|
4860
|
+
} | {
|
|
4861
|
+
id: string;
|
|
4862
|
+
type: "markdown-body";
|
|
4863
|
+
locale: readonly {
|
|
4864
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
4865
|
+
message: string;
|
|
4866
|
+
}[];
|
|
4867
|
+
inline?: boolean | undefined;
|
|
4868
|
+
style?: string | undefined;
|
|
4869
|
+
hidden?: string | undefined;
|
|
4614
4870
|
} | {
|
|
4615
4871
|
options: string;
|
|
4616
4872
|
label: string;
|
|
@@ -4823,6 +5079,16 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
4823
5079
|
style?: string | undefined;
|
|
4824
5080
|
hidden?: string | undefined;
|
|
4825
5081
|
hideLabel?: boolean | undefined;
|
|
5082
|
+
} | {
|
|
5083
|
+
id: string;
|
|
5084
|
+
type: "markdown-body";
|
|
5085
|
+
locale: readonly {
|
|
5086
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
5087
|
+
message: string;
|
|
5088
|
+
}[];
|
|
5089
|
+
inline?: boolean | undefined;
|
|
5090
|
+
style?: string | undefined;
|
|
5091
|
+
hidden?: string | undefined;
|
|
4826
5092
|
} | {
|
|
4827
5093
|
options: string;
|
|
4828
5094
|
label: string;
|
|
@@ -5027,6 +5293,16 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
5027
5293
|
style?: string | undefined;
|
|
5028
5294
|
hidden?: string | undefined;
|
|
5029
5295
|
hideLabel?: boolean | undefined;
|
|
5296
|
+
} | {
|
|
5297
|
+
id: string;
|
|
5298
|
+
type: "markdown-body";
|
|
5299
|
+
locale: readonly {
|
|
5300
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
5301
|
+
message: string;
|
|
5302
|
+
}[];
|
|
5303
|
+
inline?: boolean | undefined;
|
|
5304
|
+
style?: string | undefined;
|
|
5305
|
+
hidden?: string | undefined;
|
|
5030
5306
|
} | {
|
|
5031
5307
|
options: string;
|
|
5032
5308
|
label: string;
|
|
@@ -5260,6 +5536,21 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
5260
5536
|
}>;
|
|
5261
5537
|
message: z.ZodString;
|
|
5262
5538
|
}, z.core.$strip>>>;
|
|
5539
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5540
|
+
id: z.ZodUUID;
|
|
5541
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
5542
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
5543
|
+
locale: z.ZodEnum<{
|
|
5544
|
+
en: "en";
|
|
5545
|
+
ja: "ja";
|
|
5546
|
+
ko: "ko";
|
|
5547
|
+
zh: "zh";
|
|
5548
|
+
}>;
|
|
5549
|
+
message: z.ZodString;
|
|
5550
|
+
}, z.core.$strip>>>;
|
|
5551
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
5552
|
+
style: z.ZodOptional<z.ZodString>;
|
|
5553
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
5263
5554
|
}, z.core.$strict>, z.ZodObject<{
|
|
5264
5555
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
5265
5556
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -5524,6 +5815,21 @@ export declare const FieldsConfigC: z.ZodReadonly<z.ZodPipe<z.ZodPipe<z.ZodObjec
|
|
|
5524
5815
|
}>;
|
|
5525
5816
|
message: z.ZodString;
|
|
5526
5817
|
}, z.core.$strip>>>;
|
|
5818
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5819
|
+
id: z.ZodUUID;
|
|
5820
|
+
type: z.ZodLiteral<"markdown-body">;
|
|
5821
|
+
locale: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
5822
|
+
locale: z.ZodEnum<{
|
|
5823
|
+
en: "en";
|
|
5824
|
+
ja: "ja";
|
|
5825
|
+
ko: "ko";
|
|
5826
|
+
zh: "zh";
|
|
5827
|
+
}>;
|
|
5828
|
+
message: z.ZodString;
|
|
5829
|
+
}, z.core.$strip>>>;
|
|
5830
|
+
inline: z.ZodOptional<z.ZodBoolean>;
|
|
5831
|
+
style: z.ZodOptional<z.ZodString>;
|
|
5832
|
+
hidden: z.ZodOptional<z.ZodString>;
|
|
5527
5833
|
}, z.core.$strict>, z.ZodObject<{
|
|
5528
5834
|
labelStyle: z.ZodOptional<z.ZodString>;
|
|
5529
5835
|
contentStyle: z.ZodOptional<z.ZodString>;
|
|
@@ -5697,4 +6003,5 @@ export type SlotField = z.infer<typeof SlotFieldC>;
|
|
|
5697
6003
|
export type EmptyField = z.infer<typeof EmptyFieldC>;
|
|
5698
6004
|
export type UploadField = z.infer<typeof UploadFieldC>;
|
|
5699
6005
|
export type MarkdownField = z.infer<typeof MarkdownFieldC>;
|
|
6006
|
+
export type MarkdownBodyField = z.infer<typeof MarkdownBodyFieldC>;
|
|
5700
6007
|
export declare function createFieldsConfig(body: FieldsBodyInput): FieldsConfig;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
import { createComponentConfig, createComponentConfigMetadataShape } from "../../component-config.js";
|
|
3
|
+
import { MarkdownStyleC } from "../markdown/schema.js";
|
|
3
4
|
import { dotPropC, expressionC, localeC } from "../../../utils/coders.js";
|
|
4
5
|
const fieldIdC = z.uuid().describe("\u5B57\u6BB5\u552F\u4E00\u6807\u8BC6\uFF0C\u5FC5\u987B\u662F UUID");
|
|
5
6
|
const fieldGroupIdC = z.uuid().describe("\u5B57\u6BB5\u7EC4\u552F\u4E00\u6807\u8BC6\uFF0C\u5FC5\u987B\u662F UUID");
|
|
@@ -86,6 +87,14 @@ export const MarkdownFieldC = z.object({
|
|
|
86
87
|
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"),
|
|
87
88
|
...fieldCellStyleShape
|
|
88
89
|
}).strict();
|
|
90
|
+
export const MarkdownBodyFieldC = z.object({
|
|
91
|
+
id: fieldIdC,
|
|
92
|
+
type: z.literal("markdown-body").describe("\u7EAF Markdown \u5C55\u793A\u5B57\u6BB5\uFF0C\u663E\u793A\u65E0\u6807\u7B7E\u7684\u672C\u5730\u5316 Markdown \u5185\u5BB9"),
|
|
93
|
+
locale: localeC.describe("\u5B57\u6BB5\u5185\u5BB9\u7684\u672C\u5730\u5316 Markdown \u6587\u672C\uFF0C\u652F\u6301 {{ expression }} \u8BED\u6CD5"),
|
|
94
|
+
inline: z.boolean().optional().describe("\u4E3A true \u65F6\u4EE5\u5185\u8054\u6A21\u5F0F\u6E32\u67D3\uFF1B\u7559\u7A7A\u6216 false \u65F6\u6309\u5757\u7EA7\u6A21\u5F0F\u6E32\u67D3"),
|
|
95
|
+
style: MarkdownStyleC.describe("CSS \u6837\u5F0F\u5BF9\u8C61\u8868\u8FBE\u5F0F\uFF0C\u63A7\u5236\u5B57\u6BB5\u7684\u5E03\u5C40\u4E0E\u5916\u89C2"),
|
|
96
|
+
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")
|
|
97
|
+
}).strict();
|
|
89
98
|
export const SelectFieldC = z.object({
|
|
90
99
|
id: fieldIdC,
|
|
91
100
|
type: z.literal("select").describe("\u4E0B\u62C9\u9009\u62E9\u5B57\u6BB5\uFF0C\u4ECE\u9884\u5B9A\u4E49\u9009\u9879\u4E2D\u9009\u53D6\u4E00\u4E2A\u503C"),
|
|
@@ -178,6 +187,7 @@ export const FieldC = z.discriminatedUnion("type", [
|
|
|
178
187
|
TextareaFieldC,
|
|
179
188
|
NumberFieldC,
|
|
180
189
|
MarkdownFieldC,
|
|
190
|
+
MarkdownBodyFieldC,
|
|
181
191
|
SelectFieldC,
|
|
182
192
|
RadioGroupFieldC,
|
|
183
193
|
CalendarFieldC,
|
|
@@ -203,7 +213,7 @@ const fieldsSharedShape = {
|
|
|
203
213
|
style: FieldsStyleC
|
|
204
214
|
};
|
|
205
215
|
function isPathlessField(field) {
|
|
206
|
-
return field.type === "slot" || field.type === "empty" || field.type === "markdown";
|
|
216
|
+
return field.type === "slot" || field.type === "empty" || field.type === "markdown" || field.type === "markdown-body";
|
|
207
217
|
}
|
|
208
218
|
function validateGroupAndFieldUniqueness(value, ctx) {
|
|
209
219
|
const groupIdOwners = {};
|
|
@@ -95,6 +95,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
95
95
|
style?: string | undefined;
|
|
96
96
|
hidden?: string | undefined;
|
|
97
97
|
hideLabel?: boolean | undefined;
|
|
98
|
+
} | {
|
|
99
|
+
id: string;
|
|
100
|
+
type: "markdown-body";
|
|
101
|
+
locale: readonly {
|
|
102
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
103
|
+
message: string;
|
|
104
|
+
}[];
|
|
105
|
+
inline?: boolean | undefined;
|
|
106
|
+
style?: string | undefined;
|
|
107
|
+
hidden?: string | undefined;
|
|
98
108
|
} | {
|
|
99
109
|
options: string;
|
|
100
110
|
label: string;
|
|
@@ -299,6 +309,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
299
309
|
style?: string | undefined;
|
|
300
310
|
hidden?: string | undefined;
|
|
301
311
|
hideLabel?: boolean | undefined;
|
|
312
|
+
} | {
|
|
313
|
+
id: string;
|
|
314
|
+
type: "markdown-body";
|
|
315
|
+
locale: readonly {
|
|
316
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
317
|
+
message: string;
|
|
318
|
+
}[];
|
|
319
|
+
inline?: boolean | undefined;
|
|
320
|
+
style?: string | undefined;
|
|
321
|
+
hidden?: string | undefined;
|
|
302
322
|
} | {
|
|
303
323
|
options: string;
|
|
304
324
|
label: string;
|
|
@@ -512,6 +532,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
512
532
|
style?: string | undefined;
|
|
513
533
|
hidden?: string | undefined;
|
|
514
534
|
hideLabel?: boolean | undefined;
|
|
535
|
+
} | {
|
|
536
|
+
id: string;
|
|
537
|
+
type: "markdown-body";
|
|
538
|
+
locale: readonly {
|
|
539
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
540
|
+
message: string;
|
|
541
|
+
}[];
|
|
542
|
+
inline?: boolean | undefined;
|
|
543
|
+
style?: string | undefined;
|
|
544
|
+
hidden?: string | undefined;
|
|
515
545
|
} | {
|
|
516
546
|
options: string;
|
|
517
547
|
label: string;
|
|
@@ -716,6 +746,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
716
746
|
style?: string | undefined;
|
|
717
747
|
hidden?: string | undefined;
|
|
718
748
|
hideLabel?: boolean | undefined;
|
|
749
|
+
} | {
|
|
750
|
+
id: string;
|
|
751
|
+
type: "markdown-body";
|
|
752
|
+
locale: readonly {
|
|
753
|
+
locale: "en" | "ja" | "ko" | "zh";
|
|
754
|
+
message: string;
|
|
755
|
+
}[];
|
|
756
|
+
inline?: boolean | undefined;
|
|
757
|
+
style?: string | undefined;
|
|
758
|
+
hidden?: string | undefined;
|
|
719
759
|
} | {
|
|
720
760
|
options: string;
|
|
721
761
|
label: string;
|