@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.
Files changed (165) hide show
  1. package/assets/Logo.d.ts +0 -1
  2. package/components/CommonActions/components/ActionCancel/index.d.ts +0 -1
  3. package/components/CommonActions/components/ActionFormCancel/{index.665c0421.js → index.9021e223.js} +10 -10
  4. package/components/CommonActions/components/ActionFormCancel/index.d.ts +0 -1
  5. package/components/CommonActions/components/ActionFormIntro/index.d.ts +0 -1
  6. package/components/CommonActions/components/ActionIntro/{index.f6b477c0.js → index.56c7d4b4.js} +1 -1
  7. package/components/CommonActions/components/ActionIntro/index.d.ts +0 -1
  8. package/components/CommonActions/components/Actions/{index.e0ac69b4.js → index.a97f42b3.js} +9 -9
  9. package/components/CommonActions/components/Actions/index.d.ts +0 -1
  10. package/components/DataGrid/formatters/columnBooleanFormatter/index.d.ts +0 -1
  11. package/components/DataGrid/formatters/columnConcatenatedValueFormatter/index.d.ts +0 -1
  12. package/components/DataGrid/formatters/columnDateFormatter/index.d.ts +0 -1
  13. package/components/DataGrid/formatters/columnNestedValueFormatter/index.d.ts +0 -1
  14. package/components/DataGrid/formatters/columnPointsFormatter/index.d.ts +0 -1
  15. package/components/DataGrid/formatters/columnPriceFormatter/index.d.ts +0 -1
  16. package/components/DataGrid/formatters/columnUncertaintyFormatter/index.d.ts +0 -1
  17. package/components/DataGrid/{index.f48b3a35.js → index.6406b096.js} +31 -32
  18. package/components/DataGrid/index.d.ts +0 -1
  19. package/components/DataGrid/subcomponents/Actions/index.d.ts +0 -1
  20. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.d.ts +0 -1
  21. package/components/DataGrid/subcomponents/Actions/subcomponents/Filter/index.d.ts +0 -1
  22. package/components/DataGrid/subcomponents/Actions/subcomponents/RowsCount/index.d.ts +0 -1
  23. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/index.d.ts +0 -1
  24. package/components/DataGrid/subcomponents/Actions/subcomponents/Settings/subcomponents/ColumnsConfig/subcomponents/FormatterColumn/index.d.ts +0 -1
  25. package/components/DataGrid/subcomponents/Table/index.d.ts +0 -1
  26. package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.d.ts +0 -1
  27. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.d.ts +0 -1
  28. package/components/DraggableWindow/index.d.ts +0 -1
  29. package/components/DynamicFilter/DynamicFilter.d.ts +0 -1
  30. package/components/DynamicFilter/index.d.ts +1 -1
  31. package/components/DynamicFilter/{index.79a81786.js → index.f21f52fe.js} +66 -38
  32. package/components/DynamicFilter/subcomponents/ApplyedFilters/index.d.ts +0 -1
  33. package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/index.d.ts +0 -1
  34. package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +0 -1
  35. package/components/DynamicFilter/subcomponents/FilterButton/index.d.ts +0 -1
  36. package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +0 -1
  37. package/components/DynamicFilter/subcomponents/InputFilter/index.d.ts +0 -1
  38. package/components/DynamicFilter/subcomponents/PopoverFilter/index.d.ts +0 -1
  39. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index.d.ts +0 -1
  40. package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/index.d.ts +0 -1
  41. package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/index.d.ts +0 -1
  42. package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/index.d.ts +0 -1
  43. package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/index.d.ts +0 -1
  44. package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +0 -1
  45. package/components/ErrorLabel/{index.28e80b6b.js → index.908fb555.js} +3 -3
  46. package/components/ErrorLabel/index.d.ts +0 -1
  47. package/components/HelmetPage/index.d.ts +0 -1
  48. package/components/Icon/Icon.d.ts +0 -1
  49. package/components/Image/Image.d.ts +0 -1
  50. package/components/Image/subcomponents/LazyLoadComponent/index.d.ts +0 -1
  51. package/components/Image/subcomponents/Skeleton/index.d.ts +0 -1
  52. package/components/LanguagePopover/LanguagePopover.d.ts +0 -1
  53. package/components/LanguagePopover/{index.9ec5f3cf.js → index.14d4d878.js} +3 -3
  54. package/components/ModalDialog/{index.cb56dfde.js → index.117fc0b2.js} +2 -2
  55. package/components/NoItemSelected/index.d.ts +0 -1
  56. package/components/ObjectLogs/components/DetailDialog/index.d.ts +0 -1
  57. package/components/ObjectLogs/components/DetailFormatter/index.d.ts +0 -1
  58. package/components/ObjectLogs/{index.dfad2c45.js → index.a8b29035.js} +12 -12
  59. package/components/ObjectLogs/index.d.ts +0 -1
  60. package/components/PaperForm/components/Header.d.ts +0 -1
  61. package/components/PaperForm/index.d.ts +0 -1
  62. package/components/Period/index.d.ts +0 -1
  63. package/components/Period/{index.6df58bfb.js → index.d262f353.js} +10 -10
  64. package/components/PropertyValue/index.d.ts +0 -1
  65. package/components/PropertyValue/skeleton.d.ts +0 -1
  66. package/components/ResizeableWindow/index.d.ts +0 -1
  67. package/components/SplitLayout/{index.fde8c830.js → index.5a8355d8.js} +1 -1
  68. package/components/SplitLayout/index.d.ts +0 -1
  69. package/components/WrapperComponent/index.d.ts +0 -1
  70. package/components/animate/LoadingScreen/index.d.ts +0 -1
  71. package/components/animate/MotionContainer/index.d.ts +0 -1
  72. package/components/animate/PropagateLoader/index.d.ts +0 -1
  73. package/components/areas/components/Area/index.d.ts +0 -1
  74. package/components/areas/components/Area/subcomponents/InnerForHooks/index.d.ts +0 -1
  75. package/components/areas/components/AreasAdmin/{index.e41c11ed.js → index.97a4203b.js} +4 -4
  76. package/components/areas/components/AreasAdmin/index.d.ts +0 -1
  77. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +0 -1
  78. package/components/areas/components/AreasContainer/index.d.ts +0 -1
  79. package/components/areas/components/AreasContainer/{index.6203dd11.js → index.f9e22f14.js} +2 -2
  80. package/components/areas/components/GridLayout/{index.10411e45.js → index.8381ec66.js} +4 -4
  81. package/components/areas/components/GridLayout/index.d.ts +0 -1
  82. package/components/areas/components/Window/{index.5340dc34.js → index.0a18cc28.js} +26 -26
  83. package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/Header/index.d.ts +0 -1
  84. package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/Header/skeleton.d.ts +0 -1
  85. package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/index.d.ts +0 -1
  86. package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/index.d.ts +0 -1
  87. package/components/areas/components/Window/subcomponents/InnerForHooks/subcomponents/MicroFrontend/subcomponents/MFLoader/subcomponents/LoadingMF/subcomponents/NotFound/index.d.ts +0 -1
  88. package/components/areas/components/WindowPopUp/{index.ffce7559.js → index.f98b8799.js} +27 -27
  89. package/components/areas/components/WindowsPanel/index.d.ts +0 -1
  90. package/components/areas/components/{index.37640080.js → index.6b36068b.js} +7 -7
  91. package/components/areas/contexts/AreaContext/{index.4aaf7f1c.js → index.5f0f4b38.js} +1 -1
  92. package/components/areas/contexts/AreasContext/{index.49bfec93.js → index.6d2c0374.js} +1 -1
  93. package/components/areas/contexts/{index.4bcf9b23.js → index.b67b8c4d.js} +1 -1
  94. package/components/areas/hooks/{index.88da7db3.js → index.63b52d03.js} +1 -1
  95. package/components/areas/hooks/useArea/{index.2aca2167.js → index.7241cfef.js} +2 -2
  96. package/components/areas/{index.b1ac8078.js → index.287d600f.js} +5 -5
  97. package/components/formatters/BooleanFormatter/index.d.ts +0 -1
  98. package/components/formatters/ConcatenatedFormatter/index.d.ts +0 -1
  99. package/components/formatters/DateFormatter/index.d.ts +0 -1
  100. package/components/formatters/PeriodFormatter/index.d.ts +0 -1
  101. package/components/formatters/PointsFormatter/index.d.ts +0 -1
  102. package/components/formatters/PriceFormatter/index.d.ts +0 -1
  103. package/components/formatters/UncertaintyFormatter/index.d.ts +0 -1
  104. package/components/hook-form/RHFAutocomplete/{index.94b5c77f.js → index.7a46159a.js} +1 -1
  105. package/components/hook-form/RHFAutocomplete/index.d.ts +0 -1
  106. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/index.d.ts +0 -1
  107. package/components/hook-form/RHFAutocompleteAsync/{index.7d441cf9.js → index.29f251bb.js} +1 -1
  108. package/components/hook-form/RHFAutocompleteAsync/index.d.ts +0 -1
  109. package/components/hook-form/RHFCheckbox/RHFCheckbox.d.ts +0 -1
  110. package/components/hook-form/RHFCheckbox/{index.2e8950b3.js → index.da7bc824.js} +1 -1
  111. package/components/hook-form/RHFCheckbox/subcomponents/Skeleton/index.d.ts +0 -1
  112. package/components/hook-form/RHFDateTime/index.d.ts +0 -1
  113. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.d.ts +0 -1
  114. package/components/hook-form/RHFMultiCheckbox/index.d.ts +0 -1
  115. package/components/hook-form/RHFPeriod/index.d.ts +0 -1
  116. package/components/hook-form/RHFPeriod/{index.12797c0d.js → index.e55c55a8.js} +2 -2
  117. package/components/hook-form/RHFRadioGroup.d.ts +0 -1
  118. package/components/hook-form/RHFSelect.d.ts +0 -1
  119. package/components/hook-form/RHFTextField/{index.6d4a97ae.js → index.f5d29656.js} +1 -1
  120. package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.d.ts +0 -1
  121. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +0 -1
  122. package/components/hook-form/RHFUpload/RHFUploadImage/index.d.ts +0 -1
  123. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +0 -1
  124. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +0 -1
  125. package/components/modal/ModalDialog/index.d.ts +0 -1
  126. package/components/modal/WindowBase/index.d.ts +0 -1
  127. package/components/modal/WindowBase/subcomponents/Header/index.d.ts +0 -1
  128. package/components/modal/{WindowBase.f50de8df.js → WindowBase.a7b686f4.js} +1 -1
  129. package/components/modal/WindowConfirm/index.d.ts +0 -1
  130. package/components/modal/WindowConfirm/subcomponents/MessageIlustration/index.d.ts +0 -1
  131. package/components/modal/{WindowConfirm.207b505f.js → WindowConfirm.03749198.js} +10 -10
  132. package/components/modal/{index.d29934ad.js → index.bbeec3c6.js} +10 -10
  133. package/components/mui_extended/Accordion/components/AccordionLabel.d.ts +0 -1
  134. package/components/mui_extended/Accordion/{index.549938bd.js → index.002bad72.js} +1 -1
  135. package/components/mui_extended/Accordion/index.d.ts +0 -1
  136. package/components/mui_extended/Avatar/subcomponents/SkeletonAvatar/index.d.ts +0 -1
  137. package/components/mui_extended/BoxIcon/index.d.ts +0 -1
  138. package/components/mui_extended/Breadcrumbs/components/LinkItem/index.d.ts +0 -1
  139. package/components/mui_extended/Breadcrumbs/index.d.ts +0 -1
  140. package/components/mui_extended/Button/Button.d.ts +0 -1
  141. package/components/mui_extended/CircularProgress/index.d.ts +0 -1
  142. package/components/mui_extended/IconButton/IconButton.d.ts +0 -1
  143. package/components/mui_extended/IconButton/subcomponents/SkeletonIconButton/index.d.ts +0 -1
  144. package/components/mui_extended/ImageButton/ImageButton.d.ts +0 -1
  145. package/components/mui_extended/LinearProgress/index.d.ts +0 -1
  146. package/components/mui_extended/LinkWithRoute/index.d.ts +0 -1
  147. package/components/mui_extended/LoadingButton/index.d.ts +0 -1
  148. package/components/mui_extended/LoadingButton/subcomponents/Skeleton/index.d.ts +0 -1
  149. package/components/mui_extended/MenuActions/{index.01e3ccfe.js → index.1affe51a.js} +1 -1
  150. package/components/mui_extended/MenuActions/index.d.ts +0 -1
  151. package/components/mui_extended/MenuActions/types.d.ts +0 -1
  152. package/components/mui_extended/Pager/components/PagerActions/index.d.ts +0 -1
  153. package/components/mui_extended/Pager/index.d.ts +0 -1
  154. package/components/mui_extended/Popover/Popover.d.ts +0 -1
  155. package/components/mui_extended/Popover/{index.708c0af6.js → index.8ed52492.js} +1 -1
  156. package/components/mui_extended/Tab/index.d.ts +0 -1
  157. package/components/mui_extended/Typography/index.d.ts +0 -1
  158. package/components/mui_extended/Typography/subcomponents/index.d.ts +0 -1
  159. package/components/mui_extended/{index.44306d3a.js → index.5095705d.js} +3 -3
  160. package/contexts/ModalContext/{index.9ab63c4e.js → index.64f9722d.js} +1 -1
  161. package/contexts/RHFormContext/index.d.ts +0 -1
  162. package/hooks/useModal/{index.2e777bd1.js → index.16cbca11.js} +1 -1
  163. package/index.js +36 -37
  164. package/package.json +1 -1
  165. 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.3a64d9e7.js";
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$2, Skeleton, MenuItem } from "@mui/material";
11
- import { L as LabelMemuItem } from "../mui_extended/MenuActions/index.01e3ccfe.js";
12
- import { P as Popover } from "../mui_extended/Popover/index.708c0af6.js";
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.e0ac69b4.js";
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.f6b477c0.js";
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.9ab63c4e.js";
21
+ import "../../contexts/ModalContext/index.64f9722d.js";
22
22
  import "../../react-draggable.6471b07e.js";
