@refinedev/antd 5.39.0 → 5.41.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 +189 -0
- package/dist/components/autoSaveIndicator/index.d.mts.map +4 -1
- package/dist/components/breadcrumb/index.d.mts.map +6 -1
- package/dist/components/buttons/clone/index.d.mts.map +11 -1
- package/dist/components/buttons/create/index.d.mts.map +11 -1
- package/dist/components/buttons/delete/index.d.mts.map +10 -1
- package/dist/components/buttons/edit/index.d.mts.map +11 -1
- package/dist/components/buttons/export/index.d.mts.map +10 -1
- package/dist/components/buttons/import/index.d.mts.map +11 -1
- package/dist/components/buttons/index.d.mts.map +12 -1
- package/dist/components/buttons/list/index.d.mts.map +11 -1
- package/dist/components/buttons/refresh/index.d.mts.map +10 -1
- package/dist/components/buttons/save/index.d.mts.map +10 -1
- package/dist/components/buttons/show/index.d.mts.map +11 -1
- package/dist/components/buttons/types.d.mts.map +24 -1
- package/dist/components/crud/create/index.d.mts.map +10 -1
- package/dist/components/crud/edit/index.d.mts.map +10 -1
- package/dist/components/crud/index.d.mts.map +6 -1
- package/dist/components/crud/list/index.d.mts.map +10 -1
- package/dist/components/crud/show/index.d.mts.map +10 -1
- package/dist/components/crud/types.d.mts.map +10 -1
- package/dist/components/fields/boolean/index.d.mts.map +9 -1
- package/dist/components/fields/date/index.d.mts.map +9 -1
- package/dist/components/fields/email/index.d.mts.map +10 -1
- package/dist/components/fields/file/index.d.mts.map +9 -1
- package/dist/components/fields/image/index.d.mts.map +9 -1
- package/dist/components/fields/index.d.mts.map +12 -1
- package/dist/components/fields/markdown/index.d.mts.map +9 -1
- package/dist/components/fields/number/index.d.mts.map +9 -1
- package/dist/components/fields/tag/index.d.mts.map +9 -1
- package/dist/components/fields/text/index.d.mts.map +9 -1
- package/dist/components/fields/types.d.mts.map +20 -1
- package/dist/components/fields/url/index.d.mts.map +10 -1
- package/dist/components/index.d.mts.map +24 -1
- package/dist/components/layout/header/index.d.mts.map +4 -1
- package/dist/components/layout/index.d.mts.map +8 -1
- package/dist/components/layout/sider/index.d.mts.map +4 -1
- package/dist/components/layout/sider/styles.d.mts.map +3 -1
- package/dist/components/layout/title/index.d.mts.map +4 -1
- package/dist/components/layout/types.d.mts.map +3 -1
- package/dist/components/pageHeader/index.d.cts.map +1 -1
- package/dist/components/pageHeader/index.d.mts.map +5 -1
- package/dist/components/pageHeader/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.mts.map +12 -1
- package/dist/components/pages/auth/components/index.d.mts.map +5 -1
- package/dist/components/pages/auth/components/login/index.d.mts.map +12 -1
- package/dist/components/pages/auth/components/register/index.d.mts.map +12 -1
- package/dist/components/pages/auth/components/styles.d.mts.map +7 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.mts.map +12 -1
- package/dist/components/pages/auth/index.d.mts.map +14 -1
- package/dist/components/pages/error/index.d.mts.map +10 -1
- package/dist/components/pages/index.d.mts.map +7 -1
- package/dist/components/pages/login/index.d.mts.map +15 -1
- package/dist/components/pages/login/styles.d.mts.map +6 -1
- package/dist/components/pages/ready/index.d.mts.map +9 -1
- package/dist/components/pages/welcome/index.d.mts.map +7 -1
- package/dist/components/table/components/filterDropdown/index.d.mts.map +16 -1
- package/dist/components/table/components/index.d.mts.map +3 -1
- package/dist/components/table/index.d.mts.map +2 -1
- package/dist/components/themedLayout/header/index.d.mts.map +7 -1
- package/dist/components/themedLayout/index.d.mts.map +7 -1
- package/dist/components/themedLayout/sider/index.d.mts.map +7 -1
- package/dist/components/themedLayout/sider/styles.d.mts.map +3 -1
- package/dist/components/themedLayout/title/index.d.mts.map +7 -1
- package/dist/components/themedLayout/types.d.mts.map +3 -1
- package/dist/components/themedLayoutV2/header/index.d.mts.map +4 -1
- package/dist/components/themedLayoutV2/index.d.mts.map +4 -1
- package/dist/components/themedLayoutV2/sider/index.d.cts.map +1 -1
- package/dist/components/themedLayoutV2/sider/index.d.mts.map +4 -1
- package/dist/components/themedLayoutV2/sider/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/sider/styles.d.mts.map +3 -1
- package/dist/components/themedLayoutV2/title/index.d.mts.map +4 -1
- package/dist/components/themedLayoutV2/types.d.mts.map +6 -1
- package/dist/components/undoableNotification/index.d.mts.map +10 -1
- package/dist/contexts/index.d.mts.map +2 -1
- package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.mts.map +7 -1
- package/dist/contexts/themedLayoutContext/index.d.mts.map +8 -1
- package/dist/definitions/filter-mappers/index.d.mts.map +29 -1
- package/dist/definitions/index.d.mts.map +5 -1
- package/dist/definitions/table/index.d.mts.map +13 -1
- package/dist/definitions/themes/index.d.mts.map +6 -1
- package/dist/definitions/upload/index.d.mts.map +4 -1
- package/dist/hooks/fields/index.d.mts.map +4 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.cts +1 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.cts.map +1 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.mts +1 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.mts.map +29 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts +1 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts.map +1 -1
- package/dist/hooks/fields/useRadioGroup/index.d.cts +1 -1
- package/dist/hooks/fields/useRadioGroup/index.d.cts.map +1 -1
- package/dist/hooks/fields/useRadioGroup/index.d.mts +1 -1
- package/dist/hooks/fields/useRadioGroup/index.d.mts.map +29 -1
- package/dist/hooks/fields/useRadioGroup/index.d.ts +1 -1
- package/dist/hooks/fields/useRadioGroup/index.d.ts.map +1 -1
- package/dist/hooks/fields/useSelect/index.d.mts.map +20 -1
- package/dist/hooks/form/index.d.mts.map +5 -1
- package/dist/hooks/form/useDrawerForm/index.d.mts.map +2 -1
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts +1 -2
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts.map +1 -1
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts +1 -2
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts.map +36 -1
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +1 -2
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -1
- package/dist/hooks/form/useForm.d.cts +4 -3
- package/dist/hooks/form/useForm.d.cts.map +1 -1
- package/dist/hooks/form/useForm.d.mts +4 -3
- package/dist/hooks/form/useForm.d.mts.map +41 -1
- package/dist/hooks/form/useForm.d.ts +4 -3
- package/dist/hooks/form/useForm.d.ts.map +1 -1
- package/dist/hooks/form/useModalForm/index.d.mts.map +2 -1
- package/dist/hooks/form/useModalForm/useModalForm.d.mts.map +42 -1
- package/dist/hooks/form/useStepsForm/index.d.mts.map +2 -1
- package/dist/hooks/form/useStepsForm/useStepsForm.d.mts.map +35 -1
- package/dist/hooks/import/index.d.mts.map +18 -1
- package/dist/hooks/index.d.mts.map +10 -1
- package/dist/hooks/list/index.d.mts.map +2 -1
- package/dist/hooks/list/useSimpleList/index.d.mts.map +2 -1
- package/dist/hooks/list/useSimpleList/useSimpleList.d.mts.map +24 -1
- package/dist/hooks/modal/index.d.mts.map +2 -1
- package/dist/hooks/modal/useModal/index.d.mts.map +18 -1
- package/dist/hooks/table/index.d.mts.map +3 -1
- package/dist/hooks/table/useEditableTable/index.d.mts.map +2 -1
- package/dist/hooks/table/useEditableTable/useEditableTable.d.mts.map +40 -1
- package/dist/hooks/table/useTable/index.d.mts.map +2 -1
- package/dist/hooks/table/useTable/paginationLink.d.mts.map +8 -1
- package/dist/hooks/table/useTable/useTable.d.mts.map +24 -1
- package/dist/hooks/useFileUploadState/index.d.mts.map +7 -1
- package/dist/hooks/useSiderVisible/index.d.mts.map +11 -1
- package/dist/hooks/useThemedLayoutContext/index.d.mts.map +4 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts.map +9 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/field.d.mts.map +4 -1
- package/dist/interfaces/index.d.mts.map +19 -1
- package/dist/interfaces/upload.d.mts.map +10 -1
- package/dist/providers/index.d.mts.map +2 -1
- package/dist/providers/notificationProvider/index.d.mts.map +8 -1
- package/package.json +5 -5
- package/src/components/autoSaveIndicator/index.tsx +7 -7
- package/src/components/layout/sider/index.tsx +2 -2
- package/src/components/pageHeader/index.tsx +12 -9
- package/src/components/themedLayout/sider/index.tsx +2 -2
- package/src/components/themedLayoutV2/sider/index.tsx +23 -19
- package/src/hooks/fields/useCheckboxGroup/index.ts +2 -0
- package/src/hooks/fields/useRadioGroup/index.ts +2 -0
- package/src/hooks/form/useDrawerForm/useDrawerForm.ts +1 -2
- package/src/hooks/form/useForm.ts +12 -3
@@ -1 +1,35 @@
|
|
1
|
-
{"
|
1
|
+
import { type UseStepsFormConfig } from "sunflower-antd";
|
2
|
+
import type { FormInstance, FormProps } from "antd";
|
3
|
+
import type { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
|
4
|
+
import { type UseFormProps, type UseFormReturnType } from "../useForm";
|
5
|
+
export type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
|
6
|
+
current: number;
|
7
|
+
gotoStep: (step: number) => Promise<TVariables> | true;
|
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<TResponse>;
|
20
|
+
};
|
21
|
+
export type UseStepsFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormFromSFReturnType<TResponse, TVariables>;
|
22
|
+
export type UseStepsFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & 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/api-reference/antd/hooks/form/useStepsForm} for more details.
|
27
|
+
*
|
28
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
29
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
30
|
+
* @typeParam TVariables - Values for params. default `{}`
|
31
|
+
*
|
32
|
+
*
|
33
|
+
*/
|
34
|
+
export declare const useStepsForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>(props?: UseStepsFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseStepsFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
35
|
+
//# sourceMappingURL=useStepsForm.d.ts.map
|
@@ -1 +1,18 @@
|
|
1
|
-
{
|
1
|
+
import { type ButtonProps, type UploadProps } from "antd";
|
2
|
+
import { type BaseRecord, type HttpError, type UseImportReturnType, type 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/api-reference/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-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
10
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/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
|
@@ -1 +1,10 @@
|
|
1
|
-
|
1
|
+
export * from "./form";
|
2
|
+
export * from "./table";
|
3
|
+
export * from "./fields";
|
4
|
+
export * from "./import";
|
5
|
+
export * from "./list";
|
6
|
+
export * from "./useFileUploadState";
|
7
|
+
export * from "./modal";
|
8
|
+
export * from "./useSiderVisible";
|
9
|
+
export * from "./useThemedLayoutContext";
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
export * from "./useSimpleList";
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,2 @@
|
|
1
|
-
{"
|
1
|
+
export { useSimpleList } from "./useSimpleList";
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,24 @@
|
|
1
|
-
{
|
1
|
+
import { type ListProps, type FormProps } from "antd";
|
2
|
+
import { type BaseRecord, type CrudFilters, type HttpError, type useTableProps as useTablePropsCore, type useTableReturnType } from "@refinedev/core";
|
3
|
+
export type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
|
4
|
+
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
|
+
};
|
6
|
+
export type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = 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/api-reference/antd/hooks/list/useSimpleList} for more details.
|
16
|
+
*
|
17
|
+
* @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
18
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
|
19
|
+
* @typeParam TSearchVariables - Antd form values
|
20
|
+
* @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
export declare const useSimpleList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ 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<TQueryFnData, TError, TSearchVariables, TData>) => useSimpleListReturnType<TData, TSearchVariables>;
|
24
|
+
//# sourceMappingURL=useSimpleList.d.ts.map
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
export * from "./useModal";
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,18 @@
|
|
1
|
-
{"
|
1
|
+
import type { ModalProps } from "antd";
|
2
|
+
import { type useModalReturnType as useCoreModelReturnType } from "@refinedev/core";
|
3
|
+
export type useModalReturnType = {
|
4
|
+
modalProps: ModalProps;
|
5
|
+
} & Omit<useCoreModelReturnType, "visible">;
|
6
|
+
export 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/api-reference/antd/hooks/ui/useModal} for more details.
|
16
|
+
*/
|
17
|
+
export declare const useModal: ({ modalProps, }?: useModalProps) => useModalReturnType;
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,2 @@
|
|
1
|
-
{"
|
1
|
+
export { useEditableTable } from "./useEditableTable";
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,40 @@
|
|
1
|
-
{
|
1
|
+
import type { BaseKey, BaseRecord, HttpError, UseFormProps } from "@refinedev/core";
|
2
|
+
import type { ButtonProps } from "antd";
|
3
|
+
import type { useTableProps, useTableReturnType } from "../useTable";
|
4
|
+
import { type UseFormReturnType } from "../../form/useForm";
|
5
|
+
export type useEditableTableReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = useTableReturnType<TData, TError, TSearchVariables> & UseFormReturnType<TQueryFnData, 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
|
+
type useEditableTableProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableProps<TQueryFnData, TError, TSearchVariables, TData>, "successNotification" | "errorNotification"> & UseFormProps<TQueryFnData, TError, TVariables> & {
|
18
|
+
/**
|
19
|
+
* When true, row will be closed after successful submit.
|
20
|
+
*/
|
21
|
+
autoSubmitClose?: boolean;
|
22
|
+
};
|
23
|
+
/**
|
24
|
+
* `useEditeableTable` allows you to implement edit feature on the table with ease,
|
25
|
+
* on top of all the features that {@link https://refine.dev/docs/api-reference/core/hooks/useTable/ `useTable`} provides.
|
26
|
+
* `useEditableTable` return properties that can be used on Ant Design's {@link https://ant.design/components/table/ `<Table>`}
|
27
|
+
* and {@link https://ant.design/components/form/ `<Form>`} components.
|
28
|
+
*
|
29
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/table/useTable/} for more details.
|
30
|
+
*
|
31
|
+
* @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
32
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
|
33
|
+
* @typeParam TVariables - Values for params
|
34
|
+
* @typeParam TSearchVariables - Values for search params
|
35
|
+
* @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
|
36
|
+
*
|
37
|
+
*/
|
38
|
+
export declare const useEditableTable: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ autoSubmitClose, ...props }?: useEditableTableProps<TQueryFnData, TError, TVariables, TSearchVariables, TData>) => useEditableTableReturnType<TQueryFnData, TError, TVariables, TSearchVariables, TData>;
|
39
|
+
export {};
|
40
|
+
//# sourceMappingURL=useEditableTable.d.ts.map
|
@@ -1 +1,2 @@
|
|
1
|
-
{
|
1
|
+
export { useTable, useTableProps, useTableReturnType } from "./useTable";
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,8 @@
|
|
1
|
-
{"
|
1
|
+
import React, { type ReactNode } from "react";
|
2
|
+
interface PaginationLinkProps {
|
3
|
+
to: string;
|
4
|
+
element: ReactNode;
|
5
|
+
}
|
6
|
+
export declare const PaginationLink: ({ to, element }: PaginationLinkProps) => React.JSX.Element;
|
7
|
+
export {};
|
8
|
+
//# sourceMappingURL=paginationLink.d.ts.map
|
@@ -1 +1,24 @@
|
|
1
|
-
{
|
1
|
+
import { type FormProps, type TableProps } from "antd";
|
2
|
+
import { type BaseRecord, type CrudFilters, type HttpError, type useTableProps as useTablePropsCore, type useTableReturnType as useTableCoreReturnType } from "@refinedev/core";
|
3
|
+
export type useTableProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
|
4
|
+
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
|
+
};
|
6
|
+
export 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-reference/antd/hooks/table/useTable/} for more details.
|
16
|
+
*
|
17
|
+
* @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
18
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
|
19
|
+
* @typeParam TSearchVariables - Values for search params
|
20
|
+
* @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
export declare const useTable: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ 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<TQueryFnData, TError, TSearchVariables, TData>) => useTableReturnType<TData, TError, TSearchVariables>;
|
24
|
+
//# sourceMappingURL=useTable.d.ts.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{"
|
1
|
+
import type { UploadChangeParam } from "antd/lib/upload";
|
2
|
+
export type UseFileUploadStateType = () => {
|
3
|
+
isLoading: boolean;
|
4
|
+
onChange: (info: UploadChangeParam) => void;
|
5
|
+
};
|
6
|
+
export declare const useFileUploadState: UseFileUploadStateType;
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,11 @@
|
|
1
|
-
{
|
1
|
+
export type UseSiderVisibleType = {
|
2
|
+
siderVisible: boolean;
|
3
|
+
drawerSiderVisible: boolean;
|
4
|
+
setSiderVisible: (visible: boolean) => void;
|
5
|
+
setDrawerSiderVisible: (visible: boolean) => void;
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* @deprecated Please use `useThemedLayoutContext` instead.
|
9
|
+
*/
|
10
|
+
export declare const useSiderVisible: () => UseSiderVisibleType;
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1,4 @@
|
|
1
|
-
{"
|
1
|
+
import type { IThemedLayoutContext } from "@contexts/themedLayoutContext/IThemedLayoutContext";
|
2
|
+
export type UseThemedLayoutContextType = IThemedLayoutContext;
|
3
|
+
export declare const useThemedLayoutContext: () => UseThemedLayoutContextType;
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|