@djb25/digit-ui-module-ekyc 1.0.13 → 1.0.15
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.css +54 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3334 -3345
- package/dist/index.modern.js.map +1 -1
- package/package.json +34 -29
- package/src/Module.js +2 -5
- package/src/components/AssignEkyc.js +317 -0
- package/src/components/AssignEkycModal.js +362 -0
- package/src/components/CeoDashboard.js +255 -192
- package/src/components/CeoDashboard.jsx +334 -0
- package/src/components/DesktopInbox.js +8 -0
- package/src/components/EKYCCard.js +9 -3
- package/src/components/Review.js +155 -88
- package/src/components/StatusCards.js +6 -17
- package/src/components/SurveyorDetailsCard.js +282 -0
- package/src/components/VendorDetails.jsx +231 -0
- package/src/components/analytics/charts/ExecutiveBarChart.jsx +30 -0
- package/src/components/analytics/charts/ExecutiveLineChart.jsx +159 -0
- package/src/components/analytics/charts/ExecutivePieChart.jsx +24 -0
- package/src/components/analytics/charts/TaskStatusChart.js +1 -3
- package/src/components/analytics/components/DashboardLayout.js +26 -46
- package/src/components/mockData.js +772 -0
- package/src/hook/SupervisorInboxTableConfig.js +138 -0
- package/src/hook/useInboxTableConfig.js +12 -3
- package/src/pages/citizen/Home.js +27 -14
- package/src/pages/citizen/index.js +48 -1
- package/src/pages/employee/Mapping.js +162 -449
- package/src/pages/employee/index.js +96 -70
- package/src/components/analytics/styles/Dashboard.css +0 -54
|
@@ -3,12 +3,15 @@ import React from "react";
|
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { Switch, useLocation } from "react-router-dom";
|
|
5
5
|
import Dashboard from "../../components/Dashboard";
|
|
6
|
+
import CeoDashboard from "../../components/CeoDashboard.jsx";
|
|
7
|
+
import VendorDetails from "../../components/VendorDetails.jsx";
|
|
6
8
|
import Inbox from "./Inbox";
|
|
7
9
|
import Mapping from "./Mapping";
|
|
8
10
|
import Create from "./Create";
|
|
9
|
-
|
|
10
11
|
import Review from "../../components/Review";
|
|
11
12
|
import EKYCForm from "./EKYCForm";
|
|
13
|
+
import SurveyorDetailsCard from "../../components/SurveyorDetailsCard.js";
|
|
14
|
+
import AssignEkyc from "../../components/AssignEkyc.js";
|
|
12
15
|
|
|
13
16
|
const EmployeeApp = ({ path }) => {
|
|
14
17
|
const { t } = useTranslation();
|
|
@@ -16,8 +19,6 @@ const EmployeeApp = ({ path }) => {
|
|
|
16
19
|
|
|
17
20
|
sessionStorage.removeItem("revalidateddone");
|
|
18
21
|
|
|
19
|
-
const CeoDashboard = Digit.ComponentRegistryService.getComponent("CeoDashboard");
|
|
20
|
-
|
|
21
22
|
const getBreadcrumbLabel = () => {
|
|
22
23
|
const pathname = location.pathname;
|
|
23
24
|
if (pathname.includes("/dashboard")) return "ES_COMMON_INBOX";
|
|
@@ -50,76 +51,101 @@ const EmployeeApp = ({ path }) => {
|
|
|
50
51
|
/>
|
|
51
52
|
|
|
52
53
|
<div className="employee-form">
|
|
53
|
-
<
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
<
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
<
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
{
|
|
54
|
+
<Switch>
|
|
55
|
+
<PrivateRoute
|
|
56
|
+
path={`${path}/dashboard`}
|
|
57
|
+
component={() => (
|
|
58
|
+
<LayoutWrapper layoutClass="normal">
|
|
59
|
+
<Dashboard parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />
|
|
60
|
+
</LayoutWrapper>
|
|
61
|
+
)}
|
|
62
|
+
/>
|
|
63
|
+
<PrivateRoute
|
|
64
|
+
path={`${path}/inbox`}
|
|
65
|
+
component={() => (
|
|
66
|
+
<LayoutWrapper layoutClass="normal">
|
|
67
|
+
<Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />
|
|
68
|
+
</LayoutWrapper>
|
|
69
|
+
)}
|
|
70
|
+
/>
|
|
71
|
+
|
|
72
|
+
<PrivateRoute
|
|
73
|
+
path={`${path}/create-kyc`}
|
|
74
|
+
component={() => (
|
|
75
|
+
<LayoutWrapper layoutClass="normal">
|
|
76
|
+
<Create />
|
|
77
|
+
</LayoutWrapper>
|
|
78
|
+
)}
|
|
79
|
+
/>
|
|
80
|
+
|
|
81
|
+
<PrivateRoute
|
|
82
|
+
path={`${path}/mapping`}
|
|
83
|
+
component={() => (
|
|
84
|
+
<LayoutWrapper layoutClass="normal">
|
|
85
|
+
<Mapping />
|
|
86
|
+
</LayoutWrapper>
|
|
87
|
+
)}
|
|
88
|
+
/>
|
|
89
|
+
<PrivateRoute
|
|
90
|
+
path={`${path}/assign`}
|
|
91
|
+
exact
|
|
92
|
+
component={() => (
|
|
93
|
+
<LayoutWrapper layoutClass="normal">
|
|
94
|
+
<AssignEkyc />
|
|
95
|
+
</LayoutWrapper>
|
|
96
|
+
)}
|
|
97
|
+
/>
|
|
98
|
+
<PrivateRoute
|
|
99
|
+
path={`${path}/assign/surveyor-details/:id`}
|
|
100
|
+
exact
|
|
101
|
+
component={() => (
|
|
102
|
+
<LayoutWrapper layoutClass="action">
|
|
103
|
+
<SurveyorDetailsCard />
|
|
104
|
+
</LayoutWrapper>
|
|
105
|
+
)}
|
|
106
|
+
/>
|
|
107
|
+
|
|
108
|
+
<PrivateRoute
|
|
109
|
+
path={formStepRoutes.map((route) => `${path}/${route}`)}
|
|
110
|
+
component={(props) => (
|
|
111
|
+
<LayoutWrapper layoutClass="normal">
|
|
112
|
+
<EKYCForm {...props} path={path} />
|
|
113
|
+
</LayoutWrapper>
|
|
114
|
+
)}
|
|
115
|
+
/>
|
|
116
|
+
|
|
117
|
+
<PrivateRoute
|
|
118
|
+
path={`${path}/review/:kno`}
|
|
119
|
+
component={() => (
|
|
120
|
+
<LayoutWrapper layoutClass="action">
|
|
121
|
+
<Review />
|
|
122
|
+
</LayoutWrapper>
|
|
123
|
+
)}
|
|
124
|
+
/>
|
|
125
|
+
|
|
126
|
+
<PrivateRoute
|
|
127
|
+
path={`${path}/ceo-dashboard`}
|
|
128
|
+
component={() => (
|
|
129
|
+
<LayoutWrapper layoutClass="normal">
|
|
130
|
+
<CeoDashboard />
|
|
131
|
+
</LayoutWrapper>
|
|
132
|
+
)}
|
|
133
|
+
/>
|
|
134
|
+
|
|
135
|
+
<PrivateRoute
|
|
136
|
+
path={`${path}/vendors/:vendorId`}
|
|
137
|
+
component={() => (
|
|
138
|
+
<LayoutWrapper layoutClass="normal">
|
|
139
|
+
<VendorDetails />
|
|
140
|
+
</LayoutWrapper>
|
|
141
|
+
)}
|
|
142
|
+
/>
|
|
143
|
+
|
|
144
|
+
{/* <PrivateRoute
|
|
118
145
|
path={`${path}/`}
|
|
119
146
|
component={() => <Inbox parentRoute={path} businessService="EKYC" moduleCode="EKYC" isInbox={true} />}
|
|
120
147
|
/> */}
|
|
121
|
-
|
|
122
|
-
</div>
|
|
148
|
+
</Switch>
|
|
123
149
|
</div>
|
|
124
150
|
</div>
|
|
125
151
|
</AppContainer>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* Premium Dashboard Design System */
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
--glass-bg: rgba(255, 255, 255, 0.7);
|
|
5
|
-
--glass-border: rgba(255, 255, 255, 0.3);
|
|
6
|
-
--glass-blur: blur(12px);
|
|
7
|
-
|
|
8
|
-
--primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
|
|
9
|
-
--success-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
|
|
10
|
-
--warning-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
|
|
11
|
-
--danger-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
|
|
12
|
-
|
|
13
|
-
--card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
|
|
14
|
-
--card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.glass-card {
|
|
18
|
-
background: var(--glass-bg);
|
|
19
|
-
backdrop-filter: var(--glass-blur);
|
|
20
|
-
-webkit-backdrop-filter: var(--glass-blur);
|
|
21
|
-
border: 1px solid var(--glass-border);
|
|
22
|
-
border-radius: 20px;
|
|
23
|
-
box-shadow: var(--card-shadow);
|
|
24
|
-
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.glass-card:hover {
|
|
28
|
-
transform: translateY(-5px);
|
|
29
|
-
box-shadow: var(--card-hover-shadow);
|
|
30
|
-
border-color: rgba(255, 255, 255, 0.5);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.gradient-text {
|
|
34
|
-
background: var(--primary-gradient);
|
|
35
|
-
-webkit-background-clip: text;
|
|
36
|
-
-webkit-text-fill-color: transparent;
|
|
37
|
-
font-weight: 800;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@keyframes fadeInScale {
|
|
41
|
-
from {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
transform: scale(0.95) translateY(10px);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
to {
|
|
47
|
-
opacity: 1;
|
|
48
|
-
transform: scale(1) translateY(0);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.animate-fade-in {
|
|
53
|
-
animation: fadeInScale 0.6s ease-out forwards;
|
|
54
|
-
}
|