23
- import "../ModalDialog/index.cb56dfde.js";
23
+ import "../ModalDialog/index.117fc0b2.js";
24
24
  import "../Resizeable/index.04fa8de5.js";
25
- import "../modal/WindowConfirm.207b505f.js";
26
- import "../modal/WindowBase.f50de8df.js";
27
- import "../areas/components/index.37640080.js";
28
- import "../areas/components/AreasAdmin/index.e41c11ed.js";
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.49bfec93.js";
31
- import "../areas/components/AreasContainer/index.6203dd11.js";
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.4bcf9b23.js";
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.549938bd.js";
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.94b5c77f.js";
48
+ import { R as RHFAutocomplete } from "../hook-form/RHFAutocomplete/index.7a46159a.js";
49
49
  import "lodash/debounce";
50
- import "../hook-form/RHFCheckbox/index.2e8950b3.js";
50
+ import "../hook-form/RHFCheckbox/index.da7bc824.js";
51
51
  import { styled, alpha as alpha$1 } from "@mui/material/styles";
52
- import "../ErrorLabel/index.28e80b6b.js";
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.6d4a97ae.js";
56
- import "../hook-form/RHFPeriod/index.12797c0d.js";
57
- import "../Period/index.6df58bfb.js";
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 updateAvailableFieldsNoBoilerPlate = (state) => {
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
- updateAvailableFieldsNoBoilerPlate(state);
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
- updateAvailableFieldsNoBoilerPlate(state);
1004
+ updateAvailableFields(state);
979
1005
  });
