@djb25/digit-ui-module-ekyc 1.0.8 → 1.0.9
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.modern.js +3281 -4272
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- package/src/Module.js +42 -31
- package/src/components/ConnectionDetailsView.js +5 -3
- package/src/components/DesktopInbox.js +68 -184
- package/src/components/EKYCCard.js +35 -27
- package/src/components/Filter.js +48 -53
- package/src/components/SearchFormFieldsComponent.js +55 -0
- package/src/components/StatusCards.js +7 -3
- package/src/config/config.js +69 -0
- package/src/hook/useInboxTableConfig.js +134 -0
- package/src/pages/citizen/index.js +1 -1
- package/src/pages/employee/AadhaarVerification.js +473 -609
- package/src/pages/employee/AddressDetails.js +508 -733
- package/src/pages/employee/ConsumerDetails.js +512 -0
- package/src/pages/employee/Create.js +5 -1
- package/src/pages/employee/Dashboard.js +43 -0
- package/src/pages/employee/EKYCForm.js +117 -0
- package/src/pages/employee/Inbox.js +248 -140
- package/src/pages/employee/Mapping.js +640 -6
- package/src/pages/employee/MeterDetails.js +481 -471
- package/src/pages/employee/PropertyInfo.js +472 -562
- package/src/pages/employee/Review.js +268 -540
- package/src/pages/employee/Update.js +9 -0
- package/src/pages/employee/index.js +59 -94
|
@@ -2,116 +2,81 @@ import { AppContainer, PrivateRoute, ModuleHeader, ArrowLeft, HomeIcon } from "@
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { Switch, useLocation } from "react-router-dom";
|
|
5
|
+
import Dashboard from "./Dashboard";
|
|
5
6
|
import Inbox from "./Inbox";
|
|
6
|
-
|
|
7
|
+
import Mapping from "./Mapping";
|
|
7
8
|
import Create from "./Create";
|
|
8
|
-
|
|
9
|
-
import AddressDetails from "./AddressDetails";
|
|
10
|
-
import PropertyInfo from "./PropertyInfo";
|
|
11
|
-
import MeterDetails from "./MeterDetails";
|
|
9
|
+
|
|
12
10
|
import Review from "./Review";
|
|
11
|
+
import EKYCForm from "./EKYCForm";
|
|
13
12
|
|
|
14
13
|
const EmployeeApp = ({ path }) => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sessionStorage.removeItem("revalidateddone");
|
|
14
|
+
const { t } = useTranslation();
|
|
15
|
+
const location = useLocation();
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
const pathname = location.pathname;
|
|
22
|
-
if (pathname.includes("/dashboard")) return "ES_COMMON_INBOX";
|
|
23
|
-
if (pathname.includes("/create-kyc")) return "EKYC_CREATE_KYC";
|
|
24
|
-
if (pathname.includes("/k-details")) return "EKYC_K_DETAILS";
|
|
25
|
-
if (pathname.includes("/aadhaar-verification")) return "EKYC_AADHAAR_VERIFICATION";
|
|
26
|
-
if (pathname.includes("/address-details")) return "EKYC_ADDRESS_DETAILS";
|
|
27
|
-
if (pathname.includes("/property-info")) return "EKYC_PROPERTY_INFO";
|
|
28
|
-
if (pathname.includes("/meter-details")) return "EKYC_METER_DETAILS";
|
|
29
|
-
if (pathname.includes("/review")) return "EKYC_REVIEW";
|
|
30
|
-
return "ES_COMMON_INBOX";
|
|
31
|
-
};
|
|
17
|
+
sessionStorage.removeItem("revalidateddone");
|
|
32
18
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
const getBreadcrumbLabel = () => {
|
|
20
|
+
const pathname = location.pathname;
|
|
21
|
+
if (pathname.includes("/dashboard")) return "ES_COMMON_INBOX";
|
|
22
|
+
if (pathname.includes("/create-kyc")) return "EKYC_CREATE_KYC";
|
|
23
|
+
if (pathname.includes("/k-details")) return "EKYC_K_DETAILS";
|
|
24
|
+
if (pathname.includes("/consumer-details")) return "EKYC_CONSUMER_DETAILS";
|
|
25
|
+
if (pathname.includes("/address-details")) return "EKYC_ADDRESS_DETAILS";
|
|
26
|
+
if (pathname.includes("/property-info")) return "EKYC_PROPERTY_INFO";
|
|
27
|
+
if (pathname.includes("/meter-details")) return "EKYC_METER_DETAILS";
|
|
28
|
+
if (pathname.includes("/review")) return "EKYC_REVIEW";
|
|
29
|
+
return "ES_COMMON_INBOX";
|
|
30
|
+
};
|
|
37
31
|
|
|
38
|
-
|
|
39
|
-
<AppContainer>
|
|
40
|
-
<div className="ground-container employee-app-container employee-app-homepage-container">
|
|
41
|
-
<ModuleHeader
|
|
42
|
-
leftContent={
|
|
43
|
-
<React.Fragment>
|
|
44
|
-
<ArrowLeft className="icon" />
|
|
45
|
-
Back
|
|
46
|
-
</React.Fragment>
|
|
47
|
-
}
|
|
48
|
-
onLeftClick={() => window.history.back()}
|
|
49
|
-
breadcrumbs={breadcrumbs}
|
|
50
|
-
/>
|
|
32
|
+
const breadcrumbs = [{ icon: HomeIcon, path: "/digit-ui/employee" }, { label: t(getBreadcrumbLabel()) }];
|
|
51
33
|
|
|
52
|
-
|
|
53
|
-
<PrivateRoute
|
|
54
|
-
path={`${path}/dashboard`}
|
|
55
|
-
component={() => (
|
|
56
|
-
<Inbox
|
|
57
|
-
parentRoute={path}
|
|
58
|
-
businessService="EKYC"
|
|
59
|
-
moduleCode="EKYC"
|
|
60
|
-
isInbox={true}
|
|
61
|
-
/>
|
|
62
|
-
)}
|
|
63
|
-
/>
|
|
34
|
+
const formStepRoutes = ["consumer-details", "address-details", "property-info", "meter-details"];
|
|
64
35
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
36
|
+
return (
|
|
37
|
+
<AppContainer>
|
|
38
|
+
<div className="ground-container employee-app-container form-container">
|
|
39
|
+
<ModuleHeader
|
|
40
|
+
leftContent={
|
|
41
|
+
<React.Fragment>
|
|
42
|
+
<ArrowLeft className="icon" />
|
|
43
|
+
Back
|
|
44
|
+
</React.Fragment>
|
|
45
|
+
}
|
|
46
|
+
onLeftClick={() => window.history.back()}
|
|
47
|
+
breadcrumbs={breadcrumbs}
|
|
48
|
+
/>
|
|
69
49
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
50
|
+
<div className="employee-form">
|
|
51
|
+
<div className="employee-form-content">
|
|
52
|
+
<Switch>
|
|
53
|
+
<PrivateRoute
|
|
54
|
+
path={`${path}/dashboard`}
|
|
55
|
+
component={() => <Dashboard parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|
|
56
|
+
/>
|
|
57
|
+
<PrivateRoute
|
|
58
|
+
path={`${path}/inbox`}
|
|
59
|
+
component={() => <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|
|
60
|
+
/>
|
|
74
61
|
|
|
75
|
-
|
|
76
|
-
path={`${path}/aadhaar-verification`}
|
|
77
|
-
component={() => <AadhaarVerification />}
|
|
78
|
-
/>
|
|
62
|
+
<PrivateRoute path={`${path}/create-kyc`} component={() => <Create />} />
|
|
79
63
|
|
|
80
|
-
|
|
81
|
-
path={`${path}/address-details`}
|
|
82
|
-
component={() => <AddressDetails />}
|
|
83
|
-
/>
|
|
64
|
+
<PrivateRoute path={`${path}/mapping`} component={() => <Mapping />} />
|
|
84
65
|
|
|
85
|
-
|
|
86
|
-
path={`${path}/property-info`}
|
|
87
|
-
component={() => <PropertyInfo />}
|
|
88
|
-
/>
|
|
66
|
+
<PrivateRoute path={formStepRoutes.map((route) => `${path}/${route}`)} component={(props) => <EKYCForm {...props} path={path} />} />
|
|
89
67
|
|
|
90
|
-
|
|
91
|
-
path={`${path}/meter-details`}
|
|
92
|
-
component={() => <MeterDetails />}
|
|
93
|
-
/>
|
|
94
|
-
|
|
95
|
-
<PrivateRoute
|
|
96
|
-
path={`${path}/review`}
|
|
97
|
-
component={() => <Review />}
|
|
98
|
-
/>
|
|
68
|
+
<PrivateRoute path={`${path}/review`} component={() => <Review />} />
|
|
99
69
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
/>
|
|
111
|
-
</Switch>
|
|
112
|
-
</div>
|
|
113
|
-
</AppContainer>
|
|
114
|
-
);
|
|
70
|
+
{/* <PrivateRoute
|
|
71
|
+
path={`${path}/`}
|
|
72
|
+
component={() => <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|
|
73
|
+
/> */}
|
|
74
|
+
</Switch>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</AppContainer>
|
|
79
|
+
);
|
|
115
80
|
};
|
|
116
81
|
|
|
117
82
|
export default EmployeeApp;
|