@djb25/digit-ui-module-ekyc 1.0.61 → 1.0.62
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 +5 -45
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -45
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6414,14 +6414,6 @@ const AssignEkycModal = _ref => {
|
|
|
6414
6414
|
const _useState7 = useState(filters),
|
|
6415
6415
|
debouncedFilters = _useState7[0],
|
|
6416
6416
|
setDebouncedFilters = _useState7[1];
|
|
6417
|
-
const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.ZROLocation(tenantId),
|
|
6418
|
-
zroLocationsData = _Digit$Hooks$ws$useWS.data;
|
|
6419
|
-
const mappedZROLocation = useMemo(() => {
|
|
6420
|
-
return (zroLocationsData || []).map(item => ({
|
|
6421
|
-
code: item.code,
|
|
6422
|
-
name: item.name
|
|
6423
|
-
}));
|
|
6424
|
-
}, [zroLocationsData]);
|
|
6425
6417
|
const _Digit$Hooks$useCommo = Digit.Hooks.useCommonMDMS(tenantId, "egov-location", ["TenantBoundary"]),
|
|
6426
6418
|
egovLocationData = _Digit$Hooks$useCommo.data;
|
|
6427
6419
|
const boundaryData = useMemo(() => {
|
|
@@ -6434,38 +6426,6 @@ const AssignEkycModal = _ref => {
|
|
|
6434
6426
|
const boundary = (revenueData === null || revenueData === void 0 ? void 0 : revenueData.boundary) || [];
|
|
6435
6427
|
return Array.isArray(boundary) ? boundary : [boundary];
|
|
6436
6428
|
}, [egovLocationData]);
|
|
6437
|
-
const _useMemo = useMemo(() => {
|
|
6438
|
-
const assemblies = new Map();
|
|
6439
|
-
const wards = new Map();
|
|
6440
|
-
const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
|
|
6441
|
-
const traverse = node => {
|
|
6442
|
-
if (!node) return;
|
|
6443
|
-
if (node.label === "Ward" || node.label === "WARD" || node.label === "Block" || node.label === "BLOCK") {
|
|
6444
|
-
const code = node.code || node.localname || node.name;
|
|
6445
|
-
const name = node.name || node.localname || code;
|
|
6446
|
-
if (code) wards.set(code, {
|
|
6447
|
-
code,
|
|
6448
|
-
name: name
|
|
6449
|
-
});
|
|
6450
|
-
}
|
|
6451
|
-
if (node.label === "Assembly Constituency" || node.label === "ASSEMBLY_CONSTITUENCY") {
|
|
6452
|
-
const code = node.code || node.localname || node.name;
|
|
6453
|
-
const name = node.name || node.localname || code;
|
|
6454
|
-
if (code) assemblies.set(code, {
|
|
6455
|
-
code,
|
|
6456
|
-
name: name
|
|
6457
|
-
});
|
|
6458
|
-
}
|
|
6459
|
-
if (node.children && node.children.length > 0) {
|
|
6460
|
-
node.children.forEach(traverse);
|
|
6461
|
-
}
|
|
6462
|
-
};
|
|
6463
|
-
boundaries.forEach(traverse);
|
|
6464
|
-
return {
|
|
6465
|
-
assemblyOptions: Array.from(assemblies.values()).sort((a, b) => a.name.localeCompare(b.name)),
|
|
6466
|
-
wardOptions: Array.from(wards.values()).sort((a, b) => a.name.localeCompare(b.name))
|
|
6467
|
-
};
|
|
6468
|
-
}, [boundaryData]);
|
|
6469
6429
|
const structuredLocalityData = useMemo(() => {
|
|
6470
6430
|
let localities = [];
|
|
6471
6431
|
const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
|
|
@@ -6787,9 +6747,10 @@ const AssignEkycModal = _ref => {
|
|
|
6787
6747
|
value: filters.kno,
|
|
6788
6748
|
onChange: e => handleFilterChange("kno", e.target.value)
|
|
6789
6749
|
}), /*#__PURE__*/React.createElement("select", {
|
|
6790
|
-
className: "form-control",
|
|
6750
|
+
className: "form-control disabled",
|
|
6791
6751
|
value: filters.pincode,
|
|
6792
|
-
onChange: e => handleFilterChange("pincode", e.target.value)
|
|
6752
|
+
onChange: e => handleFilterChange("pincode", e.target.value),
|
|
6753
|
+
disabled: true
|
|
6793
6754
|
}, /*#__PURE__*/React.createElement("option", {
|
|
6794
6755
|
value: ""
|
|
6795
6756
|
}, "Select Pincode"), pincodeOptions.map(pin => /*#__PURE__*/React.createElement("option", {
|
|
@@ -7282,7 +7243,6 @@ const SurveyorDetailsDashboard = () => {
|
|
|
7282
7243
|
meterPhotoFileStoreId: t("METER_PHOTO_FILESTORE_ID"),
|
|
7283
7244
|
modifiedBy: t("MODIFIED_BY"),
|
|
7284
7245
|
emailId: t("EMAIL_ID"),
|
|
7285
|
-
fatherOrHusbandName: t("FATHER_HUSBUND_NAME"),
|
|
7286
7246
|
dob: t("DOB"),
|
|
7287
7247
|
consumerType: t("CONSUMER_TYPE"),
|
|
7288
7248
|
createdTime: t("CREATED_TIME"),
|
|
@@ -8125,7 +8085,7 @@ const breadcrumb = (userType, listLabel, listPath, detailLabel) => [{
|
|
|
8125
8085
|
}, {
|
|
8126
8086
|
label: detailLabel
|
|
8127
8087
|
}];
|
|
8128
|
-
const getEkycRoutes = userType => [{
|
|
8088
|
+
const getEkycRoutes = (userType, t) => [{
|
|
8129
8089
|
path: "/dashboard",
|
|
8130
8090
|
component: Dashboard,
|
|
8131
8091
|
layout: "normal",
|
|
@@ -8182,7 +8142,7 @@ const getEkycRoutes = userType => [{
|
|
|
8182
8142
|
path: ["/vendors/:vendorId", "/vendors"],
|
|
8183
8143
|
component: VendorDetailsCard,
|
|
8184
8144
|
layout: "normal",
|
|
8185
|
-
breadcrumb: breadcrumb(userType, "EKYC_VENDORS", "
|
|
8145
|
+
breadcrumb: breadcrumb(userType, "EKYC_VENDORS", "admin-dashboard", "EKYC_VENDOR_DETAILS")
|
|
8186
8146
|
}, {
|
|
8187
8147
|
path: ["/supervisor-dashboard/:id", "/supervisor-dashboard"],
|
|
8188
8148
|
component: SupervisorDetailsCard,
|