@refinedev/antd 5.5.2 → 5.7.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/components/index.d.ts +5 -0
  3. package/dist/components/index.d.ts.map +1 -1
  4. package/dist/components/themedLayout/header/index.d.ts +3 -0
  5. package/dist/components/themedLayout/header/index.d.ts.map +1 -1
  6. package/dist/components/themedLayout/index.d.ts +3 -0
  7. package/dist/components/themedLayout/index.d.ts.map +1 -1
  8. package/dist/components/themedLayout/sider/index.d.ts +3 -0
  9. package/dist/components/themedLayout/sider/index.d.ts.map +1 -1
  10. package/dist/components/themedLayout/title/index.d.ts +3 -0
  11. package/dist/components/themedLayout/title/index.d.ts.map +1 -1
  12. package/dist/components/themedLayoutV2/header/index.d.ts +4 -0
  13. package/dist/components/themedLayoutV2/header/index.d.ts.map +1 -0
  14. package/dist/components/themedLayoutV2/index.d.ts +4 -0
  15. package/dist/components/themedLayoutV2/index.d.ts.map +1 -0
  16. package/dist/components/themedLayoutV2/sider/index.d.ts +4 -0
  17. package/dist/components/themedLayoutV2/sider/index.d.ts.map +1 -0
  18. package/dist/components/themedLayoutV2/sider/styles.d.ts +3 -0
  19. package/dist/components/themedLayoutV2/sider/styles.d.ts.map +1 -0
  20. package/dist/components/themedLayoutV2/title/index.d.ts +4 -0
  21. package/dist/components/themedLayoutV2/title/index.d.ts.map +1 -0
  22. package/dist/components/themedLayoutV2/types.d.ts +3 -0
  23. package/dist/components/themedLayoutV2/types.d.ts.map +1 -0
  24. package/dist/contexts/index.d.ts +2 -0
  25. package/dist/contexts/index.d.ts.map +1 -0
  26. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.ts +7 -0
  27. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.ts.map +1 -0
  28. package/dist/contexts/themedLayoutContext/index.d.ts +7 -0
  29. package/dist/contexts/themedLayoutContext/index.d.ts.map +1 -0
  30. package/dist/esm/index.js +1 -1
  31. package/dist/esm/index.js.map +1 -1
  32. package/dist/hooks/fields/useCheckboxGroup/index.d.ts +11 -9
  33. package/dist/hooks/fields/useCheckboxGroup/index.d.ts.map +1 -1
  34. package/dist/hooks/fields/useRadioGroup/index.d.ts +11 -9
  35. package/dist/hooks/fields/useRadioGroup/index.d.ts.map +1 -1
  36. package/dist/hooks/fields/useSelect/index.d.ts +5 -3
  37. package/dist/hooks/fields/useSelect/index.d.ts.map +1 -1
  38. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +3 -3
  39. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -1
  40. package/dist/hooks/form/useForm.d.ts +3 -3
  41. package/dist/hooks/form/useForm.d.ts.map +1 -1
  42. package/dist/hooks/form/useModalForm/useModalForm.d.ts +3 -3
  43. package/dist/hooks/form/useModalForm/useModalForm.d.ts.map +1 -1
  44. package/dist/hooks/form/useStepsForm/useStepsForm.d.ts +3 -3
  45. package/dist/hooks/form/useStepsForm/useStepsForm.d.ts.map +1 -1
  46. package/dist/hooks/index.d.ts +1 -0
  47. package/dist/hooks/index.d.ts.map +1 -1
  48. package/dist/hooks/list/useSimpleList/useSimpleList.d.ts +6 -5
  49. package/dist/hooks/list/useSimpleList/useSimpleList.d.ts.map +1 -1
  50. package/dist/hooks/table/useEditableTable/useEditableTable.d.ts +12 -5
  51. package/dist/hooks/table/useEditableTable/useEditableTable.d.ts.map +1 -1
  52. package/dist/hooks/table/useTable/useTable.d.ts +9 -3
  53. package/dist/hooks/table/useTable/useTable.d.ts.map +1 -1
  54. package/dist/hooks/useSiderVisible/index.d.ts +4 -0
  55. package/dist/hooks/useSiderVisible/index.d.ts.map +1 -0
  56. package/dist/iife/index.js +12 -6
  57. package/dist/iife/index.js.map +1 -1
  58. package/dist/index.d.ts +1 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/index.js.map +1 -1
  62. package/package.json +4 -4
  63. package/refine.config.js +122 -1
  64. package/src/components/index.ts +6 -0
  65. package/src/components/themedLayout/header/index.tsx +3 -0
  66. package/src/components/themedLayout/index.tsx +3 -0
  67. package/src/components/themedLayout/sider/index.tsx +3 -0
  68. package/src/components/themedLayout/title/index.tsx +3 -0
  69. package/src/components/themedLayoutV2/header/index.tsx +44 -0
  70. package/src/components/themedLayoutV2/index.tsx +44 -0
  71. package/src/components/themedLayoutV2/sider/index.tsx +324 -0
  72. package/src/components/themedLayoutV2/sider/styles.ts +9 -0
  73. package/src/components/themedLayoutV2/title/index.tsx +85 -0
  74. package/src/components/themedLayoutV2/types.ts +13 -0
  75. package/src/contexts/index.ts +4 -0
  76. package/src/contexts/themedLayoutContext/IThemedLayoutContext.ts +6 -0
  77. package/src/contexts/themedLayoutContext/index.tsx +28 -0
  78. package/src/hooks/fields/useCheckboxGroup/index.ts +20 -13
  79. package/src/hooks/fields/useRadioGroup/index.ts +20 -13
  80. package/src/hooks/fields/useSelect/index.ts +8 -4
  81. package/src/hooks/form/useDrawerForm/useDrawerForm.ts +11 -7
  82. package/src/hooks/form/useForm.ts +15 -6
  83. package/src/hooks/form/useModalForm/useModalForm.ts +13 -9
  84. package/src/hooks/form/useStepsForm/useStepsForm.ts +13 -8
  85. package/src/hooks/index.ts +1 -0
  86. package/src/hooks/list/useSimpleList/useSimpleList.ts +12 -8
  87. package/src/hooks/table/useEditableTable/useEditableTable.ts +30 -13
  88. package/src/hooks/table/useTable/useTable.ts +21 -14
  89. package/src/hooks/useSiderVisible/index.ts +22 -0
  90. package/src/index.tsx +1 -0
