@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.
- package/dist/index.d.ts +20 -13
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -3
- package/src/components/App.tsx +1 -1
- package/src/components/BaseApp.tsx +2 -19
- package/src/components/administration/admin/OrgMemberRoleForm.tsx +83 -0
- package/src/components/administration/admin/OrganizationApplicationModuleGrid.tsx +131 -0
- package/src/components/administration/admin/OrganizationGrid.tsx +165 -0
- package/src/components/administration/admin/OrganizationMemberGrid.tsx +176 -0
- package/src/components/administration/admin/OrganizationMemberRoleGrid.tsx +87 -0
- package/src/components/{admin → administration/admin}/OrganizationRankGrid.tsx +49 -19
- package/src/components/administration/admin/OrganizationUnitGrid.tsx +139 -0
- package/src/components/administration/admin/OrganizationUnitTypeGrid.tsx +121 -0
- package/src/components/administration/admin/PersonGrid.tsx +195 -0
- package/src/components/{admin → administration/admin}/RoleAuthoritiesForm.tsx +30 -11
- package/src/components/administration/admin/SystemApplicationAuthorityGrid.tsx +142 -0
- package/src/components/administration/admin/SystemApplicationGrid.tsx +161 -0
- package/src/components/administration/admin/SystemApplicationModuleGrid.tsx +109 -0
- package/src/components/administration/admin/SystemApplicationRoleAuthorityGrid.tsx +67 -0
- package/src/components/administration/admin/SystemApplicationRoleGrid.tsx +130 -0
- package/src/components/administration/dev/BluePrintGrid.tsx +129 -0
- package/src/components/administration/dev/DashboardGrid.tsx +173 -0
- package/src/components/administration/dev/DashboardWidgetGrid.tsx +164 -0
- package/src/components/administration/dev/DataQueryGrid.tsx +206 -0
- package/src/components/administration/dev/DataQueryParameterGrid.tsx +191 -0
- package/src/components/administration/dev/DataQueryParametersForm.tsx +84 -0
- package/src/components/administration/dev/DatasourceConnectionGrid.tsx +150 -0
- package/src/components/administration/dev/EntityParameterGrid.tsx +279 -0
- package/src/components/administration/dev/LookupGrid.tsx +131 -0
- package/src/components/administration/dev/MailAttachmentGrid.tsx +155 -0
- package/src/components/administration/dev/MailBodyGrid.tsx +215 -0
- package/src/components/{admin → administration/dev}/MailNotificationQueueGrid.tsx +114 -26
- package/src/components/administration/dev/MailRecipientGrid.tsx +169 -0
- package/src/components/administration/dev/MailSenderConfigGrid.tsx +478 -0
- package/src/components/administration/dev/MailTemplateGrid.tsx +388 -0
- package/src/components/administration/dev/ReportGrid.tsx +504 -0
- package/src/components/administration/dev/ReportParameterGrid.tsx +186 -0
- package/src/components/administration/dev/ReportParametersForm.tsx +84 -0
- package/src/components/administration/dev/WidgetGrid.tsx +431 -0
- package/src/components/administration/dev/WorkflowDocumentActionGrid.tsx +264 -0
- package/src/components/administration/dev/WorkflowDocumentActionHistoryGrid.tsx +172 -0
- package/src/components/administration/dev/WorkflowDocumentActionMailGrid.tsx +161 -0
- package/src/components/administration/dev/WorkflowDocumentGrid.tsx +377 -0
- package/src/components/{admin → administration/dev}/WorkflowDocumentMailLogGrid.tsx +87 -10
- package/src/components/administration/dev/WorkflowDocumentStatusGrid.tsx +243 -0
- package/src/components/common/ChangeOrgForm.tsx +81 -0
- package/src/components/common/Home.tsx +28 -22
- package/src/components/common/LoadingMask.tsx +9 -4
- package/src/components/common/Login.tsx +9 -13
- package/src/components/templates/DataEntryTemplates/DataEntryTypes.ts +30 -6
- package/src/components/templates/DataEntryTemplates/DataEntryUtil.ts +46 -5
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementField.tsx +64 -5
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormElementGroup.tsx +11 -3
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/CheckBox.tsx +2 -2
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/ComboBox.tsx +1 -2
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/HtmlEditor.tsx +144 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/SystemLookupCombobox.tsx +55 -0
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/FormFields/TemplateTextField.tsx +9 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataForm/TemplateForm.tsx +45 -5
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/DataGridColumnsUtil.tsx +8 -7
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid.tsx +38 -10
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridRecordAction.tsx +4 -1
- package/src/components/templates/DataEntryTemplates/TemplateDataGrid/TemplateGridTopBar.tsx +3 -4
- package/src/components/templates/TransferList.tsx +16 -6
- package/src/components/templates/index.ts +0 -2
- package/src/components/templates/report/ExcelReportViewer.tsx +65 -0
- package/src/components/templates/report/ReportViewer.tsx +382 -0
- package/src/components/templates/visuals/DashboardRouteView.tsx +9 -0
- package/src/components/templates/visuals/DashboardViewer.tsx +148 -0
- package/src/components/templates/visuals/WidgetViewer.tsx +198 -0
- package/src/components/templates/visuals/charts/TemplateBarChart.tsx +9 -2
- package/src/components/templates/visuals/charts/TemplateDataCard.tsx +6 -31
- package/src/components/templates/visuals/charts/TemplateGauge.tsx +8 -3
- package/src/components/templates/visuals/charts/TemplateLineChart.tsx +8 -2
- package/src/components/templates/visuals/charts/TemplateLineProgress.tsx +5 -3
- package/src/components/templates/visuals/charts/TemplatePieChart.tsx +1 -2
- package/src/components/templates/workflow/WorkflowDocumentPanel.tsx +581 -0
- package/src/components/templates/workflow/WorkflowDocumentTimeLine.tsx +134 -0
- package/src/hooks/UseSession.tsx +3 -7
- package/src/hooks/UseWindow.tsx +2 -1
- package/src/hooks/useAxios.tsx +9 -27
- package/src/hooks/useLookupGridColumn.tsx +35 -0
- package/src/layout/Layout.tsx +2 -46
- package/src/layout/MainContent.tsx +60 -7
- package/src/layout/MobileDrawer.tsx +5 -5
- package/src/layout/NavigationTree.tsx +0 -1
- package/src/layout/RouteWrapper.tsx +36 -0
- package/src/layout/SideBar.tsx +15 -10
- package/src/layout/TopBar.tsx +139 -71
- package/src/locales/arabic/adminLocalsAr.json +81 -344
- package/src/locales/arabic/common.json +11 -1
- package/src/locales/arabic/devLocalsAr.json +280 -0
- package/src/locales/arabic/index.ts +2 -0
- package/src/locales/english/adminLocalsEn.json +86 -346
- package/src/locales/english/common.json +11 -1
- package/src/locales/english/devLocalsEn.json +281 -0
- package/src/locales/english/index.ts +3 -0
- package/src/main.tsx +5 -6
- package/src/navigationItems/Administration/adminNavigationItems.tsx +65 -99
- package/src/navigationItems/Administration/index.tsx +10 -65
- package/src/redux/features/administration/AdministrationStoresMetaData.ts +45 -12
- package/src/redux/features/common/AppLayoutSlice.ts +0 -8
- package/src/redux/features/common/CommonStoreSlice.ts +4 -0
- package/src/redux/features/common/SideBarSlice.ts +29 -0
- package/src/redux/features/common/UserSessionSlice.ts +15 -23
- package/src/redux/store.ts +1 -1
- package/src/routes/administration/adminRoutes.tsx +41 -222
- package/src/routes/administration/devRoutes.tsx +90 -0
- package/src/routes/administration/index.ts +5 -1
- package/src/routes/index.ts +1 -0
- package/src/styles/index.css +3 -3
- package/src/util/AppUtils.ts +5 -0
- package/vite.config.ts +14 -0
- package/src/components/admin/AttachmentGrid.tsx +0 -116
- package/src/components/admin/AuthorityGrid.tsx +0 -88
- package/src/components/admin/BluePrintGrid.tsx +0 -55
- package/src/components/admin/BluePrintPageGrid.tsx +0 -85
- package/src/components/admin/BluePrintPointGrid.tsx +0 -85
- package/src/components/admin/DashboardGrid.tsx +0 -95
- package/src/components/admin/DashboardWidgetGrid.tsx +0 -75
- package/src/components/admin/DataQueryGrid.tsx +0 -75
- package/src/components/admin/DataQueryParameterGrid.tsx +0 -98
- package/src/components/admin/DatasourceConnectionGrid.tsx +0 -98
- package/src/components/admin/EmployeeGrid.tsx +0 -105
- package/src/components/admin/EntityParameterGrid.tsx +0 -125
- package/src/components/admin/ExcelUploaderDetailGrid.tsx +0 -78
- package/src/components/admin/ExcelUploaderHeaderGrid.tsx +0 -78
- package/src/components/admin/LookupGrid.tsx +0 -95
- package/src/components/admin/MailAttachmentGrid.tsx +0 -65
- package/src/components/admin/MailBodyGrid.tsx +0 -105
- package/src/components/admin/MailRecipientGrid.tsx +0 -75
- package/src/components/admin/MailTemplateGrid.tsx +0 -145
- package/src/components/admin/NewTableGrid.tsx +0 -65
- package/src/components/admin/NotificationGrid.tsx +0 -115
- package/src/components/admin/NotificationQueueGrid.tsx +0 -125
- package/src/components/admin/OrganizationApplicationGrid.tsx +0 -81
- package/src/components/admin/OrganizationGrid.tsx +0 -65
- package/src/components/admin/OrganizationUnitGrid.tsx +0 -85
- package/src/components/admin/OrganizationUserGrid.tsx +0 -75
- package/src/components/admin/OrganizationUserRoleGrid.tsx +0 -98
- package/src/components/admin/ReportGrid.tsx +0 -155
- package/src/components/admin/ReportParameterGrid.tsx +0 -95
- package/src/components/admin/RoleAuthorityGrid.tsx +0 -65
- package/src/components/admin/RoleGrid.tsx +0 -132
- package/src/components/admin/UserAccountGrid.tsx +0 -65
- package/src/components/admin/UserRequestGrid.tsx +0 -145
- package/src/components/admin/WidgetGrid.tsx +0 -175
- package/src/components/admin/WorkflowDocumentActionGrid.tsx +0 -111
- package/src/components/admin/WorkflowDocumentActionHistoryGrid.tsx +0 -111
- package/src/components/admin/WorkflowDocumentActionMailGrid.tsx +0 -71
- package/src/components/admin/WorkflowDocumentGrid.tsx +0 -185
- package/src/components/admin/WorkflowDocumentStatusGrid.tsx +0 -121
- package/src/components/templates/visuals/TemplateDashboard.tsx +0 -126
- package/src/redux/features/CounterSlice.tsx +0 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommonStores } from "../common/CommonStoreSlice";
|
|
2
2
|
|
|
3
|
-
export const ADMINISTRATION_STORES:
|
|
3
|
+
export const ADMINISTRATION_STORES: CommonStores = {
|
|
4
4
|
SystemDataSourceType: {
|
|
5
5
|
autoLoad: false,
|
|
6
6
|
data: [{ value: "Mysql" }, { value: "Oracle" }, { value: "DB2" }],
|
|
@@ -10,11 +10,14 @@ export const ADMINISTRATION_STORES: CommonStoresInterface = {
|
|
|
10
10
|
autoLoad: false,
|
|
11
11
|
url: "",
|
|
12
12
|
data: [
|
|
13
|
-
{ value: "datetime" },
|
|
14
|
-
{ value: "date" },
|
|
15
13
|
{ value: "text" },
|
|
16
14
|
{ value: "number" },
|
|
17
|
-
{ value: "
|
|
15
|
+
{ value: "date" },
|
|
16
|
+
{ value: "datetime" },
|
|
17
|
+
{ value: "combobox" },
|
|
18
|
+
{ value: "checkbox" },
|
|
19
|
+
{ value: "html" },
|
|
20
|
+
{ value: "lookup" },
|
|
18
21
|
],
|
|
19
22
|
},
|
|
20
23
|
SystemReportTypes: {
|
|
@@ -39,34 +42,64 @@ export const ADMINISTRATION_STORES: CommonStoresInterface = {
|
|
|
39
42
|
url: "",
|
|
40
43
|
data: [{ name: "To" }, { name: "CC" }],
|
|
41
44
|
},
|
|
45
|
+
SystemOrganizations: {
|
|
46
|
+
autoLoad: true,
|
|
47
|
+
url: "api/v1/admin/organization/all",
|
|
48
|
+
authority: "DEVELOPMENT_ADMIN",
|
|
49
|
+
data: [],
|
|
50
|
+
},
|
|
51
|
+
SystemOrganizationRanks: {
|
|
52
|
+
autoLoad: true,
|
|
53
|
+
url: "api/v1/admin/organization/ranks/all",
|
|
54
|
+
authority: "DEVELOPMENT_ADMIN",
|
|
55
|
+
data: [],
|
|
56
|
+
},
|
|
57
|
+
SystemOrganizationUnits: {
|
|
58
|
+
autoLoad: true,
|
|
59
|
+
url: "api/v1/admin/organization/units/all",
|
|
60
|
+
authority: "DEVELOPMENT_ADMIN",
|
|
61
|
+
data: [],
|
|
62
|
+
},
|
|
42
63
|
SystemDataSources: {
|
|
43
64
|
autoLoad: true,
|
|
44
65
|
data: [],
|
|
45
66
|
authority: "DEVELOPMENT_ADMIN",
|
|
46
|
-
url: "api/v1/
|
|
67
|
+
url: "api/v1/dev/datasourceconnection/all",
|
|
47
68
|
},
|
|
48
69
|
SystemDataQueries: {
|
|
49
70
|
autoLoad: true,
|
|
50
71
|
data: [],
|
|
51
72
|
authority: "DEVELOPMENT_ADMIN",
|
|
52
|
-
url: "api/v1/
|
|
73
|
+
url: "api/v1/dev/dataquery/all",
|
|
74
|
+
},
|
|
75
|
+
SystemBluePrints: {
|
|
76
|
+
autoLoad: true,
|
|
77
|
+
data: [],
|
|
78
|
+
authority: "DEVELOPMENT_ADMIN",
|
|
79
|
+
url: "api/v1/dev/blueprint/all",
|
|
80
|
+
},
|
|
81
|
+
SystemReports: {
|
|
82
|
+
autoLoad: true,
|
|
83
|
+
data: [],
|
|
84
|
+
authority: "DEVELOPMENT_ADMIN",
|
|
85
|
+
url: "api/v1/dev/report/all",
|
|
53
86
|
},
|
|
54
87
|
SystemEntityParameters: {
|
|
55
88
|
autoLoad: true,
|
|
56
89
|
data: [],
|
|
57
90
|
authority: "DEVELOPMENT_ADMIN",
|
|
58
|
-
url: "api/v1/
|
|
91
|
+
url: "api/v1/dev/entityparameter/all",
|
|
59
92
|
},
|
|
60
|
-
|
|
93
|
+
SystemMailTemplates: {
|
|
61
94
|
autoLoad: true,
|
|
62
95
|
data: [],
|
|
63
96
|
authority: "DEVELOPMENT_ADMIN",
|
|
64
|
-
url: "api/v1/
|
|
97
|
+
url: "api/v1/dev/mailtemplate/all",
|
|
65
98
|
},
|
|
66
|
-
|
|
99
|
+
SystemWidgets: {
|
|
67
100
|
autoLoad: true,
|
|
68
101
|
data: [],
|
|
69
102
|
authority: "DEVELOPMENT_ADMIN",
|
|
70
|
-
url: "api/v1/
|
|
103
|
+
url: "api/v1/dev/widget/all",
|
|
71
104
|
},
|
|
72
105
|
};
|
|
@@ -3,13 +3,11 @@ import { createSlice } from "@reduxjs/toolkit";
|
|
|
3
3
|
export const DRAWER_WIDTH = 350;
|
|
4
4
|
|
|
5
5
|
interface AppLayoutState {
|
|
6
|
-
sideBarOpened: boolean;
|
|
7
6
|
themeMode: "light" | "dark" | string;
|
|
8
7
|
appDirection: "ltr" | "rtl";
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
const initialState: AppLayoutState = {
|
|
12
|
-
sideBarOpened: false,
|
|
13
11
|
themeMode: localStorage.getItem("themeMode") || "light",
|
|
14
12
|
appDirection: localStorage.getItem("language") == "ar" ? "rtl" : "ltr",
|
|
15
13
|
};
|
|
@@ -18,12 +16,6 @@ const AppLayoutSlice = createSlice({
|
|
|
18
16
|
name: "AppLayout",
|
|
19
17
|
initialState,
|
|
20
18
|
reducers: {
|
|
21
|
-
toggleSideBarState: (state) => {
|
|
22
|
-
state.sideBarOpened = !state.sideBarOpened;
|
|
23
|
-
},
|
|
24
|
-
setSideBarState: (state, action) => {
|
|
25
|
-
state.sideBarOpened = action.payload;
|
|
26
|
-
},
|
|
27
19
|
setThemeMode: (state, action) => {
|
|
28
20
|
state.themeMode = action.payload;
|
|
29
21
|
},
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createSlice } from "@reduxjs/toolkit";
|
|
2
|
+
|
|
3
|
+
export const DRAWER_WIDTH = 350;
|
|
4
|
+
|
|
5
|
+
interface SideBarState {
|
|
6
|
+
isOpened: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const initialState: SideBarState = {
|
|
10
|
+
isOpened: false,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const SideBarSlice = createSlice({
|
|
14
|
+
name: "SideBar",
|
|
15
|
+
initialState,
|
|
16
|
+
reducers: {
|
|
17
|
+
toggleSideBarState: (state) => {
|
|
18
|
+
debugger;
|
|
19
|
+
state.isOpened = !state.isOpened;
|
|
20
|
+
},
|
|
21
|
+
setSideBarState: (state, action) => {
|
|
22
|
+
debugger;
|
|
23
|
+
state.isOpened = action.payload;
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export const { toggleSideBarState, setSideBarState } = SideBarSlice.actions;
|
|
29
|
+
export default SideBarSlice.reducer;
|
|
@@ -4,31 +4,25 @@ export interface OrganizationProps {
|
|
|
4
4
|
organizationCode?: string;
|
|
5
5
|
organizationName?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface UserProfileProps {
|
|
8
|
-
username?: string;
|
|
9
|
-
currentOrganizationCode?: string;
|
|
10
|
-
userOrganizations?: Array<OrganizationProps>;
|
|
11
|
-
employeeNumber?: string;
|
|
12
|
-
employeeName?: string;
|
|
13
|
-
divisionCode?: string;
|
|
14
|
-
divisionName?: string;
|
|
15
|
-
departmentCode?: string;
|
|
16
|
-
departmentName?: string;
|
|
17
|
-
rankCode?: string;
|
|
18
|
-
rankName?: string;
|
|
19
|
-
sectionCode?: string;
|
|
20
|
-
sectionName?: string;
|
|
21
|
-
subsectionCode?: string;
|
|
22
|
-
subsectionName?: string;
|
|
23
|
-
extNumber?: string;
|
|
24
|
-
mobileNumber?: string;
|
|
25
|
-
email?: string;
|
|
26
|
-
}
|
|
27
7
|
|
|
28
8
|
export interface UserSessionProps {
|
|
29
9
|
value: {
|
|
30
10
|
isAuthenticated: boolean | null;
|
|
31
|
-
|
|
11
|
+
employeeNumber?: string;
|
|
12
|
+
employeeName?: string;
|
|
13
|
+
mobileNumber?: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
isEmployeeArchived?: string;
|
|
16
|
+
organizationCode?: string;
|
|
17
|
+
organizationUnitId?: string;
|
|
18
|
+
organizationUnitArName?: string;
|
|
19
|
+
organizationUnitEnName?: string;
|
|
20
|
+
organizationRankId?: string;
|
|
21
|
+
rankCode?: string;
|
|
22
|
+
rankName?: string;
|
|
23
|
+
rankOrder?: string;
|
|
24
|
+
currentOrganization?: any;
|
|
25
|
+
userOrganizations?: Array<OrganizationProps>;
|
|
32
26
|
authorities: Array<{ authority: string }>;
|
|
33
27
|
};
|
|
34
28
|
}
|
|
@@ -37,7 +31,6 @@ const initialState: UserSessionProps = {
|
|
|
37
31
|
value: {
|
|
38
32
|
isAuthenticated: null,
|
|
39
33
|
authorities: [],
|
|
40
|
-
userProfile: null,
|
|
41
34
|
},
|
|
42
35
|
};
|
|
43
36
|
|
|
@@ -52,7 +45,6 @@ const UserSessionSlice = createSlice({
|
|
|
52
45
|
state.value = {
|
|
53
46
|
isAuthenticated: false,
|
|
54
47
|
authorities: [],
|
|
55
|
-
userProfile: null,
|
|
56
48
|
};
|
|
57
49
|
},
|
|
58
50
|
},
|
package/src/redux/store.ts
CHANGED
|
@@ -1,172 +1,31 @@
|
|
|
1
1
|
import { SystemRoute } from "../types";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import ExcelUploaderDetailGrid from "../../components/admin/ExcelUploaderDetailGrid";
|
|
15
|
-
import ExcelUploaderHeaderGrid from "../../components/admin/ExcelUploaderHeaderGrid";
|
|
16
|
-
import LookupGrid from "../../components/admin/LookupGrid";
|
|
17
|
-
import MailAttachmentGrid from "../../components/admin/MailAttachmentGrid";
|
|
18
|
-
import MailBodyGrid from "../../components/admin/MailBodyGrid";
|
|
19
|
-
import MailNotificationQueueGrid from "../../components/admin/MailNotificationQueueGrid";
|
|
20
|
-
import MailRecipientGrid from "../../components/admin/MailRecipientGrid";
|
|
21
|
-
import MailTemplateGrid from "../../components/admin/MailTemplateGrid";
|
|
22
|
-
import NewTableGrid from "../../components/admin/NewTableGrid";
|
|
23
|
-
import NotificationGrid from "../../components/admin/NotificationGrid";
|
|
24
|
-
import NotificationQueueGrid from "../../components/admin/NotificationQueueGrid";
|
|
25
|
-
import OrganizationGrid from "../../components/admin/OrganizationGrid";
|
|
26
|
-
import OrganizationApplicationGrid from "../../components/admin/OrganizationApplicationGrid";
|
|
27
|
-
import OrganizationRankGrid from "../../components/admin/OrganizationRankGrid";
|
|
28
|
-
import OrganizationUnitGrid from "../../components/admin/OrganizationUnitGrid";
|
|
29
|
-
import OrganizationUserGrid from "../../components/admin/OrganizationUserGrid";
|
|
30
|
-
import OrganizationUserRoleGrid from "../../components/admin/OrganizationUserRoleGrid";
|
|
31
|
-
import ReportGrid from "../../components/admin/ReportGrid";
|
|
32
|
-
import ReportParameterGrid from "../../components/admin/ReportParameterGrid";
|
|
33
|
-
import RoleGrid from "../../components/admin/RoleGrid";
|
|
34
|
-
import RoleAuthorityGrid from "../../components/admin/RoleAuthorityGrid";
|
|
35
|
-
import UserAccountGrid from "../../components/admin/UserAccountGrid";
|
|
36
|
-
import UserRequestGrid from "../../components/admin/UserRequestGrid";
|
|
37
|
-
import WidgetGrid from "../../components/admin/WidgetGrid";
|
|
38
|
-
import WorkflowDocumentGrid from "../../components/admin/WorkflowDocumentGrid";
|
|
39
|
-
import WorkflowDocumentActionGrid from "../../components/admin/WorkflowDocumentActionGrid";
|
|
40
|
-
import WorkflowDocumentActionHistoryGrid from "../../components/admin/WorkflowDocumentActionHistoryGrid";
|
|
41
|
-
import WorkflowDocumentActionMailGrid from "../../components/admin/WorkflowDocumentActionMailGrid";
|
|
42
|
-
import WorkflowDocumentMailLogGrid from "../../components/admin/WorkflowDocumentMailLogGrid";
|
|
43
|
-
import WorkflowDocumentStatusGrid from "../../components/admin/WorkflowDocumentStatusGrid";
|
|
44
|
-
import AttachmentGrid from "../../components/admin/AttachmentGrid";
|
|
2
|
+
import OrganizationGrid from "../../components/administration/admin/OrganizationGrid";
|
|
3
|
+
import OrganizationMemberGrid from "../../components/administration/admin/OrganizationMemberGrid";
|
|
4
|
+
import OrganizationMemberRoleGrid from "../../components/administration/admin/OrganizationMemberRoleGrid";
|
|
5
|
+
import OrganizationRankGrid from "../../components/administration/admin/OrganizationRankGrid";
|
|
6
|
+
import OrganizationUnitGrid from "../../components/administration/admin/OrganizationUnitGrid";
|
|
7
|
+
import OrganizationUnitTypeGrid from "../../components/administration/admin/OrganizationUnitTypeGrid";
|
|
8
|
+
import PersonGrid from "../../components/administration/admin/PersonGrid";
|
|
9
|
+
import SystemApplicationGrid from "../../components/administration/admin/SystemApplicationGrid";
|
|
10
|
+
import SystemApplicationAuthorityGrid from "../../components/administration/admin/SystemApplicationAuthorityGrid";
|
|
11
|
+
import SystemApplicationModuleGrid from "../../components/administration/admin/SystemApplicationModuleGrid";
|
|
12
|
+
import SystemApplicationRoleGrid from "../../components/administration/admin/SystemApplicationRoleGrid";
|
|
13
|
+
import SystemApplicationRoleAuthorityGrid from "../../components/administration/admin/SystemApplicationRoleAuthorityGrid";
|
|
45
14
|
export const adminRoutes: Array<SystemRoute> = [
|
|
46
|
-
{
|
|
47
|
-
path: "admin/attachments",
|
|
48
|
-
component: AttachmentGrid,
|
|
49
|
-
authority: "ATTACHMENT_VIEW",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
path: "admin/authorities",
|
|
53
|
-
component: AuthorityGrid,
|
|
54
|
-
authority: "AUTHORITY_VIEW",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
path: "admin/blueprints",
|
|
58
|
-
component: BluePrintGrid,
|
|
59
|
-
authority: "BLUE_PRINT_VIEW",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
path: "admin/blueprintpages",
|
|
63
|
-
component: BluePrintPageGrid,
|
|
64
|
-
authority: "BLUE_PRINT_PAGE_VIEW",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
path: "admin/blueprintpoints",
|
|
68
|
-
component: BluePrintPointGrid,
|
|
69
|
-
authority: "BLUE_PRINT_POINT_VIEW",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
path: "admin/dashboards",
|
|
73
|
-
component: DashboardGrid,
|
|
74
|
-
authority: "DASHBOARD_VIEW",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
path: "admin/dashboardwidgets",
|
|
78
|
-
component: DashboardWidgetGrid,
|
|
79
|
-
authority: "DASHBOARD_WIDGET_VIEW",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
path: "admin/dataqueries",
|
|
83
|
-
component: DataQueryGrid,
|
|
84
|
-
authority: "DATA_QUERY_VIEW",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
path: "admin/dataqueryparameters",
|
|
88
|
-
component: DataQueryParameterGrid,
|
|
89
|
-
authority: "DATA_QUERY_PARAMETER_VIEW",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
path: "admin/datasourceconnections",
|
|
93
|
-
component: DatasourceConnectionGrid,
|
|
94
|
-
authority: "DATASOURCE_CONNECTION_VIEW",
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
path: "admin/employees",
|
|
98
|
-
component: EmployeeGrid,
|
|
99
|
-
authority: "EMPLOYEE_VIEW",
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
path: "admin/entityparameters",
|
|
103
|
-
component: EntityParameterGrid,
|
|
104
|
-
authority: "ENTITY_PARAMETER_VIEW",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
path: "admin/exceluploaderdetails",
|
|
108
|
-
component: ExcelUploaderDetailGrid,
|
|
109
|
-
authority: "EXCEL_UPLOADER_DETAIL_VIEW",
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
path: "admin/exceluploaderheaders",
|
|
113
|
-
component: ExcelUploaderHeaderGrid,
|
|
114
|
-
authority: "EXCEL_UPLOADER_HEADER_VIEW",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
path: "admin/lookups",
|
|
118
|
-
component: LookupGrid,
|
|
119
|
-
authority: "LOOKUP_VIEW",
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
path: "admin/mailattachments",
|
|
123
|
-
component: MailAttachmentGrid,
|
|
124
|
-
authority: "MAIL_ATTACHMENT_VIEW",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
path: "admin/mailbodies",
|
|
128
|
-
component: MailBodyGrid,
|
|
129
|
-
authority: "MAIL_BODY_VIEW",
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
path: "admin/mailnotificationqueues",
|
|
133
|
-
component: MailNotificationQueueGrid,
|
|
134
|
-
authority: "MAIL_NOTIFICATION_QUEUE_VIEW",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
path: "admin/mailrecipients",
|
|
138
|
-
component: MailRecipientGrid,
|
|
139
|
-
authority: "MAIL_RECIPIENT_VIEW",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
path: "admin/mailtemplates",
|
|
143
|
-
component: MailTemplateGrid,
|
|
144
|
-
authority: "MAIL_TEMPLATE_VIEW",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
path: "admin/newtables",
|
|
148
|
-
component: NewTableGrid,
|
|
149
|
-
authority: "NEW_TABLE_VIEW",
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
path: "admin/notifications",
|
|
153
|
-
component: NotificationGrid,
|
|
154
|
-
authority: "NOTIFICATION_VIEW",
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
path: "admin/notificationqueues",
|
|
158
|
-
component: NotificationQueueGrid,
|
|
159
|
-
authority: "NOTIFICATION_QUEUE_VIEW",
|
|
160
|
-
},
|
|
161
15
|
{
|
|
162
16
|
path: "admin/organizations",
|
|
163
17
|
component: OrganizationGrid,
|
|
164
18
|
authority: "ORGANIZATION_VIEW",
|
|
165
19
|
},
|
|
166
20
|
{
|
|
167
|
-
path: "admin/
|
|
168
|
-
component:
|
|
169
|
-
authority: "
|
|
21
|
+
path: "admin/organizationmembers",
|
|
22
|
+
component: OrganizationMemberGrid,
|
|
23
|
+
authority: "ORGANIZATION_MEMBER_VIEW",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
path: "admin/organizationmemberroles",
|
|
27
|
+
component: OrganizationMemberRoleGrid,
|
|
28
|
+
authority: "ORGANIZATION_MEMBER_ROLE_VIEW",
|
|
170
29
|
},
|
|
171
30
|
{
|
|
172
31
|
path: "admin/organizationranks",
|
|
@@ -179,79 +38,39 @@ export const adminRoutes: Array<SystemRoute> = [
|
|
|
179
38
|
authority: "ORGANIZATION_UNIT_VIEW",
|
|
180
39
|
},
|
|
181
40
|
{
|
|
182
|
-
path: "admin/
|
|
183
|
-
component:
|
|
184
|
-
authority: "
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
path: "admin/organizationuserroles",
|
|
188
|
-
component: OrganizationUserRoleGrid,
|
|
189
|
-
authority: "ORGANIZATION_USER_ROLE_VIEW",
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
path: "admin/reports",
|
|
193
|
-
component: ReportGrid,
|
|
194
|
-
authority: "REPORT_VIEW",
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
path: "admin/reportparameters",
|
|
198
|
-
component: ReportParameterGrid,
|
|
199
|
-
authority: "REPORT_PARAMETER_VIEW",
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
path: "admin/roles",
|
|
203
|
-
component: RoleGrid,
|
|
204
|
-
authority: "ROLE_VIEW",
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
path: "admin/roleauthorities",
|
|
208
|
-
component: RoleAuthorityGrid,
|
|
209
|
-
authority: "ROLE_AUTHORITY_VIEW",
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
path: "admin/useraccounts",
|
|
213
|
-
component: UserAccountGrid,
|
|
214
|
-
authority: "USER_ACCOUNT_VIEW",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
path: "admin/userrequests",
|
|
218
|
-
component: UserRequestGrid,
|
|
219
|
-
authority: "USER_REQUEST_VIEW",
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
path: "admin/widgets",
|
|
223
|
-
component: WidgetGrid,
|
|
224
|
-
authority: "WIDGET_VIEW",
|
|
41
|
+
path: "admin/organizationunittypes",
|
|
42
|
+
component: OrganizationUnitTypeGrid,
|
|
43
|
+
authority: "ORGANIZATION_UNIT_TYPE_VIEW",
|
|
225
44
|
},
|
|
226
45
|
{
|
|
227
|
-
path: "admin/
|
|
228
|
-
component:
|
|
229
|
-
authority: "
|
|
46
|
+
path: "admin/persons",
|
|
47
|
+
component: PersonGrid,
|
|
48
|
+
authority: "PERSON_VIEW",
|
|
230
49
|
},
|
|
231
50
|
{
|
|
232
|
-
path: "admin/
|
|
233
|
-
component:
|
|
234
|
-
authority: "
|
|
51
|
+
path: "admin/systemapplications",
|
|
52
|
+
component: SystemApplicationGrid,
|
|
53
|
+
authority: "SYSTEM_APPLICATION_VIEW",
|
|
235
54
|
},
|
|
236
55
|
{
|
|
237
|
-
path: "admin/
|
|
238
|
-
component:
|
|
239
|
-
authority: "
|
|
56
|
+
path: "admin/systemapplicationauthorities",
|
|
57
|
+
component: SystemApplicationAuthorityGrid,
|
|
58
|
+
authority: "SYSTEM_APPLICATION_AUTHORITY_VIEW",
|
|
240
59
|
},
|
|
241
60
|
{
|
|
242
|
-
path: "admin/
|
|
243
|
-
component:
|
|
244
|
-
authority: "
|
|
61
|
+
path: "admin/systemapplicationmodules",
|
|
62
|
+
component: SystemApplicationModuleGrid,
|
|
63
|
+
authority: "SYSTEM_APPLICATION_MODULE_VIEW",
|
|
245
64
|
},
|
|
246
65
|
{
|
|
247
|
-
path: "admin/
|
|
248
|
-
component:
|
|
249
|
-
authority: "
|
|
66
|
+
path: "admin/systemapplicationroles",
|
|
67
|
+
component: SystemApplicationRoleGrid,
|
|
68
|
+
authority: "SYSTEM_APPLICATION_ROLE_VIEW",
|
|
250
69
|
},
|
|
251
70
|
{
|
|
252
|
-
path: "admin/
|
|
253
|
-
component:
|
|
254
|
-
authority: "
|
|
71
|
+
path: "admin/systemapplicationroleauthorities",
|
|
72
|
+
component: SystemApplicationRoleAuthorityGrid,
|
|
73
|
+
authority: "SYSTEM_APPLICATION_ROLE_AUTHORITY_VIEW",
|
|
255
74
|
},
|
|
256
75
|
];
|
|
257
76
|
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { SystemRoute } from "../types";
|
|
2
|
+
import BluePrintGrid from "../../components/administration/dev/BluePrintGrid";
|
|
3
|
+
import DataQueryGrid from "../../components/administration/dev/DataQueryGrid";
|
|
4
|
+
import DatasourceConnectionGrid from "../../components/administration/dev/DatasourceConnectionGrid";
|
|
5
|
+
import EntityParameterGrid from "../../components/administration/dev/EntityParameterGrid";
|
|
6
|
+
|
|
7
|
+
import LookupGrid from "../../components/administration/dev/LookupGrid";
|
|
8
|
+
|
|
9
|
+
import ReportGrid from "../../components/administration/dev/ReportGrid";
|
|
10
|
+
import MailTemplateGrid from "../../components/administration/dev/MailTemplateGrid";
|
|
11
|
+
import MailSenderConfigGrid from "../../components/administration/dev/MailSenderConfigGrid";
|
|
12
|
+
import WorkflowDocumentGrid from "../../components/administration/dev/WorkflowDocumentGrid";
|
|
13
|
+
import WidgetGrid from "../../components/administration/dev/WidgetGrid";
|
|
14
|
+
import DashboardGrid from "../../components/administration/dev/DashboardGrid";
|
|
15
|
+
import DashboardRouteView from "../../components/templates/visuals/DashboardRouteView";
|
|
16
|
+
import WorkflowDocumentMailLogGrid from "../../components/administration/dev/WorkflowDocumentMailLogGrid";
|
|
17
|
+
import MailNotificationQueueGrid from "../../components/administration/dev/MailNotificationQueueGrid";
|
|
18
|
+
|
|
19
|
+
export const devRoutes: Array<SystemRoute> = [
|
|
20
|
+
{
|
|
21
|
+
path: "dev/blueprints",
|
|
22
|
+
component: BluePrintGrid,
|
|
23
|
+
authority: "BLUE_PRINT_VIEW",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
path: "dev/dataqueries",
|
|
27
|
+
component: DataQueryGrid,
|
|
28
|
+
authority: "DATA_QUERY_VIEW",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: "dev/datasourceconnections",
|
|
32
|
+
component: DatasourceConnectionGrid,
|
|
33
|
+
authority: "DATASOURCE_CONNECTION_VIEW",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: "dev/entityparameters",
|
|
37
|
+
component: EntityParameterGrid,
|
|
38
|
+
authority: "ENTITY_PARAMETER_VIEW",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: "dev/lookups",
|
|
42
|
+
component: LookupGrid,
|
|
43
|
+
authority: "LOOKUP_VIEW",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
path: "dev/reports",
|
|
47
|
+
component: ReportGrid,
|
|
48
|
+
authority: "REPORT_VIEW",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
path: "dev/mailtemplates",
|
|
52
|
+
component: MailTemplateGrid,
|
|
53
|
+
authority: "MAILTEMPLATE_VIEW",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
path: "dev/mailsender/config",
|
|
57
|
+
component: MailSenderConfigGrid,
|
|
58
|
+
authority: "MAILTEMPLATE_VIEW",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: "dev/workflowdocuments",
|
|
62
|
+
component: WorkflowDocumentGrid,
|
|
63
|
+
authority: "WORKFLOW_DOCUMENT_VIEW",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
path: "dev/widgets",
|
|
67
|
+
component: WidgetGrid,
|
|
68
|
+
authority: "WIDGET_VIEW",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
path: "dev/dashboards",
|
|
72
|
+
component: DashboardGrid,
|
|
73
|
+
authority: "DASHBOARD_VIEW",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
path: "dashboard/:dashboardCode",
|
|
77
|
+
component: DashboardRouteView,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
path: "dev/workflowdocumentmaillogs",
|
|
81
|
+
component: WorkflowDocumentMailLogGrid,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
path: "dev/mailnotificationqueues",
|
|
85
|
+
component: MailNotificationQueueGrid,
|
|
86
|
+
},
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
// import { devRoutes } from "./devRoutes";
|
|
90
|
+
// [...devRoutes]
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SystemRoute } from "../types";
|
|
2
2
|
import { adminRoutes } from "./adminRoutes";
|
|
3
|
+
import { devRoutes } from "./devRoutes";
|
|
3
4
|
|
|
4
|
-
export const ADMINISTRATION_ROUTES: Array<SystemRoute> = [
|
|
5
|
+
export const ADMINISTRATION_ROUTES: Array<SystemRoute> = [
|
|
6
|
+
...adminRoutes,
|
|
7
|
+
...devRoutes,
|
|
8
|
+
];
|
package/src/routes/index.ts
CHANGED
package/src/styles/index.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
html,
|
|
2
2
|
body {
|
|
3
|
-
height:
|
|
3
|
+
height: 100vh;
|
|
4
4
|
margin: 0;
|
|
5
5
|
padding: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
#root {
|
|
9
|
-
height:
|
|
9
|
+
height: 100vh;
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: center;
|
|
14
|
-
overflow: hidden;
|
|
14
|
+
overflow: hidden;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.red-row {
|
package/src/util/AppUtils.ts
CHANGED