@m4l/components 3.0.0 → 3.0.2

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 (225) hide show
  1. package/@types/types.d.ts +31 -8
  2. package/components/AccountPopover/{index.af5aae0e.js → index-vXlaw69C.js} +7 -5
  3. package/components/AppBar/{index.b8f22046.js → index-3gXtikUI.js} +7 -5
  4. package/components/BaseModule/{index.f7a04fe7.js → index-CtN6b__U.js} +1 -1
  5. package/components/CommonActions/components/ActionCancel/{index.e67885bc.js → index-D_42VfUR.js} +2 -2
  6. package/components/CommonActions/components/ActionFormCancel/{index.92988013.js → index-DL7fDBi6.js} +5 -5
  7. package/components/CommonActions/components/ActionFormIntro/{index.f8867ae9.js → index-i3HmOpoU.js} +2 -2
  8. package/components/CommonActions/components/ActionIntro/{index.e58eb0c4.js → index-i5875EXe.js} +3 -3
  9. package/components/CommonActions/components/Actions/{index.f674be30.js → index-ChW1FuFf.js} +5 -3
  10. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.89a59c52.js → index-BjkuIa7y.js} +1 -1
  11. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.d619d1db.js → index-CWQp1KWU.js} +1 -1
  12. package/components/DataGrid/formatters/ColumnDateFormatter/{index.e00d0cf2.js → index-CKg8CJ6A.js} +1 -1
  13. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.557bc8a5.js → index-DggW8-4n.js} +1 -1
  14. package/components/DataGrid/formatters/ColumnNestedValueFormatter/{index.880e743b.js → index-BslXGK-A.js} +1 -1
  15. package/components/DataGrid/formatters/ColumnPointsFormatter/{index.ab152484.js → index-BXGW2CsK.js} +1 -1
  16. package/components/DataGrid/formatters/ColumnPriceFormatter/{index.bf9d9e60.js → index-O11tBykn.js} +1 -1
  17. package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.4045b2f2.js → index-BaCawLr1.js} +1 -1
  18. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.a87302d1.js → index-Cq7a-jnE.js} +1 -1
  19. package/components/DataGrid/formatters/{index.06c18753.js → index-B3AsHKeD.js} +2 -2
  20. package/components/DataGrid/{index.b37d6cab.js → index-EgaRUtbL.js} +33 -26
  21. package/components/DataGrid/subcomponents/Actions/{index.c3b1c1e2.js → index-BF4pV_-K.js} +22 -26
  22. package/components/DataGrid/subcomponents/editors/TextEditor/{index.3f0d9e28.js → index-BIFm8akr.js} +4 -0
  23. package/components/DragResizeWindow/{index.a4bcaab8.js → index-D2jLYExo.js} +25 -6
  24. package/components/DynamicFilter/{dictionary.94a74eb3.js → dictionary-B2qYGLOx.js} +2 -2
  25. package/components/DynamicFilter/{index.b07b567a.js → index-BLjn97jC.js} +7 -8
  26. package/components/DynamicFilter/slots/{dynamicFilterSlots.dd5824d5.js → dynamicFilterSlots-CaFVu7xW.js} +8 -8
  27. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
  28. package/components/DynamicFilter/store/{index.49d1b77f.js → index-EW1sL9gf.js} +3 -3
  29. package/components/DynamicFilter/subcomponents/AppliedFilterChip/{index.9e8fcc8c.js → index-DjgwIwH9.js} +3 -3
  30. package/components/DynamicFilter/subcomponents/AppliedFilters/{index.3e52c5d7.js → index-Cfcgzcw7.js} +4 -4
  31. package/components/DynamicFilter/subcomponents/DynamicFilterBase/{index.68d855e9.js → index-BFcVswNb.js} +8 -8
  32. package/components/DynamicFilter/subcomponents/FieldTypes/BooleanFilter/{index.11f588b4.js → index-B4mhUk9e.js} +4 -3
  33. package/components/DynamicFilter/subcomponents/FieldTypes/DateTimeFilter/{index.77555163.js → index-CA3JDlD0.js} +10 -9
  34. package/components/DynamicFilter/subcomponents/FieldTypes/NumberFilter/{index.1c8454db.js → index-B4R83Pyi.js} +5 -4
  35. package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/{index.cb31333a.js → index-1XC3u2dm.js} +6 -6
  36. package/components/DynamicFilter/subcomponents/FieldTypes/StringFilter/{index.0ae3d439.js → index-BEMRO3Ng.js} +5 -4
  37. package/components/DynamicFilter/subcomponents/FieldTypes/{index.5a0c7b12.js → index-Cfs28hud.js} +5 -5
  38. package/components/DynamicFilter/subcomponents/FilterActions/{index.50c175e7.js → index-CYY3cjbX.js} +3 -3
  39. package/components/DynamicFilter/subcomponents/InputFilter/{index.82d4ac5a.js → index-CAdtxARw.js} +33 -13
  40. package/components/DynamicFilter/subcomponents/PopoverFilter/{index.fa62a6c3.js → index-COoNIh4L.js} +7 -6
  41. package/components/DynamicFilter/subcomponents/PopoverMenuFields/{index.e5e439f1.js → index-Kz-jfM3o.js} +2 -2
  42. package/components/FieldLabel/{index.9a979def.js → index-DCAMDJoJ.js} +6 -4
  43. package/components/GridLayout/{index.dd291886.js → index-DUfp2sP_.js} +51 -72
  44. package/components/GridLayout/subcomponents/Griditem/{index.10278655.js → index-DEi0Ai1D.js} +11 -13
  45. package/components/GridLayout/subcomponents/Responsive/{index.24857a52.js → index-B7v5X9un.js} +7 -7
  46. package/components/GridLayout/subcomponents/SizeProvider/{index.2f762118.js → index-BsKaLKRl.js} +15 -9
  47. package/components/HelperText/{index.6818980e.js → index-DVV5Jfc8.js} +10 -3
  48. package/components/Icon/{index.c06685f4.js → index-CueLDD9j.js} +9 -4
  49. package/components/Image/{index.ae542f70.js → index-By5vsRzf.js} +40 -31
  50. package/components/LanguagePopover/index-Dn2JPzf1.js +179 -0
  51. package/components/LinearProgressIndeterminate/{index.ca78fd37.js → index-CTlvokQp.js} +5 -3
  52. package/components/Loadable/{index.e83cdb4e.js → index-BMbi9ISF.js} +1 -1
  53. package/components/LoadingError/{index.765ff885.js → index-CXVOiscg.js} +8 -6
  54. package/components/MFIsolationApp/{index.677d9e93.js → index-BfFMo2Q2.js} +5 -5
  55. package/components/MFLoader/{index.6af7729c.js → index-CCtU6zwR.js} +36 -15
  56. package/components/ModalDialog/{index.a57ee020.js → index-KryIxH_j.js} +6 -6
  57. package/components/NavLink/{index.dd723dfd.js → index-D6eiKlc0.js} +5 -3
  58. package/components/NoItemSelected/{index.b3e365b1.js → index-DKhhgTAH.js} +3 -1
  59. package/components/ObjectLogs/{index.54fdee14.js → index-CpBmanv0.js} +19 -12
  60. package/components/PDFViewer/{index.7932d07b.js → index-3PBUibum.js} +4 -2
  61. package/components/Page/{index.5f2963f3.js → index-PXQkJn7v.js} +11 -8
  62. package/components/PaperForm/{index.cdb1f846.js → index-B6a3-CZt.js} +4 -2
  63. package/components/Period/{index.b0b2a03b.js → index-DtFWU3y5.js} +20 -31
  64. package/components/PrintingSystem/{index.800a7957.js → index-DJmGF2SQ.js} +16 -14
  65. package/components/PrintingSystem/subcomponents/BodyNode/{index.60ad80bd.js → index-DorXm6AO.js} +1 -1
  66. package/components/PrintingSystem/subcomponents/ChartNode/{index.d4aa116e.js → index-Cd9H-_3i.js} +3 -1
  67. package/components/PrintingSystem/subcomponents/DividerNode/{index.142bbf1a.js → index-Dm-RAH_l.js} +1 -1
  68. package/components/PrintingSystem/subcomponents/FooterNode/{index.d16d2c5e.js → index-BPg-NpDf.js} +1 -1
  69. package/components/PrintingSystem/subcomponents/GridNode/{index.044363bf.js → index-u0ZSP6s4.js} +6 -2
  70. package/components/PrintingSystem/subcomponents/HeaderNode/{index.5581a84d.js → index-C7eFFsTN.js} +1 -1
  71. package/components/PrintingSystem/subcomponents/PaperNode/{index.2994c128.js → index-D7M4YL4C.js} +1 -1
  72. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.166d7264.js → index-Drjfhq-n.js} +1 -1
  73. package/components/PrintingSystem/subcomponents/SectionNode/{index.642ab1b7.js → index-Banh4UxX.js} +1 -1
  74. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.d8a2a0af.js → index-OBnZLPEc.js} +1 -1
  75. package/components/PropertyValue/{index.d81eae0a.js → index-Cc7y20oI.js} +7 -5
  76. package/components/Resizeable/{index.df2f3bb8.js → index-BwQ6EKCK.js} +1 -1
  77. package/components/ScrollBar/{index.11feff65.js → index-P3SkjYOy.js} +3 -1
  78. package/components/SideBar/{index.990e8667.js → index-Ddxe1VvL.js} +100 -74
  79. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ItemListRoot/subcomponents/NavListSub/subcomponents/NavItemSub/subcomponents/NavItemSubContent/styles.d.ts +1 -1
  80. package/components/SplitLayout/{index.b247de95.js → index-CwmZT1x6.js} +5 -3
  81. package/components/ToastContainer/{index.c1657bde.js → index-DN3ZHpBT.js} +3 -3
  82. package/components/animate/LoadingScreen/{index.36a63311.js → index-CcjW-mkl.js} +1 -1
  83. package/components/animate/MotionContainer/{index.3032bd8f.js → index-eartnWyO.js} +1 -1
  84. package/components/animate/MotionLazyContainer/{index.d2902a6c.js → index-Be8osTiG.js} +1 -1
  85. package/components/animate/PropagateLoader/{index.a9da8d00.js → index-Bkq8V2SN.js} +1 -1
  86. package/components/animate/{index.ceb7669a.js → index-DsolrzTC.js} +1 -1
  87. package/components/animate/variants/{bounce.784aaaaa.js → bounce-DanQqHAX.js} +3 -1
  88. package/components/animate/variants/{fade.b561c0fc.js → fade-CAOJNn06.js} +3 -1
  89. package/components/areas/components/AreasAdmin/{index.b232384d.js → index-Y6S0Q7TN.js} +21 -19
  90. package/components/areas/components/AreasViewer/{index.d45bfcd2.js → index-DfcpQwSl.js} +67 -64
  91. package/components/areas/contexts/AreasContext/{index.9edd84c3.js → index-spCQnOlk.js} +180 -16
  92. package/components/areas/contexts/AreasContext/types.d.ts +1 -0
  93. package/components/areas/contexts/WindowToolsMFContext/types.d.ts +5 -0
  94. package/components/areas/hooks/index.d.ts +1 -0
  95. package/components/areas/hooks/useAreas/{index.5a57ab76.js → index-D6DaWBIP.js} +2 -3
  96. package/components/areas/hooks/useDynamicMFParameters/{index.9e09e1e3.js → index-DhbcZPs9.js} +1 -1
  97. package/components/areas/hooks/useSetWindowsTitle/index.d.ts +1 -0
  98. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle-BzPD-miW.js +31 -0
  99. package/components/areas/hooks/useSetWindowsTitle/useSetWindowsTitle.d.ts +3 -0
  100. package/components/areas/hooks/useWindowToolsMF/{index.2fbae9dc.js → index-BECQfhbC.js} +2 -3
  101. package/components/commercial/AppBarCommercial/{index.b4f6147e.js → index-D1jIOw7M.js} +4 -2
  102. package/components/commercial/SectionCommercial/{index.a250338c.js → index-C9THYik8.js} +4 -2
  103. package/components/commercial/TopBar/{index.4fdd66e5.js → index-DLn3yEcX.js} +13 -11
  104. package/components/commercial/{index.be1af158.js → index-D1bCIF7p.js} +4 -4
  105. package/components/formatters/BooleanFormatter/{index.91435984.js → index-Bc2l6GTX.js} +3 -3
  106. package/components/formatters/DateFormatter/{index.2ef6f261.js → index-CGcRZ8BA.js} +1 -1
  107. package/components/formatters/PointsFormatter/{index.51cd6774.js → index-C7sR8iqk.js} +1 -1
  108. package/components/formatters/PriceFormatter/{index.97f75b4b.js → index-CsvRawmc.js} +1 -1
  109. package/components/formatters/UncertaintyFormatter/{index.c3ffdebc.js → index-B9ESVEVp.js} +4 -4
  110. package/components/formatters/{index.64017cc1.js → index-Botdzyt2.js} +13 -19
  111. package/components/hook-form/HelperError/{index.360f8fb7.js → index-J-C5u9AH.js} +1 -1
  112. package/components/hook-form/RHFAutocomplete/{index.089af1b8.js → index-erpzYu8W.js} +20 -20
  113. package/components/hook-form/RHFAutocompleteAsync/{index.f05b6fe3.js → index-BV0f25eK.js} +5 -3
  114. package/components/hook-form/RHFCheckbox/{index.4cefbad2.js → index-Duf51-pS.js} +53 -46
  115. package/components/hook-form/RHFCheckbox/styles.d.ts +1 -1
  116. package/components/hook-form/RHFColorPicker/{index.ed380b30.js → index-C-tITRAx.js} +8 -6
  117. package/components/hook-form/RHFDateTime/{index.118ebe6d.js → index-OdXKdhJS.js} +7 -5
  118. package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +1 -0
  119. package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnnerEnum.d.ts +9 -0
  120. package/components/hook-form/RHFInputNumberSpinner/types.d.ts +21 -0
  121. package/components/hook-form/RHFPeriod/{index.404ba4c6.js → index-CjkIGYUY.js} +6 -4
  122. package/components/hook-form/RHFRadioGroup/{index.591f779d.js → index-Da_2zFu3.js} +1 -1
  123. package/components/hook-form/RHFTextField/index-BWZWPFn5.js +337 -0
  124. package/components/hook-form/RHFUpload/{index.7b7ee732.js → index-D4nrnFFT.js} +10 -8
  125. package/components/maps/components/GpsTools/{index.c1198f79.js → index-DPY-BjB8.js} +102 -32
  126. package/components/maps/components/Map/{index.8c947175.js → index-BRrVIyA-.js} +263 -73
  127. package/components/modal/{WindowBase.00b9e5f1.js → WindowBase-Ce6yRLcN.js} +4 -4
  128. package/components/modal/{WindowConfirm.abf49573.js → WindowConfirm-BaB3Ojgu.js} +8 -7
  129. package/components/modal/{index.81eb6def.js → index-CydPIpKZ.js} +2 -0
  130. package/components/mui_extended/Accordion/{index.26524ecd.js → index-D1775s1J.js} +8 -6
  131. package/components/mui_extended/Avatar/{index.e7bcc850.js → index-n5hK7nJD.js} +5 -2
  132. package/components/mui_extended/Badge/{index.48948839.js → index-Dfdw5Iaq.js} +4 -2
  133. package/components/mui_extended/Breadcrumbs/{index.4a44883c.js → index-DTS7rOZH.js} +1 -2
  134. package/components/mui_extended/Button/{index.3d14e3e9.js → index-CksGG1B8.js} +33 -13
  135. package/components/mui_extended/Button/styles.d.ts +1 -1
  136. package/components/mui_extended/{CheckBox.5dc01b37.js → CheckBox-CjxjIrmN.js} +4 -2
  137. package/components/mui_extended/IconButton/{index.7b6c1ee3.js → index-OMq0pPK0.js} +42 -22
  138. package/components/mui_extended/IconButton/types.d.ts +18 -0
  139. package/components/mui_extended/MenuActions/MenuActions.d.ts +5 -0
  140. package/components/mui_extended/MenuActions/constant.d.ts +5 -0
  141. package/components/mui_extended/MenuActions/dictionary.d.ts +7 -0
  142. package/components/mui_extended/MenuActions/index-De7dpdBH.js +202 -0
  143. package/components/mui_extended/MenuActions/index.d.ts +2 -5
  144. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +9 -0
  145. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +24 -0
  146. package/components/mui_extended/MenuActions/slots/index.d.ts +2 -0
  147. package/components/mui_extended/MenuActions/types.d.ts +11 -2
  148. package/components/mui_extended/Pager/{index.b28a2103.js → index-k7SRq6Jo.js} +8 -5
  149. package/components/mui_extended/Popover/{index.a7da93f1.js → index-BnKsmvtw.js} +39 -27
  150. package/components/mui_extended/Stack/{index.99de8138.js → index-C9YEChZB.js} +3 -1
  151. package/components/mui_extended/Tab/{index.5c6a6801.js → index-CpdHav0V.js} +9 -3
  152. package/components/mui_extended/Tabs/styles.d.ts +1 -1
  153. package/components/mui_extended/ToggleButton/{index.86098567.js → index-CS1mz-lH.js} +2 -2
  154. package/components/mui_extended/ToggleIconButton/{index.cbfe1cad.js → index-BNQrQ6-b.js} +3 -2
  155. package/components/mui_extended/Tooltip/{index.49bb5ee1.js → index-B8QUytCK.js} +2 -0
  156. package/components/mui_extended/Typography/{index.8c0801e4.js → index-W88rbpsJ.js} +4 -2
  157. package/components/popups/PopupsProvider/{index.9a23e1d0.js → index-DhSxmtfJ.js} +1 -2
  158. package/components/popups/PopupsViewer/{index.52653047.js → index-Dn0XOI6q.js} +10 -7
  159. package/components/popups/PopupsViewer/slots/{popupsViewerSlots.69dd2614.js → popupsViewerSlots-Db8QAmEE.js} +4 -4
  160. package/contexts/ModalContext/{index.799110fe.js → index-DkUBXDpR.js} +1 -1
  161. package/contexts/RHFormContext/{index.f9d41b99.js → index-Ct48jRjb.js} +3 -1
  162. package/hooks/index.d.ts +1 -0
  163. package/hooks/useFormAddEdit/{index.8947ee59.js → index-BkBJNq8b.js} +2 -2
  164. package/hooks/useInterval/index.d.ts +7 -0
  165. package/hooks/useModal/{index.eb857f6e.js → index-CTAwKk5D.js} +2 -3
  166. package/hooks/useSizeContainer/{index.3c48670c.js → index-D4hDjM1P.js} +2 -0
  167. package/hooks/useTab/{index.9ad15247.js → index-PXnpiLMx.js} +1 -1
  168. package/index.js +153 -244
  169. package/package.json +1 -1
  170. package/{react-data-grid.c5377916.js → react-data-grid-BfYuZ6AK.js} +59 -110
  171. package/{react-draggable.079122b0.js → react-draggable-DsCPdgQP.js} +238 -57
  172. package/{react-json-view.57125fcf.js → react-json-view-bhqIAaNg.js} +277 -467
  173. package/{react-resizable.330f1499.js → react-resizable-eBbFl2dX.js} +75 -37
  174. package/{react-spinners.342a6578.js → react-spinners-TpKN9lZg.js} +6 -8
  175. package/{react-splitter-layout.8b1655c8.js → react-splitter-layout-C-JTsNGs.js} +14 -23
  176. package/style.css +1 -65
  177. package/styles/{DynamicFilter.0713a406.js → DynamicFilter-CJFsIegc.js} +1 -1
  178. package/styles/MenuActions.styles.d.ts +2 -0
  179. package/styles/{index.db9e7ddb.js → index-C-MsxWtr.js} +90 -25
  180. package/utils/{index.f77cc2ab.js → index-DiMrtgIu.js} +26 -51
  181. package/components/LanguagePopover/index.2a7e40fc.js +0 -168
  182. package/components/hook-form/RHFTextField/index.80b98b98.js +0 -296
  183. package/components/mui_extended/MenuActions/classes/constants.d.ts +0 -1
  184. package/components/mui_extended/MenuActions/classes/index.d.ts +0 -7
  185. package/components/mui_extended/MenuActions/classes/types.d.ts +0 -7
  186. package/components/mui_extended/MenuActions/icons.d.ts +0 -3
  187. package/components/mui_extended/MenuActions/index.11d777bb.js +0 -167
  188. package/components/mui_extended/MenuActions/styles.d.ts +0 -5
  189. /package/{commonjs.565e6834.js → commonjs-BfYxJMv3.js} +0 -0
  190. /package/components/DataGrid/{constants.e334cd50.js → constants-8L7QgBKi.js} +0 -0
  191. /package/components/DynamicFilter/{constants.095f1dbb.js → constants-ByqmFATV.js} +0 -0
  192. /package/components/DynamicFilter/slots/{SlotsEnum.104a03d4.js → SlotsEnum-cawFeNzx.js} +0 -0
  193. /package/components/DynamicFilter/slots/{index.36b12be1.js → index-l0sNRNKZ.js} +0 -0
  194. /package/components/ScrollToTop/{index.e06f98f6.js → index-TxORk5dB.js} +0 -0
  195. /package/components/WrapperComponent/{index.57964195.js → index-BHV-CsDU.js} +0 -0
  196. /package/components/animate/{features.0fbf41e1.js → features-BbnE33u3.js} +0 -0
  197. /package/components/animate/variants/{container.11f82b76.js → container-Dmpr6tg5.js} +0 -0
  198. /package/components/animate/variants/{index.7a912140.js → index-l0sNRNKZ.js} +0 -0
  199. /package/components/animate/variants/{transition.bd46b9ce.js → transition-B9W5SWTa.js} +0 -0
  200. /package/components/areas/components/{index.558684b3.js → index-l0sNRNKZ.js} +0 -0
  201. /package/components/areas/{constants.66529246.js → constants-rqODZNZe.js} +0 -0
  202. /package/components/areas/contexts/DynamicMFParmsContext/{index.3d9ad0ad.js → index-22c6E7vK.js} +0 -0
  203. /package/components/areas/contexts/WindowToolsMFContext/{index.992ae7a3.js → index-DkE30fhm.js} +0 -0
  204. /package/components/areas/contexts/{index.24025b97.js → index-l0sNRNKZ.js} +0 -0
  205. /package/components/areas/{dictionary.08cfc4c9.js → dictionary-YUsP9beq.js} +0 -0
  206. /package/components/areas/hooks/{index.d9dc1e21.js → index-l0sNRNKZ.js} +0 -0
  207. /package/components/areas/{icons.01fa3bcc.js → icons-CwFr-alN.js} +0 -0
  208. /package/components/areas/{index.4cc6a221.js → index-B_Odny9h.js} +0 -0
  209. /package/components/hook-form/RHFMultiCheckbox/{index.437e6ba3.js → index-BARudV1A.js} +0 -0
  210. /package/components/hook-form/RHFSelect/{index.c6c60ecc.js → index-LdwRuFz-.js} +0 -0
  211. /package/components/maps/{index.13bb982c.js → index-Ci-7-FHg.js} +0 -0
  212. /package/components/mui_extended/BoxIcon/{index.d61e7ac5.js → index-BUTJ2tKw.js} +0 -0
  213. /package/components/mui_extended/CircularProgress/{index.967e70b7.js → index-Bnnti_G6.js} +0 -0
  214. /package/components/mui_extended/LinearProgress/{index.4092bb69.js → index-CGgW8jq2.js} +0 -0
  215. /package/components/mui_extended/LinkWithRoute/{index.288c51f3.js → index-BC2miUjR.js} +0 -0
  216. /package/components/mui_extended/{index.b606cd9d.js → index-l0sNRNKZ.js} +0 -0
  217. /package/components/popups/PopupsViewer/{constants.29247547.js → constants-DuyD7aCn.js} +0 -0
  218. /package/components/popups/PopupsViewer/{icons.066abd43.js → icons-BUujqqbu.js} +0 -0
  219. /package/components/popups/PopupsViewer/slots/{index.37ef2263.js → index-B98CiRLa.js} +0 -0
  220. /package/components/popups/{index.c5eae682.js → index-l0sNRNKZ.js} +0 -0
  221. /package/hocs/withToggle/{index.548aeace.js → index-C1_DMZD3.js} +0 -0
  222. /package/hooks/useFormReadyForUpdate/{index.f60f500e.js → index-B3HygFCM.js} +0 -0
  223. /package/hooks/useStateRef/{index.538edb89.js → index-C3P6ZK3m.js} +0 -0
  224. /package/test/{constants_no_mock.86c553a9.js → constants_no_mock-CF-669v-.js} +0 -0
  225. /package/test/{getNameDataTestId.0faeade8.js → getNameDataTestId-BaBTWhBr.js} +0 -0
