@djb25/digit-ui-module-ws 1.0.52 → 1.0.53
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 +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9710,6 +9710,8 @@ const WSCalculation = _ref => {
|
|
|
9710
9710
|
const watchPropertyType = watch("useDetails.propertyType");
|
|
9711
9711
|
const watchPropertyCategory = watch("useDetails.propertyCategory");
|
|
9712
9712
|
const watchWaterConnectionUsageType = watch("useDetails.WaterConnectionUsageType");
|
|
9713
|
+
const watchColonyName = watch("useDetails.colonyName");
|
|
9714
|
+
const isCalculateButtonEnabled = watchCategoryType && watchPropertyCategory && watchPropertyType && watchWaterConnectionUsageType && watchColonyName;
|
|
9713
9715
|
const isHospitalProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOSPITAL_NURSING_HOME" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HospitalNursingHome";
|
|
9714
9716
|
const isHotelRestaurantProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HOTEL_OR_RESTAURANT" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "HotelOrRestaurant";
|
|
9715
9717
|
const isSchoolCollegeProperty = (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "School" || (watchPropertyType === null || watchPropertyType === void 0 ? void 0 : watchPropertyType.code) === "College";
|
|
@@ -10373,7 +10375,8 @@ const WSCalculation = _ref => {
|
|
|
10373
10375
|
}
|
|
10374
10376
|
}, t("CS_COMMON_CLEAR_SEARCH")), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
10375
10377
|
label: t("ES_COMMON_CALCULATE"),
|
|
10376
|
-
onSubmit: handleSubmit
|
|
10378
|
+
onSubmit: handleSubmit,
|
|
10379
|
+
disabled: !isCalculateButtonEnabled
|
|
10377
10380
|
})), calculationData && /*#__PURE__*/React.createElement(RenderCalculationDetails, {
|
|
10378
10381
|
data: calculationData
|
|
10379
10382
|
})));
|