@m4l/components 0.2.32 → 0.2.34

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 (279) hide show
  1. package/@types/export.d.ts +441 -413
  2. package/{commonjs.333e55c7.js → commonjs.565e6834.js} +0 -5
  3. package/components/AccountPopover/{index.69cda48b.js → index.39efc8f0.js} +1 -1
  4. package/components/AppBar/{index.0cc0bd40.js → index.c8850b99.js} +2 -2
  5. package/components/CommonActions/components/ActionCancel/{index.f00f026d.js → index.416cbf9b.js} +2 -2
  6. package/components/CommonActions/components/ActionFormCancel/{index.08fe4e27.js → index.78267f7c.js} +4 -4
  7. package/components/CommonActions/components/ActionFormIntro/{index.b5a5c4b4.js → index.dcb4d280.js} +2 -2
  8. package/components/CommonActions/components/ActionIntro/{index.574967a0.js → index.094290fd.js} +2 -2
  9. package/components/CommonActions/components/Actions/{index.23bfc86b.js → index.fa7ab18c.js} +1 -8
  10. package/components/DataGrid/assets/icons/datagrid.svg +4 -4
  11. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.cf410875.js → index.cd6e553a.js} +1 -1
  12. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.00f9ed87.js → index.0c439ac3.js} +1 -1
  13. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.4089f91b.js → index.867b8745.js} +1 -1
  14. package/components/DataGrid/formatters/ColumnSetCheckFormatter/{index.eb406256.js → index.0b23ba88.js} +6 -0
  15. package/components/DataGrid/formatters/ColumnSetCheckFormatter/types.d.ts +1 -0
  16. package/components/DataGrid/{index.c283b50b.js → index.abe0f9b9.js} +43 -41
  17. package/components/DataGrid/subcomponents/Actions/{index.d945647f.js → index.4f2071ee.js} +12 -11
  18. package/components/DragResizeWindow/DragResizeWindow.d.ts +15 -9
  19. package/components/DragResizeWindow/classes/types.d.ts +1 -0
  20. package/components/DragResizeWindow/{index.82cf6408.js → index.13ef022e.js} +108 -63
  21. package/components/DragResizeWindow/types.d.ts +23 -1
  22. package/components/DynamicFilter/DynamicFilter.d.ts +2 -2
  23. package/components/DynamicFilter/classes/index.d.ts +1 -1
  24. package/components/DynamicFilter/classes/types.d.ts +1 -0
  25. package/components/DynamicFilter/constants.d.ts +2 -1
  26. package/components/DynamicFilter/contexts/DynamicFilterContext/helpers.d.ts +2 -3
  27. package/components/DynamicFilter/contexts/DynamicFilterContext/store.d.ts +3 -2
  28. package/components/DynamicFilter/dictionary.d.ts +4 -0
  29. package/components/DynamicFilter/{index.75c66024.js → index.c52a8e96.js} +189 -35
  30. package/components/DynamicFilter/subcomponents/fieldstypes/SelectFilter/helpers.d.ts +51 -0
  31. package/components/DynamicFilter/subcomponents/fieldstypes/SelectFilter/index.d.ts +5 -0
  32. package/components/DynamicFilter/subcomponents/fieldstypes/factory.d.ts +12 -4
  33. package/components/DynamicFilter/subcomponents/fieldstypes/validations.d.ts +8 -1
  34. package/components/DynamicFilter/types.d.ts +40 -19
  35. package/components/FieldLabel/{index.75e89ace.js → index.0412576c.js} +2 -2
  36. package/components/GridLayout/{index.00740f82.js → index.65470f01.js} +2 -2
  37. package/components/GridLayout/subcomponents/Griditem/{index.3d479abb.js → index.30016fc1.js} +3 -3
  38. package/components/GridLayout/subcomponents/Responsive/{index.733e8ba6.js → index.5b3e0521.js} +1 -1
  39. package/components/GridLayout/subcomponents/SizeProvider/{index.247cc027.js → index.0328ad0a.js} +1 -1
  40. package/components/Icon/{index.14670a00.js → index.ad330e78.js} +65 -89
  41. package/components/Image/{index.6aa1ae49.js → index.b799c514.js} +2 -2
  42. package/components/LanguagePopover/{index.4149a8da.js → index.93c48ec5.js} +2 -2
  43. package/components/LinearProgressIndeterminate/{index.6e5db737.js → index.c46da124.js} +1 -1
  44. package/components/LoadingError/{index.1ec78dd5.js → index.ee29dd48.js} +3 -3
  45. package/components/MFLoader/{index.6037f834.js → index.3a37407c.js} +1 -1
  46. package/components/ModalDialog/{index.f27b7c2d.js → index.78c9650a.js} +4 -4
  47. package/components/NoItemSelected/{index.54023226.js → index.3a479c64.js} +1 -1
  48. package/components/ObjectLogs/{index.32ddae31.js → index.1d85a021.js} +6 -6
  49. package/components/PDFViewer/{index.d185afd0.js → index.88c6ff6a.js} +1 -1
  50. package/components/Page/{index.2c550c91.js → index.5d34dc4d.js} +1 -1
  51. package/components/PaperForm/{index.63dc4b29.js → index.d08b43f6.js} +1 -1
  52. package/components/Period/{index.ddf8716c.js → index.3f89d8a4.js} +2 -2
  53. package/components/PrintingSystem/{index.bcef9a6f.js → index.27f1f209.js} +13 -13
  54. package/components/PrintingSystem/subcomponents/BodyNode/{index.14ecdd97.js → index.319a3bb9.js} +1 -1
  55. package/components/PrintingSystem/subcomponents/ChartNode/{index.aa2b8706.js → index.990e164c.js} +1 -1
  56. package/components/PrintingSystem/subcomponents/DividerNode/{index.ce81726b.js → index.e504dbd2.js} +1 -1
  57. package/components/PrintingSystem/subcomponents/FooterNode/{index.7fc8c316.js → index.9a19a7cb.js} +1 -1
  58. package/components/PrintingSystem/subcomponents/GridNode/{index.88fcc856.js → index.8d14e1b6.js} +1 -1
  59. package/components/PrintingSystem/subcomponents/HeaderNode/{index.d3f4e000.js → index.89e4eaab.js} +1 -1
  60. package/components/PrintingSystem/subcomponents/PaperNode/{index.30cbab70.js → index.dd4ca449.js} +1 -1
  61. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.05a3579e.js → index.048d7ebf.js} +1 -1
  62. package/components/PrintingSystem/subcomponents/SectionNode/{index.d6344807.js → index.83f1efea.js} +1 -1
  63. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.79d2e283.js → index.5427cb75.js} +1 -1
  64. package/components/PropertyValue/{index.1dbf6ef8.js → index.15c61a4b.js} +2 -2
  65. package/components/Resizeable/{index.eba4fda9.js → index.cb5aad75.js} +1 -1
  66. package/components/SideBar/{index.b1455bd0.js → index.b0359a2b.js} +4 -4
  67. package/components/SplitLayout/{index.3856385c.js → index.7302ceb3.js} +1 -1
  68. package/components/ToastContainer/{index.a33ebb52.js → index.4d44ce53.js} +4 -4
  69. package/components/areas/components/AreasAdmin/{index.922cdb11.js → index.820a00ab.js} +10 -10
  70. package/components/areas/components/AreasViewer/{index.f7126815.js → index.6d7194e2.js} +14 -14
  71. package/components/areas/contexts/AreasContext/{index.37be3e4e.js → index.c5a3b322.js} +4 -4
  72. package/components/areas/hooks/useAreas/{index.e3971ffa.js → index.caa92660.js} +1 -1
  73. package/components/areas/types.d.ts +1 -1
  74. package/components/commercial/AppBarCommercial/{index.3e0ad6ef.js → index.9cf586a2.js} +1 -1
  75. package/components/commercial/SectionCommercial/index.4dbfc0a7.js +48 -0
  76. package/components/commercial/TopBar/{index.7b22d97b.js → index.93a7d26a.js} +4 -4
  77. package/components/{HamburgerMenu/index.fb1a3aae.js → commercial/index.89ad149c.js} +2 -2
  78. package/components/formatters/BooleanFormatter/{index.fb44d69d.js → index.9ccf9298.js} +2 -2
  79. package/components/formatters/{index.05c4e1a4.js → index.03471e3f.js} +1 -1
  80. package/components/hook-form/HelperError/index.66bbcac3.js +30 -0
  81. package/components/hook-form/RHFAutocomplete/classes/index.d.ts +1 -0
  82. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +2 -1
  83. package/components/hook-form/RHFAutocomplete/{index.3592430b.js → index.1f2afb6b.js} +75 -42
  84. package/components/hook-form/RHFAutocomplete/types.d.ts +4 -2
  85. package/components/hook-form/RHFAutocompleteAsync/{index.dfbaece5.js → index.bc278965.js} +1 -1
  86. package/components/hook-form/RHFCheckbox/{index.251a36b5.js → index.eca64469.js} +2 -2
  87. package/components/hook-form/RHFColorPicker/{index.e7d27ca0.js → index.dc13d5a3.js} +6 -8
  88. package/components/hook-form/RHFDateTime/{index.fc474c35.js → index.e554b068.js} +3 -3
  89. package/components/hook-form/RHFHelperError/index.d.ts +4 -0
  90. package/components/hook-form/RHFPeriod/{index.2bf650c4.js → index.e4e4530f.js} +3 -3
  91. package/components/hook-form/RHFTextField/{index.db56e769.js → index.1bfa601f.js} +4 -4
  92. package/components/hook-form/RHFUpload/{index.9d4d4460.js → index.6e98b291.js} +4 -4
  93. package/components/index.d.ts +2 -0
  94. package/components/maps/components/GpsTools/GpsTools.d.ts +1 -0
  95. package/components/maps/components/GpsTools/classes/index.d.ts +4 -0
  96. package/components/maps/components/GpsTools/classes/types.d.ts +13 -0
  97. package/components/maps/components/GpsTools/constants.d.ts +8 -0
  98. package/components/maps/components/GpsTools/contexts/GpsToolsContext/index.d.ts +19 -0
  99. package/components/maps/components/GpsTools/contexts/GpsToolsContext/store.d.ts +16 -0
  100. package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +165 -0
  101. package/components/maps/components/GpsTools/hooks/useGpsToolsStore/index.d.ts +2 -0
  102. package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +1 -0
  103. package/components/maps/components/GpsTools/icons.d.ts +15 -0
  104. package/components/maps/components/GpsTools/index.d.ts +3 -0
  105. package/components/maps/components/GpsTools/index.d93188ad.js +1792 -0
  106. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/index.d.ts +9 -0
  107. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
  108. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/helpers.d.ts +19 -0
  109. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +11 -0
  110. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +8 -0
  111. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
  112. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +22 -0
  113. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +2 -0
  114. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +1 -0
  115. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
  116. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +5 -0
  117. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +1 -0
  118. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
  119. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +6 -0
  120. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +2 -0
  121. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/types.d.ts +2 -0
  122. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +1 -0
  123. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +1 -0
  124. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +1 -0
  125. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +1 -0
  126. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
  127. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/types.d.ts +27 -0
  128. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
  129. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +4 -0
  130. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +9 -0
  131. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +20 -0
  132. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +9 -0
  133. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +1 -0
  134. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +7 -0
  135. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +7 -0
  136. package/components/maps/components/GpsTools/subcomponents/TabsGpsTools/subcomponents/model.d.ts +122 -0
  137. package/components/maps/components/GpsTools/types.d.ts +34 -0
  138. package/components/maps/components/Map/Map.d.ts +9 -0
  139. package/components/maps/components/Map/classes/index.d.ts +5 -0
  140. package/components/maps/components/Map/classes/types.d.ts +69 -0
  141. package/components/maps/components/Map/constants.d.ts +24 -0
  142. package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +19 -0
  143. package/components/maps/components/Map/contexts/MapContext/helper.d.ts +8 -0
  144. package/components/maps/components/Map/contexts/MapContext/index.d.ts +2 -0
  145. package/components/maps/components/Map/contexts/MapContext/store.d.ts +16 -0
  146. package/components/maps/components/Map/contexts/MapContext/types.d.ts +592 -0
  147. package/components/maps/components/Map/dictionary.d.ts +86 -0
  148. package/components/maps/components/Map/external/Control/index.d.ts +11 -0
  149. package/components/maps/components/Map/external/Control/types.d.ts +8 -0
  150. package/components/maps/components/Map/external/googleMutant/index.d.ts +94 -0
  151. package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +8 -0
  152. package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/index.d.ts +3 -0
  153. package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/FeatureDivIconLabel/types.d.ts +7 -0
  154. package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/index.d.ts +2 -0
  155. package/components/maps/components/Map/featureRenders/CommonFeatureRender/subcomponents/MarkerIconLabel/types.d.ts +6 -0
  156. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarker.d.ts +6 -0
  157. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +1 -0
  158. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +1 -0
  159. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +2 -0
  160. package/components/maps/components/Map/featureRenders/index.d.ts +2 -0
  161. package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +8 -0
  162. package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +15 -0
  163. package/components/maps/components/Map/hooks/useDisableZoomEvents/index.d.ts +6 -0
  164. package/components/maps/components/Map/hooks/useMapStore/index.d.ts +3 -0
  165. package/components/maps/components/Map/icons.d.ts +50 -0
  166. package/components/maps/components/Map/index.accb1f77.js +2386 -0
  167. package/components/maps/components/Map/index.d.ts +7 -0
  168. package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +9 -0
  169. package/components/maps/components/Map/pluginLayers/index.d.ts +1 -0
  170. package/components/maps/components/Map/subcomponents/Controls/index.d.ts +17 -0
  171. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +1 -0
  172. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/index.d.ts +7 -0
  173. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
  174. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useColumns.d.ts +15 -0
  175. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useMaster.d.ts +13 -0
  176. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +5 -0
  177. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/index.d.ts +1 -0
  178. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/model.d.ts +27 -0
  179. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.d.ts +1 -0
  180. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/bing.d.ts +2 -0
  181. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/google.d.ts +4 -0
  182. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/osm.d.ts +2 -0
  183. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/sourceTypes/utils.d.ts +1 -0
  184. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/types.d.ts +4 -0
  185. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +12 -0
  186. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/constants.d.ts +30 -0
  187. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +11 -0
  188. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +13 -0
  189. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +13 -0
  190. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +10 -0
  191. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/index.d.ts +1 -0
  192. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +5 -0
  193. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
  194. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
  195. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -0
  196. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/types.d.ts +9 -0
  197. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ZoomButtons/index.d.ts +1 -0
  198. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +4 -0
  199. package/components/maps/components/Map/subcomponents/Controls/types.d.ts +22 -0
  200. package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +2 -0
  201. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/index.d.ts +17 -0
  202. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +20 -0
  203. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
  204. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +12 -0
  205. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
  206. package/components/maps/components/Map/subcomponents/LayersContainer/subcomponents/MyLayer/types.d.ts +2 -0
  207. package/components/maps/components/Map/subcomponents/TileLayers/index.d.ts +6 -0
  208. package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -0
  209. package/components/maps/components/Map/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +6 -0
  210. package/components/maps/components/Map/types.d.ts +40 -0
  211. package/components/maps/index.34ab6a68.js +7 -0
  212. package/components/maps/index.d.ts +3 -0
  213. package/components/maps/leaflet-geoman.d.ts +1633 -1633
  214. package/components/maps/utils.d.ts +15 -0
  215. package/components/modal/{WindowBase.2e5506d7.js → WindowBase.fd86f575.js} +3 -3
  216. package/components/modal/{WindowConfirm.ce47a48a.js → WindowConfirm.ee6de236.js} +6 -6
  217. package/components/mui_extended/Accordion/{index.f9042228.js → index.7dcdfd3a.js} +2 -2
  218. package/components/mui_extended/Button/{index.d5a031be.js → index.c3084916.js} +1 -1
  219. package/components/mui_extended/{CheckBox.0dcf39ae.js → CheckBox.2a3b86c5.js} +1 -1
  220. package/components/mui_extended/IconButton/{index.d8bdadaa.js → index.f8a3021b.js} +1 -1
  221. package/components/mui_extended/MenuActions/{index.154d57f0.js → index.90f53670.js} +2 -2
  222. package/components/mui_extended/Pager/{index.da7ea851.js → index.ea2a4f3e.js} +2 -2
  223. package/components/mui_extended/Tab/{index.2068925d.js → index.9214d9cc.js} +4 -4
  224. package/components/mui_extended/TabContent/types.d.ts +1 -1
  225. package/components/mui_extended/ToggleButton/ToggleButton.d.ts +2 -1
  226. package/components/mui_extended/ToggleButton/{index.595ea955.js → index.191711f3.js} +6 -9
  227. package/components/mui_extended/ToggleButton/types.d.ts +2 -2
  228. package/components/mui_extended/ToggleIconButton/ToggleIconButton.d.ts +1 -12
  229. package/components/mui_extended/ToggleIconButton/index.d9dbf650.js +19 -0
  230. package/components/mui_extended/ToggleIconButton/types.d.ts +2 -3
  231. package/components/popups/PopupsProvider/index.d7409f48.js +179 -0
  232. package/components/popups/PopupsViewer/index.1500ce72.js +186 -0
  233. package/components/popups/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +19 -0
  234. package/components/popups/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +7 -0
  235. package/components/popups/components/PopupsProvider/contexts/PopupsContext/index.d.ts +1 -0
  236. package/components/popups/components/PopupsProvider/contexts/PopupsContext/store.d.ts +16 -0
  237. package/components/popups/components/PopupsProvider/contexts/PopupsContext/types.d.ts +160 -0
  238. package/components/popups/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +3 -0
  239. package/components/popups/components/PopupsProvider/index.d.ts +2 -0
  240. package/components/popups/components/PopupsViewer/PopupsViewer.d.ts +8 -0
  241. package/components/popups/components/PopupsViewer/classes/index.d.ts +15 -0
  242. package/components/popups/components/PopupsViewer/classes/types.d.ts +13 -0
  243. package/components/{PopupsProvider → popups/components/PopupsViewer}/constants.d.ts +2 -2
  244. package/components/popups/components/PopupsViewer/icons.d.ts +3 -0
  245. package/components/popups/components/PopupsViewer/index.d.ts +1 -0
  246. package/components/popups/components/PopupsViewer/subcomponents/Popup/index.d.ts +9 -0
  247. package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/Header/index.d.ts +2 -0
  248. package/components/popups/components/PopupsViewer/subcomponents/Popup/subcomponents/Header/types.d.ts +2 -0
  249. package/components/popups/components/PopupsViewer/subcomponents/Popup/types.d.ts +16 -0
  250. package/components/popups/components/PopupsViewer/types.d.ts +3 -0
  251. package/components/popups/index.c5eae682.js +1 -0
  252. package/components/popups/index.d.ts +2 -0
  253. package/contexts/ModalContext/{index.3d48d675.js → index.2368bb19.js} +1 -1
  254. package/hocs/withToggle/index.50aec5e4.js +22 -0
  255. package/hocs/withToggle/index.d.ts +2 -2
  256. package/hocs/withToggle/types.d.ts +6 -4
  257. package/hooks/useFormAddEdit/{index.07e5258d.js → index.000ce60b.js} +2 -2
  258. package/hooks/useFormReadyForUpdate/index.d.ts +6 -0
  259. package/hooks/useFormReadyForUpdate/index.f60f500e.js +20 -0
  260. package/hooks/useModal/{index.cb1d6a37.js → index.f73d7e42.js} +1 -1
  261. package/hooks/useSizeContainer/contants.d.ts +1 -0
  262. package/hooks/useSizeContainer/index.62b4e0c4.js +35 -0
  263. package/hooks/useSizeContainer/index.d.ts +8 -0
  264. package/hooks/useStateRef/index.538edb89.js +15 -0
  265. package/hooks/useStateRef/index.d.ts +8 -0
  266. package/hooks/useTab/{index.c0564138.js → index.976d5e1e.js} +1 -1
  267. package/index.js +157 -115
  268. package/package.json +11 -5
  269. package/{react-draggable.6cf19cba.js → react-draggable.e4725f3a.js} +4 -4
  270. package/{react-json-view.5636414a.js → react-json-view.57125fcf.js} +1 -1
  271. package/{react-resizable.0ebffd82.js → react-resizable.c07d63fb.js} +5 -5
  272. package/{react-splitter-layout.c5d98bf7.js → react-splitter-layout.8b1655c8.js} +3 -3
  273. package/vite-env.d.ts +3 -3
  274. package/components/PopupsProvider/index.3d5ad0ee.js +0 -4
  275. package/components/mui_extended/ToggleIconButton/index.c588d5e1.js +0 -29
  276. package/hocs/withToggle/index.e44eb0da.js +0 -24
  277. package/node_modules.98455a76.js +0 -6921
  278. package/vendor.55925cb3.js +0 -182
  279. /package/utils/{index.24b5284a.js → index.6469f148.js} +0 -0
