@mseva/digit-ui-module-noc 1.0.78-UAT.12 → 1.0.78-UAT.13
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29 -31
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -2
package/dist/index.modern.js
CHANGED
|
@@ -14129,7 +14129,7 @@ function NewApplicationTimeline({
|
|
|
14129
14129
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
14130
14130
|
className: "custom-timeline-entries"
|
|
14131
14131
|
}, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
|
|
14132
|
-
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
|
|
14132
|
+
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$assigner5, _item$assigner6, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
|
|
14133
14133
|
return /*#__PURE__*/React.createElement("div", {
|
|
14134
14134
|
key: index,
|
|
14135
14135
|
className: "custom-timeline-entry"
|
|
@@ -14166,9 +14166,13 @@ function NewApplicationTimeline({
|
|
|
14166
14166
|
className: "custom-officer-info"
|
|
14167
14167
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14168
14168
|
className: "custom-officer-name"
|
|
14169
|
-
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA")
|
|
14169
|
+
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA"), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("span", {
|
|
14170
14170
|
className: "custom-officer-name"
|
|
14171
|
-
}, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName])))
|
|
14171
|
+
}, "- ", t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName]))), (item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.emailId) && /*#__PURE__*/React.createElement("div", {
|
|
14172
|
+
className: "custom-officer-email"
|
|
14173
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14174
|
+
className: "custom-email-label"
|
|
14175
|
+
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.emailId))), /*#__PURE__*/React.createElement("div", {
|
|
14172
14176
|
className: "custom-card-column custom-card-column-mid"
|
|
14173
14177
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
14174
14178
|
className: "custom-action-title"
|
|
@@ -16566,7 +16570,7 @@ const NOCFeeTable = ({
|
|
|
16566
16570
|
window.addEventListener("resize", checkMobile);
|
|
16567
16571
|
return () => window.removeEventListener("resize", checkMobile);
|
|
16568
16572
|
}, []);
|
|
16569
|
-
console.log(
|
|
16573
|
+
console.log("feeHistory", feeHistory);
|
|
16570
16574
|
const columns = [{
|
|
16571
16575
|
key: "title",
|
|
16572
16576
|
label: "BPA_TAXHEAD_CODE",
|
|
@@ -16578,6 +16582,7 @@ const NOCFeeTable = ({
|
|
|
16578
16582
|
headerLabel: "BPA_AMOUNT",
|
|
16579
16583
|
type: "custom",
|
|
16580
16584
|
render: (row, rowIndex, t) => {
|
|
16585
|
+
var _feeData$row$index, _feeData$row$index2;
|
|
16581
16586
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16582
16587
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", {
|
|
16583
16588
|
style: {
|
|
@@ -16596,7 +16601,7 @@ const NOCFeeTable = ({
|
|
|
16596
16601
|
t: t,
|
|
16597
16602
|
type: "number",
|
|
16598
16603
|
isMandatory: false,
|
|
16599
|
-
value: feeData[row.index]
|
|
16604
|
+
value: ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.adjustedAmount) === 0 ? "" : ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.adjustedAmount) || row.amount || "",
|
|
16600
16605
|
onChange: e => {
|
|
16601
16606
|
let val = e.target.value;
|
|
16602
16607
|
if (val.length > 1 && val.startsWith("0")) {
|
|
@@ -16615,20 +16620,20 @@ const NOCFeeTable = ({
|
|
|
16615
16620
|
headerLabel: "BPA_REMARKS",
|
|
16616
16621
|
type: "custom",
|
|
16617
16622
|
render: (row, rowIndex, t) => {
|
|
16618
|
-
var _feeData$row$
|
|
16623
|
+
var _feeData$row$index4;
|
|
16619
16624
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16620
16625
|
return " ";
|
|
16621
16626
|
}
|
|
16622
16627
|
if (disable) {
|
|
16623
|
-
var _feeData$row$
|
|
16624
|
-
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$
|
|
16628
|
+
var _feeData$row$index3;
|
|
16629
|
+
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || /*#__PURE__*/React.createElement(TextArea, {
|
|
16625
16630
|
placeholder: "Enter remarks",
|
|
16626
16631
|
disabled: true,
|
|
16627
16632
|
className: "custom-fee-table-textarea"
|
|
16628
16633
|
}));
|
|
16629
16634
|
}
|
|
16630
16635
|
return /*#__PURE__*/React.createElement(TextArea, {
|
|
16631
|
-
value: ((_feeData$row$
|
|
16636
|
+
value: ((_feeData$row$index4 = feeData[row.index]) === null || _feeData$row$index4 === void 0 ? void 0 : _feeData$row$index4.remark) || "",
|
|
16632
16637
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16633
16638
|
disabled: false,
|
|
16634
16639
|
className: "custom-fee-table-textarea",
|
|
@@ -16696,7 +16701,7 @@ const NOCFeeTable = ({
|
|
|
16696
16701
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
16697
16702
|
className: "custom-fee-mobile-cards"
|
|
16698
16703
|
}, feeDataWithTotal.map((row, i) => {
|
|
16699
|
-
var _feeData$row$
|
|
16704
|
+
var _feeData$row$index5, _feeData$row$index6, _feeData$row$index7;
|
|
16700
16705
|
return /*#__PURE__*/React.createElement("div", {
|
|
16701
16706
|
key: row.index || i,
|
|
16702
16707
|
className: `custom-fee-card ${(row === null || row === void 0 ? void 0 : row.taxHeadCode) === "NOC_TOTAL" ? "custom-fee-card-total-row" : ""}`
|
|
@@ -16716,7 +16721,7 @@ const NOCFeeTable = ({
|
|
|
16716
16721
|
t: t,
|
|
16717
16722
|
type: "text",
|
|
16718
16723
|
isMandatory: false,
|
|
16719
|
-
value: feeData[row.index]
|
|
16724
|
+
value: ((_feeData$row$index5 = feeData[row.index]) === null || _feeData$row$index5 === void 0 ? void 0 : _feeData$row$index5.adjustedAmount) === 0 ? "" : ((_feeData$row$index6 = feeData[row.index]) === null || _feeData$row$index6 === void 0 ? void 0 : _feeData$row$index6.adjustedAmount) || row.amount || "",
|
|
16720
16725
|
onChange: e => {
|
|
16721
16726
|
let val = e.target.value;
|
|
16722
16727
|
if (/^\d*\.?\d*$/.test(val)) {
|
|
@@ -16743,7 +16748,7 @@ const NOCFeeTable = ({
|
|
|
16743
16748
|
}, /*#__PURE__*/React.createElement("label", {
|
|
16744
16749
|
className: "custom-fee-card-label"
|
|
16745
16750
|
}, t("BPA_REMARKS")), /*#__PURE__*/React.createElement(TextArea, {
|
|
16746
|
-
value: ((_feeData$row$
|
|
16751
|
+
value: ((_feeData$row$index7 = feeData[row.index]) === null || _feeData$row$index7 === void 0 ? void 0 : _feeData$row$index7.remark) || "",
|
|
16747
16752
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16748
16753
|
disabled: disable,
|
|
16749
16754
|
className: "custom-fee-table-textarea",
|
|
@@ -18501,7 +18506,6 @@ const InspectionReport$1 = ({
|
|
|
18501
18506
|
sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
|
|
18502
18507
|
}, [FieldReports]);
|
|
18503
18508
|
useEffect$1(() => {
|
|
18504
|
-
console.log("useffect 2INSPECTION_REPORT_PENDING");
|
|
18505
18509
|
let ques = [];
|
|
18506
18510
|
let documentlist = [];
|
|
18507
18511
|
bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
|
|
@@ -18976,15 +18980,15 @@ const getSiteDetails = (appData, t) => {
|
|
|
18976
18980
|
}, {
|
|
18977
18981
|
title: t("NOC_ROAD_TYPE_LABEL"),
|
|
18978
18982
|
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails16 = appData.nocDetails) === null || _appData$nocDetails16 === void 0 ? void 0 : (_appData$nocDetails17 = _appData$nocDetails16.additionalDetails) === null || _appData$nocDetails17 === void 0 ? void 0 : (_appData$nocDetails18 = _appData$nocDetails17.siteDetails) === null || _appData$nocDetails18 === void 0 ? void 0 : (_appData$nocDetails19 = _appData$nocDetails18.roadType) === null || _appData$nocDetails19 === void 0 ? void 0 : _appData$nocDetails19.name) || (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails20 = appData.nocDetails) === null || _appData$nocDetails20 === void 0 ? void 0 : (_appData$nocDetails21 = _appData$nocDetails20.additionalDetails) === null || _appData$nocDetails21 === void 0 ? void 0 : (_appData$nocDetails22 = _appData$nocDetails21.siteDetails) === null || _appData$nocDetails22 === void 0 ? void 0 : _appData$nocDetails22.roadType) || "N/A"
|
|
18979
|
-
}, {
|
|
18980
|
-
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
18981
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.netTotalArea) || "N/A"
|
|
18982
18983
|
}, {
|
|
18983
18984
|
title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
|
|
18984
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
18985
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.areaLeftForRoadWidening) || "N/A"
|
|
18985
18986
|
}, {
|
|
18986
18987
|
title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
|
|
18987
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
18988
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails26 = appData.nocDetails) === null || _appData$nocDetails26 === void 0 ? void 0 : (_appData$nocDetails27 = _appData$nocDetails26.additionalDetails) === null || _appData$nocDetails27 === void 0 ? void 0 : (_appData$nocDetails28 = _appData$nocDetails27.siteDetails) === null || _appData$nocDetails28 === void 0 ? void 0 : _appData$nocDetails28.netPlotAreaAfterWidening) || "N/A"
|
|
18989
|
+
}, {
|
|
18990
|
+
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
18991
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.netTotalArea) || "N/A"
|
|
18988
18992
|
}, {
|
|
18989
18993
|
title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
|
|
18990
18994
|
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails32 = appData.nocDetails) === null || _appData$nocDetails32 === void 0 ? void 0 : (_appData$nocDetails33 = _appData$nocDetails32.additionalDetails) === null || _appData$nocDetails33 === void 0 ? void 0 : (_appData$nocDetails34 = _appData$nocDetails33.siteDetails) === null || _appData$nocDetails34 === void 0 ? void 0 : _appData$nocDetails34.roadWidthAtSite) || "N/A"
|
|
@@ -19212,7 +19216,6 @@ const getJESiteImages = async (appData, t, stateCode) => {
|
|
|
19212
19216
|
const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
|
|
19213
19217
|
const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
|
|
19214
19218
|
const exifData = await getExifDataFromUrl(exiflink);
|
|
19215
|
-
console.log("exifData in siteImages", exifData);
|
|
19216
19219
|
if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
|
|
19217
19220
|
exifData.Orientation = 1;
|
|
19218
19221
|
}
|
|
@@ -21359,12 +21362,8 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
21359
21362
|
}
|
|
21360
21363
|
const userRoles = (_user5 = user) === null || _user5 === void 0 ? void 0 : (_user5$info = _user5.info) === null || _user5$info === void 0 ? void 0 : (_user5$info$roles = _user5$info.roles) === null || _user5$info$roles === void 0 ? void 0 : _user5$info$roles.map(e => e.code);
|
|
21361
21364
|
useEffect$1(() => {
|
|
21362
|
-
|
|
21363
|
-
|
|
21364
|
-
}
|
|
21365
|
-
if (data) {
|
|
21366
|
-
data.revalidate();
|
|
21367
|
-
}
|
|
21365
|
+
refetch();
|
|
21366
|
+
workflowDetails.revalidate();
|
|
21368
21367
|
}, []);
|
|
21369
21368
|
let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data8 = workflowDetails.data) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.actionState) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.nextActions) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.filter(e => {
|
|
21370
21369
|
return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
|
|
@@ -22765,7 +22764,8 @@ const Inbox = ({
|
|
|
22765
22764
|
console.log('employeeName, employeeRole', employeeName, employeeRole);
|
|
22766
22765
|
const {
|
|
22767
22766
|
isLoading: isInboxLoading,
|
|
22768
|
-
data
|
|
22767
|
+
data,
|
|
22768
|
+
refetch
|
|
22769
22769
|
} = Digit.Hooks.noc.useInbox({
|
|
22770
22770
|
tenantId,
|
|
22771
22771
|
filters: {
|
|
@@ -22773,9 +22773,7 @@ const Inbox = ({
|
|
|
22773
22773
|
}
|
|
22774
22774
|
});
|
|
22775
22775
|
useEffect$1(() => {
|
|
22776
|
-
|
|
22777
|
-
data.revalidate();
|
|
22778
|
-
}
|
|
22776
|
+
refetch();
|
|
22779
22777
|
}, []);
|
|
22780
22778
|
const [table, setTable] = useState([]);
|
|
22781
22779
|
const [statuses, setStatuses] = useState([]);
|
|
@@ -27941,8 +27939,6 @@ function NOCSummary({
|
|
|
27941
27939
|
const propertyId = formData === null || formData === void 0 ? void 0 : (_formData$application3 = formData.applicationDetails) === null || _formData$application3 === void 0 ? void 0 : (_formData$application4 = _formData$application3.owners) === null || _formData$application4 === void 0 ? void 0 : (_formData$application5 = _formData$application4[0]) === null || _formData$application5 === void 0 ? void 0 : _formData$application5.propertyId;
|
|
27942
27940
|
const applicationNo = formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$Noc = _formData$apiData.Noc) === null || _formData$apiData$Noc === void 0 ? void 0 : (_formData$apiData$Noc2 = _formData$apiData$Noc[0]) === null || _formData$apiData$Noc2 === void 0 ? void 0 : _formData$apiData$Noc2.applicationNo;
|
|
27943
27941
|
const submittedOn = (formData === null || formData === void 0 ? void 0 : (_formData$apiData2 = formData.apiData) === null || _formData$apiData2 === void 0 ? void 0 : (_formData$apiData2$No = _formData$apiData2.Noc) === null || _formData$apiData2$No === void 0 ? void 0 : (_formData$apiData2$No2 = _formData$apiData2$No[0]) === null || _formData$apiData2$No2 === void 0 ? void 0 : (_formData$apiData2$No3 = _formData$apiData2$No2.nocDetails) === null || _formData$apiData2$No3 === void 0 ? void 0 : (_formData$apiData2$No4 = _formData$apiData2$No3.additionalDetails) === null || _formData$apiData2$No4 === void 0 ? void 0 : _formData$apiData2$No4.SubmittedOn) || Date.now();
|
|
27944
|
-
console.log('applicationNo, submittedOn', applicationNo, submittedOn);
|
|
27945
|
-
console.log("primaryOwner and propertyId here in summary", primaryOwner, propertyId);
|
|
27946
27942
|
return /*#__PURE__*/React.createElement("div", {
|
|
27947
27943
|
className: "employee-main-application-details"
|
|
27948
27944
|
}, /*#__PURE__*/React.createElement("style", null, ` .data-table .row {border: 2px solid lightgrey;}`), /*#__PURE__*/React.createElement(StatusTable, {
|
|
@@ -29819,6 +29815,8 @@ const CitizenApplicationOverview = () => {
|
|
|
29819
29815
|
top: 0,
|
|
29820
29816
|
behavior: "smooth"
|
|
29821
29817
|
});
|
|
29818
|
+
refetch();
|
|
29819
|
+
workflowDetails.revalidate();
|
|
29822
29820
|
}, []);
|
|
29823
29821
|
useEffect$1(() => {
|
|
29824
29822
|
var _applicationDetails$N9;
|