@asaleh37/ui-base 1.2.3 → 1.2.5

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 (157) hide show
  1. package/dist/index.d.ts +20 -13
  2. package/dist/index.js +6 -6
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +6 -6
  5. package/dist/index.mjs.map +1 -1
  6. package/package.json +15 -3
  7. package/src/components/App.tsx +1 -1
  8. package/src/components/BaseApp.tsx +2 -19
  9. package/src/components/administration/admin/OrgMemberRoleForm.tsx +83 -0
  10. package/src/components/administration/admin/OrganizationApplicationModuleGrid.tsx +131 -0
  11. package/src/components/administration/admin/OrganizationGrid.tsx +165 -0
  12. package/src/components/administration/admin/OrganizationMemberGrid.tsx +176 -0
  13. package/src/components/administration/admin/OrganizationMemberRoleGrid.tsx +87 -0
  14. package/src/components/{admin → administration/admin}/OrganizationRankGrid.tsx +49 -19
  15. package/src/components/administration/admin/OrganizationUnitGrid.tsx +139 -0
  16. package/src/components/administration/admin/OrganizationUnitTypeGrid.tsx +121 -0
  17. package/src/components/administration/admin/PersonGrid.tsx +195 -0
  18. package/src/components/{admin → administration/admin}/RoleAuthoritiesForm.tsx +30 -11
  19. package/src/components/administration/admin/SystemApplicationAuthorityGrid.tsx +142 -0
  20. package/src/components/administration/admin/SystemApplicationGrid.tsx +161 -0
  21. package/src/components/administration/admin/SystemApplicationModuleGrid.tsx +109 -0
  22. package/src/components/administration/admin/SystemApplicationRoleAuthorityGrid.tsx +67 -0
  23. package/src/components/administration/admin/SystemApplicationRoleGrid.tsx +130 -0
  24. package/src/components/administration/dev/BluePrintGrid.tsx +129 -0
  25. package/src/components/administration/dev/DashboardGrid.tsx +173 -0
  26. package/src/components/administration/dev/DashboardWidgetGrid.tsx +164 -0
  27. package/src/components/administration/dev/DataQueryGrid.tsx +206 -0
  28. package/src/components/administration/dev/DataQueryParameterGrid.tsx +191 -0
  29. package/src/components/administration/dev/DataQueryParametersForm.tsx +84 -0
  30. package/src/components/administration/dev/DatasourceConnectionGrid.tsx +150 -0
  31. package/src/components/administration/dev/EntityParameterGrid.tsx +279 -0
  32. package/src/components/administration/dev/LookupGrid.tsx +131 -0
  33. package/src/components/administration/dev/MailAttachmentGrid.tsx +155 -0
  34. package/src/components/administration/dev/MailBodyGrid.tsx +215 -0
  35. package/src/components/{admin → administration/dev}/MailNotificationQueueGrid.tsx +114 -26
  36. package/src/components/administration/dev/MailRecipientGrid.tsx +169 -0
  37. package/src/components/administration/dev/MailSenderConfigGrid.tsx +478 -0
  38. package/src/components/administration/dev/MailTemplateGrid.tsx +388 -0
  39. package/src/components/administration/dev/ReportGrid.tsx +504 -0
  40. package/src/components/administration/dev/ReportParameterGrid.tsx +186 -0
  41. package/src/components/administration/dev/ReportParametersForm.tsx +84 -0
  42. package/src/components/administration/dev/WidgetGrid.tsx +431 -0
  43. package/src/components/administration/dev/WorkflowDocumentActionGrid.tsx +264 -0
  44. package/src/components/administration/dev/WorkflowDocumentActionHistoryGrid.tsx +172 -0
  45. package/src/components/administration/dev/WorkflowDocumentActionMailGrid.tsx +161 -0
  46. package/src/components/administration/dev/WorkflowDocumentGrid.tsx +377 -0
  47. package/src/components/{admin → administration/dev}/WorkflowDocumentMailLogGrid.tsx +87 -10
  48. package/src/components/administration/dev/WorkflowDocumentStatusGrid.tsx +243 -0
  49. package/src/components/common/ChangeOrgForm.tsx +81 -0
  50. package/src/components/common/Home.tsx +28 -22
  51. package/src/components/common/LoadingMask.tsx +9 -4
  52. package/src/components/common/Login.tsx +9 -13
  53. package/src/components/templates/DataEntryTemplates/DataEntryTypes.ts +30 -6
  54. package/src/components/templates/DataEntryTemplates/DataEntryUtil.ts +46 -5
  55. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +64 -5
  56. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx +11 -3
  57. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx +2 -2
  58. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx +1 -2
  59. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/HtmlEditor.tsx +144 -0
  60. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx +55 -0
  61. package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField.tsx +9 -1
  62. package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +45 -5
  63. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx +8 -7
  64. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx +38 -10
  65. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridRecordAction.tsx +4 -1
  66. package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridTopBar.tsx +3 -4
  67. package/src/components/templates/TransferList.tsx +16 -6
  68. package/src/components/templates/index.ts +0 -2
  69. package/src/components/templates/report/ExcelReportViewer.tsx +65 -0
  70. package/src/components/templates/report/ReportViewer.tsx +382 -0
  71. package/src/components/templates/visuals/DashboardRouteView.tsx +9 -0
  72. package/src/components/templates/visuals/DashboardViewer.tsx +148 -0
  73. package/src/components/templates/visuals/WidgetViewer.tsx +198 -0
  74. package/src/components/templates/visuals/charts/TemplateBarChart.tsx +9 -2
  75. package/src/components/templates/visuals/charts/TemplateDataCard.tsx +6 -31
  76. package/src/components/templates/visuals/charts/TemplateGauge.tsx +8 -3
  77. package/src/components/templates/visuals/charts/TemplateLineChart.tsx +8 -2
  78. package/src/components/templates/visuals/charts/TemplateLineProgress.tsx +5 -3
  79. package/src/components/templates/visuals/charts/TemplatePieChart.tsx +1 -2
  80. package/src/components/templates/workflow/WorkflowDocumentPanel.tsx +581 -0
  81. package/src/components/templates/workflow/WorkflowDocumentTimeLine.tsx +134 -0
  82. package/src/hooks/UseSession.tsx +3 -7
  83. package/src/hooks/UseWindow.tsx +2 -1
  84. package/src/hooks/useAxios.tsx +9 -27
  85. package/src/hooks/useLookupGridColumn.tsx +35 -0
  86. package/src/layout/Layout.tsx +2 -46
  87. package/src/layout/MainContent.tsx +60 -7
  88. package/src/layout/MobileDrawer.tsx +5 -5
  89. package/src/layout/NavigationTree.tsx +0 -1
  90. package/src/layout/RouteWrapper.tsx +36 -0
  91. package/src/layout/SideBar.tsx +15 -10
  92. package/src/layout/TopBar.tsx +139 -71
  93. package/src/locales/arabic/adminLocalsAr.json +81 -344
  94. package/src/locales/arabic/common.json +11 -1
  95. package/src/locales/arabic/devLocalsAr.json +280 -0
  96. package/src/locales/arabic/index.ts +2 -0
  97. package/src/locales/english/adminLocalsEn.json +86 -346
  98. package/src/locales/english/common.json +11 -1
  99. package/src/locales/english/devLocalsEn.json +281 -0
  100. package/src/locales/english/index.ts +3 -0
  101. package/src/main.tsx +5 -6
  102. package/src/navigationItems/Administration/adminNavigationItems.tsx +65 -99
  103. package/src/navigationItems/Administration/index.tsx +10 -65
  104. package/src/redux/features/administration/AdministrationStoresMetaData.ts +45 -12
  105. package/src/redux/features/common/AppLayoutSlice.ts +0 -8
  106. package/src/redux/features/common/CommonStoreSlice.ts +4 -0
  107. package/src/redux/features/common/SideBarSlice.ts +29 -0
  108. package/src/redux/features/common/UserSessionSlice.ts +15 -23
  109. package/src/redux/store.ts +1 -1
  110. package/src/routes/administration/adminRoutes.tsx +41 -222
  111. package/src/routes/administration/devRoutes.tsx +90 -0
  112. package/src/routes/administration/index.ts +5 -1
  113. package/src/routes/index.ts +1 -0
  114. package/src/styles/index.css +3 -3
  115. package/src/util/AppUtils.ts +5 -0
  116. package/vite.config.ts +14 -0
  117. package/src/components/admin/AttachmentGrid.tsx +0 -116
  118. package/src/components/admin/AuthorityGrid.tsx +0 -88
  119. package/src/components/admin/BluePrintGrid.tsx +0 -55
  120. package/src/components/admin/BluePrintPageGrid.tsx +0 -85
  121. package/src/components/admin/BluePrintPointGrid.tsx +0 -85
  122. package/src/components/admin/DashboardGrid.tsx +0 -95
  123. package/src/components/admin/DashboardWidgetGrid.tsx +0 -75
  124. package/src/components/admin/DataQueryGrid.tsx +0 -75
  125. package/src/components/admin/DataQueryParameterGrid.tsx +0 -98
  126. package/src/components/admin/DatasourceConnectionGrid.tsx +0 -98
  127. package/src/components/admin/EmployeeGrid.tsx +0 -105
  128. package/src/components/admin/EntityParameterGrid.tsx +0 -125
  129. package/src/components/admin/ExcelUploaderDetailGrid.tsx +0 -78
  130. package/src/components/admin/ExcelUploaderHeaderGrid.tsx +0 -78
  131. package/src/components/admin/LookupGrid.tsx +0 -95
  132. package/src/components/admin/MailAttachmentGrid.tsx +0 -65
  133. package/src/components/admin/MailBodyGrid.tsx +0 -105
  134. package/src/components/admin/MailRecipientGrid.tsx +0 -75
  135. package/src/components/admin/MailTemplateGrid.tsx +0 -145
  136. package/src/components/admin/NewTableGrid.tsx +0 -65
  137. package/src/components/admin/NotificationGrid.tsx +0 -115
  138. package/src/components/admin/NotificationQueueGrid.tsx +0 -125
  139. package/src/components/admin/OrganizationApplicationGrid.tsx +0 -81
  140. package/src/components/admin/OrganizationGrid.tsx +0 -65
  141. package/src/components/admin/OrganizationUnitGrid.tsx +0 -85
  142. package/src/components/admin/OrganizationUserGrid.tsx +0 -75
  143. package/src/components/admin/OrganizationUserRoleGrid.tsx +0 -98
  144. package/src/components/admin/ReportGrid.tsx +0 -155
  145. package/src/components/admin/ReportParameterGrid.tsx +0 -95
  146. package/src/components/admin/RoleAuthorityGrid.tsx +0 -65
  147. package/src/components/admin/RoleGrid.tsx +0 -132
  148. package/src/components/admin/UserAccountGrid.tsx +0 -65
  149. package/src/components/admin/UserRequestGrid.tsx +0 -145
  150. package/src/components/admin/WidgetGrid.tsx +0 -175
  151. package/src/components/admin/WorkflowDocumentActionGrid.tsx +0 -111
  152. package/src/components/admin/WorkflowDocumentActionHistoryGrid.tsx +0 -111
  153. package/src/components/admin/WorkflowDocumentActionMailGrid.tsx +0 -71
  154. package/src/components/admin/WorkflowDocumentGrid.tsx +0 -185
  155. package/src/components/admin/WorkflowDocumentStatusGrid.tsx +0 -121
  156. package/src/components/templates/visuals/TemplateDashboard.tsx +0 -126
  157. package/src/redux/features/CounterSlice.tsx +0 -13
