@dragonmastery/zinia-forms-core 0.3.8 → 0.3.10
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/index.d.ts +17 -0
- package/dist/index.js +297 -392
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -417,6 +417,9 @@ type ArrayFieldComponent<T, P extends Path<T>> = vue.FunctionalComponent<Omit<Ar
|
|
|
417
417
|
index: number;
|
|
418
418
|
fields: FieldNames<ArrayItemType<T, P>>;
|
|
419
419
|
}) => any;
|
|
420
|
+
fieldSummary: (props: {
|
|
421
|
+
items: ArrayItemType<T, P>[];
|
|
422
|
+
}) => any;
|
|
420
423
|
default: () => any;
|
|
421
424
|
}, {}>;
|
|
422
425
|
/**
|
|
@@ -1150,6 +1153,9 @@ interface StyleCreators {
|
|
|
1150
1153
|
index: number;
|
|
1151
1154
|
fields: FieldNames<ItemType>;
|
|
1152
1155
|
}) => any;
|
|
1156
|
+
fieldSummary: (props: {
|
|
1157
|
+
items: ItemType[];
|
|
1158
|
+
}) => any;
|
|
1153
1159
|
default: () => any;
|
|
1154
1160
|
}, {}>;
|
|
1155
1161
|
createTransferListField: <FormType, ItemType = any>() => FunctionalComponent<TransferListFieldProps<FormType, ItemType>, {}, {
|
|
@@ -1376,6 +1382,7 @@ declare function useForm<T extends z.ZodObject<any>, CalcType = (values: z.infer
|
|
|
1376
1382
|
UrlField: vue.FunctionalComponent<UrlFieldProps<z.TypeOf<T>>, {}, any, {}>;
|
|
1377
1383
|
TelField: vue.FunctionalComponent<TelFieldProps<z.TypeOf<T>>, {}, any, {}>;
|
|
1378
1384
|
SearchField: vue.FunctionalComponent<SearchFieldProps<z.TypeOf<T>>, {}, any, {}>;
|
|
1385
|
+
ComboboxField: vue.FunctionalComponent<ComboboxFieldProps<z.TypeOf<T>, Path<z.TypeOf<T>>>, {}, any, {}>;
|
|
1379
1386
|
ArrayField: vue.FunctionalComponent<ArrayFieldProps<z.TypeOf<T>, any>, {}, {
|
|
1380
1387
|
itemRenderer: (props: {
|
|
1381
1388
|
item: any;
|
|
@@ -1395,6 +1402,9 @@ declare function useForm<T extends z.ZodObject<any>, CalcType = (values: z.infer
|
|
|
1395
1402
|
[x: string]: string;
|
|
1396
1403
|
};
|
|
1397
1404
|
}) => any;
|
|
1405
|
+
fieldSummary: (props: {
|
|
1406
|
+
items: any[];
|
|
1407
|
+
}) => any;
|
|
1398
1408
|
default: () => any;
|
|
1399
1409
|
}, {}>;
|
|
1400
1410
|
TransferListField: vue.FunctionalComponent<TransferListFieldProps<z.TypeOf<T>, any>, {}, {
|
|
@@ -1506,6 +1516,9 @@ interface ArrayFieldSlots<ItemType> {
|
|
|
1506
1516
|
index: number;
|
|
1507
1517
|
fields: FieldNames<ItemType>;
|
|
1508
1518
|
}) => any;
|
|
1519
|
+
fieldSummary: (props: {
|
|
1520
|
+
items: ItemType[];
|
|
1521
|
+
}) => any;
|
|
1509
1522
|
default: () => any;
|
|
1510
1523
|
}
|
|
1511
1524
|
|
|
@@ -1550,6 +1563,7 @@ declare function generateFieldComponents<T extends z.ZodObject<any>>(schema: T,
|
|
|
1550
1563
|
UrlField: vue.FunctionalComponent<UrlFieldProps<z.TypeOf<T>>, {}, any, {}>;
|
|
1551
1564
|
TelField: vue.FunctionalComponent<TelFieldProps<z.TypeOf<T>>, {}, any, {}>;
|
|
1552
1565
|
SearchField: vue.FunctionalComponent<SearchFieldProps<z.TypeOf<T>>, {}, any, {}>;
|
|
1566
|
+
ComboboxField: vue.FunctionalComponent<ComboboxFieldProps<z.TypeOf<T>, Path<z.TypeOf<T>>>, {}, any, {}>;
|
|
1553
1567
|
ArrayField: vue.FunctionalComponent<ArrayFieldProps<z.TypeOf<T>, any>, {}, {
|
|
1554
1568
|
itemRenderer: (props: {
|
|
1555
1569
|
item: any;
|
|
@@ -1569,6 +1583,9 @@ declare function generateFieldComponents<T extends z.ZodObject<any>>(schema: T,
|
|
|
1569
1583
|
[x: string]: string;
|
|
1570
1584
|
};
|
|
1571
1585
|
}) => any;
|
|
1586
|
+
fieldSummary: (props: {
|
|
1587
|
+
items: any[];
|
|
1588
|
+
}) => any;
|
|
1572
1589
|
default: () => any;
|
|
1573
1590
|
}, {}>;
|
|
1574
1591
|
TransferListField: vue.FunctionalComponent<TransferListFieldProps<z.TypeOf<T>, any>, {}, {
|