@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,78 @@
|
|
|
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 ExcelUploaderDetailGrid: React.FC = () => {
|
|
7
|
+
const [data, setData] = useState([]);
|
|
8
|
+
const apiActions = useApiActions({
|
|
9
|
+
findAll: "api/v1/admin/exceluploaderdetail/all",
|
|
10
|
+
deleteById: "api/v1/admin/exceluploaderdetail",
|
|
11
|
+
save: "api/v1/admin/exceluploaderdetail",
|
|
12
|
+
findById: "api/v1/admin/exceluploaderdetail",
|
|
13
|
+
setData: setData,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const formElements: Array<FormElementProps> = [
|
|
17
|
+
{
|
|
18
|
+
type: "field",
|
|
19
|
+
mode: "props",
|
|
20
|
+
props: {
|
|
21
|
+
fieldLabel: "EXCEL_UPLOADER_DETAIL_COLUMN_INDEX",
|
|
22
|
+
fieldName: "columnIndex",
|
|
23
|
+
required: false,
|
|
24
|
+
fieldType: "text",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "field",
|
|
29
|
+
mode: "props",
|
|
30
|
+
props: {
|
|
31
|
+
fieldLabel: "EXCEL_UPLOADER_DETAIL_EXCEL_UPLOADER_HEADER_ID",
|
|
32
|
+
fieldName: "excelUploaderHeaderId",
|
|
33
|
+
required: false,
|
|
34
|
+
fieldType: "text",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "field",
|
|
39
|
+
mode: "props",
|
|
40
|
+
props: {
|
|
41
|
+
fieldLabel: "EXCEL_UPLOADER_DETAIL_LOOKUP_QUERY_ID",
|
|
42
|
+
fieldName: "lookupQueryId",
|
|
43
|
+
required: false,
|
|
44
|
+
fieldType: "text",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "field",
|
|
49
|
+
mode: "props",
|
|
50
|
+
props: {
|
|
51
|
+
fieldLabel: "EXCEL_UPLOADER_DETAIL_TABLE_FIELD",
|
|
52
|
+
fieldName: "tableField",
|
|
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="EXCEL_UPLOADER_DETAIL_PLURAL"
|
|
68
|
+
girdIcon="table-cells"
|
|
69
|
+
editAction={{ isEnabled: true, authority: "EXCEL_UPLOADER_DETAIL_EDIT" }}
|
|
70
|
+
deleteAction={{
|
|
71
|
+
isEnabled: true,
|
|
72
|
+
authority: "EXCEL_UPLOADER_DETAIL_DELETE",
|
|
73
|
+
}}
|
|
74
|
+
/>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export default ExcelUploaderDetailGrid;
|
|
@@ -0,0 +1,78 @@
|
|
|
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 ExcelUploaderHeaderGrid: React.FC = () => {
|
|
7
|
+
const [data, setData] = useState([]);
|
|
8
|
+
const apiActions = useApiActions({
|
|
9
|
+
findAll: "api/v1/admin/exceluploaderheader/all",
|
|
10
|
+
deleteById: "api/v1/admin/exceluploaderheader",
|
|
11
|
+
save: "api/v1/admin/exceluploaderheader",
|
|
12
|
+
findById: "api/v1/admin/exceluploaderheader",
|
|
13
|
+
setData: setData,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const formElements: Array<FormElementProps> = [
|
|
17
|
+
{
|
|
18
|
+
type: "field",
|
|
19
|
+
mode: "props",
|
|
20
|
+
props: {
|
|
21
|
+
fieldLabel: "EXCEL_UPLOADER_HEADER_UPLOADER_CONNECTION_ID",
|
|
22
|
+
fieldName: "uploaderConnectionId",
|
|
23
|
+
required: false,
|
|
24
|
+
fieldType: "text",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "field",
|
|
29
|
+
mode: "props",
|
|
30
|
+
props: {
|
|
31
|
+
fieldLabel: "EXCEL_UPLOADER_HEADER_UPLOADER_DATABASE_NAME",
|
|
32
|
+
fieldName: "uploaderDatabaseName",
|
|
33
|
+
required: false,
|
|
34
|
+
fieldType: "text",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "field",
|
|
39
|
+
mode: "props",
|
|
40
|
+
props: {
|
|
41
|
+
fieldLabel: "EXCEL_UPLOADER_HEADER_UPLOADER_NAME",
|
|
42
|
+
fieldName: "uploaderName",
|
|
43
|
+
required: false,
|
|
44
|
+
fieldType: "text",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "field",
|
|
49
|
+
mode: "props",
|
|
50
|
+
props: {
|
|
51
|
+
fieldLabel: "EXCEL_UPLOADER_HEADER_UPLOADER_TABLE_NAME",
|
|
52
|
+
fieldName: "uploaderTableName",
|
|
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="EXCEL_UPLOADER_HEADER_PLURAL"
|
|
68
|
+
girdIcon="table-cells"
|
|
69
|
+
editAction={{ isEnabled: true, authority: "EXCEL_UPLOADER_HEADER_EDIT" }}
|
|
70
|
+
deleteAction={{
|
|
71
|
+
isEnabled: true,
|
|
72
|
+
authority: "EXCEL_UPLOADER_HEADER_DELETE",
|
|
73
|
+
}}
|
|
74
|
+
/>
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export default ExcelUploaderHeaderGrid;
|
|
@@ -0,0 +1,95 @@
|
|
|
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 LookupGrid: React.FC = () => {
|
|
7
|
+
const [data, setData] = useState([]);
|
|
8
|
+
const apiActions = useApiActions({
|
|
9
|
+
findAll: "api/v1/admin/lookup/all",
|
|
10
|
+
deleteById: "api/v1/admin/lookup",
|
|
11
|
+
save: "api/v1/admin/lookup",
|
|
12
|
+
findById: "api/v1/admin/lookup",
|
|
13
|
+
setData: setData,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const formElements: Array<FormElementProps> = [
|
|
17
|
+
{
|
|
18
|
+
type: "field",
|
|
19
|
+
mode: "props",
|
|
20
|
+
props: {
|
|
21
|
+
fieldLabel: "LOOKUP_ENABLED",
|
|
22
|
+
fieldName: "enabled",
|
|
23
|
+
required: false,
|
|
24
|
+
fieldType: "checkbox",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "field",
|
|
29
|
+
mode: "props",
|
|
30
|
+
props: {
|
|
31
|
+
fieldLabel: "LOOKUP_LOOKUP_AR_DISPLAY",
|
|
32
|
+
fieldName: "lookupArDisplay",
|
|
33
|
+
required: false,
|
|
34
|
+
fieldType: "text",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "field",
|
|
39
|
+
mode: "props",
|
|
40
|
+
props: {
|
|
41
|
+
fieldLabel: "LOOKUP_LOOKUP_EN_DISPLAY",
|
|
42
|
+
fieldName: "lookupEnDisplay",
|
|
43
|
+
required: false,
|
|
44
|
+
fieldType: "text",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "field",
|
|
49
|
+
mode: "props",
|
|
50
|
+
props: {
|
|
51
|
+
fieldLabel: "LOOKUP_LOOKUP_TYPE",
|
|
52
|
+
fieldName: "lookupType",
|
|
53
|
+
required: false,
|
|
54
|
+
fieldType: "text",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "field",
|
|
59
|
+
mode: "props",
|
|
60
|
+
props: {
|
|
61
|
+
fieldLabel: "LOOKUP_LOOKUP_VALUE",
|
|
62
|
+
fieldName: "lookupValue",
|
|
63
|
+
required: false,
|
|
64
|
+
fieldType: "text",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "field",
|
|
69
|
+
mode: "props",
|
|
70
|
+
props: {
|
|
71
|
+
fieldLabel: "LOOKUP_ORG_CODE",
|
|
72
|
+
fieldName: "orgCode",
|
|
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="LOOKUP_PLURAL"
|
|
88
|
+
girdIcon="table-cells"
|
|
89
|
+
editAction={{ isEnabled: true, authority: "LOOKUP_EDIT" }}
|
|
90
|
+
deleteAction={{ isEnabled: true, authority: "LOOKUP_DELETE" }}
|
|
91
|
+
/>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export default LookupGrid;
|
|
@@ -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 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;
|
|
@@ -0,0 +1,105 @@
|
|
|
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 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;
|
|
@@ -0,0 +1,131 @@
|
|
|
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 MailNotificationQueueGrid: React.FC = () => {
|
|
7
|
+
const [data, setData] = useState([]);
|
|
8
|
+
const apiActions = useApiActions({
|
|
9
|
+
findAll: "api/v1/admin/mailnotificationqueue/all",
|
|
10
|
+
deleteById: "api/v1/admin/mailnotificationqueue",
|
|
11
|
+
save: "api/v1/admin/mailnotificationqueue",
|
|
12
|
+
findById: "api/v1/admin/mailnotificationqueue",
|
|
13
|
+
setData: setData,
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const formElements: Array<FormElementProps> = [
|
|
17
|
+
{
|
|
18
|
+
type: "field",
|
|
19
|
+
mode: "props",
|
|
20
|
+
props: {
|
|
21
|
+
fieldLabel: "MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_ATTACHED_REPORT_ID",
|
|
22
|
+
fieldName: "customMailAttachedReportId",
|
|
23
|
+
required: false,
|
|
24
|
+
fieldType: "text",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: "field",
|
|
29
|
+
mode: "props",
|
|
30
|
+
props: {
|
|
31
|
+
fieldLabel: "MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_BODY",
|
|
32
|
+
fieldName: "customMailBody",
|
|
33
|
+
required: false,
|
|
34
|
+
fieldType: "text",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "field",
|
|
39
|
+
mode: "props",
|
|
40
|
+
props: {
|
|
41
|
+
fieldLabel: "MAIL_NOTIFICATION_QUEUE_CUSTOM_MAIL_SUBJECT",
|
|
42
|
+
fieldName: "customMailSubject",
|
|
43
|
+
required: false,
|
|
44
|
+
fieldType: "text",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "field",
|
|
49
|
+
mode: "props",
|
|
50
|
+
props: {
|
|
51
|
+
fieldLabel: "MAIL_NOTIFICATION_QUEUE_CUSTOM_RECIPIENTS",
|
|
52
|
+
fieldName: "customRecipients",
|
|
53
|
+
required: false,
|
|
54
|
+
fieldType: "text",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: "field",
|
|
59
|
+
mode: "props",
|
|
60
|
+
props: {
|
|
61
|
+
fieldLabel: "MAIL_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: "MAIL_NOTIFICATION_QUEUE_MAIL_PARAMETERS",
|
|
72
|
+
fieldName: "mailParameters",
|
|
73
|
+
required: false,
|
|
74
|
+
fieldType: "text",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "field",
|
|
79
|
+
mode: "props",
|
|
80
|
+
props: {
|
|
81
|
+
fieldLabel: "MAIL_NOTIFICATION_QUEUE_MAIL_TEMPLATE_ID",
|
|
82
|
+
fieldName: "mailTemplateId",
|
|
83
|
+
required: false,
|
|
84
|
+
fieldType: "text",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
type: "field",
|
|
89
|
+
mode: "props",
|
|
90
|
+
props: {
|
|
91
|
+
fieldLabel: "MAIL_NOTIFICATION_QUEUE_NOTIFICATION_MESSAGE",
|
|
92
|
+
fieldName: "notificationMessage",
|
|
93
|
+
required: false,
|
|
94
|
+
fieldType: "text",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
type: "field",
|
|
99
|
+
mode: "props",
|
|
100
|
+
props: {
|
|
101
|
+
fieldLabel: "MAIL_NOTIFICATION_QUEUE_NOTIFICATION_TIME",
|
|
102
|
+
fieldName: "notificationTime",
|
|
103
|
+
required: false,
|
|
104
|
+
fieldType: "datetime",
|
|
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="MAIL_NOTIFICATION_QUEUE_PLURAL"
|
|
118
|
+
girdIcon="table-cells"
|
|
119
|
+
editAction={{
|
|
120
|
+
isEnabled: true,
|
|
121
|
+
authority: "MAIL_NOTIFICATION_QUEUE_EDIT",
|
|
122
|
+
}}
|
|
123
|
+
deleteAction={{
|
|
124
|
+
isEnabled: true,
|
|
125
|
+
authority: "MAIL_NOTIFICATION_QUEUE_DELETE",
|
|
126
|
+
}}
|
|
127
|
+
/>
|
|
128
|
+
);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export default MailNotificationQueueGrid;
|
|
@@ -0,0 +1,75 @@
|
|
|
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 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;
|