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/index.d.ts CHANGED
@@ -208,6 +208,7 @@ type ApartmentDescriptionWithMetro = ApartmentDescriptionParams &
208
208
  type FillingCheckParams = {
209
209
  id: number
210
210
  name: string
211
+ tagName: string
211
212
  serialNumber?: string
212
213
  numberOfSubjects?: number | string | null
213
214
  wasMissing?: boolean
package/index.js CHANGED
@@ -209,7 +209,7 @@ var inspectionsRequestBody = {
209
209
  },
210
210
  getInspectionFilling: function (fillingList) {
211
211
  return {
212
- filling: fillingList.map(function (filling) { return ({
212
+ filling: fillingList === null || fillingList === void 0 ? void 0 : fillingList.map(function (filling) { return ({
213
213
  apartment_feature_id: filling.id,
214
214
  is_absent: !filling.check,
215
215
  }); }),
@@ -959,7 +959,7 @@ var templateObject_1$6;
959
959
 
960
960
  var FillingCardContent = function (props) {
961
961
  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: [jsx(Caption, __assign({ size: "s" }, { children: filling.name })), jsxs(StyledSubtitle, __assign({ size: "xs", color: "fiftyP" }, { children: [filling.numberOfSubjects ? "".concat(filling.numberOfSubjects, " pieces") : "", filling.numberOfSubjects && filling.serialNumber ? " \u2022 " : "", filling.serialNumber] }))] })] })));
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] }))] })] })));
963
963
  };
964
964
  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
965
  var StyledLabelWrapper = styled.div(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n margin-left: 8px;\n"], ["\n margin-left: 8px;\n"])));
@@ -1006,13 +1006,15 @@ var FillingListStore = /** @class */ (function () {
1006
1006
  });
1007
1007
  }); };
1008
1008
  this.updateFillingList = function (fillingList) {
1009
- _this.fillingList = fillingList.map(function (filling) { return ({
1010
- id: filling.id,
1011
- name: filling.description,
1012
- serialNumber: filling.serial_code,
1013
- numberOfSubjects: filling.amount,
1014
- wasMissing: filling.is_absent,
1015
- }); });
1009
+ _this.fillingList =
1010
+ (fillingList === null || fillingList === void 0 ? void 0 : fillingList.map(function (filling) { return ({
1011
+ id: filling.id,
1012
+ name: filling.description,
1013
+ tagName: filling.feature.name,
1014
+ serialNumber: filling.serial_code,
1015
+ numberOfSubjects: filling.amount,
1016
+ wasMissing: filling.is_absent,
1017
+ }); })) || [];
1016
1018
  };
1017
1019
  this.fillingList = [];
1018
1020
  this.loader = new Loader();