@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.
@@ -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
- <div className="employee-form-content">
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
-
90
- <PrivateRoute
91
- path={formStepRoutes.map((route) => `${path}/${route}`)}
92
- component={(props) => (
93
- <LayoutWrapper layoutClass="normal">
94
- <EKYCForm {...props} path={path} />
95
- </LayoutWrapper>
96
- )}
97
- />
98
-
99
- <PrivateRoute
100
- path={`${path}/review`}
101
- component={() => (
102
- <LayoutWrapper layoutClass="normal">
103
- <Review />
104
- </LayoutWrapper>
105
- )}
106
- />
107
-
108
- <PrivateRoute
109
- path={`${path}/ceo-dashboard`}
110
- component={() => (
111
- <LayoutWrapper layoutClass="normal">
112
- <CeoDashboard />
113
- </LayoutWrapper>
114
- )}
115
- />
116
-
117
- {/* <PrivateRoute
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
- </Switch>
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
- }