@@ -5,20 +5,22 @@ export declare type UseCheckboxGroupReturnType<TData extends BaseRecord = BaseRe
5
5
  checkboxGroupProps: CheckboxGroupProps;
6
6
  queryResult: QueryObserverResult<GetListResponse<TData>>;
7
7
  };
8
+ declare type UseCheckboxGroupProps<TQueryFnData, TError, TData> = Omit<UseSelectProps<TQueryFnData, TError, TData>, "defaultValue"> & {
9
+ /**
10
+ * Sets the default value
11
+ */
12
+ defaultValue?: BaseKey[];
13
+ };
8
14
  /**
9
15
  * `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
16
  *
11
- * @see {@link https://refine.dev/docs/ui-framewors/antd/hooks/field/useCheckboxGroup} for more details.
17
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/field/useCheckboxGroup/} for more details
12
18
  *
13
- * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
19
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
20
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
21
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
14
22
  *
15
23
  */
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>;
24
+ export declare const useCheckboxGroup: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource, sort, sorters, filters, optionLabel, optionValue, queryOptions, fetchSize, pagination, liveMode, defaultValue, onLiveEvent, liveParams, meta, metaData, dataProviderName, }: UseCheckboxGroupProps<TQueryFnData, TError, TData>) => UseCheckboxGroupReturnType<TData>;
23
25
  export {};