@@ -1,17 +1,18 @@
1
1
  import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
4
- import { I as Image } from "../../Image/index.6aa1ae49.js";
5
- import { useMemo, useRef, useState, useEffect } from "react";
3
+ import { styled, Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, Chip } from "@mui/material";
4
+ import { I as Image } from "../../Image/index.b799c514.js";
5
+ import { useMemo, useRef, useState, useEffect, createElement } from "react";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
8
8
  import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
9
9
  import { unstable_composeClasses } from "@mui/base";
10
10
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
11
11
  import { useResponsiveDesktop } from "@m4l/graphics";
12
- import { u as useFormFocus } from "../../../vendor.55925cb3.js";
13
- import { F as FieldLabel } from "../../FieldLabel/index.75e89ace.js";
14
- import { I as IconButton } from "../../mui_extended/IconButton/index.d8bdadaa.js";
12
+ import { useFormFocus } from "../../../index.js";
13
+ import { F as FieldLabel } from "../../FieldLabel/index.0412576c.js";
14
+ import { C as CircularProgress } from "../../mui_extended/CircularProgress/index.ad569afd.js";
15
+ import { I as IconButton } from "../../mui_extended/IconButton/index.f8a3021b.js";
15
16
  const AutocompleteRoot = styled("div")(({
16
17
  theme
17
18
  }) => ({
@@ -123,21 +124,23 @@ generateUtilityClasses(componentName, [
123
124
  "sizeSmall",
124
125
  "sizeMedium",
125
126
  "isFocus",
126
- "isTabSelected"
127
+ "isTabSelected",
128
+ "chip"
127
129
  ]);
128
130
  function getRHFAutocompleteClassesUtilityClass(slot) {
129
131
  return generateUtilityClass(componentName, slot);
130
132
  }
131
133
  const useUtilityClasses = (ownerState) => {
132
134
  const slots = {
133
- root: ["root", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.isFocus && "isFocus", ownerState.isTabSelected && "isTabSelected", ownerState.disabled && "isDisabled", ownerState.semantics === "info" && "variantInfo", ownerState.semantics === "success" && "variantSuccess", ownerState.semantics === "warning" && "variantWarning", ownerState.semantics === "error" && "variantError", ownerState.imageWidthDefined && "imageWidthDefined"],
135
+ root: ["root", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.isFocus && "isFocus", ownerState.isTabSelected && "isTabSelected", ownerState.disabled && "isDisabled", ownerState.semantics === "info" && "variantInfo", ownerState.semantics === "success" && "variantSuccess", ownerState.semantics === "warning" && "variantWarning", ownerState.semantics === "error" && "variantError", ownerState.imageWidthDefined && "imageWidthDefined", ownerState.multiple && "multiple"],
134
136
  withImage: ["withImage"],
135
137
  skeleton: ["skeleton"],
136
138
  label: ["label"],
137
139
  popper: ["popper", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium", ownerState.imageWidthDefined && "imageWidthDefined"],
138
140
  skeletonRoot: ["skeletonRoot"],
139
141
  skeletonContainerText: ["SkeletonContainerText"],
140
- iconDown: ["iconDown"]
142
+ iconDown: ["iconDown"],
143
+ chip: ["chip", ownerState.size === "small" && "sizeSmall", ownerState.size === "medium" && "sizeMedium"]
141
144
  };
142
145
  const composedClasses = unstable_composeClasses(slots, getRHFAutocompleteClassesUtilityClass, {});
143
146
  return {
@@ -163,17 +166,16 @@ function RHFAutocomplete(props) {
163
166
  size = "small",
164
167
  onChangeFilterParmsLocal,
165
168
  imageWidth,
169
+ imageHeight,
166
170
  mandatory,
167
171
  mandatoryMessage,
172
+ multiple,
168
173
  ...other
169
174
  } = props;
170
175
  const {
171
176
  getLabel
172
177
  } = useModuleDictionary();
173
178
  const isSkeleton = useModuleSkeleton();
174
- console.log("RHFAutocomplete mandatory", mandatory);
175
- console.log("RHFAutocomplete mandatoryMessage", mandatoryMessage);
176
- console.log("RHFAutocomplete label", label);
177
179
  const withImage = useMemo(() => getOptionUrlImage !== void 0, [getOptionUrlImage]);
178
180
  const {
179
181
  host_static_assets,
@@ -239,10 +241,10 @@ function RHFAutocomplete(props) {
239
241
  isTabSelected: !isSkeleton ? isTabSelected : false,
240
242
  semantics: currentVariant,
241
243
  disabled,
242
- imageWidthDefined: imageWidth ? true : false
244
+ imageWidthDefined: Boolean(imageWidth),
245
+ multiple: Boolean(multiple)
243
246
  };
244
247
  const classes = useUtilityClasses(ownerState);
245
- console.log("classes ***", classes);
246
248
  const theme = useTheme();
247
249
  return /* @__PURE__ */ jsx(AutocompleteRoot, {
248
250
  className: classes.root,
@@ -270,8 +272,8 @@ function RHFAutocomplete(props) {
270
272
  if (!open && value === null && inputValue !== "") {
271
273
  setInputValue("");
272
274
  }
273
- if (!open && value !== null && options.length === 0 && onChangeFilterParmsLocal) {
274
- onChangeFilterParmsLocal(getOptionLabelLocal(value), "reset");
275
+ if (!open && value !== null && options.length === 0) {
276
+ onChangeFilterParmsLocal?.(getOptionLabelLocal(value), "reset");
275
277
  }
276
278
  }, [value]);
277
279
  const checkKeyDown = (e) => {
@@ -286,8 +288,10 @@ function RHFAutocomplete(props) {
286
288
  mandatoryMessage,
287
289
  helperMessage
288
290
  }), /* @__PURE__ */ jsx(Autocomplete, {
289
- onKeyDown: checkKeyDown,
290
291
  autoComplete: true,
292
+ disableClearable: true,
293
+ multiple,
294
+ onKeyDown: checkKeyDown,
291
295
  size,
292
296
  ref: autocompleteRef,
293
297
  autoSelect: false,
@@ -295,9 +299,9 @@ function RHFAutocomplete(props) {
295
299
  getOptionLabel: getOptionLabelLocal,
296
300
  inputValue,
297
301
  clearOnBlur: false,
298
- PopperComponent: (props2) => {
302
+ PopperComponent: (popperProps) => {
299
303
  return /* @__PURE__ */ jsx(Popper, {
300
- ...props2,
304
+ ...popperProps,
301
305
  className: classes.popper,
302
306
  placement: "bottom-start",
303
307
  placeholder: void 0,
@@ -316,18 +320,22 @@ function RHFAutocomplete(props) {
316
320
  if (onChangeFilterParmsLocal) {
317
321
  onChangeFilterParmsLocal(newValue, reason);
318
322
  }
323
+ } else {
324
+ onChange(null);
319
325
  }
320
- onChange(null);
321
326
  },
322
327
  isOptionEqualToValue: isOptionEqualToValueLocal,
323
- disableClearable: true,
324
- value: value || null,
328
+ value: Array.isArray(value) ? value : multiple ? value ? [value] : [] : value || null,
325
329
  onOpen: onOpenLocal,
326
330
  onClose: onCloseLocal,
327
331
  open,
328
- onChange: (_e, val) => {
329
- setInputValue(getOptionLabelLocal(val));
330
- onChange(val);
332
+ onChange: (_e, newValue) => {
333
+ if (!multiple && !Array.isArray(newValue)) {
334
+ setInputValue(getOptionLabelLocal(newValue));
335
+ } else {
336
+ setInputValue("");
337
+ }
338
+ onChange(Array.isArray(newValue) ? [...newValue] : newValue);
331
339
  },
332
340
  filterOptions: onChangeFilterParmsLocal ? (x) => x : void 0,
333
341
  loading,
@@ -342,6 +350,7 @@ function RHFAutocomplete(props) {
342
350
  return /* @__PURE__ */ jsx(TextField, {
343
351
  ...params,
344
352
  InputLabelProps: {
353
+ ...params.InputLabelProps,
345
354
  shrink: true
346
355
  },
347
356
  fullWidth: true,
@@ -351,29 +360,53 @@ function RHFAutocomplete(props) {
351
360
  },
352
361
  InputProps: {
353
362
  ...params.InputProps,
354
- startAdornment: withImage && value ? /* @__PURE__ */ jsx(Image, {
355
- src: getOptionUrlImageLocal(value),
356
- width: imageWidth,
357
- height: "100%"
358
- }, "ImageTextField") : null,
359
- endAdornment: /* @__PURE__ */ jsx(Fragment, {
360
- children: loading ? /* @__PURE__ */ jsx(CircularProgress, {
361
- color: "inherit",
362
- size: 20
363
- }) : /* @__PURE__ */ jsx(IconButton, {
364
- className: classes.iconDown,
365
- src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/chevronDown.svg`,
366
- onClick: (event) => onOpenLocal(event),
367
- disabled,
368
- size
369
- })
363
+ startAdornment: /* @__PURE__ */ jsxs(Fragment, {
364
+ children: [!multiple && withImage && value ? /* @__PURE__ */ jsx(Image, {
365
+ src: getOptionUrlImageLocal(value),
366
+ width: imageWidth,
367
+ height: "100%"
368
+ }, "ImageTextField") : null, params.InputProps.startAdornment]
369
+ }),
370
+ endAdornment: loading ? /* @__PURE__ */ jsx(CircularProgress, {
371
+ color: "inherit",
372
+ size: 18
373
+ }) : /* @__PURE__ */ jsx(IconButton, {
374
+ className: classes.iconDown,
375
+ src: `${host_static_assets}/${environment_assets}/frontend/components/RHFAutocompletarAsync/assets/icons/chevronDown.svg`,
376
+ onClick: (event) => onOpenLocal(event),
377
+ disabled,
378
+ size
370
379
  })
371
380
  },
372
381
  autoComplete: "off",
373
382
  error: !!error,
374
383
  ...other
375
384
  });
376
- }
385
+ },
386
+ ...multiple ? {
387
+ renderTags: (tagValue, getTagProps) => tagValue.map((option, index) => {
388
+ const {
389
+ key,
390
+ ...restTagProps
391
+ } = getTagProps({
392
+ index
393
+ });
394
+ return /* @__PURE__ */ createElement(Chip, {
395
+ ...restTagProps,
396
+ key,
397
+ label: getOptionLabelLocal(option),
398
+ className: classes.chip,
399
+ icon: withImage && option ? /* @__PURE__ */ jsx(Image, {
400
+ src: getOptionUrlImageLocal(option),
401
+ width: imageWidth,
402
+ height: imageHeight ?? "100%"
403
+ }) : void 0,
404
+ sx: {
405
+ ...theme.components?.M4LRHFAutocompleteChip?.styleOverrides
406
+ }
407
+ });
408
+ })
409
+ } : {}
377
410
  }), currentVariant === "error" ? /* @__PURE__ */ jsx(HelperText, {
378
411
  variant: currentVariant,
379
412
  message: error?.message
@@ -9,8 +9,8 @@ export interface RHFAutocompleteProps<T> extends Omit<TextFieldProps, 'label' |
9
9
  getOptionLabel: (option: T) => string;
10
10
  getOptionUrlImage?: (option: T) => string;
11
11
  /**
12
- * El valor de tamaño en anchura que va a tener el elemento de imagen.
13
- */
12
+ * El valor de tamaño en anchura que va a tener el elemento de imagen.
13
+ */
14
14
  imageWidth?: string | number;
15
15
  isOptionEqualToValue: (option: T, value: T) => boolean;
16
16
  skeletonWidth?: string | number;
@@ -23,6 +23,7 @@ export interface RHFAutocompleteProps<T> extends Omit<TextFieldProps, 'label' |
23
23
  onClose?: (event: React.SyntheticEvent, reason: AutocompleteCloseReason) => void;
24
24
  onChangeFilterParmsLocal?: (newValue: string, reason: AutocompleteInputChangeReason) => void;
25
25
  imageHeight?: string | number;
26
+ multiple?: boolean;
26
27
  }
27
28
  export interface OwnerState extends Pick<RHFAutocompleteProps<any>, 'size' | 'disabled'> {
28
29
  isFocus: boolean;
@@ -30,4 +31,5 @@ export interface OwnerState extends Pick<RHFAutocompleteProps<any>, 'size' | 'di
30
31
  semantics: RHFAutocompleteVariants | 'error' | null;
31
32
  variant?: 'withImage';
32
33
  imageWidthDefined: boolean;
34
+ multiple: boolean;
33
35
  }
@@ -5,7 +5,7 @@ import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/mater
5
5
  import { unstable_composeClasses } from "@mui/base";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { jsx } from "react/jsx-runtime";
8
- import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.3592430b.js";
8
+ import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.1f2afb6b.js";
9
9
  styled("div")(() => ({
10
10
  display: "flex",
11
11
  width: "100%",
@@ -6,8 +6,8 @@ import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
6
6
  import { useResponsiveDesktop } from "@m4l/graphics";
7
7
  import { useModuleSkeleton } from "@m4l/core";
8
8
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
9
- import { u as useFormFocus } from "../../../vendor.55925cb3.js";
10
- import { C as CheckBox } from "../../mui_extended/CheckBox.0dcf39ae.js";
9
+ import { useFormFocus } from "../../../index.js";
10
+ import { C as CheckBox } from "../../mui_extended/CheckBox.2a3b86c5.js";
11
11
  const RHFCheckboxRoot = styled("div")(({
12
12
  theme
13
13
  }) => ({
@@ -1,20 +1,18 @@
1
1
  import { useState } from "react";
2
2
  import { useFormContext, useWatch, Controller } from "react-hook-form";
3
3
  import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
4
- import { S as SketchPicker } from "../../../node_modules.98455a76.js";
5
- import "lodash-es/debounce";
6
- import "lodash-es/each";
7
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
4
+ import { SketchPicker } from "react-color";
8
5
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
9
6
  import { generateUtilityClasses, generateUtilityClass, styled, Skeleton } from "@mui/material";
10
7
  import { unstable_composeClasses } from "@mui/base";
11
8
  import { useTheme } from "@mui/material/styles";
9
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
12
10
  import { useResponsiveDesktop } from "@m4l/graphics";
13
- import { u as useFormFocus } from "../../../vendor.55925cb3.js";
14
- import { F as FieldLabel } from "../../FieldLabel/index.75e89ace.js";
11
+ import { useFormFocus } from "../../../index.js";
12
+ import { F as FieldLabel } from "../../FieldLabel/index.0412576c.js";
15
13
  import { P as Popover } from "../../mui_extended/Popover/index.d85de73b.js";
16
- import { I as Icon } from "../../Icon/index.14670a00.js";
17
- import { B as Button } from "../../mui_extended/Button/index.d5a031be.js";
14
+ import { I as Icon } from "../../Icon/index.ad330e78.js";
15
+ import { B as Button } from "../../mui_extended/Button/index.c3084916.js";
18
16
  const componentName = "M4LRHFColorPicker";
19
17
  const colorPickerClasses = generateUtilityClasses(componentName, [
20
18
  "root",
@@ -9,9 +9,9 @@ import { unstable_composeClasses } from "@mui/base";
9
9
  import clsx from "clsx";
10
10
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
11
11
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
12
- import { u as useFormFocus } from "../../../vendor.55925cb3.js";
13
- import { F as FieldLabel } from "../../FieldLabel/index.75e89ace.js";
14
- import { I as Icon } from "../../Icon/index.14670a00.js";
12
+ import { useFormFocus } from "../../../index.js";
13
+ import { F as FieldLabel } from "../../FieldLabel/index.0412576c.js";
14
+ import { I as Icon } from "../../Icon/index.ad330e78.js";
15
15
  const SkeletonRHFDateTime = (props) => {
16
16
  const {
17
17
  skeletonWidth,
@@ -0,0 +1,4 @@
1
+ export declare type HelperErrorProps = {
2
+ name: string;
3
+ };
4
+ export declare function HelperError(props: HelperErrorProps): import("react/jsx-runtime").JSX.Element | null;
@@ -4,9 +4,9 @@ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
5
  import { useModuleSkeleton } from "@m4l/core";
6
6
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
- import { u as useFormFocus } from "../../../vendor.55925cb3.js";
8
- import { F as FieldLabel } from "../../FieldLabel/index.75e89ace.js";
9
- import { P as Period } from "../../Period/index.ddf8716c.js";
7
+ import { useFormFocus } from "../../../index.js";
8
+ import { F as FieldLabel } from "../../FieldLabel/index.0412576c.js";
9
+ import { P as Period } from "../../Period/index.3f89d8a4.js";
10
10
  const RHFPeriodRoot = styled("div")(({
11
11
  theme
12
12
  }) => ({
@@ -1,16 +1,16 @@
1
1
  import { useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
3
3
  import { forwardRef, useState, useEffect } from "react";
4
- import { I as IconButton } from "../../mui_extended/IconButton/index.d8bdadaa.js";
4
+ import { I as IconButton } from "../../mui_extended/IconButton/index.f8a3021b.js";
5
5
  import { useFormContext, Controller } from "react-hook-form";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
8
8
  import { unstable_composeClasses } from "@mui/base";
9
- import { g as getComponentUtilityClass } from "../../../utils/index.24b5284a.js";
9
+ import { g as getComponentUtilityClass } from "../../../utils/index.6469f148.js";
10
10
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
11
11
  import { useResponsiveDesktop } from "@m4l/graphics";
12
- import { u as useFormFocus } from "../../../vendor.55925cb3.js";
13
- import { F as FieldLabel } from "../../FieldLabel/index.75e89ace.js";
12
+ import { useFormFocus } from "../../../index.js";
13
+ import { F as FieldLabel } from "../../FieldLabel/index.0412576c.js";
14
14
  const SkeletonTextFieldRoot = styled("div")(() => ({
15
15
  display: "flex",
16
16
  flexDirection: "column",
@@ -1,15 +1,15 @@
1
1
  import { useCallback } from "react";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import require$$0 from "lodash/isString";
3
+ import isString from "lodash/isString";
4
4
  import { useDropzone } from "react-dropzone";
5
- import { I as Image } from "../../Image/index.6aa1ae49.js";
5
+ import { I as Image } from "../../Image/index.b799c514.js";
6
6
  import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
7
7
  import { styled, Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
8
8
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
9
9
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
10
10
  import { unstable_composeClasses } from "@mui/base";
11
11
  import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
12
- import { B as Button } from "../../mui_extended/Button/index.d5a031be.js";
12
+ import { B as Button } from "../../mui_extended/Button/index.c3084916.js";
13
13
  import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
14
14
  const UploadImageRoot = styled("div")(({
15
15
  theme
@@ -139,7 +139,7 @@ function UploadImage({
139
139
  } : {},
140
140
  children: /* @__PURE__ */ jsx(Image, {
141
141
  alt: "bgImageUploadImage",
142
- src: require$$0(file) ? file : file.preview || "",
142
+ src: isString(file) ? file : file.preview || "",
143
143
  ratio: "1:1"
144
144
  })
145
145
  }), /* @__PURE__ */ jsx("div", {
@@ -25,6 +25,7 @@ export * from './LanguagePopover';
25
25
  export * from './LinearProgressIndeterminate';
26
26
  export * from './Image/Image';
27
27
  export * from './Loadable';
28
+ export * from './maps';
28
29
  export * from './modal';
29
30
  export * from './LoadingError';
30
31
  export * from './MFLoader';
@@ -47,5 +48,6 @@ export * from './SideBar';
47
48
  export * from './AppBar';
48
49
  export * from './AccountPopover';
49
50
  export * from './AppBar/AppBar';
51
+ export * from './popups';
50
52
  export * from './commercial';
51
53
  export type { SplitPosition } from './SplitLayout/types';
@@ -0,0 +1 @@
1
+ export declare function GpsTools(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { GpsToolsClasses } from './types';
2
+ export declare const gpsToolsClasses: GpsToolsClasses;
3
+ export declare const useUtilityClasses: () => Record<"gpsToolsGeofencesList" | "gpsToolsGeofencesAddEdit" | "gpsToolsGeofencesAddEditContent" | "toolGeofencesAddEditGeneral" | "toolGeofencesAddEditStyle" | "GpsToolsRoot" | "GpsToolsTabContent" | "GpsToolsTab", string>;
4
+ export declare type Classes = ReturnType<typeof useUtilityClasses>;
@@ -0,0 +1,13 @@
1
+ export interface GpsToolsClasses {
2
+ gpsToolsRoot: string;
3
+ gpsToolsTab: string;
4
+ gpsToolsTabContent: string;
5
+ gpsToolsGeofencesList: string;
6
+ gpsToolsGeofencesAddEdit: string;
7
+ gpsToolsGeofencesAddEditContent: string;
8
+ toolGeofencesAddEditGeneral: string;
9
+ toolGeofencesAddEditStyle: string;
10
+ visible: string;
11
+ hidden: string;
12
+ }
13
+ export declare type GpsToolsClassesKey = keyof GpsToolsClasses;
@@ -0,0 +1,8 @@
1
+ import { StyleOpacity, StyleDashArray, StyleWheight } from "./types";
2
+ export declare const COMPONENT_TEST_ID = "M4LGpsTools";
3
+ export declare const COMPONENT_CLASS_NAME = "M4LGpsTools";
4
+ export declare const COOKIE_MAP_GEO_FILTER = "filter_map_geo";
5
+ export declare const COMPONENT_MAP_TOOLS_ID = "gps_tools";
6
+ export declare const STYLE_OPACITIES: StyleOpacity[];
7
+ export declare const STYLE_WHEIGHTS: StyleWheight[];
8
+ export declare const STYLE_PATTERNS: StyleDashArray[];
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { MapGpsToolsProviderProps } from './types';
3
+ declare const GpsToolsContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").GpsToolsStateWithActions>, "setState"> & {
4
+ setState<A extends string | {
5
+ type: unknown;
6
+ }>(partial: import("./types").GpsToolsStateWithActions | Partial<import("./types").GpsToolsStateWithActions> | ((state: import("./types").GpsToolsStateWithActions) => import("./types").GpsToolsStateWithActions | Partial<import("./types").GpsToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
7
+ }, "setState"> & {
8
+ setState(nextStateOrUpdater: import("./types").GpsToolsStateWithActions | Partial<import("./types").GpsToolsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").GpsToolsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
9
+ type: unknown;
10
+ } | undefined): void;
11
+ }) | null>;
12
+ /**
13
+ * @description Provedor del contexto de los mapas
14
+ * Expone el store (MapStore) encargado de gestionar la creación, modificación y borrado de capas.
15
+ * @param props
16
+ * @returns
17
+ */
18
+ declare function GpsToolsProvider(props: MapGpsToolsProviderProps): import("react/jsx-runtime").JSX.Element;
19
+ export { GpsToolsProvider, GpsToolsContext };
@@ -0,0 +1,16 @@
1
+ import type { GpsToolsStateWithActions, InitialMapGpsToolsStoreProps } from './types';
2
+ /**
3
+ * @description Crea el Store, por defecto inicia en estado 'init'
4
+ * @param initProps propiedades iniciales del store
5
+ * @returns
6
+ */
7
+ export declare const createGpsToolsStore: (initProps: InitialMapGpsToolsStoreProps) => Omit<Omit<import("zustand").StoreApi<GpsToolsStateWithActions>, "setState"> & {
8
+ setState<A extends string | {
9
+ type: unknown;
10
+ }>(partial: GpsToolsStateWithActions | Partial<GpsToolsStateWithActions> | ((state: GpsToolsStateWithActions) => GpsToolsStateWithActions | Partial<GpsToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
11
+ }, "setState"> & {
12
+ setState(nextStateOrUpdater: GpsToolsStateWithActions | Partial<GpsToolsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<GpsToolsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
13
+ type: unknown;
14
+ } | undefined): void;
15
+ };
16
+ export declare type MapStore = ReturnType<typeof createGpsToolsStore>;
@@ -0,0 +1,165 @@
1
+ import { GetLabelType } from '@m4l/core';
2
+ import { ReactNode } from 'react';
3
+ import { FeatureId } from '../../../Map';
4
+ import { CrossingFeature, GeofenceListModel, InternalFeature } from '../../subcomponents/TabsGpsTools/subcomponents/model';
5
+ export declare type GpsToolsStatus = 'init' | 'ready';
6
+ export declare type CurrentTabGpsTool = 'geofences' | 'pois';
7
+ export interface GeofenceFeature extends Pick<GeofenceListModel, 'id' | 'name' | 'type' | 'geometry' | 'properties' | 'createdAt' | 'updatedAt' | 'countCrossingFeatures' | 'countInternalFeatures' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId'> {
8
+ hasRenderizedGeofence: boolean;
9
+ /**
10
+ * "renderizedCrossingFeatures" indica si está renderizado los features de cruce
11
+ */
12
+ hasRenderizedCrossingFeatures: boolean;
13
+ /**
14
+ * "loadedCrossingFeatures" features cargados, mas no necesariamente visibles (incremental)
15
+ */
16
+ loadedCrossingFeatures: CrossingFeature[] | null;
17
+ /**
18
+ * "loadedInternalFeatures" features internos cargados, mas no necesariamente visibles (incremental)
19
+ */
20
+ loadedInternalFeatures: InternalFeature[] | null;
21
+ /**
22
+ * "renderizedInternalFeatures" indica si está renderizado los features internos
23
+ */
24
+ hasRenderizedInternalFeatures: boolean;
25
+ }
26
+ export declare type OwnerState = {
27
+ status: GpsToolsStatus;
28
+ /**
29
+ * "isMobile" cuando el navegador está en modo celular
30
+ */
31
+ isMobile: boolean;
32
+ /**
33
+ * "isSkeleton" indica si el componente está en skeleton.
34
+ */
35
+ isSkeleton: boolean;
36
+ /**
37
+ * focus: Estado de selección asignado por el usuario.
38
+ *
39
+ */
40
+ focus: boolean;
41
+ };
42
+ /**
43
+ * @type
44
+ * @name ExternalOwnerState
45
+ * @description Estados que se actulizan por fuera del store, a través de hooks
46
+ */
47
+ export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
48
+ export declare type CurrentGeofenceTool = 'list' | 'add_edit';
49
+ /**
50
+ * @description Tipo de dato del Id de la geocerca
51
+ * @interface GeofenceId
52
+ */
53
+ export interface GeofenceState {
54
+ rows: GeofenceListModel[];
55
+ /**
56
+ * "checkedGeofences" indica las geocercas visibles en el mapa
57
+ */
58
+ checkedGeofences: ReadonlySet<GeofenceId>;
59
+ /**
60
+ * "hashGeofences" Almacena las geocercas que se han cargado alguna vez, no necesariamente visibles
61
+ */
62
+ hashGeofences: Record<FeatureId, GeofenceFeature>;
63
+ /**
64
+ * "checkedCrossingFeatures" indica los crossing features visibles en el mapa
65
+ */
66
+ checkedCrossingFeatures: ReadonlySet<GeofenceId>;
67
+ /**
68
+ * "checkedInternalFeatures" indica los features internos visibles en el mapa
69
+ */
70
+ checkedInternalFeatures: ReadonlySet<GeofenceId>;
71
+ }
72
+ /**
73
+ * @description Tipo de dato del Id de la geocerca
74
+ * @interface GeofenceId
75
+ */
76
+ export declare type GeofenceId = number;
77
+ /**
78
+ * @interface
79
+ * @description Interface que define el estado del componente (variables y funciones )
80
+ */
81
+ export interface GpsToolsState {
82
+ ownerState: OwnerState;
83
+ /**
84
+ * "currentTabTool" indica la pestaña actual en uso
85
+ */
86
+ currentTabGpsTool: CurrentTabGpsTool;
87
+ /**
88
+ * "geofenceState" manejo del estado lo relacionado con geocercas
89
+ */
90
+ geofenceState: GeofenceState;
91
+ /**
92
+ * "getLabel" funcion que usará para traducir las etiquetas de diccionario
93
+ */
94
+ getLabel: GetLabelType;
95
+ }
96
+ export interface GpsToolsStateWithActions extends GpsToolsState {
97
+ gpsToolsActions: {
98
+ /**
99
+ * @description
100
+ */
101
+ init(): void;
102
+ /**
103
+ * @description Cambia el estado del las herramientas de gps
104
+ */
105
+ setGpsToolsState: (state: GpsToolsStatus) => void;
106
+ /**
107
+ * @description Actualiza la variable de estado "getLabel"
108
+ * @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
109
+ * cambia por el useCallback, cuando el diccionario se carga.
110
+ * @returns void
111
+ */
112
+ setHandlerGetLabel: (newHandler: GetLabelType) => void;
113
+ /**
114
+ * @description Modifica los estados que se actualizan externamente al Store
115
+ * @param newIsMobile
116
+ * @returns
117
+ */
118
+ setExternalState: (newExternalState: ExternalOwnerState) => void;
119
+ /**
120
+ * @description Modifica los estados que se actualizan externamente al Store
121
+ * @param newIsMobile
122
+ * @returns
123
+ */
124
+ setCurrentTabTool: (newTabTool: CurrentTabGpsTool) => void;
125
+ };
126
+ geofenceActions: {
127
+ /**
128
+ * @description Agrega una geocerca al store
129
+ */
130
+ addGeofence: (geofenceId: GeofenceId, geofence: GeofenceFeature) => void;
131
+ /**
132
+ * @description Actualizar parcialmente una geocerca
133
+ */
134
+ updatePartialGeofence: (geofenceId: GeofenceId, geofence: Partial<GeofenceFeature>) => void;
135
+ /**
136
+ * @description Actualizar la filas que son mostradas en el grid de geocercas
137
+ */
138
+ updateRows: (newRows: GeofenceListModel[]) => void;
139
+ /**
140
+ * @description Agrega una geocerca del set de chequeo
141
+ */
142
+ addCheckedGeofence: (geofenceId: GeofenceId) => void;
143
+ /**
144
+ * @description Cambia el set de chequeo de las geocercas
145
+ */
146
+ setCheckedGeofences: (newGeofences: ReadonlySet<GeofenceId>) => void;
147
+ /**
148
+ * @description Remueve una geocerca del set de chequeo
149
+ */
150
+ removeCheckedGeofence: (geofenceId: GeofenceId) => void;
151
+ /**
152
+ * @description Cambia el set de chequeo de los crossing features
153
+ */
154
+ setCheckedCrossingFeatures: (newFeatures: ReadonlySet<GeofenceId>) => void;
155
+ /**
156
+ * @description Cambia el set de chequeo de los internal features
157
+ */
158
+ setCheckedInternalFeatures: (newFeatures: ReadonlySet<GeofenceId>) => void;
159
+ };
160
+ }
161
+ export declare type DefaultMapGpsToolsStoreProps = Omit<GpsToolsState, 'currentLayer'>;
162
+ export declare type InitialMapGpsToolsStoreProps = Pick<GpsToolsState, 'getLabel' | 'ownerState'> & Partial<DefaultMapGpsToolsStoreProps>;
163
+ export interface MapGpsToolsProviderProps {
164
+ children: ReactNode;
165
+ }
@@ -0,0 +1,2 @@
1
+ import { GpsToolsStateWithActions } from '../../contexts/GpsToolsContext/types';
2
+ export declare function useGpsToolsStore<T>(selector: (state: GpsToolsStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;