@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.js
CHANGED
|
@@ -621,10 +621,10 @@ const Dashboard = _ref => {
|
|
|
621
621
|
total: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInSystem) || 0,
|
|
622
622
|
completed: (progressData === null || progressData === void 0 ? void 0 : progressData.completedKnosInZones) || 0,
|
|
623
623
|
pending: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
|
|
624
|
-
rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
624
|
+
rejected: (progressData === null || progressData === void 0 ? void 0 : progressData.rejectedKnosInZones) || 0,
|
|
625
625
|
totalAssignments: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
|
|
626
|
-
submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
627
|
-
selfEkycCount: (progressData === null || progressData === void 0 ? void 0 : progressData.
|
|
626
|
+
submittedCount: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) || 0,
|
|
627
|
+
selfEkycCount: (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones) || 0,
|
|
628
628
|
overallProgressPercent: (progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0
|
|
629
629
|
};
|
|
630
630
|
return isProgressLoading ? /*#__PURE__*/React__default.createElement(EkycDashboardSkeleton, null) : /*#__PURE__*/React__default.createElement(StatusCards, {
|
|
@@ -1134,11 +1134,6 @@ const downloadSurveyorPDF = function (_ref) {
|
|
|
1134
1134
|
} = _ref;
|
|
1135
1135
|
try {
|
|
1136
1136
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
1137
|
-
const initData = Digit.SessionStorage.get("initData");
|
|
1138
|
-
const tenants = (initData === null || initData === void 0 ? void 0 : initData.tenants) || [];
|
|
1139
|
-
const tenantInfo = tenants.find(tenant => tenant.code === tenantId);
|
|
1140
|
-
const capitalize = text => text && text.substr(0, 1).toUpperCase() + text.substr(1);
|
|
1141
|
-
const ulbCamel = ulb => ulb && ulb.toLowerCase().split(" ").map(capitalize).join(" ");
|
|
1142
1137
|
const name = "Delhi Jal Board";
|
|
1143
1138
|
const email = "contact@delhijalboard.nic.in";
|
|
1144
1139
|
const phoneNumber = "+91-11-23538416";
|
|
@@ -1279,20 +1274,10 @@ const downloadSupervisorPDF = function (_ref2) {
|
|
|
1279
1274
|
mobileNo: row.status || "N/A",
|
|
1280
1275
|
zoneName: String(row.total || 0),
|
|
1281
1276
|
ekycStatus: `${row.completed || 0} / ${row.pending || 0}`,
|
|
1282
|
-
progress: row.progress || "0%"
|
|
1277
|
+
progress: row.progress || "0%",
|
|
1278
|
+
submittedAt: null
|
|
1283
1279
|
};
|
|
1284
1280
|
});
|
|
1285
|
-
const originalToLocaleDateString = Date.prototype.toLocaleDateString;
|
|
1286
|
-
let progressIndex = 0;
|
|
1287
|
-
Date.prototype.toLocaleDateString = function () {
|
|
1288
|
-
if (progressIndex < mappedRows.length) {
|
|
1289
|
-
return mappedRows[progressIndex++].progress || "0%";
|
|
1290
|
-
}
|
|
1291
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1292
|
-
args[_key] = arguments[_key];
|
|
1293
|
-
}
|
|
1294
|
-
return originalToLocaleDateString.apply(this, args);
|
|
1295
|
-
};
|
|
1296
1281
|
const customT = key => {
|
|
1297
1282
|
if (key === "KNO") return t("SURVEYOR_NAME") || "Surveyor Name";
|
|
1298
1283
|
if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
|
|
@@ -1322,9 +1307,7 @@ const downloadSupervisorPDF = function (_ref2) {
|
|
|
1322
1307
|
} else {
|
|
1323
1308
|
console.error("Digit.Utils.pdf.generateSurveyorReport is not available");
|
|
1324
1309
|
}
|
|
1325
|
-
}
|
|
1326
|
-
Date.prototype.toLocaleDateString = originalToLocaleDateString;
|
|
1327
|
-
}
|
|
1310
|
+
} catch {}
|
|
1328
1311
|
return Promise.resolve();
|
|
1329
1312
|
} catch (e) {
|
|
1330
1313
|
return Promise.reject(e);
|
|
@@ -1397,17 +1380,6 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1397
1380
|
ekycStatus: `${row.completed || 0} / ${row.pending || 0}`,
|
|
1398
1381
|
progress: row.progress || "0%"
|
|
1399
1382
|
}));
|
|
1400
|
-
const originalToLocaleDateString = Date.prototype.toLocaleDateString;
|
|
1401
|
-
let progressIndex = 0;
|
|
1402
|
-
Date.prototype.toLocaleDateString = function () {
|
|
1403
|
-
if (progressIndex < mappedRows.length) {
|
|
1404
|
-
return mappedRows[progressIndex++].progress || "0%";
|
|
1405
|
-
}
|
|
1406
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
1407
|
-
args[_key2] = arguments[_key2];
|
|
1408
|
-
}
|
|
1409
|
-
return originalToLocaleDateString.apply(this, args);
|
|
1410
|
-
};
|
|
1411
1383
|
const customT = key => {
|
|
1412
1384
|
if (key === "KNO") return t("SUPERVISOR_NAME") || "Supervisor Name";
|
|
1413
1385
|
if (key === "CONSUMER") return t("MOBILE_NUMBER") || "Mobile Number";
|
|
@@ -1436,9 +1408,7 @@ const downloadVendorPDF = function (_ref3) {
|
|
|
1436
1408
|
} else {
|
|
1437
1409
|
console.error("Digit.Utils.pdf.generateSurveyorReport is not available");
|
|
1438
1410
|
}
|
|
1439
|
-
}
|
|
1440
|
-
Date.prototype.toLocaleDateString = originalToLocaleDateString;
|
|
1441
|
-
}
|
|
1411
|
+
} catch {}
|
|
1442
1412
|
return Promise.resolve();
|
|
1443
1413
|
} catch (e) {
|
|
1444
1414
|
return Promise.reject(e);
|
|
@@ -1488,51 +1458,43 @@ const VendorDetailsCard = () => {
|
|
|
1488
1458
|
var _vendor$zoneIds;
|
|
1489
1459
|
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()) : [];
|
|
1490
1460
|
}, [vendor]);
|
|
1491
|
-
const cards =
|
|
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
|
-
|
|
1527
|
-
|
|
1528
|
-
}, {
|
|
1529
|
-
label: "OVERALL_PROGRESS",
|
|
1530
|
-
count: `${progressPercent}%`,
|
|
1531
|
-
color: "#DB2777",
|
|
1532
|
-
type: "progress",
|
|
1533
|
-
icon: /*#__PURE__*/React__default.createElement(fa.FaChartLine, null)
|
|
1534
|
-
}];
|
|
1535
|
-
}, [vendor, progressData]);
|
|
1461
|
+
const cards = [{
|
|
1462
|
+
label: "TOTAL_KNOS",
|
|
1463
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.totalKnosInZones) || 0,
|
|
1464
|
+
color: "#2563EB",
|
|
1465
|
+
type: "today",
|
|
1466
|
+
icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaDatabase, null)
|
|
1467
|
+
}, {
|
|
1468
|
+
label: "TOTAL_EKYC_APPLICATIONS",
|
|
1469
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.totalAssignments) || 0,
|
|
1470
|
+
color: "#0891B2",
|
|
1471
|
+
type: "today",
|
|
1472
|
+
icon: /*#__PURE__*/React__default.createElement(digitUiReactComponents.FaFileAlt, null)
|
|
1473
|
+
}, {
|
|
1474
|
+
label: "EKYC_SUBMITTED_BY_VENDORS",
|
|
1475
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.submittedKnosInZones) || 0,
|
|
1476
|
+
color: "#0D9488",
|
|
1477
|
+
type: "month",
|
|
1478
|
+
icon: /*#__PURE__*/React__default.createElement(fa.FaBuilding, null)
|
|
1479
|
+
}, {
|
|
1480
|
+
label: "EKYC_SUBMITTED_BY_CITIZEN",
|
|
1481
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.selfEkycCountInZones) || 0,
|
|
1482
|
+
color: "#7C3AED",
|
|
1483
|
+
type: "month",
|
|
1484
|
+
icon: /*#__PURE__*/React__default.createElement(fa.FaUser, null)
|
|
1485
|
+
}, {
|
|
1486
|
+
label: "PENDING_APPLICATIONS",
|
|
1487
|
+
count: (progressData === null || progressData === void 0 ? void 0 : progressData.pendingKnosInZones) || 0,
|
|
1488
|
+
color: "#EA580C",
|
|
1489
|
+
type: "pending",
|
|
1490
|
+
icon: /*#__PURE__*/React__default.createElement(fa.FaClock, null)
|
|
1491
|
+
}, {
|
|
1492
|
+
label: "OVERALL_PROGRESS",
|
|
1493
|
+
count: `${(progressData === null || progressData === void 0 ? void 0 : progressData.overallProgressPercent) || 0}%`,
|
|
1494
|
+
color: "#DB2777",
|
|
1495
|
+
type: "progress",
|
|
1496
|
+
icon: /*#__PURE__*/React__default.createElement(fa.FaChartLine, null)
|
|
1497
|
+
}];
|
|
1536
1498
|
const [currentPage, setCurrentPage] = React.useState(0);
|
|
1537
1499
|
const [pageSize, setPageSize] = React.useState(20);
|
|
1538
1500
|
const [ekycDownloadLoading, setEkycDownloadLoading] = React.useState(false);
|
|
@@ -1651,7 +1613,7 @@ const VendorDetailsCard = () => {
|
|
|
1651
1613
|
accessor: row => (row === null || row === void 0 ? void 0 : row.totalKnos) || 0,
|
|
1652
1614
|
id: "totalEkycApplications"
|
|
1653
1615
|
}, {
|
|
1654
|
-
Header: t("
|
|
1616
|
+
Header: t("EKYC_SUBMITTED") || "eKYC Completed",
|
|
1655
1617
|
accessor: row => (row === null || row === void 0 ? void 0 : row.submittedKnos) || 0,
|
|
1656
1618
|
id: "ekycCompleted"
|
|
1657
1619
|
}, {
|
|
@@ -2703,7 +2665,7 @@ const Inbox = _ref2 => {
|
|
|
2703
2665
|
type: "today",
|
|
2704
2666
|
icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
|
|
2705
2667
|
}, {
|
|
2706
|
-
label: t("
|
|
2668
|
+
label: t("EKYC_SUBMITTED_TITLE"),
|
|
2707
2669
|
count: (progressMetrics === null || progressMetrics === void 0 ? void 0 : progressMetrics.submittedKnos) || 0,
|
|
2708
2670
|
color: "#10B981",
|
|
2709
2671
|
type: "month",
|
|
@@ -4848,7 +4810,7 @@ const AdminDashboard = () => {
|
|
|
4848
4810
|
className: "stat-item"
|
|
4849
4811
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
4850
4812
|
className: "stat-value"
|
|
4851
|
-
}, vendor.
|
|
4813
|
+
}, vendor.totalAssignments), /*#__PURE__*/React__default.createElement("span", {
|
|
4852
4814
|
className: "stat-label"
|
|
4853
4815
|
}, t("TOTAL_EKYC_APPLICATIONS") || "Total KNOs"))), /*#__PURE__*/React__default.createElement("div", {
|
|
4854
4816
|
className: "knos-summary"
|
|
@@ -5082,7 +5044,7 @@ const SupervisorDetailsCard = () => {
|
|
|
5082
5044
|
type: "today",
|
|
5083
5045
|
icon: /*#__PURE__*/React__default.createElement(fa.FaUsers, null)
|
|
5084
5046
|
}, {
|
|
5085
|
-
label: "
|
|
5047
|
+
label: "EKYC_SUBMITTED_TITLE",
|
|
5086
5048
|
count: (supervisor === null || supervisor === void 0 ? void 0 : supervisor.submittedKnos) || 0,
|
|
5087
5049
|
color: "#10B981",
|
|
5088
5050
|
type: "month",
|
|
@@ -5151,7 +5113,7 @@ const SupervisorDetailsCard = () => {
|
|
|
5151
5113
|
accessor: row => (row === null || row === void 0 ? void 0 : row.totalKnos) || 0,
|
|
5152
5114
|
id: "totalEkycApplications"
|
|
5153
5115
|
}, {
|
|
5154
|
-
Header: t("
|
|
5116
|
+
Header: t("EKYC_SUBMITTED") || "eKYC Completed",
|
|
5155
5117
|
accessor: row => (row === null || row === void 0 ? void 0 : row.submittedKnos) || 0,
|
|
5156
5118
|
id: "ekycCompleted"
|
|
5157
5119
|
}, {
|
|
@@ -9013,11 +8975,6 @@ const CitizenApp = () => {
|
|
|
9013
8975
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
|
|
9014
8976
|
to: "/digit-ui/citizen/ekyc-home"
|
|
9015
8977
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9016
|
-
path: [`${path}/vendor-dashboard/:vendorId`, `${path}/vendor-dashboard`],
|
|
9017
|
-
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9018
|
-
layoutClass: "normal"
|
|
9019
|
-
}, /*#__PURE__*/React__default.createElement(VendorDetailsCard, null))
|
|
9020
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9021
8978
|
path: `${path}/inbox`,
|
|
9022
8979
|
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9023
8980
|
layoutClass: "normal"
|
|
@@ -9055,25 +9012,35 @@ const CitizenApp = () => {
|
|
|
9055
9012
|
layoutClass: "action"
|
|
9056
9013
|
}, /*#__PURE__*/React__default.createElement(SurveyorDetailsDashboard, null))
|
|
9057
9014
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9058
|
-
path: `${path}/
|
|
9015
|
+
path: `${path}/status/:applicationId`,
|
|
9059
9016
|
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9060
9017
|
layoutClass: "normal"
|
|
9061
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
9018
|
+
}, /*#__PURE__*/React__default.createElement(Review, null))
|
|
9062
9019
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9063
|
-
path: `${path}/
|
|
9020
|
+
path: [`${path}/vendor-dashboard/:vendorId`, `${path}/vendor-dashboard`],
|
|
9064
9021
|
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9065
9022
|
layoutClass: "normal"
|
|
9066
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
9023
|
+
}, /*#__PURE__*/React__default.createElement(VendorDetailsCard, null))
|
|
9067
9024
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9068
|
-
path: `${path}/
|
|
9025
|
+
path: `${path}/supervisor-dashboard/:id`,
|
|
9069
9026
|
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9070
9027
|
layoutClass: "normal"
|
|
9071
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
9028
|
+
}, /*#__PURE__*/React__default.createElement(SupervisorDetailsCard, null))
|
|
9072
9029
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9073
|
-
path:
|
|
9030
|
+
path: `${path}/supervisor-dashboard`,
|
|
9074
9031
|
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9075
9032
|
layoutClass: "normal"
|
|
9076
9033
|
}, /*#__PURE__*/React__default.createElement(SupervisorDetailsCard, null))
|
|
9034
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9035
|
+
path: `${path}/surveyor-dashboard/:id`,
|
|
9036
|
+
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9037
|
+
layoutClass: "action"
|
|
9038
|
+
}, /*#__PURE__*/React__default.createElement(SurveyorDetailsDashboard, null))
|
|
9039
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9040
|
+
path: `${path}/surveyor-dashboard`,
|
|
9041
|
+
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9042
|
+
layoutClass: "normal"
|
|
9043
|
+
}, /*#__PURE__*/React__default.createElement(SurveyorDetailsDashboard, null))
|
|
9077
9044
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9078
9045
|
path: `${path}/:id`,
|
|
9079
9046
|
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|