@m4l/components 0.1.52 → 0.1.53

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 (101) hide show
  1. package/components/CommonActions/components/ActionFormCancel/{index.bd0d16d6.js → index.8dedf1d5.js} +15 -15
  2. package/components/CommonActions/components/ActionIntro/{index.d567aebb.js → index.5d5294f2.js} +5 -0
  3. package/components/CommonActions/components/ActionIntro/test/contants.d.ts +1 -0
  4. package/components/CommonActions/components/Actions/{index.f0a3167b.js → index.93c9823a.js} +14 -14
  5. package/components/DataGrid/{index.85390177.js → index.1a6508e2.js} +20 -20
  6. package/components/DynamicFilter/DynamicFilter.d.ts +9 -0
  7. package/components/DynamicFilter/classes/index.d.ts +5 -0
  8. package/components/DynamicFilter/classes/types.d.ts +22 -0
  9. package/components/DynamicFilter/constants.d.ts +14 -0
  10. package/components/DynamicFilter/contexts/DynamicFilterContext/helpers.d.ts +24 -0
  11. package/components/DynamicFilter/contexts/DynamicFilterContext/index.d.ts +18 -0
  12. package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +213 -0
  13. package/components/DynamicFilter/contexts/DynamicFilterContext/types.d.ts +5 -0
  14. package/components/DynamicFilter/dictionary.d.ts +21 -0
  15. package/components/DynamicFilter/hooks/useDynamicFilter.d.ts +2 -0
  16. package/components/DynamicFilter/index.2189989e.js +1808 -0
  17. package/components/DynamicFilter/index.d.ts +4 -6
  18. package/components/DynamicFilter/subcomponents/ApplyedFilters/subcomponents/ApplyedFilter/index.d.ts +3 -0
  19. package/components/DynamicFilter/subcomponents/ClearFilters/index.d.ts +1 -1
  20. package/components/DynamicFilter/subcomponents/FilterButton/index.d.ts +10 -0
  21. package/components/DynamicFilter/subcomponents/InnerForHooks/index.d.ts +6 -0
  22. package/components/DynamicFilter/subcomponents/InputFilter/index.d.ts +7 -1
  23. package/components/DynamicFilter/subcomponents/PopoverFilter/index.d.ts +15 -0
  24. package/components/DynamicFilter/subcomponents/PopoverMenuFields/index.d.ts +12 -0
  25. package/components/DynamicFilter/subcomponents/PopoverMenuFields/types.d.ts +6 -0
  26. package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/helpers.d.ts +39 -0
  27. package/components/DynamicFilter/subcomponents/fieldstypes/BooleanFilter/index.d.ts +4 -2
  28. package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/helpers.d.ts +42 -0
  29. package/components/DynamicFilter/subcomponents/fieldstypes/DateTimeFilter/index.d.ts +4 -3
  30. package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/helpers.d.ts +36 -0
  31. package/components/DynamicFilter/subcomponents/fieldstypes/NumberFilter/index.d.ts +4 -2
  32. package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/helpers.d.ts +39 -0
  33. package/components/DynamicFilter/subcomponents/fieldstypes/StringFilter/index.d.ts +4 -2
  34. package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +72 -4
  35. package/components/DynamicFilter/subcomponents/fieldstypes/validations.d.ts +25 -6
  36. package/components/DynamicFilter/tests/contants.d.ts +6 -0
  37. package/components/DynamicFilter/tests/types.d.ts +2 -0
  38. package/components/DynamicFilter/tests/utils.d.ts +2 -0
  39. package/components/DynamicFilter/types.d.ts +173 -42
  40. package/components/ErrorLabel/{index.78553a1e.js → index.12994bff.js} +5 -5
  41. package/components/Icon/{index.f6e8d810.js → index.b29ff2d9.js} +1 -1
  42. package/components/LanguagePopover/{index.5047b444.js → index.628fe97f.js} +5 -5
  43. package/components/ModalDialog/{index.5a307e29.js → index.49c40899.js} +5 -5
  44. package/components/ObjectLogs/{index.1315af37.js → index.d7c0092a.js} +23 -23
  45. package/components/PaperForm/{index.0114aa9b.js → index.c04000a9.js} +1 -1
  46. package/components/Period/{index.85fe764a.js → index.4f6e419d.js} +15 -15
  47. package/components/Resizeable/{index.8a442a8b.js → index.04fa8de5.js} +1 -1
  48. package/components/ScrollBar/{index.39eeb2de.js → index.35ebe9a1.js} +8 -3
  49. package/components/areas/components/AreasAdmin/{index.dbab59f1.js → index.25e50e70.js} +6 -6
  50. package/components/areas/components/AreasContainer/{index.f3f921b9.js → index.432b9d4c.js} +3 -3
  51. package/components/areas/components/GridLayout/{index.9953146d.js → index.359e777e.js} +5 -5
  52. package/components/areas/components/Window/{index.e34225ae.js → index.2b9f12fe.js} +35 -36
  53. package/components/areas/components/WindowPopUp/{index.90eb0348.js → index.d5fa0d74.js} +36 -37
  54. package/components/areas/components/{index.6d863764.js → index.912056a0.js} +10 -10
  55. package/components/areas/contexts/AreaContext/{index.f25f7180.js → index.b1439daf.js} +1 -1
  56. package/components/areas/contexts/AreasContext/{index.7406c20f.js → index.fb21af84.js} +1 -1
  57. package/components/areas/contexts/{index.e80d8f0f.js → index.1e46147e.js} +1 -1
  58. package/components/areas/hooks/{index.0fd57f88.js → index.5feefc73.js} +1 -1
  59. package/components/areas/hooks/useArea/{index.7bdbbb79.js → index.6f45f930.js} +2 -2
  60. package/components/areas/index.3df8c6d4.js +21 -0
  61. package/components/formatters/BooleanFormatter/{index.b3fb8a75.js → index.a50933fb.js} +1 -1
  62. package/components/formatters/{index.90a19f9f.js → index.7d2ad9ca.js} +2 -1
  63. package/components/hook-form/RHFAutocomplete/{index.74add0d0.js → index.0ffa2185.js} +69 -59
  64. package/components/hook-form/RHFAutocomplete/test/contants.d.ts +1 -0
  65. package/components/hook-form/RHFAutocompleteAsync/{index.0aa3c224.js → index.2dfbe7aa.js} +1 -1
  66. package/components/hook-form/RHFCheckbox/{index.ca94a050.js → index.1fcf42c8.js} +1 -1
  67. package/components/hook-form/RHFDateTime/{index.7f1cbd85.js → index.6c129ce4.js} +14 -25
  68. package/components/hook-form/RHFPeriod/{index.5d2a2071.js → index.1f6aa4c6.js} +2 -2
  69. package/components/hook-form/RHFTextField/classes/index.d.ts +0 -1
  70. package/components/hook-form/RHFTextField/{index.bef7eced.js → index.a021a2b3.js} +21 -11
  71. package/components/hook-form/RHFTextField/tests/contants.d.ts +2 -0
  72. package/components/index.d.ts +1 -3
  73. package/components/modal/{WindowBase.b5e29758.js → WindowBase.66ef3c9a.js} +3 -3
  74. package/components/modal/{WindowConfirm.cbc7720c.js → WindowConfirm.b31ed329.js} +16 -16
  75. package/components/modal/index.6d5b19ef.js +29 -0
  76. package/components/mui_extended/Accordion/{index.1d513477.js → index.002bad72.js} +2 -2
  77. package/components/mui_extended/IconButton/{index.1318a283.js → index.460c0476.js} +1 -1
  78. package/components/mui_extended/MenuActions/{index.1261168c.js → index.aaafafc3.js} +1 -1
  79. package/components/mui_extended/Pager/{index.984aac44.js → index.458f9f0d.js} +1 -1
  80. package/components/mui_extended/{index.cb9d48d2.js → index.915e84dc.js} +5 -5
  81. package/contexts/ModalContext/{index.3d92d9f9.js → index.d1aaddbc.js} +1 -1
  82. package/contexts/RHFormContext/{index.828b60ad.js → index.3dc6e2f5.js} +1 -0
  83. package/hooks/useModal/{index.4454145e.js → index.f77ab08b.js} +1 -1
  84. package/index.js +196 -225
  85. package/package.json +2 -2
  86. package/{react-draggable.0eef011c.js → react-draggable.6471b07e.js} +1 -1
  87. package/{react-resizable.bb58c8fc.js → react-resizable.b620abed.js} +2 -2
  88. package/test/constants_no_mock.d.ts +1 -0
  89. package/utils/{index.e882b264.js → index.b6ae791a.js} +12 -3
  90. package/utils/index.d.ts +2 -0
  91. package/vendor.d5904857.js +145 -0
  92. package/components/DynamicFilter/contexts/BaseContext/index.d.ts +0 -5
  93. package/components/DynamicFilter/contexts/BaseContext/types.d.ts +0 -45
  94. package/components/DynamicFilter/hooks/useFilter.d.ts +0 -1
  95. package/components/DynamicFilter/index.cddd7472.js +0 -1756
  96. package/components/DynamicFilter/subcomponents/ApplyedFilters/components/ApplyedFilter/index.d.ts +0 -3
  97. package/components/DynamicFilter/subcomponents/PopupEditFilter/index.d.ts +0 -2
  98. package/components/DynamicFilter/utils/Clases/index.d.ts +0 -20
  99. package/components/DynamicFilter/utils/Clases/types.d.ts +0 -17
  100. package/components/areas/index.6f09d168.js +0 -21
  101. package/components/modal/index.f6de895f.js +0 -29