24
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,aAAK,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,IAAI,CAC1D,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAC3C,cAAc,CACjB,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC;CAC5B,CAAC;AAEF;;;;;;;;;GASG;AAEH,eAAO,MAAM,gBAAgB,iZAmD5B,CAAC"}
@@ -5,20 +5,22 @@ export declare type UseRadioGroupReturnType<TData extends BaseRecord = BaseRecor
5
5
  radioGroupProps: RadioGroupProps;
6
6
  queryResult: QueryObserverResult<GetListResponse<TData>>;
7
7
  };
8
+ declare type UseRadioGroupProps<TQueryFnData, TError, TData> = Omit<UseSelectProps<TQueryFnData, TError, TData>, "defaultValue"> & {
9
+ /**
10
+ * Sets the default value
11
+ */
12
+ defaultValue?: BaseKey;
13
+ };
8
14
  /**
9
15
  * `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
16
  *
11
- * @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/field/useRadioGroup} for more details.
17
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/field/useRadioGroup/} for more details.
12
18
  *
13
- * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/core/interfaceReferences#baserecord `BaseRecord`}
19
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
20
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
21
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
14
22
  *
15
23
  */
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>;
24
+ export declare const useRadioGroup: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>({ resource, sort, sorters, filters, optionLabel, optionValue, queryOptions, fetchSize, pagination, liveMode, defaultValue, onLiveEvent, liveParams, meta, metaData, dataProviderName, }: UseRadioGroupProps<TQueryFnData, TError, TData>) => UseRadioGroupReturnType<TData>;
23
25
  export {};
24
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,aAAK,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,IAAI,CACvD,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAC3C,cAAc,CACjB,GAAG;IACA;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;GASG;AAEH,eAAO,MAAM,aAAa,2YAoDzB,CAAC"}
@@ -12,10 +12,12 @@ export declare type UseSelectReturnType<TData extends BaseRecord = BaseRecord> =
12
12
  /**
13
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
14
  *
15
- * @see {@link https://refine.dev/docs/api-references/hooks/field/useSelect} for more details.
15
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/field/useSelect/} for more details.
16
16
  *
17
- * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-references/interfaceReferences#baserecord `BaseRecord`}
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 TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
18
20
  *
19
21
  */
