kui-crm_actions 0.0.88 → 0.0.90

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
@@ -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
  }); }),
@@ -988,7 +988,7 @@ var templateObject_1$6;
988
988
 
989
989
  var FillingCardContent = function (props) {
990
990
  var filling = props.filling, warningLabel = props.warningLabel;
991
- return (jsxRuntime.jsxs(kuiBasic.Grid, __assign({ container: true, alignItems: "center" }, { children: [filling.wasMissing && (jsxRuntime.jsx(kuiCrm.Tooltip, __assign({ content: jsxRuntime.jsx(kuiBasic.Caption, __assign({ size: "xs" }, { children: warningLabel })) }, { children: jsxRuntime.jsx(StyledWarningIcon, { width: 17, height: 17 }) }))), jsxRuntime.jsxs(StyledLabelWrapper, { children: [jsxRuntime.jsx(kuiBasic.Caption, __assign({ size: "s" }, { children: filling.name })), jsxRuntime.jsxs(StyledSubtitle, __assign({ size: "xs", color: "fiftyP" }, { children: [filling.numberOfSubjects ? "".concat(filling.numberOfSubjects, " pieces") : "", filling.numberOfSubjects && filling.serialNumber ? " \u2022 " : "", filling.serialNumber] }))] })] })));
991
+ return (jsxRuntime.jsxs(kuiBasic.Grid, __assign({ container: true, alignItems: "center" }, { children: [filling.wasMissing && (jsxRuntime.jsx(kuiCrm.Tooltip, __assign({ content: jsxRuntime.jsx(kuiBasic.Caption, __assign({ size: "xs" }, { children: warningLabel })) }, { children: jsxRuntime.jsx(StyledWarningIcon, { width: 17, height: 17 }) }))), jsxRuntime.jsxs(StyledLabelWrapper, { children: [jsxRuntime.jsxs(kuiBasic.Caption, __assign({ size: "s" }, { children: [filling.tagName, " ", filling.name ? " | ".concat(filling.name) : ""] })), jsxRuntime.jsxs(StyledSubtitle, __assign({ size: "xs", color: "fiftyP" }, { children: [filling.numberOfSubjects ? "".concat(filling.numberOfSubjects, " pieces") : "", filling.numberOfSubjects && filling.serialNumber ? " \u2022 " : "", filling.serialNumber] }))] })] })));
992
992
  };
993
993
  var StyledWarningIcon = styled__default["default"](kuiIcon.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"])), kuiBasic.theme.palette.red.fiftyP);
994
994
  var StyledLabelWrapper = styled__default["default"].div(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n margin-left: 8px;\n"], ["\n margin-left: 8px;\n"])));
@@ -1035,13 +1035,15 @@ var FillingListStore = /** @class */ (function () {
1035
1035
  });
1036
1036
  }); };
1037
1037
  this.updateFillingList = function (fillingList) {
1038
- _this.fillingList = fillingList.map(function (filling) { return ({
1039
- id: filling.id,
1040
- name: filling.description,
1041
- serialNumber: filling.serial_code,
1042
- numberOfSubjects: filling.amount,
1043
- wasMissing: filling.is_absent,
1044
- }); });
1038
+ _this.fillingList =
1039
+ (fillingList === null || fillingList === void 0 ? void 0 : fillingList.map(function (filling) { return ({
1040
+ id: filling.id,
1041
+ name: filling.description,
1042
+ tagName: filling.feature.name,
1043
+ serialNumber: filling.serial_code,
1044
+ numberOfSubjects: filling.amount,
1045
+ wasMissing: filling.is_absent,
1046
+ }); })) || [];
1045
1047
  };
1046
1048
  this.fillingList = [];
1047
1049
  this.loader = new kuiUtils.Loader();