package/index.js CHANGED
@@ -1,286 +1,257 @@
1
- import { I, a } from "./components/Icon/index.f6e8d810.js";
2
- import "framer-motion";
3
- import "@mui/material";
4
- import { jsx } from "react/jsx-runtime";
5
- import "@mui/material/styles";
6
- import "react-router-dom";
7
- import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
8
- import { P } from "./components/animate/PropagateLoader/index.be5b02c3.js";
9
- import { a as a2, D, M } from "./components/areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
10
- import { M as M2, a as a3 } from "./contexts/ModalContext/index.3d92d9f9.js";
11
- import { useState } from "react";
12
- import "react-hook-form";
13
- import "@hookform/resolvers/yup";
14
- import { R } from "./contexts/RHFormContext/index.828b60ad.js";
15
- import "@m4l/core";
16
- import { R as R2, g } from "./components/hook-form/RHFAutocomplete/index.74add0d0.js";
17
- import { I as I2 } from "./components/Image/index.aa24e982.js";
18
- import "lodash/debounce";
19
- import { R as R3 } from "./components/hook-form/RHFCheckbox/index.ca94a050.js";
20
- import { I as I3 } from "./components/mui_extended/IconButton/index.1318a283.js";
21
- import { A } from "./components/mui_extended/Accordion/index.1d513477.js";
22
- import { A as A2 } from "./components/mui_extended/Avatar/index.fe06afd7.js";
23
- import "@mui/material/Button";
24
- import { B, I as I4, L as L2, i } from "./components/mui_extended/Button/index.8406ed5b.js";
25
- import "@mui/lab";
26
- import { P as P2 } from "./components/mui_extended/Popover/index.58c49cc0.js";
27
- import { M as M3 } from "./components/mui_extended/MenuActions/index.1261168c.js";
28
- import { P as P3, g as g2 } from "./components/mui_extended/Pager/index.984aac44.js";
29
- import { T } from "./components/mui_extended/Tab/index.e0653a0a.js";
30
- import { T as T2, t } from "./components/mui_extended/Typography/index.be3a279a.js";
31
- import { E, e } from "./components/ErrorLabel/index.78553a1e.js";
32
- import "@mui/x-date-pickers";
33
- import { R as R4 } from "./components/hook-form/RHFDateTime/index.7f1cbd85.js";
34
- import "@m4l/graphics";
35
- import { R as R5, a as a4 } from "./components/hook-form/RHFTextField/index.bef7eced.js";
36
- import { R as R6 } from "./components/hook-form/RHFPeriod/index.5d2a2071.js";
37
- import { P as P4, g as g3 } from "./components/Period/index.85fe764a.js";
38
- import { A as A3, d, g as g4 } from "./components/CommonActions/components/Actions/index.f0a3167b.js";
39
- import { c as cjs } from "./react-draggable.0eef011c.js";
40
- import { M as M4, d as d2, g as g5 } from "./components/ModalDialog/index.5a307e29.js";
41
- import { R as R7 } from "./components/Resizeable/index.8a442a8b.js";
42
- import { W } from "./components/modal/WindowConfirm.cbc7720c.js";
43
- import { W as W2 } from "./components/modal/WindowBase.b5e29758.js";
44
- import { A as A4 } from "./components/areas/components/index.6d863764.js";
45
- import { A as A5 } from "./components/areas/components/AreasAdmin/index.dbab59f1.js";
46
- import "zustand";
47
- import { A as A6, a as a5 } from "./components/areas/contexts/AreasContext/index.7406c20f.js";
48
- import "zustand/shallow";
49
- import { A as A7 } from "./components/areas/components/AreasContainer/index.f3f921b9.js";
50
- import "react-grid-layout/css/styles.css";
51
- import "./react-resizable.bb58c8fc.js";
52
- import { c, W as W3 } from "./components/areas/contexts/index.e80d8f0f.js";
53
- import "lodash/isString";
54
- import "react-dropzone";
55
- import { R as R8 } from "./components/hook-form/RHFUpload/index.7fdff30f.js";
56
- import { D as D2, N, T as T3, c as c2, d as d3, b, a as a6, g as g6 } from "./components/DataGrid/index.85390177.js";
57
- import "react-dnd";
58
- import "react-dnd-html5-backend";
59
- import { S } from "./components/ScrollBar/index.39eeb2de.js";
60
- import { D as D3, a as a7, d as d4, g as g7 } from "./components/DynamicFilter/index.cddd7472.js";
61
- import "clsx";
62
- import "simplebar/dist/simplebar.min.css";
63
- import "yup";
64
- import { L as L3 } from "./components/LanguagePopover/index.5047b444.js";
65
- import { N as N2, d as d5, g as g8 } from "./components/NoItemSelected/index.9636ec8a.js";
66
- import { O, d as d6, g as g9 } from "./components/ObjectLogs/index.1315af37.js";
67
- import "./react-json-view.57125fcf.js";
68
- import { P as P5 } from "./components/PaperForm/index.0114aa9b.js";
69
- import { H } from "./components/Page/index.4237c241.js";
70
- import { P as P6 } from "./components/PropertyValue/index.dfcfe1ba.js";
71
- import "./react-splitter-layout.8b1655c8.js";
72
- import { S as S2 } from "./components/SplitLayout/index.5a8355d8.js";
73
1
  import { v } from "./components/animate/variants/fade.b561c0fc.js";
