@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,98 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
-
import useApiActions from "../../hooks/useApiActions";
|
|
4
|
-
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
-
|
|
6
|
-
const DataQueryParameterGrid: React.FC = () => {
|
|
7
|
-
const [data, setData] = useState([]);
|
|
8
|
-
const apiActions = useApiActions({
|
|
9
|
-
findAll: "api/v1/admin/dataqueryparameter/all",
|
|
10
|
-
deleteById: "api/v1/admin/dataqueryparameter",
|
|
11
|
-
save: "api/v1/admin/dataqueryparameter",
|
|
12
|
-
findById: "api/v1/admin/dataqueryparameter",
|
|
13
|
-
setData: setData,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const formElements: Array<FormElementProps> = [
|
|
17
|
-
{
|
|
18
|
-
type: "field",
|
|
19
|
-
mode: "props",
|
|
20
|
-
props: {
|
|
21
|
-
fieldLabel: "DATA_QUERY_PARAMETER_DATA_QUERY_ID",
|
|
22
|
-
fieldName: "dataQueryId",
|
|
23
|
-
required: false,
|
|
24
|
-
fieldType: "text",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: "field",
|
|
29
|
-
mode: "props",
|
|
30
|
-
props: {
|
|
31
|
-
fieldLabel: "DATA_QUERY_PARAMETER_DEFAULT_VALUE",
|
|
32
|
-
fieldName: "defaultValue",
|
|
33
|
-
required: false,
|
|
34
|
-
fieldType: "text",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
type: "field",
|
|
39
|
-
mode: "props",
|
|
40
|
-
props: {
|
|
41
|
-
fieldLabel: "DATA_QUERY_PARAMETER_ENABLED",
|
|
42
|
-
fieldName: "enabled",
|
|
43
|
-
required: false,
|
|
44
|
-
fieldType: "checkbox",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: "field",
|
|
49
|
-
mode: "props",
|
|
50
|
-
props: {
|
|
51
|
-
fieldLabel: "DATA_QUERY_PARAMETER_ENTITY_PARAMETER_ID",
|
|
52
|
-
fieldName: "entityParameterId",
|
|
53
|
-
required: false,
|
|
54
|
-
fieldType: "text",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: "field",
|
|
59
|
-
mode: "props",
|
|
60
|
-
props: {
|
|
61
|
-
fieldLabel: "DATA_QUERY_PARAMETER_HIDDEN",
|
|
62
|
-
fieldName: "hidden",
|
|
63
|
-
required: false,
|
|
64
|
-
fieldType: "checkbox",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "field",
|
|
69
|
-
mode: "props",
|
|
70
|
-
props: {
|
|
71
|
-
fieldLabel: "DATA_QUERY_PARAMETER_MANDATORY",
|
|
72
|
-
fieldName: "mandatory",
|
|
73
|
-
required: false,
|
|
74
|
-
fieldType: "checkbox",
|
|
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="DATA_QUERY_PARAMETER_PLURAL"
|
|
88
|
-
girdIcon="table-cells"
|
|
89
|
-
editAction={{ isEnabled: true, authority: "DATA_QUERY_PARAMETER_EDIT" }}
|
|
90
|
-
deleteAction={{
|
|
91
|
-
isEnabled: true,
|
|
92
|
-
authority: "DATA_QUERY_PARAMETER_DELETE",
|
|
93
|
-
}}
|
|
94
|
-
/>
|
|
95
|
-
);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export default DataQueryParameterGrid;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
-
import useApiActions from "../../hooks/useApiActions";
|
|
4
|
-
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
-
|
|
6
|
-
const DatasourceConnectionGrid: React.FC = () => {
|
|
7
|
-
const [data, setData] = useState([]);
|
|
8
|
-
const apiActions = useApiActions({
|
|
9
|
-
commonStoreKey: "SystemDataSources",
|
|
10
|
-
deleteById: "api/v1/admin/datasourceconnection",
|
|
11
|
-
save: "api/v1/admin/datasourceconnection",
|
|
12
|
-
findById: "api/v1/admin/datasourceconnection",
|
|
13
|
-
setData: setData,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const formElements: Array<FormElementProps> = [
|
|
17
|
-
{
|
|
18
|
-
type: "field",
|
|
19
|
-
mode: "props",
|
|
20
|
-
props: {
|
|
21
|
-
fieldLabel: "DATASOURCE_CONNECTION_CONNECTION_NAME",
|
|
22
|
-
fieldName: "connectionName",
|
|
23
|
-
required: false,
|
|
24
|
-
fieldType: "text",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: "field",
|
|
29
|
-
mode: "props",
|
|
30
|
-
props: {
|
|
31
|
-
fieldLabel: "DATASOURCE_CONNECTION_DATASOURCE_PASSWORD",
|
|
32
|
-
fieldName: "datasourcePassword",
|
|
33
|
-
required: false,
|
|
34
|
-
fieldType: "text",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
type: "field",
|
|
39
|
-
mode: "props",
|
|
40
|
-
props: {
|
|
41
|
-
fieldLabel: "DATASOURCE_CONNECTION_DATASOURCE_TYPE",
|
|
42
|
-
fieldName: "datasourceType",
|
|
43
|
-
required: false,
|
|
44
|
-
fieldType: "text",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: "field",
|
|
49
|
-
mode: "props",
|
|
50
|
-
props: {
|
|
51
|
-
fieldLabel: "DATASOURCE_CONNECTION_DATASOURCE_URL",
|
|
52
|
-
fieldName: "datasourceUrl",
|
|
53
|
-
required: false,
|
|
54
|
-
fieldType: "text",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: "field",
|
|
59
|
-
mode: "props",
|
|
60
|
-
props: {
|
|
61
|
-
fieldLabel: "DATASOURCE_CONNECTION_DATASOURCE_USERNAME",
|
|
62
|
-
fieldName: "datasourceUsername",
|
|
63
|
-
required: false,
|
|
64
|
-
fieldType: "text",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "field",
|
|
69
|
-
mode: "props",
|
|
70
|
-
props: {
|
|
71
|
-
fieldLabel: "DATASOURCE_CONNECTION_ENABLED",
|
|
72
|
-
fieldName: "enabled",
|
|
73
|
-
required: false,
|
|
74
|
-
fieldType: "checkbox",
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
];
|
|
78
|
-
|
|
79
|
-
return (
|
|
80
|
-
<TemplateGrid
|
|
81
|
-
apiActions={apiActions}
|
|
82
|
-
data={data}
|
|
83
|
-
setData={setData}
|
|
84
|
-
editMode={{ editMode: "row", reloadAfterSave: true }}
|
|
85
|
-
formElements={formElements}
|
|
86
|
-
keyColumnName={"id"}
|
|
87
|
-
gridTitle="DATASOURCE_CONNECTION_PLURAL"
|
|
88
|
-
girdIcon="table-cells"
|
|
89
|
-
editAction={{ isEnabled: true, authority: "DATASOURCE_CONNECTION_EDIT" }}
|
|
90
|
-
deleteAction={{
|
|
91
|
-
isEnabled: true,
|
|
92
|
-
authority: "DATASOURCE_CONNECTION_DELETE",
|
|
93
|
-
}}
|
|
94
|
-
/>
|
|
95
|
-
);
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
export default DatasourceConnectionGrid;
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
-
import useApiActions from "../../hooks/useApiActions";
|
|
4
|
-
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
-
|
|
6
|
-
const EmployeeGrid: React.FC = () => {
|
|
7
|
-
const [data, setData] = useState([]);
|
|
8
|
-
const apiActions = useApiActions({
|
|
9
|
-
findAll: "api/v1/admin/employee/all",
|
|
10
|
-
deleteById: "api/v1/admin/employee",
|
|
11
|
-
save: "api/v1/admin/employee",
|
|
12
|
-
findById: "api/v1/admin/employee",
|
|
13
|
-
setData: setData,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const formElements: Array<FormElementProps> = [
|
|
17
|
-
{
|
|
18
|
-
type: "field",
|
|
19
|
-
mode: "props",
|
|
20
|
-
props: {
|
|
21
|
-
fieldLabel: "EMPLOYEE_EMAIL",
|
|
22
|
-
fieldName: "email",
|
|
23
|
-
required: false,
|
|
24
|
-
fieldType: "text",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: "field",
|
|
29
|
-
mode: "props",
|
|
30
|
-
props: {
|
|
31
|
-
fieldLabel: "EMPLOYEE_EMPLOYEE_NAME",
|
|
32
|
-
fieldName: "employeeName",
|
|
33
|
-
required: false,
|
|
34
|
-
fieldType: "text",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
type: "field",
|
|
39
|
-
mode: "props",
|
|
40
|
-
props: {
|
|
41
|
-
fieldLabel: "EMPLOYEE_EMPLOYEE_NUMBER",
|
|
42
|
-
fieldName: "employeeNumber",
|
|
43
|
-
required: false,
|
|
44
|
-
fieldType: "text",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: "field",
|
|
49
|
-
mode: "props",
|
|
50
|
-
props: {
|
|
51
|
-
fieldLabel: "EMPLOYEE_MOBILE_NUMBER",
|
|
52
|
-
fieldName: "mobileNumber",
|
|
53
|
-
required: false,
|
|
54
|
-
fieldType: "text",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: "field",
|
|
59
|
-
mode: "props",
|
|
60
|
-
props: {
|
|
61
|
-
fieldLabel: "EMPLOYEE_ORGANIZATION_RANK_ID",
|
|
62
|
-
fieldName: "organizationRankId",
|
|
63
|
-
required: false,
|
|
64
|
-
fieldType: "text",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "field",
|
|
69
|
-
mode: "props",
|
|
70
|
-
props: {
|
|
71
|
-
fieldLabel: "EMPLOYEE_ORGANIZATION_UNIT_ID",
|
|
72
|
-
fieldName: "organizationUnitId",
|
|
73
|
-
required: false,
|
|
74
|
-
fieldType: "text",
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
type: "field",
|
|
79
|
-
mode: "props",
|
|
80
|
-
props: {
|
|
81
|
-
fieldLabel: "EMPLOYEE_USER_ACCOUNT_ID",
|
|
82
|
-
fieldName: "userAccountId",
|
|
83
|
-
required: false,
|
|
84
|
-
fieldType: "text",
|
|
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="EMPLOYEE_PLURAL"
|
|
98
|
-
girdIcon="table-cells"
|
|
99
|
-
editAction={{ isEnabled: true, authority: "EMPLOYEE_EDIT" }}
|
|
100
|
-
deleteAction={{ isEnabled: true, authority: "EMPLOYEE_DELETE" }}
|
|
101
|
-
/>
|
|
102
|
-
);
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export default EmployeeGrid;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
-
import useApiActions from "../../hooks/useApiActions";
|
|
4
|
-
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
-
|
|
6
|
-
const EntityParameterGrid: React.FC = () => {
|
|
7
|
-
const [data, setData] = useState([]);
|
|
8
|
-
const apiActions = useApiActions({
|
|
9
|
-
commonStoreKey: "SystemEntityParameters",
|
|
10
|
-
deleteById: "api/v1/admin/entityparameter",
|
|
11
|
-
save: "api/v1/admin/entityparameter",
|
|
12
|
-
findById: "api/v1/admin/entityparameter",
|
|
13
|
-
setData: setData,
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const formElements: Array<FormElementProps> = [
|
|
17
|
-
{
|
|
18
|
-
type: "field",
|
|
19
|
-
mode: "props",
|
|
20
|
-
props: {
|
|
21
|
-
fieldLabel: "ENTITY_PARAMETER_ENABLED",
|
|
22
|
-
fieldName: "enabled",
|
|
23
|
-
required: false,
|
|
24
|
-
fieldType: "checkbox",
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: "field",
|
|
29
|
-
mode: "props",
|
|
30
|
-
props: {
|
|
31
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_CODE",
|
|
32
|
-
fieldName: "parameterCode",
|
|
33
|
-
required: false,
|
|
34
|
-
fieldType: "text",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
type: "field",
|
|
39
|
-
mode: "props",
|
|
40
|
-
props: {
|
|
41
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_DATA_QUERY_ID",
|
|
42
|
-
fieldName: "parameterDataQueryId",
|
|
43
|
-
required: false,
|
|
44
|
-
fieldType: "text",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: "field",
|
|
49
|
-
mode: "props",
|
|
50
|
-
props: {
|
|
51
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_DATASET",
|
|
52
|
-
fieldName: "parameterDataset",
|
|
53
|
-
required: false,
|
|
54
|
-
fieldType: "text",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
type: "field",
|
|
59
|
-
mode: "props",
|
|
60
|
-
props: {
|
|
61
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_DISPLAY_FIELD",
|
|
62
|
-
fieldName: "parameterDisplayField",
|
|
63
|
-
required: false,
|
|
64
|
-
fieldType: "text",
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "field",
|
|
69
|
-
mode: "props",
|
|
70
|
-
props: {
|
|
71
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_LABEL",
|
|
72
|
-
fieldName: "parameterLabel",
|
|
73
|
-
required: false,
|
|
74
|
-
fieldType: "text",
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
type: "field",
|
|
79
|
-
mode: "props",
|
|
80
|
-
props: {
|
|
81
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_TYPE",
|
|
82
|
-
fieldName: "parameterType",
|
|
83
|
-
required: false,
|
|
84
|
-
fieldType: "text",
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
type: "field",
|
|
89
|
-
mode: "props",
|
|
90
|
-
props: {
|
|
91
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_VALUE_FIELD",
|
|
92
|
-
fieldName: "parameterValueField",
|
|
93
|
-
required: false,
|
|
94
|
-
fieldType: "text",
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
type: "field",
|
|
99
|
-
mode: "props",
|
|
100
|
-
props: {
|
|
101
|
-
fieldLabel: "ENTITY_PARAMETER_PARAMETER_VALUE_FORMAT",
|
|
102
|
-
fieldName: "parameterValueFormat",
|
|
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", reloadAfterSave: true }}
|
|
115
|
-
formElements={formElements}
|
|
116
|
-
keyColumnName={"id"}
|
|
117
|
-
gridTitle="ENTITY_PARAMETER_PLURAL"
|
|
118
|
-
girdIcon="table-cells"
|
|
119
|
-
editAction={{ isEnabled: true, authority: "ENTITY_PARAMETER_EDIT" }}
|
|
120
|
-
deleteAction={{ isEnabled: true, authority: "ENTITY_PARAMETER_DELETE" }}
|
|
121
|
-
/>
|
|
122
|
-
);
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export default EntityParameterGrid;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
-
import useApiActions from "../../hooks/useApiActions";
|
|
4
|
-
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
-
|
|
6
|
-
const 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;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
-
import useApiActions from "../../hooks/useApiActions";
|
|
4
|
-
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
-
|
|
6
|
-
const 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;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import TemplateGrid from "../templates/DataEntryTemplates/TemplateDataGrid/TemplateGrid";
|
|
3
|
-
import useApiActions from "../../hooks/useApiActions";
|
|
4
|
-
import { FormElementProps } from "../templates/DataEntryTemplates/DataEntryTypes";
|
|
5
|
-
|
|
6
|
-
const 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;
|