@djb25/digit-ui-module-wt 1.0.61 → 1.0.63

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