kui-crm_actions 0.0.91 → 0.0.93

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/index.js CHANGED
@@ -595,8 +595,15 @@ var apartmentFields = {
595
595
  return {
596
596
  meters: meters.map(function (meter) {
597
597
  var _a;
598
- return (__assign({ id: meter.id, type: meter.meter_type, number: meter.passport_number, resource: meter.resource_type, images: ((_a = meter.photos) === null || _a === void 0 ? void 0 : _a.map(function (photo) { return ImageStore.initFromImageModel(photo); })) ||
599
- [] }, _this.getMeterValues(meter, meter.resource_type)));
598
+ return ({
599
+ id: meter.id,
600
+ type: meter.meter_type,
601
+ number: meter.passport_number,
602
+ resource: meter.resource_type,
603
+ images: ((_a = meter.photos) === null || _a === void 0 ? void 0 : _a.map(function (photo) { return FileStore.initFromImageModel(photo); })) ||
604
+ [],
605
+ values: _this.getMeterValues(meter, meter.resource_type),
606
+ });
600
607
  }),
601
608
  };
602
609
  },
@@ -959,7 +966,9 @@ var templateObject_1$6;
959
966
 
960
967
  var FillingCardContent = function (props) {
961
968
  var filling = props.filling, warningLabel = props.warningLabel;
962
- return (jsxs(Grid, __assign({ container: true, alignItems: "center" }, { children: [filling.wasMissing && (jsx(Tooltip, __assign({ content: jsx(Caption, __assign({ size: "xs" }, { children: warningLabel })) }, { children: jsx(StyledWarningIcon, { width: 17, height: 17 }) }))), jsxs(StyledLabelWrapper, { children: [jsxs(Caption, __assign({ size: "s" }, { children: [filling.tagName, " ", filling.name ? " | ".concat(filling.name) : ""] })), jsxs(StyledSubtitle, __assign({ size: "xs", color: "fiftyP" }, { children: [filling.numberOfSubjects ? "".concat(filling.numberOfSubjects, " pieces") : "", filling.numberOfSubjects && filling.serialNumber ? " \u2022 " : "", filling.serialNumber] }))] })] })));
969
+ return (jsxs(Grid, __assign({ container: true, alignItems: "center" }, { children: [filling.wasMissing && (jsx(Tooltip, __assign({ content: jsx(Caption, __assign({ size: "xs" }, { children: warningLabel })) }, { children: jsx(StyledWarningIcon, { width: 17, height: 17 }) }))), jsxs(StyledLabelWrapper, { children: [jsxs(Caption, __assign({ size: "s" }, { children: [filling.tagName, " ", filling.name ? " | ".concat(filling.name) : ""] })), !!(filling.numberOfSubjects || filling.serialNumber) && (jsxs(StyledSubtitle, __assign({ size: "xs", color: "fiftyP" }, { children: [filling.numberOfSubjects
970
+ ? "".concat(filling.numberOfSubjects, " pieces")
971
+ : "", filling.numberOfSubjects && filling.serialNumber ? " \u2022 " : "", filling.serialNumber] })))] })] })));
963
972
  };
964
973
  var StyledWarningIcon = styled(WarningIcon)(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n margin-left: 4px;\n path {\n fill: ", ";\n }\n"], ["\n margin-left: 4px;\n path {\n fill: ", ";\n }\n"])), theme.palette.red.fiftyP);
965
974
  var StyledLabelWrapper = styled.div(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n margin-left: 8px;\n"], ["\n margin-left: 8px;\n"])));