@m4l/components 3.0.0 → 3.0.1

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 (199) hide show
  1. package/@types/export.d.ts +266 -266
  2. package/@types/types.d.ts +47 -47
  3. package/components/AccountPopover/{index.af5aae0e.js → index-BJWLsxYq.js} +7 -5
  4. package/components/AppBar/{index.b8f22046.js → index-BdA-qQyV.js} +7 -5
  5. package/components/BaseModule/{index.f7a04fe7.js → index-Bl0GPyrz.js} +1 -1
  6. package/components/CommonActions/components/ActionCancel/{index.e67885bc.js → index-BlaMdPmp.js} +2 -2
  7. package/components/CommonActions/components/ActionFormCancel/{index.92988013.js → index-C5ZI4ZPP.js} +5 -5
  8. package/components/CommonActions/components/ActionFormIntro/{index.f8867ae9.js → index-BbVMcr05.js} +2 -2
  9. package/components/CommonActions/components/ActionIntro/{index.e58eb0c4.js → index-DGooFqVu.js} +3 -3
  10. package/components/CommonActions/components/Actions/{index.f674be30.js → index-B_vOmNZT.js} +5 -3
  11. package/components/DataGrid/assets/icons/datagrid.svg +4 -4
  12. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.89a59c52.js → index-0wqcK8ML.js} +1 -1
  13. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d619d1db.js → index-Ozdfjlt2.js} +1 -1
  14. package/components/DataGrid/formatters/ColumnDateFormatter/{index.e00d0cf2.js → index-CKg8CJ6A.js} +1 -1
  15. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.557bc8a5.js → index-D-98uXfl.js} +1 -1
  16. package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.880e743b.js → index-BslXGK-A.js} +1 -1
  17. package/components/DataGrid/formatters/ColumnPointsFormatter/{index.ab152484.js → index-BXGW2CsK.js} +1 -1
  18. package/components/DataGrid/formatters/ColumnPriceFormatter/{index.bf9d9e60.js → index-O11tBykn.js} +1 -1
  19. package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.4045b2f2.js → index-BaCawLr1.js} +1 -1
  20. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.a87302d1.js → index-Cq7a-jnE.js} +1 -1
  21. package/components/DataGrid/formatters/{index.06c18753.js → index-B5SJg0Qq.js} +2 -2
  22. package/components/DataGrid/{index.b37d6cab.js → index-7vJWvQtu.js} +33 -26
  23. package/components/DataGrid/subcomponents/Actions/{index.c3b1c1e2.js → index-C-p5O-cU.js} +22 -26
  24. package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
  25. package/components/DragResizeWindow/DragResizeWindow.d.ts +1 -1
  26. package/components/DragResizeWindow/{index.a4bcaab8.js → index-D2jLYExo.js} +25 -6
  27. package/components/DynamicFilter/{dictionary.94a74eb3.js → dictionary-DbRGLe8j.js} +2 -2
  28. package/components/DynamicFilter/{index.b07b567a.js → index-D2CmPq_i.js} +7 -8
  29. package/components/DynamicFilter/slots/{dynamicFilterSlots.dd5824d5.js → dynamicFilterSlots-BSCWv_Rw.js} +8 -8
  30. package/components/DynamicFilter/store/{index.49d1b77f.js → index-BcaPHLdk.js} +3 -3
  31. package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.9e8fcc8c.js → index-BZAxYAp1.js} +3 -3
  32. package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3e52c5d7.js → index-DIFUGgys.js} +4 -4
  33. package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.68d855e9.js → index-D5BGKd5r.js} +8 -8
  34. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.11f588b4.js → index-DFHDm1e4.js} +4 -3
  35. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.77555163.js → index-Hn2Rzovd.js} +10 -9
  36. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.1c8454db.js → index-B5F1Ji7m.js} +5 -4
  37. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.cb31333a.js → index-BQlxIk_N.js} +6 -6
  38. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.0ae3d439.js → index-DF7EGeSx.js} +5 -4
  39. package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-B6WQUIl7.js} +5 -5
  40. package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-D5edNMdo.js} +3 -3
  41. package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-bbdBrHj0.js} +33 -13
  42. package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-CD3aGB5S.js} +7 -6
  43. package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.e5e439f1.js → index-MiYNpAu0.js} +2 -2
  44. package/components/FieldLabel/{index.9a979def.js → index-BpW2AGJx.js} +6 -4
  45. package/components/GridLayout/{index.dd291886.js → index-HK_hTGnZ.js} +51 -72
  46. package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-izY8S7ns.js} +11 -13
  47. package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-bpKDnaCd.js} +7 -7
  48. package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-OWN-RzRq.js} +15 -9
  49. package/components/HelperText/{index.6818980e.js → index-COWCXeJp.js} +10 -3
  50. package/components/Icon/{index.c06685f4.js → index-CedboS6y.js} +9 -4
  51. package/components/Image/{index.ae542f70.js → index-B7FhR9uF.js} +40 -31
  52. package/components/LanguagePopover/index-4kPWKmxk.js +179 -0
  53. package/components/LinearProgressIndeterminate/{index.ca78fd37.js → index-Do7CKcow.js} +5 -3
  54. package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
  55. package/components/LoadingError/{index.765ff885.js → index-CNh7b1ew.js} +8 -6
  56. package/components/MFIsolationApp/{index.677d9e93.js → index-DJ-MUHoQ.js} +5 -5
  57. package/components/MFLoader/{index.6af7729c.js → index-Bcg9TXnJ.js} +36 -15
  58. package/components/ModalDialog/{index.a57ee020.js → index-BuGRs967.js} +6 -6
  59. package/components/NavLink/{index.dd723dfd.js → index-B6Gmzyl0.js} +5 -3
  60. package/components/NoItemSelected/{index.b3e365b1.js → index-CMet73v_.js} +3 -1
  61. package/components/ObjectLogs/{index.54fdee14.js → index-_8l1PbEQ.js} +19 -12
  62. package/components/PDFViewer/{index.7932d07b.js → index-CV9x1XKR.js} +4 -2
  63. package/components/Page/{index.5f2963f3.js → index-DKQLs5le.js} +11 -8
  64. package/components/PaperForm/{index.cdb1f846.js → index-DciWfnML.js} +4 -2
  65. package/components/Period/{index.b0b2a03b.js → index-DxijnNw6.js} +20 -31
  66. package/components/PrintingSystem/{index.800a7957.js → index-sSZkZbrr.js} +16 -14
  67. package/components/PrintingSystem/subcomponents/BodyNode/{index.60ad80bd.js → index-CxYjxWxL.js} +1 -1
  68. package/components/PrintingSystem/subcomponents/ChartNode/{index.d4aa116e.js → index-D85qi4Qz.js} +3 -1
  69. package/components/PrintingSystem/subcomponents/DividerNode/{index.142bbf1a.js → index-BA-IYLWh.js} +1 -1
  70. package/components/PrintingSystem/subcomponents/FooterNode/{index.d16d2c5e.js → index-Bn9eNtAi.js} +1 -1
  71. package/components/PrintingSystem/subcomponents/GridNode/{index.044363bf.js → index-gNEGVptD.js} +6 -2
  72. package/components/PrintingSystem/subcomponents/HeaderNode/{index.5581a84d.js → index-CiVr-jBF.js} +1 -1
  73. package/components/PrintingSystem/subcomponents/PaperNode/{index.2994c128.js → index-BGbvh0Xk.js} +1 -1
  74. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.166d7264.js → index-DvhbyOo3.js} +1 -1
  75. package/components/PrintingSystem/subcomponents/SectionNode/{index.642ab1b7.js → index-Cw8ZUwsm.js} +1 -1
  76. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.d8a2a0af.js → index-l9SFQ11V.js} +1 -1
  77. package/components/PropertyValue/{index.d81eae0a.js → index-hcXIE6qk.js} +7 -5
  78. package/components/Resizeable/{index.df2f3bb8.js → index-ObbOlXFx.js} +1 -1
  79. package/components/ScrollBar/{index.11feff65.js → index-BpTjE7o3.js} +3 -1
  80. package/components/SideBar/{index.990e8667.js → index-Cg1bZn8y.js} +100 -74
  81. package/components/SplitLayout/{index.b247de95.js → index-CYnKlhi5.js} +5 -3
  82. package/components/ToastContainer/{index.c1657bde.js → index-B5VGIn45.js} +3 -3
  83. package/components/animate/LoadingScreen/{index.36a63311.js → index-CzDq3A0i.js} +1 -1
  84. package/components/animate/MotionContainer/{index.3032bd8f.js → index-eartnWyO.js} +1 -1
  85. package/components/animate/MotionLazyContainer/{index.d2902a6c.js → index-Be8osTiG.js} +1 -1
  86. package/components/animate/PropagateLoader/{index.a9da8d00.js → index-Bkq8V2SN.js} +1 -1
  87. package/components/animate/{index.ceb7669a.js → index-mH4o-crX.js} +1 -1
  88. package/components/animate/variants/{bounce.784aaaaa.js → bounce-DanQqHAX.js} +3 -1
  89. package/components/animate/variants/{fade.b561c0fc.js → fade-CAOJNn06.js} +3 -1
  90. package/components/areas/components/AreasAdmin/{index.b232384d.js → index-qqSduaty.js} +21 -19
  91. package/components/areas/components/AreasViewer/{index.d45bfcd2.js → index-D5If8gFK.js} +36 -25
  92. package/components/areas/contexts/AreasContext/{index.9edd84c3.js → index-Dyj8tCdG.js} +174 -15
  93. package/components/areas/hooks/useAreas/{index.5a57ab76.js → index-o0DvT3xZ.js} +2 -3
  94. package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
  95. package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
  96. package/components/commercial/AppBarCommercial/{index.b4f6147e.js → index-DvigwCQP.js} +4 -2
  97. package/components/commercial/SectionCommercial/{index.a250338c.js → index-CLHGooDg.js} +4 -2
  98. package/components/commercial/TopBar/{index.4fdd66e5.js → index-DJNYXgHq.js} +13 -11
  99. package/components/commercial/{index.be1af158.js → index-BLUHQfcA.js} +4 -4
  100. package/components/formatters/BooleanFormatter/{index.91435984.js → index-DpF0x_xp.js} +3 -3
  101. package/components/formatters/DateFormatter/{index.2ef6f261.js → index-CGcRZ8BA.js} +1 -1
  102. package/components/formatters/PointsFormatter/{index.51cd6774.js → index-C7sR8iqk.js} +1 -1
  103. package/components/formatters/PriceFormatter/{index.97f75b4b.js → index-CsvRawmc.js} +1 -1
  104. package/components/formatters/UncertaintyFormatter/{index.c3ffdebc.js → index-B9ESVEVp.js} +4 -4
  105. package/components/formatters/{index.64017cc1.js → index-CDt8LzvL.js} +13 -19
  106. package/components/hook-form/HelperError/{index.360f8fb7.js → index-D-_czK9n.js} +1 -1
  107. package/components/hook-form/RHFAutocomplete/{index.089af1b8.js → index-BhbgwNUz.js} +20 -20
  108. package/components/hook-form/RHFAutocompleteAsync/{index.f05b6fe3.js → index-BnUgdSnR.js} +5 -3
  109. package/components/hook-form/RHFCheckbox/{index.4cefbad2.js → index-ubHFuH1F.js} +53 -46
  110. package/components/hook-form/RHFColorPicker/{index.ed380b30.js → index-DBpi0Zhe.js} +8 -6
  111. package/components/hook-form/RHFDateTime/{index.118ebe6d.js → index-BtfOlX4T.js} +7 -5
  112. package/components/hook-form/RHFPeriod/{index.404ba4c6.js → index-BicAIry0.js} +6 -4
  113. package/components/hook-form/RHFRadioGroup/{index.591f779d.js → index-Di37rp0B.js} +1 -1
  114. package/components/hook-form/RHFTextField/index-Cz7BMTLe.js +337 -0
  115. package/components/hook-form/RHFUpload/{index.7b7ee732.js → index-D52JNxDh.js} +10 -8
  116. package/components/maps/components/GpsTools/{index.c1198f79.js → index-BP1dIwh6.js} +102 -32
  117. package/components/maps/components/Map/external/googleMutant/index.d.ts +159 -159
  118. package/components/maps/components/Map/{index.8c947175.js → index-CS6xr1Fl.js} +263 -73
  119. package/components/maps/leaflet-geoman.d.ts +1476 -1476
  120. package/components/modal/{WindowBase.00b9e5f1.js → WindowBase-CLBER1xc.js} +4 -4
  121. package/components/modal/{WindowConfirm.abf49573.js → WindowConfirm-DraflAKP.js} +8 -7
  122. package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
  123. package/components/mui_extended/Accordion/{index.26524ecd.js → index-ZFpEUCnw.js} +8 -6
  124. package/components/mui_extended/Avatar/{index.e7bcc850.js → index-Bk4Hq2nk.js} +5 -2
  125. package/components/mui_extended/Badge/{index.48948839.js → index-D6F1o3k2.js} +4 -2
  126. package/components/mui_extended/Breadcrumbs/{index.4a44883c.js → index-DTS7rOZH.js} +1 -2
  127. package/components/mui_extended/Button/{index.3d14e3e9.js → index-DlzpoczE.js} +33 -13
  128. package/components/mui_extended/{CheckBox.5dc01b37.js → CheckBox-ByxYagHV.js} +4 -2
  129. package/components/mui_extended/IconButton/{index.7b6c1ee3.js → index-BfDbi0cC.js} +42 -22
  130. package/components/mui_extended/MenuActions/{index.11d777bb.js → index-CUz70BPj.js} +28 -24
  131. package/components/mui_extended/Pager/{index.b28a2103.js → index-CRgYDkV8.js} +8 -5
  132. package/components/mui_extended/Popover/{index.a7da93f1.js → index-C6_2t4L1.js} +39 -27
  133. package/components/mui_extended/Stack/{index.99de8138.js → index-CV2W-_eL.js} +3 -1
  134. package/components/mui_extended/Tab/{index.5c6a6801.js → index-PyZxxeDt.js} +9 -3
  135. package/components/mui_extended/ToggleButton/{index.86098567.js → index-X6htsgfF.js} +2 -2
  136. package/components/mui_extended/ToggleIconButton/{index.cbfe1cad.js → index-mT-xXWg9.js} +3 -2
  137. package/components/mui_extended/Tooltip/{index.49bb5ee1.js → index-B8QUytCK.js} +2 -0
  138. package/components/mui_extended/Typography/{index.8c0801e4.js → index-DKPqV11f.js} +4 -2
  139. package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
  140. package/components/popups/PopupsViewer/{index.52653047.js → index-D8iTb2JJ.js} +10 -7
  141. package/components/popups/PopupsViewer/slots/{popupsViewerSlots.69dd2614.js → popupsViewerSlots-DEQAZ8fq.js} +4 -4
  142. package/contexts/ModalContext/{index.799110fe.js → index-CMPcjPCy.js} +1 -1
  143. package/contexts/RHFormContext/{index.f9d41b99.js → index-B4a0h0fX.js} +3 -1
  144. package/hooks/useFormAddEdit/{index.8947ee59.js → index-DvRNtaub.js} +2 -2
  145. package/hooks/useModal/{index.eb857f6e.js → index-C9r1LQIz.js} +2 -3
  146. package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
  147. package/hooks/useTab/{index.9ad15247.js → index-DTbLh_DH.js} +1 -1
  148. package/index.js +125 -237
  149. package/package.json +1 -1
  150. package/{react-data-grid.c5377916.js → react-data-grid-BfYuZ6AK.js} +59 -110
  151. package/{react-draggable.079122b0.js → react-draggable-DsCPdgQP.js} +238 -57
  152. package/{react-json-view.57125fcf.js → react-json-view-bhqIAaNg.js} +277 -467
  153. package/{react-resizable.330f1499.js → react-resizable-eBbFl2dX.js} +75 -37
  154. package/{react-spinners.342a6578.js → react-spinners-TpKN9lZg.js} +6 -8
  155. package/{react-splitter-layout.8b1655c8.js → react-splitter-layout-C-JTsNGs.js} +14 -23
  156. package/style.css +1 -65
  157. package/styles/{DynamicFilter.0713a406.js → DynamicFilter-CJFsIegc.js} +1 -1
  158. package/styles/{index.db9e7ddb.js → index-Cc9p_h7i.js} +51 -14
  159. package/utils/{index.f77cc2ab.js → index-DiMrtgIu.js} +26 -51
  160. package/vite-env.d.ts +4 -4
  161. package/components/LanguagePopover/index.2a7e40fc.js +0 -168
  162. package/components/hook-form/RHFTextField/index.80b98b98.js +0 -296
  163. /package/{commonjs.565e6834.js → commonjs-BfYxJMv3.js} +0 -0
  164. /package/components/DataGrid/{constants.e334cd50.js → constants-8L7QgBKi.js} +0 -0
  165. /package/components/DynamicFilter/{constants.095f1dbb.js → constants-ByqmFATV.js} +0 -0
  166. /package/components/DynamicFilter/slots/{SlotsEnum.104a03d4.js → SlotsEnum-cawFeNzx.js} +0 -0
  167. /package/components/DynamicFilter/slots/{index.36b12be1.js → index-l0sNRNKZ.js} +0 -0
  168. /package/components/ScrollToTop/{index.e06f98f6.js → index-TxORk5dB.js} +0 -0
  169. /package/components/WrapperComponent/{index.57964195.js → index-BHV-CsDU.js} +0 -0
  170. /package/components/animate/{features.0fbf41e1.js → features-BbnE33u3.js} +0 -0
  171. /package/components/animate/variants/{container.11f82b76.js → container-Dmpr6tg5.js} +0 -0
  172. /package/components/animate/variants/{index.7a912140.js → index-l0sNRNKZ.js} +0 -0
  173. /package/components/animate/variants/{transition.bd46b9ce.js → transition-B9W5SWTa.js} +0 -0
  174. /package/components/areas/components/{index.558684b3.js → index-l0sNRNKZ.js} +0 -0
  175. /package/components/areas/{constants.66529246.js → constants-rqODZNZe.js} +0 -0
  176. /package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index-22c6E7vK.js} +0 -0
  177. /package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index-DkE30fhm.js} +0 -0
  178. /package/components/areas/contexts/{index.24025b97.js → index-l0sNRNKZ.js} +0 -0
  179. /package/components/areas/{dictionary.08cfc4c9.js → dictionary-YUsP9beq.js} +0 -0
  180. /package/components/areas/hooks/{index.d9dc1e21.js → index-l0sNRNKZ.js} +0 -0
  181. /package/components/areas/{icons.01fa3bcc.js → icons-CwFr-alN.js} +0 -0
  182. /package/components/areas/{index.4cc6a221.js → index-B_Odny9h.js} +0 -0
  183. /package/components/hook-form/RHFMultiCheckbox/{index.437e6ba3.js → index-BARudV1A.js} +0 -0
  184. /package/components/hook-form/RHFSelect/{index.c6c60ecc.js → index-LdwRuFz-.js} +0 -0
  185. /package/components/maps/{index.13bb982c.js → index-Ci-7-FHg.js} +0 -0
  186. /package/components/mui_extended/BoxIcon/{index.d61e7ac5.js → index-BUTJ2tKw.js} +0 -0
  187. /package/components/mui_extended/CircularProgress/{index.967e70b7.js → index-Bnnti_G6.js} +0 -0
  188. /package/components/mui_extended/LinearProgress/{index.4092bb69.js → index-CGgW8jq2.js} +0 -0
  189. /package/components/mui_extended/LinkWithRoute/{index.288c51f3.js → index-BC2miUjR.js} +0 -0
  190. /package/components/mui_extended/{index.b606cd9d.js → index-l0sNRNKZ.js} +0 -0
  191. /package/components/popups/PopupsViewer/{constants.29247547.js → constants-DuyD7aCn.js} +0 -0
  192. /package/components/popups/PopupsViewer/{icons.066abd43.js → icons-BUujqqbu.js} +0 -0
  193. /package/components/popups/PopupsViewer/slots/{index.37ef2263.js → index-B98CiRLa.js} +0 -0
  194. /package/components/popups/{index.c5eae682.js → index-l0sNRNKZ.js} +0 -0
  195. /package/hocs/withToggle/{index.548aeace.js → index-C1_DMZD3.js} +0 -0
  196. /package/hooks/useFormReadyForUpdate/{index.f60f500e.js → index-B3HygFCM.js} +0 -0
  197. /package/hooks/useStateRef/{index.538edb89.js → index-C3P6ZK3m.js} +0 -0
  198. /package/test/{constants_no_mock.86c553a9.js → constants_no_mock-CF-669v-.js} +0 -0
  199. /package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId-BaBTWhBr.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import React__default, { forwardRef, useState, useRef, useCallback, useEffect, useMemo } from "react";
