@refinedev/antd 5.37.4 → 5.37.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1793 -1778
- package/README.md +109 -17
- package/dist/components/autoSaveIndicator/index.d.cts +4 -0
- package/dist/components/autoSaveIndicator/index.d.cts.map +1 -0
- package/dist/components/autoSaveIndicator/index.d.mts +4 -0
- package/dist/components/autoSaveIndicator/index.d.mts.map +1 -0
- package/dist/components/autoSaveIndicator/index.d.ts.map +1 -1
- package/dist/components/breadcrumb/index.d.cts +6 -0
- package/dist/components/breadcrumb/index.d.cts.map +1 -0
- package/dist/components/breadcrumb/index.d.mts +6 -0
- package/dist/components/breadcrumb/index.d.mts.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/breadcrumb/index.d.ts.map +1 -1
- package/dist/components/buttons/clone/index.d.cts +11 -0
- package/dist/components/buttons/clone/index.d.cts.map +1 -0
- package/dist/components/buttons/clone/index.d.mts +11 -0
- package/dist/components/buttons/clone/index.d.mts.map +1 -0
- package/dist/components/buttons/clone/index.d.ts +1 -1
- package/dist/components/buttons/clone/index.d.ts.map +1 -1
- package/dist/components/buttons/create/index.d.cts +11 -0
- package/dist/components/buttons/create/index.d.cts.map +1 -0
- package/dist/components/buttons/create/index.d.mts +11 -0
- package/dist/components/buttons/create/index.d.mts.map +1 -0
- package/dist/components/buttons/create/index.d.ts +1 -1
- package/dist/components/buttons/create/index.d.ts.map +1 -1
- package/dist/components/buttons/delete/index.d.cts +10 -0
- package/dist/components/buttons/delete/index.d.cts.map +1 -0
- package/dist/components/buttons/delete/index.d.mts +10 -0
- package/dist/components/buttons/delete/index.d.mts.map +1 -0
- package/dist/components/buttons/delete/index.d.ts +1 -1
- package/dist/components/buttons/delete/index.d.ts.map +1 -1
- package/dist/components/buttons/edit/index.d.cts +11 -0
- package/dist/components/buttons/edit/index.d.cts.map +1 -0
- package/dist/components/buttons/edit/index.d.mts +11 -0
- package/dist/components/buttons/edit/index.d.mts.map +1 -0
- package/dist/components/buttons/edit/index.d.ts.map +1 -1
- package/dist/components/buttons/export/index.d.cts +10 -0
- package/dist/components/buttons/export/index.d.cts.map +1 -0
- package/dist/components/buttons/export/index.d.mts +10 -0
- package/dist/components/buttons/export/index.d.mts.map +1 -0
- package/dist/components/buttons/import/index.d.cts +11 -0
- package/dist/components/buttons/import/index.d.cts.map +1 -0
- package/dist/components/buttons/import/index.d.mts +11 -0
- package/dist/components/buttons/import/index.d.mts.map +1 -0
- package/dist/components/buttons/import/index.d.ts.map +1 -1
- package/dist/components/buttons/index.d.cts +12 -0
- package/dist/components/buttons/index.d.cts.map +1 -0
- package/dist/components/buttons/index.d.mts +12 -0
- package/dist/components/buttons/index.d.mts.map +1 -0
- package/dist/components/buttons/list/index.d.cts +11 -0
- package/dist/components/buttons/list/index.d.cts.map +1 -0
- package/dist/components/buttons/list/index.d.mts +11 -0
- package/dist/components/buttons/list/index.d.mts.map +1 -0
- package/dist/components/buttons/list/index.d.ts.map +1 -1
- package/dist/components/buttons/refresh/index.d.cts +10 -0
- package/dist/components/buttons/refresh/index.d.cts.map +1 -0
- package/dist/components/buttons/refresh/index.d.mts +10 -0
- package/dist/components/buttons/refresh/index.d.mts.map +1 -0
- package/dist/components/buttons/refresh/index.d.ts.map +1 -1
- package/dist/components/buttons/save/index.d.cts +10 -0
- package/dist/components/buttons/save/index.d.cts.map +1 -0
- package/dist/components/buttons/save/index.d.mts +10 -0
- package/dist/components/buttons/save/index.d.mts.map +1 -0
- package/dist/components/buttons/show/index.d.cts +11 -0
- package/dist/components/buttons/show/index.d.cts.map +1 -0
- package/dist/components/buttons/show/index.d.mts +11 -0
- package/dist/components/buttons/show/index.d.mts.map +1 -0
- package/dist/components/buttons/show/index.d.ts.map +1 -1
- package/dist/components/buttons/types.d.cts +24 -0
- package/dist/components/buttons/types.d.cts.map +1 -0
- package/dist/components/buttons/types.d.mts +24 -0
- package/dist/components/buttons/types.d.mts.map +1 -0
- package/dist/components/buttons/types.d.ts +10 -10
- package/dist/components/buttons/types.d.ts.map +1 -1
- package/dist/components/crud/create/index.d.cts +10 -0
- package/dist/components/crud/create/index.d.cts.map +1 -0
- package/dist/components/crud/create/index.d.mts +10 -0
- package/dist/components/crud/create/index.d.mts.map +1 -0
- package/dist/components/crud/edit/index.d.cts +10 -0
- package/dist/components/crud/edit/index.d.cts.map +1 -0
- package/dist/components/crud/edit/index.d.mts +10 -0
- package/dist/components/crud/edit/index.d.mts.map +1 -0
- package/dist/components/crud/edit/index.d.ts.map +1 -1
- package/dist/components/crud/index.d.cts +6 -0
- package/dist/components/crud/index.d.cts.map +1 -0
- package/dist/components/crud/index.d.mts +6 -0
- package/dist/components/crud/index.d.mts.map +1 -0
- package/dist/components/crud/list/index.d.cts +10 -0
- package/dist/components/crud/list/index.d.cts.map +1 -0
- package/dist/components/crud/list/index.d.mts +10 -0
- package/dist/components/crud/list/index.d.mts.map +1 -0
- package/dist/components/crud/list/index.d.ts.map +1 -1
- package/dist/components/crud/show/index.d.cts +10 -0
- package/dist/components/crud/show/index.d.cts.map +1 -0
- package/dist/components/crud/show/index.d.mts +10 -0
- package/dist/components/crud/show/index.d.mts.map +1 -0
- package/dist/components/crud/show/index.d.ts.map +1 -1
- package/dist/components/crud/types.d.cts +10 -0
- package/dist/components/crud/types.d.cts.map +1 -0
- package/dist/components/crud/types.d.mts +10 -0
- package/dist/components/crud/types.d.mts.map +1 -0
- package/dist/components/crud/types.d.ts +4 -4
- package/dist/components/crud/types.d.ts.map +1 -1
- package/dist/components/fields/boolean/index.d.cts +9 -0
- package/dist/components/fields/boolean/index.d.cts.map +1 -0
- package/dist/components/fields/boolean/index.d.mts +9 -0
- package/dist/components/fields/boolean/index.d.mts.map +1 -0
- package/dist/components/fields/date/index.d.cts +9 -0
- package/dist/components/fields/date/index.d.cts.map +1 -0
- package/dist/components/fields/date/index.d.mts +9 -0
- package/dist/components/fields/date/index.d.mts.map +1 -0
- package/dist/components/fields/email/index.d.cts +10 -0
- package/dist/components/fields/email/index.d.cts.map +1 -0
- package/dist/components/fields/email/index.d.mts +10 -0
- package/dist/components/fields/email/index.d.mts.map +1 -0
- package/dist/components/fields/file/index.d.cts +9 -0
- package/dist/components/fields/file/index.d.cts.map +1 -0
- package/dist/components/fields/file/index.d.mts +9 -0
- package/dist/components/fields/file/index.d.mts.map +1 -0
- package/dist/components/fields/image/index.d.cts +9 -0
- package/dist/components/fields/image/index.d.cts.map +1 -0
- package/dist/components/fields/image/index.d.mts +9 -0
- package/dist/components/fields/image/index.d.mts.map +1 -0
- package/dist/components/fields/index.d.cts +12 -0
- package/dist/components/fields/index.d.cts.map +1 -0
- package/dist/components/fields/index.d.mts +12 -0
- package/dist/components/fields/index.d.mts.map +1 -0
- package/dist/components/fields/markdown/index.d.cts +9 -0
- package/dist/components/fields/markdown/index.d.cts.map +1 -0
- package/dist/components/fields/markdown/index.d.mts +9 -0
- package/dist/components/fields/markdown/index.d.mts.map +1 -0
- package/dist/components/fields/number/index.d.cts +9 -0
- package/dist/components/fields/number/index.d.cts.map +1 -0
- package/dist/components/fields/number/index.d.mts +9 -0
- package/dist/components/fields/number/index.d.mts.map +1 -0
- package/dist/components/fields/tag/index.d.cts +9 -0
- package/dist/components/fields/tag/index.d.cts.map +1 -0
- package/dist/components/fields/tag/index.d.mts +9 -0
- package/dist/components/fields/tag/index.d.mts.map +1 -0
- package/dist/components/fields/text/index.d.cts +9 -0
- package/dist/components/fields/text/index.d.cts.map +1 -0
- package/dist/components/fields/text/index.d.mts +9 -0
- package/dist/components/fields/text/index.d.mts.map +1 -0
- package/dist/components/fields/types.d.cts +20 -0
- package/dist/components/fields/types.d.cts.map +1 -0
- package/dist/components/fields/types.d.mts +20 -0
- package/dist/components/fields/types.d.mts.map +1 -0
- package/dist/components/fields/types.d.ts +10 -10
- package/dist/components/fields/types.d.ts.map +1 -1
- package/dist/components/fields/url/index.d.cts +10 -0
- package/dist/components/fields/url/index.d.cts.map +1 -0
- package/dist/components/fields/url/index.d.mts +10 -0
- package/dist/components/fields/url/index.d.mts.map +1 -0
- package/dist/components/index.d.cts +24 -0
- package/dist/components/index.d.cts.map +1 -0
- package/dist/components/index.d.mts +24 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/components/layout/header/index.d.cts +4 -0
- package/dist/components/layout/header/index.d.cts.map +1 -0
- package/dist/components/layout/header/index.d.mts +4 -0
- package/dist/components/layout/header/index.d.mts.map +1 -0
- package/dist/components/layout/index.d.cts +8 -0
- package/dist/components/layout/index.d.cts.map +1 -0
- package/dist/components/layout/index.d.mts +8 -0
- package/dist/components/layout/index.d.mts.map +1 -0
- package/dist/components/layout/sider/index.d.cts +4 -0
- package/dist/components/layout/sider/index.d.cts.map +1 -0
- package/dist/components/layout/sider/index.d.mts +4 -0
- package/dist/components/layout/sider/index.d.mts.map +1 -0
- package/dist/components/layout/sider/index.d.ts.map +1 -1
- package/dist/components/layout/sider/styles.d.cts +3 -0
- package/dist/components/layout/sider/styles.d.cts.map +1 -0
- package/dist/components/layout/sider/styles.d.mts +3 -0
- package/dist/components/layout/sider/styles.d.mts.map +1 -0
- package/dist/components/layout/title/index.d.cts +4 -0
- package/dist/components/layout/title/index.d.cts.map +1 -0
- package/dist/components/layout/title/index.d.mts +4 -0
- package/dist/components/layout/title/index.d.mts.map +1 -0
- package/dist/components/layout/title/index.d.ts.map +1 -1
- package/dist/components/layout/types.d.cts +3 -0
- package/dist/components/layout/types.d.cts.map +1 -0
- package/dist/components/layout/types.d.mts +3 -0
- package/dist/components/layout/types.d.mts.map +1 -0
- package/dist/components/layout/types.d.ts.map +1 -1
- package/dist/components/pageHeader/index.d.cts +5 -0
- package/dist/components/pageHeader/index.d.cts.map +1 -0
- package/dist/components/pageHeader/index.d.mts +5 -0
- package/dist/components/pageHeader/index.d.mts.map +1 -0
- 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.cts +12 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.mts +12 -0
- package/dist/components/pages/auth/components/forgotPassword/index.d.mts.map +1 -0
- 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/index.d.cts +5 -0
- package/dist/components/pages/auth/components/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/index.d.mts +5 -0
- package/dist/components/pages/auth/components/index.d.mts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.cts +12 -0
- package/dist/components/pages/auth/components/login/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/login/index.d.mts +12 -0
- package/dist/components/pages/auth/components/login/index.d.mts.map +1 -0
- 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.cts +12 -0
- package/dist/components/pages/auth/components/register/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/register/index.d.mts +12 -0
- package/dist/components/pages/auth/components/register/index.d.mts.map +1 -0
- 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/styles.d.cts +7 -0
- package/dist/components/pages/auth/components/styles.d.cts.map +1 -0
- package/dist/components/pages/auth/components/styles.d.mts +7 -0
- package/dist/components/pages/auth/components/styles.d.mts.map +1 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.cts +12 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.cts.map +1 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.mts +12 -0
- package/dist/components/pages/auth/components/updatePassword/index.d.mts.map +1 -0
- 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.cts +14 -0
- package/dist/components/pages/auth/index.d.cts.map +1 -0
- package/dist/components/pages/auth/index.d.mts +14 -0
- package/dist/components/pages/auth/index.d.mts.map +1 -0
- package/dist/components/pages/auth/index.d.ts +1 -1
- package/dist/components/pages/auth/index.d.ts.map +1 -1
- package/dist/components/pages/error/index.d.cts +10 -0
- package/dist/components/pages/error/index.d.cts.map +1 -0
- package/dist/components/pages/error/index.d.mts +10 -0
- package/dist/components/pages/error/index.d.mts.map +1 -0
- package/dist/components/pages/index.d.cts +7 -0
- package/dist/components/pages/index.d.cts.map +1 -0
- package/dist/components/pages/index.d.mts +7 -0
- package/dist/components/pages/index.d.mts.map +1 -0
- package/dist/components/pages/login/index.d.cts +15 -0
- package/dist/components/pages/login/index.d.cts.map +1 -0
- package/dist/components/pages/login/index.d.mts +15 -0
- package/dist/components/pages/login/index.d.mts.map +1 -0
- package/dist/components/pages/login/index.d.ts.map +1 -1
- package/dist/components/pages/login/styles.d.cts +6 -0
- package/dist/components/pages/login/styles.d.cts.map +1 -0
- package/dist/components/pages/login/styles.d.mts +6 -0
- package/dist/components/pages/login/styles.d.mts.map +1 -0
- package/dist/components/pages/ready/index.d.cts +9 -0
- package/dist/components/pages/ready/index.d.cts.map +1 -0
- package/dist/components/pages/ready/index.d.mts +9 -0
- package/dist/components/pages/ready/index.d.mts.map +1 -0
- package/dist/components/pages/ready/index.d.ts.map +1 -1
- package/dist/components/pages/welcome/index.d.cts +7 -0
- package/dist/components/pages/welcome/index.d.cts.map +1 -0
- package/dist/components/pages/welcome/index.d.mts +7 -0
- package/dist/components/pages/welcome/index.d.mts.map +1 -0
- package/dist/components/table/components/filterDropdown/index.d.cts +13 -0
- package/dist/components/table/components/filterDropdown/index.d.cts.map +1 -0
- package/dist/components/table/components/filterDropdown/index.d.mts +13 -0
- package/dist/components/table/components/filterDropdown/index.d.mts.map +1 -0
- 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/table/components/index.d.cts +2 -0
- package/dist/components/table/components/index.d.cts.map +1 -0
- package/dist/components/table/components/index.d.mts +2 -0
- package/dist/components/table/components/index.d.mts.map +1 -0
- package/dist/components/table/index.d.cts +2 -0
- package/dist/components/table/index.d.cts.map +1 -0
- package/dist/components/table/index.d.mts +2 -0
- package/dist/components/table/index.d.mts.map +1 -0
- package/dist/components/themedLayout/header/index.d.cts +7 -0
- package/dist/components/themedLayout/header/index.d.cts.map +1 -0
- package/dist/components/themedLayout/header/index.d.mts +7 -0
- package/dist/components/themedLayout/header/index.d.mts.map +1 -0
- package/dist/components/themedLayout/header/index.d.ts.map +1 -1
- package/dist/components/themedLayout/index.d.cts +7 -0
- package/dist/components/themedLayout/index.d.cts.map +1 -0
- package/dist/components/themedLayout/index.d.mts +7 -0
- package/dist/components/themedLayout/index.d.mts.map +1 -0
- package/dist/components/themedLayout/sider/index.d.cts +7 -0
- package/dist/components/themedLayout/sider/index.d.cts.map +1 -0
- package/dist/components/themedLayout/sider/index.d.mts +7 -0
- package/dist/components/themedLayout/sider/index.d.mts.map +1 -0
- package/dist/components/themedLayout/sider/styles.d.cts +3 -0
- package/dist/components/themedLayout/sider/styles.d.cts.map +1 -0
- package/dist/components/themedLayout/sider/styles.d.mts +3 -0
- package/dist/components/themedLayout/sider/styles.d.mts.map +1 -0
- package/dist/components/themedLayout/title/index.d.cts +7 -0
- package/dist/components/themedLayout/title/index.d.cts.map +1 -0
- package/dist/components/themedLayout/title/index.d.mts +7 -0
- package/dist/components/themedLayout/title/index.d.mts.map +1 -0
- package/dist/components/themedLayout/types.d.cts +3 -0
- package/dist/components/themedLayout/types.d.cts.map +1 -0
- package/dist/components/themedLayout/types.d.mts +3 -0
- package/dist/components/themedLayout/types.d.mts.map +1 -0
- package/dist/components/themedLayout/types.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/header/index.d.cts +4 -0
- package/dist/components/themedLayoutV2/header/index.d.cts.map +1 -0
- package/dist/components/themedLayoutV2/header/index.d.mts +4 -0
- package/dist/components/themedLayoutV2/header/index.d.mts.map +1 -0
- package/dist/components/themedLayoutV2/header/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/index.d.cts +4 -0
- package/dist/components/themedLayoutV2/index.d.cts.map +1 -0
- package/dist/components/themedLayoutV2/index.d.mts +4 -0
- package/dist/components/themedLayoutV2/index.d.mts.map +1 -0
- package/dist/components/themedLayoutV2/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/sider/index.d.cts +4 -0
- package/dist/components/themedLayoutV2/sider/index.d.cts.map +1 -0
- package/dist/components/themedLayoutV2/sider/index.d.mts +4 -0
- package/dist/components/themedLayoutV2/sider/index.d.mts.map +1 -0
- package/dist/components/themedLayoutV2/sider/index.d.ts.map +1 -1
- package/dist/components/themedLayoutV2/sider/styles.d.cts +3 -0
- package/dist/components/themedLayoutV2/sider/styles.d.cts.map +1 -0
- package/dist/components/themedLayoutV2/sider/styles.d.mts +3 -0
- package/dist/components/themedLayoutV2/sider/styles.d.mts.map +1 -0
- package/dist/components/themedLayoutV2/title/index.d.cts +4 -0
- package/dist/components/themedLayoutV2/title/index.d.cts.map +1 -0
- package/dist/components/themedLayoutV2/title/index.d.mts +4 -0
- package/dist/components/themedLayoutV2/title/index.d.mts.map +1 -0
- package/dist/components/themedLayoutV2/types.d.cts +6 -0
- package/dist/components/themedLayoutV2/types.d.cts.map +1 -0
- package/dist/components/themedLayoutV2/types.d.mts +6 -0
- package/dist/components/themedLayoutV2/types.d.mts.map +1 -0
- 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.cts +10 -0
- package/dist/components/undoableNotification/index.d.cts.map +1 -0
- package/dist/components/undoableNotification/index.d.mts +10 -0
- package/dist/components/undoableNotification/index.d.mts.map +1 -0
- package/dist/components/undoableNotification/index.d.ts +1 -1
- package/dist/components/undoableNotification/index.d.ts.map +1 -1
- package/dist/contexts/index.d.cts +2 -0
- package/dist/contexts/index.d.cts.map +1 -0
- package/dist/contexts/index.d.mts +2 -0
- package/dist/contexts/index.d.mts.map +1 -0
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.cts +7 -0
- package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.cts.map +1 -0
- package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.mts +7 -0
- package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.mts.map +1 -0
- package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.ts.map +1 -1
- package/dist/contexts/themedLayoutContext/index.d.cts +8 -0
- package/dist/contexts/themedLayoutContext/index.d.cts.map +1 -0
- package/dist/contexts/themedLayoutContext/index.d.mts +8 -0
- package/dist/contexts/themedLayoutContext/index.d.mts.map +1 -0
- package/dist/contexts/themedLayoutContext/index.d.ts.map +1 -1
- package/dist/definitions/index.d.cts +4 -0
- package/dist/definitions/index.d.cts.map +1 -0
- package/dist/definitions/index.d.mts +4 -0
- package/dist/definitions/index.d.mts.map +1 -0
- package/dist/definitions/table/index.d.cts +13 -0
- package/dist/definitions/table/index.d.cts.map +1 -0
- package/dist/definitions/table/index.d.mts +13 -0
- package/dist/definitions/table/index.d.mts.map +1 -0
- 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.cts +6 -0
- package/dist/definitions/themes/index.d.cts.map +1 -0
- package/dist/definitions/themes/index.d.mts +6 -0
- package/dist/definitions/themes/index.d.mts.map +1 -0
- package/dist/definitions/themes/index.d.ts +2 -2
- package/dist/definitions/themes/index.d.ts.map +1 -1
- package/dist/definitions/upload/index.d.cts +4 -0
- package/dist/definitions/upload/index.d.cts.map +1 -0
- package/dist/definitions/upload/index.d.mts +4 -0
- package/dist/definitions/upload/index.d.mts.map +1 -0
- package/dist/hooks/fields/index.d.cts +4 -0
- package/dist/hooks/fields/index.d.cts.map +1 -0
- package/dist/hooks/fields/index.d.mts +4 -0
- package/dist/hooks/fields/index.d.mts.map +1 -0
- package/dist/hooks/fields/useCheckboxGroup/index.d.cts +29 -0
- package/dist/hooks/fields/useCheckboxGroup/index.d.cts.map +1 -0
- package/dist/hooks/fields/useCheckboxGroup/index.d.mts +29 -0
- package/dist/hooks/fields/useCheckboxGroup/index.d.mts.map +1 -0
- 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.cts +29 -0
- package/dist/hooks/fields/useRadioGroup/index.d.cts.map +1 -0
- package/dist/hooks/fields/useRadioGroup/index.d.mts +29 -0
- package/dist/hooks/fields/useRadioGroup/index.d.mts.map +1 -0
- 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.cts +20 -0
- package/dist/hooks/fields/useSelect/index.d.cts.map +1 -0
- package/dist/hooks/fields/useSelect/index.d.mts +20 -0
- package/dist/hooks/fields/useSelect/index.d.mts.map +1 -0
- 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/index.d.cts +5 -0
- package/dist/hooks/form/index.d.cts.map +1 -0
- package/dist/hooks/form/index.d.mts +5 -0
- package/dist/hooks/form/index.d.mts.map +1 -0
- package/dist/hooks/form/index.d.ts.map +1 -1
- package/dist/hooks/form/useDrawerForm/index.d.cts +2 -0
- package/dist/hooks/form/useDrawerForm/index.d.cts.map +1 -0
- package/dist/hooks/form/useDrawerForm/index.d.mts +2 -0
- package/dist/hooks/form/useDrawerForm/index.d.mts.map +1 -0
- package/dist/hooks/form/useDrawerForm/index.d.ts.map +1 -1
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts +37 -0
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts.map +1 -0
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts +37 -0
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts.map +1 -0
- 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.cts +40 -0
- package/dist/hooks/form/useForm.d.cts.map +1 -0
- package/dist/hooks/form/useForm.d.mts +40 -0
- package/dist/hooks/form/useForm.d.mts.map +1 -0
- package/dist/hooks/form/useForm.d.ts +2 -2
- package/dist/hooks/form/useForm.d.ts.map +1 -1
- package/dist/hooks/form/useModalForm/index.d.cts +2 -0
- package/dist/hooks/form/useModalForm/index.d.cts.map +1 -0
- package/dist/hooks/form/useModalForm/index.d.mts +2 -0
- package/dist/hooks/form/useModalForm/index.d.mts.map +1 -0
- package/dist/hooks/form/useModalForm/index.d.ts.map +1 -1
- package/dist/hooks/form/useModalForm/useModalForm.d.cts +42 -0
- package/dist/hooks/form/useModalForm/useModalForm.d.cts.map +1 -0
- package/dist/hooks/form/useModalForm/useModalForm.d.mts +42 -0
- package/dist/hooks/form/useModalForm/useModalForm.d.mts.map +1 -0
- 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/index.d.cts +2 -0
- package/dist/hooks/form/useStepsForm/index.d.cts.map +1 -0
- package/dist/hooks/form/useStepsForm/index.d.mts +2 -0
- package/dist/hooks/form/useStepsForm/index.d.mts.map +1 -0
- package/dist/hooks/form/useStepsForm/index.d.ts.map +1 -1
- package/dist/hooks/form/useStepsForm/useStepsForm.d.cts +35 -0
- package/dist/hooks/form/useStepsForm/useStepsForm.d.cts.map +1 -0
- package/dist/hooks/form/useStepsForm/useStepsForm.d.mts +35 -0
- package/dist/hooks/form/useStepsForm/useStepsForm.d.mts.map +1 -0
- 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.cts +18 -0
- package/dist/hooks/import/index.d.cts.map +1 -0
- package/dist/hooks/import/index.d.mts +18 -0
- package/dist/hooks/import/index.d.mts.map +1 -0
- package/dist/hooks/import/index.d.ts.map +1 -1
- package/dist/hooks/index.d.cts +10 -0
- package/dist/hooks/index.d.cts.map +1 -0
- package/dist/hooks/index.d.mts +10 -0
- package/dist/hooks/index.d.mts.map +1 -0
- package/dist/hooks/list/index.d.cts +2 -0
- package/dist/hooks/list/index.d.cts.map +1 -0
- package/dist/hooks/list/index.d.mts +2 -0
- package/dist/hooks/list/index.d.mts.map +1 -0
- package/dist/hooks/list/useSimpleList/index.d.cts +2 -0
- package/dist/hooks/list/useSimpleList/index.d.cts.map +1 -0
- package/dist/hooks/list/useSimpleList/index.d.mts +2 -0
- package/dist/hooks/list/useSimpleList/index.d.mts.map +1 -0
- package/dist/hooks/list/useSimpleList/useSimpleList.d.cts +24 -0
- package/dist/hooks/list/useSimpleList/useSimpleList.d.cts.map +1 -0
- package/dist/hooks/list/useSimpleList/useSimpleList.d.mts +24 -0
- package/dist/hooks/list/useSimpleList/useSimpleList.d.mts.map +1 -0
- 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/index.d.cts +2 -0
- package/dist/hooks/modal/index.d.cts.map +1 -0
- package/dist/hooks/modal/index.d.mts +2 -0
- package/dist/hooks/modal/index.d.mts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.cts +18 -0
- package/dist/hooks/modal/useModal/index.d.cts.map +1 -0
- package/dist/hooks/modal/useModal/index.d.mts +18 -0
- package/dist/hooks/modal/useModal/index.d.mts.map +1 -0
- 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/index.d.cts +3 -0
- package/dist/hooks/table/index.d.cts.map +1 -0
- package/dist/hooks/table/index.d.mts +3 -0
- package/dist/hooks/table/index.d.mts.map +1 -0
- package/dist/hooks/table/useEditableTable/index.d.cts +2 -0
- package/dist/hooks/table/useEditableTable/index.d.cts.map +1 -0
- package/dist/hooks/table/useEditableTable/index.d.mts +2 -0
- package/dist/hooks/table/useEditableTable/index.d.mts.map +1 -0
- package/dist/hooks/table/useEditableTable/useEditableTable.d.cts +40 -0
- package/dist/hooks/table/useEditableTable/useEditableTable.d.cts.map +1 -0
- package/dist/hooks/table/useEditableTable/useEditableTable.d.mts +40 -0
- package/dist/hooks/table/useEditableTable/useEditableTable.d.mts.map +1 -0
- 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/index.d.cts +2 -0
- package/dist/hooks/table/useTable/index.d.cts.map +1 -0
- package/dist/hooks/table/useTable/index.d.mts +2 -0
- package/dist/hooks/table/useTable/index.d.mts.map +1 -0
- package/dist/hooks/table/useTable/paginationLink.d.cts +8 -0
- package/dist/hooks/table/useTable/paginationLink.d.cts.map +1 -0
- package/dist/hooks/table/useTable/paginationLink.d.mts +8 -0
- package/dist/hooks/table/useTable/paginationLink.d.mts.map +1 -0
- package/dist/hooks/table/useTable/paginationLink.d.ts.map +1 -1
- package/dist/hooks/table/useTable/useTable.d.cts +24 -0
- package/dist/hooks/table/useTable/useTable.d.cts.map +1 -0
- package/dist/hooks/table/useTable/useTable.d.mts +24 -0
- package/dist/hooks/table/useTable/useTable.d.mts.map +1 -0
- 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.cts +7 -0
- package/dist/hooks/useFileUploadState/index.d.cts.map +1 -0
- package/dist/hooks/useFileUploadState/index.d.mts +7 -0
- package/dist/hooks/useFileUploadState/index.d.mts.map +1 -0
- 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.cts +11 -0
- package/dist/hooks/useSiderVisible/index.d.cts.map +1 -0
- package/dist/hooks/useSiderVisible/index.d.mts +11 -0
- package/dist/hooks/useSiderVisible/index.d.mts.map +1 -0
- 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.cts +4 -0
- package/dist/hooks/useThemedLayoutContext/index.d.cts.map +1 -0
- package/dist/hooks/useThemedLayoutContext/index.d.mts +4 -0
- package/dist/hooks/useThemedLayoutContext/index.d.mts.map +1 -0
- package/dist/hooks/useThemedLayoutContext/index.d.ts +1 -1
- package/dist/hooks/useThemedLayoutContext/index.d.ts.map +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/field.d.cts +4 -0
- package/dist/interfaces/field.d.cts.map +1 -0
- package/dist/interfaces/field.d.mts +4 -0
- package/dist/interfaces/field.d.mts.map +1 -0
- package/dist/interfaces/field.d.ts +1 -1
- package/dist/interfaces/field.d.ts.map +1 -1
- package/dist/interfaces/index.d.cts +19 -0
- package/dist/interfaces/index.d.cts.map +1 -0
- package/dist/interfaces/index.d.mts +19 -0
- package/dist/interfaces/index.d.mts.map +1 -0
- package/dist/interfaces/index.d.ts +3 -3
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/upload.d.cts +10 -0
- package/dist/interfaces/upload.d.cts.map +1 -0
- package/dist/interfaces/upload.d.mts +10 -0
- package/dist/interfaces/upload.d.mts.map +1 -0
- package/dist/interfaces/upload.d.ts.map +1 -1
- package/dist/providers/index.d.cts +2 -0
- package/dist/providers/index.d.cts.map +1 -0
- package/dist/providers/index.d.mts +2 -0
- package/dist/providers/index.d.mts.map +1 -0
- package/dist/providers/notificationProvider/index.d.cts +8 -0
- package/dist/providers/notificationProvider/index.d.cts.map +1 -0
- package/dist/providers/notificationProvider/index.d.mts +8 -0
- package/dist/providers/notificationProvider/index.d.mts.map +1 -0
- package/package.json +54 -37
- package/refine.config.js +497 -524
- package/src/components/autoSaveIndicator/index.tsx +69 -69
- package/src/components/breadcrumb/index.tsx +63 -65
- package/src/components/buttons/clone/index.tsx +47 -98
- package/src/components/buttons/create/index.tsx +49 -99
- package/src/components/buttons/delete/index.tsx +70 -130
- package/src/components/buttons/edit/index.tsx +47 -99
- package/src/components/buttons/export/index.tsx +18 -18
- package/src/components/buttons/import/index.tsx +22 -21
- package/src/components/buttons/list/index.tsx +44 -116
- package/src/components/buttons/refresh/index.tsx +29 -59
- package/src/components/buttons/save/index.tsx +18 -18
- package/src/components/buttons/show/index.tsx +46 -97
- package/src/components/buttons/types.ts +20 -20
- package/src/components/crud/create/index.tsx +120 -120
- package/src/components/crud/edit/index.tsx +205 -207
- package/src/components/crud/list/index.tsx +88 -90
- package/src/components/crud/show/index.tsx +175 -185
- package/src/components/crud/types.ts +41 -56
- package/src/components/fields/boolean/index.tsx +11 -11
- package/src/components/fields/date/index.tsx +13 -13
- package/src/components/fields/email/index.tsx +5 -5
- package/src/components/fields/file/index.tsx +8 -8
- package/src/components/fields/image/index.tsx +4 -4
- package/src/components/fields/markdown/index.tsx +9 -9
- package/src/components/fields/number/index.tsx +17 -17
- package/src/components/fields/tag/index.tsx +1 -1
- package/src/components/fields/text/index.tsx +1 -1
- package/src/components/fields/types.ts +18 -18
- package/src/components/fields/url/index.tsx +8 -8
- package/src/components/layout/header/index.tsx +25 -25
- package/src/components/layout/index.tsx +30 -30
- package/src/components/layout/sider/index.tsx +238 -246
- package/src/components/layout/sider/styles.ts +5 -5
- package/src/components/layout/title/index.tsx +40 -40
- package/src/components/layout/types.ts +6 -6
- package/src/components/pageHeader/index.tsx +44 -44
- package/src/components/pages/auth/components/forgotPassword/index.tsx +177 -180
- package/src/components/pages/auth/components/login/index.tsx +258 -271
- package/src/components/pages/auth/components/register/index.tsx +247 -263
- package/src/components/pages/auth/components/styles.ts +16 -16
- package/src/components/pages/auth/components/updatePassword/index.tsx +160 -174
- package/src/components/pages/auth/index.tsx +23 -23
- package/src/components/pages/error/index.tsx +57 -57
- package/src/components/pages/login/index.tsx +120 -146
- package/src/components/pages/login/styles.ts +12 -12
- package/src/components/pages/ready/index.tsx +72 -80
- package/src/components/pages/welcome/index.tsx +1 -1
- package/src/components/table/components/filterDropdown/index.tsx +90 -93
- package/src/components/themedLayout/header/index.tsx +28 -32
- package/src/components/themedLayout/index.tsx +30 -30
- package/src/components/themedLayout/sider/index.tsx +279 -279
- package/src/components/themedLayout/sider/styles.ts +5 -5
- package/src/components/themedLayout/title/index.tsx +66 -66
- package/src/components/themedLayout/types.ts +8 -8
- package/src/components/themedLayoutV2/header/index.tsx +37 -41
- package/src/components/themedLayoutV2/index.tsx +34 -36
- package/src/components/themedLayoutV2/sider/index.tsx +309 -313
- package/src/components/themedLayoutV2/sider/styles.ts +5 -5
- package/src/components/themedLayoutV2/title/index.tsx +66 -66
- package/src/components/themedLayoutV2/types.ts +9 -9
- package/src/components/undoableNotification/index.tsx +31 -31
- package/src/contexts/index.ts +2 -2
- package/src/contexts/themedLayoutContext/IThemedLayoutContext.ts +4 -4
- package/src/contexts/themedLayoutContext/index.tsx +22 -22
- package/src/definitions/table/index.ts +94 -83
- package/src/definitions/themes/index.ts +35 -35
- package/src/definitions/upload/index.ts +17 -17
- package/src/hooks/fields/useCheckboxGroup/index.ts +64 -64
- package/src/hooks/fields/useRadioGroup/index.ts +60 -63
- package/src/hooks/fields/useSelect/index.ts +30 -30
- package/src/hooks/form/index.ts +10 -10
- package/src/hooks/form/useDrawerForm/index.ts +4 -4
- package/src/hooks/form/useDrawerForm/useDrawerForm.ts +257 -261
- package/src/hooks/form/useForm.ts +258 -259
- package/src/hooks/form/useModalForm/index.ts +3 -3
- package/src/hooks/form/useModalForm/useModalForm.ts +289 -295
- package/src/hooks/form/useStepsForm/index.ts +3 -3
- package/src/hooks/form/useStepsForm/useStepsForm.ts +96 -96
- package/src/hooks/import/index.tsx +104 -106
- package/src/hooks/list/useSimpleList/useSimpleList.ts +179 -185
- package/src/hooks/modal/useModal/index.tsx +24 -24
- package/src/hooks/table/useEditableTable/useEditableTable.ts +85 -85
- package/src/hooks/table/useTable/paginationLink.tsx +17 -17
- package/src/hooks/table/useTable/useTable.ts +197 -207
- package/src/hooks/useFileUploadState/index.ts +20 -20
- package/src/hooks/useSiderVisible/index.ts +16 -16
- package/src/hooks/useThemedLayoutContext/index.ts +12 -12
- package/src/index.tsx +4 -4
- package/src/interfaces/field.ts +1 -1
- package/src/interfaces/index.ts +7 -8
- package/src/interfaces/upload.ts +7 -7
- package/src/providers/notificationProvider/index.tsx +78 -78
- package/src/types/index.d.ts +2 -2
- package/src/types/sunflower.d.ts +68 -68
- package/tsconfig.json +30 -26
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/iife/index.js +0 -72
- package/dist/iife/index.js.map +0 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
@@ -0,0 +1,42 @@
|
|
1
|
+
import { FormInstance, FormProps, ModalProps } from "antd";
|
2
|
+
import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord, LiveModeProps, BaseKey, FormWithSyncWithLocationParams } from "@refinedev/core";
|
3
|
+
import { UseFormProps, UseFormReturnType } from "../useForm";
|
4
|
+
export type useModalFormFromSFReturnType<TResponse, TVariables> = {
|
5
|
+
open: boolean;
|
6
|
+
form: FormInstance<TVariables>;
|
7
|
+
show: (id?: BaseKey) => void;
|
8
|
+
close: () => void;
|
9
|
+
modalProps: ModalProps;
|
10
|
+
formProps: FormProps<TVariables>;
|
11
|
+
formLoading: boolean;
|
12
|
+
defaultFormValuesLoading: boolean;
|
13
|
+
formValues: {};
|
14
|
+
initialValues: {};
|
15
|
+
formResult: undefined;
|
16
|
+
submit: (values?: TVariables) => Promise<TResponse>;
|
17
|
+
/** @deprecated Please use `open` instead. */
|
18
|
+
visible: boolean;
|
19
|
+
};
|
20
|
+
type useModalFormConfig = {
|
21
|
+
action: "show" | "edit" | "create" | "clone";
|
22
|
+
};
|
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
|
+
defaultVisible?: boolean;
|
26
|
+
autoSubmitClose?: boolean;
|
27
|
+
autoResetForm?: boolean;
|
28
|
+
};
|
29
|
+
/**
|
30
|
+
* `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.
|
31
|
+
*
|
32
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/form/useModalForm} for more details.
|
33
|
+
*
|
34
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
35
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
36
|
+
* @typeParam TVariables - Values for params. default `{}`
|
37
|
+
*
|
38
|
+
*
|
39
|
+
*/
|
40
|
+
export declare const useModalForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ syncWithLocation, defaultVisible, autoSubmitClose, autoResetForm, autoSave, invalidates, ...rest }: UseModalFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseModalFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
41
|
+
export {};
|
42
|
+
//# sourceMappingURL=useModalForm.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useModalForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useModalForm/useModalForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;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,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC9C,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,IAAI,CACN,iBAAiB,CACf,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,EACD,iBAAiB,GAAG,mBAAmB,CACxC,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,GAClB,aAAa,GACb,8BAA8B,GAAG;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AACJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,wUAetB,kBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KAAG,uBACF,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAmOf,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
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,
|
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,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC9C,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,IAAI,CACN,iBAAiB,CACf,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,EACD,iBAAiB,GAAG,mBAAmB,CACxC,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,GAClB,aAAa,GACb,8BAA8B,GAAG;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AACJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,wUAetB,kBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KAAG,uBACF,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAmOf,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { UseStepsFormConfig } from "sunflower-antd";
|
2
|
+
import { FormInstance, FormProps } from "antd";
|
3
|
+
import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
|
4
|
+
import { UseFormProps, UseFormReturnType } from "../useForm";
|
5
|
+
export type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
|
6
|
+
current: number;
|
7
|
+
gotoStep: (step: number) => Promise<TVariables> | true;
|
8
|
+
stepsProps: {
|
9
|
+
current: number;
|
10
|
+
onChange: (currentStep: number) => void;
|
11
|
+
};
|
12
|
+
formProps: FormProps<TVariables>;
|
13
|
+
formLoading: boolean;
|
14
|
+
defaultFormValuesLoading: boolean;
|
15
|
+
formValues: {};
|
16
|
+
initialValues: {};
|
17
|
+
formResult: undefined;
|
18
|
+
form: FormInstance<TVariables>;
|
19
|
+
submit: (values?: TVariables) => Promise<TResponse>;
|
20
|
+
};
|
21
|
+
export type UseStepsFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormFromSFReturnType<TResponse, TVariables>;
|
22
|
+
export type UseStepsFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormConfig;
|
23
|
+
/**
|
24
|
+
* `useStepsForm` hook allows you to split your form under an Ant Design based {@link https://ant.design/components/steps/ Steps} component and provides you with a few useful functionalities that will help you manage your form.
|
25
|
+
*
|
26
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/form/useStepsForm} for more details.
|
27
|
+
*
|
28
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
29
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
30
|
+
* @typeParam TVariables - Values for params. default `{}`
|
31
|
+
*
|
32
|
+
*
|
33
|
+
*/
|
34
|
+
export declare const useStepsForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>(props?: UseStepsFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseStepsFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
35
|
+
//# sourceMappingURL=useStepsForm.d.ts.map
|
@@ -0,0 +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,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"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { UseStepsFormConfig } from "sunflower-antd";
|
2
|
+
import { FormInstance, FormProps } from "antd";
|
3
|
+
import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
|
4
|
+
import { UseFormProps, UseFormReturnType } from "../useForm";
|
5
|
+
export type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
|
6
|
+
current: number;
|
7
|
+
gotoStep: (step: number) => Promise<TVariables> | true;
|
8
|
+
stepsProps: {
|
9
|
+
current: number;
|
10
|
+
onChange: (currentStep: number) => void;
|
11
|
+
};
|
12
|
+
formProps: FormProps<TVariables>;
|
13
|
+
formLoading: boolean;
|
14
|
+
defaultFormValuesLoading: boolean;
|
15
|
+
formValues: {};
|
16
|
+
initialValues: {};
|
17
|
+
formResult: undefined;
|
18
|
+
form: FormInstance<TVariables>;
|
19
|
+
submit: (values?: TVariables) => Promise<TResponse>;
|
20
|
+
};
|
21
|
+
export type UseStepsFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormFromSFReturnType<TResponse, TVariables>;
|
22
|
+
export type UseStepsFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormConfig;
|
23
|
+
/**
|
24
|
+
* `useStepsForm` hook allows you to split your form under an Ant Design based {@link https://ant.design/components/steps/ Steps} component and provides you with a few useful functionalities that will help you manage your form.
|
25
|
+
*
|
26
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/form/useStepsForm} for more details.
|
27
|
+
*
|
28
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
29
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
30
|
+
* @typeParam TVariables - Values for params. default `{}`
|
31
|
+
*
|
32
|
+
*
|
33
|
+
*/
|
34
|
+
export declare const useStepsForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>(props?: UseStepsFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseStepsFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
35
|
+
//# sourceMappingURL=useStepsForm.d.ts.map
|
@@ -0,0 +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,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"}
|
@@ -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,
|
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"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ButtonProps, UploadProps } from "antd";
|
2
|
+
import { BaseRecord, HttpError, UseImportReturnType, ImportOptions } from "@refinedev/core";
|
3
|
+
/**
|
4
|
+
* `useImport` hook allows you to handle your csv import logic easily.
|
5
|
+
*
|
6
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/import/useImport} for more details.
|
7
|
+
*
|
8
|
+
* @typeParam TItem - Interface of parsed csv data
|
9
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
10
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
11
|
+
* @typeParam TVariables - Values for mutation function
|
12
|
+
*
|
13
|
+
*/
|
14
|
+
export declare const useImport: <TItem = any, TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = any>({ resource: resourceFromProp, resourceName, mapData, paparseOptions, batchSize, onFinish, meta, metaData, dataProviderName, onProgress: onProgressFromProp, }?: ImportOptions<TItem, TVariables, TData>) => Omit<UseImportReturnType<TData, TVariables, TError>, "handleChange" | "inputProps"> & {
|
15
|
+
uploadProps: UploadProps;
|
16
|
+
buttonProps: ButtonProps;
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/import/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,WAAW,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,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"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ButtonProps, UploadProps } from "antd";
|
2
|
+
import { BaseRecord, HttpError, UseImportReturnType, ImportOptions } from "@refinedev/core";
|
3
|
+
/**
|
4
|
+
* `useImport` hook allows you to handle your csv import logic easily.
|
5
|
+
*
|
6
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/import/useImport} for more details.
|
7
|
+
*
|
8
|
+
* @typeParam TItem - Interface of parsed csv data
|
9
|
+
* @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
10
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
|
11
|
+
* @typeParam TVariables - Values for mutation function
|
12
|
+
*
|
13
|
+
*/
|
14
|
+
export declare const useImport: <TItem = any, TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = any>({ resource: resourceFromProp, resourceName, mapData, paparseOptions, batchSize, onFinish, meta, metaData, dataProviderName, onProgress: onProgressFromProp, }?: ImportOptions<TItem, TVariables, TData>) => Omit<UseImportReturnType<TData, TVariables, TError>, "handleChange" | "inputProps"> & {
|
15
|
+
uploadProps: UploadProps;
|
16
|
+
buttonProps: ButtonProps;
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/import/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,WAAW,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,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 +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,
|
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"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export * from "./form";
|
2
|
+
export * from "./table";
|
3
|
+
export * from "./fields";
|
4
|
+
export * from "./import";
|
5
|
+
export * from "./list";
|
6
|
+
export * from "./useFileUploadState";
|
7
|
+
export * from "./modal";
|
8
|
+
export * from "./useSiderVisible";
|
9
|
+
export * from "./useThemedLayoutContext";
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export * from "./form";
|
2
|
+
export * from "./table";
|
3
|
+
export * from "./fields";
|
4
|
+
export * from "./import";
|
5
|
+
export * from "./list";
|
6
|
+
export * from "./useFileUploadState";
|
7
|
+
export * from "./modal";
|
8
|
+
export * from "./useSiderVisible";
|
9
|
+
export * from "./useThemedLayoutContext";
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ListProps, FormProps } from "antd";
|
2
|
+
import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType } from "@refinedev/core";
|
3
|
+
export type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
|
4
|
+
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
|
+
};
|
6
|
+
export type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
|
7
|
+
listProps: ListProps<TData>;
|
8
|
+
queryResult: useTableReturnType["tableQueryResult"];
|
9
|
+
searchFormProps: FormProps<TSearchVariables>;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* By using `useSimpleList` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/list/ `<List>`} component.
|
13
|
+
* All features such as pagination, sorting come out of the box.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/list/useSimpleList} for more details.
|
16
|
+
*
|
17
|
+
* @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
18
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
|
19
|
+
* @typeParam TSearchVariables - Antd form values
|
20
|
+
* @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
export declare const useSimpleList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ resource, initialCurrent, initialPageSize, pagination, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData>) => useSimpleListReturnType<TData, TSearchVariables>;
|
24
|
+
//# sourceMappingURL=useSimpleList.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useSimpleList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/useSimpleList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,MAAM,CAAC;AAExD,OAAO,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"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ListProps, FormProps } from "antd";
|
2
|
+
import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType } from "@refinedev/core";
|
3
|
+
export type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
|
4
|
+
onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
|
5
|
+
};
|
6
|
+
export type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
|
7
|
+
listProps: ListProps<TData>;
|
8
|
+
queryResult: useTableReturnType["tableQueryResult"];
|
9
|
+
searchFormProps: FormProps<TSearchVariables>;
|
10
|
+
};
|
11
|
+
/**
|
12
|
+
* By using `useSimpleList` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/list/ `<List>`} component.
|
13
|
+
* All features such as pagination, sorting come out of the box.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/list/useSimpleList} for more details.
|
16
|
+
*
|
17
|
+
* @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
|
18
|
+
* @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
|
19
|
+
* @typeParam TSearchVariables - Antd form values
|
20
|
+
* @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
export declare const useSimpleList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ resource, initialCurrent, initialPageSize, pagination, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData>) => useSimpleListReturnType<TData, TSearchVariables>;
|
24
|
+
//# sourceMappingURL=useSimpleList.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useSimpleList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/useSimpleList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,MAAM,CAAC;AAExD,OAAO,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 { 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,
|
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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ModalProps } from "antd";
|
2
|
+
import { useModalReturnType as useCoreModelReturnType } from "@refinedev/core";
|
3
|
+
export type useModalReturnType = {
|
4
|
+
modalProps: ModalProps;
|
5
|
+
} & Omit<useCoreModelReturnType, "visible">;
|
6
|
+
export type useModalProps = {
|
7
|
+
/**
|
8
|
+
* Default props for Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
|
9
|
+
*/
|
10
|
+
modalProps?: ModalProps;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* By using `useModal` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/ui/useModal} for more details.
|
16
|
+
*/
|
17
|
+
export declare const useModal: ({ modalProps, }?: useModalProps) => useModalReturnType;
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,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"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ModalProps } from "antd";
|
2
|
+
import { useModalReturnType as useCoreModelReturnType } from "@refinedev/core";
|
3
|
+
export type useModalReturnType = {
|
4
|
+
modalProps: ModalProps;
|
5
|
+
} & Omit<useCoreModelReturnType, "visible">;
|
6
|
+
export type useModalProps = {
|
7
|
+
/**
|
8
|
+
* Default props for Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
|
9
|
+
*/
|
10
|
+
modalProps?: ModalProps;
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* By using `useModal` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
|
14
|
+
*
|
15
|
+
* @see {@link https://refine.dev/docs/api-reference/antd/hooks/ui/useModal} for more details.
|
16
|
+
*/
|
17
|
+
export declare const useModal: ({ modalProps, }?: useModalProps) => useModalReturnType;
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,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"}
|
@@ -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,
|
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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useEditableTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useEditableTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|