@dazhicheng/ui 1.5.6 → 1.5.8
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/components/tt-area/TtArea.vue.d.ts +2 -0
- package/dist/components/tt-area/index.d.ts +1 -0
- package/dist/components/tt-button/index.d.ts +1739 -0
- package/dist/components/tt-button/index.vue.d.ts +1004 -0
- package/dist/components/tt-checkbox/index.d.ts +36 -0
- package/dist/components/tt-checkbox/index.vue.d.ts +28 -0
- package/dist/components/tt-checkbox/type.d.ts +9 -0
- package/dist/components/tt-drawer/index.d.ts +3703 -0
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +2121 -0
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.d.ts +94 -0
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.d.ts +27 -0
- package/dist/components/tt-drawer/src/hooks/useDrawerRender.d.ts +10 -0
- package/dist/components/tt-drawer/src/hooks/useResizable.d.ts +9 -0
- package/dist/components/tt-drawer/src/index.d.ts +10 -0
- package/dist/components/tt-drawer/src/props.d.ts +99 -0
- package/dist/components/tt-drawer/src/typing.d.ts +154 -0
- package/dist/components/tt-drawer/src/utils/drawer-api.d.ts +87 -0
- package/dist/components/tt-empty/index.d.ts +18 -0
- package/dist/components/tt-form/index.d.ts +13 -0
- package/dist/components/tt-form/src/components/ExpandableArrow.vue.d.ts +33 -0
- package/dist/components/tt-form/src/components/FormActions.vue.d.ts +34 -0
- package/dist/components/tt-form/src/components/Slot.d.ts +7 -0
- package/dist/components/tt-form/src/config.d.ts +6 -0
- package/dist/components/tt-form/src/form/FormControl.vue.d.ts +19 -0
- package/dist/components/tt-form/src/form/FormDescription.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/FormItem.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/FormLabel.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/FormMessage.vue.d.ts +2 -0
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.d.ts +8 -0
- package/dist/components/tt-form/src/form/FormWarnMessage.vue.d.ts +25 -0
- package/dist/components/tt-form/src/form/RenderContent.vue.d.ts +23 -0
- package/dist/components/tt-form/src/form/index.d.ts +10 -0
- package/dist/components/tt-form/src/form/injectionKeys.d.ts +2 -0
- package/dist/components/tt-form/src/form/useFormField.d.ts +11 -0
- package/dist/components/tt-form/src/form-render/FormField.vue.d.ts +28 -0
- package/dist/components/tt-form/src/form-render/FormLabel.vue.d.ts +27 -0
- package/dist/components/tt-form/src/form-render/context.d.ts +7 -0
- package/dist/components/tt-form/src/form-render/dependencies.d.ts +361 -0
- package/dist/components/tt-form/src/form-render/expandable.d.ts +9 -0
- package/dist/components/tt-form/src/form-render/form.vue.d.ts +38 -0
- package/dist/components/tt-form/src/form-render/helper.d.ts +11 -0
- package/dist/components/tt-form/src/form-render/index.d.ts +3 -0
- package/dist/components/tt-form/src/formApi.d.ts +71 -0
- package/dist/components/tt-form/src/hooks/useEmitAsProps.d.ts +7 -0
- package/dist/components/tt-form/src/hooks/useFormFieldBus.d.ts +14 -0
- package/dist/components/tt-form/src/hooks/useForwardPriorityValues.d.ts +14 -0
- package/dist/components/tt-form/src/hooks/useForwardProps.d.ts +7 -0
- package/dist/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +8 -0
- package/dist/components/tt-form/src/index.vue.d.ts +27 -0
- package/dist/components/tt-form/src/shared/createContext.d.ts +8 -0
- package/dist/components/tt-form/src/shared/global-state.d.ts +17 -0
- package/dist/components/tt-form/src/shared/store.d.ts +1 -0
- package/dist/components/tt-form/src/shared/zod-defaults.d.ts +54 -0
- package/dist/components/tt-form/src/types/common.d.ts +11 -0
- package/dist/components/tt-form/src/types/forms.d.ts +280 -0
- package/dist/components/tt-form/src/types/index.d.ts +3 -0
- package/dist/components/tt-form/src/types/paths.d.ts +142 -0
- package/dist/components/tt-form/src/types/shared.d.ts +19 -0
- package/dist/components/tt-form/src/types.d.ts +383 -0
- package/dist/components/tt-form/src/useForm.d.ts +2 -0
- package/dist/components/tt-form/src/useFormContext.d.ts +12 -0
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +1549 -0
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +784 -0
- package/dist/components/tt-icon/index.d.ts +76 -0
- package/dist/components/tt-icon/index.vue.d.ts +32 -0
- package/dist/components/tt-image/index.d.ts +127 -0
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +89 -0
- package/dist/components/tt-image/tt-image.d.ts +126 -0
- package/dist/components/tt-loading/index.d.ts +16 -0
- package/dist/components/tt-loading/src/directive.d.ts +9 -0
- package/dist/components/tt-loading/src/loading.vue.d.ts +12 -0
- package/dist/components/tt-loading/src/service.d.ts +25 -0
- package/dist/components/tt-loading/src/type.d.ts +20 -0
- package/dist/components/tt-modal/index.d.ts +1809 -0
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +1008 -0
- package/dist/components/tt-modal/src/components/ModalFooter.vue.d.ts +210 -0
- package/dist/components/tt-modal/src/components/ModalHeader.vue.d.ts +31 -0
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.d.ts +224 -0
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +110 -0
- package/dist/components/tt-modal/src/index.d.ts +5 -0
- package/dist/components/tt-modal/src/props.d.ts +161 -0
- package/dist/components/tt-modal/src/typing.d.ts +188 -0
- package/dist/components/tt-modal/src/utils/modal-api.d.ts +97 -0
- package/dist/components/tt-part/index.d.ts +398 -0
- package/dist/components/tt-part/index.vue.d.ts +253 -0
- package/dist/components/tt-part/type.d.ts +100 -0
- package/dist/components/tt-part-item/index.d.ts +105 -0
- package/dist/components/tt-part-item/index.vue.d.ts +71 -0
- package/dist/components/tt-part-item/type.d.ts +81 -0
- package/dist/components/tt-select/index.d.ts +7 -0
- package/dist/components/tt-select/src/Select.vue.d.ts +861 -0
- package/dist/components/tt-select/src/components/SelectTable.vue.d.ts +111 -0
- package/dist/components/tt-select/src/components/Table.vue.d.ts +250 -0
- package/dist/components/tt-select/src/const.d.ts +16 -0
- package/dist/components/tt-select/src/hooks/useDataSource.d.ts +115 -0
- package/dist/components/tt-select/src/hooks/useGrid.d.ts +32 -0
- package/dist/components/tt-select/src/hooks/useKeyboard.d.ts +59 -0
- package/dist/components/tt-select/src/hooks/usePagination.d.ts +16 -0
- package/dist/components/tt-select/src/hooks/useSelect.d.ts +87 -0
- package/dist/components/tt-select/src/hooks/useSelectTableEvent.d.ts +178 -0
- package/dist/components/tt-select/src/props.d.ts +190 -0
- package/dist/components/tt-select/src/types/index.d.ts +142 -0
- package/dist/components/tt-select/src/utils/index.d.ts +9 -0
- package/dist/components/tt-table/index.d.ts +127 -0
- package/dist/components/tt-table/src/Table.vue.d.ts +1685 -0
- package/dist/components/tt-table/src/componentMap.d.ts +8 -0
- package/dist/components/tt-table/src/components/RowContext.d.ts +24 -0
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts +79 -0
- package/dist/components/tt-table/src/components/TableButtons.d.ts +30 -0
- package/dist/components/tt-table/src/components/TableColumnModal.vue.d.ts +26 -0
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +1531 -0
- package/dist/components/tt-table/src/emits.d.ts +1 -0
- package/dist/components/tt-table/src/enum.d.ts +2 -0
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +27 -0
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +20 -0
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +29 -0
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.d.ts +1082 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +102 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +30 -0
- package/dist/components/tt-table/src/hooks/useTable.d.ts +7 -0
- package/dist/components/tt-table/src/hooks/useTableContext.d.ts +43 -0
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +101 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +10 -0
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +93 -0
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +11 -0
- package/dist/components/tt-table/src/props.d.ts +433 -0
- package/dist/components/tt-table/src/toolProps.d.ts +19 -0
- package/dist/components/tt-table/src/types/table.d.ts +489 -0
- package/dist/components/tt-table/src/types/tableAction.d.ts +26 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +64 -0
- package/dist/components/tt-table/src/types/tableTools.d.ts +10 -0
- package/dist/components/tt-table/src/utils/context.d.ts +18 -0
- package/dist/components/tt-table/src/utils/filters.d.ts +109 -0
- package/dist/components/tt-table/src/utils/table-api.d.ts +250 -0
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +88 -0
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +28 -0
- package/dist/components/tt-text/index.d.ts +76 -0
- package/dist/components/tt-text/index.vue.d.ts +50 -0
- package/dist/components/tt-tree-select/index.d.ts +5 -0
- package/dist/components/tt-tree-select/src/TtTreeSelect.vue.d.ts +6 -0
- package/dist/components/tt-tree-select/src/cache-options.d.ts +35 -0
- package/dist/components/tt-tree-select/src/select.d.ts +10 -0
- package/dist/components/tt-tree-select/src/tree.d.ts +23 -0
- package/dist/components/tt-tree-select/src/utils.d.ts +10 -0
- package/dist/components/tt-validate/index.d.ts +1 -0
- package/dist/components/tt-validate/src/ErrorMessage.d.ts +61 -0
- package/dist/components/tt-validate/src/Field.d.ts +430 -0
- package/dist/components/tt-validate/src/FieldArray.d.ts +47 -0
- package/dist/components/tt-validate/src/Form.d.ts +271 -0
- package/dist/components/tt-validate/src/config.d.ts +14 -0
- package/dist/components/tt-validate/src/defineRule.d.ts +9 -0
- package/dist/components/tt-validate/src/index.d.ts +36 -0
- package/dist/components/tt-validate/src/symbols.d.ts +6 -0
- package/dist/components/tt-validate/src/types/common.d.ts +11 -0
- package/dist/components/tt-validate/src/types/forms.d.ts +280 -0
- package/dist/components/tt-validate/src/types/index.d.ts +3 -0
- package/dist/components/tt-validate/src/types/paths.d.ts +142 -0
- package/dist/components/tt-validate/src/types/shared.d.ts +19 -0
- package/dist/components/tt-validate/src/useField.d.ts +30 -0
- package/dist/components/tt-validate/src/useFieldArray.d.ts +3 -0
- package/dist/components/tt-validate/src/useFieldError.d.ts +5 -0
- package/dist/components/tt-validate/src/useFieldState.d.ts +47 -0
- package/dist/components/tt-validate/src/useFieldValue.d.ts +5 -0
- package/dist/components/tt-validate/src/useForm.d.ts +23 -0
- package/dist/components/tt-validate/src/useFormErrors.d.ts +4 -0
- package/dist/components/tt-validate/src/useFormValues.d.ts +4 -0
- package/dist/components/tt-validate/src/useIsFieldDirty.d.ts +5 -0
- package/dist/components/tt-validate/src/useIsFieldTouched.d.ts +5 -0
- package/dist/components/tt-validate/src/useIsFieldValid.d.ts +5 -0
- package/dist/components/tt-validate/src/useIsFormDirty.d.ts +4 -0
- package/dist/components/tt-validate/src/useIsFormTouched.d.ts +4 -0
- package/dist/components/tt-validate/src/useIsFormValid.d.ts +4 -0
- package/dist/components/tt-validate/src/useIsSubmitting.d.ts +4 -0
- package/dist/components/tt-validate/src/useIsValidating.d.ts +4 -0
- package/dist/components/tt-validate/src/useResetForm.d.ts +2 -0
- package/dist/components/tt-validate/src/useSetFieldError.d.ts +5 -0
- package/dist/components/tt-validate/src/useSetFieldTouched.d.ts +5 -0
- package/dist/components/tt-validate/src/useSetFieldValue.d.ts +5 -0
- package/dist/components/tt-validate/src/useSetFormErrors.d.ts +4 -0
- package/dist/components/tt-validate/src/useSetFormTouched.d.ts +4 -0
- package/dist/components/tt-validate/src/useSetFormValues.d.ts +4 -0
- package/dist/components/tt-validate/src/useSubmitCount.d.ts +4 -0
- package/dist/components/tt-validate/src/useSubmitForm.d.ts +2 -0
- package/dist/components/tt-validate/src/useValidateField.d.ts +6 -0
- package/dist/components/tt-validate/src/useValidateForm.d.ts +5 -0
- package/dist/components/tt-validate/src/utils/assertions.d.ts +54 -0
- package/dist/components/tt-validate/src/utils/common.d.ts +48 -0
- package/dist/components/tt-validate/src/utils/events.d.ts +1 -0
- package/dist/components/tt-validate/src/utils/index.d.ts +5 -0
- package/dist/components/tt-validate/src/utils/rules.d.ts +13 -0
- package/dist/components/tt-validate/src/utils/shared.d.ts +19 -0
- package/dist/components/tt-validate/src/utils/vnode.d.ts +22 -0
- package/dist/components/tt-validate/src/validate.d.ts +21 -0
- package/dist/components/tt-validate/zod/index.d.ts +1 -0
- package/dist/components/types.d.ts +227 -0
- package/dist/directives/auto-tip/index.d.ts +3 -0
- package/dist/directives/dialog-resize/index.d.ts +25 -0
- package/dist/directives/dialog-resize/use-css-variable.d.ts +1 -0
- package/dist/directives/dialog-resize/use-draggable.d.ts +4 -0
- package/dist/directives/dialog-resize/use-fullscreen.d.ts +1 -0
- package/dist/directives/dialog-resize/use-parse-translate.d.ts +4 -0
- package/dist/directives/dialog-resize/use-resizer.d.ts +2 -0
- package/dist/directives/disabled-tip/index.d.ts +17 -0
- package/dist/directives/index.d.ts +3 -0
- package/dist/hooks/useFormat.d.ts +73 -0
- package/dist/hooks/useLoading.d.ts +9 -0
- package/dist/hooks/useSetup.d.ts +8 -0
- package/dist/hooks/useTable.d.ts +5 -0
- package/dist/hooks/useTemplateSlot.d.ts +9 -0
- package/dist/{index-CMjNBMj5.js → index-NG5FNCLD.js} +2 -3
- package/dist/index.d.ts +46 -0
- package/dist/index.js +502 -542
- package/dist/style.css +1 -1
- package/package.json +4 -6
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
type BrowserNativeObject = Date | FileList | File;
|
|
2
|
+
type Primitive = null | undefined | string | number | boolean | symbol | bigint;
|
|
3
|
+
/**
|
|
4
|
+
* Checks whether the type is any
|
|
5
|
+
* See {@link https://stackoverflow.com/a/49928360/3406963}
|
|
6
|
+
* @typeParam T - type which may be any
|
|
7
|
+
* ```
|
|
8
|
+
* IsAny<any> = true
|
|
9
|
+
* IsAny<string> = false
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
13
|
+
/**
|
|
14
|
+
* Checks whether T1 can be exactly (mutually) assigned to T2
|
|
15
|
+
* @typeParam T1 - type to check
|
|
16
|
+
* @typeParam T2 - type to check against
|
|
17
|
+
* ```
|
|
18
|
+
* IsEqual<string, string> = true
|
|
19
|
+
* IsEqual<'foo', 'foo'> = true
|
|
20
|
+
* IsEqual<string, number> = false
|
|
21
|
+
* IsEqual<string, number> = false
|
|
22
|
+
* IsEqual<string, 'foo'> = false
|
|
23
|
+
* IsEqual<'foo', string> = false
|
|
24
|
+
* IsEqual<'foo' | 'bar', 'foo'> = boolean // 'foo' is assignable, but 'bar' is not (true | false) -> boolean
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export type IsEqual<T1, T2> = T1 extends T2 ? (<G>() => G extends T1 ? 1 : 2) extends <G>() => G extends T2 ? 1 : 2 ? true : false : false;
|
|
28
|
+
/**
|
|
29
|
+
* Type to query whether an array type T is a tuple type.
|
|
30
|
+
* @typeParam T - type which may be an array or tuple
|
|
31
|
+
* @example
|
|
32
|
+
* ```
|
|
33
|
+
* IsTuple<[number]> = true
|
|
34
|
+
* IsTuple<number[]> = false
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
type IsTuple<T extends ReadonlyArray<any>> = number extends T['length'] ? false : true;
|
|
38
|
+
/**
|
|
39
|
+
* Type which can be used to index an array or tuple type.
|
|
40
|
+
*/
|
|
41
|
+
type ArrayKey = number;
|
|
42
|
+
/**
|
|
43
|
+
* Helper function to break apart T1 and check if any are equal to T2
|
|
44
|
+
*
|
|
45
|
+
* See {@link IsEqual}
|
|
46
|
+
*/
|
|
47
|
+
type AnyIsEqual<T1, T2> = T1 extends T2 ? (IsEqual<T1, T2> extends true ? true : never) : never;
|
|
48
|
+
/**
|
|
49
|
+
* Type which given a tuple type returns its own keys, i.e. only its indices.
|
|
50
|
+
* @typeParam T - tuple type
|
|
51
|
+
* @example
|
|
52
|
+
* ```
|
|
53
|
+
* TupleKeys<[number, string]> = '0' | '1'
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
type TupleKeys<T extends ReadonlyArray<any>> = Exclude<keyof T, keyof any[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Helper type to construct tuple key paths and recurse into its elements.
|
|
59
|
+
*
|
|
60
|
+
* See {@link Path}
|
|
61
|
+
*/
|
|
62
|
+
type PathInternalTuple<TValue extends ReadonlyArray<any>, TraversedTypes> = {
|
|
63
|
+
[Key in TupleKeys<TValue> & string]: `[${Key}]` | `[${Key}]${PathInternal<TValue[Key], TraversedTypes, false>}`;
|
|
64
|
+
}[TupleKeys<TValue> & string];
|
|
65
|
+
/**
|
|
66
|
+
* Helper type to construct array key paths and recurse into its elements.
|
|
67
|
+
*
|
|
68
|
+
* See {@link Path}
|
|
69
|
+
*/
|
|
70
|
+
type PathInternalArray<TValue extends ReadonlyArray<any>, TraversedTypes> = `[${ArrayKey}]` | `[${ArrayKey}]${PathInternal<TValue[ArrayKey], TraversedTypes, false>}`;
|
|
71
|
+
/**
|
|
72
|
+
* Helper type to construct object key paths and recurse into its nested values.
|
|
73
|
+
*
|
|
74
|
+
* See {@link Path}
|
|
75
|
+
*/
|
|
76
|
+
type PathInternalObject<TValue, TraversedTypes, First extends boolean> = {
|
|
77
|
+
[Key in keyof TValue & string]: First extends true ? `${Key}` | `${Key}${PathInternal<TValue[Key], TraversedTypes, false>}` : `.${Key}` | `.${Key}${PathInternal<TValue[Key], TraversedTypes, false>}`;
|
|
78
|
+
}[keyof TValue & string];
|
|
79
|
+
/**
|
|
80
|
+
* Helper type to construct nested any object key paths.
|
|
81
|
+
*
|
|
82
|
+
* See {@link Path}
|
|
83
|
+
*/
|
|
84
|
+
type PathInternalAny = `.${string}` | `[${string}]` | `[${string}].${string}`;
|
|
85
|
+
/**
|
|
86
|
+
* Helper type for recursively constructing paths through a type.
|
|
87
|
+
*
|
|
88
|
+
* This obscures internal type params TraversedTypes and First from ed contract.
|
|
89
|
+
*
|
|
90
|
+
* See {@link Path}
|
|
91
|
+
*/
|
|
92
|
+
type PathInternal<TValue, TraversedTypes, First extends boolean> = TValue extends Primitive | BrowserNativeObject ? IsAny<TValue> extends true ? PathInternalAny : never : TValue extends ReadonlyArray<any> ? true extends AnyIsEqual<TraversedTypes, TValue> ? never : IsTuple<TValue> extends true ? PathInternalTuple<TValue, TraversedTypes | TValue> : PathInternalArray<TValue, TraversedTypes | TValue> : TValue extends Record<string, any> ? PathInternalObject<TValue, TraversedTypes | TValue, First> : '';
|
|
93
|
+
/**
|
|
94
|
+
* Helper type for recursively constructing paths through a type.
|
|
95
|
+
* This actually constructs the strings and recurses into nested
|
|
96
|
+
* object types.
|
|
97
|
+
*
|
|
98
|
+
* See {@link ArrayPath}
|
|
99
|
+
*/
|
|
100
|
+
type ArrayPathImpl<K extends string | number, V, TraversedTypes> = V extends Primitive | BrowserNativeObject ? IsAny<V> extends true ? string : never : V extends ReadonlyArray<infer U> ? U extends Primitive | BrowserNativeObject ? IsAny<V> extends true ? string : never : true extends AnyIsEqual<TraversedTypes, V> ? never : `${K}` | `${K}.${ArrayPathInternal<V, TraversedTypes | V>}` : true extends AnyIsEqual<TraversedTypes, V> ? never : `${K}.${ArrayPathInternal<V, TraversedTypes | V>}`;
|
|
101
|
+
/**
|
|
102
|
+
* Helper type for recursively constructing paths through a type.
|
|
103
|
+
* This obscures the internal type param TraversedTypes from ed contract.
|
|
104
|
+
*
|
|
105
|
+
* See {@link ArrayPath}
|
|
106
|
+
*/
|
|
107
|
+
type ArrayPathInternal<T, TraversedTypes = T> = T extends ReadonlyArray<infer V> ? IsTuple<T> extends true ? {
|
|
108
|
+
[K in TupleKeys<T>]-?: ArrayPathImpl<K & string, T[K], TraversedTypes>;
|
|
109
|
+
}[TupleKeys<T>] : ArrayPathImpl<ArrayKey, V, TraversedTypes> : {
|
|
110
|
+
[K in keyof T]-?: ArrayPathImpl<K & string, T[K], TraversedTypes>;
|
|
111
|
+
}[keyof T];
|
|
112
|
+
/**
|
|
113
|
+
* Type which eagerly collects all paths through a type which point to an array
|
|
114
|
+
* type.
|
|
115
|
+
* @typeParam T - type which should be introspected.
|
|
116
|
+
* @example
|
|
117
|
+
* ```
|
|
118
|
+
* Path<{foo: {bar: string[], baz: number[]}}> = 'foo.bar' | 'foo.baz'
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
type ArrayPath<T> = T extends any ? ArrayPathInternal<T> : never;
|
|
122
|
+
/**
|
|
123
|
+
* Type to evaluate the type which the given path points to.
|
|
124
|
+
* @typeParam T - deeply nested type which is indexed by the path
|
|
125
|
+
* @typeParam P - path into the deeply nested type
|
|
126
|
+
* @example
|
|
127
|
+
* ```
|
|
128
|
+
* PathValue<{foo: {bar: string}}, 'foo.bar'> = string
|
|
129
|
+
* PathValue<[number, string], '1'> = string
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
export type PathValue<T, P extends Path<T> | ArrayPath<T>> = T extends any ? P extends `${infer K}.${infer R}` ? K extends keyof T ? R extends Path<T[K]> ? PathValue<T[K], R> : never : K extends `${ArrayKey}` ? T extends ReadonlyArray<infer V> ? PathValue<V, R & Path<V>> : never : never : P extends keyof T ? T[P] : P extends `${ArrayKey}` ? T extends ReadonlyArray<infer V> ? V : never : never : never;
|
|
133
|
+
/**
|
|
134
|
+
* Type which eagerly collects all paths through a type
|
|
135
|
+
* @typeParam T - type which should be introspected
|
|
136
|
+
* @example
|
|
137
|
+
* ```
|
|
138
|
+
* Path<{foo: {bar: string}}> = 'foo' | 'foo.bar'
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
export type Path<T> = T extends any ? PathInternal<T, T, true> & string : never;
|
|
142
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type FieldValidationMetaInfo = {
|
|
2
|
+
field: string;
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
value: unknown;
|
|
6
|
+
form: Record<string, unknown>;
|
|
7
|
+
rule?: {
|
|
8
|
+
name: string;
|
|
9
|
+
params?: Record<string, unknown> | unknown[];
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type ValidationRuleFunction<TValue = unknown, TParams = unknown[] | Record<string, unknown>> = (value: TValue, params: TParams, ctx: FieldValidationMetaInfo) => boolean | string | Promise<boolean | string>;
|
|
13
|
+
export type SimpleValidationRuleFunction<TValue = unknown, TParams = unknown[] | Record<string, unknown>> = (value: TValue, params: TParams) => boolean | string | Promise<boolean | string>;
|
|
14
|
+
export type ValidationMessageGenerator = (ctx: FieldValidationMetaInfo) => string;
|
|
15
|
+
export type Optional<T> = T extends Record<string, any> ? Partial<T> : T | undefined;
|
|
16
|
+
export type InterpolateOptions = {
|
|
17
|
+
prefix: string;
|
|
18
|
+
suffix: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import { MaybeRef, MaybeRefOrGetter } from 'vue';
|
|
3
|
+
import { FieldContext, FormContext, GenericValidateFunction, InputType } from './types';
|
|
4
|
+
export type FieldOptions<TValue = unknown> = {
|
|
5
|
+
initialValue?: MaybeRef<TValue>;
|
|
6
|
+
validateOnModelUpdate: boolean;
|
|
7
|
+
validateOnMount?: boolean;
|
|
8
|
+
bails?: boolean;
|
|
9
|
+
type?: InputType;
|
|
10
|
+
checkedValue?: MaybeRefOrGetter<TValue>;
|
|
11
|
+
uncheckedValue?: MaybeRefOrGetter<TValue>;
|
|
12
|
+
label?: MaybeRefOrGetter<string | undefined>;
|
|
13
|
+
controlled?: boolean;
|
|
14
|
+
keepValueOnUnmount?: MaybeRefOrGetter<boolean | undefined>;
|
|
15
|
+
syncVModel?: boolean | string;
|
|
16
|
+
form?: FormContext;
|
|
17
|
+
validateOnZodRefine?: boolean;
|
|
18
|
+
rulesBlur?: MaybeRef<RuleExpression<TValue>>;
|
|
19
|
+
/**
|
|
20
|
+
* 在判断 dirty 状态时需要排除的字段列表(仅对对象类型有效)
|
|
21
|
+
* @example
|
|
22
|
+
* excludeKeys: ['_timestamp']
|
|
23
|
+
*/
|
|
24
|
+
excludeKeys?: string[];
|
|
25
|
+
};
|
|
26
|
+
export type RuleExpression<TValue> = string | Record<string, unknown> | GenericValidateFunction<TValue> | GenericValidateFunction<TValue>[] | StandardSchemaV1<TValue> | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a field composite.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useField<TValue = unknown>(path: MaybeRefOrGetter<string>, rules?: MaybeRef<RuleExpression<TValue>>, opts?: Partial<FieldOptions<TValue>>): FieldContext<TValue>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { MaybeRef, MaybeRefOrGetter, Ref } from 'vue';
|
|
2
|
+
import { FieldMeta, FieldState, FieldValidator, InputType, PathState, PrivateFormContext } from './types';
|
|
3
|
+
export type StateSetterInit<TValue = unknown> = {
|
|
4
|
+
initialValue: TValue;
|
|
5
|
+
} & FieldState<TValue>;
|
|
6
|
+
export type FieldStateComposable<TValue = unknown> = {
|
|
7
|
+
id: number;
|
|
8
|
+
path: MaybeRef<string>;
|
|
9
|
+
meta: FieldMeta<TValue>;
|
|
10
|
+
value: Ref<TValue>;
|
|
11
|
+
flags: PathState['__flags'];
|
|
12
|
+
initialValue: Ref<TValue>;
|
|
13
|
+
errors: Ref<string[]>;
|
|
14
|
+
setState: (state: Partial<StateSetterInit<TValue>>) => void;
|
|
15
|
+
};
|
|
16
|
+
export type StateInit<TInput = unknown, TOutput = TInput> = {
|
|
17
|
+
modelValue: MaybeRef<TInput>;
|
|
18
|
+
form?: PrivateFormContext;
|
|
19
|
+
bails: boolean;
|
|
20
|
+
label?: MaybeRefOrGetter<string | undefined>;
|
|
21
|
+
type?: InputType;
|
|
22
|
+
validate?: FieldValidator<TOutput>;
|
|
23
|
+
/**
|
|
24
|
+
* 在判断 dirty 状态时需要排除的字段列表(仅对对象类型有效)
|
|
25
|
+
* @example
|
|
26
|
+
* excludeKeys: ['_timestamp']
|
|
27
|
+
*/
|
|
28
|
+
excludeKeys?: string[];
|
|
29
|
+
};
|
|
30
|
+
export declare function useFieldState<TValue = unknown>(path: MaybeRef<string>, init: Partial<StateInit<TValue>>): FieldStateComposable<TValue>;
|
|
31
|
+
type FieldValueComposable<TValue = unknown> = {
|
|
32
|
+
value: Ref<TValue>;
|
|
33
|
+
initialValue: Ref<TValue>;
|
|
34
|
+
setInitialValue: (value: TValue) => void;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Creates the field value and resolves the initial value
|
|
38
|
+
*/
|
|
39
|
+
export declare function _useFieldValue<TValue = unknown>(path: MaybeRef<string>, modelValue?: MaybeRef<TValue>, form?: PrivateFormContext): FieldValueComposable<TValue>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates the error message state for the field state
|
|
42
|
+
*/
|
|
43
|
+
export declare function createFieldErrors(): {
|
|
44
|
+
errors: Ref<string[], string[]>;
|
|
45
|
+
setErrors: (messages: string | string[] | null | undefined) => void;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import { MaybeRef } from 'vue';
|
|
3
|
+
import { FlattenAndSetPathsType, FormContext, GenericObject, GenericValidateFunction } from './types';
|
|
4
|
+
type FormSchema<TValues extends Record<string, unknown>> = FlattenAndSetPathsType<TValues, GenericValidateFunction | string | GenericObject> | undefined;
|
|
5
|
+
export type FormOptions<TValues extends GenericObject, TOutput = TValues, TSchema extends StandardSchemaV1<TValues, TOutput> | FormSchema<TValues> = FormSchema<TValues>> = {
|
|
6
|
+
validationSchema?: MaybeRef<TSchema extends StandardSchemaV1 ? StandardSchemaV1<TValues, TOutput> : any>;
|
|
7
|
+
initialValues?: Partial<TValues> | undefined | null;
|
|
8
|
+
initialErrors?: FlattenAndSetPathsType<TValues, string | undefined>;
|
|
9
|
+
initialTouched?: FlattenAndSetPathsType<TValues, boolean>;
|
|
10
|
+
validateOnMount?: boolean;
|
|
11
|
+
keepValuesOnUnmount?: MaybeRef<boolean>;
|
|
12
|
+
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 在判断 dirty 状态时需要排除的字段列表
|
|
15
|
+
* 这些字段的变化不会影响表单的 dirty 状态
|
|
16
|
+
* @example
|
|
17
|
+
* excludeKeys: ['_timestamp', '_validationToken']
|
|
18
|
+
*/
|
|
19
|
+
excludeKeys?: string[];
|
|
20
|
+
};
|
|
21
|
+
export declare function useForm<TValues extends GenericObject = GenericObject, TOutput extends GenericObject = TValues, TSchema extends FormSchema<TValues> | StandardSchemaV1<TValues, TOutput> = FormSchema<TValues>>(opts?: FormOptions<TValues, TOutput, TSchema>): FormContext<TValues, TOutput>;
|
|
22
|
+
export declare function useFormContext<TValues extends GenericObject = GenericObject, TOutput extends GenericObject = TValues>(): FormContext<TValues, TOutput>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import { Locator } from '../types';
|
|
3
|
+
export declare const isClient: boolean;
|
|
4
|
+
export declare function isLocator(value: unknown): value is Locator;
|
|
5
|
+
export declare function isStandardSchema(value: unknown): value is StandardSchemaV1;
|
|
6
|
+
export declare function hasCheckedAttr(type: unknown): type is "checkbox" | "radio";
|
|
7
|
+
export declare function isContainerValue(value: unknown): value is Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* True if the value is an empty object or array
|
|
10
|
+
*/
|
|
11
|
+
export declare function isEmptyContainer(value: unknown): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Checks if the path opted out of nested fields using `[fieldName]` syntax
|
|
14
|
+
*/
|
|
15
|
+
export declare function isNotNestedPath(path: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Checks if an element is a native HTML5 multi-select input element
|
|
18
|
+
*/
|
|
19
|
+
export declare function isNativeMultiSelect(el: HTMLElement): el is HTMLSelectElement;
|
|
20
|
+
/**
|
|
21
|
+
* Checks if an element is a native HTML5 select input element
|
|
22
|
+
*/
|
|
23
|
+
export declare function isNativeSelect(el: HTMLElement): el is HTMLSelectElement;
|
|
24
|
+
/**
|
|
25
|
+
* Checks if a tag name with attrs object will render a native multi-select element
|
|
26
|
+
*/
|
|
27
|
+
export declare function isNativeMultiSelectNode(tag: string, attrs: Record<string, unknown>): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Checks if a node should have a `:value` binding or not
|
|
30
|
+
*
|
|
31
|
+
* These nodes should not have a value binding
|
|
32
|
+
* For files, because they are not reactive
|
|
33
|
+
* For multi-selects because the value binding will reset the value
|
|
34
|
+
*/
|
|
35
|
+
export declare function shouldHaveValueBinding(tag: string, attrs: Record<string, unknown>): boolean;
|
|
36
|
+
export declare function isFormSubmitEvent(evt: unknown): evt is Event & {
|
|
37
|
+
target: HTMLFormElement;
|
|
38
|
+
};
|
|
39
|
+
export declare function isEvent(evt: unknown): evt is Event;
|
|
40
|
+
export declare function isPropPresent(obj: Record<string, unknown>, prop: string): boolean;
|
|
41
|
+
export declare function deepEqual<T>(a: T, b: T): boolean;
|
|
42
|
+
export declare const isEqual: typeof deepEqual;
|
|
43
|
+
/**
|
|
44
|
+
* 比较两个值是否相等,支持排除指定字段
|
|
45
|
+
* @param a - 第一个值
|
|
46
|
+
* @param b - 第二个值
|
|
47
|
+
* @param excludeKeys - 需要排除的字段数组(可选)
|
|
48
|
+
* @returns 是否相等
|
|
49
|
+
* @example
|
|
50
|
+
* isEqualExclude({ a: 1, b: 2 }, { a: 1, b: 3 }, ['b']) // true
|
|
51
|
+
* isEqualExclude({ a: 1, b: 2 }, { a: 1, b: 3 }) // false
|
|
52
|
+
*/
|
|
53
|
+
export declare function isEqualExclude<T>(a: T, b: T, excludeKeys?: string[]): boolean;
|
|
54
|
+
export declare function isFile(a: unknown): a is File;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import { InjectionKey, MaybeRefOrGetter, Ref } from 'vue';
|
|
3
|
+
import { GenericObject, IssueCollection, MaybePromise } from '../types';
|
|
4
|
+
export declare function cleanupNonNestedPath(path: string): string;
|
|
5
|
+
type NestedRecord = GenericObject;
|
|
6
|
+
/**
|
|
7
|
+
* Gets a nested property value from an object
|
|
8
|
+
*/
|
|
9
|
+
export declare function getFromPath<TValue = unknown>(object: NestedRecord | undefined, path: string): TValue | undefined;
|
|
10
|
+
export declare function getFromPath<TValue = unknown, TFallback = TValue>(object: NestedRecord | undefined, path: string, fallback?: TFallback): TValue | TFallback;
|
|
11
|
+
/**
|
|
12
|
+
* Sets a nested property value in a path, creates the path properties if it doesn't exist
|
|
13
|
+
*/
|
|
14
|
+
export declare function setInPath(object: NestedRecord, path: string, value: unknown): void;
|
|
15
|
+
/**
|
|
16
|
+
* Removes a nested property from object
|
|
17
|
+
*/
|
|
18
|
+
export declare function unsetPath(object: NestedRecord, path: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* A typed version of Object.keys
|
|
21
|
+
*/
|
|
22
|
+
export declare function keysOf<TRecord extends Record<string, unknown>>(record: TRecord): (keyof TRecord)[];
|
|
23
|
+
export declare function injectWithSelf<T>(symbol: InjectionKey<T>, def?: T | undefined): T | undefined;
|
|
24
|
+
export declare function warn(message: string): void;
|
|
25
|
+
export declare function resolveNextCheckboxValue<T>(currentValue: T, checkedValue: T, uncheckedValue: T): T;
|
|
26
|
+
export declare function resolveNextCheckboxValue<T>(currentValue: T[], checkedValue: T, uncheckedValue: T): T[];
|
|
27
|
+
type ThrottledFunction<T extends (...args: any) => any> = (...args: Parameters<T>) => ReturnType<T>;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a throttled function that only invokes the provided function (`func`) at most once per within a given number of milliseconds
|
|
30
|
+
* (`limit`)
|
|
31
|
+
*/
|
|
32
|
+
export declare function throttle<T extends (...args: any) => any>(func: T, limit: number): ThrottledFunction<T>;
|
|
33
|
+
export declare function debounceAsync<TFunction extends (...args: any) => Promise<any>, TResult = ReturnType<TFunction>>(inner: TFunction, ms?: number): (...args: Parameters<TFunction>) => Promise<TResult>;
|
|
34
|
+
export declare function applyModelModifiers<TValue = unknown>(value: TValue, modifiers: unknown): TValue;
|
|
35
|
+
export declare function withLatest<TFunction extends (...args: any[]) => Promise<any>, TResult = Awaited<ReturnType<TFunction>>>(fn: TFunction, onDone: (result: TResult, args: Parameters<TFunction>) => TResult): (...args: Parameters<TFunction>) => Promise<any>;
|
|
36
|
+
export declare function computedDeep<TValue = unknown>({ get, set, }: {
|
|
37
|
+
get: () => TValue;
|
|
38
|
+
set: (value: TValue) => void;
|
|
39
|
+
}): Ref<TValue>;
|
|
40
|
+
export declare function normalizeErrorItem(message: string | string[] | null | undefined): string[];
|
|
41
|
+
export declare function resolveFieldOrPathState(path?: MaybeRefOrGetter<string>): import('..').PrivateFieldContext<unknown> | import('vue').ComputedRef<import('..').PathState<any, any> | undefined> | undefined;
|
|
42
|
+
export declare function omit<TObj extends GenericObject>(obj: TObj, keys: (keyof GenericObject)[]): TObj;
|
|
43
|
+
export declare function debounceNextTick<TFunction extends (...args: any[]) => MaybePromise<any>, TResult = ReturnType<TFunction>>(inner: TFunction): (...args: Parameters<TFunction>) => Promise<TResult>;
|
|
44
|
+
/**
|
|
45
|
+
* Aggregates standard schema issues by path.
|
|
46
|
+
*/
|
|
47
|
+
export declare function combineStandardIssues(issues: StandardSchemaV1.Issue[] | readonly StandardSchemaV1.Issue[]): IssueCollection[];
|
|
48
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeEventValue(value: Event | unknown): unknown;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Locator } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Normalizes the given rules expression.
|
|
4
|
+
*/
|
|
5
|
+
export declare function normalizeRules(rules: undefined | string | Record<string, unknown | unknown[] | Record<string, unknown>>): Record<string, unknown[] | Record<string, unknown>>;
|
|
6
|
+
/**
|
|
7
|
+
* Parses a rule string expression.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseRule(rule: string): {
|
|
10
|
+
name: string | undefined;
|
|
11
|
+
params: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare function extractLocators(params: Record<string, unknown> | unknown[]): Locator[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare function isCallable(fn: unknown): fn is (...args: any[]) => any;
|
|
2
|
+
export declare function isObject(obj: unknown): obj is Record<string, unknown>;
|
|
3
|
+
export declare function isIndex(value: unknown): value is number;
|
|
4
|
+
export declare function isNullOrUndefined(value: unknown): value is undefined | null;
|
|
5
|
+
export declare function toNumber(value: string): number | string;
|
|
6
|
+
export declare function normalizeFormPath(path: string): string;
|
|
7
|
+
export declare function getTag(value: any): string;
|
|
8
|
+
export declare function isObjectLike(value: any): boolean;
|
|
9
|
+
export declare function isPlainObject(value: any): boolean;
|
|
10
|
+
export declare function merge(target: any, source: any): any;
|
|
11
|
+
/**
|
|
12
|
+
* 将对象扁平化为点/下标路径的键
|
|
13
|
+
* 例如:
|
|
14
|
+
* { a: { b: 1 }, arr: [{ x: 2 }] }
|
|
15
|
+
* => { 'a.b': 1, 'arr[0].x': 2 }
|
|
16
|
+
*/
|
|
17
|
+
export declare function flattenToDotPaths(source: any, opts?: {
|
|
18
|
+
includeEmpty?: boolean;
|
|
19
|
+
}): Record<string, unknown>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SetupContext } from 'vue';
|
|
2
|
+
type HTMLElementWithValueBinding = HTMLElement & {
|
|
3
|
+
_value: unknown;
|
|
4
|
+
};
|
|
5
|
+
export declare function normalizeChildren(tag: string | undefined | null, context: SetupContext<any>, slotProps: () => Record<string, unknown>): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>[] | {
|
|
8
|
+
default: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>[] | undefined;
|
|
11
|
+
} | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Vue adds a `_value` prop at the moment on the input elements to store the REAL value on them, real values are different than the `value` attribute
|
|
14
|
+
* as they do not get casted to strings unlike `el.value` which preserves user-code behavior
|
|
15
|
+
*/
|
|
16
|
+
export declare function getBoundValue(el: HTMLElement): unknown;
|
|
17
|
+
/**
|
|
18
|
+
* Vue adds a `_value` prop at the moment on the input elements to store the REAL value on them, real values are different than the `value` attribute
|
|
19
|
+
* as they do not get casted to strings unlike `el.value` which preserves user-code behavior
|
|
20
|
+
*/
|
|
21
|
+
export declare function hasValueBinding(el: HTMLElement): el is HTMLElementWithValueBinding;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StandardSchemaV1 } from '@standard-schema/spec';
|
|
2
|
+
import { FormValidationResult, GenericObject, GenericValidateFunction, RawFormSchema, ValidationResult } from './types';
|
|
3
|
+
type ValidationOptions = {
|
|
4
|
+
name?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
values?: Record<string, unknown>;
|
|
7
|
+
bails?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Validates a value against the rules.
|
|
11
|
+
*/
|
|
12
|
+
export declare function validate<TInput, TOutput>(value: TInput, rules: string | Record<string, unknown | unknown[]> | GenericValidateFunction<TInput> | GenericValidateFunction<TInput>[] | StandardSchemaV1<TInput, TOutput>, options?: ValidationOptions): Promise<ValidationResult<TOutput>>;
|
|
13
|
+
export declare function validateStandardSchema<TValues extends GenericObject, TOutput extends GenericObject = TValues>(schema: StandardSchemaV1<TValues, TOutput>, values: TValues): Promise<FormValidationResult<TValues, TOutput>>;
|
|
14
|
+
export declare function validateObjectSchema<TValues extends GenericObject, TOutput extends GenericObject>(schema: RawFormSchema<TValues>, values: TValues | undefined, opts?: Partial<{
|
|
15
|
+
names: Record<string, {
|
|
16
|
+
name: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}>;
|
|
19
|
+
bailsMap: Record<string, boolean>;
|
|
20
|
+
}>): Promise<FormValidationResult<TValues, TOutput>>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|