@m4l/components 0.1.55 → 0.1.57
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/assets/Logo.d.ts +0 -1
- package/components/CommonActions/components/ActionCancel/index.d.ts +0 -1
- package/components/CommonActions/components/ActionFormCancel/{index.665c0421.js → index.9021e223.js} +10 -10
- package/components/CommonActions/components/ActionFormCancel/index.d.ts +0 -1
- package/components/CommonActions/components/ActionFormIntro/index.d.ts +0 -1
- package/components/CommonActions/components/ActionIntro/{index.f6b477c0.js → index.56c7d4b4.js} +1 -1
- package/components/CommonActions/components/ActionIntro/index.d.ts +0 -1
- package/components/CommonActions/components/Actions/{index.e0ac69b4.js → index.a97f42b3.js} +9 -9
- package/components/CommonActions/components/Actions/index.d.ts +0 -1
- package/components/DataGrid/formatters/columnBooleanFormatter/index.d.ts +0 -1
- package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +0 -1
- package/components/DataGrid/formatters/columnDateFormatter/index.d.ts +0 -1
- package/components/DataGrid/formatters/columnNestedValueFormatter/index.d.ts +0 -1
- package/components/DataGrid/formatters/columnPointsFormatter/index.d.ts +0 -1
- package/components/DataGrid/formatters/columnPriceFormatter/index.d.ts +0 -1
- package/components/DataGrid/formatters/columnUncertaintyFormatter/index.d.ts +0 -1
- package/components/DataGrid/{index.f48b3a35.js → index.6406b096.js} +31 -32
- package/components/DataGrid/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Actions/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents/FormatterColumn/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Table/index.d.ts +0 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.d.ts +0 -1
- package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.d.ts +0 -1
- package/components/DraggableWindow/index.d.ts +0 -1
- package/components/DynamicFilter/DynamicFilter.d.ts +0 -1
- package/components/DynamicFilter/index.d.ts +1 -1
- package/components/DynamicFilter/{index.79a81786.js → index.f21f52fe.js} +66 -38
- package/components/DynamicFilter/subcomponents/ApplyedFilters/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/FilterButton/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/InputFilter/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/PopoverFilter/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/PopoverMenuFields/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/index.d.ts +0 -1
- package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +0 -1
- package/components/ErrorLabel/{index.28e80b6b.js → index.908fb555.js} +3 -3
- package/components/ErrorLabel/index.d.ts +0 -1
- package/components/HelmetPage/index.d.ts +0 -1
- package/components/Icon/Icon.d.ts +0 -1
- package/components/Image/Image.d.ts +0 -1
- package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +0 -1
- package/components/Image/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/LanguagePopover/LanguagePopover.d.ts +0 -1
- package/components/LanguagePopover/{index.9ec5f3cf.js → index.14d4d878.js} +3 -3
- package/components/ModalDialog/{index.cb56dfde.js → index.117fc0b2.js} +2 -2
- package/components/NoItemSelected/index.d.ts +0 -1
- package/components/ObjectLogs/components/DetailDialog/index.d.ts +0 -1
- package/components/ObjectLogs/components/DetailFormatter/index.d.ts +0 -1
- package/components/ObjectLogs/{index.dfad2c45.js → index.a8b29035.js} +12 -12
- package/components/ObjectLogs/index.d.ts +0 -1
- package/components/PaperForm/components/Header.d.ts +0 -1
- package/components/PaperForm/index.d.ts +0 -1
- package/components/Period/index.d.ts +0 -1
- package/components/Period/{index.6df58bfb.js → index.d262f353.js} +10 -10
- package/components/PropertyValue/index.d.ts +0 -1
- package/components/PropertyValue/skeleton.d.ts +0 -1
- package/components/ResizeableWindow/index.d.ts +0 -1
- package/components/SplitLayout/{index.fde8c830.js → index.5a8355d8.js} +1 -1
- package/components/SplitLayout/index.d.ts +0 -1
- package/components/WrapperComponent/index.d.ts +0 -1
- package/components/animate/LoadingScreen/index.d.ts +0 -1
- package/components/animate/MotionContainer/index.d.ts +0 -1
- package/components/animate/PropagateLoader/index.d.ts +0 -1
- package/components/areas/components/Area/index.d.ts +0 -1
- package/components/areas/components/Area/subcomponents/InnerForHooks/index.d.ts +0 -1
- package/components/areas/components/AreasAdmin/{index.e41c11ed.js → index.97a4203b.js} +4 -4
- package/components/areas/components/AreasAdmin/index.d.ts +0 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +0 -1
- package/components/areas/components/AreasContainer/index.d.ts +0 -1
- package/components/areas/components/AreasContainer/{index.6203dd11.js → index.f9e22f14.js} +2 -2
- package/components/areas/components/GridLayout/{index.10411e45.js → index.8381ec66.js} +4 -4
- package/components/areas/components/GridLayout/index.d.ts +0 -1
- package/components/areas/components/Window/{index.5340dc34.js → index.0a18cc28.js} +26 -26
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/Header/index.d.ts +0 -1
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/Header/skeleton.d.ts +0 -1
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts +0 -1
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -1
- package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -1
- package/components/areas/components/WindowPopUp/{index.ffce7559.js → index.f98b8799.js} +27 -27
- package/components/areas/components/WindowsPanel/index.d.ts +0 -1
- package/components/areas/components/{index.37640080.js → index.6b36068b.js} +7 -7
- package/components/areas/contexts/AreaContext/{index.4aaf7f1c.js → index.5f0f4b38.js} +1 -1
- package/components/areas/contexts/AreasContext/{index.49bfec93.js → index.6d2c0374.js} +1 -1
- package/components/areas/contexts/{index.4bcf9b23.js → index.b67b8c4d.js} +1 -1
- package/components/areas/hooks/{index.88da7db3.js → index.63b52d03.js} +1 -1
- package/components/areas/hooks/useArea/{index.2aca2167.js → index.7241cfef.js} +2 -2
- package/components/areas/{index.b1ac8078.js → index.287d600f.js} +5 -5
- package/components/formatters/BooleanFormatter/index.d.ts +0 -1
- package/components/formatters/ConcatenatedFormatter/index.d.ts +0 -1
- package/components/formatters/DateFormatter/index.d.ts +0 -1
- package/components/formatters/PeriodFormatter/index.d.ts +0 -1
- package/components/formatters/PointsFormatter/index.d.ts +0 -1
- package/components/formatters/PriceFormatter/index.d.ts +0 -1
- package/components/formatters/UncertaintyFormatter/index.d.ts +0 -1
- package/components/hook-form/RHFAutocomplete/{index.94b5c77f.js → index.7a46159a.js} +1 -1
- package/components/hook-form/RHFAutocomplete/index.d.ts +0 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/hook-form/RHFAutocompleteAsync/{index.7d441cf9.js → index.29f251bb.js} +1 -1
- package/components/hook-form/RHFAutocompleteAsync/index.d.ts +0 -1
- package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +0 -1
- package/components/hook-form/RHFCheckbox/{index.2e8950b3.js → index.da7bc824.js} +1 -1
- package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/hook-form/RHFDateTime/index.d.ts +0 -1
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/hook-form/RHFMultiCheckbox/index.d.ts +0 -1
- package/components/hook-form/RHFPeriod/index.d.ts +0 -1
- package/components/hook-form/RHFPeriod/{index.12797c0d.js → index.e55c55a8.js} +2 -2
- package/components/hook-form/RHFRadioGroup.d.ts +0 -1
- package/components/hook-form/RHFSelect.d.ts +0 -1
- package/components/hook-form/RHFTextField/{index.6d4a97ae.js → index.f5d29656.js} +1 -1
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/index.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/modal/ModalDialog/index.d.ts +0 -1
- package/components/modal/WindowBase/index.d.ts +0 -1
- package/components/modal/WindowBase/subcomponents/Header/index.d.ts +0 -1
- package/components/modal/{WindowBase.f50de8df.js → WindowBase.a7b686f4.js} +1 -1
- package/components/modal/WindowConfirm/index.d.ts +0 -1
- package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index.d.ts +0 -1
- package/components/modal/{WindowConfirm.207b505f.js → WindowConfirm.03749198.js} +10 -10
- package/components/modal/{index.d29934ad.js → index.bbeec3c6.js} +10 -10
- package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -1
- package/components/mui_extended/Accordion/{index.549938bd.js → index.002bad72.js} +1 -1
- package/components/mui_extended/Accordion/index.d.ts +0 -1
- package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +0 -1
- package/components/mui_extended/BoxIcon/index.d.ts +0 -1
- package/components/mui_extended/Breadcrumbs/components/LinkItem/index.d.ts +0 -1
- package/components/mui_extended/Breadcrumbs/index.d.ts +0 -1
- package/components/mui_extended/Button/Button.d.ts +0 -1
- package/components/mui_extended/CircularProgress/index.d.ts +0 -1
- package/components/mui_extended/IconButton/IconButton.d.ts +0 -1
- package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +0 -1
- package/components/mui_extended/ImageButton/ImageButton.d.ts +0 -1
- package/components/mui_extended/LinearProgress/index.d.ts +0 -1
- package/components/mui_extended/LinkWithRoute/index.d.ts +0 -1
- package/components/mui_extended/LoadingButton/index.d.ts +0 -1
- package/components/mui_extended/LoadingButton/subcomponents/Skeleton/index.d.ts +0 -1
- package/components/mui_extended/MenuActions/{index.01e3ccfe.js → index.1affe51a.js} +1 -1
- package/components/mui_extended/MenuActions/index.d.ts +0 -1
- package/components/mui_extended/MenuActions/types.d.ts +0 -1
- package/components/mui_extended/Pager/components/PagerActions/index.d.ts +0 -1
- package/components/mui_extended/Pager/index.d.ts +0 -1
- package/components/mui_extended/Popover/Popover.d.ts +0 -1
- package/components/mui_extended/Popover/{index.708c0af6.js → index.8ed52492.js} +1 -1
- package/components/mui_extended/Tab/index.d.ts +0 -1
- package/components/mui_extended/Typography/index.d.ts +0 -1
- package/components/mui_extended/Typography/subcomponents/index.d.ts +0 -1
- package/components/mui_extended/{index.44306d3a.js → index.5095705d.js} +3 -3
- package/contexts/ModalContext/{index.9ab63c4e.js → index.64f9722d.js} +1 -1
- package/contexts/RHFormContext/index.d.ts +0 -1
- package/hooks/useModal/{index.2e777bd1.js → index.16cbca11.js} +1 -1
- package/index.js +36 -37
- package/package.json +1 -1
- package/{vendor.3a64d9e7.js → vendor.7d963451.js} +29 -29
|
@@ -5,36 +5,36 @@ import { useContext, useMemo, useEffect, createContext, useRef, createElement, u
|
|
|
5
5
|
import { useModuleDictionary, useEnvironment, useModuleSkeleton, useFlagsPresent, CommonFlags } from "@m4l/core";
|
|
6
6
|
import { useResponsiveDesktop, useFirstRender, useFormatter } from "@m4l/graphics";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { T as TEST_PROP_ID } from "../../vendor.
|
|
8
|
+
import { T as TEST_PROP_ID } from "../../vendor.7d963451.js";
|
|
9
9
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
10
|
-
import { generateUtilityClasses, alpha, styled as styled$
|
|
11
|
-
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.
|
|
12
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
10
|
+
import { generateUtilityClasses, alpha, styled as styled$1, Skeleton, MenuItem } from "@mui/material";
|
|
11
|
+
import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.1affe51a.js";
|
|
12
|
+
import { P as Popover } from "../mui_extended/Popover/index.8ed52492.js";
|
|
13
13
|
import { I as Icon } from "../Icon/index.b29ff2d9.js";
|
|
14
14
|
import { R as RHFormProvider } from "../../contexts/RHFormContext/index.3dc6e2f5.js";
|
|
15
|
-
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.
|
|
15
|
+
import { g as getCommonActionsDictionary, A as Actions } from "../CommonActions/components/Actions/index.a97f42b3.js";
|
|
16
16
|
import { A as ActionCancel } from "../CommonActions/components/ActionCancel/index.a81752ef.js";
|
|
17
|
-
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.
|
|
17
|
+
import { A as ActionIntro } from "../CommonActions/components/ActionIntro/index.56c7d4b4.js";
|
|
18
18
|
import { useFormContext, useWatch } from "react-hook-form";
|
|
19
19
|
import "@mui/material/Button";
|
|
20
20
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
21
|
-
import "../../contexts/ModalContext/index.
|
|
21
|
+
import "../../contexts/ModalContext/index.64f9722d.js";
|
|
22
22
|
import "../../react-draggable.6471b07e.js";
|
|
23
|
-
import "../ModalDialog/index.
|
|
23
|
+
import "../ModalDialog/index.117fc0b2.js";
|
|
24
24
|
import "../Resizeable/index.04fa8de5.js";
|
|
25
|
-
import "../modal/WindowConfirm.
|
|
26
|
-
import "../modal/WindowBase.
|
|
27
|
-
import "../areas/components/index.
|
|
28
|
-
import "../areas/components/AreasAdmin/index.
|
|
25
|
+
import "../modal/WindowConfirm.03749198.js";
|
|
26
|
+
import "../modal/WindowBase.a7b686f4.js";
|
|
27
|
+
import "../areas/components/index.6b36068b.js";
|
|
28
|
+
import "../areas/components/AreasAdmin/index.97a4203b.js";
|
|
29
29
|
import { useStore, createStore } from "zustand";
|
|
30
|
-
import "../areas/contexts/AreasContext/index.
|
|
31
|
-
import "../areas/components/AreasContainer/index.
|
|
30
|
+
import "../areas/contexts/AreasContext/index.6d2c0374.js";
|
|
31
|
+
import "../areas/components/AreasContainer/index.f9e22f14.js";
|
|
32
32
|
import "react-grid-layout/css/styles.css";
|
|
33
33
|
import "../../react-resizable.b620abed.js";
|
|
34
|
-
import "../areas/contexts/index.
|
|
34
|
+
import "../areas/contexts/index.b67b8c4d.js";
|
|
35
35
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
36
36
|
import "@mui/lab";
|
|
37
|
-
import "../mui_extended/Accordion/index.
|
|
37
|
+
import "../mui_extended/Accordion/index.002bad72.js";
|
|
38
38
|
import "../mui_extended/Avatar/index.fe06afd7.js";
|
|
39
39
|
import "react-router-dom";
|
|
40
40
|
import "../Image/index.aa24e982.js";
|
|
@@ -45,21 +45,20 @@ import { unstable_composeClasses } from "@mui/base";
|
|
|
45
45
|
import { g as getComponentUtilityClass, i as isValidDate } from "../../utils/index.b6ae791a.js";
|
|
46
46
|
import { devtools } from "zustand/middleware";
|
|
47
47
|
import { immer } from "zustand/middleware/immer";
|
|
48
|
-
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.
|
|
48
|
+
import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.7a46159a.js";
|
|
49
49
|
import "lodash/debounce";
|
|
50
|
-
import "../hook-form/RHFCheckbox/index.
|
|
50
|
+
import "../hook-form/RHFCheckbox/index.da7bc824.js";
|
|
51
51
|
import { styled, alpha as alpha$1 } from "@mui/material/styles";
|
|
52
|
-
import "../ErrorLabel/index.
|
|
52
|
+
import "../ErrorLabel/index.908fb555.js";
|
|
53
53
|
import "@mui/x-date-pickers";
|
|
54
54
|
import { R as RHFDateTime } from "../hook-form/RHFDateTime/index.6c129ce4.js";
|
|
55
|
-
import { R as RHFTextField } from "../hook-form/RHFTextField/index.
|
|
56
|
-
import "../hook-form/RHFPeriod/index.
|
|
57
|
-
import "../Period/index.
|
|
55
|
+
import { R as RHFTextField } from "../hook-form/RHFTextField/index.f5d29656.js";
|
|
56
|
+
import "../hook-form/RHFPeriod/index.e55c55a8.js";
|
|
57
|
+
import "../Period/index.d262f353.js";
|
|
58
58
|
import "lodash/isString";
|
|
59
59
|
import "react-dropzone";
|
|
60
60
|
import "../hook-form/RHFUpload/index.7fdff30f.js";
|
|
61
61
|
import * as Yup from "yup";
|
|
62
|
-
import { styled as styled$1 } from "@m4l/styles";
|
|
63
62
|
import "@hookform/resolvers/yup";
|
|
64
63
|
const COMPONENT_CLASS_NAME = "M4LDynamicFilter";
|
|
65
64
|
const ASSETS_URL = "/frontend/components/dynamic_filter/assets/icons/";
|
|
@@ -799,6 +798,9 @@ const formatToInitialFilters = (applyedFilters) => {
|
|
|
799
798
|
ret.operand1 = af.operand1.toISOString();
|
|
800
799
|
ret.operand2 = af.operator === "b" ? af.operand2.toISOString() : void 0;
|
|
801
800
|
}
|
|
801
|
+
if (ret.operand2 === void 0) {
|
|
802
|
+
delete ret.operand2;
|
|
803
|
+
}
|
|
802
804
|
return ret;
|
|
803
805
|
});
|
|
804
806
|
};
|
|
@@ -878,7 +880,7 @@ const getPurgedInitialFiltersApplyed = (fields, initialFilters, getFieldByName)
|
|
|
878
880
|
}
|
|
879
881
|
return newFilters;
|
|
880
882
|
};
|
|
881
|
-
const
|
|
883
|
+
const updateAvailableFields = (state) => {
|
|
882
884
|
const newFields = [];
|
|
883
885
|
for (let index = 0; index < state.fields.length; index++) {
|
|
884
886
|
let add;
|
|
@@ -896,9 +898,33 @@ const updateAvailableFieldsNoBoilerPlate = (state) => {
|
|
|
896
898
|
}
|
|
897
899
|
state.availableFields = newFields;
|
|
898
900
|
};
|
|
901
|
+
const updateOwnerStateIsValid = (state) => {
|
|
902
|
+
state.ownerState.isValid = true;
|
|
903
|
+
for (let index = 0; index < state.applyedFilters.length; index++) {
|
|
904
|
+
const element = state.applyedFilters[index];
|
|
905
|
+
if (!element.isSetted) {
|
|
906
|
+
state.ownerState.isValid = false;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
};
|
|
899
910
|
const updateOwnerStateClasses = (state) => {
|
|
900
911
|
state.classes = useUtilityClasses(state.ownerState);
|
|
901
912
|
};
|
|
913
|
+
const updateAutomatic = (state) => {
|
|
914
|
+
updateOwnerStateIsValid(state);
|
|
915
|
+
updateAvailableFields(state);
|
|
916
|
+
console.log("updateAutomatic", state.ownerState.isValid);
|
|
917
|
+
if (state.ownerState.isValid) {
|
|
918
|
+
if (state.automatic) {
|
|
919
|
+
state.ownerState.isDirty = false;
|
|
920
|
+
state.onChangeFilters(
|
|
921
|
+
formatToInitialFilters(state.applyedFilters),
|
|
922
|
+
formatToRawFilter(state.applyedFilters)
|
|
923
|
+
);
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
updateOwnerStateClasses(state);
|
|
927
|
+
};
|
|
902
928
|
const createAreaStore = (initProps) => {
|
|
903
929
|
const startProps = {
|
|
904
930
|
applyedFilters: [],
|
|
@@ -921,7 +947,7 @@ const createAreaStore = (initProps) => {
|
|
|
921
947
|
initialFiltersApplyed,
|
|
922
948
|
state.actions.getFieldByName
|
|
923
949
|
);
|
|
924
|
-
|
|
950
|
+
updateAvailableFields(state);
|
|
925
951
|
});
|
|
926
952
|
},
|
|
927
953
|
getFieldByName: (name) => {
|
|
@@ -940,8 +966,8 @@ const createAreaStore = (initProps) => {
|
|
|
940
966
|
);
|
|
941
967
|
if (index_to_remove > -1) {
|
|
942
968
|
state.applyedFilters.splice(index_to_remove, 1);
|
|
969
|
+
updateAutomatic(state);
|
|
943
970
|
}
|
|
944
|
-
updateAvailableFieldsNoBoilerPlate(state);
|
|
945
971
|
});
|
|
946
972
|
},
|
|
947
973
|
showPopoverFilterForAdd: (anchorEl, field) => {
|
|
@@ -975,19 +1001,18 @@ const createAreaStore = (initProps) => {
|
|
|
975
1001
|
clearFilters: () => {
|
|
976
1002
|
set((state) => {
|
|
977
1003
|
state.applyedFilters = state.applyedFilters.filter((f) => f.fixed);
|
|
978
|
-
|
|
1004
|
+
updateAvailableFields(state);
|
|
979
1005
|
});
|
|
980
1006
|
},
|
|
981
1007
|
fireOnChangeFilters: () => {
|
|
982
1008
|
set((state) => {
|
|
983
1009
|
if (state.ownerState.isValid) {
|
|
984
|
-
|
|
985
|
-
state.ownerState.isDirty = false;
|
|
986
|
-
}
|
|
1010
|
+
state.ownerState.isDirty = false;
|
|
987
1011
|
state.onChangeFilters(
|
|
988
1012
|
formatToInitialFilters(state.applyedFilters),
|
|
989
1013
|
formatToRawFilter(state.applyedFilters)
|
|
990
1014
|
);
|
|
1015
|
+
updateOwnerStateClasses(state);
|
|
991
1016
|
}
|
|
992
1017
|
});
|
|
993
1018
|
},
|
|
@@ -999,6 +1024,7 @@ const createAreaStore = (initProps) => {
|
|
|
999
1024
|
addFilter: (newFilter) => {
|
|
1000
1025
|
set((state) => {
|
|
1001
1026
|
state.applyedFilters.push(newFilter);
|
|
1027
|
+
updateAutomatic(state);
|
|
1002
1028
|
});
|
|
1003
1029
|
},
|
|
1004
1030
|
updateFilter: (editFilter) => {
|
|
@@ -1009,6 +1035,7 @@ const createAreaStore = (initProps) => {
|
|
|
1009
1035
|
if (index > -1) {
|
|
1010
1036
|
state.applyedFilters[index] = editFilter;
|
|
1011
1037
|
}
|
|
1038
|
+
updateAutomatic(state);
|
|
1012
1039
|
});
|
|
1013
1040
|
},
|
|
1014
1041
|
setInputData: (inputData) => {
|
|
@@ -1168,7 +1195,7 @@ const ContainerApplyedFilters = styled("div")(({
|
|
|
1168
1195
|
height: "auto",
|
|
1169
1196
|
gap: theme.spacing(1.5)
|
|
1170
1197
|
}));
|
|
1171
|
-
const WrapperApplyedFilter = styled
|
|
1198
|
+
const WrapperApplyedFilter = styled("div")(({
|
|
1172
1199
|
theme
|
|
1173
1200
|
}) => ({
|
|
1174
1201
|
width: "auto",
|
|
@@ -1184,7 +1211,7 @@ const WrapperApplyedFilter = styled$1("div")(({
|
|
|
1184
1211
|
overflow: "visible",
|
|
1185
1212
|
borderRadius: theme.spacing(1)
|
|
1186
1213
|
}));
|
|
1187
|
-
const AplyedFilterStyled = styled
|
|
1214
|
+
const AplyedFilterStyled = styled("div")(({
|
|
1188
1215
|
theme
|
|
1189
1216
|
}) => ({
|
|
1190
1217
|
...theme.typography.body2,
|
|
@@ -1197,19 +1224,19 @@ const AplyedFilterStyled = styled$1("div")(({
|
|
|
1197
1224
|
marginLeft: theme.spacing(1),
|
|
1198
1225
|
whiteSpace: "nowrap"
|
|
1199
1226
|
}));
|
|
1200
|
-
const ContainerField = styled
|
|
1227
|
+
const ContainerField = styled("span")(({
|
|
1201
1228
|
theme
|
|
1202
1229
|
}) => ({
|
|
1203
1230
|
...theme.typography.subtitle2
|
|
1204
1231
|
}));
|
|
1205
|
-
const ContainerOperator = styled
|
|
1232
|
+
const ContainerOperator = styled("span")(({
|
|
1206
1233
|
theme
|
|
1207
1234
|
}) => ({
|
|
1208
1235
|
...theme.typography.body2,
|
|
1209
1236
|
marginLeft: theme.spacing(1.5),
|
|
1210
1237
|
fontStyle: "italic"
|
|
1211
1238
|
}));
|
|
1212
|
-
const ContainerOperands = styled
|
|
1239
|
+
const ContainerOperands = styled("span")(({
|
|
1213
1240
|
theme
|
|
1214
1241
|
}) => ({
|
|
1215
1242
|
...theme.typography.body2,
|
|
@@ -1304,7 +1331,7 @@ function ApplyedFilters() {
|
|
|
1304
1331
|
})
|
|
1305
1332
|
});
|
|
1306
1333
|
}
|
|
1307
|
-
const SKTClearFilters = styled$
|
|
1334
|
+
const SKTClearFilters = styled$1("div")(({
|
|
1308
1335
|
theme
|
|
1309
1336
|
}) => ({
|
|
1310
1337
|
display: "flex",
|
|
@@ -1313,7 +1340,7 @@ const SKTClearFilters = styled$2("div")(({
|
|
|
1313
1340
|
minWidth: theme.spacing(3.75),
|
|
1314
1341
|
height: theme.spacing(3.75)
|
|
1315
1342
|
}));
|
|
1316
|
-
const WrapperClearFilters = styled$
|
|
1343
|
+
const WrapperClearFilters = styled$1("div")(({
|
|
1317
1344
|
theme
|
|
1318
1345
|
}) => ({
|
|
1319
1346
|
paddingLeft: theme.spacing(0.5),
|
|
@@ -1706,7 +1733,8 @@ const PopoverFilter = () => {
|
|
|
1706
1733
|
...getFilterFromFormValue({
|
|
1707
1734
|
...filterFormValue,
|
|
1708
1735
|
...data
|
|
1709
|
-
})
|
|
1736
|
+
}),
|
|
1737
|
+
isSetted: true
|
|
1710
1738
|
};
|
|
1711
1739
|
if (popoverFilterData?.openFor === "add") {
|
|
1712
1740
|
addFilter(newFilter);
|
|
@@ -5,15 +5,15 @@ import "../Icon/index.b29ff2d9.js";
|
|
|
5
5
|
import "@mui/material/styles";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import "../mui_extended/IconButton/index.460c0476.js";
|
|
8
|
-
import "../mui_extended/Accordion/index.
|
|
8
|
+
import "../mui_extended/Accordion/index.002bad72.js";
|
|
9
9
|
import "../mui_extended/Avatar/index.fe06afd7.js";
|
|
10
10
|
import "react-router-dom";
|
|
11
11
|
import "@mui/material/Button";
|
|
12
12
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
13
13
|
import "../Image/index.aa24e982.js";
|
|
14
14
|
import "@mui/lab";
|
|
15
|
-
import "../mui_extended/Popover/index.
|
|
16
|
-
import "../mui_extended/MenuActions/index.
|
|
15
|
+
import "../mui_extended/Popover/index.8ed52492.js";
|
|
16
|
+
import "../mui_extended/MenuActions/index.1affe51a.js";
|
|
17
17
|
import "../mui_extended/Pager/index.458f9f0d.js";
|
|
18
18
|
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
19
19
|
import { t as typographyClasses, T as Typography } from "../mui_extended/Typography/index.be3a279a.js";
|
|
@@ -7,15 +7,15 @@ import "../Icon/index.b29ff2d9.js";
|
|
|
7
7
|
import "@mui/material/styles";
|
|
8
8
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
9
9
|
import "../mui_extended/IconButton/index.460c0476.js";
|
|
10
|
-
import "../mui_extended/Accordion/index.
|
|
10
|
+
import "../mui_extended/Accordion/index.002bad72.js";
|
|
11
11
|
import "../mui_extended/Avatar/index.fe06afd7.js";
|
|
12
12
|
import "react-router-dom";
|
|
13
13
|
import "@mui/material/Button";
|
|
14
14
|
import { I as ImageButton } from "../mui_extended/Button/index.8406ed5b.js";
|
|
15
15
|
import { C as CircularProgress } from "../mui_extended/CircularProgress/index.ad569afd.js";
|
|
16
16
|
import "@mui/lab";
|
|
17
|
-
import { P as Popover } from "../mui_extended/Popover/index.
|
|
18
|
-
import "../mui_extended/MenuActions/index.
|
|
17
|
+
import { P as Popover } from "../mui_extended/Popover/index.8ed52492.js";
|
|
18
|
+
import "../mui_extended/MenuActions/index.1affe51a.js";
|
|
19
19
|
import "../mui_extended/Pager/index.458f9f0d.js";
|
|
20
20
|
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
21
21
|
import "../mui_extended/Typography/index.be3a279a.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Dialog, Paper } from "@mui/material";
|
|
2
2
|
import { c as cjs } from "../../react-draggable.6471b07e.js";
|
|
3
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
3
|
+
import { u as useModal } from "../../hooks/useModal/index.16cbca11.js";
|
|
4
4
|
import { styled } from "@mui/material/styles";
|
|
5
5
|
import { b as getThemeVariantColor } from "../../utils/index.b6ae791a.js";
|
|
6
6
|
import { R as ResizeableWindow } from "../Resizeable/index.04fa8de5.js";
|
|
7
7
|
import { useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
9
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.a97f42b3.js";
|
|
10
10
|
const WrapperDialog = styled(Dialog)(() => ({}));
|
|
11
11
|
const Container = styled("div")(({ theme }) => ({
|
|
12
12
|
display: "flex",
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useMemo } from "react";
|
|
2
2
|
import { useNetwork, useModuleDictionary, useEnvironment, usePaginate } from "@m4l/core";
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
|
-
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.
|
|
4
|
+
import { D as DataGrid, g as getDataGridComponentsDictionary } from "../DataGrid/index.6406b096.js";
|
|
5
5
|
import { D as DateFormatter } from "../formatters/DateFormatter/index.578a9f53.js";
|
|
6
6
|
import { Tooltip, IconButton } from "@mui/material";
|
|
7
7
|
import { useHostTheme, useResponsiveDesktop } from "@m4l/graphics";
|
|
8
8
|
import { R as ReactJson } from "../../react-json-view.57125fcf.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { u as useModal } from "../../hooks/useModal/index.
|
|
10
|
+
import { u as useModal } from "../../hooks/useModal/index.16cbca11.js";
|
|
11
11
|
import { I as Icon } from "../Icon/index.b29ff2d9.js";
|
|
12
12
|
import "../../react-draggable.6471b07e.js";
|
|
13
|
-
import "../ModalDialog/index.
|
|
13
|
+
import "../ModalDialog/index.117fc0b2.js";
|
|
14
14
|
import "../Resizeable/index.04fa8de5.js";
|
|
15
|
-
import "../CommonActions/components/Actions/index.
|
|
15
|
+
import "../CommonActions/components/Actions/index.a97f42b3.js";
|
|
16
16
|
import "@mui/material/Button";
|
|
17
17
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
18
18
|
import "react-hook-form";
|
|
19
|
-
import "../areas/components/index.
|
|
20
|
-
import "../areas/components/AreasAdmin/index.
|
|
19
|
+
import "../areas/components/index.6b36068b.js";
|
|
20
|
+
import "../areas/components/AreasAdmin/index.97a4203b.js";
|
|
21
21
|
import "../mui_extended/IconButton/index.460c0476.js";
|
|
22
22
|
import "zustand";
|
|
23
|
-
import "../areas/contexts/AreasContext/index.
|
|
23
|
+
import "../areas/contexts/AreasContext/index.6d2c0374.js";
|
|
24
24
|
import "zustand/shallow";
|
|
25
|
-
import "../areas/components/AreasContainer/index.
|
|
25
|
+
import "../areas/components/AreasContainer/index.f9e22f14.js";
|
|
26
26
|
import "react-grid-layout/css/styles.css";
|
|
27
27
|
import "../../react-resizable.b620abed.js";
|
|
28
|
-
import "../areas/contexts/index.
|
|
28
|
+
import "../areas/contexts/index.b67b8c4d.js";
|
|
29
29
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
30
30
|
import "@mui/lab";
|
|
31
|
-
import "../modal/WindowConfirm.
|
|
32
|
-
import { W as WindowBase } from "../modal/WindowBase.
|
|
33
|
-
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.
|
|
31
|
+
import "../modal/WindowConfirm.03749198.js";
|
|
32
|
+
import { W as WindowBase } from "../modal/WindowBase.a7b686f4.js";
|
|
33
|
+
import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.f21f52fe.js";
|
|
34
34
|
const Container$1 = styled("div")(() => ({
|
|
35
35
|
height: "100%",
|
|
36
36
|
width: "100%",
|
|
@@ -3,28 +3,28 @@ import { styled, Skeleton, Autocomplete, TextField } from "@mui/material";
|
|
|
3
3
|
import { useMemo } from "react";
|
|
4
4
|
import { I as Icon } from "../Icon/index.b29ff2d9.js";
|
|
5
5
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
6
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.
|
|
6
|
+
import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.a97f42b3.js";
|
|
7
7
|
import "@mui/material/Button";
|
|
8
8
|
import "../mui_extended/Button/index.8406ed5b.js";
|
|
9
9
|
import "react-hook-form";
|
|
10
|
-
import "../../contexts/ModalContext/index.
|
|
10
|
+
import "../../contexts/ModalContext/index.64f9722d.js";
|
|
11
11
|
import "../../react-draggable.6471b07e.js";
|
|
12
|
-
import "../ModalDialog/index.
|
|
12
|
+
import "../ModalDialog/index.117fc0b2.js";
|
|
13
13
|
import "../Resizeable/index.04fa8de5.js";
|
|
14
14
|
import "@m4l/graphics";
|
|
15
|
-
import "../modal/WindowConfirm.
|
|
15
|
+
import "../modal/WindowConfirm.03749198.js";
|
|
16
16
|
import "@mui/material/styles";
|
|
17
|
-
import "../modal/WindowBase.
|
|
18
|
-
import "../areas/components/index.
|
|
19
|
-
import "../areas/components/AreasAdmin/index.
|
|
17
|
+
import "../modal/WindowBase.a7b686f4.js";
|
|
18
|
+
import "../areas/components/index.6b36068b.js";
|
|
19
|
+
import "../areas/components/AreasAdmin/index.97a4203b.js";
|
|
20
20
|
import "../mui_extended/IconButton/index.460c0476.js";
|
|
21
21
|
import "zustand";
|
|
22
|
-
import "../areas/contexts/AreasContext/index.
|
|
22
|
+
import "../areas/contexts/AreasContext/index.6d2c0374.js";
|
|
23
23
|
import "zustand/shallow";
|
|
24
|
-
import "../areas/components/AreasContainer/index.
|
|
24
|
+
import "../areas/components/AreasContainer/index.f9e22f14.js";
|
|
25
25
|
import "react-grid-layout/css/styles.css";
|
|
26
26
|
import "../../react-resizable.b620abed.js";
|
|
27
|
-
import "../areas/contexts/index.
|
|
27
|
+
import "../areas/contexts/index.b67b8c4d.js";
|
|
28
28
|
import "../areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
|
|
29
29
|
import "@mui/lab";
|
|
30
30
|
const ContainerPeriod = styled("div")(({
|