@refinedev/antd 5.37.5 → 6.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/README.md +109 -17
- package/coverage/clover.xml +2005 -0
- package/coverage/coverage-final.json +1 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +1331 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/components/breadcrumb/index.html +116 -0
- package/coverage/lcov-report/src/components/breadcrumb/index.tsx.html +325 -0
- package/coverage/lcov-report/src/components/buttons/clone/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/clone/index.tsx.html +397 -0
- package/coverage/lcov-report/src/components/buttons/create/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/create/index.tsx.html +397 -0
- package/coverage/lcov-report/src/components/buttons/delete/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/delete/index.tsx.html +463 -0
- package/coverage/lcov-report/src/components/buttons/edit/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/edit/index.tsx.html +400 -0
- package/coverage/lcov-report/src/components/buttons/export/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/export/index.tsx.html +181 -0
- package/coverage/lcov-report/src/components/buttons/import/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/import/index.tsx.html +193 -0
- package/coverage/lcov-report/src/components/buttons/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/index.ts.html +118 -0
- package/coverage/lcov-report/src/components/buttons/list/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/list/index.tsx.html +451 -0
- package/coverage/lcov-report/src/components/buttons/refresh/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/refresh/index.tsx.html +268 -0
- package/coverage/lcov-report/src/components/buttons/save/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/save/index.tsx.html +181 -0
- package/coverage/lcov-report/src/components/buttons/show/index.html +116 -0
- package/coverage/lcov-report/src/components/buttons/show/index.tsx.html +397 -0
- package/coverage/lcov-report/src/components/crud/create/index.html +116 -0
- package/coverage/lcov-report/src/components/crud/create/index.tsx.html +514 -0
- package/coverage/lcov-report/src/components/crud/edit/index.html +116 -0
- package/coverage/lcov-report/src/components/crud/edit/index.tsx.html +766 -0
- package/coverage/lcov-report/src/components/crud/index.html +116 -0
- package/coverage/lcov-report/src/components/crud/index.ts.html +103 -0
- package/coverage/lcov-report/src/components/crud/list/index.html +116 -0
- package/coverage/lcov-report/src/components/crud/list/index.tsx.html +424 -0
- package/coverage/lcov-report/src/components/crud/show/index.html +116 -0
- package/coverage/lcov-report/src/components/crud/show/index.tsx.html +724 -0
- package/coverage/lcov-report/src/components/fields/boolean/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/boolean/index.tsx.html +163 -0
- package/coverage/lcov-report/src/components/fields/date/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/date/index.tsx.html +184 -0
- package/coverage/lcov-report/src/components/fields/email/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/email/index.tsx.html +145 -0
- package/coverage/lcov-report/src/components/fields/file/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/file/index.tsx.html +148 -0
- package/coverage/lcov-report/src/components/fields/image/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/image/index.tsx.html +136 -0
- package/coverage/lcov-report/src/components/fields/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/index.ts.html +118 -0
- package/coverage/lcov-report/src/components/fields/markdown/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/markdown/index.tsx.html +133 -0
- package/coverage/lcov-report/src/components/fields/number/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/number/index.tsx.html +193 -0
- package/coverage/lcov-report/src/components/fields/tag/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/tag/index.tsx.html +124 -0
- package/coverage/lcov-report/src/components/fields/text/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/text/index.tsx.html +130 -0
- package/coverage/lcov-report/src/components/fields/url/index.html +116 -0
- package/coverage/lcov-report/src/components/fields/url/index.tsx.html +157 -0
- package/coverage/lcov-report/src/components/index.html +116 -0
- package/coverage/lcov-report/src/components/index.ts.html +163 -0
- package/coverage/lcov-report/src/components/layout/header/index.html +116 -0
- package/coverage/lcov-report/src/components/layout/header/index.tsx.html +190 -0
- package/coverage/lcov-report/src/components/layout/index.html +116 -0
- package/coverage/lcov-report/src/components/layout/index.tsx.html +220 -0
- package/coverage/lcov-report/src/components/layout/sider/index.html +131 -0
- package/coverage/lcov-report/src/components/layout/sider/index.tsx.html +928 -0
- package/coverage/lcov-report/src/components/layout/sider/styles.ts.html +112 -0
- package/coverage/lcov-report/src/components/layout/title/index.html +116 -0
- package/coverage/lcov-report/src/components/layout/title/index.tsx.html +229 -0
- package/coverage/lcov-report/src/components/pageHeader/index.html +116 -0
- package/coverage/lcov-report/src/components/pageHeader/index.tsx.html +241 -0
- package/coverage/lcov-report/src/components/pages/auth/components/forgotPassword/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/auth/components/forgotPassword/index.tsx.html +727 -0
- package/coverage/lcov-report/src/components/pages/auth/components/index.html +131 -0
- package/coverage/lcov-report/src/components/pages/auth/components/index.tsx.html +97 -0
- package/coverage/lcov-report/src/components/pages/auth/components/login/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/auth/components/login/index.tsx.html +958 -0
- package/coverage/lcov-report/src/components/pages/auth/components/register/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/auth/components/register/index.tsx.html +874 -0
- package/coverage/lcov-report/src/components/pages/auth/components/styles.ts.html +175 -0
- package/coverage/lcov-report/src/components/pages/auth/components/updatePassword/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/auth/components/updatePassword/index.tsx.html +694 -0
- package/coverage/lcov-report/src/components/pages/auth/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/auth/index.tsx.html +208 -0
- package/coverage/lcov-report/src/components/pages/error/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/error/index.tsx.html +316 -0
- package/coverage/lcov-report/src/components/pages/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/index.tsx.html +103 -0
- package/coverage/lcov-report/src/components/pages/login/index.html +131 -0
- package/coverage/lcov-report/src/components/pages/login/index.tsx.html +601 -0
- package/coverage/lcov-report/src/components/pages/login/styles.ts.html +160 -0
- package/coverage/lcov-report/src/components/pages/ready/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/ready/index.tsx.html +373 -0
- package/coverage/lcov-report/src/components/pages/welcome/index.html +116 -0
- package/coverage/lcov-report/src/components/pages/welcome/index.tsx.html +115 -0
- package/coverage/lcov-report/src/components/table/components/filterDropdown/index.html +116 -0
- package/coverage/lcov-report/src/components/table/components/filterDropdown/index.tsx.html +421 -0
- package/coverage/lcov-report/src/components/table/components/index.html +116 -0
- package/coverage/lcov-report/src/components/table/components/index.ts.html +88 -0
- package/coverage/lcov-report/src/components/table/index.html +116 -0
- package/coverage/lcov-report/src/components/table/index.ts.html +88 -0
- package/coverage/lcov-report/src/components/themedLayout/header/index.html +116 -0
- package/coverage/lcov-report/src/components/themedLayout/header/index.tsx.html +226 -0
- package/coverage/lcov-report/src/components/themedLayout/index.html +116 -0
- package/coverage/lcov-report/src/components/themedLayout/index.tsx.html +217 -0
- package/coverage/lcov-report/src/components/themedLayout/sider/index.html +131 -0
- package/coverage/lcov-report/src/components/themedLayout/sider/index.tsx.html +1045 -0
- package/coverage/lcov-report/src/components/themedLayout/sider/styles.ts.html +112 -0
- package/coverage/lcov-report/src/components/themedLayout/title/index.html +116 -0
- package/coverage/lcov-report/src/components/themedLayout/title/index.tsx.html +349 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/header/index.html +116 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/header/index.tsx.html +256 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/index.html +116 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/index.tsx.html +226 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/sider/index.html +131 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/sider/index.tsx.html +1132 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/sider/styles.ts.html +112 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/title/index.html +116 -0
- package/coverage/lcov-report/src/components/themedLayoutV2/title/index.tsx.html +340 -0
- package/coverage/lcov-report/src/components/undoableNotification/index.html +116 -0
- package/coverage/lcov-report/src/components/undoableNotification/index.tsx.html +223 -0
- package/coverage/lcov-report/src/contexts/index.html +116 -0
- package/coverage/lcov-report/src/contexts/index.ts.html +97 -0
- package/coverage/lcov-report/src/contexts/themedLayoutContext/index.html +116 -0
- package/coverage/lcov-report/src/contexts/themedLayoutContext/index.tsx.html +178 -0
- package/coverage/lcov-report/src/definitions/table/index.html +116 -0
- package/coverage/lcov-report/src/definitions/table/index.ts.html +424 -0
- package/coverage/lcov-report/src/definitions/upload/index.html +116 -0
- package/coverage/lcov-report/src/definitions/upload/index.ts.html +172 -0
- package/coverage/lcov-report/src/hooks/fields/index.html +116 -0
- package/coverage/lcov-report/src/hooks/fields/index.ts.html +94 -0
- package/coverage/lcov-report/src/hooks/fields/useCheckboxGroup/index.html +116 -0
- package/coverage/lcov-report/src/hooks/fields/useCheckboxGroup/index.ts.html +361 -0
- package/coverage/lcov-report/src/hooks/fields/useRadioGroup/index.html +116 -0
- package/coverage/lcov-report/src/hooks/fields/useRadioGroup/index.ts.html +361 -0
- package/coverage/lcov-report/src/hooks/fields/useSelect/index.html +116 -0
- package/coverage/lcov-report/src/hooks/fields/useSelect/index.ts.html +238 -0
- package/coverage/lcov-report/src/hooks/form/index.html +131 -0
- package/coverage/lcov-report/src/hooks/form/index.ts.html +136 -0
- package/coverage/lcov-report/src/hooks/form/useDrawerForm/index.html +131 -0
- package/coverage/lcov-report/src/hooks/form/useDrawerForm/index.ts.html +103 -0
- package/coverage/lcov-report/src/hooks/form/useDrawerForm/useDrawerForm.ts.html +964 -0
- package/coverage/lcov-report/src/hooks/form/useForm.ts.html +718 -0
- package/coverage/lcov-report/src/hooks/form/useModalForm/index.html +131 -0
- package/coverage/lcov-report/src/hooks/form/useModalForm/index.ts.html +100 -0
- package/coverage/lcov-report/src/hooks/form/useModalForm/useModalForm.ts.html +1090 -0
- package/coverage/lcov-report/src/hooks/form/useStepsForm/index.html +131 -0
- package/coverage/lcov-report/src/hooks/form/useStepsForm/index.ts.html +100 -0
- package/coverage/lcov-report/src/hooks/form/useStepsForm/useStepsForm.ts.html +517 -0
- package/coverage/lcov-report/src/hooks/import/index.html +116 -0
- package/coverage/lcov-report/src/hooks/import/index.tsx.html +487 -0
- package/coverage/lcov-report/src/hooks/index.html +116 -0
- package/coverage/lcov-report/src/hooks/index.ts.html +109 -0
- package/coverage/lcov-report/src/hooks/list/index.html +116 -0
- package/coverage/lcov-report/src/hooks/list/index.ts.html +88 -0
- package/coverage/lcov-report/src/hooks/list/useSimpleList/index.html +131 -0
- package/coverage/lcov-report/src/hooks/list/useSimpleList/index.ts.html +88 -0
- package/coverage/lcov-report/src/hooks/list/useSimpleList/useSimpleList.ts.html +775 -0
- package/coverage/lcov-report/src/hooks/modal/index.html +116 -0
- package/coverage/lcov-report/src/hooks/modal/index.ts.html +88 -0
- package/coverage/lcov-report/src/hooks/modal/useModal/index.html +116 -0
- package/coverage/lcov-report/src/hooks/modal/useModal/index.tsx.html +214 -0
- package/coverage/lcov-report/src/hooks/table/index.html +116 -0
- package/coverage/lcov-report/src/hooks/table/index.ts.html +91 -0
- package/coverage/lcov-report/src/hooks/table/useEditableTable/index.html +131 -0
- package/coverage/lcov-report/src/hooks/table/useEditableTable/index.ts.html +88 -0
- package/coverage/lcov-report/src/hooks/table/useEditableTable/useEditableTable.ts.html +466 -0
- package/coverage/lcov-report/src/hooks/table/useTable/index.html +146 -0
- package/coverage/lcov-report/src/hooks/table/useTable/index.ts.html +88 -0
- package/coverage/lcov-report/src/hooks/table/useTable/paginationLink.tsx.html +166 -0
- package/coverage/lcov-report/src/hooks/table/useTable/useTable.ts.html +889 -0
- package/coverage/lcov-report/src/hooks/useFileUploadState/index.html +116 -0
- package/coverage/lcov-report/src/hooks/useFileUploadState/index.ts.html +187 -0
- package/coverage/lcov-report/src/hooks/useSiderVisible/index.html +116 -0
- package/coverage/lcov-report/src/hooks/useSiderVisible/index.ts.html +151 -0
- package/coverage/lcov-report/src/providers/notificationProvider/index.html +116 -0
- package/coverage/lcov-report/src/providers/notificationProvider/index.tsx.html +208 -0
- package/coverage/lcov.info +5292 -0
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/breadcrumb/index.d.ts.map +1 -1
- package/dist/components/buttons/types.d.ts +10 -10
- package/dist/components/buttons/types.d.ts.map +1 -1
- package/dist/components/crud/types.d.ts +4 -4
- package/dist/components/crud/types.d.ts.map +1 -1
- package/dist/components/fields/types.d.ts +10 -10
- package/dist/components/fields/types.d.ts.map +1 -1
- package/dist/components/pageHeader/index.d.ts +1 -1
- package/dist/components/pageHeader/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts +1 -1
- package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts +1 -1
- package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts +1 -1
- package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts +1 -1
- package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
- package/dist/components/pages/auth/index.d.ts +1 -1
- package/dist/components/pages/auth/index.d.ts.map +1 -1
- package/dist/components/table/components/filterDropdown/index.d.ts +2 -2
- package/dist/components/table/components/filterDropdown/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/types.d.ts +1 -1
- package/dist/components/themedLayoutV2/types.d.ts.map +1 -1
- package/dist/components/undoableNotification/index.d.ts +1 -1
- package/dist/components/undoableNotification/index.d.ts.map +1 -1
- package/dist/definitions/table/index.d.ts +6 -3
- package/dist/definitions/table/index.d.ts.map +1 -1
- package/dist/definitions/themes/index.d.ts +2 -2
- package/dist/definitions/themes/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts +2 -2
- package/dist/hooks/fields/useCheckboxGroup/index.d.ts.map +1 -1
- package/dist/hooks/fields/useRadioGroup/index.d.ts +2 -2
- package/dist/hooks/fields/useRadioGroup/index.d.ts.map +1 -1
- package/dist/hooks/fields/useSelect/index.d.ts +1 -1
- package/dist/hooks/fields/useSelect/index.d.ts.map +1 -1
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +2 -2
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -1
- package/dist/hooks/form/useForm.d.ts +2 -2
- package/dist/hooks/form/useForm.d.ts.map +1 -1
- package/dist/hooks/form/useModalForm/useModalForm.d.ts +4 -4
- package/dist/hooks/form/useModalForm/useModalForm.d.ts.map +1 -1
- package/dist/hooks/form/useStepsForm/useStepsForm.d.ts +3 -3
- package/dist/hooks/form/useStepsForm/useStepsForm.d.ts.map +1 -1
- package/dist/hooks/import/index.d.ts.map +1 -1
- package/dist/hooks/list/useSimpleList/useSimpleList.d.ts +3 -3
- package/dist/hooks/list/useSimpleList/useSimpleList.d.ts.map +1 -1
- package/dist/hooks/modal/useModal/index.d.ts +2 -2
- package/dist/hooks/modal/useModal/index.d.ts.map +1 -1
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts +2 -2
- package/dist/hooks/table/useEditableTable/useEditableTable.d.ts.map +1 -1
- package/dist/hooks/table/useTable/paginationLink.d.ts +2 -2
- package/dist/hooks/table/useTable/paginationLink.d.ts.map +1 -1
- package/dist/hooks/table/useTable/useTable.d.ts +2 -2
- package/dist/hooks/table/useTable/useTable.d.ts.map +1 -1
- package/dist/hooks/useFileUploadState/index.d.ts +1 -1
- package/dist/hooks/useFileUploadState/index.d.ts.map +1 -1
- package/dist/hooks/useSiderVisible/index.d.ts +1 -1
- package/dist/hooks/useSiderVisible/index.d.ts.map +1 -1
- package/dist/hooks/useThemedLayoutContext/index.d.ts +1 -1
- package/dist/hooks/useThemedLayoutContext/index.d.ts.map +1 -1
- package/dist/iife/index.js +8 -8
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/field.d.ts +1 -1
- package/dist/interfaces/field.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +3 -3
- package/dist/interfaces/index.d.ts.map +1 -1
- package/package.json +5 -7
- package/src/components/table/components/filterDropdown/index.tsx +2 -2
- package/src/definitions/table/index.ts +15 -3
- package/src/hooks/table/useTable/useTable.ts +3 -7
- package/tsconfig.json +5 -1
@@ -2,13 +2,13 @@
|
|
2
2
|
import { QueryObserverResult } from "@tanstack/react-query";
|
3
3
|
import type { Checkbox } from "antd";
|
4
4
|
import { BaseRecord, GetListResponse, HttpError, UseSelectProps, BaseKey, BaseOption } from "@refinedev/core";
|
5
|
-
export
|
5
|
+
export type UseCheckboxGroupReturnType<TData extends BaseRecord = BaseRecord, TOption extends BaseOption = BaseOption> = {
|
6
6
|
checkboxGroupProps: Omit<React.ComponentProps<typeof Checkbox.Group>, "options"> & {
|
7
7
|
options: TOption[];
|
8
8
|
};
|
9
9
|
queryResult: QueryObserverResult<GetListResponse<TData>>;
|
10
10
|
};
|
11
|
-
|
11
|
+
type UseCheckboxGroupProps<TQueryFnData, TError, TData> = Omit<UseSelectProps<TQueryFnData, TError, TData>, "defaultValue"> & {
|
12
12
|
/**
|
13
13
|
* Sets the default value
|
14
14
|
*/
|
@@ -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;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EACL,UAAU,EACV,eAAe,EACf,SAAS,EACT,cAAc,EAEd,OAAO,EAEP,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,
|
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;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EACL,UAAU,EACV,eAAe,EACf,SAAS,EACT,cAAc,EAEd,OAAO,EAEP,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,0BAA0B,CACpC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,OAAO,SAAS,UAAU,GAAG,UAAU,IACrC;IACF,kBAAkB,EAAE,IAAI,CACtB,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,EAC3C,SAAS,CACV,GAAG;QACF,OAAO,EAAE,OAAO,EAAE,CAAC;KACpB,CAAC;IACF,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,KAAK,qBAAqB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,IAAI,CAC5D,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAC3C,cAAc,CACf,GAAG;IACF;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,EAAE,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;GASG;AAEH,eAAO,MAAM,gBAAgB,kWAsB1B,sBACD,YAAY,EACZ,MAAM,EACN,KAAK,CACN,KAAG,2BAA2B,KAAK,EAAE,OAAO,CA+B5C,CAAC"}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
import { QueryObserverResult } from "@tanstack/react-query";
|
3
3
|
import type { Radio } from "antd";
|
4
4
|
import { BaseKey, BaseOption, BaseRecord, GetListResponse, HttpError, UseSelectProps } from "@refinedev/core";
|
5
|
-
export
|
5
|
+
export type UseRadioGroupReturnType<TData extends BaseRecord = BaseRecord, TOption extends BaseOption = BaseOption> = {
|
6
6
|
radioGroupProps: Omit<React.ComponentProps<typeof Radio.Group>, "options"> & {
|
7
7
|
options: TOption[];
|
8
8
|
};
|
9
9
|
queryResult: QueryObserverResult<GetListResponse<TData>>;
|
10
10
|
};
|
11
|
-
|
11
|
+
type UseRadioGroupProps<TQueryFnData, TError, TData> = Omit<UseSelectProps<TQueryFnData, TError, TData>, "defaultValue"> & {
|
12
12
|
/**
|
13
13
|
* Sets the default value
|
14
14
|
*/
|
@@ -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;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EACL,OAAO,EACP,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EAGT,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,
|
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;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EACL,OAAO,EACP,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EAGT,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,uBAAuB,CACjC,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,OAAO,SAAS,UAAU,GAAG,UAAU,IACrC;IACF,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG;QAC3E,OAAO,EAAE,OAAO,EAAE,CAAC;KACpB,CAAC;IACF,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,KAAK,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,IAAI,CACzD,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAC3C,cAAc,CACf,GAAG;IACF;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AAEH,eAAO,MAAM,aAAa,kWAsBvB,mBAAmB,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,KAAG,wBACnD,KAAK,EACL,OAAO,CAiCR,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SelectProps } from "antd/lib/select";
|
2
2
|
import { QueryObserverResult } from "@tanstack/react-query";
|
3
3
|
import { BaseRecord, GetManyResponse, GetListResponse, HttpError, UseSelectProps, BaseOption } from "@refinedev/core";
|
4
|
-
export
|
4
|
+
export type UseSelectReturnType<TData extends BaseRecord = BaseRecord, TOption extends BaseOption = BaseOption> = {
|
5
5
|
selectProps: SelectProps<TOption>;
|
6
6
|
queryResult: QueryObserverResult<GetListResponse<TData>>;
|
7
7
|
defaultValueQueryResult: QueryObserverResult<GetManyResponse<TData>>;
|
@@ -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,EAEL,UAAU,EACV,eAAe,EACf,eAAe,EACf,SAAS,EACT,cAAc,EACd,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,
|
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,EAEL,UAAU,EACV,eAAe,EACf,eAAe,EACf,SAAS,EACT,cAAc,EACd,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,OAAO,SAAS,UAAU,GAAG,UAAU,IACrC;IACF,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAClC,WAAW,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,uBAAuB,EAAE,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;CACtE,CAAC;AAEF;;;;;;;;;GASG;AAEH,eAAO,MAAM,SAAS,gLAMb,eAAe,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,KACjD,oBAAoB,KAAK,EAAE,OAAO,CAepC,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
|
9
|
+
export type UseDrawerFormProps<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> & UseDrawerFormConfig & LiveModeProps & FormWithSyncWithLocationParams & {
|
10
10
|
defaultVisible?: boolean;
|
11
11
|
autoSubmitClose?: boolean;
|
12
12
|
autoResetForm?: boolean;
|
13
13
|
};
|
14
|
-
export
|
14
|
+
export type UseDrawerFormReturnType<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> & {
|
15
15
|
formProps: FormProps<TVariables> & {
|
16
16
|
form: FormInstance<TVariables>;
|
17
17
|
};
|
@@ -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,EAGL,YAAY,IAAI,gBAAgB,EAChC,SAAS,EACT,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,OAAO,EAMR,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;IACxD,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC9C;AAED,
|
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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AAM,IACvC,iBAAiB,CACnB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GAAG;IACF,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG;QACjC,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;KAChC,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;CACtB,CAAC;AAEF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,wUAevB,mBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KAAG,wBACF,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAyMf,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FormInstance, FormProps, ButtonProps } from "antd";
|
2
2
|
import { AutoSaveProps } from "@refinedev/core";
|
3
3
|
import { HttpError, BaseRecord, UseFormReturnType as UseFormReturnTypeCore, UseFormProps as UseFormPropsCore, CreateResponse, UpdateResponse } from "@refinedev/core";
|
4
|
-
export
|
4
|
+
export type UseFormProps<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> & {
|
5
5
|
submitOnEnter?: boolean;
|
6
6
|
/**
|
7
7
|
* Shows notification when unsaved changes exist
|
@@ -14,7 +14,7 @@ export declare type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, T
|
|
14
14
|
*/
|
15
15
|
disableServerSideValidation?: boolean;
|
16
16
|
} & AutoSaveProps<TVariables>;
|
17
|
-
export
|
17
|
+
export type UseFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnTypeCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
|
18
18
|
form: FormInstance<TVariables>;
|
19
19
|
formProps: FormProps<TVariables>;
|
20
20
|
saveButtonProps: ButtonProps & {
|
@@ -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,WAAW,EAAE,MAAM,MAAM,CAAC;AAElE,OAAO,EACL,aAAa,EAGd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,SAAS,EACT,UAAU,EAEV,iBAAiB,IAAI,qBAAqB,EAE1C,YAAY,IAAI,gBAAgB,EAChC,cAAc,EACd,cAAc,EAIf,MAAM,iBAAiB,CAAC;AAEzB,
|
1
|
+
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../src/hooks/form/useForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAQ,WAAW,EAAE,MAAM,MAAM,CAAC;AAElE,OAAO,EACL,aAAa,EAGd,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,SAAS,EACT,UAAU,EAEV,iBAAiB,IAAI,qBAAqB,EAE1C,YAAY,IAAI,gBAAgB,EAChC,cAAc,EACd,cAAc,EAIf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,YAAY,CACtB,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,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
1
1
|
import { FormInstance, FormProps, ModalProps } from "antd";
|
2
2
|
import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord, LiveModeProps, BaseKey, FormWithSyncWithLocationParams } from "@refinedev/core";
|
3
3
|
import { UseFormProps, UseFormReturnType } from "../useForm";
|
4
|
-
export
|
4
|
+
export type useModalFormFromSFReturnType<TResponse, TVariables> = {
|
5
5
|
open: boolean;
|
6
6
|
form: FormInstance<TVariables>;
|
7
7
|
show: (id?: BaseKey) => void;
|
@@ -17,11 +17,11 @@ export declare type useModalFormFromSFReturnType<TResponse, TVariables> = {
|
|
17
17
|
/** @deprecated Please use `open` instead. */
|
18
18
|
visible: boolean;
|
19
19
|
};
|
20
|
-
|
20
|
+
type useModalFormConfig = {
|
21
21
|
action: "show" | "edit" | "create" | "clone";
|
22
22
|
};
|
23
|
-
export
|
24
|
-
export
|
23
|
+
export type UseModalFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = Omit<UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>, "saveButtonProps" | "deleteButtonProps"> & useModalFormFromSFReturnType<TResponse, TVariables>;
|
24
|
+
export type UseModalFormProps<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> & useModalFormConfig & LiveModeProps & FormWithSyncWithLocationParams & {
|
25
25
|
defaultVisible?: boolean;
|
26
26
|
autoSubmitClose?: boolean;
|
27
27
|
autoResetForm?: boolean;
|
@@ -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;AAE3D,OAAO,EAGL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACV,aAAa,EACb,OAAO,EAGP,8BAA8B,EAI/B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,
|
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;AAE3D,OAAO,EAGL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACV,aAAa,EACb,OAAO,EAGP,8BAA8B,EAI/B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,MAAM,MAAM,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAChE,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,SAAS,CAAC,CAAC;IACpD,6CAA6C;IAC7C,OAAO,EAA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,CACf,KAAG,uBACF,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAmOf,CAAC"}
|
@@ -2,7 +2,7 @@ import { UseStepsFormConfig } from "sunflower-antd";
|
|
2
2
|
import { FormInstance, FormProps } from "antd";
|
3
3
|
import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
|
4
4
|
import { UseFormProps, UseFormReturnType } from "../useForm";
|
5
|
-
export
|
5
|
+
export type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
|
6
6
|
current: number;
|
7
7
|
gotoStep: (step: number) => Promise<TVariables> | true;
|
8
8
|
stepsProps: {
|
@@ -18,8 +18,8 @@ export declare type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
|
|
18
18
|
form: FormInstance<TVariables>;
|
19
19
|
submit: (values?: TVariables) => Promise<TResponse>;
|
20
20
|
};
|
21
|
-
export
|
22
|
-
export
|
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
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
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useStepsForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/useStepsForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,
|
1
|
+
{"version":3,"file":"useStepsForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/useStepsForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,MAAM,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IACvD,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;KACzC,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,SAAS,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAChC,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,UAAU,GAAG,KAAK,EACpC,cAAc,SAAS,SAAS,GAAG,MAAM,IACvC,iBAAiB,CACnB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACC,4BAA4B,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAEtD,MAAM,MAAM,iBAAiB,CAC3B,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,UAAU,GAAG,KAAK,EACpC,cAAc,SAAS,SAAS,GAAG,MAAM,IACvC,gBAAgB,CAClB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACC,YAAY,CACV,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACD,kBAAkB,CAAC;AAErB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,0OAQhB,kBACL,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KACA,uBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAsCf,CAAC"}
|
@@ -1 +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,EAGL,UAAU,EACV,SAAS,EAET,mBAAmB,EACnB,aAAa,EAEd,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;
|
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,EAGL,UAAU,EACV,SAAS,EAET,mBAAmB,EACnB,aAAa,EAEd,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,+QAgBnB,cAAc,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,KAAQ,KAChD,oBAAoB,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,EAC9C,cAAc,GAAG,YAAY,CAC9B,GAAG;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;CAsF1B,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
|
3
|
+
export type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
|
4
4
|
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
5
|
};
|
6
|
-
export
|
6
|
+
export 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>;
|
@@ -20,5 +20,5 @@ export declare type useSimpleListReturnType<TQueryFnData extends BaseRecord = Ba
|
|
20
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
21
|
*
|
22
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
|
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
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,EACL,UAAU,EACV,WAAW,EACX,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AAKzB,
|
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,EACL,UAAU,EACV,WAAW,EACX,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IAC1E,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;IAC/C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3E,CAAC;AAEJ,MAAM,MAAM,uBAAuB,CACjC,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACrC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,GAAG;IACxD,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,WAAW,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IACpD,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,aAAa,+hBA6BvB,mBACD,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,KAAK,CACN,KAAQ,wBAAwB,KAAK,EAAE,gBAAgB,CAmJvD,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { ModalProps } from "antd";
|
2
2
|
import { useModalReturnType as useCoreModelReturnType } from "@refinedev/core";
|
3
|
-
export
|
3
|
+
export type useModalReturnType = {
|
4
4
|
modalProps: ModalProps;
|
5
5
|
} & Omit<useCoreModelReturnType, "visible">;
|
6
|
-
export
|
6
|
+
export type useModalProps = {
|
7
7
|
/**
|
8
8
|
* Default props for Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
|
9
9
|
*/
|
@@ -1 +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,EAEL,kBAAkB,IAAI,sBAAsB,EAC7C,MAAM,iBAAiB,CAAC;AAEzB,
|
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,EAEL,kBAAkB,IAAI,sBAAsB,EAC7C,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,UAAU,CAAC;CACxB,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qBAElB,aAAa,KAAQ,kBAkBvB,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
|
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
6
|
saveButtonProps: ButtonProps & {
|
7
7
|
onClick: () => void;
|
8
8
|
};
|
@@ -14,7 +14,7 @@ export declare type useEditableTableReturnType<TQueryFnData extends BaseRecord =
|
|
14
14
|
};
|
15
15
|
isEditing: (id: BaseKey) => boolean;
|
16
16
|
};
|
17
|
-
|
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
18
|
/**
|
19
19
|
* When true, row will be closed after successful submit.
|
20
20
|
*/
|
@@ -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,
|
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,MAAM,MAAM,0BAA0B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AAK,CA+CN,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ReactNode } from "react";
|
1
|
+
import React, { ReactNode } from "react";
|
2
2
|
interface PaginationLinkProps {
|
3
3
|
to: string;
|
4
4
|
element: ReactNode;
|
5
5
|
}
|
6
|
-
export declare const PaginationLink: ({ to, element }: PaginationLinkProps) => JSX.Element;
|
6
|
+
export declare const PaginationLink: ({ to, element }: PaginationLinkProps) => React.JSX.Element;
|
7
7
|
export {};
|
8
8
|
//# sourceMappingURL=paginationLink.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paginationLink.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/paginationLink.tsx"],"names":[],"mappings":"AACA,
|
1
|
+
{"version":3,"file":"paginationLink.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/paginationLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,oBAAqB,mBAAmB,sBAkBlE,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { FormProps, TableProps } from "antd";
|
2
2
|
import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType as useTableCoreReturnType } from "@refinedev/core";
|
3
|
-
export
|
3
|
+
export type useTableProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
|
4
4
|
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
5
|
};
|
6
|
-
export
|
6
|
+
export type useTableReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown> = useTableCoreReturnType<TData, TError> & {
|
7
7
|
searchFormProps: FormProps<TSearchVariables>;
|
8
8
|
tableProps: TableProps<TData>;
|
9
9
|
};
|
@@ -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;
|
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;AAGhF,OAAO,EAEL,UAAU,EACV,WAAW,EACX,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,IAAI,sBAAsB,EAE7C,MAAM,iBAAiB,CAAC;AASzB,MAAM,MAAM,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IACrE,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;IAC/C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3E,CAAC;AAEJ,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,gBAAgB,GAAG,OAAO,IACxB,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAC1C,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC7C,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,QAAQ,+hBA6BlB,cACD,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,KAAK,CACN,KAAQ,mBAAmB,KAAK,EAAE,MAAM,EAAE,gBAAgB,CA+K1D,CAAC"}
|
@@ -1 +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,
|
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,MAAM,MAAM,sBAAsB,GAAG,MAAM;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSiderVisible/index.ts"],"names":[],"mappings":"AAIA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSiderVisible/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,qBAAqB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,mBAclC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { IThemedLayoutContext } from "@contexts/themedLayoutContext/IThemedLayoutContext";
|
2
|
-
export
|
2
|
+
export type UseThemedLayoutContextType = IThemedLayoutContext;
|
3
3
|
export declare const useThemedLayoutContext: () => UseThemedLayoutContextType;
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedLayoutContext/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE1F,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedLayoutContext/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE1F,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC;AAE9D,eAAO,MAAM,sBAAsB,QAAO,0BAczC,CAAC"}
|