kui-crm_actions 0.0.87 → 0.0.89

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/cjs/index.js CHANGED
@@ -169,7 +169,7 @@ var getWaterMeterFields = function (meters, meter, withCheckValue, name, setting
169
169
  __assign({ label: "Meter", name: "".concat(prefixName, "number"), variant: "select", options: meterOptions, size: 12 }, settings === null || settings === void 0 ? void 0 : settings.meter),
170
170
  __assign({ label: "Value", name: "".concat(prefixName, "value"), variant: "custom", CustomInput: kuiCrm.NumberField, maxIntegerPart: 7, maxDecimalPart: 3, maxValue: ((_a = meter === null || meter === void 0 ? void 0 : meter.maxValue) === null || _a === void 0 ? void 0 : _a.value) && withCheckValue
171
171
  ? Number(meter.maxValue.value)
172
- : null, warningMessage: "There are deviations in meter readings. It should be no more than", placeholder: meter === null || meter === void 0 ? void 0 : meter.value }, settings === null || settings === void 0 ? void 0 : settings.value),
172
+ : null, warningMessage: "There are deviations in meter readings. It should be no more than", placeholder: meter === null || meter === void 0 ? void 0 : meter.values.value }, settings === null || settings === void 0 ? void 0 : settings.value),
173
173
  ];
174
174
  };
175
175
 
@@ -238,7 +238,7 @@ var inspectionsRequestBody = {
238
238
  },
239
239
  getInspectionFilling: function (fillingList) {
240
240
  return {
241
- filling: fillingList.map(function (filling) { return ({
241
+ filling: fillingList === null || fillingList === void 0 ? void 0 : fillingList.map(function (filling) { return ({
242
242
  apartment_feature_id: filling.id,
243
243
  is_absent: !filling.check,
244
244
  }); }),
@@ -1035,13 +1035,13 @@ var FillingListStore = /** @class */ (function () {
1035
1035
  });
1036
1036
  }); };
1037
1037
  this.updateFillingList = function (fillingList) {
1038
- _this.fillingList = fillingList.map(function (filling) { return ({
1038
+ _this.fillingList = (fillingList === null || fillingList === void 0 ? void 0 : fillingList.map(function (filling) { return ({
1039
1039
  id: filling.id,
1040
1040
  name: filling.description,
1041
1041
  serialNumber: filling.serial_code,
1042
1042
  numberOfSubjects: filling.amount,
1043
1043
  wasMissing: filling.is_absent,
1044
- }); });
1044
+ }); })) || [];
1045
1045
  };
1046
1046
  this.fillingList = [];
1047
1047
  this.loader = new kuiUtils.Loader();