@refinedev/antd 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1689 -0
- package/README.md +285 -0
- package/dist/components/breadcrumb/index.d.ts +6 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/buttons/clone/index.d.ts +11 -0
- package/dist/components/buttons/clone/index.d.ts.map +1 -0
- package/dist/components/buttons/create/index.d.ts +11 -0
- package/dist/components/buttons/create/index.d.ts.map +1 -0
- package/dist/components/buttons/delete/index.d.ts +10 -0
- package/dist/components/buttons/delete/index.d.ts.map +1 -0
- package/dist/components/buttons/edit/index.d.ts +11 -0
- package/dist/components/buttons/edit/index.d.ts.map +1 -0
- package/dist/components/buttons/export/index.d.ts +10 -0
- package/dist/components/buttons/export/index.d.ts.map +1 -0
- package/dist/components/buttons/import/index.d.ts +11 -0
- package/dist/components/buttons/import/index.d.ts.map +1 -0
- package/dist/components/buttons/index.d.ts +12 -0
- package/dist/components/buttons/index.d.ts.map +1 -0
- package/dist/components/buttons/list/index.d.ts +11 -0
- package/dist/components/buttons/list/index.d.ts.map +1 -0
- package/dist/components/buttons/refresh/index.d.ts +10 -0
- package/dist/components/buttons/refresh/index.d.ts.map +1 -0
- package/dist/components/buttons/save/index.d.ts +10 -0
- package/dist/components/buttons/save/index.d.ts.map +1 -0
- package/dist/components/buttons/show/index.d.ts +11 -0
- package/dist/components/buttons/show/index.d.ts.map +1 -0
- package/dist/components/buttons/types.d.ts +24 -0
- package/dist/components/buttons/types.d.ts.map +1 -0
- package/dist/components/crud/create/index.d.ts +10 -0
- package/dist/components/crud/create/index.d.ts.map +1 -0
- package/dist/components/crud/edit/index.d.ts +10 -0
- package/dist/components/crud/edit/index.d.ts.map +1 -0
- package/dist/components/crud/index.d.ts +6 -0
- package/dist/components/crud/index.d.ts.map +1 -0
- package/dist/components/crud/list/index.d.ts +10 -0
- package/dist/components/crud/list/index.d.ts.map +1 -0
- package/dist/components/crud/show/index.d.ts +10 -0
- package/dist/components/crud/show/index.d.ts.map +1 -0
- package/dist/components/crud/types.d.ts +10 -0
- package/dist/components/crud/types.d.ts.map +1 -0
- package/dist/components/fields/boolean/index.d.ts +9 -0
- package/dist/components/fields/boolean/index.d.ts.map +1 -0
- package/dist/components/fields/date/index.d.ts +9 -0
- package/dist/components/fields/date/index.d.ts.map +1 -0
- package/dist/components/fields/email/index.d.ts +10 -0
- package/dist/components/fields/email/index.d.ts.map +1 -0
- package/dist/components/fields/file/index.d.ts +9 -0
- package/dist/components/fields/file/index.d.ts.map +1 -0
- package/dist/components/fields/image/index.d.ts +9 -0
- package/dist/components/fields/image/index.d.ts.map +1 -0
- package/dist/components/fields/index.d.ts +12 -0
- package/dist/components/fields/index.d.ts.map +1 -0
- package/dist/components/fields/markdown/index.d.ts +9 -0
- package/dist/components/fields/markdown/index.d.ts.map +1 -0
- package/dist/components/fields/number/index.d.ts +9 -0
- package/dist/components/fields/number/index.d.ts.map +1 -0
- package/dist/components/fields/tag/index.d.ts +9 -0
- package/dist/components/fields/tag/index.d.ts.map +1 -0
- package/dist/components/fields/text/index.d.ts +9 -0
- package/dist/components/fields/text/index.d.ts.map +1 -0
- package/dist/components/fields/types.d.ts +20 -0
- package/dist/components/fields/types.d.ts.map +1 -0
- package/dist/components/fields/url/index.d.ts +10 -0
- package/dist/components/fields/url/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +13 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/layout/header/index.d.ts +4 -0
- package/dist/components/layout/header/index.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +4 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/layout/sider/index.d.ts +4 -0
- package/dist/components/layout/sider/index.d.ts.map +1 -0
- package/dist/components/layout/sider/styles.d.ts +3 -0
- package/dist/components/layout/sider/styles.d.ts.map +1 -0
- package/dist/components/layout/title/index.d.ts +4 -0
- package/dist/components/layout/title/index.d.ts.map +1 -0
- package/dist/components/layout/types.d.ts +3 -0
- package/dist/components/layout/types.d.ts.map +1 -0
- package/dist/components/pageHeader/index.d.ts +5 -0
- package/dist/components/pageHeader/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts +12 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/index.d.ts +5 -0
- package/dist/components/pages/auth/components/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.ts +12 -0
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/register/index.d.ts +12 -0
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -0
- package/dist/components/pages/auth/components/styles.d.ts +5 -0
- package/dist/components/pages/auth/components/styles.d.ts.map +1 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.ts +12 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -0
- package/dist/components/pages/auth/index.d.ts +11 -0
- package/dist/components/pages/auth/index.d.ts.map +1 -0
- package/dist/components/pages/error/index.d.ts +10 -0
- package/dist/components/pages/error/index.d.ts.map +1 -0
- package/dist/components/pages/index.d.ts +7 -0
- package/dist/components/pages/index.d.ts.map +1 -0
- package/dist/components/pages/login/index.d.ts +15 -0
- package/dist/components/pages/login/index.d.ts.map +1 -0
- package/dist/components/pages/login/styles.d.ts +6 -0
- package/dist/components/pages/login/styles.d.ts.map +1 -0
- package/dist/components/pages/ready/index.d.ts +10 -0
- package/dist/components/pages/ready/index.d.ts.map +1 -0
- package/dist/components/pages/welcome/index.d.ts +6 -0
- package/dist/components/pages/welcome/index.d.ts.map +1 -0
- package/dist/components/table/components/filterDropdown/index.d.ts +13 -0
- package/dist/components/table/components/filterDropdown/index.d.ts.map +1 -0
- package/dist/components/table/components/index.d.ts +2 -0
- package/dist/components/table/components/index.d.ts.map +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.d.ts.map +1 -0
- package/dist/components/undoableNotification/index.d.ts +10 -0
- package/dist/components/undoableNotification/index.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +3 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/table/index.d.ts +10 -0
- package/dist/definitions/table/index.d.ts.map +1 -0
- package/dist/definitions/upload/index.d.ts +4 -0
- package/dist/definitions/upload/index.d.ts.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/hooks/fields/index.d.ts +4 -0
- package/dist/hooks/fields/index.d.ts.map +1 -0
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts +24 -0
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts.map +1 -0
- package/dist/hooks/fields/useRadioGroup/index.d.ts +24 -0
- package/dist/hooks/fields/useRadioGroup/index.d.ts.map +1 -0
- package/dist/hooks/fields/useSelect/index.d.ts +21 -0
- package/dist/hooks/fields/useSelect/index.d.ts.map +1 -0
- package/dist/hooks/form/index.d.ts +5 -0
- package/dist/hooks/form/index.d.ts.map +1 -0
- package/dist/hooks/form/useDrawerForm/index.d.ts +2 -0
- package/dist/hooks/form/useDrawerForm/index.d.ts.map +1 -0
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +33 -0
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -0
- package/dist/hooks/form/useForm.d.ts +31 -0
- package/dist/hooks/form/useForm.d.ts.map +1 -0
- package/dist/hooks/form/useModalForm/index.d.ts +2 -0
- package/dist/hooks/form/useModalForm/index.d.ts.map +1 -0
- package/dist/hooks/form/useModalForm/useModalForm.d.ts +39 -0
- package/dist/hooks/form/useModalForm/useModalForm.d.ts.map +1 -0
- package/dist/hooks/form/useStepsForm/index.d.ts +2 -0
- package/dist/hooks/form/useStepsForm/index.d.ts.map +1 -0
- package/dist/hooks/form/useStepsForm/useStepsForm.d.ts +35 -0
- package/dist/hooks/form/useStepsForm/useStepsForm.d.ts.map +1 -0
- package/dist/hooks/import/index.d.ts +18 -0
- package/dist/hooks/import/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/list/index.d.ts +2 -0
- package/dist/hooks/list/index.d.ts.map +1 -0
- package/dist/hooks/list/useSimpleList/index.d.ts +2 -0
- package/dist/hooks/list/useSimpleList/index.d.ts.map +1 -0
- package/dist/hooks/list/useSimpleList/useSimpleList.d.ts +23 -0
- package/dist/hooks/list/useSimpleList/useSimpleList.d.ts.map +1 -0
- package/dist/hooks/modal/index.d.ts +2 -0
- package/dist/hooks/modal/index.d.ts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.ts +18 -0
- package/dist/hooks/modal/useModal/index.d.ts.map +1 -0
- package/dist/hooks/table/index.d.ts +3 -0
- package/dist/hooks/table/index.d.ts.map +1 -0
- package/dist/hooks/table/useEditableTable/index.d.ts +2 -0
- package/dist/hooks/table/useEditableTable/index.d.ts.map +1 -0
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts +28 -0
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts.map +1 -0
- package/dist/hooks/table/useTable/index.d.ts +2 -0
- package/dist/hooks/table/useTable/index.d.ts.map +1 -0
- package/dist/hooks/table/useTable/paginationLink.d.ts +8 -0
- package/dist/hooks/table/useTable/paginationLink.d.ts.map +1 -0
- package/dist/hooks/table/useTable/useTable.d.ts +18 -0
- package/dist/hooks/table/useTable/useTable.d.ts.map +1 -0
- package/dist/hooks/useFileUploadState/index.d.ts +7 -0
- package/dist/hooks/useFileUploadState/index.d.ts.map +1 -0
- package/dist/iife/index.js +56 -0
- package/dist/iife/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/field.d.ts +4 -0
- package/dist/interfaces/field.d.ts.map +1 -0
- package/dist/interfaces/index.d.ts +19 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/upload.d.ts +10 -0
- package/dist/interfaces/upload.d.ts.map +1 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/notificationProvider/index.d.ts +3 -0
- package/dist/providers/notificationProvider/index.d.ts.map +1 -0
- package/dist/reset.css +254 -0
- package/package.json +72 -0
- package/refine.config.js +604 -0
- package/src/assets/styles/reset.css +254 -0
- package/src/components/breadcrumb/index.tsx +70 -0
- package/src/components/buttons/clone/index.tsx +104 -0
- package/src/components/buttons/create/index.tsx +103 -0
- package/src/components/buttons/delete/index.tsx +122 -0
- package/src/components/buttons/edit/index.tsx +105 -0
- package/src/components/buttons/export/index.tsx +32 -0
- package/src/components/buttons/import/index.tsx +36 -0
- package/src/components/buttons/index.ts +11 -0
- package/src/components/buttons/list/index.tsx +122 -0
- package/src/components/buttons/refresh/index.tsx +61 -0
- package/src/components/buttons/save/index.tsx +32 -0
- package/src/components/buttons/show/index.tsx +104 -0
- package/src/components/buttons/types.ts +44 -0
- package/src/components/crud/create/index.tsx +135 -0
- package/src/components/crud/edit/index.tsx +221 -0
- package/src/components/crud/index.ts +6 -0
- package/src/components/crud/list/index.tsx +105 -0
- package/src/components/crud/show/index.tsx +215 -0
- package/src/components/crud/types.ts +63 -0
- package/src/components/fields/boolean/index.tsx +26 -0
- package/src/components/fields/date/index.tsx +33 -0
- package/src/components/fields/email/index.tsx +20 -0
- package/src/components/fields/file/index.tsx +21 -0
- package/src/components/fields/image/index.tsx +17 -0
- package/src/components/fields/index.ts +11 -0
- package/src/components/fields/markdown/index.tsx +16 -0
- package/src/components/fields/number/index.tsx +36 -0
- package/src/components/fields/tag/index.tsx +13 -0
- package/src/components/fields/text/index.tsx +15 -0
- package/src/components/fields/types.ts +49 -0
- package/src/components/fields/url/index.tsx +24 -0
- package/src/components/index.ts +14 -0
- package/src/components/layout/header/index.tsx +37 -0
- package/src/components/layout/index.tsx +41 -0
- package/src/components/layout/sider/index.tsx +261 -0
- package/src/components/layout/sider/styles.ts +9 -0
- package/src/components/layout/title/index.tsx +48 -0
- package/src/components/layout/types.ts +11 -0
- package/src/components/pageHeader/index.tsx +52 -0
- package/src/components/pages/auth/components/forgotPassword/index.tsx +167 -0
- package/src/components/pages/auth/components/index.tsx +4 -0
- package/src/components/pages/auth/components/login/index.tsx +239 -0
- package/src/components/pages/auth/components/register/index.tsx +210 -0
- package/src/components/pages/auth/components/styles.ts +23 -0
- package/src/components/pages/auth/components/updatePassword/index.tsx +158 -0
- package/src/components/pages/auth/index.tsx +35 -0
- package/src/components/pages/error/index.tsx +77 -0
- package/src/components/pages/index.tsx +6 -0
- package/src/components/pages/login/index.tsx +172 -0
- package/src/components/pages/login/styles.ts +25 -0
- package/src/components/pages/ready/index.tsx +96 -0
- package/src/components/pages/welcome/index.tsx +87 -0
- package/src/components/table/components/filterDropdown/index.tsx +112 -0
- package/src/components/table/components/index.ts +1 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/undoableNotification/index.tsx +46 -0
- package/src/definitions/index.ts +2 -0
- package/src/definitions/table/index.ts +113 -0
- package/src/definitions/upload/index.ts +29 -0
- package/src/hooks/fields/index.ts +3 -0
- package/src/hooks/fields/useCheckboxGroup/index.ts +85 -0
- package/src/hooks/fields/useRadioGroup/index.ts +85 -0
- package/src/hooks/fields/useSelect/index.ts +47 -0
- package/src/hooks/form/index.ts +17 -0
- package/src/hooks/form/useDrawerForm/index.ts +6 -0
- package/src/hooks/form/useDrawerForm/useDrawerForm.ts +241 -0
- package/src/hooks/form/useForm.ts +168 -0
- package/src/hooks/form/useModalForm/index.ts +5 -0
- package/src/hooks/form/useModalForm/useModalForm.ts +286 -0
- package/src/hooks/form/useStepsForm/index.ts +5 -0
- package/src/hooks/form/useStepsForm/useStepsForm.ts +91 -0
- package/src/hooks/import/index.tsx +134 -0
- package/src/hooks/index.ts +7 -0
- package/src/hooks/list/index.ts +1 -0
- package/src/hooks/list/useSimpleList/index.ts +1 -0
- package/src/hooks/list/useSimpleList/useSimpleList.ts +229 -0
- package/src/hooks/modal/index.ts +1 -0
- package/src/hooks/modal/useModal/index.tsx +43 -0
- package/src/hooks/table/index.ts +2 -0
- package/src/hooks/table/useEditableTable/index.ts +1 -0
- package/src/hooks/table/useEditableTable/useEditableTable.ts +87 -0
- package/src/hooks/table/useTable/index.ts +1 -0
- package/src/hooks/table/useTable/paginationLink.tsx +27 -0
- package/src/hooks/table/useTable/useTable.ts +267 -0
- package/src/hooks/useFileUploadState/index.ts +34 -0
- package/src/index.tsx +11 -0
- package/src/interfaces/field.ts +3 -0
- package/src/interfaces/index.ts +23 -0
- package/src/interfaces/upload.ts +9 -0
- package/src/providers/index.ts +1 -0
- package/src/providers/notificationProvider/index.tsx +41 -0
- package/src/types/index.d.ts +4 -0
- package/src/types/sunflower.d.ts +86 -0
- package/tsconfig.json +28 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { QueryObserverResult } from "@tanstack/react-query";
|
2
|
+
import { CheckboxGroupProps } from "antd/lib/checkbox";
|
3
|
+
import { BaseRecord, GetListResponse, HttpError, UseSelectProps, BaseKey } from "@refinedev/core";
|
4
|
+
export declare type UseCheckboxGroupReturnType<TData extends BaseRecord = BaseRecord> = {
|
5
|
+
checkboxGroupProps: CheckboxGroupProps;
|
6
|
+
queryResult: QueryObserverResult<GetListResponse<TData>>;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* `useCheckboxGroup` hook allows you to manage an Ant Design {@link https://ant.design/components/checkbox/#components-checkbox-demo-group Checkbox.Group} component when records in a resource needs to be used as checkbox options.
|
10
|
+
*
|
11
|
+
* @see {@link https://refine.dev/docs/ui-framewors/antd/hooks/field/useCheckboxGroup} for more details.
|
12
|
+
*
|
13
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
14
|
+
*
|
15
|
+
*/
|
16
|
+
declare type UseCheckboxGroupProps<TData, TError> = Omit<UseSelectProps<TData, TError>, "defaultValue"> & {
|
17
|
+
/**
|
18
|
+
* Sets the default value
|
19
|
+
*/
|
20
|
+
defaultValue?: BaseKey[];
|
21
|
+
};
|
22
|
+
export declare const useCheckboxGroup: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource, sort, sorters, filters, optionLabel, optionValue, queryOptions, fetchSize, pagination, liveMode, defaultValue, onLiveEvent, liveParams, meta, metaData, dataProviderName, }: UseCheckboxGroupProps<TData, TError>) => UseCheckboxGroupReturnType<TData>;
|
23
|
+
export {};
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/fields/useCheckboxGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EACH,UAAU,EACV,eAAe,EACf,SAAS,EACT,cAAc,EAEd,OAAO,EAEV,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,0BAA0B,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IACxE;IACI,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;CAC5D,CAAC;AAEN;;;;;;;GAOG;AAEH,aAAK,qBAAqB,CAAC,KAAK,EAAE,MAAM,IAAI,IAAI,CAC5C,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,EAC7B,cAAc,CACjB,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mVA8C5B,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { QueryObserverResult } from "@tanstack/react-query";
|
2
|
+
import { RadioGroupProps } from "antd/lib/radio";
|
3
|
+
import { BaseKey, BaseRecord, GetListResponse, HttpError, UseSelectProps } from "@refinedev/core";
|
4
|
+
export declare type UseRadioGroupReturnType<TData extends BaseRecord = BaseRecord> = {
|
5
|
+
radioGroupProps: RadioGroupProps;
|
6
|
+
queryResult: QueryObserverResult<GetListResponse<TData>>;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* `useRadioGroup` hook allows you to manage an Ant Design {@link https://ant.design/components/radio/#components-radio-demo-radiogroup-with-name Radio.Group} component when records in a resource needs to be used as radio options.
|
10
|
+
*
|
11
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/field/useRadioGroup} for more details.
|
12
|
+
*
|
13
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
|
14
|
+
*
|
15
|
+
*/
|
16
|
+
declare type UseRadioGroupProps<TData, TError> = Omit<UseSelectProps<TData, TError>, "defaultValue"> & {
|
17
|
+
/**
|
18
|
+
* Sets the default value
|
19
|
+
*/
|
20
|
+
defaultValue?: BaseKey;
|
21
|
+
};
|
22
|
+
export declare const useRadioGroup: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>({ resource, sort, sorters, filters, optionLabel, optionValue, queryOptions, fetchSize, pagination, liveMode, defaultValue, onLiveEvent, liveParams, meta, metaData, dataProviderName, }: UseRadioGroupProps<TData, TError>) => UseRadioGroupReturnType<TData>;
|
23
|
+
export {};
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/fields/useRadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EACH,OAAO,EACP,UAAU,EACV,eAAe,EACf,SAAS,EAGT,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,uBAAuB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IACzE,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;CAC5D,CAAC;AAEF;;;;;;;GAOG;AAEH,aAAK,kBAAkB,CAAC,KAAK,EAAE,MAAM,IAAI,IAAI,CACzC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,EAC7B,cAAc,CACjB,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,aAAa,6UA+CzB,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { SelectProps } from "antd/lib/select";
|
2
|
+
import { QueryObserverResult } from "@tanstack/react-query";
|
3
|
+
import { BaseRecord, GetManyResponse, GetListResponse, HttpError, UseSelectProps } from "@refinedev/core";
|
4
|
+
export declare type UseSelectReturnType<TData extends BaseRecord = BaseRecord> = {
|
5
|
+
selectProps: SelectProps<{
|
6
|
+
value: string;
|
7
|
+
label: string;
|
8
|
+
}>;
|
9
|
+
queryResult: QueryObserverResult<GetListResponse<TData>>;
|
10
|
+
defaultValueQueryResult: QueryObserverResult<GetManyResponse<TData>>;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* `useSelect` hook allows you to manage an Ant Design {@link https://ant.design/components/select/ Select} component when records in a resource needs to be used as select options.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/api-references/hooks/field/useSelect} for more details.
|
16
|
+
*
|
17
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
18
|
+
*
|
19
|
+
*/
|
20
|
+
export declare const useSelect: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>(props: UseSelectProps<TData, TError>) => UseSelectReturnType<TData>;
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/fields/useSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAEH,UAAU,EACV,eAAe,EACf,eAAe,EACf,SAAS,EACT,cAAc,EACjB,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,mBAAmB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IACrE,WAAW,EAAE,WAAW,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3D,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,uBAAuB,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;CACxE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,mJAoBrB,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { useForm, UseFormProps, UseFormReturnType } from "./useForm";
|
2
|
+
export { useModalForm, UseModalFormProps, UseModalFormReturnType, } from "./useModalForm";
|
3
|
+
export { useDrawerForm, UseDrawerFormProps, UseDrawerFormConfig, UseDrawerFormReturnType, } from "./useDrawerForm";
|
4
|
+
export { useStepsForm, UseStepsFormProps, UseStepsFormReturnType, } from "./useStepsForm";
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACzB,MAAM,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useDrawerForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,GAC1B,MAAM,iBAAiB,CAAC"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { UseFormConfig } from "sunflower-antd";
|
2
|
+
import { FormInstance, FormProps, DrawerProps, ButtonProps } from "antd";
|
3
|
+
import { UseFormProps as UseFormPropsCore, HttpError, LiveModeProps, BaseRecord, FormWithSyncWithLocationParams, BaseKey } from "@refinedev/core";
|
4
|
+
import { UseFormProps, UseFormReturnType } from "../useForm";
|
5
|
+
import { DeleteButtonProps } from "../../../components";
|
6
|
+
export interface UseDrawerFormConfig extends UseFormConfig {
|
7
|
+
action: "show" | "edit" | "create" | "clone";
|
8
|
+
}
|
9
|
+
export declare type UseDrawerFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormPropsCore<TData, TError, TVariables> & UseFormProps<TData, TError, TVariables> & UseDrawerFormConfig & LiveModeProps & FormWithSyncWithLocationParams;
|
10
|
+
export declare type UseDrawerFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormReturnType<TData, TError, TVariables> & {
|
11
|
+
formProps: FormProps<TVariables> & {
|
12
|
+
form: FormInstance<TVariables>;
|
13
|
+
};
|
14
|
+
show: (id?: BaseKey) => void;
|
15
|
+
close: () => void;
|
16
|
+
drawerProps: DrawerProps;
|
17
|
+
saveButtonProps: ButtonProps;
|
18
|
+
deleteButtonProps: DeleteButtonProps;
|
19
|
+
formLoading: boolean;
|
20
|
+
};
|
21
|
+
/**
|
22
|
+
* `useDrawerForm` hook allows you to manage a form within a drawer. It returns Ant Design {@link https://ant.design/components/form/ Form} and {@link https://ant.design/components/drawer/ Drawer} components props.
|
23
|
+
*
|
24
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/form/useDrawerForm} for more details.
|
25
|
+
*
|
26
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
27
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`}
|
28
|
+
* @typeParam TVariables - Values for params. default `{}`
|
29
|
+
*
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
export declare const useDrawerForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationMode: mutationModeProp, syncWithLocation, ...rest }: UseDrawerFormProps<TData, TError, TVariables>) => UseDrawerFormReturnType<TData, TError, TVariables>;
|
33
|
+
//# sourceMappingURL=useDrawerForm.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useDrawerForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useDrawerForm/useDrawerForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,EAIH,YAAY,IAAI,gBAAgB,EAChC,SAAS,EACT,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,OAAO,EAIV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAChD;AAED,oBAAY,kBAAkB,CAC1B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAC3C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GACvC,mBAAmB,GACnB,aAAa,GACb,8BAA8B,CAAC;AAEnC,oBAAY,uBAAuB,CAC/B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG;IAC/C,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG;QAC/B,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;KAClC,CAAC;IACF,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,EAAE,WAAW,CAAC;IAC7B,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,WAAW,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,oQAgLzB,CAAC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { FormInstance, FormProps } from "antd";
|
2
|
+
import { ButtonProps } from "antd";
|
3
|
+
import { HttpError, BaseRecord, UseFormReturnType as UseFormReturnTypeCore, UseFormProps as UseFormPropsCore, CreateResponse, UpdateResponse } from "@refinedev/core";
|
4
|
+
export declare type UseFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormPropsCore<TData, TError, TVariables> & {
|
5
|
+
submitOnEnter?: boolean;
|
6
|
+
/**
|
7
|
+
* Shows notification when unsaved changes exist
|
8
|
+
*/
|
9
|
+
warnWhenUnsavedChanges?: boolean;
|
10
|
+
};
|
11
|
+
export declare type UseFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormReturnTypeCore<TData, TError, TVariables> & {
|
12
|
+
form: FormInstance<TVariables>;
|
13
|
+
formProps: FormProps<TVariables>;
|
14
|
+
saveButtonProps: ButtonProps & {
|
15
|
+
onClick: () => void;
|
16
|
+
};
|
17
|
+
onFinish: (values?: TVariables) => Promise<CreateResponse<TData> | UpdateResponse<TData> | void>;
|
18
|
+
};
|
19
|
+
/**
|
20
|
+
* `useForm` is used to manage forms. It uses Ant Design {@link https://ant.design/components/form/ Form} data scope management under the hood and returns the required props for managing the form actions.
|
21
|
+
*
|
22
|
+
* @see {@link https://refine.dev/docs/api-references/hooks/form/useForm} for more details.
|
23
|
+
*
|
24
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
25
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`}
|
26
|
+
* @typeParam TVariables - Values for params. default `{}`
|
27
|
+
*
|
28
|
+
*
|
29
|
+
*/
|
30
|
+
export declare const useForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ action, resource, onMutationSuccess: onMutationSuccessProp, onMutationError, submitOnEnter, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, redirect, successNotification, errorNotification, meta, metaData, liveMode, liveParams, mutationMode, dataProviderName, onLiveEvent, invalidates, undoableTimeout, queryOptions, createMutationOptions, updateMutationOptions, id: idFromProps, }?: UseFormProps<TData, TError, TVariables>) => UseFormReturnType<TData, TError, TVariables>;
|
31
|
+
//# sourceMappingURL=useForm.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../src/hooks/form/useForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAQ,MAAM,MAAM,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACH,SAAS,EACT,UAAU,EAEV,iBAAiB,IAAI,qBAAqB,EAE1C,YAAY,IAAI,gBAAgB,EAChC,cAAc,EACd,cAAc,EAEjB,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,YAAY,CACpB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG;IAC9C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CACpC,CAAC;AAEF,oBAAY,iBAAiB,CACzB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG;IACnD,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,eAAe,EAAE,WAAW,GAAG;QAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;IACF,QAAQ,EAAE,CACN,MAAM,CAAC,EAAE,UAAU,KAClB,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;CACtE,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,+jBAgHnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useModalForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACzB,MAAM,gBAAgB,CAAC"}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { FormInstance, FormProps, ModalProps } from "antd";
|
2
|
+
import { UseModalFormConfig as UseModalFormConfigSF } from "sunflower-antd";
|
3
|
+
import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord, LiveModeProps, BaseKey, FormWithSyncWithLocationParams } from "@refinedev/core";
|
4
|
+
import { UseFormProps, UseFormReturnType } from "../useForm";
|
5
|
+
export declare type useModalFormFromSFReturnType<TData, TVariables> = {
|
6
|
+
open: boolean;
|
7
|
+
form: FormInstance<TVariables>;
|
8
|
+
show: (id?: BaseKey) => void;
|
9
|
+
close: () => void;
|
10
|
+
modalProps: ModalProps;
|
11
|
+
formProps: FormProps<TVariables>;
|
12
|
+
formLoading: boolean;
|
13
|
+
defaultFormValuesLoading: boolean;
|
14
|
+
formValues: {};
|
15
|
+
initialValues: {};
|
16
|
+
formResult: undefined;
|
17
|
+
submit: (values?: TVariables) => Promise<TData>;
|
18
|
+
/** @deprecated Please use `open` instead. */
|
19
|
+
visible: boolean;
|
20
|
+
};
|
21
|
+
declare type useModalFormConfig = {
|
22
|
+
action: "show" | "edit" | "create" | "clone";
|
23
|
+
};
|
24
|
+
export declare type UseModalFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = Omit<UseFormReturnType<TData, TError, TVariables>, "saveButtonProps" | "deleteButtonProps"> & useModalFormFromSFReturnType<TData, TVariables>;
|
25
|
+
export declare type UseModalFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormPropsCore<TData, TError, TVariables> & UseFormProps<TData, TError, TVariables> & UseModalFormConfigSF & useModalFormConfig & LiveModeProps & FormWithSyncWithLocationParams;
|
26
|
+
/**
|
27
|
+
* `useModalForm` hook allows you to manage a form within a modal. It returns Ant Design {@link https://ant.design/components/form/ Form} and {@link https://ant.design/components/modal/ Modal} components props.
|
28
|
+
*
|
29
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/form/useModalForm} for more details.
|
30
|
+
*
|
31
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
32
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`}
|
33
|
+
* @typeParam TVariables - Values for params. default `{}`
|
34
|
+
*
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
export declare const useModalForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ mutationMode: mutationModeProp, syncWithLocation, ...rest }: UseModalFormProps<TData, TError, TVariables>) => UseModalFormReturnType<TData, TError, TVariables>;
|
38
|
+
export {};
|
39
|
+
//# sourceMappingURL=useModalForm.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useModalForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useModalForm/useModalForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC3D,OAAO,EAEH,kBAAkB,IAAI,oBAAoB,EAC7C,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAIH,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACV,aAAa,EACb,OAAO,EAGP,8BAA8B,EAGjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,oBAAY,4BAA4B,CAAC,KAAK,EAAE,UAAU,IAAI;IAC1D,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,EAAE,CAAC;IACf,aAAa,EAAE,EAAE,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAChD,6CAA6C;IAC7C,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,aAAK,kBAAkB,GAAG;IACtB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAChD,CAAC;AAEF,oBAAY,sBAAsB,CAC9B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,IAAI,CACJ,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAC5C,iBAAiB,GAAG,mBAAmB,CAC1C,GACG,4BAA4B,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAEpD,oBAAY,iBAAiB,CACzB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAC3C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GACvC,oBAAoB,GACpB,kBAAkB,GAClB,aAAa,GACb,8BAA8B,CAAC;AACnC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,kQAgNxB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACzB,MAAM,gBAAgB,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { UseStepsFormConfig } from "sunflower-antd";
|
2
|
+
import { FormInstance, FormProps } from "antd";
|
3
|
+
import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
|
4
|
+
import { UseFormProps, UseFormReturnType } from "../useForm";
|
5
|
+
export declare type UseStepsFormFromSFReturnType<TData, TVariables> = {
|
6
|
+
current: number;
|
7
|
+
gotoStep: (step: number) => void;
|
8
|
+
stepsProps: {
|
9
|
+
current: number;
|
10
|
+
onChange: (currentStep: number) => void;
|
11
|
+
};
|
12
|
+
formProps: FormProps<TVariables>;
|
13
|
+
formLoading: boolean;
|
14
|
+
defaultFormValuesLoading: boolean;
|
15
|
+
formValues: {};
|
16
|
+
initialValues: {};
|
17
|
+
formResult: undefined;
|
18
|
+
form: FormInstance<TVariables>;
|
19
|
+
submit: (values?: TVariables) => Promise<TData>;
|
20
|
+
};
|
21
|
+
export declare type UseStepsFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormReturnType<TData, TError, TVariables> & UseStepsFormFromSFReturnType<TData, TVariables>;
|
22
|
+
export declare type UseStepsFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormPropsCore<TData, TError, TVariables> & UseFormProps<TData, TError, TVariables> & UseStepsFormConfig;
|
23
|
+
/**
|
24
|
+
* `useStepsForm` hook allows you to split your form under an Ant Design based {@link https://ant.design/components/steps/ Steps} component and provides you with a few useful functionalities that will help you manage your form.
|
25
|
+
*
|
26
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/form/useStepsForm} for more details.
|
27
|
+
*
|
28
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
29
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`}
|
30
|
+
* @typeParam TVariables - Values for params. default `{}`
|
31
|
+
*
|
32
|
+
*
|
33
|
+
*/
|
34
|
+
export declare const useStepsForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>(props?: UseStepsFormProps<TData, TError, TVariables>) => UseStepsFormReturnType<TData, TError, TVariables>;
|
35
|
+
//# sourceMappingURL=useStepsForm.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useStepsForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/useStepsForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,kBAAkB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACH,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACb,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,oBAAY,4BAA4B,CAAC,KAAK,EAAE,UAAU,IAAI;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;KAC3C,CAAC;IACF,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,EAAE,CAAC;IACf,aAAa,EAAE,EAAE,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;CACnD,CAAC;AAEF,oBAAY,sBAAsB,CAC9B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAC5C,4BAA4B,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAEpD,oBAAY,iBAAiB,CACzB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,IACf,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAC3C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GACvC,kBAAkB,CAAC;AAEvB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,2MAiCxB,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ButtonProps, UploadProps } from "antd";
|
2
|
+
import { BaseRecord, HttpError, UseImportReturnType, ImportOptions } from "@refinedev/core";
|
3
|
+
/**
|
4
|
+
* `useImport` hook allows you to handle your csv import logic easily.
|
5
|
+
*
|
6
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/import/useImport} for more details.
|
7
|
+
*
|
8
|
+
* @typeParam TItem - Interface of parsed csv data
|
9
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
10
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`}
|
11
|
+
* @typeParam TVariables - Values for mutation function
|
12
|
+
*
|
13
|
+
*/
|
14
|
+
export declare const useImport: <TItem = any, TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = any>({ resource: resourceFromProp, resourceName, mapData, paparseOptions, batchSize, onFinish, meta, metaData, dataProviderName, onProgress: onProgressFromProp, }?: ImportOptions<TItem, TVariables, TData>) => Omit<UseImportReturnType<TData, TVariables, TError>, "handleChange" | "inputProps"> & {
|
15
|
+
uploadProps: UploadProps;
|
16
|
+
buttonProps: ButtonProps;
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/import/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,WAAW,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,EAGH,UAAU,EACV,SAAS,EAET,mBAAmB,EACnB,aAAa,EAEhB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;iBAoBL,WAAW;iBACX,WAAW;CAwF3B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ListProps, FormProps } from "antd";
|
2
|
+
import { BaseRecord, CrudFilters, SuccessErrorNotification, HttpError, LiveModeProps, useTableProps as useTablePropsCore, useTableReturnType } from "@refinedev/core";
|
3
|
+
export declare type useSimpleListProps<TData, TError, TSearchVariables> = useTablePropsCore<TData, TError> & {
|
4
|
+
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
|
+
} & SuccessErrorNotification & LiveModeProps;
|
6
|
+
export declare type useSimpleListReturnType<TData extends BaseRecord = BaseRecord, TSearchVariables = unknown> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
|
7
|
+
listProps: ListProps<TData>;
|
8
|
+
queryResult: useTableReturnType["tableQueryResult"];
|
9
|
+
searchFormProps: FormProps<TSearchVariables>;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* By using `useSimpleList` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/list/ `<List>`} component.
|
13
|
+
* All features such as pagination, sorting come out of the box.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/list/useSimpleList} for more details.
|
16
|
+
*
|
17
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
|
18
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-references/interfaceReferences#httperror `HttpError`}
|
19
|
+
* @typeParam TSearchVariables - Antd form values
|
20
|
+
*
|
21
|
+
*/
|
22
|
+
export declare const useSimpleList: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown>({ resource, initialCurrent, initialPageSize, pagination, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useSimpleListProps<TData, TError, TSearchVariables>) => useSimpleListReturnType<TData, TSearchVariables>;
|
23
|
+
//# sourceMappingURL=useSimpleList.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useSimpleList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/useSimpleList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,MAAM,CAAC;AAExD,OAAO,EACH,UAAU,EACV,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,aAAa,EAEb,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,EAErB,MAAM,iBAAiB,CAAC;AAKzB,oBAAY,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,IAC1D,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAC/B,QAAQ,CAAC,EAAE,CACP,IAAI,EAAE,gBAAgB,KACrB,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3C,GAAG,wBAAwB,GACxB,aAAa,CAAC;AAEtB,oBAAY,uBAAuB,CAC/B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,gBAAgB,GAAG,OAAO,IAC1B,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,GAAG;IACtD,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,WAAW,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IACpD,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAChD,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,ulBAqLzB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ModalProps } from "antd";
|
2
|
+
import { useModalReturnType as useCoreModelReturnType } from "@refinedev/core";
|
3
|
+
export declare type useModalReturnType = {
|
4
|
+
modalProps: ModalProps;
|
5
|
+
} & Omit<useCoreModelReturnType, "visible">;
|
6
|
+
export declare type useModalProps = {
|
7
|
+
/**
|
8
|
+
* Default props for Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
|
9
|
+
*/
|
10
|
+
modalProps?: ModalProps;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* By using `useModal` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/ui/useModal} for more details.
|
16
|
+
*/
|
17
|
+
export declare const useModal: ({ modalProps, }?: useModalProps) => useModalReturnType;
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAEH,kBAAkB,IAAI,sBAAsB,EAC/C,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,kBAAkB,GAAG;IAC7B,UAAU,EAAE,UAAU,CAAC;CAC1B,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAE5C,oBAAY,aAAa,GAAG;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qBAElB,aAAa,KAAQ,kBAkBvB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useEditableTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { BaseKey, BaseRecord, HttpError, UseFormProps } from "@refinedev/core";
|
2
|
+
import { ButtonProps } from "antd";
|
3
|
+
import { useTableProps, useTableReturnType } from "../useTable";
|
4
|
+
import { UseFormReturnType } from "../../form/useForm";
|
5
|
+
export declare type useEditableTableReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown> = useTableReturnType<TData, TError, TSearchVariables> & UseFormReturnType<TData, TError, TVariables> & {
|
6
|
+
saveButtonProps: ButtonProps & {
|
7
|
+
onClick: () => void;
|
8
|
+
};
|
9
|
+
cancelButtonProps: ButtonProps & {
|
10
|
+
onClick: () => void;
|
11
|
+
};
|
12
|
+
editButtonProps: (id: BaseKey) => ButtonProps & {
|
13
|
+
onClick: () => void;
|
14
|
+
};
|
15
|
+
isEditing: (id: BaseKey) => boolean;
|
16
|
+
};
|
17
|
+
declare type useEditableTableProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown> = useTableProps<TData, TError, TSearchVariables> & UseFormProps<TData, TError, TVariables>;
|
18
|
+
/**
|
19
|
+
* `useEditeableTable` allows you to implement edit feature on the table with ease,
|
20
|
+
* on top of all the features that {@link https://refine.dev/docs/api-references/hooks/table/useTable `useTable`} provides.
|
21
|
+
* `useEditableTable` return properties that can be used on Ant Design's {@link https://ant.design/components/table/ `<Table>`}
|
22
|
+
* and {@link https://ant.design/components/form/ `<Form>`} components.
|
23
|
+
*
|
24
|
+
* @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/table/useEditableTable} for more details.
|
25
|
+
*/
|
26
|
+
export declare const useEditableTable: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown>(props?: useEditableTableProps<TData, TError, TVariables, TSearchVariables>) => useEditableTableReturnType<TData, TError, TVariables, TSearchVariables>;
|
27
|
+
export {};
|
28
|
+
//# sourceMappingURL=useEditableTable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useEditableTable.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useEditableTable/useEditableTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAW,MAAM,oBAAoB,CAAC;AAEhE,oBAAY,0BAA0B,CAClC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,gBAAgB,GAAG,OAAO,IAC1B,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,GACnD,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG;IAC3C,eAAe,EAAE,WAAW,GAAG;QAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;IACF,iBAAiB,EAAE,WAAW,GAAG;QAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;IACF,eAAe,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,WAAW,GAAG;QAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;IACF,SAAS,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,CAAC;CACvC,CAAC;AAEN,aAAK,qBAAqB,CACtB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,gBAAgB,GAAG,OAAO,IAC1B,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,GAC9C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,mRA4C5B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"paginationLink.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/paginationLink.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,UAAU,mBAAmB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,oBAAqB,mBAAmB,gBAkBlE,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FormProps, TableProps } from "antd";
|
2
|
+
import { BaseRecord, CrudFilters, SuccessErrorNotification, HttpError, LiveModeProps, useTableProps as useTablePropsCore, useTableReturnType as useTableCoreReturnType } from "@refinedev/core";
|
3
|
+
export declare type useTableProps<TData, TError, TSearchVariables = unknown> = useTablePropsCore<TData, TError> & SuccessErrorNotification & LiveModeProps & {
|
4
|
+
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
|
+
};
|
6
|
+
export declare type useTableReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown> = useTableCoreReturnType<TData, TError> & {
|
7
|
+
searchFormProps: FormProps<TSearchVariables>;
|
8
|
+
tableProps: TableProps<TData>;
|
9
|
+
};
|
10
|
+
/**
|
11
|
+
* By using useTable, you are able to get properties that are compatible with
|
12
|
+
* Ant Design {@link https://ant.design/components/table/ `<Table>`} component.
|
13
|
+
* All features such as sorting, filtering and pagination comes as out of box.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/api-references/hooks/table/useTable} for more details.
|
16
|
+
*/
|
17
|
+
export declare const useTable: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown>({ onSearch, initialCurrent, initialPageSize, hasPagination, pagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, syncWithLocation, resource, successNotification, errorNotification, queryOptions, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useTableProps<TData, TError, TSearchVariables>) => useTableReturnType<TData, TError, TSearchVariables>;
|
18
|
+
//# sourceMappingURL=useTable.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/useTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAA+B,UAAU,EAAE,MAAM,MAAM,CAAC;AAKhF,OAAO,EAEH,UAAU,EACV,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,aAAa,EAEb,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,IAAI,sBAAsB,EAE/C,MAAM,iBAAiB,CAAC;AAQzB,oBAAY,aAAa,CACrB,KAAK,EACL,MAAM,EACN,gBAAgB,GAAG,OAAO,IAC1B,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,GAChC,wBAAwB,GACxB,aAAa,GAAG;IACZ,QAAQ,CAAC,EAAE,CACP,IAAI,EAAE,gBAAgB,KACrB,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3C,CAAC;AAEN,oBAAY,kBAAkB,CAC1B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,gBAAgB,GAAG,OAAO,IAC1B,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IACxC,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC7C,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CACjC,CAAC;AAEF;;;;;;GAMG;AAEH,eAAO,MAAM,QAAQ,qlBAoNpB,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { UploadChangeParam } from "antd/lib/upload";
|
2
|
+
export declare type UseFileUploadStateType = () => {
|
3
|
+
isLoading: boolean;
|
4
|
+
onChange: (info: UploadChangeParam) => void;
|
5
|
+
};
|
6
|
+
export declare const useFileUploadState: UseFileUploadStateType;
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFileUploadState/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,oBAAY,sBAAsB,GAAG,MAAM;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC"}
|