@@ -9,39 +9,37 @@ import { createPortal } from "react-dom";
9
9
  import { useModuleDictionary, useModuleSkeleton, useEnvironment, useModulePrivileges } from "@m4l/core";
10
10
  import clsx from "clsx";
11
11
  import { useFormContext, useWatch } from "react-hook-form";
12
- import { A as Actions } from "../../../CommonActions/components/Actions/index.f674be30.js";
13
- import { B as Button } from "../../../mui_extended/Button/index.3d14e3e9.js";
12
+ import { A as Actions } from "../../../CommonActions/components/Actions/index-ChW1FuFf.js";
13
+ import { B as Button } from "../../../mui_extended/Button/index-CksGG1B8.js";
14
14
  import * as Yup from "yup";
15
- import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index.f60f500e.js";
16
- import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index.f05b6fe3.js";
17
- import { S as Stack } from "../../../mui_extended/Stack/index.99de8138.js";
18
- import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index.f9d41b99.js";
19
- import { I as IconButton } from "../../../mui_extended/IconButton/index.7b6c1ee3.js";
20
- import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index.9a23e1d0.js";
21
- import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index.cbfe1cad.js";
22
- import { D as DataGrid } from "../../../DataGrid/index.b37d6cab.js";
15
+ import { u as useFormReadyForUpdate } from "../../../../hooks/useFormReadyForUpdate/index-B3HygFCM.js";
16
+ import { R as RHFAutocompleteAsync } from "../../../hook-form/RHFAutocompleteAsync/index-BV0f25eK.js";
17
+ import { S as Stack } from "../../../mui_extended/Stack/index-C9YEChZB.js";
18
+ import { R as RHFormProvider } from "../../../../contexts/RHFormContext/index-Ct48jRjb.js";
19
+ import { I as IconButton } from "../../../mui_extended/IconButton/index-OMq0pPK0.js";
20
+ import { u as usePopupsStore, P as PopupsProvider } from "../../../popups/PopupsProvider/index-DhSxmtfJ.js";
21
+ import { T as ToggleIconButton } from "../../../mui_extended/ToggleIconButton/index-BNQrQ6-b.js";
22
+ import { D as DataGrid } from "../../../DataGrid/index-EgaRUtbL.js";
23
23
  import { generateUtilityClasses, Tooltip, FormControl, RadioGroup, FormControlLabel, Radio, useTheme } from "@mui/material";
