@djb25/digit-ui-module-ekyc 1.0.42 → 1.0.43
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 +49 -90
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +49 -90
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const EKYCCard = () => {
|
|
|
32
32
|
kpis: [{
|
|
33
33
|
count: totalCount,
|
|
34
34
|
label: t("TOTAL_EKYC"),
|
|
35
|
-
link: "/digit-ui/employee/ekyc/dashboard"
|
|
35
|
+
link: "/digit-ui/employee/ekyc/admin-dashboard"
|
|
36
36
|
}],
|
|
37
37
|
links: [{
|
|
38
38
|
label: t("CEO_M.F_DOR_FINANCE_VIEW"),
|
|
@@ -2822,7 +2822,9 @@ const SearchFormFieldsComponents = _ref => {
|
|
|
2822
2822
|
const useInboxMobileCardsData = _ref => {
|
|
2823
2823
|
var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3;
|
|
2824
2824
|
let table = _ref.table,
|
|
2825
|
-
tenantId = _ref.tenantId
|
|
2825
|
+
tenantId = _ref.tenantId,
|
|
2826
|
+
_ref$isSupervisor = _ref.isSupervisor,
|
|
2827
|
+
isSupervisor = _ref$isSupervisor === void 0 ? false : _ref$isSupervisor;
|
|
2826
2828
|
const _useTranslation = reactI18next.useTranslation(),
|
|
2827
2829
|
t = _useTranslation.t;
|
|
2828
2830
|
const history = reactRouterDom.useHistory();
|
|
@@ -2834,38 +2836,58 @@ const useInboxMobileCardsData = _ref => {
|
|
|
2834
2836
|
getReview = _Digit$Hooks$ekyc$use.getReview;
|
|
2835
2837
|
const userType = ((_Digit$SessionStorage = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage === void 0 ? void 0 : (_Digit$SessionStorage2 = _Digit$SessionStorage.info) === null || _Digit$SessionStorage2 === void 0 ? void 0 : (_Digit$SessionStorage3 = _Digit$SessionStorage2.type) === null || _Digit$SessionStorage3 === void 0 ? void 0 : _Digit$SessionStorage3.toLowerCase()) || "citizen";
|
|
2836
2838
|
React__default.useEffect(() => {
|
|
2837
|
-
if (reviewData) {
|
|
2839
|
+
if (!isSupervisor && reviewData) {
|
|
2838
2840
|
history.push("/digit-ui/" + userType + "/ekyc/review/" + selectedKno, {
|
|
2839
2841
|
aadhaarData: reviewData === null || reviewData === void 0 ? void 0 : reviewData.aadhaarData,
|
|
2840
2842
|
reviewData
|
|
2841
2843
|
});
|
|
2842
2844
|
}
|
|
2843
|
-
}, [reviewData]);
|
|
2845
|
+
}, [reviewData, isSupervisor]);
|
|
2844
2846
|
const handleReview = kno => {
|
|
2845
2847
|
setSelectedKno(kno);
|
|
2846
2848
|
getReview({
|
|
2847
2849
|
kno
|
|
2848
2850
|
});
|
|
2849
2851
|
};
|
|
2852
|
+
const handleSupervisorReview = id => {
|
|
2853
|
+
history.push("/digit-ui/" + userType + "/ekyc/assign/surveyor-details/" + id);
|
|
2854
|
+
};
|
|
2850
2855
|
const dataForMobileInboxCards = table === null || table === void 0 ? void 0 : table.map(item => {
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2856
|
+
if (isSupervisor) {
|
|
2857
|
+
var _item$owner;
|
|
2858
|
+
const id = item.id;
|
|
2859
|
+
const status = item.status || "DEFAULT";
|
|
2860
|
+
return {
|
|
2861
|
+
[t("SURVEYOR_NAME")]: /*#__PURE__*/React__default.createElement("span", {
|
|
2862
|
+
className: "link",
|
|
2863
|
+
onClick: () => handleSupervisorReview(id)
|
|
2864
|
+
}, item.surveyorName || item.name || "NA"),
|
|
2865
|
+
[t("MOBILE_NUMBER")]: item.mobileNo || ((_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.mobileNumber) || "NA",
|
|
2866
|
+
[t("STATUS")]: /*#__PURE__*/React__default.createElement("span", {
|
|
2867
|
+
className: "ekyc-status-tag " + status
|
|
2868
|
+
}, t(status)),
|
|
2869
|
+
[t("SERVICE_TYPE")]: item.serviceType || "NA"
|
|
2870
|
+
};
|
|
2871
|
+
} else {
|
|
2872
|
+
const kno = item.kno || item.applicationNumber || "NA";
|
|
2873
|
+
const status = (item.status || "DEFAULT").toUpperCase();
|
|
2874
|
+
const ekycStatus = (item.ekycStatus || item.ekycstatus || "NA").toUpperCase();
|
|
2875
|
+
return {
|
|
2876
|
+
[t("EKYC_APPLICATION_NO")]: /*#__PURE__*/React__default.createElement("span", {
|
|
2877
|
+
className: "link",
|
|
2878
|
+
onClick: () => handleReview(kno)
|
|
2879
|
+
}, kno),
|
|
2880
|
+
[t("EKYC_CITIZEN_NAME")]: item.citizenName || "NA",
|
|
2881
|
+
[t("EKYC_STATUS")]: /*#__PURE__*/React__default.createElement("span", {
|
|
2882
|
+
className: "ekyc-status-tag " + status
|
|
2883
|
+
}, t("" + status)),
|
|
2884
|
+
[t("SUBMITTED_AT")]: item.submittedAt ? Digit.DateUtils.ConvertEpochToDate(item.submittedAt) : "-",
|
|
2885
|
+
[t("ASSIGNED_AT")]: item.assignedAt ? Digit.DateUtils.ConvertEpochToDate(item.assignedAt) : "-",
|
|
2886
|
+
[t("EKYC_EKYC_STATUS")]: /*#__PURE__*/React__default.createElement("span", {
|
|
2887
|
+
className: "ekyc-status-tag " + ekycStatus
|
|
2888
|
+
}, t("" + ekycStatus))
|
|
2889
|
+
};
|
|
2890
|
+
}
|
|
2869
2891
|
});
|
|
2870
2892
|
const MobileSortFormValues = () => {
|
|
2871
2893
|
const sortOrderOptions = [{
|
|
@@ -2900,7 +2922,7 @@ const useInboxMobileCardsData = _ref => {
|
|
|
2900
2922
|
isTwoDynamicPrefix: true,
|
|
2901
2923
|
getRedirectionLink: () => {},
|
|
2902
2924
|
handleClickEnabled: false,
|
|
2903
|
-
serviceRequestIdKey: "applicationNo",
|
|
2925
|
+
serviceRequestIdKey: isSupervisor ? "id" : "applicationNo",
|
|
2904
2926
|
MobileSortFormValues
|
|
2905
2927
|
};
|
|
2906
2928
|
};
|
|
@@ -5651,70 +5673,6 @@ const SupervisorInboxTableConfig = _ref => {
|
|
|
5651
5673
|
};
|
|
5652
5674
|
};
|
|
5653
5675
|
|
|
5654
|
-
const useSupervisorInboxMobileCardsData = _ref => {
|
|
5655
|
-
var _Digit$SessionStorage, _Digit$SessionStorage2, _Digit$SessionStorage3;
|
|
5656
|
-
let table = _ref.table;
|
|
5657
|
-
const _useTranslation = reactI18next.useTranslation(),
|
|
5658
|
-
t = _useTranslation.t;
|
|
5659
|
-
const history = reactRouterDom.useHistory();
|
|
5660
|
-
const userType = ((_Digit$SessionStorage = Digit.SessionStorage.get("User")) === null || _Digit$SessionStorage === void 0 ? void 0 : (_Digit$SessionStorage2 = _Digit$SessionStorage.info) === null || _Digit$SessionStorage2 === void 0 ? void 0 : (_Digit$SessionStorage3 = _Digit$SessionStorage2.type) === null || _Digit$SessionStorage3 === void 0 ? void 0 : _Digit$SessionStorage3.toLowerCase()) || "citizen";
|
|
5661
|
-
const handleReview = id => {
|
|
5662
|
-
history.push("/digit-ui/" + userType + "/ekyc/assign/surveyor-details/" + id);
|
|
5663
|
-
};
|
|
5664
|
-
const dataForMobileInboxCards = table === null || table === void 0 ? void 0 : table.map(item => {
|
|
5665
|
-
var _item$owner;
|
|
5666
|
-
const id = item.id;
|
|
5667
|
-
const status = item.status || "DEFAULT";
|
|
5668
|
-
return {
|
|
5669
|
-
[t("SURVEYOR_NAME")]: /*#__PURE__*/React__default.createElement("span", {
|
|
5670
|
-
className: "link",
|
|
5671
|
-
onClick: () => handleReview(id)
|
|
5672
|
-
}, item.surveyorName || item.name || "NA"),
|
|
5673
|
-
[t("MOBILE_NUMBER")]: item.mobileNo || ((_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.mobileNumber) || "NA",
|
|
5674
|
-
[t("STATUS")]: /*#__PURE__*/React__default.createElement("span", {
|
|
5675
|
-
className: "ekyc-status-tag " + status
|
|
5676
|
-
}, t(status)),
|
|
5677
|
-
[t("SERVICE_TYPE")]: item.serviceType || "NA"
|
|
5678
|
-
};
|
|
5679
|
-
});
|
|
5680
|
-
const MobileSortFormValues = () => {
|
|
5681
|
-
const sortOrderOptions = [{
|
|
5682
|
-
code: "DESC",
|
|
5683
|
-
i18nKey: "ES_INBOX_DATE_LATEST_FIRST"
|
|
5684
|
-
}, {
|
|
5685
|
-
code: "ASC",
|
|
5686
|
-
i18nKey: "ES_INBOX_DATE_LATEST_LAST"
|
|
5687
|
-
}];
|
|
5688
|
-
const _useFormContext = useFormContext(),
|
|
5689
|
-
controlSortForm = _useFormContext.control;
|
|
5690
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.SearchField, null, /*#__PURE__*/React__default.createElement(Controller, {
|
|
5691
|
-
name: "sortOrder",
|
|
5692
|
-
control: controlSortForm,
|
|
5693
|
-
render: _ref2 => {
|
|
5694
|
-
let onChange = _ref2.onChange,
|
|
5695
|
-
value = _ref2.value;
|
|
5696
|
-
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
|
|
5697
|
-
onSelect: e => {
|
|
5698
|
-
onChange(e.code);
|
|
5699
|
-
},
|
|
5700
|
-
selectedOption: sortOrderOptions.filter(option => option.code === value)[0],
|
|
5701
|
-
optionsKey: "i18nKey",
|
|
5702
|
-
name: "sortOrder",
|
|
5703
|
-
options: sortOrderOptions
|
|
5704
|
-
});
|
|
5705
|
-
}
|
|
5706
|
-
}));
|
|
5707
|
-
};
|
|
5708
|
-
return {
|
|
5709
|
-
data: dataForMobileInboxCards,
|
|
5710
|
-
isTwoDynamicPrefix: true,
|
|
5711
|
-
getRedirectionLink: () => {},
|
|
5712
|
-
handleClickEnabled: false,
|
|
5713
|
-
serviceRequestIdKey: "id",
|
|
5714
|
-
MobileSortFormValues
|
|
5715
|
-
};
|
|
5716
|
-
};
|
|
5717
|
-
|
|
5718
5676
|
const AssignEkyc = () => {
|
|
5719
5677
|
var _formState$tableForm, _formState$tableForm2, _formState$tableForm3, _formState$tableForm4, _formState$searchForm, _dashboardData$dashbo;
|
|
5720
5678
|
let tenantId = Digit.ULBService.getCurrentTenantId();
|
|
@@ -5893,8 +5851,9 @@ const AssignEkyc = () => {
|
|
|
5893
5851
|
sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
|
|
5894
5852
|
onSortFormReset
|
|
5895
5853
|
};
|
|
5896
|
-
const propsForInboxMobileCards =
|
|
5897
|
-
table: filteredData
|
|
5854
|
+
const propsForInboxMobileCards = useInboxMobileCardsData({
|
|
5855
|
+
table: filteredData,
|
|
5856
|
+
isSupervisor: true
|
|
5898
5857
|
});
|
|
5899
5858
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5900
5859
|
className: "app-container"
|
|
@@ -6089,7 +6048,7 @@ const AdminDashboard = () => {
|
|
|
6089
6048
|
y1: "15",
|
|
6090
6049
|
x2: "12",
|
|
6091
6050
|
y2: "3"
|
|
6092
|
-
})), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel")), /*#__PURE__*/React__default.createElement("div", {
|
|
6051
|
+
})), ekycDownloadLoading ? t("DOWNLOADING") || "Downloading..." : t("DOWNLOAD_EXCEL") || "Download Excel")), /*#__PURE__*/React__default.createElement(Dashboard, null), /*#__PURE__*/React__default.createElement("div", {
|
|
6093
6052
|
className: "admin-performance-section"
|
|
6094
6053
|
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
6095
6054
|
className: "section-title"
|