@mseva/digit-ui-module-ndc 1.0.17 → 1.0.18
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 +33 -26
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +34 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Card, Banner, ActionBar, SubmitBar as SubmitBar$1, PrivateRoute, BreadCrumb, BackButton, AppContainer, Loader, Dropdown, UploadFile, Modal, FormComposer, Toast,
|
|
1
|
+
import { Card, Banner, ActionBar, SubmitBar as SubmitBar$1, PrivateRoute, BreadCrumb, BackButton, AppContainer, Loader, Dropdown, UploadFile, Modal, FormComposer, Toast, CardSubHeader, StatusTable, Row, CheckPoint, ConnectingCheckPoints, DisplayPhotos, Menu, LinkButton, EmployeeModuleCard, SearchField, TextInput, FilterFormField, RadioButtons, CheckBox, ComplaintIcon, Header, InboxComposer, MobileNumber, CardLabelError, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, CardHeader, LabelFieldPair, CardLabel, DeleteIcon, KeyNote } from '@mseva/digit-ui-react-components';
|
|
2
2
|
import React, { Fragment as Fragment$1, useState, useEffect, useRef, useMemo, useReducer, useCallback, forwardRef } from 'react';
|
|
3
3
|
import { useHistory, useLocation, Switch, Route, useRouteMatch, useParams, Link } from 'react-router-dom';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1027,6 +1027,7 @@ const NDCModal = ({
|
|
|
1027
1027
|
Licenses: [applicationData]
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
|
+
console.log("config.label.submit", config);
|
|
1030
1031
|
useEffect(() => {
|
|
1031
1032
|
if (action) {
|
|
1032
1033
|
setConfig(ModalConfig({
|
|
@@ -1332,11 +1333,7 @@ const ApplicationOverview = () => {
|
|
|
1332
1333
|
}
|
|
1333
1334
|
return /*#__PURE__*/React.createElement("div", {
|
|
1334
1335
|
className: "employee-main-application-details"
|
|
1335
|
-
}, /*#__PURE__*/React.createElement("
|
|
1336
|
-
styles: {
|
|
1337
|
-
fontSize: "32px"
|
|
1338
|
-
}
|
|
1339
|
-
}, t("NDC_APP_OVER_VIEW_HEADER"))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React.createElement(StatusTable, null, (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(([key, value]) => /*#__PURE__*/React.createElement(Row, {
|
|
1336
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React.createElement(StatusTable, null, (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(([key, value]) => /*#__PURE__*/React.createElement(Row, {
|
|
1340
1337
|
key: key,
|
|
1341
1338
|
label: t(`${key === null || key === void 0 ? void 0 : key.toUpperCase()}`),
|
|
1342
1339
|
text: Array.isArray(value) ? value.map(item => typeof item === "object" ? t((item === null || item === void 0 ? void 0 : item.code) || "N/A") : t(item || "N/A")).join(", ") : typeof value === "object" ? t((value === null || value === void 0 ? void 0 : value.code) || "N/A") : t(value || "N/A")
|
|
@@ -1381,7 +1378,7 @@ const ApplicationOverview = () => {
|
|
|
1381
1378
|
label: t(checkpoint.status),
|
|
1382
1379
|
customChild: getTimelineCaptions(checkpoint, index, arr, t)
|
|
1383
1380
|
})))), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : (_applicationDetails$A4 = _applicationDetails$A3[0]) === null || _applicationDetails$A4 === void 0 ? void 0 : _applicationDetails$A4.applicationStatus) !== "INITIATED" && actions && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.actionState) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
|
|
1384
|
-
localeKeyPrefix: `
|
|
1381
|
+
localeKeyPrefix: `WF_EDITRENEWAL`,
|
|
1385
1382
|
options: actions,
|
|
1386
1383
|
optionKey: "action",
|
|
1387
1384
|
t: t,
|
|
@@ -8903,12 +8900,12 @@ const CitizenApplicationOverview = () => {
|
|
|
8903
8900
|
var _applicationDetails$A;
|
|
8904
8901
|
const ndcObject = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A = applicationDetails.Applications) === null || _applicationDetails$A === void 0 ? void 0 : _applicationDetails$A[0];
|
|
8905
8902
|
if (ndcObject) {
|
|
8906
|
-
var _ndcObject$
|
|
8903
|
+
var _ndcObject$owners, _ndcObject$owners$, _ndcObject$owners2, _ndcObject$owners2$, _ndcObject$owners3, _ndcObject$owners3$, _ndcObject$NdcDetails, _ndcObject$NdcDetails2, _ndcObject$NdcDetails3, _removeDuplicatesByUU;
|
|
8907
8904
|
const applicantData = {
|
|
8908
|
-
|
|
8909
|
-
email: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners = ndcObject.owners) === null || _ndcObject$owners === void 0 ? void 0 : (_ndcObject$owners$ = _ndcObject$owners[0]) === null || _ndcObject$owners$ === void 0 ? void 0 : _ndcObject$owners$.emailId,
|
|
8905
|
+
name: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners = ndcObject.owners) === null || _ndcObject$owners === void 0 ? void 0 : (_ndcObject$owners$ = _ndcObject$owners[0]) === null || _ndcObject$owners$ === void 0 ? void 0 : _ndcObject$owners$.name,
|
|
8910
8906
|
mobile: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners2 = ndcObject.owners) === null || _ndcObject$owners2 === void 0 ? void 0 : (_ndcObject$owners2$ = _ndcObject$owners2[0]) === null || _ndcObject$owners2$ === void 0 ? void 0 : _ndcObject$owners2$.mobileNumber,
|
|
8911
|
-
|
|
8907
|
+
email: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$owners3 = ndcObject.owners) === null || _ndcObject$owners3 === void 0 ? void 0 : (_ndcObject$owners3$ = _ndcObject$owners3[0]) === null || _ndcObject$owners3$ === void 0 ? void 0 : _ndcObject$owners3$.emailId,
|
|
8908
|
+
address: ndcObject === null || ndcObject === void 0 ? void 0 : (_ndcObject$NdcDetails = ndcObject.NdcDetails) === null || _ndcObject$NdcDetails === void 0 ? void 0 : (_ndcObject$NdcDetails2 = _ndcObject$NdcDetails[0]) === null || _ndcObject$NdcDetails2 === void 0 ? void 0 : (_ndcObject$NdcDetails3 = _ndcObject$NdcDetails2.additionalDetails) === null || _ndcObject$NdcDetails3 === void 0 ? void 0 : _ndcObject$NdcDetails3.propertyAddress,
|
|
8912
8909
|
applicationNo: ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.uuid
|
|
8913
8910
|
};
|
|
8914
8911
|
const Documents = removeDuplicatesByUUID((ndcObject === null || ndcObject === void 0 ? void 0 : ndcObject.Documents) || []);
|
|
@@ -8946,7 +8943,7 @@ const CitizenApplicationOverview = () => {
|
|
|
8946
8943
|
const Property = applicationDetails;
|
|
8947
8944
|
console.log("applicationDetails in StakeholderAck", applicationDetails);
|
|
8948
8945
|
console.log("tenants", tenants);
|
|
8949
|
-
const tenantInfo = tenants.find(tenant => tenant.code === Property.tenantId);
|
|
8946
|
+
const tenantInfo = tenants === null || tenants === void 0 ? void 0 : tenants.find(tenant => (tenant === null || tenant === void 0 ? void 0 : tenant.code) === (Property === null || Property === void 0 ? void 0 : Property.tenantId));
|
|
8950
8947
|
const acknowledgementData = await getAcknowledgementData(Property, tenantInfo, t);
|
|
8951
8948
|
console.log("acknowledgementData", acknowledgementData);
|
|
8952
8949
|
Digit.Utils.pdf.generate(acknowledgementData);
|
|
@@ -8959,25 +8956,27 @@ const CitizenApplicationOverview = () => {
|
|
|
8959
8956
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8960
8957
|
style: {
|
|
8961
8958
|
display: "flex",
|
|
8962
|
-
justifyContent: "
|
|
8959
|
+
justifyContent: "end",
|
|
8963
8960
|
alignItems: "center",
|
|
8964
8961
|
padding: "16px"
|
|
8965
8962
|
}
|
|
8966
|
-
}, /*#__PURE__*/React.createElement(
|
|
8967
|
-
|
|
8968
|
-
fontSize: "32px"
|
|
8969
|
-
}
|
|
8970
|
-
}, t("NDC_APP_OVER_VIEW_HEADER")), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : (_applicationDetails$A4 = _applicationDetails$A3[0]) === null || _applicationDetails$A4 === void 0 ? void 0 : _applicationDetails$A4.applicationStatus) === "APPROVED" && /*#__PURE__*/React.createElement(LinkButton, {
|
|
8963
|
+
}, (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$A3 = applicationDetails.Applications) === null || _applicationDetails$A3 === void 0 ? void 0 : (_applicationDetails$A4 = _applicationDetails$A3[0]) === null || _applicationDetails$A4 === void 0 ? void 0 : _applicationDetails$A4.applicationStatus) === "APPROVED" && /*#__PURE__*/React.createElement(LinkButton, {
|
|
8964
|
+
className: "downLoadButton",
|
|
8971
8965
|
label: t("DOWNLOAD_CERTIFICATE"),
|
|
8972
|
-
style: {
|
|
8973
|
-
color: "#A52A2A"
|
|
8974
|
-
},
|
|
8975
8966
|
onClick: handleDownloadPdf
|
|
8976
|
-
})), /*#__PURE__*/React.createElement(Card,
|
|
8967
|
+
})), /*#__PURE__*/React.createElement(Card, {
|
|
8968
|
+
className: "ndc_card_main"
|
|
8969
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
8970
|
+
className: "ndc_label"
|
|
8971
|
+
}, t("NDC_APPLICATION_DETAILS_OVERVIEW")), /*#__PURE__*/React.createElement(StatusTable, null, console.log("displayData?.applicantData", displayData === null || displayData === void 0 ? void 0 : displayData.applicantData), (displayData === null || displayData === void 0 ? void 0 : displayData.applicantData) && ((_Object$entries = Object.entries(displayData === null || displayData === void 0 ? void 0 : displayData.applicantData)) === null || _Object$entries === void 0 ? void 0 : _Object$entries.map(([key, value]) => /*#__PURE__*/React.createElement(Row, {
|
|
8977
8972
|
key: key,
|
|
8978
8973
|
label: t(`${key === null || key === void 0 ? void 0 : key.toUpperCase()}`),
|
|
8979
8974
|
text: Array.isArray(value) ? value.map(item => typeof item === "object" ? t((item === null || item === void 0 ? void 0 : item.code) || "N/A") : t(item || "N/A")).join(", ") : typeof value === "object" ? t((value === null || value === void 0 ? void 0 : value.code) || "N/A") : t(value || "N/A")
|
|
8980
|
-
}))))), /*#__PURE__*/React.createElement(Card,
|
|
8975
|
+
}))))), /*#__PURE__*/React.createElement(Card, {
|
|
8976
|
+
className: "ndc_card_main"
|
|
8977
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
8978
|
+
className: "ndc_label"
|
|
8979
|
+
}, t("NDC_APPLICATION_NDC_DETAILS_OVERVIEW")), displayData === null || displayData === void 0 ? void 0 : (_displayData$NdcDetai = displayData.NdcDetails) === null || _displayData$NdcDetai === void 0 ? void 0 : _displayData$NdcDetai.map((detail, index) => {
|
|
8981
8980
|
var _detail$dueAmount;
|
|
8982
8981
|
return /*#__PURE__*/React.createElement("div", {
|
|
8983
8982
|
key: index,
|
|
@@ -9000,7 +8999,11 @@ const CitizenApplicationOverview = () => {
|
|
|
9000
8999
|
label: t("NDC_PROPERTY_TYPE"),
|
|
9001
9000
|
text: t(detail.propertyType) || detail.propertyType
|
|
9002
9001
|
})));
|
|
9003
|
-
})), /*#__PURE__*/React.createElement(Card,
|
|
9002
|
+
})), /*#__PURE__*/React.createElement(Card, {
|
|
9003
|
+
className: "ndc_card_main"
|
|
9004
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9005
|
+
className: "ndc_label"
|
|
9006
|
+
}, t("NDC_APPLICATION_DOCUMENTS_OVERVIEW")), /*#__PURE__*/React.createElement("div", {
|
|
9004
9007
|
style: {
|
|
9005
9008
|
display: "flex",
|
|
9006
9009
|
gap: "16px"
|
|
@@ -9009,13 +9012,17 @@ const CitizenApplicationOverview = () => {
|
|
|
9009
9012
|
value: {
|
|
9010
9013
|
workflowDocs: displayData === null || displayData === void 0 ? void 0 : displayData.Documents
|
|
9011
9014
|
}
|
|
9012
|
-
}) : /*#__PURE__*/React.createElement("div", null, t("TL_NO_DOCUMENTS_MSG")))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline) && /*#__PURE__*/React.createElement(Card,
|
|
9015
|
+
}) : /*#__PURE__*/React.createElement("div", null, t("TL_NO_DOCUMENTS_MSG")))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline) && /*#__PURE__*/React.createElement(Card, {
|
|
9016
|
+
className: "ndc_card_main"
|
|
9017
|
+
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
9018
|
+
className: "ndc_label"
|
|
9019
|
+
}, t("CS_APPLICATION_DETAILS_APPLICATION_TIMELINE")), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data2 = workflowDetails.data) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.timeline.length) === 1 ? /*#__PURE__*/React.createElement(CheckPoint, {
|
|
9013
9020
|
isCompleted: true,
|
|
9014
|
-
label: t(
|
|
9021
|
+
label: t(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline[0]) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.status)
|
|
9015
9022
|
}) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.timeline.map((checkpoint, index, arr) => /*#__PURE__*/React.createElement(CheckPoint, {
|
|
9016
9023
|
keyValue: index,
|
|
9017
9024
|
isCompleted: index === 0,
|
|
9018
|
-
label: t(
|
|
9025
|
+
label: t(checkpoint.status),
|
|
9019
9026
|
customChild: getTimelineCaptions$1(checkpoint, index, arr, t)
|
|
9020
9027
|
})))));
|
|
9021
9028
|
};
|