24
- import { C as ColumnSetCheckFormatter } from "../../../DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js";
25
- import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index.c06685f4.js";
26
- import { u as useStateRef } from "../../../../hooks/useStateRef/index.538edb89.js";
27
- import { C as CheckBox } from "../../../mui_extended/CheckBox.5dc01b37.js";
28
- import { P as Popover } from "../../../mui_extended/Popover/index.a7da93f1.js";
29
- import { P as PopupsViewer } from "../../../popups/PopupsViewer/index.52653047.js";
24
+ import { C as ColumnSetCheckFormatter } from "../../../DataGrid/formatters/ColumnSetCheckFormatter/index-BaCawLr1.js";
25
+ import { I as Icon, M as MarkerIconLabel } from "../../../Icon/index-CueLDD9j.js";
26
+ import { u as useStateRef } from "../../../../hooks/useStateRef/index-C3P6ZK3m.js";
27
+ import { C as CheckBox } from "../../../mui_extended/CheckBox-CjxjIrmN.js";
28
+ import { P as Popover } from "../../../mui_extended/Popover/index-BnKsmvtw.js";
29
+ import { P as PopupsViewer } from "../../../popups/PopupsViewer/index-Dn0XOI6q.js";
30
30
  import { createPathComponent } from "@react-leaflet/core";
