@mseva/digit-ui-module-noc 1.0.86 → 1.0.87
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 +22 -23
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9081,7 +9081,7 @@ const ActionModal$1 = ({
|
|
|
9081
9081
|
};
|
|
9082
9082
|
}));
|
|
9083
9083
|
}
|
|
9084
|
-
}, [approverData]);
|
|
9084
|
+
}, [approverData, EmployeeStatusData]);
|
|
9085
9085
|
function selectFile(e) {
|
|
9086
9086
|
setFile(e.target.files[0]);
|
|
9087
9087
|
}
|
|
@@ -14145,7 +14145,7 @@ function NewApplicationTimeline({
|
|
|
14145
14145
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
14146
14146
|
className: "custom-timeline-entries"
|
|
14147
14147
|
}, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
|
|
14148
|
-
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$
|
|
14148
|
+
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;
|
|
14149
14149
|
return /*#__PURE__*/React.createElement("div", {
|
|
14150
14150
|
key: index,
|
|
14151
14151
|
className: "custom-timeline-entry"
|
|
@@ -14182,13 +14182,9 @@ function NewApplicationTimeline({
|
|
|
14182
14182
|
className: "custom-officer-info"
|
|
14183
14183
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14184
14184
|
className: "custom-officer-name"
|
|
14185
|
-
}, (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("
|
|
14185
|
+
}, (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("div", {
|
|
14186
14186
|
className: "custom-officer-name"
|
|
14187
|
-
},
|
|
14188
|
-
className: "custom-officer-email"
|
|
14189
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
14190
|
-
className: "custom-email-label"
|
|
14191
|
-
}, 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", {
|
|
14187
|
+
}, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName])))), /*#__PURE__*/React.createElement("div", {
|
|
14192
14188
|
className: "custom-card-column custom-card-column-mid"
|
|
14193
14189
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
14194
14190
|
className: "custom-action-title"
|
|
@@ -16589,7 +16585,7 @@ const NOCFeeTable = ({
|
|
|
16589
16585
|
window.addEventListener("resize", checkMobile);
|
|
16590
16586
|
return () => window.removeEventListener("resize", checkMobile);
|
|
16591
16587
|
}, []);
|
|
16592
|
-
console.log(
|
|
16588
|
+
console.log('feeHistory', feeHistory);
|
|
16593
16589
|
const columns = [{
|
|
16594
16590
|
key: "title",
|
|
16595
16591
|
label: "BPA_TAXHEAD_CODE",
|
|
@@ -16601,7 +16597,6 @@ const NOCFeeTable = ({
|
|
|
16601
16597
|
headerLabel: "BPA_AMOUNT",
|
|
16602
16598
|
type: "custom",
|
|
16603
16599
|
render: (row, rowIndex, t) => {
|
|
16604
|
-
var _feeData$row$index, _feeData$row$index2;
|
|
16605
16600
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16606
16601
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", {
|
|
16607
16602
|
style: {
|
|
@@ -16620,7 +16615,7 @@ const NOCFeeTable = ({
|
|
|
16620
16615
|
t: t,
|
|
16621
16616
|
type: "number",
|
|
16622
16617
|
isMandatory: false,
|
|
16623
|
-
value:
|
|
16618
|
+
value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount || row.amount || "",
|
|
16624
16619
|
onChange: e => {
|
|
16625
16620
|
let val = e.target.value;
|
|
16626
16621
|
if (val.length > 1 && val.startsWith("0")) {
|
|
@@ -16639,20 +16634,20 @@ const NOCFeeTable = ({
|
|
|
16639
16634
|
headerLabel: "BPA_REMARKS",
|
|
16640
16635
|
type: "custom",
|
|
16641
16636
|
render: (row, rowIndex, t) => {
|
|
16642
|
-
var _feeData$row$
|
|
16637
|
+
var _feeData$row$index2;
|
|
16643
16638
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16644
16639
|
return " ";
|
|
16645
16640
|
}
|
|
16646
16641
|
if (disable) {
|
|
16647
|
-
var _feeData$row$
|
|
16648
|
-
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$
|
|
16642
|
+
var _feeData$row$index;
|
|
16643
|
+
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.remark) || /*#__PURE__*/React.createElement(TextArea, {
|
|
16649
16644
|
placeholder: "Enter remarks",
|
|
16650
16645
|
disabled: true,
|
|
16651
16646
|
className: "custom-fee-table-textarea"
|
|
16652
16647
|
}));
|
|
16653
16648
|
}
|
|
16654
16649
|
return /*#__PURE__*/React.createElement(TextArea, {
|
|
16655
|
-
value: ((_feeData$row$
|
|
16650
|
+
value: ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.remark) || "",
|
|
16656
16651
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16657
16652
|
disabled: false,
|
|
16658
16653
|
className: "custom-fee-table-textarea",
|
|
@@ -16720,7 +16715,7 @@ const NOCFeeTable = ({
|
|
|
16720
16715
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
16721
16716
|
className: "custom-fee-mobile-cards"
|
|
16722
16717
|
}, feeDataWithTotal.map((row, i) => {
|
|
16723
|
-
var _feeData$row$
|
|
16718
|
+
var _feeData$row$index3;
|
|
16724
16719
|
return /*#__PURE__*/React.createElement("div", {
|
|
16725
16720
|
key: row.index || i,
|
|
16726
16721
|
className: `custom-fee-card ${(row === null || row === void 0 ? void 0 : row.taxHeadCode) === "NOC_TOTAL" ? "custom-fee-card-total-row" : ""}`
|
|
@@ -16740,7 +16735,7 @@ const NOCFeeTable = ({
|
|
|
16740
16735
|
t: t,
|
|
16741
16736
|
type: "text",
|
|
16742
16737
|
isMandatory: false,
|
|
16743
|
-
value:
|
|
16738
|
+
value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount !== null && feeData[row.index].adjustedAmount !== undefined ? feeData[row.index].adjustedAmount : row.amount !== null && row.amount !== undefined ? row.amount : "",
|
|
16744
16739
|
onChange: e => {
|
|
16745
16740
|
let val = e.target.value;
|
|
16746
16741
|
if (/^\d*\.?\d*$/.test(val)) {
|
|
@@ -16767,7 +16762,7 @@ const NOCFeeTable = ({
|
|
|
16767
16762
|
}, /*#__PURE__*/React.createElement("label", {
|
|
16768
16763
|
className: "custom-fee-card-label"
|
|
16769
16764
|
}, t("BPA_REMARKS")), /*#__PURE__*/React.createElement(TextArea, {
|
|
16770
|
-
value: ((_feeData$row$
|
|
16765
|
+
value: ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || "",
|
|
16771
16766
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16772
16767
|
disabled: disable,
|
|
16773
16768
|
className: "custom-fee-table-textarea",
|
|
@@ -18525,6 +18520,7 @@ const InspectionReport$1 = ({
|
|
|
18525
18520
|
sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
|
|
18526
18521
|
}, [FieldReports]);
|
|
18527
18522
|
useEffect$1(() => {
|
|
18523
|
+
console.log("useffect 2INSPECTION_REPORT_PENDING");
|
|
18528
18524
|
let ques = [];
|
|
18529
18525
|
let documentlist = [];
|
|
18530
18526
|
bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
|
|
@@ -18999,15 +18995,15 @@ const getSiteDetails = (appData, t) => {
|
|
|
18999
18995
|
}, {
|
|
19000
18996
|
title: t("NOC_ROAD_TYPE_LABEL"),
|
|
19001
18997
|
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"
|
|
18998
|
+
}, {
|
|
18999
|
+
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
19000
|
+
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"
|
|
19002
19001
|
}, {
|
|
19003
19002
|
title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
|
|
19004
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
19003
|
+
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.areaLeftForRoadWidening) || "N/A"
|
|
19005
19004
|
}, {
|
|
19006
19005
|
title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
|
|
19007
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
19008
|
-
}, {
|
|
19009
|
-
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
19010
|
-
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"
|
|
19006
|
+
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.netPlotAreaAfterWidening) || "N/A"
|
|
19011
19007
|
}, {
|
|
19012
19008
|
title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
|
|
19013
19009
|
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"
|
|
@@ -19235,6 +19231,7 @@ const getJESiteImages = async (appData, t, stateCode) => {
|
|
|
19235
19231
|
const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
|
|
19236
19232
|
const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
|
|
19237
19233
|
const exifData = await getExifDataFromUrl(exiflink);
|
|
19234
|
+
console.log("exifData in siteImages", exifData);
|
|
19238
19235
|
if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
|
|
19239
19236
|
exifData.Orientation = 1;
|
|
19240
19237
|
}
|
|
@@ -28061,6 +28058,8 @@ function NOCSummary({
|
|
|
28061
28058
|
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;
|
|
28062
28059
|
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;
|
|
28063
28060
|
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();
|
|
28061
|
+
console.log('applicationNo, submittedOn', applicationNo, submittedOn);
|
|
28062
|
+
console.log("primaryOwner and propertyId here in summary", primaryOwner, propertyId);
|
|
28064
28063
|
return /*#__PURE__*/React.createElement("div", {
|
|
28065
28064
|
className: "employee-main-application-details"
|
|
28066
28065
|
}, /*#__PURE__*/React.createElement("style", null, ` .data-table .row {border: 2px solid lightgrey;}`), /*#__PURE__*/React.createElement(StatusTable, {
|