@djb25/digit-ui-module-wt 1.0.65 → 1.0.66
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 +18 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -3083,7 +3083,7 @@ const SearchApplication = ({
|
|
|
3083
3083
|
return /*#__PURE__*/React.createElement("form", {
|
|
3084
3084
|
id: "search-form",
|
|
3085
3085
|
onSubmit: handleSubmit(onSubmitInput),
|
|
3086
|
-
className: "
|
|
3086
|
+
className: " search-complaint-container"
|
|
3087
3087
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, (type === "mobile" || mobileView) && /*#__PURE__*/React.createElement("div", {
|
|
3088
3088
|
className: "complaint-header"
|
|
3089
3089
|
}, /*#__PURE__*/React.createElement("h2", null, t("ES_COMMON_SEARCH_BY")), /*#__PURE__*/React.createElement("span", {
|
|
@@ -8699,6 +8699,12 @@ const SearchFillingPointAddress = () => {
|
|
|
8699
8699
|
}
|
|
8700
8700
|
});
|
|
8701
8701
|
};
|
|
8702
|
+
const getLocalityTranslation = (localityCode, tenantId, t) => {
|
|
8703
|
+
if (!localityCode) return "";
|
|
8704
|
+
const tenant = tenantId || Digit.ULBService.getCurrentTenantId() || "djb";
|
|
8705
|
+
const prefix = tenant.replace(".", "_").toUpperCase();
|
|
8706
|
+
return t(`${prefix}_REVENUE_${localityCode}`);
|
|
8707
|
+
};
|
|
8702
8708
|
const columns = React.useMemo(() => {
|
|
8703
8709
|
if (selectedTab === "FIXED_POINT") {
|
|
8704
8710
|
return [{
|
|
@@ -8736,7 +8742,7 @@ const SearchFillingPointAddress = () => {
|
|
|
8736
8742
|
Header: t("WT_LOCALITY"),
|
|
8737
8743
|
accessor: row => {
|
|
8738
8744
|
var _row$address;
|
|
8739
|
-
return (row === null || row === void 0 ? void 0 : (_row$address = row.address) === null || _row$address === void 0 ? void 0 : _row$address.locality) || "NA";
|
|
8745
|
+
return getLocalityTranslation(row === null || row === void 0 ? void 0 : (_row$address = row.address) === null || _row$address === void 0 ? void 0 : _row$address.locality, tenantId, t) || "NA";
|
|
8740
8746
|
},
|
|
8741
8747
|
id: "locality"
|
|
8742
8748
|
}, {
|
|
@@ -8820,14 +8826,15 @@ const SearchFillingPointAddress = () => {
|
|
|
8820
8826
|
row
|
|
8821
8827
|
}) => {
|
|
8822
8828
|
var _row$original, _row$original$filling5, _row$original2, _row$original2$addres;
|
|
8823
|
-
const
|
|
8829
|
+
const codes = ((_row$original = row.original) === null || _row$original === void 0 ? void 0 : (_row$original$filling5 = _row$original.fillingPointLocalityCodes) === null || _row$original$filling5 === void 0 ? void 0 : _row$original$filling5.length) > 0 ? row.original.fillingPointLocalityCodes : (_row$original2 = row.original) !== null && _row$original2 !== void 0 && (_row$original2$addres = _row$original2.address) !== null && _row$original2$addres !== void 0 && _row$original2$addres.locality ? [row.original.address.locality] : [];
|
|
8830
|
+
const translated = codes.length > 0 ? codes.map(code => getLocalityTranslation(code, tenantId, t)).join(", ") : "NA";
|
|
8824
8831
|
return /*#__PURE__*/React.createElement("div", {
|
|
8825
8832
|
style: {
|
|
8826
8833
|
display: "flex",
|
|
8827
8834
|
alignItems: "center",
|
|
8828
8835
|
gap: "8px"
|
|
8829
8836
|
}
|
|
8830
|
-
}, /*#__PURE__*/React.createElement("span", null,
|
|
8837
|
+
}, /*#__PURE__*/React.createElement("span", null, translated));
|
|
8831
8838
|
}
|
|
8832
8839
|
}, {
|
|
8833
8840
|
Header: t("WT_ADD_LOCALITY"),
|
|
@@ -8962,7 +8969,7 @@ const SearchFillingPointAddress = () => {
|
|
|
8962
8969
|
Header: t("WT_LOCALITY"),
|
|
8963
8970
|
exportAccessor: row => {
|
|
8964
8971
|
var _row$address4;
|
|
8965
|
-
return (row === null || row === void 0 ? void 0 : (_row$address4 = row.address) === null || _row$address4 === void 0 ? void 0 : _row$address4.locality) || "NA";
|
|
8972
|
+
return getLocalityTranslation(row === null || row === void 0 ? void 0 : (_row$address4 = row.address) === null || _row$address4 === void 0 ? void 0 : _row$address4.locality, tenantId, t) || "NA";
|
|
8966
8973
|
}
|
|
8967
8974
|
}, {
|
|
8968
8975
|
Header: t("WT_LATITUDE"),
|
|
@@ -9028,7 +9035,8 @@ const SearchFillingPointAddress = () => {
|
|
|
9028
9035
|
Header: t("WT_LOCALITY"),
|
|
9029
9036
|
exportAccessor: row => {
|
|
9030
9037
|
var _row$fillingPointLoca, _row$address7;
|
|
9031
|
-
|
|
9038
|
+
const codes = (row === null || row === void 0 ? void 0 : (_row$fillingPointLoca = row.fillingPointLocalityCodes) === null || _row$fillingPointLoca === void 0 ? void 0 : _row$fillingPointLoca.length) > 0 ? row.fillingPointLocalityCodes : row !== null && row !== void 0 && (_row$address7 = row.address) !== null && _row$address7 !== void 0 && _row$address7.locality ? [row.address.locality] : [];
|
|
9039
|
+
return codes.length > 0 ? codes.map(code => getLocalityTranslation(code, tenantId, t)).join(", ") : "NA";
|
|
9032
9040
|
}
|
|
9033
9041
|
}];
|
|
9034
9042
|
}, [selectedTab, t]);
|
|
@@ -23592,7 +23600,7 @@ function PropertyDocuments({
|
|
|
23592
23600
|
}));
|
|
23593
23601
|
};
|
|
23594
23602
|
const renderDocumentRow = (value, index) => {
|
|
23595
|
-
var _pdfFiles$value$fileS, _value$originalDoc, _value$
|
|
23603
|
+
var _pdfFiles$value$fileS, _value$originalDoc, _value$originalDoc2, _value$originalDoc3;
|
|
23596
23604
|
const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
|
|
23597
23605
|
const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
|
|
23598
23606
|
const docUid = (value === null || value === void 0 ? void 0 : value.documentUid) || "";
|
|
@@ -23675,19 +23683,17 @@ function PropertyDocuments({
|
|
|
23675
23683
|
margin: 0
|
|
23676
23684
|
}
|
|
23677
23685
|
}, /*#__PURE__*/React.createElement("input", {
|
|
23686
|
+
key: `chk-${value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.id}-${value === null || value === void 0 ? void 0 : (_value$originalDoc2 = value.originalDoc) === null || _value$originalDoc2 === void 0 ? void 0 : _value$originalDoc2.isVerified}`,
|
|
23678
23687
|
type: "checkbox",
|
|
23679
23688
|
style: {
|
|
23680
23689
|
width: "18px",
|
|
23681
23690
|
height: "18px",
|
|
23682
23691
|
accentColor: "#F47738"
|
|
23683
23692
|
},
|
|
23684
|
-
defaultChecked: value === null || value === void 0 ? void 0 : (_value$
|
|
23693
|
+
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified,
|
|
23685
23694
|
onChange: e => {
|
|
23686
23695
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
23687
|
-
|
|
23688
|
-
value.originalDoc.additionalDetails = {};
|
|
23689
|
-
}
|
|
23690
|
-
value.originalDoc.additionalDetails.isDocumentVerified = e.target.checked;
|
|
23696
|
+
value.originalDoc.isVerified = e.target.checked;
|
|
23691
23697
|
}
|
|
23692
23698
|
}
|
|
23693
23699
|
}), "Check Verified"))
|