31
31
  import "leaflet.markercluster";
32
32
  import { cloneDeep, throttle } from "lodash";
33
33
  import { styled } from "@mui/material/styles";
34
- import leaflet_css from "leaflet/dist/leaflet.css?used";
34
+ import "leaflet/dist/leaflet.css";
35
35
  import { createStore, useStore } from "zustand";
36
36
  import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
37
37
  import { devtools } from "zustand/middleware";
38
38
  import { immer } from "zustand/middleware/immer";
39
39
  import { unstable_composeClasses } from "@mui/base";
40
- import { g as getComponentUtilityClass } from "../../../../utils/index.f77cc2ab.js";
41
- import { b as bearingRawToCSS } from "../../index.13bb982c.js";
40
+ import { g as getComponentUtilityClass } from "../../../../utils/index-DiMrtgIu.js";
41
+ import { b as bearingRawToCSS } from "../../index-Ci-7-FHg.js";
42
42
  import "leaflet-polylinedecorator";
43
- const updateOwnerStateClasses = (_state) => {
44
- };
45
43
  const COMPONENT_CLASS_NAME = "M4LMap";
46
44
  const MAP_ZINDEX_DEFAULT = 0;
47
45
  const MAP_ZINDEX_OVER_MAP = 1100;
@@ -79,15 +77,20 @@ const SVG_ICON_DEFAULT = `<svg viewBox="0 0 640 640" height="32" width="32" xmln
79
77
  </g>
80
78
  </svg>`;
81
79
  const mapClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
80
+ /* elements */
82
81
  "root",
82
+ //Control tools
83
83
  "topLeftToolsRoot",
84
84
  "topRigthToolsRoot",
85
85
  "zoomButtons",
86
+ //Tipos de capas de los features
86
87
  "markerLayerRoot",
87
88
  "markerLayerIcon",
88
89
  "markerLayerLabel",
89
90
  "markerLayerLabelInner",
91
+ //Etiqueta de los features
90
92
  "featureLabel",
93
+ //Measure tool
91
94
  "meaureToolRoot",
92
95
  "measureToolFormValue",
93
96
  "measureToolFormValueDistance",
@@ -95,6 +98,7 @@ const mapClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
95
98
  "measureToolLabel",
96
99
  "meausureToolLabelDistance",
97
100
  "meausureToolLabelSymbol",
101
+ //Meauser Marcas
98
102
  "measureMarkerRoot",
99
103
  "measureMarkerContainer",
100
104
  "measureMarkerContainerRhomb",
@@ -104,19 +108,27 @@ const mapClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
104
108
  "measureLabelMarkerContainer",
105
109
  "measureLabelMarkerDistance",
106
110
  "measureLabelMarkerRemove",
111
+ /**
112
+ * Map sources
113
+ */
107
114
  "mapSourcesPopoverRoot",
108
115
  "mapSourcesRoot",
109
116
  "mapSourcesOption",
110
117
  "mapSourcesOptionIconLabel",
111
118
  "mapSourcesOptionRoadOptions",
112
119
  "mapSourcesOptionRoadOptionsCheck",
120
+ /**
121
+ * Layers
122
+ */
113
123
  "layersPopoverRoot",
124
+ /* states or variants of elements */
114
125
  "active",
115
126
  "disabled"
116
127
  ]);
