proje-react-panel 1.1.4 → 1.1.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.
Files changed (64) hide show
  1. package/.cursor/rules.md +21 -95
  2. package/.vscode/settings.json +6 -1
  3. package/PTD.md +124 -24
  4. package/dist/components/DetailsPage.d.ts +2 -2
  5. package/dist/components/Login.d.ts +2 -2
  6. package/dist/components/Panel.d.ts +2 -2
  7. package/dist/components/form/FormField.d.ts +1 -5
  8. package/dist/components/form/FormHeader.d.ts +10 -0
  9. package/dist/components/form/FormPage.d.ts +12 -1
  10. package/dist/components/form/Select.d.ts +1 -1
  11. package/dist/components/form/SelectStyles.d.ts +3 -3
  12. package/dist/components/list/CellField.d.ts +2 -3
  13. package/dist/components/list/EmptyList.d.ts +1 -1
  14. package/dist/decorators/details/Details.d.ts +1 -2
  15. package/dist/decorators/form/Form.d.ts +3 -5
  16. package/dist/decorators/form/Input.d.ts +10 -2
  17. package/dist/decorators/form/inputs/SelectInput.d.ts +8 -7
  18. package/dist/decorators/list/Cell.d.ts +3 -3
  19. package/dist/decorators/list/List.d.ts +3 -4
  20. package/dist/decorators/list/getListPageMeta.d.ts +2 -2
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.esm.js +1 -1
  23. package/dist/store/store.d.ts +1 -0
  24. package/dist/utils/decerators.d.ts +3 -3
  25. package/eslint.config.mjs +60 -0
  26. package/package.json +6 -3
  27. package/src/api/CrudApi.ts +59 -53
  28. package/src/components/DetailsPage.tsx +8 -6
  29. package/src/components/Login.tsx +11 -4
  30. package/src/components/Panel.tsx +3 -3
  31. package/src/components/form/Checkbox.tsx +1 -1
  32. package/src/components/form/FormField.tsx +13 -9
  33. package/src/components/form/FormHeader.tsx +18 -0
  34. package/src/components/form/FormPage.tsx +146 -5
  35. package/src/components/form/InnerForm.tsx +13 -8
  36. package/src/components/form/Select.tsx +14 -15
  37. package/src/components/form/SelectStyles.ts +4 -4
  38. package/src/components/layout/Layout.tsx +1 -7
  39. package/src/components/layout/SideBar.tsx +1 -2
  40. package/src/components/list/CellField.tsx +2 -5
  41. package/src/components/list/Datagrid.tsx +0 -1
  42. package/src/components/list/EmptyList.tsx +2 -2
  43. package/src/components/list/FilterPopup.tsx +4 -2
  44. package/src/components/list/ListPage.tsx +7 -5
  45. package/src/components/list/cells/DefaultCell.tsx +2 -0
  46. package/src/decorators/details/Details.ts +2 -2
  47. package/src/decorators/details/DetailsItem.ts +2 -0
  48. package/src/decorators/form/Form.ts +10 -11
  49. package/src/decorators/form/Input.ts +19 -10
  50. package/src/decorators/form/inputs/SelectInput.ts +8 -7
  51. package/src/decorators/list/Cell.ts +6 -4
  52. package/src/decorators/list/ExtendedCell.ts +1 -9
  53. package/src/decorators/list/List.ts +8 -4
  54. package/src/decorators/list/cells/ImageCell.ts +1 -1
  55. package/src/decorators/list/getListPageMeta.ts +4 -3
  56. package/src/store/store.ts +3 -1
  57. package/src/styles/components/form-header.scss +75 -0
  58. package/src/styles/index.scss +1 -0
  59. package/src/types/AnyClass.ts +3 -0
  60. package/src/utils/decerators.ts +3 -2
  61. package/.eslintrc.js +0 -23
  62. package/.eslintrc.json +0 -26
  63. package/src/initPanel.ts +0 -3
  64. package/src/types/initPanelOptions.ts +0 -1
package/.eslintrc.js DELETED
@@ -1,23 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ["eslint:recommended", "plugin:react/recommended"],
4
- parser: "@typescript-eslint/parser",
5
- plugins: ["@typescript-eslint"],
6
- settings: {
7
- react: {
8
- version: "detect"
9
- }
10
- },
11
- overrides: [
12
- {
13
- files: ["*.ts", "*.tsx"],
14
- rules: {
15
- semi: 0,
16
- "@typescript-eslint/no-shadow": ["error"],
17
- "no-shadow": "off",
18
- "no-undef": "off",
19
- "no-unused-vars": "off",
20
- },
21
- },
22
- ],
23
- };
package/.eslintrc.json DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "extends": [
3
- "eslint:recommended",
4
- "plugin:react/recommended",
5
- "plugin:react-hooks/recommended"
6
- ],
7
- "plugins": ["react", "react-hooks"],
8
- "rules": {
9
- "react/function-component-definition": [
10
- "error",
11
- {
12
- "namedComponents": "function-declaration",
13
- "unnamedComponents": "function-declaration"
14
- }
15
- ],
16
- "import/prefer-default-export": "off",
17
- "react/prefer-stateless-function": "error",
18
- "react/no-this-in-sfc": "error",
19
- "react-hooks/exhaustive-deps": "warn"
20
- },
21
- "settings": {
22
- "react": {
23
- "version": "detect"
24
- }
25
- }
26
- }
package/src/initPanel.ts DELETED
@@ -1,3 +0,0 @@
1
- import { InitPanelOptions } from './types/initPanelOptions';
2
-
3
- export function initPanel({}: InitPanelOptions) {}
@@ -1 +0,0 @@
1
- export interface InitPanelOptions {}