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.
Files changed (54) hide show
  1. package/.cursor/rules.md +11 -1
  2. package/.vscode/launch.json +9 -0
  3. package/AUTH_LAYOUT_EXAMPLE.md +343 -0
  4. package/AUTH_LAYOUT_GUIDE.md +819 -0
  5. package/IMPLEMENTATION_GUIDE.md +899 -0
  6. package/dist/api/ApiConfig.d.ts +11 -0
  7. package/dist/api/AuthApi.d.ts +2 -5
  8. package/dist/api/CrudApi.d.ts +11 -12
  9. package/dist/components/list/CellField.d.ts +2 -2
  10. package/dist/components/list/cells/BooleanCell.d.ts +5 -2
  11. package/dist/components/list/cells/DateCell.d.ts +5 -2
  12. package/dist/components/list/cells/DefaultCell.d.ts +3 -2
  13. package/dist/components/list/cells/DownloadCell.d.ts +3 -2
  14. package/dist/components/list/cells/ImageCell.d.ts +3 -2
  15. package/dist/components/list/cells/LinkCell.d.ts +8 -0
  16. package/dist/components/list/cells/UUIDCell.d.ts +5 -2
  17. package/dist/decorators/auth/DefaultLoginForm.d.ts +4 -0
  18. package/dist/decorators/details/Details.d.ts +1 -1
  19. package/dist/decorators/list/Cell.d.ts +5 -1
  20. package/dist/decorators/list/List.d.ts +8 -4
  21. package/dist/decorators/list/cells/LinkCell.d.ts +13 -0
  22. package/dist/index.cjs.js +15 -1
  23. package/dist/index.d.ts +7 -1
  24. package/dist/index.esm.js +15 -1
  25. package/dist/types/Login.d.ts +8 -0
  26. package/package.json +3 -1
  27. package/src/api/ApiConfig.ts +63 -0
  28. package/src/api/AuthApi.ts +8 -0
  29. package/src/api/CrudApi.ts +96 -60
  30. package/src/assets/icons/svg/down-arrow-backup-2.svg +3 -0
  31. package/src/components/DetailsPage.tsx +5 -1
  32. package/src/components/list/CellField.tsx +25 -10
  33. package/src/components/list/Datagrid.tsx +83 -53
  34. package/src/components/list/ListPage.tsx +3 -0
  35. package/src/components/list/cells/BooleanCell.tsx +7 -2
  36. package/src/components/list/cells/DateCell.tsx +6 -2
  37. package/src/components/list/cells/DefaultCell.tsx +4 -4
  38. package/src/components/list/cells/DownloadCell.tsx +4 -2
  39. package/src/components/list/cells/ImageCell.tsx +5 -2
  40. package/src/components/list/cells/LinkCell.tsx +31 -0
  41. package/src/components/list/cells/UUIDCell.tsx +6 -2
  42. package/src/decorators/auth/DefaultLoginForm.ts +32 -0
  43. package/src/decorators/details/Details.ts +1 -1
  44. package/src/decorators/list/Cell.ts +5 -1
  45. package/src/decorators/list/List.ts +4 -4
  46. package/src/decorators/list/cells/LinkCell.ts +22 -0
  47. package/src/index.ts +27 -1
  48. package/src/services/DataService.ts +14 -10
  49. package/src/store/store.ts +1 -1
  50. package/src/styles/components/button.scss +14 -0
  51. package/src/styles/index.scss +1 -1
  52. package/src/styles/list.scss +64 -1
  53. package/src/types/Login.ts +9 -0
  54. 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';