kui-crm_actions 0.0.95 → 0.0.98
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 +10 -16
- package/cjs/index.js.map +1 -1
- package/index.d.ts +30 -9
- package/index.js +9 -17
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
@@ -804,14 +804,6 @@ var SecurityApartmentInfoFieldsSchema = {
|
|
804
804
|
intercomCode: kuiCrm.fieldWithConditionSchema("hasIntercom"),
|
805
805
|
hasGate: yup__namespace.string().required("This field is required"),
|
806
806
|
gateCode: kuiCrm.fieldWithConditionSchema("hasGate"),
|
807
|
-
parkingType: yup__namespace.string().nullable(),
|
808
|
-
parkingNumber: yup__namespace
|
809
|
-
.string()
|
810
|
-
.when("parkingType", {
|
811
|
-
is: function (value) { return !!value; },
|
812
|
-
then: function (rule) { return rule.required(kuiCrm.defaultRequiredMessage); },
|
813
|
-
})
|
814
|
-
.nullable(),
|
815
807
|
};
|
816
808
|
var SecurityApartmentInfoStepSchema = yup__namespace.object(SecurityApartmentInfoFieldsSchema);
|
817
809
|
|
@@ -1071,9 +1063,9 @@ var useFillingList = function (apartmentId, formStore, fillingStore) {
|
|
1071
1063
|
}, [fillingStore.fillingList, fillingStore.loader.isLoading]);
|
1072
1064
|
};
|
1073
1065
|
|
1074
|
-
var
|
1075
|
-
var
|
1076
|
-
return (jsxRuntime.jsx(kuiBasic.Button, __assign({ size: "xs", variant: isActive ? "primary" : "white", onClick: onClick }, { children:
|
1066
|
+
var ObjectForMapPoint = function (props) {
|
1067
|
+
var label = props.label, onClick = props.onClick, isActive = props.isActive;
|
1068
|
+
return (jsxRuntime.jsx(kuiBasic.Button, __assign({ size: "xs", variant: isActive ? "primary" : "white", onClick: onClick }, { children: label })));
|
1077
1069
|
};
|
1078
1070
|
|
1079
1071
|
var MetroStation = function (props) {
|
@@ -1095,7 +1087,7 @@ var StyledWrapper$1 = styled__default["default"](kuiBasic.Grid)(templateObject_1
|
|
1095
1087
|
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
1088
|
var templateObject_1$2, templateObject_2$1;
|
1097
1089
|
|
1098
|
-
var
|
1090
|
+
var ObjectForMapCard = function (props) {
|
1099
1091
|
var inspection = props.inspection, onClose = props.onClose, getClientLink = props.getClientLink, getInspectionLink = props.getInspectionLink;
|
1100
1092
|
var apartment = inspection.apartment, tenant = inspection.tenant, landlord = inspection.landlord, metroStations = inspection.metroStations;
|
1101
1093
|
var client = tenant || landlord;
|
@@ -1110,17 +1102,16 @@ var StyledCloseButton = styled__default["default"](kuiBasic.Button)(templateObje
|
|
1110
1102
|
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
1103
|
var templateObject_1$1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
1112
1104
|
|
1113
|
-
var
|
1114
|
-
var inspection = props.inspection, map = props.map, other = __rest(props, ["inspection", "map"]);
|
1105
|
+
var ObjectForMapOverlay = function (props) {
|
1106
|
+
var inspection = props.inspection, map = props.map, label = props.label, other = __rest(props, ["inspection", "map", "label"]);
|
1115
1107
|
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(
|
1108
|
+
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
1109
|
};
|
1118
1110
|
var StyledWrapper = styled__default["default"].div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
1119
1111
|
var templateObject_1;
|
1120
1112
|
|
1121
1113
|
exports.AdditionalInfoFieldsSchema = AdditionalInfoFieldsSchema;
|
1122
1114
|
exports.AdditionalInfoStepSchema = AdditionalInfoStepSchema;
|
1123
|
-
exports.ApartmentInspectionOverlay = ApartmentInspectionOverlay;
|
1124
1115
|
exports.BasicApartmentInfoFieldsSchema = BasicApartmentInfoFieldsSchema;
|
1125
1116
|
exports.BasicApartmentInfoStepSchema = BasicApartmentInfoStepSchema;
|
1126
1117
|
exports.DetailApartmentInfoFieldsSchema = DetailApartmentInfoFieldsSchema;
|
@@ -1133,6 +1124,9 @@ exports.InspectionFeedback = index;
|
|
1133
1124
|
exports.InspectionFillingCard = InspectionFillingCard;
|
1134
1125
|
exports.MetersInfoFieldsSchema = MetersInfoFieldsSchema;
|
1135
1126
|
exports.MetersInfoStepSchema = MetersInfoStepSchema;
|
1127
|
+
exports.ObjectForMapCard = ObjectForMapCard;
|
1128
|
+
exports.ObjectForMapOverlay = ObjectForMapOverlay;
|
1129
|
+
exports.ObjectForMapPoint = ObjectForMapPoint;
|
1136
1130
|
exports.RoomsApartmentInfoFieldsSchema = RoomsApartmentInfoFieldsSchema;
|
1137
1131
|
exports.RoomsApartmentInfoStepSchema = RoomsApartmentInfoStepSchema;
|
1138
1132
|
exports.SecurityApartmentInfoFieldsSchema = SecurityApartmentInfoFieldsSchema;
|