3
- import { D as DraggableCore_1 } from "../../react-draggable.079122b0.js";
3
+ import { D as DraggableCore_1 } from "../../react-draggable-DsCPdgQP.js";
4
4
  import clsx from "clsx";
5
5
  import { styled, generateUtilityClasses, useForkRef } from "@mui/material";
6
6
  import "@mui/base";
7
- import { R as Resizable } from "../../react-resizable.330f1499.js";
7
+ import { R as Resizable } from "../../react-resizable-eBbFl2dX.js";
8
8
  const WrapperDragResizeWindowRoot = styled("div")`
9
9
  position: absolute;
10
10
  left: 0px;
@@ -24,9 +24,11 @@ const DEFAULT_TRANSFORM_SCALE = 1;
24
24
  const draggableWindowClasses = generateUtilityClasses(
25
25
  COMPONENT_CLASS_NAME,
26
26
  [
27
+ /* elements */
27
28
  "root",
28
29
  "draggableHandle",
29
30
  "draggableCancel",
31
+ // state
30
32
  "dragging",
31
33
  "hidden"
32
34
  ]
@@ -76,12 +78,15 @@ const getInitialSize = (containerSize, defaultPosition) => {
76
78
  return {
77
79
  top: top ?? (bottom ? containerHeight - bottom - (height || 0) : 0),
78
80
  height: height ?? containerHeight - (top || 0) - (bottom || 0),
81
+ // top: top || 0,
82
+ // height: height ?? containerHeight - (top || 0) - (bottom || 0),
79
83
  left: left ?? (right ? containerWidth - right - (width || 0) : 0),
80
84
  width: width ?? containerWidth - (left || 0) - (right || 0)
81
85
  };
82
86
  };
83
87
  const DragResizeWindow = forwardRef((props, ref) => {
84
88
  const {
89
+ //Comunes
85
90
  style,
86
91
  className,
87
92
  children,
@@ -92,6 +97,7 @@ const DragResizeWindow = forwardRef((props, ref) => {
92
97
  bounds = { left: 5, top: 5, right: -5, bottom: -5 },
93
98
  minWindowWidth = 200,
94
99
  minWindowHeight = 100,
100
+ //Draggable
95
101
  draggableHandle = `.${draggableWindowClasses.draggableHandle}`,
96
102
  draggableCancel = `.${draggableWindowClasses.draggableCancel}`,
97
103
  draggable = true,
@@ -99,13 +105,18 @@ const DragResizeWindow = forwardRef((props, ref) => {
99
105
  onDrag,
100
106
  onDragStop,
101
107
  onMouseDown,
108
+ //ResizeAble
102
109
  resizeable = true,
103
110
  resizeHandles = ["se", "nw"],
104
111
  resizeHandle,
112
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
105
113
  onResizeStart,
114
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
106
115
  onResize,
116
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
107
117
  onResizeStop,
108
118
  hidden,
119
+ //Otras
109
120
  ...others
110
121
  } = props;
111
122
  const [currentState, setCurrentState] = useState(
@@ -144,9 +155,13 @@ const DragResizeWindow = forwardRef((props, ref) => {
144
155
  ...prev,
145
156
  ...newPosition,
146
157
  shrinkLeftAt: void 0,
158
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
147
159
  shrinkTopAt: void 0,
160
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
148
161
  overflowWidthAt: void 0,
162
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
149
163
  overflowHeightAt: void 0,
164
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
150
165
  dragging: newPosition
151
166
  }));
152
167
  }, []);
@@ -201,9 +216,13 @@ const DragResizeWindow = forwardRef((props, ref) => {
201
216
  ...size,
202
217
  ...handlerName === "onResizeStart" ? {
203
218
  shrinkLeftAt: void 0,
219
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
204
220
  shrinkTopAt: void 0,
221
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
205
222
  overflowWidthAt: void 0,
223
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
206
224
  overflowHeightAt: void 0
225
+ //Cancelar los flags de memoria de encogimiento del contenedor padre
207
226
  } : {},
208
227
  resizing
209
228
  }));
@@ -293,8 +312,7 @@ const DragResizeWindow = forwardRef((props, ref) => {
293
312
  const boundsRigthBottom = dimension === "Width" ? bounds?.right || 0 : bounds?.bottom || 0;
294
313
  const maxDimensionWithoutBounds = containerDimension - boundsLefTop + boundsRigthBottom;
295
314
  let rightBottomBoundary = containerDimension - newState[lDimension] + boundsRigthBottom;
296
- if (newState[lDimension] !== divRoot[`client${dimension}`])
297
- ;
315
+ if (newState[lDimension] !== divRoot[`client${dimension}`]) ;
298
316
  if (newState.resizing && stateRef.current.initialPostion) {
299
317
  if (!newState.resizing.handle.includes("w")) {
300
318
  if (newState[leftTop] + newState[lDimension] > containerDimension + boundsRigthBottom) {
@@ -309,8 +327,7 @@ const DragResizeWindow = forwardRef((props, ref) => {
309
327
  if (newState[leftTop] - dif >= boundsLefTop) {
310
328
  newState[lDimension] = stateRef.current.initialPostion[lDimension] + dif;
311
329
  newState[leftTop] = newState[leftTop] - dif;
312
- if (newState[leftTop] + newState[lDimension] > maxDimensionWithoutBounds)
313
- ;
330
+ if (newState[leftTop] + newState[lDimension] > maxDimensionWithoutBounds) ;
314
331
  } else {
315
332
  newState[leftTop] = boundsLefTop;
316
333
  newState[lDimension] = stateRef.current.initialPostion[lDimension];
@@ -457,7 +474,9 @@ const DragResizeWindow = forwardRef((props, ref) => {
457
474
  );
458
475
  const classNameFinal = clsx(draggableWindowClasses.root, className, {
459
476
  "react-draggable": draggable,
477
+ //Requerido para el componente Draggable
460
478
  [draggableWindowClasses.hidden]: hidden
479
+ // dropping: Boolean(droppingPosition),
461
480
  });
462
481
  const styleFinal = {
463
482
  ...style,
@@ -1,5 +1,5 @@
1
- import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index.f674be30.js";
2
- import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/index.089af1b8.js";
1
+ import { g as getCommonActionsDictionary } from "../CommonActions/components/Actions/index-B_vOmNZT.js";
2
+ import { g as getRHFAutocompleteComponentsDictionary } from "../hook-form/RHFAutocomplete/index-BhbgwNUz.js";
3
3
  const DYNAMIC_FILTER_DICTIONARY_ID = "dynamic_filter";
4
4
  function getDynamicFilterComponentsDictionary() {
5
5
  return [DYNAMIC_FILTER_DICTIONARY_ID].concat(
@@ -1,9 +1,9 @@
1
- import { f as fieldFactory } from "./subcomponents/FieldTypes/index.5a0c7b12.js";
2
- import { f as filterValidOperandsArraySelect } from "./subcomponents/FieldTypes/SelectFilter/index.cb31333a.js";
1
+ import { f as fieldFactory } from "./subcomponents/FieldTypes/index-B6WQUIl7.js";
2
+ import { f as filterValidOperandsArraySelect } from "./subcomponents/FieldTypes/SelectFilter/index-BQlxIk_N.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { useFlagsPresent, CommonFlags } from "@m4l/core";
5
- import { D as DynamicFilterProvider } from "./store/index.49d1b77f.js";
6
- import { D as DynamicFilterBase } from "./subcomponents/DynamicFilterBase/index.68d855e9.js";
5
+ import { D as DynamicFilterProvider } from "./store/index-BcaPHLdk.js";
6
+ import { D as DynamicFilterBase } from "./subcomponents/DynamicFilterBase/index-D5BGKd5r.js";
7
7
  function getPurgedInitialFiltersApplied(fields, initialFilters, getFieldByName) {
8
8
  const newFilters = [];
9
9
  const fixedFields = [];
@@ -22,13 +22,12 @@ function getPurgedInitialFiltersApplied(fields, initialFilters, getFieldByName)
22
22
  operand2: initialFilters[index].operand2,
23
23
  operandsArray: initialFilters[index].operandsArray
24
24
  };
25
- if (!field)
26
- continue;
25
+ if (!field) continue;
27
26
  const canAddField = fieldFactory(field.type).verifyFilter(initialFilter, field);
28
27
  if (canAddField) {
29
28
  if (filter.fieldType === "datetime") {
30
- filter.operand1 = new Date(filter.operand1 + "");
31
- filter.operand2 = new Date(filter.operand2 + "");
29
+ filter.operand1 = /* @__PURE__ */ new Date(filter.operand1 + "");
30
+ filter.operand2 = /* @__PURE__ */ new Date(filter.operand2 + "");
32
31
  }
33
32
  if (field.presence === "fixed") {
34
33
  if (fixedFields.findIndex((f) => f === field.name) === -1) {
@@ -1,13 +1,13 @@
1
1
  import { styled } from "@mui/material/styles";
2
- import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants.095f1dbb.js";
3
- import { D as DynamicFilterSlots } from "./SlotsEnum.104a03d4.js";
4
- import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter.0713a406.js";
2
+ import { D as DYNAMIC_FILTER_KEY_COMPONENT } from "../constants-ByqmFATV.js";
3
+ import { D as DynamicFilterSlots } from "./SlotsEnum-cawFeNzx.js";
4
+ import { d as dynamicFilterStyles } from "../../../styles/DynamicFilter-CJFsIegc.js";
5
5
  import { MenuItem } from "@mui/material";
6
- import { A as Actions } from "../../CommonActions/components/Actions/index.f674be30.js";
7
- import { I as Icon } from "../../Icon/index.c06685f4.js";
8
- import { I as IconButton } from "../../mui_extended/IconButton/index.7b6c1ee3.js";
9
- import { P as Popover } from "../../mui_extended/Popover/index.a7da93f1.js";
10
- import { T as Typography } from "../../mui_extended/Typography/index.8c0801e4.js";
6
+ import { A as Actions } from "../../CommonActions/components/Actions/index-B_vOmNZT.js";
7
+ import { I as Icon } from "../../Icon/index-CedboS6y.js";
8
+ import { I as IconButton } from "../../mui_extended/IconButton/index-BfDbi0cC.js";
9
+ import { P as Popover } from "../../mui_extended/Popover/index-C6_2t4L1.js";
10
+ import { T as Typography } from "../../mui_extended/Typography/index-DKPqV11f.js";
11
11
  const RootStyled = styled("div", { name: DYNAMIC_FILTER_KEY_COMPONENT, slot: DynamicFilterSlots.root })(
12
12
  dynamicFilterStyles?.root
13
13
  );
@@ -4,15 +4,15 @@ import { shallow } from "zustand/shallow";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
6
6
  import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
7
- import { A as ALL_FIELD } from "../constants.095f1dbb.js";
8
- import { g as getPurgedInitialFiltersApplied, f as formatToInitialFilters, a as formatToRawFilter } from "../index.b07b567a.js";
7
+ import { A as ALL_FIELD } from "../constants-ByqmFATV.js";
8
+ import { g as getPurgedInitialFiltersApplied, f as formatToInitialFilters, a as formatToRawFilter } from "../index-D2CmPq_i.js";
9
9
  import { devtools } from "zustand/middleware";
10
10
  import { immer } from "zustand/middleware/immer";
11
11
  function useDynamicFilterStore(selector, equalityFn) {
12
12
  const store = useContext(DynamicFilterContext);
13
13
  if (!store)
14
14
  throw new Error("useDynamicFilterStore context must be use inside DynamicFilterContext");
15
- return useStore(store, selector, equalityFn ?? shallow);
15
+ return useStore(store, selector, shallow);
16
16
  }
17
17
  function updateAvailableFields(state) {
18
18
  state.availableFields = state.fields.filter((field) => {
@@ -2,9 +2,9 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { useEnvironment, useModuleDictionary } from "@m4l/core";
4
4
  import { useFormatter } from "@m4l/graphics";
5
- import { u as useDynamicFilterStore } from "../../store/index.49d1b77f.js";
6
- import { f as fieldFactory } from "../FieldTypes/index.5a0c7b12.js";
7
- import { A as AppliedFilterChipStyled, a as AppliedFilterChipIconStyled, b as AppliedFilterChipInfoStyled, c as AppliedFilterChipInfoFieldNameStyled, d as AppliedFilterChipInfoOperatorStyled, e as AppliedFilterChipInfoOperandsStyled, f as AppliedFilterChipRemoveButtonStyled } from "../../slots/dynamicFilterSlots.dd5824d5.js";
5
+ import { u as useDynamicFilterStore } from "../../store/index-BcaPHLdk.js";
6
+ import { f as fieldFactory } from "../FieldTypes/index-B6WQUIl7.js";
7
+ import { A as AppliedFilterChipStyled, a as AppliedFilterChipIconStyled, b as AppliedFilterChipInfoStyled, c as AppliedFilterChipInfoFieldNameStyled, d as AppliedFilterChipInfoOperatorStyled, e as AppliedFilterChipInfoOperandsStyled, f as AppliedFilterChipRemoveButtonStyled } from "../../slots/dynamicFilterSlots-BSCWv_Rw.js";
8
8
  function useAppliedFilterChip(filter) {
9
9
  const { host_static_assets, environment_assets } = useEnvironment();
10
10
  const { getLabel } = useModuleDictionary();
@@ -1,8 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { S as ScrollBar } from "../../../ScrollBar/index.11feff65.js";
3
- import { u as useDynamicFilterStore } from "../../store/index.49d1b77f.js";
4
- import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/dynamicFilterSlots.dd5824d5.js";
5
- import { A as AppliedFilterChip } from "../AppliedFilterChip/index.9e8fcc8c.js";
2
+ import { S as ScrollBar } from "../../../ScrollBar/index-BpTjE7o3.js";
3
+ import { u as useDynamicFilterStore } from "../../store/index-BcaPHLdk.js";
4
+ import { g as AppliedFiltersStyled, h as AppliedFilterInnerContainerStyled } from "../../slots/dynamicFilterSlots-BSCWv_Rw.js";
5
+ import { A as AppliedFilterChip } from "../AppliedFilterChip/index-BZAxYAp1.js";
6
6
  function useAppliedFilters() {
7
7
  const appliedFilter = useDynamicFilterStore((state) => state.appliedFilters);
8
8
  const isSkeleton = useDynamicFilterStore((state) => state.ownerState.isSkeleton);
@@ -1,12 +1,12 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { u as useDynamicFilterStore } from "../../store/index.49d1b77f.js";
3
- import { a as getPropDataTestId } from "../../../../test/getNameDataTestId.0faeade8.js";
4
- import { R as RootStyled, I as InnerContainerStyled } from "../../slots/dynamicFilterSlots.dd5824d5.js";
5
- import { D as DynamicFilterSlots } from "../../slots/SlotsEnum.104a03d4.js";
6
- import { I as InputFilter } from "../InputFilter/index.82d4ac5a.js";
7
- import { A as AppliedFilters } from "../AppliedFilters/index.3e52c5d7.js";
8
- import { F as FilterActions } from "../FilterActions/index.50c175e7.js";
9
- import { P as PopoverFilter } from "../PopoverFilter/index.fa62a6c3.js";
2
+ import { u as useDynamicFilterStore } from "../../store/index-BcaPHLdk.js";
3
+ import { a as getPropDataTestId } from "../../../../test/getNameDataTestId-BaBTWhBr.js";
4
+ import { R as RootStyled, I as InnerContainerStyled } from "../../slots/dynamicFilterSlots-BSCWv_Rw.js";
5
+ import { D as DynamicFilterSlots } from "../../slots/SlotsEnum-cawFeNzx.js";
6
+ import { I as InputFilter } from "../InputFilter/index-bbdBrHj0.js";
7
+ import { A as AppliedFilters } from "../AppliedFilters/index-DIFUGgys.js";
8
+ import { F as FilterActions } from "../FilterActions/index-D5edNMdo.js";
9
+ import { P as PopoverFilter } from "../PopoverFilter/index-CD3aGB5S.js";
10
10
  function useDynamicFilterBase() {
11
11
  const ownerState = useDynamicFilterStore((state) => state.ownerState);
12
12
  const dataTestId = useDynamicFilterStore((state) => state.dataTestId);
@@ -1,10 +1,10 @@
1
1
  import * as Yup from "yup";
2
- import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.94a74eb3.js";
3
- import { B as BOOLEAN_OPERATORS } from "../../../constants.095f1dbb.js";
2
+ import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-DbRGLe8j.js";
3
+ import { B as BOOLEAN_OPERATORS } from "../../../constants-ByqmFATV.js";
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
  import { useMemo } from "react";
6
6
  import { useModuleDictionary } from "@m4l/core";
7
- import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.089af1b8.js";
7
+ import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-BhbgwNUz.js";
8
8
  function BooleanFilter() {
9
9
  const { getLabel } = useModuleDictionary();
10
10
  const operators = useMemo(
@@ -113,6 +113,7 @@ class BooleanFilterHelpers {
113
113
  formValueOperand1: Yup.object().nullable().required(getLabel(`dynamic_filter.error_operand_required`))
114
114
  });
115
115
  }
116
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
116
117
  verifyFilter(filter, _field) {
117
118
  if (typeof filter.operator !== "string") {
118
119
  return false;
@@ -1,13 +1,13 @@
1
1
  import * as Yup from "yup";
2
- import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.94a74eb3.js";
3
- import { a as DATE_TIME_OPERATORS } from "../../../constants.095f1dbb.js";
2
+ import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-DbRGLe8j.js";
3
+ import { a as DATE_TIME_OPERATORS } from "../../../constants-ByqmFATV.js";
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
  import { useMemo } from "react";
6
6
  import { useFormContext, useWatch } from "react-hook-form";
7
7
  import { useModuleDictionary } from "@m4l/core";
8
- import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.089af1b8.js";
9
- import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index.118ebe6d.js";
10
- import { i as isValidDate } from "../../../../../utils/index.f77cc2ab.js";
8
+ import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-BhbgwNUz.js";
9
+ import { R as RHFDateTime } from "../../../../hook-form/RHFDateTime/index-BtfOlX4T.js";
10
+ import { i as isValidDate } from "../../../../../utils/index-DiMrtgIu.js";
11
11
  function DateTimeFilter() {
12
12
  const { getLabel } = useModuleDictionary();
13
13
  const { control } = useFormContext();
@@ -56,8 +56,8 @@ class DateTimeFilterHelpers {
56
56
  return DateTimeFilter;
57
57
  }
58
58
  getDefaultFilter(field, fixed) {
59
- const defaultStartDate = new Date();
60
- const defaultEndDate = new Date();
59
+ const defaultStartDate = /* @__PURE__ */ new Date();
60
+ const defaultEndDate = /* @__PURE__ */ new Date();
61
61
  defaultStartDate.setHours(0, 0, 0, 0);
62
62
  defaultEndDate.setHours(23, 59, 59, 999);
63
63
  const defaultOperand1 = field.defaultOperand1 && field.defaultOperand1 instanceof Date ? field.defaultOperand1 : defaultStartDate;
@@ -76,8 +76,8 @@ class DateTimeFilterHelpers {
76
76
  getFormValue(field, getLabel, filterValueDateTime) {
77
77
  const filterValue = filterValueDateTime;
78
78
  const operator = filterValue ? filterValue.operator : field.defaultOperator ?? "b";
79
- const defaultStartDate = new Date();
80
- const defaultEndDate = new Date();
79
+ const defaultStartDate = /* @__PURE__ */ new Date();
80
+ const defaultEndDate = /* @__PURE__ */ new Date();
81
81
  const defaultOperand1 = field.defaultOperand1 && field.defaultOperand1 instanceof Date ? field.defaultOperand1 : defaultStartDate;
82
82
  const defaultOperand2 = field.defaultOperand2 && field.defaultOperand2 instanceof Date ? field.defaultOperand2 : defaultEndDate;
83
83
  const formValueOperand1 = filterValue ? filterValue.operand1 : defaultOperand1;
@@ -141,6 +141,7 @@ class DateTimeFilterHelpers {
141
141
  })
142
142
  });
143
143
  }
144
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
144
145
  verifyFilter(filter, _field) {
145
146
  if (typeof filter.operator !== "string") {
146
147
  return false;
@@ -1,12 +1,12 @@
1
1
  import * as Yup from "yup";
2
- import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.94a74eb3.js";
2
+ import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-DbRGLe8j.js";
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
  import { useMemo } from "react";
5
5
  import { useFormContext, useWatch } from "react-hook-form";
6
6
  import { useModuleDictionary } from "@m4l/core";
7
- import { N as NUMBER_OPERATORS } from "../../../constants.095f1dbb.js";
8
- import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.089af1b8.js";
9
- import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.80b98b98.js";
7
+ import { N as NUMBER_OPERATORS } from "../../../constants-ByqmFATV.js";
8
+ import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-BhbgwNUz.js";
9
+ import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index-Cz7BMTLe.js";
10
10
  function NumberFilter() {
11
11
  const { getLabel } = useModuleDictionary();
12
12
  const { control } = useFormContext();
@@ -131,6 +131,7 @@ class NumberFilterHelpers {
131
131
  })
132
132
  });
133
133
  }
134
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
134
135
  verifyFilter(filter, _field) {
135
136
  if (typeof filter.operator !== "number") {
136
137
  return false;
@@ -1,17 +1,17 @@
1
1
  import * as Yup from "yup";
2
- import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.94a74eb3.js";
2
+ import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-DbRGLe8j.js";
3
3
  import { jsxs, jsx } from "react/jsx-runtime";
4
4
  import { useMemo } from "react";
5
5
  import { useModuleDictionary } from "@m4l/core";
6
- import { S as SELECT_OPERATORS } from "../../../constants.095f1dbb.js";
7
- import { u as useDynamicFilterStore } from "../../../store/index.49d1b77f.js";
8
- import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.089af1b8.js";
9
- import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index.f05b6fe3.js";
6
+ import { S as SELECT_OPERATORS } from "../../../constants-ByqmFATV.js";
7
+ import { u as useDynamicFilterStore } from "../../../store/index-BcaPHLdk.js";
8
+ import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-BhbgwNUz.js";
9
+ import { R as RHFAutocompleteAsync } from "../../../../hook-form/RHFAutocompleteAsync/index-BnUgdSnR.js";
10
10
  function SelectFilter() {
11
11
  const { getLabel } = useModuleDictionary();
12
12
  const field = useDynamicFilterStore((state) => state.popoverFilterData?.field);
13
13
  if (!field?.selectOptions?.endPoint) {
14
- throw new Error("El filtro tipo Select requiere la configuraci\xF3n del Endpoint");
14
+ throw new Error("El filtro tipo Select requiere la configuración del Endpoint");
15
15
  }
16
16
  const autocompleteProps = field?.selectOptions;
17
17
  const operators = useMemo(
@@ -1,11 +1,11 @@
1
1
  import * as Yup from "yup";
2
- import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary.94a74eb3.js";
3
- import { b as STRING_OPERATORS } from "../../../constants.095f1dbb.js";
2
+ import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../../dictionary-DbRGLe8j.js";
3
+ import { b as STRING_OPERATORS } from "../../../constants-ByqmFATV.js";
4
4
  import { jsxs, jsx } from "react/jsx-runtime";
5
5
  import { useMemo } from "react";
6
6
  import { useModuleDictionary } from "@m4l/core";
7
- import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index.089af1b8.js";
8
- import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index.80b98b98.js";
7
+ import { R as RHFAutocomplete } from "../../../../hook-form/RHFAutocomplete/index-BhbgwNUz.js";
8
+ import { R as RHFTextField } from "../../../../hook-form/RHFTextField/index-Cz7BMTLe.js";
9
9
  function StringFilter() {
10
10
  const { getLabel } = useModuleDictionary();
11
11
  const operators = useMemo(
@@ -95,6 +95,7 @@ class StringFilterHelpers {
95
95
  )
96
96
  });
97
97
  }
98
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
98
99
  verifyFilter(filter, _field) {
99
100
  if (typeof filter.operator !== "string") {
100
101
  return false;
@@ -1,11 +1,11 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect } from "react";
3
3
  import { useFormContext } from "react-hook-form";
4
- import { B as BooleanFilterHelpers } from "./BooleanFilter/index.11f588b4.js";
5
- import { S as StringFilterHelpers } from "./StringFilter/index.0ae3d439.js";
6
- import { D as DateTimeFilterHelpers } from "./DateTimeFilter/index.77555163.js";
7
- import { N as NumberFilterHelpers } from "./NumberFilter/index.1c8454db.js";
8
- import { S as SelectFilterHelpers } from "./SelectFilter/index.cb31333a.js";
4
+ import { B as BooleanFilterHelpers } from "./BooleanFilter/index-DFHDm1e4.js";
5
+ import { S as StringFilterHelpers } from "./StringFilter/index-DF7EGeSx.js";
6
+ import { D as DateTimeFilterHelpers } from "./DateTimeFilter/index-Hn2Rzovd.js";
7
+ import { N as NumberFilterHelpers } from "./NumberFilter/index-B5F1Ji7m.js";
8
+ import { S as SelectFilterHelpers } from "./SelectFilter/index-BQlxIk_N.js";
9
9
  const helpersStrategies = {
10
10
  boolean: new BooleanFilterHelpers(),
11
11
  string: new StringFilterHelpers(),
@@ -1,9 +1,9 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useEnvironment } from "@m4l/core";
3
- import { u as useDynamicFilterStore } from "../../store/index.49d1b77f.js";
4
- import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary.94a74eb3.js";
3
+ import { u as useDynamicFilterStore } from "../../store/index-BcaPHLdk.js";
4
+ import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary-DbRGLe8j.js";
5
5
  import { Skeleton } from "@mui/material";
6
- import { i as ActionsSkeletonButtonStyled, j as ActionsStyled, k as ActionsClearButtonStyled, l as ActionsSubmitButtonStyled } from "../../slots/dynamicFilterSlots.dd5824d5.js";
6
+ import { i as ActionsSkeletonButtonStyled, j as ActionsStyled, k as ActionsClearButtonStyled, l as ActionsSubmitButtonStyled } from "../../slots/dynamicFilterSlots-BSCWv_Rw.js";
7
7
  const ASSETS_URL = "frontend/components/dynamic_filter/assets/icons";
8
8
  const ASSETS = {
9
9
  refresh: "restart.svg",
@@ -1,12 +1,12 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
4
- import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary.94a74eb3.js";
5
- import { u as useDynamicFilterStore } from "../../store/index.49d1b77f.js";
6
- import { A as ALL_FIELD } from "../../constants.095f1dbb.js";
4
+ import { g as getDynamicFilterDictionary, D as DICCTIONARY } from "../../dictionary-DbRGLe8j.js";
5
+ import { u as useDynamicFilterStore } from "../../store/index-BcaPHLdk.js";
6
+ import { A as ALL_FIELD } from "../../constants-ByqmFATV.js";
7
7
  import { Skeleton } from "@mui/material";
8
- import { m as InputFilterStyled, n as InputFilterIconStyled, o as InputFilterInputStyled } from "../../slots/dynamicFilterSlots.dd5824d5.js";
9
- import { P as PopoverMenuFields } from "../PopoverMenuFields/index.e5e439f1.js";
8
+ import { m as InputFilterStyled, n as InputFilterIconStyled, o as InputFilterInputStyled } from "../../slots/dynamicFilterSlots-BSCWv_Rw.js";
9
+ import { P as PopoverMenuFields } from "../PopoverMenuFields/index-MiYNpAu0.js";
10
10
  function useInputFilter() {
11
11
  const [selectedFieldIndex, setSelectedFieldIndex] = useState(-1);
12
12
  const [filteredFields, setFilteredFields] = useState([]);
@@ -42,8 +42,7 @@ function useInputFilter() {
42
42
  }, [anchorEl, inputData, availableFields, getLabel]);
43
43
  function handleOpenPopUpClickItem(field) {
44
44
  closePopoverMenuFields();
45
- if (anchorEl)
46
- showPopoverFilterForAdd(anchorEl(), field);
45
+ if (anchorEl) showPopoverFilterForAdd(anchorEl(), field);
47
46
  }
48
47
  const inputHandlersProps = {
49
48
  onFocus: (event) => {
@@ -81,8 +80,7 @@ function useInputFilter() {
81
80
  if (event.key === "Escape") {
82
81
  closePopoverMenuFields();
83
82
  }
84
- if (event.key !== "Enter")
85
- return;
83
+ if (event.key !== "Enter") return;
86
84
  if (selectedFieldIndex === -1) {
87
85
  if (inputData.trim() === "") {
88
86
  closePopoverMenuFields();
@@ -107,13 +105,37 @@ function useInputFilter() {
107
105
  }
108
106
  };
109
107
  return {
108
+ /**
109
+ * URL del icono del inputFilter
110
+ */
110
111
  iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/dynamic_filter/assets/icons/filter.svg`,