20
- export declare const useSelect: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError>(props: UseSelectProps<TData, TError>) => UseSelectReturnType<TData>;
22
+ export declare const useSelect: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TData extends BaseRecord = TQueryFnData>(props: UseSelectProps<TQueryFnData, TError, TData>) => UseSelectReturnType<TData>;
21
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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;;;;;;;;;GASG;AAEH,eAAO,MAAM,SAAS,iNAqBrB,CAAC"}
@@ -6,12 +6,12 @@ import { DeleteButtonProps } from "../../../components";
6
6
  export interface UseDrawerFormConfig extends UseFormConfig {
7
7
  action: "show" | "edit" | "create" | "clone";
8
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 & {
9
+ export declare type UseDrawerFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = UseFormPropsCore<TData, TError, TVariables, TSelectData> & UseFormProps<TData, TError, TVariables, TSelectData> & UseDrawerFormConfig & LiveModeProps & FormWithSyncWithLocationParams & {
10
10
  defaultVisible?: boolean;
11
11
  autoSubmitClose?: boolean;
12
12
  autoResetForm?: boolean;
13
13
  };
14
- export declare type UseDrawerFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormReturnType<TData, TError, TVariables> & {
14
+ export declare type UseDrawerFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = UseFormReturnType<TData, TError, TVariables, TSelectData> & {
15
15
  formProps: FormProps<TVariables> & {
16
16
  form: FormInstance<TVariables>;
17
17
  };
@@ -33,5 +33,5 @@ export declare type UseDrawerFormReturnType<TData extends BaseRecord = BaseRecor
33
33
  *
34
34
  *
35
35
  */
36
- export declare const useDrawerForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ syncWithLocation, defaultVisible, autoSubmitClose, autoResetForm, ...rest }: UseDrawerFormProps<TData, TError, TVariables>) => UseDrawerFormReturnType<TData, TError, TVariables>;
36
+ export declare const useDrawerForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData>({ syncWithLocation, defaultVisible, autoSubmitClose, autoResetForm, ...rest }: UseDrawerFormProps<TData, TError, TVariables, TSelectData>) => UseDrawerFormReturnType<TData, TError, TVariables, TSelectData>;
37
37
  //# sourceMappingURL=useDrawerForm.d.ts.map
@@ -1 +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,EAGH,YAAY,IAAI,gBAAgB,EAChC,SAAS,EACT,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,OAAO,EAKV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACtD,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,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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,sVAoLzB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import { FormInstance, FormProps } from "antd";
2
2
  import { ButtonProps } from "antd";
3
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> & {
4
+ export declare type UseFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = UseFormPropsCore<TData, TError, TVariables, TSelectData> & {
5
5
  submitOnEnter?: boolean;
6
6
  /**
7
7
  * Shows notification when unsaved changes exist
8
8
  */
9
9
  warnWhenUnsavedChanges?: boolean;
10
10
  };
11
- export declare type UseFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormReturnTypeCore<TData, TError, TVariables> & {
11
+ export declare type UseFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = UseFormReturnTypeCore<TData, TError, TVariables, TSelectData> & {
12
12
  form: FormInstance<TVariables>;
13
13
  formProps: FormProps<TVariables>;
14
14
  saveButtonProps: ButtonProps & {
@@ -27,5 +27,5 @@ export declare type UseFormReturnType<TData extends BaseRecord = BaseRecord, TEr
27
27
  *
28
28
  *
29
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>;
30
+ export declare const useForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData>({ 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, TSelectData>) => UseFormReturnType<TData, TError, TVariables, TSelectData>;
31
31
  //# sourceMappingURL=useForm.d.ts.map
@@ -1 +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;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AAEF,oBAAY,iBAAiB,CACzB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,WAAW,SAAS,UAAU,GAAG,KAAK,IACtC,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,GAAG;IAChE,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,ioBAuHnB,CAAC"}
@@ -21,8 +21,8 @@ export declare type useModalFormFromSFReturnType<TData, TVariables> = {
21
21
  declare type useModalFormConfig = {
22
22
  action: "show" | "edit" | "create" | "clone";
23
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;
24
+ export declare type UseModalFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = Omit<UseFormReturnType<TData, TError, TVariables, TSelectData>, "saveButtonProps" | "deleteButtonProps"> & useModalFormFromSFReturnType<TSelectData, TVariables>;
25
+ export declare type UseModalFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = UseFormPropsCore<TData, TError, TVariables, TSelectData> & UseFormProps<TData, TError, TVariables, TSelectData> & UseModalFormConfigSF & useModalFormConfig & LiveModeProps & FormWithSyncWithLocationParams;
26
26
  /**
27
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
28
  *
@@ -34,6 +34,6 @@ export declare type UseModalFormProps<TData extends BaseRecord = BaseRecord, TEr
34
34
  *
35
35
  *
36
36
  */
37
- export declare const useModalForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ syncWithLocation, ...rest }: UseModalFormProps<TData, TError, TVariables>) => UseModalFormReturnType<TData, TError, TVariables>;
37
+ export declare const useModalForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData>({ syncWithLocation, ...rest }: UseModalFormProps<TData, TError, TVariables, TSelectData>) => UseModalFormReturnType<TData, TError, TVariables, TSelectData>;
38
38
  export {};
39
39
  //# sourceMappingURL=useModalForm.d.ts.map
@@ -1 +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,EAGH,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;AAE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,CAAC;AAEF,oBAAY,sBAAsB,CAC9B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,WAAW,SAAS,UAAU,GAAG,KAAK,IACtC,IAAI,CACJ,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,EACzD,iBAAiB,GAAG,mBAAmB,CAC1C,GACG,4BAA4B,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAE1D,oBAAY,iBAAiB,CACzB,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,WAAW,SAAS,UAAU,GAAG,KAAK,IACtC,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,GACxD,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,GACpD,oBAAoB,GACpB,kBAAkB,GAClB,aAAa,GACb,8BAA8B,CAAC;AACnC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,oSAyLxB,CAAC"}
@@ -18,8 +18,8 @@ export declare type UseStepsFormFromSFReturnType<TData, TVariables> = {
18
18
  form: FormInstance<TVariables>;
19
19
  submit: (values?: TVariables) => Promise<TData>;
20
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;
21
+ export declare type UseStepsFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = UseFormReturnType<TData, TError, TVariables, TSelectData> & UseStepsFormFromSFReturnType<TSelectData, TVariables>;
22
+ export declare type UseStepsFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData> = UseFormPropsCore<TData, TError, TVariables, TSelectData> & UseFormProps<TData, TError, TVariables, TSelectData> & UseStepsFormConfig;
23
23
  /**
24
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
25
  *
@@ -31,5 +31,5 @@ export declare type UseStepsFormProps<TData extends BaseRecord = BaseRecord, TEr
31
31
  *
32
32
  *
33
33
  */
34
- export declare const useStepsForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>(props?: UseStepsFormProps<TData, TError, TVariables>) => UseStepsFormReturnType<TData, TError, TVariables>;
34
+ export declare const useStepsForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSelectData extends BaseRecord = TData>(props?: UseStepsFormProps<TData, TError, TVariables, TSelectData>) => UseStepsFormReturnType<TData, TError, TVariables, TSelectData>;
35
35
  //# sourceMappingURL=useStepsForm.d.ts.map
@@ -1 +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,I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K,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,GACxD,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,GACpD,kBAAkB,CAAC;AAEvB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,6QAoCxB,CAAC"}
@@ -5,4 +5,5 @@ export * from "./import";
5
5
  export * from "./list";
6
6
  export * from "./useFileUploadState";
7
7
  export * from "./modal";
8
+ export * from "./useSiderVisible";
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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;AACxB,cAAc,mBAAmB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { ListProps, FormProps } from "antd";
2
2
  import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType } from "@refinedev/core";
3
- export declare type useSimpleListProps<TData, TError, TSearchVariables> = useTablePropsCore<TData, TError> & {
3
+ export declare type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
4
4
  onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
5
5
  };
6
- export declare type useSimpleListReturnType<TData extends BaseRecord = BaseRecord, TSearchVariables = unknown> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
6
+ export declare type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
7
7
  listProps: ListProps<TData>;
8
8
  queryResult: useTableReturnType["tableQueryResult"];
9
9
  searchFormProps: FormProps<TSearchVariables>;
@@ -14,10 +14,11 @@ export declare type useSimpleListReturnType<TData extends BaseRecord = BaseRecor
14
14
  *
15
15
  * @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/list/useSimpleList} for more details.
16
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`}
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
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`
20
21
  *
21
22
  */
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
+ 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, TData>;
23
24
  //# sourceMappingURL=useSimpleList.d.ts.map
@@ -1 +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,SAAS,EAET,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,CAAC;AAEN,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"}
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,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,EAErB,MAAM,iBAAiB,CAAC;AAKzB,oBAAY,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IACxE,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;IAC7C,QAAQ,CAAC,EAAE,CACP,IAAI,EAAE,gBAAgB,KACrB,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3C,CAAC;AAEN,oBAAY,uBAAuB,CAC/B,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACvC,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;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,aAAa,4pBAuLzB,CAAC"}
@@ -2,7 +2,7 @@ import { BaseKey, BaseRecord, HttpError, UseFormProps } from "@refinedev/core";
2
2
  import { ButtonProps } from "antd";
3
3
  import { useTableProps, useTableReturnType } from "../useTable";
4
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> & {
5
+ export declare 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
6
  saveButtonProps: ButtonProps & {
7
7
  onClick: () => void;
8
8
  };
@@ -14,15 +14,22 @@ export declare type useEditableTableReturnType<TData extends BaseRecord = BaseRe
14
14
  };
15
15
  isEditing: (id: BaseKey) => boolean;
16
16
  };
17
- declare type useEditableTableProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown> = Omit<useTableProps<TData, TError, TSearchVariables>, "successNotification" | "errorNotification"> & UseFormProps<TData, TError, TVariables>;
17
+ declare 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
18
  /**
19
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.
20
+ * on top of all the features that {@link https://refine.dev/docs/api-reference/core/hooks/useTable/ `useTable`} provides.
21
21
  * `useEditableTable` return properties that can be used on Ant Design's {@link https://ant.design/components/table/ `<Table>`}
22
22
  * and {@link https://ant.design/components/form/ `<Form>`} components.
23
23
  *
24
- * @see {@link https://refine.dev/docs/ui-frameworks/antd/hooks/table/useEditableTable} for more details.
24
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/table/useTable/} for more details.
25
+ *
26
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
27
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
28
+ * @typeParam TVariables - Values for params
29
+ * @typeParam TSearchVariables - Values for search params
30
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
31
+ *
25
32
  */
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>;
33
+ export declare const useEditableTable: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>(props?: useEditableTableProps<TQueryFnData, TError, TVariables, TSearchVariables, TData>) => useEditableTableReturnType<TQueryFnData, TError, TVariables, TSearchVariables, TData>;
27
34
  export {};
28
35
  //# sourceMappingURL=useEditableTable.d.ts.map
@@ -1 +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,IAAI,CACJ,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAC9C,qBAAqB,GAAG,mBAAmB,CAC9C,GACG,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,mRAgD5B,CAAC"}
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,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACvC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,GACnD,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG;IAClD,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,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACvC,IAAI,CACJ,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAC5D,qBAAqB,GAAG,mBAAmB,CAC9C,GACG,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,+VAwD5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { FormProps, TableProps } from "antd";
2
2
  import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType as useTableCoreReturnType } from "@refinedev/core";
3
- export declare type useTableProps<TData, TError, TSearchVariables = unknown> = useTablePropsCore<TData, TError> & {
3
+ export declare type useTableProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
4
4
  onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
5
5
  };
6
6
  export declare type useTableReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown> = useTableCoreReturnType<TData, TError> & {
@@ -12,7 +12,13 @@ export declare type useTableReturnType<TData extends BaseRecord = BaseRecord, TE
12
12
  * Ant Design {@link https://ant.design/components/table/ `<Table>`} component.
13
13
  * All features such as sorting, filtering and pagination comes as out of box.
14
14
  *
15
- * @see {@link https://refine.dev/docs/api-references/hooks/table/useTable} for more details.
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
+ *
16
22
  */
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>;
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>;
18
24
  //# sourceMappingURL=useTable.d.ts.map
@@ -1 +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,SAAS,EAET,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,GAAG;IACnC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC7E,CAAC;AAEF,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"}
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,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,IAAI,sBAAsB,EAE/C,MAAM,iBAAiB,CAAC;AAQzB,oBAAY,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IACnE,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;IAC7C,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;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,QAAQ,mpBAsNpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IThemedLayoutContext } from "@contexts/themedLayoutContext/IThemedLayoutContext";
2
+ export declare type UseSiderVisibleType = IThemedLayoutContext;
3
+ export declare const useSiderVisible: () => UseSiderVisibleType;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSiderVisible/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE1F,oBAAY,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD,eAAO,MAAM,eAAe,QAAO,mBAclC,CAAC"}