kui-crm_actions 0.0.94 → 0.0.97

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
@@ -1071,9 +1071,9 @@ var useFillingList = function (apartmentId, formStore, fillingStore) {
1071
1071
  }, [fillingStore.fillingList, fillingStore.loader.isLoading]);
1072
1072
  };
1073
1073
 
1074
- var ApartmentInspectionPoint = function (props) {
1075
- var date = props.date, onClick = props.onClick, isActive = props.isActive, apartment = props.apartment;
1076
- return (jsxRuntime.jsx(kuiBasic.Button, __assign({ size: "xs", variant: isActive ? "primary" : "white", onClick: onClick }, { children: (date === null || date === void 0 ? void 0 : date.toFormat("dd.MM.yyyy")) || "".concat(Number(apartment.roomsCount), "-\u043A\u043E\u043C\u043D.") })));
1074
+ var ObjectForMapPoint = function (props) {
1075
+ var label = props.label, onClick = props.onClick, isActive = props.isActive;
1076
+ return (jsxRuntime.jsx(kuiBasic.Button, __assign({ size: "xs", variant: isActive ? "primary" : "white", onClick: onClick }, { children: label })));
1077
1077
  };
1078
1078
 
1079
1079
  var MetroStation = function (props) {
@@ -1095,7 +1095,7 @@ var StyledWrapper$1 = styled__default["default"](kuiBasic.Grid)(templateObject_1
1095
1095
  var StyledPhoneIcon = styled__default["default"](kuiIcon.PhoneIcon)(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n margin-right: 6px;\n transform: rotate(15deg);\n path {\n stroke: ", ";\n }\n"], ["\n margin-right: 6px;\n transform: rotate(15deg);\n path {\n stroke: ", ";\n }\n"])), kuiBasic.theme.palette.grey.sixty);
1096
1096
  var templateObject_1$2, templateObject_2$1;
1097
1097
 
1098
- var ApartmentInspectionCard = function (props) {
1098
+ var ObjectForMapCard = function (props) {
1099
1099
  var inspection = props.inspection, onClose = props.onClose, getClientLink = props.getClientLink, getInspectionLink = props.getInspectionLink;
1100
1100
  var apartment = inspection.apartment, tenant = inspection.tenant, landlord = inspection.landlord, metroStations = inspection.metroStations;
1101
1101
  var client = tenant || landlord;
@@ -1110,17 +1110,16 @@ var StyledCloseButton = styled__default["default"](kuiBasic.Button)(templateObje
1110
1110
  var StyledClientLink = styled__default["default"](kuiCrm.Link)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n max-width: calc(100% - 140px);\n"], ["\n max-width: calc(100% - 140px);\n"])));
1111
1111
  var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
1112
1112
 
1113
- var ApartmentInspectionOverlay = function (props) {
1114
- var inspection = props.inspection, map = props.map, other = __rest(props, ["inspection", "map"]);
1113
+ var ObjectForMapOverlay = function (props) {
1114
+ var inspection = props.inspection, map = props.map, label = props.label, other = __rest(props, ["inspection", "map", "label"]);
1115
1115
  var _a = kuiCrm.useMapCards(inspection.location, map), ref = _a.ref, isOpen = _a.isOpen, closeCard = _a.closeCard, toggleCard = _a.toggleCard;
1116
- return (jsxRuntime.jsx(kuiCrm.MapOverlay, __assign({ map: map, position: inspection.location }, { children: jsxRuntime.jsxs(StyledWrapper, __assign({ ref: ref }, { children: [jsxRuntime.jsx(ApartmentInspectionPoint, { date: inspection.date, apartment: inspection.apartment, isActive: isOpen, onClick: toggleCard }), isOpen && (jsxRuntime.jsx(ApartmentInspectionCard, __assign({ inspection: inspection, onClose: closeCard }, other)))] })) })));
1116
+ return (jsxRuntime.jsx(kuiCrm.MapOverlay, __assign({ map: map, position: inspection.location }, { children: jsxRuntime.jsxs(StyledWrapper, __assign({ ref: ref }, { children: [jsxRuntime.jsx(ObjectForMapPoint, { label: label, isActive: isOpen, onClick: toggleCard }), isOpen && (jsxRuntime.jsx(ObjectForMapCard, __assign({ inspection: inspection, onClose: closeCard }, other)))] })) })));
1117
1117
  };
1118
1118
  var StyledWrapper = styled__default["default"].div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
1119
1119
  var templateObject_1;
1120
1120
 
1121
1121
  exports.AdditionalInfoFieldsSchema = AdditionalInfoFieldsSchema;
1122
1122
  exports.AdditionalInfoStepSchema = AdditionalInfoStepSchema;
1123
- exports.ApartmentInspectionOverlay = ApartmentInspectionOverlay;
1124
1123
  exports.BasicApartmentInfoFieldsSchema = BasicApartmentInfoFieldsSchema;
1125
1124
  exports.BasicApartmentInfoStepSchema = BasicApartmentInfoStepSchema;
1126
1125
  exports.DetailApartmentInfoFieldsSchema = DetailApartmentInfoFieldsSchema;
@@ -1133,6 +1132,9 @@ exports.InspectionFeedback = index;
1133
1132
  exports.InspectionFillingCard = InspectionFillingCard;
1134
1133
  exports.MetersInfoFieldsSchema = MetersInfoFieldsSchema;
1135
1134
  exports.MetersInfoStepSchema = MetersInfoStepSchema;
1135
+ exports.ObjectForMapCard = ObjectForMapCard;
1136
+ exports.ObjectForMapOverlay = ObjectForMapOverlay;
1137
+ exports.ObjectForMapPoint = ObjectForMapPoint;
1136
1138
  exports.RoomsApartmentInfoFieldsSchema = RoomsApartmentInfoFieldsSchema;
1137
1139
  exports.RoomsApartmentInfoStepSchema = RoomsApartmentInfoStepSchema;
1138
1140
  exports.SecurityApartmentInfoFieldsSchema = SecurityApartmentInfoFieldsSchema;