proje-react-panel 1.4.1 → 1.6.0-test-1
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/.cursor/rules.md +11 -1
- package/.vscode/launch.json +9 -0
- package/AUTH_LAYOUT_EXAMPLE.md +343 -0
- package/AUTH_LAYOUT_GUIDE.md +819 -0
- package/IMPLEMENTATION_GUIDE.md +899 -0
- package/dist/api/ApiConfig.d.ts +11 -0
- package/dist/api/AuthApi.d.ts +2 -5
- package/dist/api/CrudApi.d.ts +11 -12
- package/dist/components/list/CellField.d.ts +2 -2
- package/dist/components/list/cells/BooleanCell.d.ts +5 -2
- package/dist/components/list/cells/DateCell.d.ts +5 -2
- package/dist/components/list/cells/DefaultCell.d.ts +3 -2
- package/dist/components/list/cells/DownloadCell.d.ts +3 -2
- package/dist/components/list/cells/ImageCell.d.ts +3 -2
- package/dist/components/list/cells/LinkCell.d.ts +8 -0
- package/dist/components/list/cells/UUIDCell.d.ts +5 -2
- package/dist/decorators/auth/DefaultLoginForm.d.ts +4 -0
- package/dist/decorators/details/Details.d.ts +1 -1
- package/dist/decorators/list/Cell.d.ts +5 -1
- package/dist/decorators/list/List.d.ts +8 -4
- package/dist/decorators/list/cells/LinkCell.d.ts +13 -0
- package/dist/index.cjs.js +15 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.esm.js +15 -1
- package/dist/types/Login.d.ts +8 -0
- package/package.json +3 -1
- package/src/api/ApiConfig.ts +63 -0
- package/src/api/AuthApi.ts +8 -0
- package/src/api/CrudApi.ts +96 -60
- package/src/assets/icons/svg/down-arrow-backup-2.svg +3 -0
- package/src/components/DetailsPage.tsx +5 -1
- package/src/components/list/CellField.tsx +25 -10
- package/src/components/list/Datagrid.tsx +83 -53
- package/src/components/list/ListPage.tsx +3 -0
- package/src/components/list/cells/BooleanCell.tsx +7 -2
- package/src/components/list/cells/DateCell.tsx +6 -2
- package/src/components/list/cells/DefaultCell.tsx +4 -4
- package/src/components/list/cells/DownloadCell.tsx +4 -2
- package/src/components/list/cells/ImageCell.tsx +5 -2
- package/src/components/list/cells/LinkCell.tsx +31 -0
- package/src/components/list/cells/UUIDCell.tsx +6 -2
- package/src/decorators/auth/DefaultLoginForm.ts +32 -0
- package/src/decorators/details/Details.ts +1 -1
- package/src/decorators/list/Cell.ts +5 -1
- package/src/decorators/list/List.ts +4 -4
- package/src/decorators/list/cells/LinkCell.ts +22 -0
- package/src/index.ts +27 -1
- package/src/services/DataService.ts +14 -10
- package/src/store/store.ts +1 -1
- package/src/styles/components/button.scss +14 -0
- package/src/styles/index.scss +1 -1
- package/src/styles/list.scss +64 -1
- package/src/types/Login.ts +9 -0
- package/src/utils/logout.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,12 @@ export { ListPage } from './components/list/ListPage';
|
|
|
5
5
|
export { List, type GetDataForList, type PaginatedResponse, type GetDataParams, } from './decorators/list/List';
|
|
6
6
|
export { ImageCell } from './decorators/list/cells/ImageCell';
|
|
7
7
|
export { Cell } from './decorators/list/Cell';
|
|
8
|
+
export { DownloadCell } from './decorators/list/cells/DownloadCell';
|
|
9
|
+
export { LinkCell } from './decorators/list/cells/LinkCell';
|
|
8
10
|
export { FormPage } from './components/form/FormPage';
|
|
9
11
|
export { Form, type OnSubmitFN } from './decorators/form/Form';
|
|
10
12
|
export { Input } from './decorators/form/Input';
|
|
11
13
|
export { SelectInput } from './decorators/form/inputs/SelectInput';
|
|
12
|
-
export { DownloadCell } from './decorators/list/cells/DownloadCell';
|
|
13
14
|
export { getInputFields } from './decorators/form/Input';
|
|
14
15
|
export { Panel } from './components/Panel';
|
|
15
16
|
export { Counter } from './components/Counter';
|
|
@@ -17,5 +18,10 @@ export { Layout } from './components/layout';
|
|
|
17
18
|
export { Login } from './components/Login';
|
|
18
19
|
export { login } from './utils/login';
|
|
19
20
|
export { logout } from './utils/logout';
|
|
21
|
+
export { DefaultLoginForm } from './decorators/auth/DefaultLoginForm';
|
|
22
|
+
export { initApi, initAuthToken, setAuthToken, setAuthLogout, getAxiosInstance, axiosInstance, } from './api/ApiConfig';
|
|
23
|
+
export { getAll, getOne, create, createFormData, update, updateFormData, updateSimple, remove, } from './api/CrudApi';
|
|
24
|
+
export { login as authLogin } from './api/AuthApi';
|
|
25
|
+
export type { LoginForm, LoginResponse } from './types/Login';
|
|
20
26
|
export { updateDetailsData } from './services/DataService';
|
|
21
27
|
export { updateListData } from './services/DataService';
|