kui-crm_actions 0.0.81 → 0.0.83
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 +4 -4
- package/cjs/index.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as kui_crm from 'kui-crm';
|
2
|
-
import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes, CityParams, RoomTypes, RenovationParams, RoomParams, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ImageBodyRequest, FillingInfoFormFields as FillingInfoFormFields$1, ContractLinkModel, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, InspectionFeedbackParams, FillingListItemModel, GeolocationParams } from 'kui-crm';
|
2
|
+
import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes, CityParams, RoomTypes, RenovationParams, RoomParams, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ImageBodyRequest, FillingInfoFormFields as FillingInfoFormFields$1, ContractLinkModel, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, InspectionFeedbackParams, FillingTypes, FillingListItemModel, GeolocationParams } from 'kui-crm';
|
3
3
|
import { DateTime } from 'luxon';
|
4
4
|
import { Loader, MultistepForm, PhoneParams as PhoneParams$1 } from 'kui-utils';
|
5
5
|
import * as yup from 'yup';
|
@@ -875,7 +875,7 @@ declare class FillingListStore {
|
|
875
875
|
fillingList: FillingCheckParams[];
|
876
876
|
loader: Loader;
|
877
877
|
constructor();
|
878
|
-
fetchFillingList: (apartmentId: number) => Promise<void>;
|
878
|
+
fetchFillingList: (apartmentId: number, fillingType?: FillingTypes | undefined) => Promise<void>;
|
879
879
|
updateFillingList: (fillingList: FillingListItemModel[]) => void;
|
880
880
|
}
|
881
881
|
|
package/index.js
CHANGED
@@ -963,7 +963,7 @@ var templateObject_1$6;
|
|
963
963
|
|
964
964
|
var FillingCardContent = function (props) {
|
965
965
|
var filling = props.filling, warningLabel = props.warningLabel;
|
966
|
-
return (jsxs(Grid, __assign({ container: true, alignItems: "center" }, { children: [
|
966
|
+
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] }))] })] })));
|
967
967
|
};
|
968
968
|
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);
|
969
969
|
var StyledLabelWrapper = styled.div(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n margin-left: 8px;\n"], ["\n margin-left: 8px;\n"])));
|
@@ -995,13 +995,13 @@ var useMetersValues = function (formStore, metersStore) {
|
|
995
995
|
var FillingListStore = /** @class */ (function () {
|
996
996
|
function FillingListStore() {
|
997
997
|
var _this = this;
|
998
|
-
this.fetchFillingList = function (apartmentId) { return __awaiter(_this, void 0, void 0, function () {
|
998
|
+
this.fetchFillingList = function (apartmentId, fillingType) { return __awaiter(_this, void 0, void 0, function () {
|
999
999
|
var response;
|
1000
1000
|
return __generator(this, function (_a) {
|
1001
1001
|
switch (_a.label) {
|
1002
1002
|
case 0:
|
1003
1003
|
this.loader.startLoading();
|
1004
|
-
return [4 /*yield*/, to(ApartmentsAgent.getFillingList(apartmentId))];
|
1004
|
+
return [4 /*yield*/, to(ApartmentsAgent.getFillingList(apartmentId, fillingType))];
|
1005
1005
|
case 1:
|
1006
1006
|
response = _a.sent();
|
1007
1007
|
resHandler(response, this.loader, this.updateFillingList);
|
@@ -1029,7 +1029,7 @@ var useFillingList = function (apartmentId, formStore, fillingStore) {
|
|
1029
1029
|
useEffect(function () {
|
1030
1030
|
var _a, _b;
|
1031
1031
|
if (!((_b = (_a = formStore.fields) === null || _a === void 0 ? void 0 : _a.filling) === null || _b === void 0 ? void 0 : _b.length) && apartmentId) {
|
1032
|
-
fillingStore.fetchFillingList(apartmentId);
|
1032
|
+
fillingStore.fetchFillingList(apartmentId, "appliance");
|
1033
1033
|
}
|
1034
1034
|
}, [apartmentId]);
|
1035
1035
|
useEffect(function () {
|