@@ -1,81 +0,0 @@
1
- import { useState } from "react";
2
- import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
3
- import useApiActions from "../../hooks/useApiActions";
4
- import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
5
-
6
- const OrganizationApplicationGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/organizationapplication/all",
10
- deleteById: "api/v1/admin/organizationapplication",
11
- save: "api/v1/admin/organizationapplication",
12
- findById: "api/v1/admin/organizationapplication",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "ORGANIZATION_APPLICATION_APPLICATION_CODE",
22
- fieldName: "applicationCode",
23
- required: false,
24
- fieldType: "text",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "ORGANIZATION_APPLICATION_APPLICATION_DESCRIPTION",
32
- fieldName: "applicationDescription",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "ORGANIZATION_APPLICATION_APPLICATION_NAME",
42
- fieldName: "applicationName",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "ORGANIZATION_APPLICATION_IS_ACTIVE",
52
- fieldName: "isActive",
53
- required: false,
54
- fieldType: "checkbox",
55
- },
56
- },
57
- ];
58
-
59
- return (
60
- <TemplateGrid
61
- apiActions={apiActions}
62
- data={data}
63
- setData={setData}
64
- editMode={{ editMode: "row" }}
65
- formElements={formElements}
66
- keyColumnName={"id"}
67
- gridTitle="ORGANIZATION_APPLICATION_PLURAL"
68
- girdIcon="table-cells"
69
- editAction={{
70
- isEnabled: true,
71
- authority: "ORGANIZATION_APPLICATION_EDIT",
72
- }}
73
- deleteAction={{
74
- isEnabled: true,
75
- authority: "ORGANIZATION_APPLICATION_DELETE",
76
- }}
77
- />
78
- );
79
- };
80
-
81
- export default OrganizationApplicationGrid;
@@ -1,65 +0,0 @@
1
- import { useState } from "react";
2
- import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
3
- import useApiActions from "../../hooks/useApiActions";
4
- import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
5
-
6
- const OrganizationGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/organization/all",
10
- deleteById: "api/v1/admin/organization",
11
- save: "api/v1/admin/organization",
12
- findById: "api/v1/admin/organization",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "ORGANIZATION_ORGANIZATION_CODE",
22
- fieldName: "organizationCode",
23
- required: true,
24
- fieldType: "text",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "ORGANIZATION_IS_ACTIVE",
32
- fieldName: "isActive",
33
- required: false,
34
- fieldType: "checkbox",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "ORGANIZATION_ORGANIZATION_NAME",
42
- fieldName: "organizationName",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- ];
48
-
49
- return (
50
- <TemplateGrid
51
- apiActions={apiActions}
52
- data={data}
53
- setData={setData}
54
- editMode={{ editMode: "row" }}
55
- formElements={formElements}
56
- keyColumnName={"organizationCode"}
57
- gridTitle="ORGANIZATION_PLURAL"
58
- girdIcon="table-cells"
59
- editAction={{ isEnabled: true, authority: "ORGANIZATION_EDIT" }}
60
- deleteAction={{ isEnabled: true, authority: "ORGANIZATION_DELETE" }}
61
- />
62
- );
63
- };
64
-
65
- export default OrganizationGrid;
@@ -1,85 +0,0 @@
1
- import { useState } from "react";
2
- import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
3
- import useApiActions from "../../hooks/useApiActions";
4
- import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
5
-
6
- const OrganizationUnitGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/organizationunit/all",
10
- deleteById: "api/v1/admin/organizationunit",
11
- save: "api/v1/admin/organizationunit",
12
- findById: "api/v1/admin/organizationunit",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "ORGANIZATION_UNIT_ENABLED",
22
- fieldName: "enabled",
23
- required: false,
24
- fieldType: "checkbox",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "ORGANIZATION_UNIT_ORGANIZATION_CODE",
32
- fieldName: "organizationCode",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "ORGANIZATION_UNIT_ORGANIZATION_UNIT_AR_NAME",
42
- fieldName: "organizationUnitArName",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "ORGANIZATION_UNIT_ORGANIZATION_UNIT_EN_NAME",
52
- fieldName: "organizationUnitEnName",
53
- required: false,
54
- fieldType: "text",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "ORGANIZATION_UNIT_ORGANIZATION_UNIT_PARENT_ID",
62
- fieldName: "organizationUnitParentId",
63
- required: false,
64
- fieldType: "text",
65
- },
66
- },
67
- ];
68
-
69
- return (
70
- <TemplateGrid
71
- apiActions={apiActions}
72
- data={data}
73
- setData={setData}
74
- editMode={{ editMode: "row" }}
75
- formElements={formElements}
76
- keyColumnName={"id"}
77
- gridTitle="ORGANIZATION_UNIT_PLURAL"
78
- girdIcon="table-cells"
79
- editAction={{ isEnabled: true, authority: "ORGANIZATION_UNIT_EDIT" }}
80
- deleteAction={{ isEnabled: true, authority: "ORGANIZATION_UNIT_DELETE" }}
81
- />
82
- );
83
- };
84
-
85
- export default OrganizationUnitGrid;
@@ -1,75 +0,0 @@
1
- import { useState } from "react";
2
- import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
3
- import useApiActions from "../../hooks/useApiActions";
4
- import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
5
-
6
- const OrganizationUserGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/organizationuser/all",
10
- deleteById: "api/v1/admin/organizationuser",
11
- save: "api/v1/admin/organizationuser",
12
- findById: "api/v1/admin/organizationuser",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "ORGANIZATION_USER_IS_ACTIVE",
22
- fieldName: "isActive",
23
- required: false,
24
- fieldType: "checkbox",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "ORGANIZATION_USER_IS_DEFAULT",
32
- fieldName: "isDefault",
33
- required: false,
34
- fieldType: "checkbox",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "ORGANIZATION_USER_ORGANIZATION_CODE",
42
- fieldName: "organizationCode",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "ORGANIZATION_USER_USERNAME",
52
- fieldName: "username",
53
- required: false,
54
- fieldType: "text",
55
- },
56
- },
57
- ];
58
-
59
- return (
60
- <TemplateGrid
61
- apiActions={apiActions}
62
- data={data}
63
- setData={setData}
64
- editMode={{ editMode: "row" }}
65
- formElements={formElements}
66
- keyColumnName={"id"}
67
- gridTitle="ORGANIZATION_USER_PLURAL"
68
- girdIcon="table-cells"
69
- editAction={{ isEnabled: true, authority: "ORGANIZATION_USER_EDIT" }}
70
- deleteAction={{ isEnabled: true, authority: "ORGANIZATION_USER_DELETE" }}
71
- />
72
- );
73
- };
74
-
75
- export default OrganizationUserGrid;
@@ -1,98 +0,0 @@
1
- import { useState } from "react";
2
- import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
3
- import useApiActions from "../../hooks/useApiActions";
4
- import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
5
-
6
- const OrganizationUserRoleGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/organizationuserrole/all",
10
- deleteById: "api/v1/admin/organizationuserrole",
11
- save: "api/v1/admin/organizationuserrole",
12
- findById: "api/v1/admin/organizationuserrole",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "ORGANIZATION_USER_ROLE_END_DATE",
22
- fieldName: "endDate",
23
- required: false,
24
- fieldType: "datetime",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "ORGANIZATION_USER_ROLE_IS_ACTIVE",
32
- fieldName: "isActive",
33
- required: false,
34
- fieldType: "checkbox",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "ORGANIZATION_USER_ROLE_ORGANIZATION_CODE",
42
- fieldName: "organizationCode",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "ORGANIZATION_USER_ROLE_ROLE_ID",
52
- fieldName: "roleId",
53
- required: false,
54
- fieldType: "text",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "ORGANIZATION_USER_ROLE_START_DATE",
62
- fieldName: "startDate",
63
- required: false,
64
- fieldType: "datetime",
65
- },
66
- },
67
- {
68
- type: "field",
69
- mode: "props",
70
- props: {
71
- fieldLabel: "ORGANIZATION_USER_ROLE_USERNAME",
72
- fieldName: "username",
73
- required: false,
74
- fieldType: "text",
75
- },
76
- },
77
- ];
78
-
79
- return (
80
- <TemplateGrid
81
- apiActions={apiActions}
82
- data={data}
83
- setData={setData}
84
- editMode={{ editMode: "row" }}
85
- formElements={formElements}
86
- keyColumnName={"id"}
87
- gridTitle="ORGANIZATION_USER_ROLE_PLURAL"
88
- girdIcon="table-cells"
89
- editAction={{ isEnabled: true, authority: "ORGANIZATION_USER_ROLE_EDIT" }}
90
- deleteAction={{
91
- isEnabled: true,
92
- authority: "ORGANIZATION_USER_ROLE_DELETE",
93
- }}
94
- />
95
- );
96
- };
97
-
98
- export default OrganizationUserRoleGrid;
@@ -1,155 +0,0 @@
1
- import { useState } from "react";
2
- import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
3
- import useApiActions from "../../hooks/useApiActions";
4
- import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
5
-
6
- const ReportGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/report/all",
10
- deleteById: "api/v1/admin/report",
11
- save: "api/v1/admin/report",
12
- findById: "api/v1/admin/report",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "REPORT_DATASOURCE_CON_ID",
22
- fieldName: "datasourceConId",
23
- required: false,
24
- fieldType: "text",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "REPORT_REPORT_BLUE_PRINT_ID",
32
- fieldName: "reportBluePrintId",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "REPORT_REPORT_CATEGORY",
42
- fieldName: "reportCategory",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "REPORT_REPORT_CODE",
52
- fieldName: "reportCode",
53
- required: false,
54
- fieldType: "text",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "REPORT_REPORT_EXCEL_DATA_QUERY_ID",
62
- fieldName: "reportExcelDataQueryId",
63
- required: false,
64
- fieldType: "text",
65
- },
66
- },
67
- {
68
- type: "field",
69
- mode: "props",
70
- props: {
71
- fieldLabel: "REPORT_REPORT_EXPORT_NAME",
72
- fieldName: "reportExportName",
73
- required: false,
74
- fieldType: "text",
75
- },
76
- },
77
- {
78
- type: "field",
79
- mode: "props",
80
- props: {
81
- fieldLabel: "REPORT_REPORT_JASPER_NAME",
82
- fieldName: "reportJasperName",
83
- required: false,
84
- fieldType: "text",
85
- },
86
- },
87
- {
88
- type: "field",
89
- mode: "props",
90
- props: {
91
- fieldLabel: "REPORT_REPORT_JASPER_PATH",
92
- fieldName: "reportJasperPath",
93
- required: false,
94
- fieldType: "text",
95
- },
96
- },
97
- {
98
- type: "field",
99
- mode: "props",
100
- props: {
101
- fieldLabel: "REPORT_REPORT_MENU_CODE",
102
- fieldName: "reportMenuCode",
103
- required: false,
104
- fieldType: "text",
105
- },
106
- },
107
- {
108
- type: "field",
109
- mode: "props",
110
- props: {
111
- fieldLabel: "REPORT_REPORT_NAME",
112
- fieldName: "reportName",
113
- required: false,
114
- fieldType: "text",
115
- },
116
- },
117
- {
118
- type: "field",
119
- mode: "props",
120
- props: {
121
- fieldLabel: "REPORT_REPORT_TYPE",
122
- fieldName: "reportType",
123
- required: false,
124
- fieldType: "text",
125
- },
126
- },
127
- {
128
- type: "field",
129
- mode: "props",
130
- props: {
131
- fieldLabel: "REPORT_USE_SYS_DATASOURCE",
132
- fieldName: "useSysDatasource",
133
- required: false,
134
- fieldType: "checkbox",
135
- },
136
- },
137
- ];
138
-
139
- return (
140
- <TemplateGrid
141
- apiActions={apiActions}
142
- data={data}
143
- setData={setData}
144
- editMode={{ editMode: "row" }}
145
- formElements={formElements}
146
- keyColumnName={"id"}
147
- gridTitle="REPORT_PLURAL"
148
- girdIcon="table-cells"
149
- editAction={{ isEnabled: true, authority: "REPORT_EDIT" }}
150
- deleteAction={{ isEnabled: true, authority: "REPORT_DELETE" }}
151
- />
152
- );
153
- };
154
-
155
- export default ReportGrid;
@@ -1,95 +0,0 @@
1
- import { useState } from "react";
2
- import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
3
- import useApiActions from "../../hooks/useApiActions";
4
- import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
5
-
6
- const ReportParameterGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/reportparameter/all",
10
- deleteById: "api/v1/admin/reportparameter",
11
- save: "api/v1/admin/reportparameter",
12
- findById: "api/v1/admin/reportparameter",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "REPORT_PARAMETER_DEFAULT_VALUE",
22
- fieldName: "defaultValue",
23
- required: false,
24
- fieldType: "text",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "REPORT_PARAMETER_ENABLED",
32
- fieldName: "enabled",
33
- required: false,
34
- fieldType: "checkbox",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "REPORT_PARAMETER_ENTITY_PARAMETER_ID",
42
- fieldName: "entityParameterId",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "REPORT_PARAMETER_HIDDEN",
52
- fieldName: "hidden",
53
- required: false,
54
- fieldType: "checkbox",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "REPORT_PARAMETER_MANDATORY",
62
- fieldName: "mandatory",
63
- required: false,
64
- fieldType: "checkbox",
65
- },
66
- },
67
- {
68
- type: "field",
69
- mode: "props",
70
- props: {
71
- fieldLabel: "REPORT_PARAMETER_REPORT_ID",
72
- fieldName: "reportId",
73
- required: false,
74
- fieldType: "text",
75
- },
76
- },
77
- ];
78
-
79
- return (
80
- <TemplateGrid
81
- apiActions={apiActions}
82
- data={data}
83
- setData={setData}
84
- editMode={{ editMode: "row" }}
85
- formElements={formElements}
86
- keyColumnName={"id"}
87
- gridTitle="REPORT_PARAMETER_PLURAL"
88
- girdIcon="table-cells"
89
- editAction={{ isEnabled: true, authority: "REPORT_PARAMETER_EDIT" }}
90
- deleteAction={{ isEnabled: true, authority: "REPORT_PARAMETER_DELETE" }}
91
- />
92
- );
93
- };
94
-
95
- export default ReportParameterGrid;