@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,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 MailAttachmentGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/mailattachment/all",
10
- deleteById: "api/v1/admin/mailattachment",
11
- save: "api/v1/admin/mailattachment",
12
- findById: "api/v1/admin/mailattachment",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "MAIL_ATTACHMENT_ENABLED",
22
- fieldName: "enabled",
23
- required: false,
24
- fieldType: "checkbox",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "MAIL_ATTACHMENT_MAIL_TEMPLATE_ID",
32
- fieldName: "mailTemplateId",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "MAIL_ATTACHMENT_REPORT_ID",
42
- fieldName: "reportId",
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={"id"}
57
- gridTitle="MAIL_ATTACHMENT_PLURAL"
58
- girdIcon="table-cells"
59
- editAction={{ isEnabled: true, authority: "MAIL_ATTACHMENT_EDIT" }}
60
- deleteAction={{ isEnabled: true, authority: "MAIL_ATTACHMENT_DELETE" }}
61
- />
62
- );
63
- };
64
-
65
- export default MailAttachmentGrid;
@@ -1,105 +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 MailBodyGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/mailbody/all",
10
- deleteById: "api/v1/admin/mailbody",
11
- save: "api/v1/admin/mailbody",
12
- findById: "api/v1/admin/mailbody",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "MAIL_BODY_BODY_CONTENT",
22
- fieldName: "bodyContent",
23
- required: false,
24
- fieldType: "text",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "MAIL_BODY_BODY_CONTENT_DATA_QUERY_ID",
32
- fieldName: "bodyContentDataQueryId",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "MAIL_BODY_BODY_ORDER",
42
- fieldName: "bodyOrder",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "MAIL_BODY_ENABLED",
52
- fieldName: "enabled",
53
- required: false,
54
- fieldType: "checkbox",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "MAIL_BODY_IS_MAIN",
62
- fieldName: "isMain",
63
- required: false,
64
- fieldType: "checkbox",
65
- },
66
- },
67
- {
68
- type: "field",
69
- mode: "props",
70
- props: {
71
- fieldLabel: "MAIL_BODY_MAIL_TEMPLATE_ID",
72
- fieldName: "mailTemplateId",
73
- required: false,
74
- fieldType: "text",
75
- },
76
- },
77
- {
78
- type: "field",
79
- mode: "props",
80
- props: {
81
- fieldLabel: "MAIL_BODY_PRINT_FOR_EACH_RECORD",
82
- fieldName: "printForEachRecord",
83
- required: false,
84
- fieldType: "checkbox",
85
- },
86
- },
87
- ];
88
-
89
- return (
90
- <TemplateGrid
91
- apiActions={apiActions}
92
- data={data}
93
- setData={setData}
94
- editMode={{ editMode: "row" }}
95
- formElements={formElements}
96
- keyColumnName={"id"}
97
- gridTitle="MAIL_BODY_PLURAL"
98
- girdIcon="table-cells"
99
- editAction={{ isEnabled: true, authority: "MAIL_BODY_EDIT" }}
100
- deleteAction={{ isEnabled: true, authority: "MAIL_BODY_DELETE" }}
101
- />
102
- );
103
- };
104
-
105
- export default MailBodyGrid;
@@ -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 MailRecipientGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/mailrecipient/all",
10
- deleteById: "api/v1/admin/mailrecipient",
11
- save: "api/v1/admin/mailrecipient",
12
- findById: "api/v1/admin/mailrecipient",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "MAIL_RECIPIENT_ENABLED",
22
- fieldName: "enabled",
23
- required: false,
24
- fieldType: "checkbox",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "MAIL_RECIPIENT_MAIL_TEMPLATE_ID",
32
- fieldName: "mailTemplateId",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "MAIL_RECIPIENT_RECIPIENT_MAIL",
42
- fieldName: "recipientMail",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "MAIL_RECIPIENT_RECIPIENT_TYPE",
52
- fieldName: "recipientType",
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="MAIL_RECIPIENT_PLURAL"
68
- girdIcon="table-cells"
69
- editAction={{ isEnabled: true, authority: "MAIL_RECIPIENT_EDIT" }}
70
- deleteAction={{ isEnabled: true, authority: "MAIL_RECIPIENT_DELETE" }}
71
- />
72
- );
73
- };
74
-
75
- export default MailRecipientGrid;
@@ -1,145 +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 MailTemplateGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/mailtemplate/all",
10
- deleteById: "api/v1/admin/mailtemplate",
11
- save: "api/v1/admin/mailtemplate",
12
- findById: "api/v1/admin/mailtemplate",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "MAIL_TEMPLATE_ENABLED",
22
- fieldName: "enabled",
23
- required: false,
24
- fieldType: "checkbox",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "MAIL_TEMPLATE_MAIL_CC_DATA_QUERY_ID",
32
- fieldName: "mailCcDataQueryId",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "MAIL_TEMPLATE_MAIL_SUBJECT",
42
- fieldName: "mailSubject",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "MAIL_TEMPLATE_MAIL_TEMPLATE_CODE",
52
- fieldName: "mailTemplateCode",
53
- required: false,
54
- fieldType: "text",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "MAIL_TEMPLATE_MAIL_TEMPLATE_NAME",
62
- fieldName: "mailTemplateName",
63
- required: false,
64
- fieldType: "text",
65
- },
66
- },
67
- {
68
- type: "field",
69
- mode: "props",
70
- props: {
71
- fieldLabel: "MAIL_TEMPLATE_MAIL_TO_DATA_QUERY_ID",
72
- fieldName: "mailToDataQueryId",
73
- required: false,
74
- fieldType: "text",
75
- },
76
- },
77
- {
78
- type: "field",
79
- mode: "props",
80
- props: {
81
- fieldLabel: "MAIL_TEMPLATE_PERIOD_TYPE",
82
- fieldName: "periodType",
83
- required: false,
84
- fieldType: "text",
85
- },
86
- },
87
- {
88
- type: "field",
89
- mode: "props",
90
- props: {
91
- fieldLabel: "MAIL_TEMPLATE_PERIOD_VALUE",
92
- fieldName: "periodValue",
93
- required: false,
94
- fieldType: "text",
95
- },
96
- },
97
- {
98
- type: "field",
99
- mode: "props",
100
- props: {
101
- fieldLabel: "MAIL_TEMPLATE_PERIODICAL",
102
- fieldName: "periodical",
103
- required: false,
104
- fieldType: "checkbox",
105
- },
106
- },
107
- {
108
- type: "field",
109
- mode: "props",
110
- props: {
111
- fieldLabel: "MAIL_TEMPLATE_START_SENDING_AT",
112
- fieldName: "startSendingAt",
113
- required: false,
114
- fieldType: "datetime",
115
- },
116
- },
117
- {
118
- type: "field",
119
- mode: "props",
120
- props: {
121
- fieldLabel: "MAIL_TEMPLATE_SUBJECT_DATA_QUERY_ID",
122
- fieldName: "subjectDataQueryId",
123
- required: false,
124
- fieldType: "text",
125
- },
126
- },
127
- ];
128
-
129
- return (
130
- <TemplateGrid
131
- apiActions={apiActions}
132
- data={data}
133
- setData={setData}
134
- editMode={{ editMode: "row" }}
135
- formElements={formElements}
136
- keyColumnName={"id"}
137
- gridTitle="MAIL_TEMPLATE_PLURAL"
138
- girdIcon="table-cells"
139
- editAction={{ isEnabled: true, authority: "MAIL_TEMPLATE_EDIT" }}
140
- deleteAction={{ isEnabled: true, authority: "MAIL_TEMPLATE_DELETE" }}
141
- />
142
- );
143
- };
144
-
145
- export default MailTemplateGrid;
@@ -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 NewTableGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/newtable/all",
10
- deleteById: "api/v1/admin/newtable",
11
- save: "api/v1/admin/newtable",
12
- findById: "api/v1/admin/newtable",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "NEW_TABLE_TEST_DATE",
22
- fieldName: "testDate",
23
- required: false,
24
- fieldType: "date",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "NEW_TABLE_TEST_LONG",
32
- fieldName: "testLong",
33
- required: false,
34
- fieldType: "number",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "NEW_TABLE_TEST_DECIMAL",
42
- fieldName: "testDecimal",
43
- required: false,
44
- fieldType: "number",
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={"id"}
57
- gridTitle="NEW_TABLE_PLURAL"
58
- girdIcon="table-cells"
59
- editAction={{ isEnabled: true, authority: "NEW_TABLE_EDIT" }}
60
- deleteAction={{ isEnabled: true, authority: "NEW_TABLE_DELETE" }}
61
- />
62
- );
63
- };
64
-
65
- export default NewTableGrid;
@@ -1,115 +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 NotificationGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/notification/all",
10
- deleteById: "api/v1/admin/notification",
11
- save: "api/v1/admin/notification",
12
- findById: "api/v1/admin/notification",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "NOTIFICATION_ENABLED",
22
- fieldName: "enabled",
23
- required: false,
24
- fieldType: "checkbox",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "NOTIFICATION_NOTIFICATION_ACTION_KEY",
32
- fieldName: "notificationActionKey",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "NOTIFICATION_NOTIFICATION_ACTION_PAYLOAD",
42
- fieldName: "notificationActionPayload",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "NOTIFICATION_NOTIFICATION_CODE",
52
- fieldName: "notificationCode",
53
- required: false,
54
- fieldType: "text",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "NOTIFICATION_NOTIFICATION_ICON",
62
- fieldName: "notificationIcon",
63
- required: false,
64
- fieldType: "text",
65
- },
66
- },
67
- {
68
- type: "field",
69
- mode: "props",
70
- props: {
71
- fieldLabel: "NOTIFICATION_NOTIFICATION_QUERY_ID",
72
- fieldName: "notificationQueryId",
73
- required: false,
74
- fieldType: "text",
75
- },
76
- },
77
- {
78
- type: "field",
79
- mode: "props",
80
- props: {
81
- fieldLabel: "NOTIFICATION_NOTIFICATION_TEXT",
82
- fieldName: "notificationText",
83
- required: false,
84
- fieldType: "text",
85
- },
86
- },
87
- {
88
- type: "field",
89
- mode: "props",
90
- props: {
91
- fieldLabel: "NOTIFICATION_USERS_TO_NOTIFY_QUERY_ID",
92
- fieldName: "usersToNotifyQueryId",
93
- required: false,
94
- fieldType: "text",
95
- },
96
- },
97
- ];
98
-
99
- return (
100
- <TemplateGrid
101
- apiActions={apiActions}
102
- data={data}
103
- setData={setData}
104
- editMode={{ editMode: "row" }}
105
- formElements={formElements}
106
- keyColumnName={"id"}
107
- gridTitle="NOTIFICATION_PLURAL"
108
- girdIcon="table-cells"
109
- editAction={{ isEnabled: true, authority: "NOTIFICATION_EDIT" }}
110
- deleteAction={{ isEnabled: true, authority: "NOTIFICATION_DELETE" }}
111
- />
112
- );
113
- };
114
-
115
- export default NotificationGrid;
@@ -1,125 +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 NotificationQueueGrid: React.FC = () => {
7
- const [data, setData] = useState([]);
8
- const apiActions = useApiActions({
9
- findAll: "api/v1/admin/notificationqueue/all",
10
- deleteById: "api/v1/admin/notificationqueue",
11
- save: "api/v1/admin/notificationqueue",
12
- findById: "api/v1/admin/notificationqueue",
13
- setData: setData,
14
- });
15
-
16
- const formElements: Array<FormElementProps> = [
17
- {
18
- type: "field",
19
- mode: "props",
20
- props: {
21
- fieldLabel: "NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_KEY",
22
- fieldName: "customNotificationActionKey",
23
- required: false,
24
- fieldType: "text",
25
- },
26
- },
27
- {
28
- type: "field",
29
- mode: "props",
30
- props: {
31
- fieldLabel: "NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ACTION_PAYLOAD",
32
- fieldName: "customNotificationActionPayload",
33
- required: false,
34
- fieldType: "text",
35
- },
36
- },
37
- {
38
- type: "field",
39
- mode: "props",
40
- props: {
41
- fieldLabel: "NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_ICON",
42
- fieldName: "customNotificationIcon",
43
- required: false,
44
- fieldType: "text",
45
- },
46
- },
47
- {
48
- type: "field",
49
- mode: "props",
50
- props: {
51
- fieldLabel: "NOTIFICATION_QUEUE_CUSTOM_NOTIFICATION_TEXT",
52
- fieldName: "customNotificationText",
53
- required: false,
54
- fieldType: "text",
55
- },
56
- },
57
- {
58
- type: "field",
59
- mode: "props",
60
- props: {
61
- fieldLabel: "NOTIFICATION_QUEUE_IS_NOTIFIED",
62
- fieldName: "isNotified",
63
- required: false,
64
- fieldType: "checkbox",
65
- },
66
- },
67
- {
68
- type: "field",
69
- mode: "props",
70
- props: {
71
- fieldLabel: "NOTIFICATION_QUEUE_NOTIFICATION_CODE",
72
- fieldName: "notificationCode",
73
- required: false,
74
- fieldType: "text",
75
- },
76
- },
77
- {
78
- type: "field",
79
- mode: "props",
80
- props: {
81
- fieldLabel: "NOTIFICATION_QUEUE_NOTIFICATION_PARAMS",
82
- fieldName: "notificationParams",
83
- required: false,
84
- fieldType: "text",
85
- },
86
- },
87
- {
88
- type: "field",
89
- mode: "props",
90
- props: {
91
- fieldLabel: "NOTIFICATION_QUEUE_NOTIFIED_TIME",
92
- fieldName: "notifiedTime",
93
- required: false,
94
- fieldType: "datetime",
95
- },
96
- },
97
- {
98
- type: "field",
99
- mode: "props",
100
- props: {
101
- fieldLabel: "NOTIFICATION_QUEUE_USERNAME",
102
- fieldName: "username",
103
- required: false,
104
- fieldType: "text",
105
- },
106
- },
107
- ];
108
-
109
- return (
110
- <TemplateGrid
111
- apiActions={apiActions}
112
- data={data}
113
- setData={setData}
114
- editMode={{ editMode: "row" }}
115
- formElements={formElements}
116
- keyColumnName={"id"}
117
- gridTitle="NOTIFICATION_QUEUE_PLURAL"
118
- girdIcon="table-cells"
119
- editAction={{ isEnabled: true, authority: "NOTIFICATION_QUEUE_EDIT" }}
120
- deleteAction={{ isEnabled: true, authority: "NOTIFICATION_QUEUE_DELETE" }}
121
- />
122
- );
123
- };
124
-
125
- export default NotificationQueueGrid;