980
1006
  },
981
1007
  fireOnChangeFilters: () => {
982
1008
  set((state) => {
983
1009
  if (state.ownerState.isValid) {
984
- if (!state.automatic) {
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$1("div")(({
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$1("div")(({
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$1("span")(({
1227
+ const ContainerField = styled("span")(({
1201
1228
  theme
1202
1229
  }) => ({
1203
1230
  ...theme.typography.subtitle2
1204
1231
  }));
1205
- const ContainerOperator = styled$1("span")(({
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$1("span")(({
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$2("div")(({
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$2("div")(({
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);
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function ApplyedFilters(): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { FilterFieldApplyed } from '../../../../types';
3
2
  export declare function ApplyedFilter(props: FilterFieldApplyed): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const ClearFilters: () => JSX.Element | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description Boton para aplicar los filtros
4
3
  * Si es invalido, debe tener un borde que lo indique, y el tooltip debe ser de tooltip de error
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description InnerForHooks es una estrategia de mover el componente a nivel interno para poder acceder a los hooks que acceden al contexto DynamicFilterProvider
4
3
  * @returns Componente DynamicFilter
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description Subcomponente encargado de cargar los campos que pueden ser filtrados
4
3
  * Si el componente permite filtrar por todos los campos, al digita algun texto y luego se presiona anter, se aplica un filtro ALL_FIELD
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description
4
3
  * Subcomponente encargado de permitir agregar o modificar un filtro.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PopoverMenuFieldsProps } from './types';
3
2
  /**
4
3
  * @description Subcomponente encargado de mostrar los campos disponibles don el esuario selecciona uno en especifico
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description Subcomponente encargado de los filtros con el tipo de dato "boolean"
4
3
  * @returns
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description Subcomponente encargado de los filtros con el tipo de dato "datetime"
4
3
  * @returns JSX
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description Subcomponente encargado de los filtros con el tipo de dato "number"
4
3
  * @returns JSX
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @description Subcomponente encargado de los filtros con el tipo de dato "string"
4
3
  * @returns JSX
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { GetLabelType } from '@m4l/core';
3
2
  import { Formatters } from '@m4l/graphics';
4
3
  import type { FilterFieldApplyed, Field, DataTypeFilerLabels, FilterValue, FormFilterValue, FormFilterFieldApplyed } from '../../types';
@@ -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.549938bd.js";
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.708c0af6.js";
16
- import "../mui_extended/MenuActions/index.01e3ccfe.js";
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";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ErrorLabelProps } from './types';
3
2
  import { ErrorLabelClassesType } from './utils/Clases/types';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { HelmetPageProps } from './types';
3
2
  export declare const HelmetPage: {
4
3
  (props: HelmetPageProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconProps } from './types';
3
2
  /**
4
3
  * Provee de un medio por el cual se carga un icono svg en la plataforma web, aporta su versión provisional de carga en red.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ImageProps } from './types';
3
2
  /**
4
3
  * Provee de un medio por el cual se carga una imagen tipo mapa de bits, en la plataforma web, aporta su versión provisional de carga en red
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LazyLoadComponentProps } from '../../types';
3
2
  /**
4
3
  * Sub-componente encargado de validar y condicionar la funcionalidad del intersection observer.
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SkeletonProps } from './types';
3
2
  export declare const Skeleton: (props: SkeletonProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LanguagePopoverProps } from './types';
3
2
  /**
4
3
  * Provee un componente que le permite al usuario cambiar la configuración del idioma en la plataforma.
@@ -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.549938bd.js";
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.708c0af6.js";
18
- import "../mui_extended/MenuActions/index.01e3ccfe.js";
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.2e777bd1.js";
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.e0ac69b4.js";
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,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function NoItemSelected(): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { DetailDialogProps } from './types';
3
2
  export declare function DetailDialog(props: DetailDialogProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { DetailFormatterProps } from './types';
3
2
  export declare function DetailFormatter(props: DetailFormatterProps): JSX.Element;
@@ -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.f48b3a35.js";
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.2e777bd1.js";
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.cb56dfde.js";
13
+ import "../ModalDialog/index.117fc0b2.js";
14
14
  import "../Resizeable/index.04fa8de5.js";
15
- import "../CommonActions/components/Actions/index.e0ac69b4.js";
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.37640080.js";
20
- import "../areas/components/AreasAdmin/index.e41c11ed.js";
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.49bfec93.js";
23
+ import "../areas/contexts/AreasContext/index.6d2c0374.js";
24
24
  import "zustand/shallow";
25
- import "../areas/components/AreasContainer/index.6203dd11.js";
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.4bcf9b23.js";
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.207b505f.js";
32
- import { W as WindowBase } from "../modal/WindowBase.f50de8df.js";
33
- import { D as DynamicFilter, g as getDynamicFilterComponentsDictionary } from "../DynamicFilter/index.79a81786.js";
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%",
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { LogsProps } from './types';
3
2
  export declare function ObjectLogs(props: LogsProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { HeaderProps } from '../types';
3
2
  export declare const Header: (props: HeaderProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { PaperFormProps } from './types';
3
2
  export declare function PaperForm(props: PaperFormProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { PeriodProps } from './types';
3
2
  export declare const Period: (props: PeriodProps) => JSX.Element;
@@ -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.e0ac69b4.js";
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.9ab63c4e.js";
10
+ import "../../contexts/ModalContext/index.64f9722d.js";
11
11
  import "../../react-draggable.6471b07e.js";
12
- import "../ModalDialog/index.cb56dfde.js";
12
+ import "../ModalDialog/index.117fc0b2.js";
13
13
  import "../Resizeable/index.04fa8de5.js";
14
14
  import "@m4l/graphics";
15
- import "../modal/WindowConfirm.207b505f.js";
15
+ import "../modal/WindowConfirm.03749198.js";
16
16
  import "@mui/material/styles";
17
- import "../modal/WindowBase.f50de8df.js";
18
- import "../areas/components/index.37640080.js";
19
- import "../areas/components/AreasAdmin/index.e41c11ed.js";
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.49bfec93.js";
22
+ import "../areas/contexts/AreasContext/index.6d2c0374.js";
23
23
  import "zustand/shallow";
24
- import "../areas/components/AreasContainer/index.6203dd11.js";
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.4bcf9b23.js";
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")(({
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import type { PropertyValueProps } from './types';
3
2
  export declare function PropertyValue(props: PropertyValueProps): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare function SKTProperty(): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ResizeableProps } from './types';
3
2
  export declare function ResizeableWindow(props: ResizeableProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { S as SplitterLayout } from "../../react-splitter-layout.8b1655c8.js";
2
- import { styled } from "@m4l/styles";
2
+ import { styled } from "@mui/material/styles";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  const WrapperSplit = styled("div")(({
5
5
  theme
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SplitLayoutProps } from './types';
3
2
  export declare function SplitLayout(props: SplitLayoutProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { WrapperComponentProps } from './types';
3
2
  export declare function WrapperComponent(props: WrapperComponentProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LoadingScreenProps } from './types';
3
2
  export declare function LoadingScreen(props: LoadingScreenProps): JSX.Element;
4
3
  export default LoadingScreen;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MotionProps } from 'framer-motion';
3
2
  import { BoxProps } from '@mui/material';
4
3
  declare type IProps = BoxProps & MotionProps;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const PropagateLoader: () => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AreaProps } from './types';
3
2
  export declare const Area: {
4
3
  (props: AreaProps): JSX.Element;
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const InnerForHooks: () => JSX.Element;