@djb25/digit-ui-module-ws 1.0.58 → 1.0.60
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 +33 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +33 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9722,8 +9722,9 @@ const WSCalculation = _ref => {
|
|
|
9722
9722
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
9723
9723
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
9724
9724
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
9725
|
-
const
|
|
9726
|
-
const
|
|
9725
|
+
const dwellingPropertyTypes = ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse"];
|
|
9726
|
+
const isDwellingUnit = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
9727
|
+
const isServentHouse = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
9727
9728
|
const categoryOptions = React.useMemo(() => {
|
|
9728
9729
|
var _ptServicesMastersDat, _ptServicesMastersDat2;
|
|
9729
9730
|
if (!(watchCategoryType !== null && watchCategoryType !== void 0 && watchCategoryType.code)) return [];
|
|
@@ -9875,7 +9876,7 @@ const WSCalculation = _ref => {
|
|
|
9875
9876
|
});
|
|
9876
9877
|
};
|
|
9877
9878
|
const RenderCalculationDetails = _ref2 => {
|
|
9878
|
-
var _data$Calculation, _calc$calculationDeta, _calc$calculationDeta2, _calc$calculationDeta3, _waterDemandDetail$co, _waterDemandDetail$co2, _waterDemandDetail$co3, _waterDemandDetail$co4, _waterDemandDetail$co5, _waterDemandDetail$co6, _waterDemandDetail$co7, _waterDemandDetail$co8, _waterDemandDetail$co9, _waterDemandDetail$co0, _waterDemandDetail$co1, _waterDemandDetail$co10, _waterDemandDetail$co11, _waterDemandDetail$co12, _waterDemandDetail$co13, _waterDemandDetail$co14, _waterDemandDetail$co15, _waterDemandDetail$co16, _infraDetail$waterCom, _infraDetail$sewerCom, _infraDetail$grossIFC, _infraDetail$rebateAm, _infraDetail$netIFC;
|
|
9879
|
+
var _data$Calculation, _calc$calculationDeta, _calc$calculationDeta2, _calc$calculationDeta3, _waterDemandDetail$co, _waterDemandDetail$co2, _waterDemandDetail$co3, _waterDemandDetail$co4, _waterDemandDetail$co5, _waterDemandDetail$co6, _waterDemandDetail$co7, _waterDemandDetail$co8, _waterDemandDetail$co9, _waterDemandDetail$co0, _waterDemandDetail$co1, _waterDemandDetail$co10, _waterDemandDetail$co11, _waterDemandDetail$co12, _waterDemandDetail$co13, _waterDemandDetail$co14, _waterDemandDetail$co15, _waterDemandDetail$co16, _infraDetail$waterCom, _infraDetail$sewerCom, _infraDetail$grossIFC, _infraDetail$rebateAm, _infraDetail$institut, _infraDetail$dwelling, _infraDetail$netIFC;
|
|
9879
9880
|
let data = _ref2.data;
|
|
9880
9881
|
if (!data) return null;
|
|
9881
9882
|
const calc = (_data$Calculation = data.Calculation) === null || _data$Calculation === void 0 ? void 0 : _data$Calculation[0];
|
|
@@ -10098,9 +10099,33 @@ const WSCalculation = _ref => {
|
|
|
10098
10099
|
className: "ws-calc-row"
|
|
10099
10100
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10100
10101
|
className: "ws-calc-row-label"
|
|
10101
|
-
}, t("
|
|
10102
|
+
}, t("WS_COLONY_REBATE"), " (", infraDetail.rebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10102
10103
|
className: "ws-calc-row-value-red"
|
|
10103
|
-
}, "
|
|
10104
|
+
}, "\u20B9 ", ((_infraDetail$rebateAm = infraDetail.rebateAmount) === null || _infraDetail$rebateAm === void 0 ? void 0 : _infraDetail$rebateAm.toLocaleString("en-IN")) || 0)), infraDetail.institutionalRebateApplied && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10105
|
+
className: "ws-calc-row"
|
|
10106
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10107
|
+
className: "ws-calc-row-label"
|
|
10108
|
+
}, t("WS_INSTITUTIONAL_REBATE"), " (", infraDetail.institutionalRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10109
|
+
className: "ws-calc-row-value-red"
|
|
10110
|
+
}, "\u20B9 ", ((_infraDetail$institut = infraDetail.institutionalRebateAmount) === null || _infraDetail$institut === void 0 ? void 0 : _infraDetail$institut.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10111
|
+
className: "ws-calc-row"
|
|
10112
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10113
|
+
className: "ws-calc-row-label"
|
|
10114
|
+
}, t("WS_INSTITUTIONAL_REBATE_REASON")), /*#__PURE__*/React__default.createElement("span", {
|
|
10115
|
+
className: "ws-calc-row-value"
|
|
10116
|
+
}, t(infraDetail.institutionalRebateReason) || "-"))), infraDetail.dwellingRebateApplied && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10117
|
+
className: "ws-calc-row"
|
|
10118
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10119
|
+
className: "ws-calc-row-label"
|
|
10120
|
+
}, t("WS_DWELLING_REBATE"), " (", infraDetail.dwellingRebatePercentage || 0, "%)"), /*#__PURE__*/React__default.createElement("span", {
|
|
10121
|
+
className: "ws-calc-row-value-red"
|
|
10122
|
+
}, "\u20B9 ", ((_infraDetail$dwelling = infraDetail.dwellingRebateAmount) === null || _infraDetail$dwelling === void 0 ? void 0 : _infraDetail$dwelling.toLocaleString("en-IN")) || 0)), /*#__PURE__*/React__default.createElement("div", {
|
|
10123
|
+
className: "ws-calc-row"
|
|
10124
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10125
|
+
className: "ws-calc-row-label"
|
|
10126
|
+
}, t("WS_DWELLING_REBATE_REASON")), /*#__PURE__*/React__default.createElement("span", {
|
|
10127
|
+
className: "ws-calc-row-value"
|
|
10128
|
+
}, t(infraDetail.dwellingRebateReason) || "-"))), /*#__PURE__*/React__default.createElement("div", {
|
|
10104
10129
|
className: "ws-calc-highlight-green"
|
|
10105
10130
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
10106
10131
|
className: "ws-calc-highlight-green-label"
|
|
@@ -21368,8 +21393,9 @@ const PropertyWaterConnection = _ref => {
|
|
|
21368
21393
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "DharamshalasOrHostels" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
21369
21394
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
21370
21395
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
21371
|
-
const
|
|
21372
|
-
const
|
|
21396
|
+
const dwellingPropertyTypes = ["Apartment", "DDAFlats", "GovtFlats", "Bungalows", "FlatOrApartment", "GroupHousingSociety", "JJSLUMS", "IndividualHouse"];
|
|
21397
|
+
const isDwellingUnit = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
21398
|
+
const isServentHouse = dwellingPropertyTypes.includes(watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code);
|
|
21373
21399
|
const yearOptions = React.useMemo(() => {
|
|
21374
21400
|
const currentYear = new Date().getFullYear();
|
|
21375
21401
|
const years = [];
|