@djb25/digit-ui-module-wt 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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +119 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -2786,11 +2786,12 @@ const WTCard = () => {
|
|
|
2786
2786
|
link: `${APPLICATION_PATH}/employee/wt/vendor-assignment`
|
|
2787
2787
|
}];
|
|
2788
2788
|
const WT_CEMP = Digit.UserService.hasAccess(["WT_CEMP"]) || false;
|
|
2789
|
+
const totalInboxCount = isCitizenInboxLoading || isFixedPointInboxLoading ? "-" : citizenInboxCount + fixedPointInboxCount;
|
|
2789
2790
|
const propsForModuleCard = {
|
|
2790
2791
|
Icon: /*#__PURE__*/React.createElement(CHBIcon, null),
|
|
2791
2792
|
moduleName: t("WT_MODULE_NAME"),
|
|
2792
2793
|
kpis: [{
|
|
2793
|
-
count:
|
|
2794
|
+
count: totalInboxCount,
|
|
2794
2795
|
label: t("ES_TITLE_INBOX"),
|
|
2795
2796
|
link: `${APPLICATION_PATH}/employee/wt/inbox`
|
|
2796
2797
|
}],
|
|
@@ -25338,6 +25339,122 @@ const RenewPopup = ({
|
|
|
25338
25339
|
})))));
|
|
25339
25340
|
};
|
|
25340
25341
|
|
|
25342
|
+
const DueVerification = () => {
|
|
25343
|
+
const {
|
|
25344
|
+
t
|
|
25345
|
+
} = useTranslation();
|
|
25346
|
+
const [kno, setKno] = useState("");
|
|
25347
|
+
const [tableData, setTableData] = useState([]);
|
|
25348
|
+
const columns = useMemo(() => [{
|
|
25349
|
+
Header: t("K No."),
|
|
25350
|
+
accessor: "kno"
|
|
25351
|
+
}, {
|
|
25352
|
+
Header: t("Full Name"),
|
|
25353
|
+
accessor: "fullName"
|
|
25354
|
+
}, {
|
|
25355
|
+
Header: t("Full Address"),
|
|
25356
|
+
accessor: "fullAddress"
|
|
25357
|
+
}, {
|
|
25358
|
+
Header: t("Due Amount"),
|
|
25359
|
+
accessor: "dueAmount"
|
|
25360
|
+
}, {
|
|
25361
|
+
Header: t("Total Amount"),
|
|
25362
|
+
accessor: "totalAmount"
|
|
25363
|
+
}], [t]);
|
|
25364
|
+
const handleAdd = () => {
|
|
25365
|
+
if (kno) {
|
|
25366
|
+
const mockData = {
|
|
25367
|
+
kno: kno,
|
|
25368
|
+
fullName: "John Doe",
|
|
25369
|
+
fullAddress: "123 Main St, New Delhi, Delhi 110001",
|
|
25370
|
+
dueAmount: "1500",
|
|
25371
|
+
totalAmount: "1500"
|
|
25372
|
+
};
|
|
25373
|
+
setTableData([...tableData, mockData]);
|
|
25374
|
+
setKno("");
|
|
25375
|
+
}
|
|
25376
|
+
};
|
|
25377
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25378
|
+
style: {
|
|
25379
|
+
marginBottom: "20px"
|
|
25380
|
+
}
|
|
25381
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
25382
|
+
style: {
|
|
25383
|
+
fontSize: "24px",
|
|
25384
|
+
fontWeight: "bold",
|
|
25385
|
+
color: "#4f6cfc",
|
|
25386
|
+
marginBottom: "16px"
|
|
25387
|
+
}
|
|
25388
|
+
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
25389
|
+
style: {
|
|
25390
|
+
display: "flex",
|
|
25391
|
+
alignItems: "flex-end",
|
|
25392
|
+
gap: "20px",
|
|
25393
|
+
marginBottom: "20px"
|
|
25394
|
+
}
|
|
25395
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25396
|
+
style: {
|
|
25397
|
+
flex: 1
|
|
25398
|
+
}
|
|
25399
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
25400
|
+
style: {
|
|
25401
|
+
fontSize: "16px",
|
|
25402
|
+
color: "#0B0C0C",
|
|
25403
|
+
marginBottom: "8px",
|
|
25404
|
+
display: "inline-block"
|
|
25405
|
+
}
|
|
25406
|
+
}, t("K No.(Existing KNo of same property)"), " ", /*#__PURE__*/React.createElement("span", {
|
|
25407
|
+
style: {
|
|
25408
|
+
color: "red"
|
|
25409
|
+
}
|
|
25410
|
+
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
25411
|
+
type: "number",
|
|
25412
|
+
value: kno,
|
|
25413
|
+
onChange: e => setKno(e.target.value),
|
|
25414
|
+
style: {
|
|
25415
|
+
width: "100%",
|
|
25416
|
+
marginBottom: "0"
|
|
25417
|
+
}
|
|
25418
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
25419
|
+
style: {
|
|
25420
|
+
flex: 1,
|
|
25421
|
+
paddingBottom: "2px"
|
|
25422
|
+
}
|
|
25423
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
25424
|
+
type: "button",
|
|
25425
|
+
onClick: handleAdd,
|
|
25426
|
+
style: {
|
|
25427
|
+
backgroundColor: "#4f6cfc",
|
|
25428
|
+
color: "white",
|
|
25429
|
+
padding: "8px 24px",
|
|
25430
|
+
borderRadius: "4px",
|
|
25431
|
+
border: "none",
|
|
25432
|
+
cursor: "pointer"
|
|
25433
|
+
}
|
|
25434
|
+
}, t("Add")))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
25435
|
+
style: {
|
|
25436
|
+
marginTop: "30px",
|
|
25437
|
+
overflowX: "auto"
|
|
25438
|
+
}
|
|
25439
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
25440
|
+
className: "customTable table-fixed-first-column table-border-style",
|
|
25441
|
+
t: t,
|
|
25442
|
+
disableSort: false,
|
|
25443
|
+
autoSort: true,
|
|
25444
|
+
manualPagination: false,
|
|
25445
|
+
isPaginationRequired: false,
|
|
25446
|
+
data: tableData,
|
|
25447
|
+
columns: columns,
|
|
25448
|
+
getCellProps: cellInfo => {
|
|
25449
|
+
return {
|
|
25450
|
+
style: {
|
|
25451
|
+
padding: "12px"
|
|
25452
|
+
}
|
|
25453
|
+
};
|
|
25454
|
+
}
|
|
25455
|
+
})));
|
|
25456
|
+
};
|
|
25457
|
+
|
|
25341
25458
|
function ApplicationDetailsContent({
|
|
25342
25459
|
applicationDetails,
|
|
25343
25460
|
workflowDetails,
|
|
@@ -25836,7 +25953,7 @@ function ApplicationDetailsContent({
|
|
|
25836
25953
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
25837
25954
|
wsAdditionalDetails: detail,
|
|
25838
25955
|
oldValue: oldValue
|
|
25839
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
25956
|
+
}), (detail === null || detail === void 0 ? void 0 : detail.isDueVerification) && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" && /*#__PURE__*/React.createElement(DueVerification, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
25840
25957
|
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
|
|
25841
25958
|
}, /*#__PURE__*/React.createElement("span", {
|
|
25842
25959
|
className: "add-details-link hover-button"
|