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/cjs/index.js +12 -3
- package/cjs/index.js.map +1 -1
- package/index.js +12 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
@@ -624,8 +624,15 @@ var apartmentFields = {
|
|
624
624
|
return {
|
625
625
|
meters: meters.map(function (meter) {
|
626
626
|
var _a;
|
627
|
-
return (
|
628
|
-
|
627
|
+
return ({
|
628
|
+
id: meter.id,
|
629
|
+
type: meter.meter_type,
|
630
|
+
number: meter.passport_number,
|
631
|
+
resource: meter.resource_type,
|
632
|
+
images: ((_a = meter.photos) === null || _a === void 0 ? void 0 : _a.map(function (photo) { return kuiCrm.FileStore.initFromImageModel(photo); })) ||
|
633
|
+
[],
|
634
|
+
values: _this.getMeterValues(meter, meter.resource_type),
|
635
|
+
});
|
629
636
|
}),
|
630
637
|
};
|
631
638
|
},
|
@@ -988,7 +995,9 @@ var templateObject_1$6;
|
|
988
995
|
|
989
996
|
var FillingCardContent = function (props) {
|
990
997
|
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.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
|
998
|
+
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) : ""] })), !!(filling.numberOfSubjects || filling.serialNumber) && (jsxRuntime.jsxs(StyledSubtitle, __assign({ size: "xs", color: "fiftyP" }, { children: [filling.numberOfSubjects
|
999
|
+
? "".concat(filling.numberOfSubjects, " pieces")
|
1000
|
+
: "", filling.numberOfSubjects && filling.serialNumber ? " \u2022 " : "", filling.serialNumber] })))] })] })));
|
992
1001
|
};
|
993
1002
|
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
1003
|
var StyledLabelWrapper = styled__default["default"].div(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n margin-left: 8px;\n"], ["\n margin-left: 8px;\n"])));
|