@asaleh37/ui-base 1.0.8 → 1.1.0
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/App.tsx +31 -0
- package/src/components/BaseApp.tsx +2 -3
- package/src/components/admin/AttachmentGrid.tsx +116 -0
- package/src/components/admin/AuthorityGrid.tsx +88 -0
- package/src/components/admin/BluePrintGrid.tsx +55 -0
- package/src/components/admin/BluePrintPageGrid.tsx +85 -0
- package/src/components/admin/BluePrintPointGrid.tsx +85 -0
- package/src/components/admin/DashboardGrid.tsx +95 -0
- package/src/components/admin/DashboardWidgetGrid.tsx +75 -0
- package/src/components/admin/DataQueryGrid.tsx +75 -0
- package/src/components/admin/DataQueryParameterGrid.tsx +98 -0
- package/src/components/admin/DatasourceConnectionGrid.tsx +98 -0
- package/src/components/admin/EmployeeGrid.tsx +105 -0
- package/src/components/admin/EntityParameterGrid.tsx +125 -0
- package/src/components/admin/ExcelUploaderDetailGrid.tsx +78 -0
- package/src/components/admin/ExcelUploaderHeaderGrid.tsx +78 -0
- package/src/components/admin/LookupGrid.tsx +95 -0
- package/src/components/admin/MailAttachmentGrid.tsx +65 -0
- package/src/components/admin/MailBodyGrid.tsx +105 -0
- package/src/components/admin/MailNotificationQueueGrid.tsx +131 -0
- package/src/components/admin/MailRecipientGrid.tsx +75 -0
- package/src/components/admin/MailTemplateGrid.tsx +145 -0
- package/src/components/admin/NewTableGrid.tsx +65 -0
- package/src/components/admin/NotificationGrid.tsx +115 -0
- package/src/components/admin/NotificationQueueGrid.tsx +125 -0
- package/src/components/admin/OrganizationApplicationGrid.tsx +81 -0
- package/src/components/admin/OrganizationGrid.tsx +65 -0
- package/src/components/admin/OrganizationRankGrid.tsx +85 -0
- package/src/components/admin/OrganizationUnitGrid.tsx +85 -0
- package/src/components/admin/OrganizationUserGrid.tsx +75 -0
- package/src/components/admin/OrganizationUserRoleGrid.tsx +98 -0
- package/src/components/admin/ReportGrid.tsx +155 -0
- package/src/components/admin/ReportParameterGrid.tsx +95 -0
- package/src/components/admin/RoleAuthorityGrid.tsx +65 -0
- package/src/components/admin/RoleGrid.tsx +78 -0
- package/src/components/admin/UserAccountGrid.tsx +65 -0
- package/src/components/admin/UserRequestGrid.tsx +145 -0
- package/src/components/admin/WidgetGrid.tsx +175 -0
- package/src/components/admin/WorkflowDocumentActionGrid.tsx +111 -0
- package/src/components/admin/WorkflowDocumentActionHistoryGrid.tsx +111 -0
- package/src/components/admin/WorkflowDocumentActionMailGrid.tsx +71 -0
- package/src/components/admin/WorkflowDocumentGrid.tsx +185 -0
- package/src/components/admin/WorkflowDocumentMailLogGrid.tsx +141 -0
- package/src/components/admin/WorkflowDocumentStatusGrid.tsx +121 -0
- package/src/components/common/Home.tsx +31 -0
- package/src/components/common/LanguageSwitcher.tsx +25 -0
- package/src/components/common/LayoutHandlers.tsx +12 -0
- package/src/components/common/LoadingMask.tsx +19 -0
- package/src/components/common/Login.tsx +183 -0
- package/src/components/templates/DataEntryTemplates/DataEntryTypes.ts +288 -0
- package/src/components/templates/DataEntryTemplates/DataEntryUtil.ts +201 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormAction.tsx +60 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +194 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx +98 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx +64 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx +94 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/Datefield.tsx +65 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/DatetimeField.tsx +64 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/FiltersPanel.tsx +237 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField.tsx +9 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +256 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx +188 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx +844 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridMultiRecordAction.tsx +89 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridRecordAction.tsx +92 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridTopBar.tsx +228 -0
- package/src/components/templates/DataEntryTemplates/useApiActions.ts +125 -0
- package/src/components/templates/TransferList.tsx +250 -0
- package/src/components/templates/Window/ConfirmationWindow.tsx +55 -0
- package/src/components/templates/visuals/TemplateDashboard.tsx +126 -0
- package/src/components/templates/visuals/charts/TemplateBarChart.tsx +16 -0
- package/src/components/templates/visuals/charts/TemplateDataCard.tsx +60 -0
- package/src/components/templates/visuals/charts/TemplateGauge.tsx +16 -0
- package/src/components/templates/visuals/charts/TemplateLineChart.tsx +16 -0
- package/src/components/templates/visuals/charts/TemplateLineProgress.tsx +40 -0
- package/src/components/templates/visuals/charts/TemplatePieChart.tsx +25 -0
- package/src/hooks/UseConfirmationWindow.tsx +54 -0
- package/src/hooks/UseMobile.tsx +13 -0
- package/src/hooks/UseSession.tsx +26 -0
- package/src/hooks/UseWindow.tsx +106 -0
- package/src/hooks/useAxios.tsx +271 -0
- package/src/hooks/useLoadingMask.tsx +16 -0
- package/src/layout/DrawerHeader.tsx +10 -0
- package/src/layout/Layout.tsx +122 -0
- package/src/layout/MainContent.tsx +43 -0
- package/src/layout/MobileDrawer.tsx +103 -0
- package/src/layout/NavigationTree.tsx +284 -0
- package/src/layout/SideBar.tsx +80 -0
- package/src/layout/TopBar.tsx +142 -0
- package/src/locales/arabic/adminLocalsAr.json +356 -0
- package/src/locales/arabic/common.json +34 -0
- package/src/locales/arabic/index.ts +7 -0
- package/src/locales/english/adminLocalsEn.json +356 -0
- package/src/locales/english/common.json +33 -0
- package/src/locales/english/index.ts +6 -0
- package/src/locales/english/index.tsx +0 -0
- package/src/locales/i18n.ts +15 -0
- package/src/locales/index.ts +9 -0
- package/src/navigationItems/Administration/adminNavigationItems.tsx +182 -0
- package/src/navigationItems/Administration/index.tsx +71 -0
- package/src/navigationItems/common/CommonNavigationItems.tsx +12 -0
- package/src/navigationItems/common/index.tsx +7 -0
- package/src/navigationItems/index.tsx +34 -0
- package/src/redux/features/administration/AdministrationStoresMetaData.ts +72 -0
- package/src/redux/features/business/BusinessStoresMetaData.ts +3 -0
- package/src/redux/features/business/CommonStoreSlice.ts +37 -0
- package/src/redux/features/common/AppInfoSlice.ts +30 -0
- package/src/redux/features/common/AppLayoutSlice.ts +37 -0
- package/src/redux/features/common/LoadingMaskSlice.ts +30 -0
- package/src/redux/features/common/UserSessionSlice.ts +62 -0
- package/src/redux/store.ts +10 -10
- package/src/routes/administration/adminRoutes.tsx +259 -0
- package/src/routes/administration/index.ts +4 -0
- package/src/routes/index.ts +11 -0
- package/src/routes/types/index.ts +5 -0
- package/src/styles/index.css +20 -0
- package/src/theme/DarkThemeOptions.ts +30 -0
- package/src/theme/LightThemeOptions.ts +34 -0
- package/src/util/AppUtils.ts +18 -0
- package/src/util/constants.ts +2 -0
- package/tsconfig.json +2 -2
- package/src/MyComponent1.tsx +0 -16
- package/src/components/Counter.tsx +0 -32
- package/src/redux/CounterSlice.ts +0 -17
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
+
import useApiActions from "../templates/DataEntryTemplates/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;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
+
import useApiActions from "../templates/DataEntryTemplates/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;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
+
import useApiActions from "../templates/DataEntryTemplates/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;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
+
import useApiActions from "../templates/DataEntryTemplates/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;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
+
import useApiActions from "../templates/DataEntryTemplates/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;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
+
import useApiActions from "../templates/DataEntryTemplates/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;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
+
import useApiActions from "../templates/DataEntryTemplates/useApiActions";
|
|
4
|
+
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
+
|
|
6
|
+
const OrganizationRankGrid: React.FC = () => {
|
|
7
|
+
const [data, setData] = useState([]);
|
|
8
|
+
const apiActions = useApiActions({
|
|
9
|
+
findAll: "api/v1/admin/organizationrank/all",
|
|
10
|
+
deleteById: "api/v1/admin/organizationrank",
|
|
11
|
+
save: "api/v1/admin/organizationrank",
|
|
12
|
+
findById: "api/v1/admin/organizationrank",
|
|
13
|
+
setData: setData,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const formElements: Array<FormElementProps> = [
|
|
17
|
+
{
|
|
18
|
+
type: "field",
|
|
19
|
+
mode: "props",
|
|
20
|
+
props: {
|
|
21
|
+
fieldLabel: "ORGANIZATION_RANK_ENABLED",
|
|
22
|
+
fieldName: "enabled",
|
|
23
|
+
required: false,
|
|
24
|
+
fieldType: "checkbox",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "field",
|
|
29
|
+
mode: "props",
|
|
30
|
+
props: {
|
|
31
|
+
fieldLabel: "ORGANIZATION_RANK_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_RANK_RANK_CODE",
|
|
42
|
+
fieldName: "rankCode",
|
|
43
|
+
required: false,
|
|
44
|
+
fieldType: "text",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "field",
|
|
49
|
+
mode: "props",
|
|
50
|
+
props: {
|
|
51
|
+
fieldLabel: "ORGANIZATION_RANK_RANK_NAME",
|
|
52
|
+
fieldName: "rankName",
|
|
53
|
+
required: false,
|
|
54
|
+
fieldType: "text",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "field",
|
|
59
|
+
mode: "props",
|
|
60
|
+
props: {
|
|
61
|
+
fieldLabel: "ORGANIZATION_RANK_RANK_ORDER",
|
|
62
|
+
fieldName: "rankOrder",
|
|
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_RANK_PLURAL"
|
|
78
|
+
girdIcon="table-cells"
|
|
79
|
+
editAction={{ isEnabled: true, authority: "ORGANIZATION_RANK_EDIT" }}
|
|
80
|
+
deleteAction={{ isEnabled: true, authority: "ORGANIZATION_RANK_DELETE" }}
|
|
81
|
+
/>
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default OrganizationRankGrid;
|