117
128
  const useMapUtilityClasses = (_ownerState) => {
118
129
  const slots = {
119
130
  root: ["root"],
131
+ //Control tools
120
132
  topLeftToolsRoot: ["topLeftToolsRoot"],
121
133
  topRigthToolsRoot: ["topRigthToolsRoot"],
122
134
  zoomButtons: ["zoomButtons"],
@@ -124,7 +136,12 @@ const useMapUtilityClasses = (_ownerState) => {
124
136
  markerLayerIcon: ["markerLayerIcon"],
125
137
  markerLayerLabel: ["markerLayerLabel"],
126
138
  markerLayerLabelInner: ["markerLayerLabelInner"],
139
+ //Etiqueta de los features
127
140
  featureLabel: ["featureLabel"],
141
+ /**
142
+ * Measure Tool
143
+ */
144
+ //Measure form
128
145
  meaureToolRoot: ["meaureToolRoot"],
129
146
  measureToolFormValue: ["measureToolFormValue"],
130
147
  measureToolFormValueDistance: ["measureToolFormValueDistance"],
@@ -132,6 +149,7 @@ const useMapUtilityClasses = (_ownerState) => {
132
149
  measureToolLabel: ["measureToolLabel"],
133
150
  meausureToolLabelDistance: ["meausureToolLabelDistance"],
134
151
  meausureToolLabelSymbol: ["meausureToolLabelSymbol"],
152
+ //Meauser Marcas
135
153
  measureMarkerRoot: ["measureMarkerRoot"],
136
154
  measureMarkerContainer: ["measureMarkerContainer"],
137
155
  measureMarkerContainerRhomb: ["measureMarkerContainerRhomb"],
@@ -141,19 +159,32 @@ const useMapUtilityClasses = (_ownerState) => {
141
159
  measureLabelMarkerContainer: ["measureLabelMarkerContainer"],
142
160
  measureLabelMarkerDistance: ["measureLabelMarkerDistance"],
143
161
  measureLabelMarkerRemove: ["measureLabelMarkerRemove"],
162
+ /**
163
+ * Map sources
164
+ */
144
165
  mapSourcesPopoverRoot: ["mapSourcesPopoverRoot"],
145
166
  mapSourcesRoot: ["mapSourcesToolRoot"],
146
167
  mapSourcesOption: ["mapSourcesToolOption"],
147
168
  mapSourcesOptionIconLabel: ["mapSourcesToolOptionIconLabel"],
148
169
  mapSourcesOptionRoadOptions: ["mapSourcesToolOptionRoadOptions"],
149
170
  mapSourcesOptionRoadOptionsCheck: ["mapSourcesToolOptionRoadOptionsCheck"],
171
+ /**
172
+ * Layers
173
+ */
150
174
  layersPopoverRoot: ["layersPopoverRoot"],
175
+ /* states or variants of elements */
151
176
  active: ["active"],
152
177
  disabled: ["disabled"]
153
178
  };
154
179
  return unstable_composeClasses(slots, getComponentUtilityClass(COMPONENT_CLASS_NAME), {});
155
180
  };
156
181
  const MAP_DICCTIONARY = {
182
+ /**
183
+ * Generales
184
+ */
185
+ /**
186
+ * GPSTools
187
+ */
157
188
  LABEL_GPSTOOLS_NAME: "label_gpstools_name",
158
189
  LABEL_TAB_GEO: "label_tab_geo",
159
190
  TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip",
@@ -201,6 +232,7 @@ const MAP_DICCTIONARY = {
201
232
  MODAL_DELETE_GEO_MESSAGE: "modal_delete_geo_message",
202
233
  MODAL_DISABLE_GEO_TITLE: "modal_disable_geo_title",
203
234
  MODAL_DISABLE_MESSAGE: "modal_disable_geo_message",
235
+ // Row Actions
204
236
  ROW_ACTION_GEO_EDIT: "row_action_geo_edit",
205
237
  ROW_ACTION_GEO_ENABLE: "row_action_geo_enable",
206
238
  ROW_ACTION_GEO_DISABLE: "row_action_geo_disable",
@@ -214,6 +246,7 @@ const MAP_DICCTIONARY = {
214
246
  LABEL_MEASURE_UNIT: "label_measure_unit",
215
247
  LABEL_MEASURE_UNIT_BASE_KILOMETERS: "label_measure_unit_base_kilometers",
216
248
  LABEL_MEASURE_REMOVE_POINT: "label_measure_remove_point",
249
+ /** Layers **/
217
250
  LABEL_LAYERS: "label_layes",
218
251
  LABEL_LAYER_NAME: "label_layer_name",
219
252
  LABEL_LAYER_VISIBLE: "label_layer_visible",
@@ -221,6 +254,7 @@ const MAP_DICCTIONARY = {
221
254
  LABEL_LAYER_CLUSTER: "label_layer_cluster",
222
255
  LABEL_LAYER_DELETE: "label_layer_delete",
223
256
  ROW_ACTION_LAYER_DELETE: "row_action_layer_delete",
257
+ /** Map Sources **/
224
258
  LABEL_MAP_SOURCES: "label_map_sources",
225
259
  LABEL_TILE_OSM: "label_tile_osm",
226
260
  LABEL_TILE_GOOGLE: "label_tile_google",
@@ -229,33 +263,61 @@ const MAP_DICCTIONARY = {
229
263
  LABEL_TILE_BING: "label_tile_bing"
230
264
  };
231
265
  const MAP_ICONS = {
266
+ /**
267
+ * Map en general
268
+ */
232
269
  MAP_ZOOM_IN: "cmp_map_zoom_in.svg",
233
270
  MAP_ZOOM_OUT: "cmp_map_zoom_out.svg",
271
+ /**
272
+ * Map sources
273
+ */
234
274
  MAP_SOURCES_TOOL: "cmp_map_mapsources_tool.svg",
235
275
  MAP_SOURCE_OSM: "cmp_map_mapsources_osm.svg",
236
276
  MAP_SOURCE_GOOGLE_ROADS: "cmp_map_mapsources_google.svg",
237
277
  MAP_SOURCE_GOOGLE_HYBRID: "cmp_map_mapsources_googlehybrid.svg",
238
278
  MAP_SOURCE_GOOGLE_SATELLITE: "cmp_map_mapsources_googlesatelite.svg",
239
279
  MAP_SOURCE_BING: "cmp_map_mapsources_bing.svg",
280
+ /**
281
+ * Map sources road options+
282
+ */
240
283
  MAP_SOURCE_ROAD_TRAFFIC: "cmp_map_mapsources_layer-traffic.svg",
241
284
  MAP_SOURCE_ROAD_TRANSIT: "cmp_map_mapsources_layer-transit.svg",
242
285
  MAP_SOURCE_ROAD_BICYCLING: "cmp_map_mapsources_layer-bicycle.svg",
286
+ /**
287
+ * Layers
288
+ */
243
289
  MAP_LAYERS_TOOL: "cmp_map_layers_tool.svg",
244
290
  MAP_LAYER_VISIBLE: "cmp_map_layers_view.svg",
245
291
  MAP_LAYER_AUTOFOCUS: "cmp_map_layers_zoom_fit.svg",
246
292
  MAP_LAYER_CLUSTER: "cmp_map_layers_cluster.svg",
247
293
  MAP_LAYER_DELETE: "cmp_map_layers_delete.svg",
248
294
  ADD: "add.svg",
295
+ /** Measure Tool *
296
+ *
297
+ */
249
298
  MAP_GPS_TOOLS_TOOL: "cmp_map_gpstools_tool.svg",
250
299
  MAP_MEASURE_TOOL: "cmp_map_measure_tool.svg",
251
300
  GENERAL: "general.svg",
252
301
  CONFIG: "config.svg",
253
302
  STROKE: "stroke.svg",
254
303
  FILL: "fill.svg",
304
+ // REFRESH: 'refresh.svg',
305
+ // ENABLED: 'enabled.svg',
306
+ // DISABLED: 'disabled.svg',
255
307
  EDIT: "edit.svg",
256
308
  DELETE: "delete.svg",
257
309
  ACTIVE: "active.svg",
258
310
  NAME: "name.svg"
311
+ // EMAIL: 'email.svg',
312
+ // USER: 'users.svg',
313
+ // FIRSTNAME: 'first_name.svg',
314
+ // LASTNAME: 'last_name.svg',
315
+ // MAIN_PHONE: 'fixed_phone.svg',
316
+ // SECONDARY_PHONE: 'fixed_phone.svg',
317
+ // CREATED_AT: 'created_at.svg',
318
+ // UPDATED_AT: 'updated_at.svg',
319
+ // VIEW_DETAIL: 'view_detail.svg',
320
+ // USERS: 'users.svg',
259
321
  };
260
322
  const TILE_LAYER_OSM = {
261
323
  id: "osm_roadmap",
@@ -291,7 +353,7 @@ const TILE_LAYER_GOOGLE = {
291
353
  minZoom: 0,
292
354
  maxZoom: 22,
293
355
  subdomains: ["mt0", "mt1", "mt2", "mt3"],
294
- attribution: "Map data \xA9 Google",
356
+ attribution: "Map data © Google",
295
357
  tms: false
296
358
  },
297
359
  roadSelectedOptions: {
@@ -311,7 +373,7 @@ const TILE_LAYER_GOOGLE_SATELLITE = {
311
373
  minZoom: 0,
312
374
  maxZoom: 22,
313
375
  subdomains: ["mt0", "mt1", "mt2", "mt3"],
314
- attribution: "Map data \xA9 Google",
376
+ attribution: "Map data © Google",
315
377
  tms: false
316
378
  },
317
379
  roadSelectedOptions: {
@@ -334,7 +396,7 @@ const TILE_LAYER_GOOGLE_HYBRID = {
334
396
  minZoom: 0,
335
397
  maxZoom: 22,
336
398
  subdomains: ["mt0", "mt1", "mt2", "mt3"],
337
- attribution: "Map data \xA9 Google",
399
+ attribution: "Map data © Google",
338
400
  tms: false
339
401
  },
340
402
  roadSelectedOptions: {
@@ -444,6 +506,46 @@ const createMapStore = (initProps) => {
444
506
  state.ownerState.status = status;
445
507
  });
446
508
  },
509
+ // isEqualsMapProperties: (_newMapProperties: MapProperties) => {
510
+ // // if (get().mapProperties === undefined) {
511
+ // // return false;
512
+ // // }
513
+ // // return (
514
+ // // JSON.stringify(get().mapProperties) === JSON.stringify(newMapProperties)
515
+ // // );
516
+ // return false;
517
+ // },
518
+ // setMapProperties: (newMapProperties: MapProperties) => {
519
+ // if (!get().mapActions.isEqualsMapProperties(newMapProperties)) {
520
+ // set(state => {
521
+ // state.mapProperties = newMapProperties;
522
+ // if (state.ownerState.status === 'init') {
523
+ // state.ownerState.status = 'ready';
524
+ // updateOwnerStateClasses(state);
525
+ // }
526
+ // });
527
+ // }
528
+ // },
529
+ // setAllFeaturesDataLayer: (layerId: string, value: AllFeaturesDatalLayer) => {
530
+ // set(state => {
531
+ // // if (
532
+ // // value.geometry === 'multipoints' &&
533
+ // // state.hashLayers[layerId].geometry === value.geometry
534
+ // // ) {
535
+ // // (
536
+ // // state.hashLayers[layerId] as WritableDraft<LayerMultiPointProps>
537
+ // // ).hashFeatures = cloneDeep(value.hashFeatures); // Valor puro
538
+ // // }
539
+ // // if (
540
+ // // value.geometry === 'multilines' &&
541
+ // // state.hashLayers[layerId].geometry === value.geometry
542
+ // // ) {
543
+ // // (
544
+ // // state.hashLayers[layerId] as WritableDraft<LayerMultiLineProps>
545
+ // // ).hashFeatures = cloneDeep(value.hashFeatures);
546
+ // // }
547
+ // });
548
+ // },
447
549
  setDataLayer: (layerId, geoJson) => {
448
550
  if (!get().hashLayers[layerId]) {
449
551
  throw new Error(`Layer with id ${layerId} not found`);
@@ -572,6 +674,31 @@ const createMapStore = (initProps) => {
572
674
  delete state.hashLayers[layerId];
573
675
  });
574
676
  },
677
+ // removeLefletLayerToFeature: (layerId, featureId ) => {
678
+ // set(state => {
679
+ // //se pon si existe, porque cuando se borran las capas, ya no hay forma
680
+ // if (state.hashLayers[layerId]){
681
+ // if (
682
+ // state.hashLayers[layerId].geoJsonObject?.object.type ===
683
+ // 'FeatureCollection'
684
+ // ) {
685
+ // //Remove feature from featureCollection
686
+ // const layer = state.hashLayers[layerId].geoJsonObject
687
+ // ?.object as FeatureCollection;
688
+ // const index = layer.features.findIndex(f => f.id === featureId);
689
+ // if (index !== -1) {
690
+ // layer.features[index].layerData = undefined;
691
+ // }
692
+ // } else if (
693
+ // state.hashLayers[layerId].geoJsonObject?.object.type === 'Feature'
694
+ // ) {
695
+ // const feature = state.hashLayers[layerId].geoJsonObject
696
+ // ?.object as Feature;
697
+ // feature.layerData = undefined;
698
+ // }
699
+ // }
700
+ // });
701
+ // },
575
702
  setCheckedLayers: (checkedNameSet, newCheckedSet) => {
576
703
  set((state) => {
577
704
  state[`${checkedNameSet}CheckedLayers`] = new Set(newCheckedSet);
@@ -608,7 +735,6 @@ const createMapStore = (initProps) => {
608
735
  setExternalState: (newExternalState) => {
609
736
  set((state) => {
610
737
  state.ownerState = { ...state.ownerState, ...newExternalState };
611
- updateOwnerStateClasses();
612
738
  });
613
739
  }
614
740
  }
@@ -659,8 +785,7 @@ function MapProvider(props) {
659
785
  }
660
786
  function useMapStore(selector, equalityFn) {
661
787
  const context = useContext(MapContext);
662
- if (!context)
663
- throw new Error("useMapStore context must be use inside MapContext");
788
+ if (!context) throw new Error("useMapStore context must be use inside MapContext");
664
789
  return useStore(context, selector, equalityFn);
665
790
  }
666
791
  const TileLayerOthers = () => {
@@ -717,7 +842,11 @@ function TileLayerGoogle() {
717
842
  loader.importLibrary("maps").then(() => {
718
843
  googleMutantLayer = L__default.gridLayer.googleMutant({
719
844
  type: mapTypeTile,
845
+ // map type, can be 'roadmap', 'satellite', etc.
720
846
  maxZoom: 20,
847
+ // styles: [
848
+ // // Google Maps styles array, can be generated here: https://mapstyle.withgoogle.coxm/
849
+ // ],
721
850
  ...options
722
851
  });
723
852
  mutantRefLayer.current = googleMutantLayer;
@@ -848,6 +977,7 @@ function useValidation() {
848
977
  return { validationSchema };
849
978
  }
850
979
  const INITIAL_FORM_VALUES = {
980
+ /** General Data */
851
981
  statusLoad: "ready",
852
982
  reInits: 0,
853
983
  value: "0",
@@ -861,7 +991,10 @@ const INITIAL_FORM_VALUES = {
861
991
  factor_x2: 0
862
992
  },
863
993
  unitArea: null,
994
+ /** Config Data */
995
+ /** de Apoyo */
864
996
  statusEdition: "initial"
997
+ // geometry: null ,
865
998
  };
866
999
  const STYLE_MEASURE_OPTIONS = {
867
1000
  strokeLineColor: "#1E96DC",
@@ -887,7 +1020,9 @@ const getMarkerPointIcon = (position) => {
887
1020
  </div>
888
1021
  `,
889
1022
  iconSize: [STYLE_MEASURE_OPTIONS.markerWidth, STYLE_MEASURE_OPTIONS.markerHeight],
1023
+ // tamaño del icono
890
1024
  iconAnchor: [STYLE_MEASURE_OPTIONS.markerWidth / 2, STYLE_MEASURE_OPTIONS.markerHeight]
1025
+ // punto de anclaje, el mismo que el de la imagen
891
1026
  });
892
1027
  };
893
1028
  const getMarkerPointLabel = (distance, getLabel) => {
@@ -900,10 +1035,12 @@ const getMarkerPointLabel = (distance, getLabel) => {
900
1035
  )}</div>
901
1036
  </div>`,
902
1037
  iconSize: [STYLE_MEASURE_OPTIONS.labelMarkerWidth, STYLE_MEASURE_OPTIONS.labelMarkerHeight],
1038
+ // tamaño del label
903
1039
  iconAnchor: [
904
1040
  STYLE_MEASURE_OPTIONS.labelMarkerAnchorX,
905
1041
  STYLE_MEASURE_OPTIONS.labelMarkerAnchorY
906
1042
  ]
1043
+ //
907
1044
  });
908
1045
  };
909
1046
  function useMeasure() {
@@ -963,6 +1100,7 @@ function useMeasure() {
963
1100
  color: STYLE_MEASURE_OPTIONS.strokeLineColor,
964
1101
  weight: STYLE_MEASURE_OPTIONS.strokeLineWeight,
965
1102
  interactive: false
1103
+ //No se puede editar
966
1104
  }
967
1105
  ).addTo(map);
968
1106
  }
@@ -1043,7 +1181,9 @@ function useMeasure() {
1043
1181
  const marker = L.marker([lat, lng], {
1044
1182
  draggable: true,
1045
1183
  riseOnHover: true,
1184
+ //Se pone la marca encima de las otras cuando se hace over
1046
1185
  autoPan: true,
1186
+ //Se corre el mapa si llega al extremo, solo para las marcas
1047
1187
  icon: getMarkerPointIconMemo(currentMeasure.current.measurePoints.length + 1),
1048
1188
  zIndexOffset: MAP_ZINDEX_DEFAULT
1049
1189
  }).addTo(map);
@@ -1061,6 +1201,7 @@ function useMeasure() {
1061
1201
  var labelMarker = L.marker([lat, lng], {
1062
1202
  draggable: true,
1063
1203
  riseOnHover: true,
1204
+ //Se pone la marca encima de las otras cuando se hace over
1064
1205
  icon: getMarkerPointLabelMemo(formatDistanceFromPrevious, getLabel),
1065
1206
  zIndexOffset: MAP_ZINDEX_DEFAULT
1066
1207
  }).addTo(map);
@@ -1114,8 +1255,7 @@ function useMeasure() {
1114
1255
  }
1115
1256
  }, [map, statusEdition]);
1116
1257
  useEffect(() => {
1117
- if (!readyToUpdate)
1118
- return;
1258
+ if (!readyToUpdate) return;
1119
1259
  if (magnitudFactor.id !== magnitudFactorCached.id) {
1120
1260
  setMagnitudFactorCached({ ...magnitudFactor });
1121
1261
  currentMeasure.current.magnitudFactor = magnitudFactor;
@@ -1350,6 +1490,7 @@ function useColumns(props) {
1350
1490
  width: 50,
1351
1491
  minWidth: 20,
1352
1492
  type: "boolean",
1493
+ // isDraggable: false,
1353
1494
  formatter: ColumnSetCheckFormatter({
1354
1495
  field: "visible",
1355
1496
  rowKeyGetter,
@@ -1370,6 +1511,8 @@ function useColumns(props) {
1370
1511
  minWidth: 20,
1371
1512
  width: 50,
1372
1513
  type: "boolean",
1514
+ // frozen: true,
1515
+ // isDraggable: false,
1373
1516
  formatter: ColumnSetCheckFormatter({
1374
1517
  field: "autoFocus",
1375
1518
  rowKeyGetter,
@@ -1390,6 +1533,8 @@ function useColumns(props) {
1390
1533
  minWidth: 20,
1391
1534
  width: 50,
1392
1535
  type: "boolean",
1536
+ // frozen: true,
1537
+ // isDraggable: false,
1393
1538
  formatter: ColumnSetCheckFormatter({
1394
1539
  field: "cluster",
1395
1540
  disabledGetter: (row) => !row.clusterAble,
@@ -1405,6 +1550,20 @@ function useColumns(props) {
1405
1550
  }
1406
1551
  ) })
1407
1552
  }
1553
+ // {
1554
+ // key: 'checkedInternalFeatures',
1555
+ // name: getLabel(DICCTIONARY.LABEL_VIEW_INTERNAL_FEATURES),
1556
+ // width: 80,
1557
+ // type: 'boolean',
1558
+ // // isDraggable: false,
1559
+ // // frozen: true,
1560
+ // formatter: ColumnSetCheckFormatter({
1561
+ // field: 'InternalFeatures',
1562
+ // rowKeyGetter,
1563
+ // useHook,
1564
+ // }),
1565
+ // cellClass: 'rdg-cell-align-center',
1566
+ // },
1408
1567
  ],
1409
1568
  [getLabel, useHook]
1410
1569
  );
@@ -1499,8 +1658,7 @@ function useMaster() {
1499
1658
  function useDisableZoomEvents(node) {
1500
1659
  const map = useMap();
1501
1660
  useEffect(() => {
1502
- if (!map || !node)
1503
- return;
1661
+ if (!map || !node) return;
1504
1662
  node.addEventListener("mouseover", function() {
1505
1663
  map.doubleClickZoom.disable();
1506
1664
  map.scrollWheelZoom.disable();
@@ -1663,33 +1821,40 @@ function LayersButton(props) {
1663
1821
  const handleClose = () => {
1664
1822
  setOpen(null);
1665
1823
  };
1666
- return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
1667
- /* @__PURE__ */ jsx(
1668
- IconButton,
1669
- {
1670
- onClick: handleOpen,
1671
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${type === "MapSources" ? MAP_ICONS.MAP_SOURCES_TOOL : MAP_ICONS.MAP_LAYERS_TOOL}`
1672
- }
1673
- ),
1674
- /* @__PURE__ */ jsx(
1675
- Popover,
1676
- {
1677
- className: type === "MapSources" ? mapClasses.mapSourcesPopoverRoot : mapClasses.layersPopoverRoot,
1678
- arrowType: "no-arrow",
1679
- open: Boolean(open),
1680
- anchorEl: open,
1681
- anchorOrigin: { vertical: "bottom", horizontal: "left" },
1682
- onClose: handleClose,
1683
- sx: {
1684
- ...type === "MapSources" ? theme.components?.M4LMapMapSources?.styleOverrides : theme.components?.M4LMapLayers?.styleOverrides
1685
- },
1686
- disableAutoFocus: true,
1687
- disableRestoreFocus: true,
1688
- disableEnforceFocus: true,
1689
- children: type === "MapSources" ? /* @__PURE__ */ jsx(MapSourcesTool, {}) : /* @__PURE__ */ jsx(LayersTool, {})
1690
- }
1691
- )
1692
- ] });
1824
+ return (
1825
+ /* LanguagePopoverRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los overrides que
1826
+ provienen del objeto del tema. Se usa para garantizar de que estos estilos no se propaguen a otros componentes
1827
+ de la plataforna web. */
1828
+ /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
1829
+ /* @__PURE__ */ jsx(
1830
+ IconButton,
1831
+ {
1832
+ onClick: handleOpen,
1833
+ src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${type === "MapSources" ? MAP_ICONS.MAP_SOURCES_TOOL : MAP_ICONS.MAP_LAYERS_TOOL}`
1834
+ }
1835
+ ),
1836
+ /* @__PURE__ */ jsx(
1837
+ Popover,
1838
+ {
1839
+ className: type === "MapSources" ? mapClasses.mapSourcesPopoverRoot : mapClasses.layersPopoverRoot,
1840
+ arrowType: "no-arrow",
1841
+ open: Boolean(open),
1842
+ anchorEl: open,
1843
+ anchorOrigin: { vertical: "bottom", horizontal: "left" },
1844
+ onClose: handleClose,
1845
+ sx: {
1846
+ ...type === "MapSources" ? theme.components?.M4LMapMapSources?.styleOverrides : theme.components?.M4LMapLayers?.styleOverrides
1847
+ // width: 180,
1848
+ // '& .MuiMenuItem-root': { px: 1, typography: 'body2', borderRadius: 0.75 },
1849
+ },
1850
+ disableAutoFocus: true,
1851
+ disableRestoreFocus: true,
1852
+ disableEnforceFocus: true,
1853
+ children: type === "MapSources" ? /* @__PURE__ */ jsx(MapSourcesTool, {}) : /* @__PURE__ */ jsx(LayersTool, {})
1854
+ }
1855
+ )
1856
+ ] })
1857
+ );
1693
1858
  }
1694
1859
  function TopLeftTools() {
1695
1860
  return /* @__PURE__ */ jsxs(Control, { position: "topleft", prepend: true, className: mapClasses.topLeftToolsRoot, children: [
@@ -1788,8 +1953,7 @@ const MyLayer = (props) => {
1788
1953
  if (lefaletLayerRef.current.clickCount === 1) {
1789
1954
  lefaletLayerRef.current.clickTimeout = setTimeout(() => {
1790
1955
  const cluster2 = a.propagatedFrom;
1791
- if (cluster2 && cluster2 instanceof L__default.MarkerCluster)
1792
- ;
1956
+ if (cluster2 && cluster2 instanceof L__default.MarkerCluster) ;
1793
1957
  if (!popupRef.current) {
1794
1958
  popupRef.current = L__default.popup().setLatLng(a.sourceTarget._cLatLng).setContent("Hello, World!");
1795
1959
  map.addLayer(popupRef.current);
@@ -1920,7 +2084,7 @@ function useAutoFocus() {
1920
2084
  };
1921
2085
  layersToFitBounds.push(featureForBounds);
1922
2086
  } else {
1923
- console.error(`La capa ${layerWhitFeatures.layerId} no tiene un m\xE9todo getBounds`);
2087
+ console.error(`La capa ${layerWhitFeatures.layerId} no tiene un método getBounds`);
1924
2088
  }
1925
2089
  }
1926
2090
  }
@@ -1943,7 +2107,9 @@ function useAutoFocus() {
1943
2107
  };
1944
2108
  const throttleBounds = throttle(proccesLayerWithAutoFocus, 300, {
1945
2109
  leading: false,
2110
+ // No enviar el primer evento de fitBounds
1946
2111
  trailing: true
2112
+ // Incluir siempre el ultimo evento en la cola, para que no quede se quedee a la mitad del fitBounds
1947
2113
  });
1948
2114
  throttleBounds(layerWithAutoFocus);
1949
2115
  }, [layerWithAutoFocus]);
@@ -1971,8 +2137,6 @@ const LayersContainer = () => {
1971
2137
  return /* @__PURE__ */ jsx(React__default.Fragment, { children: layersId.map((l) => /* @__PURE__ */ jsx(MyLayer, { layerId: l }, l)) });
1972
2138
  };
1973
2139
  const MapRootContainer = styled(MapContainer)`
1974
- ${leaflet_css}
1975
-
1976
2140
  ${(props) => props.theme.components?.M4LMap?.styleOverrides}
1977
2141
  `;
1978
2142
  function Map$1(props) {
@@ -2051,16 +2215,21 @@ const MarkerFeatureRender = (props) => {
2051
2215
  if (feature.geometry.type === "Point") {
2052
2216
  const [lat, lng] = feature.geometry.coordinates;
2053
2217
  const bearing = feature.properties?.iconBearing ?? 0;
2054
- return /* @__PURE__ */ jsx(
2055
- CustomMarker,
2056
- {
2057
- position: { lat, lng },
2058
- width: 32,
2059
- height: 32,
2060
- bearing,
2061
- iconForm: "grua",
2062
- id: feature.id
2063
- }
2218
+ return (
2219
+ // <Marker position={{ lat, lng }}>
2220
+ // ddd
2221
+ // </Marker>
2222
+ /* @__PURE__ */ jsx(
2223
+ CustomMarker,
2224
+ {
2225
+ position: { lat, lng },
2226
+ width: 32,
2227
+ height: 32,
2228
+ bearing,
2229
+ iconForm: "grua",
2230
+ id: feature.id
2231
+ }
2232
+ )
2064
2233
  );
2065
2234
  }
2066
2235
  return null;
@@ -2078,6 +2247,7 @@ const PolylineWithArrows = ({
2078
2247
  const decorator = L__default.polylineDecorator(polylineRef.current, {
2079
2248
  patterns: [
2080
2249
  {
2250
+ // offset: '20%',
2081
2251
  repeat: 50,
2082
2252
  symbol: L__default.Symbol.arrowHead({
2083
2253
  pixelSize: 4,
@@ -2105,6 +2275,7 @@ const PolylineWithArrows = ({
2105
2275
  decoratorRef.current = L__default.polylineDecorator(polylineRef.current, {
2106
2276
  patterns: [
2107
2277
  {
2278
+ // offset: '20%',
2108
2279
  repeat: 40,
2109
2280
  symbol: L__default.Symbol.arrowHead({
2110
2281
  pixelSize: 4,
@@ -2193,6 +2364,7 @@ const CommonFeatureRender = (props) => {
2193
2364
  };
2194
2365
  const onAddPointLayer = useCallback((e) => {
2195
2366
  const layerData = {
2367
+ // visible: true,
2196
2368
  boundsNW: e.target?._latlng,
2197
2369
  boundsSE: e.target?._latlng
2198
2370
  };
@@ -2200,6 +2372,7 @@ const CommonFeatureRender = (props) => {
2200
2372
  }, []);
2201
2373
  const onAddMultipointLayer = useCallback((e) => {
2202
2374
  const layerData = {
2375
+ // visible: true,
2203
2376
  boundsNW: e.target.getBounds().getNorthWest(),
2204
2377
  boundsSE: e.target.getBounds().getSouthEast()
2205
2378
  };
@@ -2215,8 +2388,10 @@ const CommonFeatureRender = (props) => {
2215
2388
  scaleIcon = 1,
2216
2389
  iconHeight,
2217
2390
  iconWidth,
2391
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2218
2392
  className,
2219
2393
  label,
2394
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2220
2395
  markerColor = MARKER_COLOR_DEFAULT,
2221
2396
  labelBkColor = LABEL_BK_COLOR_DEFAULT,
2222
2397
  labelColor = LABEL_COLOR_DEFAULT,
@@ -2244,6 +2419,9 @@ const CommonFeatureRender = (props) => {
2244
2419
  draggable: false,
2245
2420
  eventHandlers: {
2246
2421
  add: onAddPointLayer
2422
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2423
+ // click: _e => {
2424
+ // },
2247
2425
  },
2248
2426
  ...styleProperties,
2249
2427
  ...propFeature
@@ -2260,6 +2438,9 @@ const CommonFeatureRender = (props) => {
2260
2438
  radius: feature.properties?.radius,
2261
2439
  eventHandlers: {
2262
2440
  add: onAddMultipointLayer
2441
+ // remove: () => {
2442
+ // removeLefletLayerToFeature(layerId, feature.id)
2443
+ // },
2263
2444
  },
2264
2445
  ...styleProperties,
2265
2446
  ...propFeature
@@ -2288,6 +2469,9 @@ const CommonFeatureRender = (props) => {
2288
2469
  weight: 10,
2289
2470
  eventHandlers: {
2290
2471
  add: onAddMultipointLayer
2472
+ // remove: () => {;
2473
+ // removeLefletLayerToFeature(layerId, feature.id)
2474
+ // },
2291
2475
  },
2292
2476
  dashArray: "20 30",
2293
2477
  ...feature.properties,
@@ -2304,6 +2488,9 @@ const CommonFeatureRender = (props) => {
2304
2488
  weight: 10,
2305
2489
  eventHandlers: {
2306
2490
  add: onAddMultipointLayer
2491
+ // remove: () => {
2492
+ // removeLefletLayerToFeature(layerId, feature.id)
2493
+ // },
2307
2494
  },
2308
2495
  dashArray: "20 30",
2309
2496
  ...feature.properties,
@@ -2332,6 +2519,9 @@ const CommonFeatureRender = (props) => {
2332
2519
  opacity: 1,
2333
2520
  eventHandlers: {
2334
2521
  add: onAddMultipointLayer
2522
+ // remove: () => {
2523
+ // removeLefletLayerToFeature(layerId, feature.id)
2524
+ // },
2335
2525
  },
2336
2526
  ...feature.properties,
2337
2527
  ...propFeature