74
2
  import { v as v2 } from "./components/animate/variants/bounce.784aaaaa.js";
75
3
  import { v as v3 } from "./components/animate/variants/container.11f82b76.js";
76
- import { v as v4, a as a8, b as b2 } from "./components/animate/variants/transition.bd46b9ce.js";
77
- import { M as M5 } from "./components/animate/MotionContainer/index.8d9f9d80.js";
78
- import { M as M6 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
4
+ import { v as v4, a, b } from "./components/animate/variants/transition.bd46b9ce.js";
5
+ import { I, a as a2 } from "./components/Icon/index.b29ff2d9.js";
6
+ import { M } from "./components/animate/MotionContainer/index.8d9f9d80.js";
7
+ import { M as M2 } from "./components/animate/MotionLazyContainer/index.572dd012.js";
8
+ import { L } from "./components/animate/LoadingScreen/index.1d0c4307.js";
9
+ import { P } from "./components/animate/PropagateLoader/index.be5b02c3.js";
10
+ import { A } from "./components/areas/components/index.912056a0.js";
11
+ import { A as A2 } from "./components/areas/components/AreasAdmin/index.25e50e70.js";
12
+ import { A as A3 } from "./components/areas/components/AreasContainer/index.432b9d4c.js";
13
+ import { A as A4, a as a3 } from "./components/areas/contexts/AreasContext/index.fb21af84.js";
14
+ import { c, W } from "./components/areas/contexts/index.1e46147e.js";
79
15
  import { u } from "./components/areas/hooks/useDynamicMFParameters/index.041a666b.js";
80
- import { u as u2 } from "./components/areas/hooks/index.0fd57f88.js";
81
- import { R as R9, g as g10 } from "./components/hook-form/RHFAutocompleteAsync/index.0aa3c224.js";
82
- import { R as R10 } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
83
- import { R as R11 } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
84
- import { R as R12 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
85
- import { B as B2 } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
86
- import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
16
+ import { u as u2 } from "./components/areas/hooks/index.5feefc73.js";
17
+ import { R, g } from "./components/hook-form/RHFAutocomplete/index.0ffa2185.js";
18
+ import { R as R2, g as g2 } from "./components/hook-form/RHFAutocompleteAsync/index.2dfbe7aa.js";
19
+ import { R as R3 } from "./components/hook-form/RHFCheckbox/index.1fcf42c8.js";
20
+ import { R as R4 } from "./components/hook-form/RHFDateTime/index.6c129ce4.js";
21
+ import { R as R5 } from "./components/hook-form/RHFMultiCheckbox/index.2680b3b6.js";
22
+ import { R as R6 } from "./components/hook-form/RHFSelect/index.b6ca8bb2.js";
23
+ import { R as R7, a as a4 } from "./components/hook-form/RHFTextField/index.a021a2b3.js";
24
+ import { R as R8 } from "./components/hook-form/RHFRadioGroup/index.b3335e13.js";
25
+ import { R as R9 } from "./components/hook-form/RHFPeriod/index.1f6aa4c6.js";
26
+ import { P as P2, g as g3 } from "./components/Period/index.4f6e419d.js";
27
+ import { R as R10 } from "./components/hook-form/RHFUpload/index.7fdff30f.js";
28
+ import { A as A5 } from "./components/mui_extended/Accordion/index.002bad72.js";
29
+ import { A as A6 } from "./components/mui_extended/Avatar/index.fe06afd7.js";
30
+ import { B } from "./components/mui_extended/BoxIcon/index.e638ecc8.js";
31
+ import { B as B2 } from "./components/mui_extended/Breadcrumbs/index.5e37d903.js";
32
+ import { B as B3, I as I2, L as L2, i } from "./components/mui_extended/Button/index.8406ed5b.js";
87
33
  import { C } from "./components/mui_extended/CircularProgress/index.ad569afd.js";
88
- import { L as L4 } from "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
89
- import { L as L5 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
90
- import { B as B4 } from "./components/formatters/BooleanFormatter/index.b3fb8a75.js";
91
- import { D as D4, g as g11 } from "./components/formatters/DateFormatter/index.578a9f53.js";
92
- import { U, g as g12 } from "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
93
- import { P as P7, g as g13 } from "./components/formatters/PointsFormatter/index.80a4e414.js";
94
- import { C as C2, i as i2, h, f, e as e2, c as c3, L as L6, P as P8, d as d7, g as g14, a as a9, b as b3 } from "./components/formatters/index.90a19f9f.js";
95
- import { P as P9, g as g15 } from "./components/formatters/PriceFormatter/index.83cbe7be.js";
34
+ import { I as I3 } from "./components/mui_extended/IconButton/index.460c0476.js";
35
+ import { L as L3 } from "./components/mui_extended/LinearProgress/index.c92b9ba9.js";
36
+ import { L as L4 } from "./components/mui_extended/LinkWithRoute/index.16436ab8.js";
37
+ import { M as M3 } from "./components/mui_extended/MenuActions/index.aaafafc3.js";
38
+ import { P as P3 } from "./components/mui_extended/Popover/index.58c49cc0.js";
39
+ import { P as P4, g as g4 } from "./components/mui_extended/Pager/index.458f9f0d.js";
40
+ import { T } from "./components/mui_extended/Tab/index.e0653a0a.js";
41
+ import { T as T2, t } from "./components/mui_extended/Typography/index.be3a279a.js";
42
+ import { B as B4 } from "./components/formatters/BooleanFormatter/index.a50933fb.js";
43
+ import { D, g as g5 } from "./components/formatters/DateFormatter/index.578a9f53.js";
44
+ import { U, g as g6 } from "./components/formatters/UncertaintyFormatter/index.08e1b79f.js";
45
+ import { P as P5, g as g7 } from "./components/formatters/PointsFormatter/index.80a4e414.js";
46
+ import { C as C2, i as i2, h, f, e, c as c2, L as L5, P as P6, d, g as g8, a as a5, b as b2 } from "./components/formatters/index.7d2ad9ca.js";
47
+ import { P as P7, g as g9 } from "./components/formatters/PriceFormatter/index.83cbe7be.js";
48
+ import { D as D2, N, T as T3, c as c3, d as d2, b as b3, a as a6, g as g10 } from "./components/DataGrid/index.1a6508e2.js";
96
49
  import { c as c4 } from "./components/DataGrid/formatters/columnUncertaintyFormatter/index.cae2057a.js";
97
50
  import { c as c5 } from "./components/DataGrid/formatters/columnPointsFormatter/index.5e645334.js";
98
51
  import { c as c6 } from "./components/DataGrid/formatters/columnNestedValueFormatter/index.f68ef4e1.js";
99
52
  import { c as c7 } from "./components/DataGrid/formatters/columnPriceFormatter/index.e612fda3.js";
53
+ import { b as b4, a as a7, D as D3, L as L6, d as d3, g as g11, c as c8 } from "./components/DynamicFilter/index.2189989e.js";
54
+ import { E, e as e2 } from "./components/ErrorLabel/index.12994bff.js";
55
+ import { A as A7, d as d4, g as g12 } from "./components/CommonActions/components/Actions/index.93c9823a.js";
100
56
  import { A as A8 } from "./components/CommonActions/components/ActionCancel/index.a81752ef.js";
101
- import { A as A9 } from "./components/CommonActions/components/ActionIntro/index.d567aebb.js";
102
- import { A as A10 } from "./components/CommonActions/components/ActionFormCancel/index.bd0d16d6.js";
57
+ import { A as A9 } from "./components/CommonActions/components/ActionIntro/index.5d5294f2.js";
58
+ import { A as A10 } from "./components/CommonActions/components/ActionFormCancel/index.8dedf1d5.js";
103
59
  import { A as A11 } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
104
- import { L as L7 } from "./components/Loadable/index.117eaced.js";
105
- import { S as S3 } from "./components/ScrollToTop/index.e06f98f6.js";
60
+ import { D as D4 } from "./vendor.d5904857.js";
61
+ import { L as L7 } from "./components/LanguagePopover/index.628fe97f.js";
62
+ import { I as I4 } from "./components/Image/index.aa24e982.js";
63
+ import { L as L8 } from "./components/Loadable/index.117eaced.js";
64
+ import { M as M4, d as d5, g as g13 } from "./components/ModalDialog/index.49c40899.js";
65
+ import { W as W2 } from "./components/modal/WindowConfirm.b31ed329.js";
66
+ import { W as W3 } from "./components/modal/WindowBase.66ef3c9a.js";
67
+ import { N as N2, d as d6, g as g14 } from "./components/NoItemSelected/index.9636ec8a.js";
68
+ import { O, d as d7, g as g15 } from "./components/ObjectLogs/index.d7c0092a.js";
69
+ import { P as P8 } from "./components/PaperForm/index.c04000a9.js";
70
+ import { H } from "./components/Page/index.4237c241.js";
71
+ import { P as P9 } from "./components/PropertyValue/index.dfcfe1ba.js";
72
+ import { R as R11 } from "./components/Resizeable/index.04fa8de5.js";
73
+ import { S } from "./components/ScrollBar/index.35ebe9a1.js";
74
+ import { S as S2 } from "./components/ScrollToTop/index.e06f98f6.js";
75
+ import { S as S3 } from "./components/SplitLayout/index.5a8355d8.js";
76
+ import { a as a8, D as D5, M as M5 } from "./components/areas/contexts/DynamicMFParmsContext/index.c19cb8cc.js";
77
+ import { M as M6, a as a9 } from "./contexts/ModalContext/index.d1aaddbc.js";
78
+ import { R as R12 } from "./contexts/RHFormContext/index.3dc6e2f5.js";
106
79
  import { u as u3 } from "./hooks/useFormAddEdit/index.15de3ba8.js";
107
- import { u as u4 } from "./hooks/useModal/index.4454145e.js";
108
- import { L as L8 } from "./assets/Logo/index.228dcb5a.js";
109
- import "./utils/index.e882b264.js";
80
+ import { u as u4 } from "./hooks/useModal/index.f77ab08b.js";
81
+ import { L as L9 } from "./assets/Logo/index.228dcb5a.js";
82
+ import "framer-motion";
83
+ import "react";
84
+ import "@mui/material";
85
+ import "react/jsx-runtime";
86
+ import "@mui/material/styles";
87
+ import "./utils/index.b6ae791a.js";
110
88
  import "@mui/base";
111
89
  import "./node_modules.416f1da3.js";
112
- import "zustand/middleware";
90
+ import "./components/areas/contexts/AreaContext/index.b1439daf.js";
91
+ import "zustand/shallow";
92
+ import "@m4l/core";
93
+ import "zustand";
113
94
  import "zustand/middleware/immer";
114
- import "prop-types";
115
- import "react-dom";
116
- import "./components/areas/contexts/AreaContext/index.f25f7180.js";
95
+ import "zustand/middleware";
96
+ import "lodash/debounce";
117
97
  import "lodash.clonedeep";
118
- import "./components/areas/hooks/useArea/index.7bdbbb79.js";
119
- import "./components/areas/components/GridLayout/index.9953146d.js";
98
+ import "./components/areas/hooks/useArea/index.6f45f930.js";
99
+ import "@m4l/graphics";
100
+ import "./components/areas/components/GridLayout/index.359e777e.js";
120
101
  import "react-grid-layout";
121
- import "./components/areas/components/WindowPopUp/index.90eb0348.js";
122
- import "./index.js";
123
- import "./components/areas/components/Window/index.e34225ae.js";
124
- import "./components/areas/index.6f09d168.js";
125
- import "./react-data-grid.d46d625e.js";
126
- import "simplebar-react";
102
+ import "./components/areas/components/WindowPopUp/index.d5fa0d74.js";
103
+ import "react-router-dom";
104
+ import "react-grid-layout/css/styles.css";
105
+ import "./react-resizable.b620abed.js";
106
+ import "./react-draggable.6471b07e.js";
107
+ import "prop-types";
108
+ import "react-dom";
109
+ import "clsx";
110
+ import "react-hook-form";
111
+ import "@mui/material/Button";
112
+ import "@mui/lab";
113
+ import "@mui/x-date-pickers";
114
+ import "lodash/isString";
115
+ import "react-dropzone";
116
+ import "react-dnd";
117
+ import "react-dnd-html5-backend";
118
+ import "yup";
119
+ import "@hookform/resolvers/yup";
120
+ import "./react-json-view.57125fcf.js";
127
121
  import "./commonjs.565e6834.js";
128
- import "react-helmet-async";
122
+ import "./react-splitter-layout.8b1655c8.js";
123
+ import "./components/areas/components/Window/index.2b9f12fe.js";
124
+ import "./components/areas/index.3df8c6d4.js";
129
125
  import "./components/WrapperComponent/index.5e872594.js";
130
- const DraggableWindow = (props) => {
131
- const {
132
- children,
133
- handle = "m4l_draggable_handle",
134
- cancel = '[class*="MuiDialogContent-root"]',
135
- defaultPosition,
136
- ...others
137
- } = props;
138
- const [position, setPosition] = useState(defaultPosition || {
139
- x: 0,
140
- y: 0
141
- });
142
- const onDrag = (_e, data) => {
143
- const {
144
- x,
145
- y
146
- } = data;
147
- const xPos = x < 0 ? 0 : Math.round(x);
148
- const yPos = y < 0 ? 0 : Math.round(y);
149
- setPosition({
150
- x: xPos,
151
- y: yPos
152
- });
153
- };
154
- return /* @__PURE__ */ jsx(cjs.exports, {
155
- handle,
156
- cancel,
157
- position,
158
- onDrag,
159
- ...others,
160
- children
161
- });
162
- };
126
+ import "./react-data-grid.d46d625e.js";
127
+ import "@m4l/styles";
128
+ import "react-helmet-async";
129
+ import "simplebar-react";
130
+ import "simplebar/dist/simplebar.min.css?used";
163
131
  export {
164
- A as Accordion,
132
+ A5 as Accordion,
165
133
  A8 as ActionCancel,
166
134
  A10 as ActionFormCancel,
167
135
  A11 as ActionFormIntro,
168
136
  A9 as ActionIntro,
169
- A3 as Actions,
170
- A4 as Area,
171
- A5 as AreasAdmin,
172
- A7 as AreasContainer,
173
- A6 as AreasContext,
174
- a5 as AreasProvider,
175
- A2 as Avatar,
137
+ A7 as Actions,
138
+ A as Area,
139
+ A2 as AreasAdmin,
140
+ A3 as AreasContainer,
141
+ A4 as AreasContext,
142
+ a3 as AreasProvider,
143
+ A6 as Avatar,
176
144
  B4 as BooleanFormatter,
177
- B2 as BoxIcon,
178
- B3 as Breadcrumbs,
179
- B as Button,
145
+ B as BoxIcon,
146
+ B2 as Breadcrumbs,
147
+ B3 as Button,
180
148
  C as CircularProgress,
181
149
  C2 as ConcatenatedFormatter,
150
+ b4 as DICCTIONARY,
151
+ a7 as DYNAMICFILTER_DICTIONARY_ID,
182
152
  D2 as DataGrid,
183
- D4 as DateFormatter,
184
- DraggableWindow,
153
+ D as DateFormatter,
154
+ D4 as DraggableWindow,
185
155
  D3 as DynamicFilter,
186
- a7 as DynamicFilterClassess,
187
- a2 as DynamicMFParmsContext,
188
- D as DynamicMFParmsProvider,
156
+ a8 as DynamicMFParmsContext,
157
+ D5 as DynamicMFParmsProvider,
189
158
  E as ErrorLabel,
190
159
  H as HelmetPage,
191
160
  I as Icon,
192
161
  I3 as IconButton,
193
- a as IconButtonAnimate,
194
- I2 as Image,
195
- I4 as ImageButton,
162
+ a2 as IconButtonAnimate,
163
+ I4 as Image,
164
+ I2 as ImageButton,
196
165
  i2 as LABEL_DAY,
197
166
  h as LABEL_DAYS,
167
+ L6 as LABEL_FILTER_BUTTON,
198
168
  f as LABEL_MONTH,
199
- e2 as LABEL_MONTHS,
200
- c3 as LABEL_YEAR,
201
- L6 as LABEL_YEARS,
202
- L3 as LanguagePopover,
203
- L4 as LinearProgress,
204
- L5 as LinkWithRoute,
205
- L7 as Loadable,
169
+ e as LABEL_MONTHS,
170
+ c2 as LABEL_YEAR,
171
+ L5 as LABEL_YEARS,
172
+ L7 as LanguagePopover,
173
+ L3 as LinearProgress,
174
+ L4 as LinkWithRoute,
175
+ L8 as Loadable,
206
176
  L2 as LoadingButton,
207
177
  L as LoadingScreen,
208
- L8 as Logo,
209
- M as MemonizedDynamicMFParmsProvider,
178
+ L9 as Logo,
179
+ M5 as MemonizedDynamicMFParmsProvider,
210
180
  M3 as MenuActions,
211
- M2 as ModalContext,
181
+ M6 as ModalContext,
212
182
  M4 as ModalDialog,
213
- a3 as ModalProvider,
214
- M5 as MotionContainer,
215
- M6 as MotionLazyContainer,
183
+ a9 as ModalProvider,
184
+ M as MotionContainer,
185
+ M2 as MotionLazyContainer,
216
186
  N2 as NoItemSelected,
217
187
  N as NumberEditor,
218
188
  O as ObjectLogs,
219
- P3 as Pager,
220
- P5 as PaperForm,
221
- P4 as Period,
222
- P8 as PeriodFormatter,
223
- P7 as PointsFormatter,
224
- P2 as Popover,
225
- P9 as PriceFormatter,
189
+ P4 as Pager,
190
+ P8 as PaperForm,
191
+ P2 as Period,
192
+ P6 as PeriodFormatter,
193
+ P5 as PointsFormatter,
194
+ P3 as Popover,
195
+ P7 as PriceFormatter,
226
196
  P as PropagateLoader,
227
- P6 as PropertyValue,
228
- R2 as RHFAutocomplete,
229
- R9 as RHFAutocompleteAsync,
197
+ P9 as PropertyValue,
198
+ R as RHFAutocomplete,
199
+ R2 as RHFAutocompleteAsync,
230
200
  R3 as RHFCheckbox,
231
201
  R4 as RHFDateTime,
232
- R10 as RHFMultiCheckbox,
233
- R6 as RHFPeriod,
234
- R12 as RHFRadioGroup,
235
- R11 as RHFSelect,
236
- R5 as RHFTextField,
202
+ R5 as RHFMultiCheckbox,
203
+ R9 as RHFPeriod,
204
+ R8 as RHFRadioGroup,
205
+ R6 as RHFSelect,
206
+ R7 as RHFTextField,
237
207
  a4 as RHFTextFieldPassword,
238
- R8 as RHFUploadImage,
239
- R as RHFormProvider,
240
- R7 as ResizeableWindow,
208
+ R10 as RHFUploadImage,
209
+ R12 as RHFormProvider,
210
+ R11 as ResizeableWindow,
241
211
  S as ScrollBar,
242
- S3 as ScrollToTop,
243
- S2 as SplitLayout,
212
+ S2 as ScrollToTop,
213
+ S3 as SplitLayout,
244
214
  T as Tab,
245
215
  T3 as TextEditor,
246
216
  T2 as Typography,
247
217
  U as UncertaintyFormatter,
248
- W2 as WindowBase,
249
- W as WindowConfirm,
218
+ W3 as WindowBase,
219
+ W2 as WindowConfirm,
250
220
  c as WindowToolsMFContext,
251
- W3 as WindowToolsMFProvider,
252
- c2 as columnBooleanFormatter,
253
- d3 as columnConcatenatedValuesFormatter,
254
- b as columnDateFormatter,
221
+ W as WindowToolsMFProvider,
222
+ c3 as columnBooleanFormatter,
223
+ d2 as columnConcatenatedValuesFormatter,
224
+ b3 as columnDateFormatter,
255
225
  c6 as columnNestedValueFormatter,
256
226
  c5 as columnPointsFormatter,
257
227
  c7 as columnPriceFormatter,
258
228
  c4 as columnUncertaintyFormatter,
259
- d as defaultCommonActionsDictionary,
260
- d4 as defaultDynamicFilterDictionary,
261
- d7 as defaultFormattersDictionary,
262
- d2 as defaultModalDialogDictionary,
263
- d5 as defaultNoItemSelectedDictionary,
264
- d6 as defaultObjectLogDictionary,
265
- e as errorLabelClasses,
266
- g4 as getCommonActionsDictionary,
229
+ d4 as defaultCommonActionsDictionary,
230
+ d3 as defaultDynamicFilterDictionary,
231
+ d as defaultFormattersDictionary,
232
+ d5 as defaultModalDialogDictionary,
233
+ d6 as defaultNoItemSelectedDictionary,
234
+ d7 as defaultObjectLogDictionary,
235
+ e2 as errorLabelClasses,
236
+ g12 as getCommonActionsDictionary,
267
237
  a6 as getDataGridRowsFromSet,
268
- g7 as getDynamicFilterComponentsDictionary,
269
- g14 as getFormatConcatenated,
270
- g11 as getFormatDate,
271
- a9 as getFormatPeriod,
272
- g13 as getFormatPoints,
273
- g15 as getFormatPrice,
274
- b3 as getFormattersComponentsDictionary,
275
- g6 as getGridComponentsDictionary,
276
- g5 as getModalDialogComponentsDictionary,
277
- g8 as getNoItemSelectedComponentsDictionary,
278
- g9 as getObjectLogsComponentsDictionary,
279
- g2 as getPagerComponentsDictionary,
238
+ g11 as getDynamicFilterComponentsDictionary,
239
+ c8 as getDynamicFilterDictionary,
240
+ g8 as getFormatConcatenated,
241
+ g5 as getFormatDate,
242
+ a5 as getFormatPeriod,
243
+ g7 as getFormatPoints,
244
+ g9 as getFormatPrice,
245
+ b2 as getFormattersComponentsDictionary,
246
+ g10 as getGridComponentsDictionary,
247
+ g13 as getModalDialogComponentsDictionary,
248
+ g14 as getNoItemSelectedComponentsDictionary,
249
+ g15 as getObjectLogsComponentsDictionary,
250
+ g4 as getPagerComponentsDictionary,
280
251
  g3 as getPeriodComponetsDictionary,
281
- g10 as getRHFAutocompleteAsyncComponentsDictionary,
252
+ g2 as getRHFAutocompleteAsyncComponentsDictionary,
282
253
  g as getRHFAutocompleteComponentsDictionary,
283
- g12 as getUncertaintyFormat,
254
+ g6 as getUncertaintyFormat,
284
255
  i as imageButtonClasses,
285
256
  t as typographyClasses,
286
257
  u as useDynamicMFParametersStore,
@@ -291,6 +262,6 @@ export {
291
262
  v3 as varContainer,
292
263
  v as varFade,
293
264
  v4 as varTranEnter,
294
- a8 as varTranExit,
295
- b2 as varTranHover
265
+ a as varTranExit,
266
+ b as varTranHover
296
267
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@hookform/resolvers": "^2.9.5",
@@ -10,7 +10,7 @@
10
10
  "@mui/lab": "5.0.0-alpha.89",
11
11
  "@mui/material": "5.10.4",
12
12
  "@mui/system": "5.10.4",
13
- "@mui/x-date-pickers": "5.0.0-beta.3",
13
+ "@mui/x-date-pickers": "6.2.0",
14
14
  "immer": "^9.0.21",
15
15
  "install": "^0.13.0",
16
16
  "lodash.clonedeep": "^4.5.0",
@@ -2,7 +2,7 @@ import React__default from "react";
2
2
  import require$$1 from "prop-types";
3
3
  import require$$2 from "react-dom";
4
4
  import clsx from "clsx";
5
- import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.e882b264.js";
5
+ import { s as shims, l as log, d as domFns, p as positionFns } from "./utils/index.b6ae791a.js";
6
6
  var cjs = { exports: {} };
7
7
  var Draggable$1 = {};
8
8
  var DraggableCore$2 = {};
@@ -1,6 +1,6 @@
1
1
  import React__default from "react";
2
- import { c as cjs } from "./react-draggable.0eef011c.js";
3
- import { u as utils } from "./utils/index.e882b264.js";
2
+ import { c as cjs } from "./react-draggable.6471b07e.js";
3
+ import { u as utils } from "./utils/index.b6ae791a.js";
4
4
  import require$$1 from "prop-types";
5
5
  var reactResizable = { exports: {} };
6
6
  var Resizable$1 = {};
@@ -0,0 +1 @@
1
+ export declare const TEST_PROP_ID = "data-testid";
@@ -1,3 +1,4 @@
1
+ import { generateUtilityClass } from "@mui/material";
1
2
  import React__default from "react";
2
3
  var domFns = {};
3
4
  var shims = {};
@@ -475,6 +476,9 @@ Object.defineProperty(log$1, "__esModule", {
475
476
  log$1.default = log;
476
477
  function log() {
477
478
  }
479
+ function isValidDate(d) {
480
+ return d && d instanceof Date && !isNaN(d.getTime());
481
+ }
478
482
  const getPaletteColor = function(palette, s) {
479
483
  s = s.replace(/\[(\w+)\]/g, ".$1");
480
484
  s = s.replace(/^\./, "");
@@ -515,6 +519,9 @@ const getThemeVariantColor = (theme, variant) => {
515
519
  }
516
520
  return theme.palette.text.primary;
517
521
  };
522
+ function getComponentUtilityClass(componentName) {
523
+ return (slot) => generateUtilityClass(componentName, slot);
524
+ }
518
525
  var utils = {};
519
526
  utils.__esModule = true;
520
527
  utils.cloneElement = cloneElement;
@@ -578,10 +585,12 @@ function cloneElement(element, props) {
578
585
  return /* @__PURE__ */ _react.default.cloneElement(element, props);
579
586
  }
580
587
  export {
581
- getThemeVariantColor as a,
582
- getVariantColor as b,
588
+ getPaletteColor as a,
589
+ getThemeVariantColor as b,
590
+ getVariantColor as c,
583
591
  domFns as d,
584
- getPaletteColor as g,
592
+ getComponentUtilityClass as g,
593
+ isValidDate as i,
585
594
  log$1 as l,
586
595
  positionFns as p,
587
596
  shims as s,
package/utils/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { Palette, Theme } from '@mui/material/styles';
2
2
  import { VariantColor } from './types';
3
+ export declare function isValidDate(d: Date): boolean;
3
4
  export declare const getPaletteColor: (palette: Palette, s: string) => any;
4
5
  export declare const getVariantColor: (variant: VariantColor | undefined) => "error" | "warning" | "info" | "primary";
5
6
  export declare const getThemeVariantColor: (theme: Theme, variant: VariantColor | undefined) => string;
7
+ export declare function getComponentUtilityClass(componentName: string): (slot: string) => string;