112
+ /**
113
+ * Si es esqueleto mostrar la versión de esqueleton
114
+ */
111
115
  isSkeleton,
116
+ /**
117
+ * Texto de placeholder del inputFilter
118
+ */
112
119
  inputPlaceHolder: getLabel(getDynamicFilterDictionary(DICCTIONARY.input_placeholder)),
120
+ /**
121
+ * Texto del inputFilter
122
+ */
113
123
  inputData,
124
+ /**
125
+ * Props para el handler de eventos del inputFilter
126
+ */
114
127
  inputHandlersProps,
128
+ /**
129
+ * Si no hay campos disponibles y no se permite filtrar por todos, no se renderiza el inputFilter
130
+ */
115
131
  canRender: !(!withAllField && availableFields.length === 0),
132
+ /**
133
+ * Campos filtrados por el inputFilter
134
+ */
116
135
  filteredFields,
136
+ /**
137
+ * Indice del campo seleccionado
138
+ */
117
139
  selectedFieldIndex
118
140
  };
119
141
  }
@@ -142,8 +164,7 @@ const InputFilter = () => {
142
164
  filteredFields,
143
165
  selectedFieldIndex
144
166
  } = useInputFilter();
145
- if (!canRender)
146
- return null;
167
+ if (!canRender) return null;
147
168
  if (isSkeleton) {
148
169
  return /* @__PURE__ */ jsx(InputFilterStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(InputFilterSkeleton, {}) });
