@djb25/digit-ui-module-ekyc 1.0.70 → 1.0.72
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 +66 -99
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +66 -99
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -618,10 +618,10 @@ const Dashboard = _ref => {
|
|
|
618
618
|
total: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInSystem) || 0,
|
|
619
619
|
completed: (progressData === null || progressData === void 0 ? void 0 : progressData.completedKnosInZones) || 0,
|
|
620
620
|
pending: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
|
|
621
|
-
rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
621
|
+
rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.rejectedKnosInZones) || 0,
|
|
622
622
|
totalAssignments: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
|
|
623
|
-
submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
624
|
-
selfEkycCount: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
623
|
+
submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) || 0,
|
|
624
|
+
selfEkycCount: (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones) || 0,
|
|
625
625
|
overallProgressPercent: (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0
|
|
626
626
|
};
|
|
627
627
|
return isProgressLoading ? /*#__PURE__*/React.createElement(EkycDashboardSkeleton, null) : /*#__PURE__*/React.createElement(StatusCards, {
|
|
@@ -1131,11 +1131,6 @@ const downloadSurveyorPDF = function (_ref) {
|
|
|
1131
1131
|
} = _ref;
|
|
1132
1132
|
try {
|
|
1133
1133
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
1134
|
-
const initData = Digit.SessionStorage.get("initData");
|
|
1135
|
-
const tenants = (initData === null || initData === void 0 ? void 0 : initData.tenants) || [];
|
|
1136
|
-
const tenantInfo = tenants.find(tenant => tenant.code === tenantId);
|
|
1137
|
-
const capitalize = text => text && text.substr(0, 1).toUpperCase() + text.substr(1);
|
|
1138
|
-
const ulbCamel = ulb => ulb && ulb.toLowerCase().split(" ").map(capitalize).join(" ");
|
|
1139
1134
|
const name = "Delhi Jal Board";
|
|
1140
1135
|
const email = "contact@delhijalboard.nic.in";
|
|
1141
1136
|
const phoneNumber = "+91-11-23538416";
|
|
@@ -1276,20 +1271,10 @@ const downloadSupervisorPDF = function (_ref2) {
|
|
|
1276
1271
|
mobileNo: row.status || "N/A",
|
|
1277
1272
|
zoneName: String(row.total || 0),
|
|
1278
1273
|
ekycStatus: `${row.completed || 0} / ${row.pending || 0}`,
|
|
1279
|
-
progress: row.progress || "0%"
|
|
1274
|
+
progress: row.progress || "0%",
|
|
1275
|
+
submittedAt: null
|
|
1280
1276
|
};
|
|
1281
1277
|
});
|
|
1282
|
-
const originalToLocaleDateString = Date.prototype.toLocaleDateString;
|
|
1283
|
-
let progressIndex = 0;
|
|
1284
|
-
Date.prototype.toLocaleDateString = function () {
|
|
1285
|
-
if (progressIndex < mappedRows.length) {
|
|
1286
|
-
return mappedRows[progressIndex++].progress || "0%";
|
|
1287
|
-
}
|
|
1288
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1289
|
-
args[_key] = arguments[_key];
|
|
1290
|
-
}
|
|
1291
|
-
return originalToLocaleDateString.apply(this, args);
|
|
1292
|
-
};
|
|
1293
1278
|
const customT = key => {
|
|
1294
1279
|
if (key === "KNO") return t("SURVEYOR_NAME") || "Surveyor Name";
|
|
1295
1280
|
if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
|
|
@@ -1319,9 +1304,7 @@ const downloadSupervisorPDF = function (_ref2) {
|
|
|
1319
1304
|
} else {
|
|
1320
1305
|
console.error("Digit.Utils.pdf.generateSurveyorReport is not available");
|
|
1321
1306
|
}
|
|
1322
|
-
}
|
|
1323
|
-
Date.prototype.toLocaleDateString = originalToLocaleDateString;
|
|
1324
|
-
}
|
|
1307
|
+
} catch {}
|
|
1325
1308
|
return Promise.resolve();
|
|
1326
1309
|
} catch (e) {
|
|
1327
1310
|
return Promise.reject(e);
|
|
@@ -1394,17 +1377,6 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1394
1377
|
ekycStatus: `${row.completed || 0} / ${row.pending || 0}`,
|
|
1395
1378
|
progress: row.progress || "0%"
|
|
1396
1379
|
}));
|
|
1397
|
-
const originalToLocaleDateString = Date.prototype.toLocaleDateString;
|
|
1398
|
-
let progressIndex = 0;
|
|
1399
|
-
Date.prototype.toLocaleDateString = function () {
|
|
1400
|
-
if (progressIndex < mappedRows.length) {
|
|
1401
|
-
return mappedRows[progressIndex++].progress || "0%";
|
|
1402
|
-
}
|
|
1403
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1404
|
-
args[_key2] = arguments[_key2];
|
|
1405
|
-
}
|
|
1406
|
-
return originalToLocaleDateString.apply(this, args);
|
|
1407
|
-
};
|
|
1408
1380
|
const customT = key => {
|
|
1409
1381
|
if (key === "KNO") return t("SUPERVISOR_NAME") || "Supervisor Name";
|
|
1410
1382
|
if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
|
|
@@ -1433,9 +1405,7 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1433
1405
|
} else {
|
|
1434
1406
|
console.error("Digit.Utils.pdf.generateSurveyorReport is not available");
|
|
1435
1407
|
}
|
|
1436
|
-
}
|
|
1437
|
-
Date.prototype.toLocaleDateString = originalToLocaleDateString;
|
|
1438
|
-
}
|
|
1408
|
+
} catch {}
|
|
1439
1409
|
return Promise.resolve();
|
|
1440
1410
|
} catch (e) {
|
|
1441
1411
|
return Promise.reject(e);
|
|
@@ -1485,51 +1455,43 @@ const VendorDetailsCard = () => {
|
|
|
1485
1455
|
var _vendor$zoneIds;
|
|
1486
1456
|
return vendor !== null && vendor !== void 0 && (_vendor$zoneIds = vendor.zoneIds) !== null && _vendor$zoneIds !== void 0 && _vendor$zoneIds.length ? vendor.zoneIds.filter(Boolean).map(zone => String(zone).trim().toUpperCase()) : [];
|
|
1487
1457
|
}, [vendor]);
|
|
1488
|
-
const cards =
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
}, {
|
|
1526
|
-
label: "OVERALL_PROGRESS",
|
|
1527
|
-
count: `${progressPercent}%`,
|
|
1528
|
-
color: "#DB2777",
|
|
1529
|
-
type: "progress",
|
|
1530
|
-
icon: /*#__PURE__*/React.createElement(FaChartLine, null)
|
|
1531
|
-
}];
|
|
1532
|
-
}, [vendor, progressData]);
|
|
1458
|
+
const cards = [{
|
|
1459
|
+
label: "TOTAL_KNOS",
|
|
1460
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones) || 0,
|
|
1461
|
+
color: "#2563EB",
|
|
1462
|
+
type: "today",
|
|
1463
|
+
icon: /*#__PURE__*/React.createElement(FaDatabase, null)
|
|
1464
|
+
}, {
|
|
1465
|
+
label: "TOTAL_EKYC_APPLICATIONS",
|
|
1466
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
|
|
1467
|
+
color: "#0891B2",
|
|
1468
|
+
type: "today",
|
|
1469
|
+
icon: /*#__PURE__*/React.createElement(FaFileAlt, null)
|
|
1470
|
+
}, {
|
|
1471
|
+
label: "EKYC_SUBMITTED_BY_VENDORS",
|
|
1472
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) || 0,
|
|
1473
|
+
color: "#0D9488",
|
|
1474
|
+
type: "month",
|
|
1475
|
+
icon: /*#__PURE__*/React.createElement(FaBuilding, null)
|
|
1476
|
+
}, {
|
|
1477
|
+
label: "EKYC_SUBMITTED_BY_CITIZEN",
|
|
1478
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones) || 0,
|
|
1479
|
+
color: "#7C3AED",
|
|
1480
|
+
type: "month",
|
|
1481
|
+
icon: /*#__PURE__*/React.createElement(FaUser, null)
|
|
1482
|
+
}, {
|
|
1483
|
+
label: "PENDING_APPLICATIONS",
|
|
1484
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
|
|
1485
|
+
color: "#EA580C",
|
|
1486
|
+
type: "pending",
|
|
1487
|
+
icon: /*#__PURE__*/React.createElement(FaClock, null)
|
|
1488
|
+
}, {
|
|
1489
|
+
label: "OVERALL_PROGRESS",
|
|
1490
|
+
count: `${(progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0}%`,
|
|
1491
|
+
color: "#DB2777",
|
|
1492
|
+
type: "progress",
|
|
1493
|
+
icon: /*#__PURE__*/React.createElement(FaChartLine, null)
|
|
1494
|
+
}];
|
|
1533
1495
|
const [currentPage, setCurrentPage] = useState(0);
|
|
1534
1496
|
const [pageSize, setPageSize] = useState(20);
|
|
1535
1497
|
const [ekycDownloadLoading, setEkycDownloadLoading] = useState(false);
|
|
@@ -1648,7 +1610,7 @@ const VendorDetailsCard = () => {
|
|
|
1648
1610
|
accessor: row => (row === null || row === void 0 ? void 0 : row.totalKnos) || 0,
|
|
1649
1611
|
id: "totalEkycApplications"
|
|
1650
1612
|
}, {
|
|
1651
|
-
Header: t("
|
|
1613
|
+
Header: t("EKYC_SUBMITTED") || "eKYC Completed",
|
|
1652
1614
|
accessor: row => (row === null || row === void 0 ? void 0 : row.submittedKnos) || 0,
|
|
1653
1615
|
id: "ekycCompleted"
|
|
1654
1616
|
}, {
|
|
@@ -2700,7 +2662,7 @@ const Inbox = _ref2 => {
|
|
|
2700
2662
|
type: "today",
|
|
2701
2663
|
icon: /*#__PURE__*/React.createElement(FaUsers, null)
|
|
2702
2664
|
}, {
|
|
2703
|
-
label: t("
|
|
2665
|
+
label: t("EKYC_SUBMITTED_TITLE"),
|
|
2704
2666
|
count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.submittedKnos) || 0,
|
|
2705
2667
|
color: "#10B981",
|
|
2706
2668
|
type: "month",
|
|
@@ -4845,7 +4807,7 @@ const AdminDashboard = () => {
|
|
|
4845
4807
|
className: "stat-item"
|
|
4846
4808
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4847
4809
|
className: "stat-value"
|
|
4848
|
-
}, vendor.
|
|
4810
|
+
}, vendor.totalAssignments), /*#__PURE__*/React.createElement("span", {
|
|
4849
4811
|
className: "stat-label"
|
|
4850
4812
|
}, t("TOTAL_EKYC_APPLICATIONS") || "Total KNOs"))), /*#__PURE__*/React.createElement("div", {
|
|
4851
4813
|
className: "knos-summary"
|
|
@@ -5079,7 +5041,7 @@ const SupervisorDetailsCard = () => {
|
|
|
5079
5041
|
type: "today",
|
|
5080
5042
|
icon: /*#__PURE__*/React.createElement(FaUsers, null)
|
|
5081
5043
|
}, {
|
|
5082
|
-
label: "
|
|
5044
|
+
label: "EKYC_SUBMITTED_TITLE",
|
|
5083
5045
|
count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.submittedKnos) || 0,
|
|
5084
5046
|
color: "#10B981",
|
|
5085
5047
|
type: "month",
|
|
@@ -5148,7 +5110,7 @@ const SupervisorDetailsCard = () => {
|
|
|
5148
5110
|
accessor: row => (row === null || row === void 0 ? void 0 : row.totalKnos) || 0,
|
|
5149
5111
|
id: "totalEkycApplications"
|
|
5150
5112
|
}, {
|
|
5151
|
-
Header: t("
|
|
5113
|
+
Header: t("EKYC_SUBMITTED") || "eKYC Completed",
|
|
5152
5114
|
accessor: row => (row === null || row === void 0 ? void 0 : row.submittedKnos) || 0,
|
|
5153
5115
|
id: "ekycCompleted"
|
|
5154
5116
|
}, {
|
|
@@ -9010,11 +8972,6 @@ const CitizenApp = () => {
|
|
|
9010
8972
|
}, /*#__PURE__*/React.createElement(Redirect, {
|
|
9011
8973
|
to: "/digit-ui/citizen/ekyc-home"
|
|
9012
8974
|
})), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9013
|
-
path: [`${path}/vendor-dashboard/:vendorId`, `${path}/vendor-dashboard`],
|
|
9014
|
-
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9015
|
-
layoutClass: "normal"
|
|
9016
|
-
}, /*#__PURE__*/React.createElement(VendorDetailsCard, null))
|
|
9017
|
-
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9018
8975
|
path: `${path}/inbox`,
|
|
9019
8976
|
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9020
8977
|
layoutClass: "normal"
|
|
@@ -9052,25 +9009,35 @@ const CitizenApp = () => {
|
|
|
9052
9009
|
layoutClass: "action"
|
|
9053
9010
|
}, /*#__PURE__*/React.createElement(SurveyorDetailsDashboard, null))
|
|
9054
9011
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9055
|
-
path: `${path}/
|
|
9012
|
+
path: `${path}/status/:applicationId`,
|
|
9056
9013
|
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9057
9014
|
layoutClass: "normal"
|
|
9058
|
-
}, /*#__PURE__*/React.createElement(
|
|
9015
|
+
}, /*#__PURE__*/React.createElement(Review, null))
|
|
9059
9016
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9060
|
-
path: `${path}/
|
|
9017
|
+
path: [`${path}/vendor-dashboard/:vendorId`, `${path}/vendor-dashboard`],
|
|
9061
9018
|
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9062
9019
|
layoutClass: "normal"
|
|
9063
|
-
}, /*#__PURE__*/React.createElement(
|
|
9020
|
+
}, /*#__PURE__*/React.createElement(VendorDetailsCard, null))
|
|
9064
9021
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9065
|
-
path: `${path}/
|
|
9022
|
+
path: `${path}/supervisor-dashboard/:id`,
|
|
9066
9023
|
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9067
9024
|
layoutClass: "normal"
|
|
9068
|
-
}, /*#__PURE__*/React.createElement(
|
|
9025
|
+
}, /*#__PURE__*/React.createElement(SupervisorDetailsCard, null))
|
|
9069
9026
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9070
|
-
path:
|
|
9027
|
+
path: `${path}/supervisor-dashboard`,
|
|
9071
9028
|
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9072
9029
|
layoutClass: "normal"
|
|
9073
9030
|
}, /*#__PURE__*/React.createElement(SupervisorDetailsCard, null))
|
|
9031
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9032
|
+
path: `${path}/surveyor-dashboard/:id`,
|
|
9033
|
+
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9034
|
+
layoutClass: "action"
|
|
9035
|
+
}, /*#__PURE__*/React.createElement(SurveyorDetailsDashboard, null))
|
|
9036
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9037
|
+
path: `${path}/surveyor-dashboard`,
|
|
9038
|
+
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9039
|
+
layoutClass: "normal"
|
|
9040
|
+
}, /*#__PURE__*/React.createElement(SurveyorDetailsDashboard, null))
|
|
9074
9041
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9075
9042
|
path: `${path}/:id`,
|
|
9076
9043
|
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|