149
170
  }
@@ -162,7 +183,6 @@ const InputFilter = () => {
162
183
  /* @__PURE__ */ jsx(PopoverMenuFields, { fields: filteredFields, selectFieldIndex: selectedFieldIndex })
163
184
  ] });
164
185
  };
165
- const InputFilter$1 = InputFilter;
166
186
  export {
167
- InputFilter$1 as I
187
+ InputFilter as I
168
188
  };
@@ -1,12 +1,12 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useMemo, useCallback } from "react";
3
3
  import { useModuleDictionary } from "@m4l/core";
4
- import { u as useDynamicFilterStore } from "../../store/index.49d1b77f.js";
5
- import { f as fieldFactory, D as DataTypeComponent } from "../FieldTypes/index.5a0c7b12.js";
6
- import { P as PopoverStyled, p as PopoverHeaderStyled, q as PopoverHeaderIconStyled, r as PopoverHeaderTitleStyled, s as PopoverContainerFieldsStyled, t as PopoverHeaderActionsStyled } from "../../slots/dynamicFilterSlots.dd5824d5.js";
7
- import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.f9d41b99.js";
8
- import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.e67885bc.js";
9
- import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.e58eb0c4.js";
4
+ import { u as useDynamicFilterStore } from "../../store/index-BcaPHLdk.js";
5
+ import { f as fieldFactory, D as DataTypeComponent } from "../FieldTypes/index-B6WQUIl7.js";
6
+ import { P as PopoverStyled, p as PopoverHeaderStyled, q as PopoverHeaderIconStyled, r as PopoverHeaderTitleStyled, s as PopoverContainerFieldsStyled, t as PopoverHeaderActionsStyled } from "../../slots/dynamicFilterSlots-BSCWv_Rw.js";
7
+ import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index-B4a0h0fX.js";
8
+ import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index-BlaMdPmp.js";
9
+ import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index-DGooFqVu.js";
10
10
  function usePopoverFilter() {
11
11
  let anchorEl;
12
12
  let field;
@@ -72,6 +72,7 @@ function usePopoverFilter() {
72
72
  const filterField = { ...filterFormValue, ...dataFieldValues };
73
73
  const newFilter = {
74
74
  ...formFilter,
75
+ // todo: mejorar el tipado que se le envía a getFilterFromFormValue
75
76
  ...fieldFactory(filterField.fieldType).getFilterFromFormValue(filterField),
76
77
  isSet: true
77
78
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useModuleDictionary } from "@m4l/core";
3
- import { u as useDynamicFilterStore } from "../../store/index.49d1b77f.js";
4
- import { u as PopoverMenuStyled, v as PopoverMenuItemStyled, w as PopoverMenuItemIconStyled, x as PopoverMenuItemLabelStyled } from "../../slots/dynamicFilterSlots.dd5824d5.js";
3
+ import { u as useDynamicFilterStore } from "../../store/index-BcaPHLdk.js";
4
+ import { u as PopoverMenuStyled, v as PopoverMenuItemStyled, w as PopoverMenuItemIconStyled, x as PopoverMenuItemLabelStyled } from "../../slots/dynamicFilterSlots-BSCWv_Rw.js";
5
5
  function usePopoverMenuFields() {
6
6
  const { getLabel } = useModuleDictionary();
7
7
  const fnAnchorEl = useDynamicFilterStore((state) => state.fnAnchorEl);
@@ -1,20 +1,22 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useEnvironment, useModuleSkeleton } from "@m4l/core";
3
- import { F as FieldLabelRoot } from "../../styles/index.db9e7ddb.js";
3
+ import { F as FieldLabelRoot } from "../../styles/index-Cc9p_h7i.js";
4
4
  import { generateUtilityClasses, Tooltip, Skeleton } from "@mui/material";
5
5
  import { unstable_composeClasses } from "@mui/base";
6
- import { g as getComponentUtilityClass } from "../../utils/index.f77cc2ab.js";
6
+ import { g as getComponentUtilityClass } from "../../utils/index-DiMrtgIu.js";
7
7
  import clsx from "clsx";
8
- import { T as Typography } from "../mui_extended/Typography/index.8c0801e4.js";
9
- import { I as Icon } from "../Icon/index.c06685f4.js";
8
+ import { T as Typography } from "../mui_extended/Typography/index-DKPqV11f.js";
9
+ import { I as Icon } from "../Icon/index-CedboS6y.js";
10
10
  const componentName = "M4LFieldLabel";
11
11
  generateUtilityClasses(componentName, [
12
+ /* elements */
12
13
  "root",
13
14
  "label",
14
15
  "tooltip",
15
16
  "tooltipIcon",
16
17
  "containerIcon",
17
18
  "mandatory"
19
+ /* states or variants of elements */
18
20
  ]);
19
21
  const useUtilityClasses = () => {
20
22
  const slots = {