@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
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface TabAction {
3
+ id: string;
4
+ icon?: string | React.ReactElement;
5
+ component: React.ReactNode;
6
+ label: string;
7
+ className?: string;
8
+ }
9
+ export declare function TabsGpsTools(): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,20 @@
1
+ import { FormAddEditValues } from './types';
2
+ export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
3
+ export declare const STROKE_OPACITY_DEFAULT: {
4
+ value: number;
5
+ label: string;
6
+ };
7
+ export declare const STROKE_WHEIGTH_DEFAULT: {
8
+ value: number;
9
+ label: string;
10
+ };
11
+ export declare const STROKE_DASH_ARRAY_DEFAULT: {
12
+ value: string;
13
+ label: string;
14
+ };
15
+ export declare const FILL_COLOR_DEFAULT = "#aa3000";
16
+ export declare const FILL_OPACITY_DEFAULT: {
17
+ value: number;
18
+ label: string;
19
+ };
20
+ export declare const initialValues: FormAddEditValues;
@@ -0,0 +1,19 @@
1
+ import { GeofenceGeometry, GeofenceGetModel, GeofenceTypeId } from '../model';
2
+ import { FormAddEditValues } from './types';
3
+ import * as L from 'leaflet';
4
+ export declare const getFormStrokeOpacityFromData: (strokeOpacity?: number | undefined) => {
5
+ value: number;
6
+ label: string;
7
+ };
8
+ export declare const getFormStrokeWeightFromData: (strokeWeight?: number | undefined) => {
9
+ value: number;
10
+ label: string;
11
+ };
12
+ export declare const getFormstrokeDashArrayFromData: (strokeDashArray?: string | undefined) => {
13
+ value: string;
14
+ label: string;
15
+ };
16
+ export declare const formatDataEnpoint: (response: {
17
+ data: GeofenceGetModel;
18
+ }) => FormAddEditValues;
19
+ export declare const getLayerFromGeometry: (geometry: GeofenceGeometry | null, geofenceTypeId: GeofenceTypeId | null, radius: number | null, options?: L.CircleMarkerOptions | L.PolylineOptions | undefined) => L.Circle<any> | L.Polygon<any> | null;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * hook Encargado manejar los eventos de dibujo y setear en hook forms values,
3
+ * los datos asociados a una geocerca
4
+ * @returns
5
+ */
6
+ export declare function useDrawing(): {
7
+ inEdition: boolean;
8
+ handleDraw: () => void;
9
+ handleFinish: () => void;
10
+ geometrTypeIdCached: "gt_polygon" | "gt_circle" | "gt_rectangle" | "gt_multipolygon" | null;
11
+ };
@@ -0,0 +1,8 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { FormAddEditValues, GeofenceAddEditProps } from '../types';
3
+ export interface UseSubmitProps extends Pick<GeofenceAddEditProps, 'fullRefresh'> {
4
+ objectId?: number;
5
+ }
6
+ export declare function useSubmit(props: UseSubmitProps): {
7
+ onSubmit: (data: FormAddEditValues | FieldValues) => Promise<void>;
8
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Este hook se encarga de hacer focus en el primer campo con error,
3
+ * se pasa de tab previamente si esta en otro
4
+ */
5
+ export declare function useSumbitErrorsFocus(): void;
@@ -0,0 +1,22 @@
1
+ import * as Yup from 'yup';
2
+ export declare function useValidation(): {
3
+ validationSchema: Yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
4
+ timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
5
+ timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
6
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
7
+ geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
8
+ geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
9
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
10
+ timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
11
+ timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
12
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
13
+ geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
14
+ geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
15
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
16
+ timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
17
+ timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
18
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
19
+ geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
20
+ geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
21
+ }>>>;
22
+ };
@@ -0,0 +1,2 @@
1
+ import type { GeofenceAddEditProps } from './types';
2
+ export declare function GeofenceAddEdit(props: GeofenceAddEditProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ConfigData(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export interface FormConfigDataValues {
2
+ alias: string | null;
3
+ customerId: string | null;
4
+ timeMinInSeconds: number;
5
+ timeMinOutSeconds: number;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { GetLabelType } from '@m4l/core';
2
+ export declare function ConfigDataValidation(getLabel: GetLabelType): {
3
+ timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
4
+ timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
5
+ };
@@ -0,0 +1 @@
1
+ export declare function GeneralData(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { GeofenceTypeItem } from "../../../../../../types";
2
+ import { GeofenceGeometry } from "../../../model";
3
+ export interface FormGeneralDataValues {
4
+ name: string;
5
+ geometry: GeofenceGeometry | null;
6
+ geofenceType: GeofenceTypeItem | null;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { GetLabelType } from '@m4l/core';
2
+ export declare function GeneralDataValidation(getLabel: GetLabelType): {
3
+ name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
+ geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
5
+ geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
6
+ };
@@ -0,0 +1,2 @@
1
+ import { MyActionsProps } from './types';
2
+ export declare function MyActions(props: MyActionsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { GeofenceAddEditProps } from "../../types";
2
+ export declare type MyActionsProps = GeofenceAddEditProps;
@@ -0,0 +1 @@
1
+ export declare function MyTabs(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function StyleData(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function StrokeData(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { Maybe } from "@m4l/core";
2
+ import { StyleOpacity, StyleDashArray, StyleWheight } from "../../../../../../types";
3
+ export interface FormStyleDataValues {
4
+ strokeColor?: string;
5
+ strokeOpacity?: Maybe<StyleOpacity>;
6
+ strokeWeight?: Maybe<StyleWheight>;
7
+ strokeDashArray?: Maybe<StyleDashArray>;
8
+ fillColor?: string;
9
+ fillOpacity?: Maybe<StyleOpacity>;
10
+ }
@@ -0,0 +1,27 @@
1
+ import { StyleOpacity, StyleDashArray, StyleWheight } from '../../../../types';
2
+ import { GeofenceGetModel } from '../model';
3
+ import { FormConfigDataValues } from './subcomponents/ConfigData/types';
4
+ import { FormGeneralDataValues } from './subcomponents/GeneralData/types';
5
+ import { FormStyleDataValues } from './subcomponents/StyleData/types';
6
+ export declare type ResponseGet = {
7
+ data: GeofenceGetModel;
8
+ };
9
+ export declare type FormAddEditValues = FormGeneralDataValues & FormConfigDataValues & FormStyleDataValues & {
10
+ inEdition: boolean;
11
+ lat?: number | null;
12
+ lng?: number | null;
13
+ properties: {
14
+ radius?: number | null;
15
+ strokeColor: string;
16
+ strokeOpacity: StyleOpacity;
17
+ strokeWeight: StyleWheight;
18
+ strokeDashArray: StyleDashArray;
19
+ fillColor: string;
20
+ fillOpacity: StyleOpacity;
21
+ };
22
+ };
23
+ export interface GeofenceAddEditProps {
24
+ geofenceId?: number;
25
+ fullRefresh?: (id?: number) => void;
26
+ [key: string]: any;
27
+ }
@@ -0,0 +1,9 @@
1
+ import { GeofencesFeaturesLayers } from '../../constants';
2
+ /**
3
+ * Hook encargado de cargar los features y pintarlos cuando los seleccionen
4
+ * @param layerId
5
+ * @param featuresType
6
+ * @param endpoint
7
+ * @returns
8
+ */
9
+ export declare function useCheckedFeatures(layerId: GeofencesFeaturesLayers, featuresType: 'CrossingFeatures' | 'InternalFeatures', endpoint: string): [ReadonlySet<number>, (newFeatures: ReadonlySet<number>) => void];
@@ -0,0 +1,4 @@
1
+ export declare function useCheckedGeofences(): {
2
+ checkedGeofences: ReadonlySet<number>;
3
+ setCheckedGeofences: (newGeofences: ReadonlySet<number>) => void;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { GeofenceListModel } from '../../model';
2
+ import { Column } from 'react-data-grid';
3
+ declare type UseColumnsProps<Row> = {
4
+ rowKeyGetter: (row: Row) => number;
5
+ };
6
+ export declare function useColumns(props: UseColumnsProps<GeofenceListModel>): {
7
+ columns: Column<GeofenceListModel, unknown>[];
8
+ };
9
+ export {};
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { GeofenceId } from '../../../../../contexts/GpsToolsContext/types';
3
+ import { GeofenceListModel } from '../../model';
4
+ export declare function useMaster(): {
5
+ rowKeyGetter: (row: GeofenceListModel) => number;
6
+ columns: import("react-data-grid").Column<GeofenceListModel, unknown>[];
7
+ refresh: () => void;
8
+ setBackendQueryParams: import("react").Dispatch<import("react").SetStateAction<Record<string, unknown>>>;
9
+ pagerState: import("@m4l/core").PagerState;
10
+ rows: GeofenceListModel[];
11
+ onPageChange: (newPage: number) => void;
12
+ onRowsPerPageChange: (newRowsPerPage: number) => void;
13
+ rowActionsGetter: (row: GeofenceListModel) => [] | import("../../../../../../../..").MenuAction[];
14
+ selectedRows: ReadonlySet<number>;
15
+ onSelectedRowsChange: (newRowsSelectSet: ReadonlySet<GeofenceId>) => void;
16
+ checkedRows: ReadonlySet<number>;
17
+ onCheckedRowsChange: (newGeofences: ReadonlySet<number>) => void;
18
+ setRows: import("react").Dispatch<import("react").SetStateAction<GeofenceListModel[]>>;
19
+ goToAddEdit: () => void;
20
+ };
@@ -0,0 +1,9 @@
1
+ import { MenuAction } from '../../../../../../../../mui_extended';
2
+ import { GeofenceListModel } from '../../model';
3
+ interface UseRowActionsProps {
4
+ fullRefresh: (id?: number) => void;
5
+ }
6
+ export declare function useRowActionsGetter(props: UseRowActionsProps): {
7
+ rowActionsGetter: (row: GeofenceListModel) => MenuAction[] | [];
8
+ };
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare function GeofencesList(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface FilterProps {
3
+ refresh: () => void;
4
+ setBackendQueryParams: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
5
+ }
6
+ export declare function Filter(props: FilterProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const ENDPOINT_GEOFENCE_GET = "geofences";
2
+ export declare const ENDPOINT_GEOFENCE_NEW_EDIT = "geofences";
3
+ export declare enum GeofencesFeaturesLayers {
4
+ LAYER_GEOFENCES = "geofences",
5
+ LAYER_GEOFENCES_TRANSIT_FEATURES = "geofencesCrossingFeatures",
6
+ LAYER_GEOFENCES_INTERNAL_FEATURES = "geofencesInternalFeatures"
7
+ }
@@ -0,0 +1,122 @@
1
+ import { GeofenceId } from '../../../contexts/GpsToolsContext/types';
2
+ import type { Feature, GeoJsonProperties, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon } from '../../../../Map/contexts/MapContext/types';
3
+ /**
4
+ * @description Tipos de geometría compatibles con las geocercas
5
+ * @interface GeofenceGeometry
6
+ */
7
+ export declare type GeofenceGeometry = Point | Polygon | MultiPolygon;
8
+ /**
9
+ * @description Tipos de geometría Compatibles con las geocercas
10
+ * @interface CrossingGeometry
11
+ */
12
+ export declare type CrossingGeometry = Polygon | Point;
13
+ /**
14
+ * @description Tipos de features de transtio soportados
15
+ * @interface CrossingFeature
16
+ */
17
+ export declare type CrossingFeature = Feature<CrossingGeometry>;
18
+ export declare type InternalGeometry = Point | Polygon | MultiPolygon | MultiPoint | LineString | MultiLineString;
19
+ /**
20
+ * @description Tipos de features de transtio soportados
21
+ * @interface InternalFeature
22
+ */
23
+ export declare type InternalFeature = Feature<InternalGeometry>;
24
+ export declare type GeofenceTypeId = 'gt_polygon' | 'gt_circle' | 'gt_rectangle' | 'gt_multipolygon';
25
+ export declare type GeofenceType = {
26
+ id: GeofenceTypeId;
27
+ name: string;
28
+ };
29
+ /**
30
+ * @description Modelo de datos proveniente del endpoint get de geocercas
31
+ * @interface GeofenceGetModel
32
+ */
33
+ export interface GeofenceGetModel {
34
+ /**
35
+ * id de la geocerca
36
+ */
37
+ id: GeofenceId;
38
+ /**
39
+ * "name" nombre dado por el cliente a la geocerca
40
+ */
41
+ name: string;
42
+ /**
43
+ * "active" si está activa o no lo geocerca
44
+ */
45
+ active: boolean;
46
+ /**
47
+ * "type" tipo de geocerca con idioma
48
+ */
49
+ type: GeofenceType;
50
+ /**
51
+ * "geometry" geometría de la geocerca compatible con GeoJSON
52
+ */
53
+ geometry: GeofenceGeometry;
54
+ /**
55
+ * "properties" propiedades de la geometria
56
+ */
57
+ properties: GeoJsonProperties;
58
+ /**
59
+ * timeMinInSeconds indica el tiempo mínimo para ingresar a una geocerca
60
+ */
61
+ timeMinInSeconds: number;
62
+ /**
63
+ * timeMinOutSeconds indica el tiempo mínimo para salir de una geocerca
64
+ */
65
+ timeMinOutSeconds: number;
66
+ /**
67
+ * "countCrossingFeatures" indica si la cantidad de features de cruce
68
+ */
69
+ countCrossingFeatures: number;
70
+ /**
71
+ * "countInternalFeatures" indica la cantidad de features internos que tiene la geocerca
72
+ */
73
+ countInternalFeatures: number;
74
+ /**
75
+ * "alias" alias de la geocerca, si no tiene es null y si tiene, es un string unico en todas las geocercas
76
+ */
77
+ alias?: string | null;
78
+ /**
79
+ * customerId indica el id del cliente al que pertenece la geocerca, si no tiene es null,
80
+ * si es de un cliente es un string unico en todas las geocercas
81
+ */
82
+ customerId?: string | null;
83
+ createdAt: string;
84
+ updatedAt: string | null;
85
+ }
86
+ interface AuthUserOptionsType {
87
+ activation: boolean;
88
+ delete: boolean;
89
+ edit: boolean;
90
+ }
91
+ /**
92
+ * @description Modelo de datos proveniente del endpoint list de geocercas
93
+ * @interface GeofenceListModel
94
+ */
95
+ export interface GeofenceListModel extends Omit<GeofenceGetModel, 'geometry'> {
96
+ /**
97
+ * "geometry" geometría de la geocerca compatible con GeoJSON
98
+ */
99
+ geometry: GeofenceGeometry | null;
100
+ authUserOptions: AuthUserOptionsType;
101
+ }
102
+ /**
103
+ * @description Modelo de datos para enviar al endpoint de creacion de geocercas
104
+ * @interface GeofenceNewModel
105
+ */
106
+ export interface GeofenceNewModel extends Pick<GeofenceGetModel, 'name' | 'geometry' | 'properties' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId'> {
107
+ /**
108
+ * "type" tipo de geocerca con idioma
109
+ */
110
+ typeId: GeofenceTypeId;
111
+ }
112
+ /**
113
+ * @description Modelo de datos para enviar al endpoint de creacion de geocercas
114
+ * @interface GeofenceNewModel
115
+ */
116
+ export interface GeofenceEditModel extends GeofenceNewModel {
117
+ /**
118
+ * id de la geocerca
119
+ */
120
+ geofenceId: GeofenceId;
121
+ }
122
+ export {};
@@ -0,0 +1,34 @@
1
+ import { GeofenceTypeId } from "./subcomponents/TabsGpsTools/subcomponents/model";
2
+ /**
3
+ * Por ahora solo distancia.
4
+ */
5
+ export declare type MeasureTypeId = 'distance';
6
+ export interface MeasureTypeItem {
7
+ id: MeasureTypeId;
8
+ name: string;
9
+ }
10
+ export interface MagnitudeFactorItem {
11
+ id: string;
12
+ name: string;
13
+ symbol: string;
14
+ factor_x0: number;
15
+ factor_x1: number;
16
+ factor_x2: number;
17
+ }
18
+ export interface GeofenceTypeItem {
19
+ id: GeofenceTypeId;
20
+ name: string;
21
+ url: string;
22
+ }
23
+ export interface StyleOpacity {
24
+ value: number;
25
+ label: string;
26
+ }
27
+ export interface StyleWheight {
28
+ value: number;
29
+ label: string;
30
+ }
31
+ export interface StyleDashArray {
32
+ value: string;
33
+ label: string;
34
+ }
@@ -0,0 +1,9 @@
1
+ import { MapProps } from './types';
2
+ /**
3
+ * "Map" componente encargado de renderizar las diferentes capas y brindar diferentes herramientas de usabilidad al usuario.
4
+ * Se utiliza MapRootContainer que es el estilado del contenedor principal del mapa.
5
+ * @link https://react-leaflet.js.org/
6
+ * @param props.gpsTools Herrameitas para gestionar las herramientas de guardian.click
7
+ * @author Juan Andres Escobar G.
8
+ */
9
+ export declare function Map(props: MapProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { MapClasses } from './types';
2
+ import { OwnerState } from '../contexts/MapContext/types';
3
+ export declare const mapClasses: MapClasses;
4
+ export declare const useMapUtilityClasses: (_ownerState: OwnerState) => Record<"disabled" | "root" | "active" | "topLeftToolsRoot" | "topRigthToolsRoot" | "zoomButtons" | "markerLayerRoot" | "markerLayerIcon" | "markerLayerLabel" | "featureLabel" | "meaureToolRoot" | "measureToolFormValue" | "measureToolFormValueDistance" | "measureToolFormValueSymbol" | "measureToolLabel" | "meausureToolLabelDistance" | "meausureToolLabelSymbol" | "measureMarkerRoot" | "measureMarkerContainer" | "measureMarkerContainerRhomb" | "measureMarkerContainerSlot" | "measureMarkerContainerSlotNumber" | "measureLabelMarkerRoot" | "measureLabelMarkerContainer" | "measureLabelMarkerDistance" | "measureLabelMarkerRemove" | "mapSourcesPopoverRoot" | "mapSourcesRoot" | "mapSourcesOption" | "mapSourcesOptionIconLabel" | "mapSourcesOptionRoadOptions" | "mapSourcesOptionRoadOptionsCheck" | "layersPopoverRoot" | "markerLayerLabelInner", string>;
5
+ export declare type Classes = ReturnType<typeof useMapUtilityClasses>;
@@ -0,0 +1,69 @@
1
+ export interface MapClasses {
2
+ root: string;
3
+ /**
4
+ * Root element for the top left tools
5
+ */
6
+ topLeftToolsRoot: string;
7
+ /**
8
+ * Root element for the top right tools
9
+ */
10
+ topRigthToolsRoot: string;
11
+ /**
12
+ * Container de zoom buttons
13
+ */
14
+ zoomButtons: string;
15
+ /**
16
+ * Root element de las marcas creadas con L.divIcon, esta al mimsmo nivel de leaflet-marker-icon
17
+ */
18
+ markerLayerRoot: string;
19
+ /**
20
+ * Icono de la marca, sobre este elemento se rota y se escala el contendio de la marca
21
+ */
22
+ markerLayerIcon: string;
23
+ /**
24
+ * Contenedor de la etiqueta de la marca
25
+ */
26
+ markerLayerLabel: string;
27
+ /**
28
+ * Contenedor de las etiquetas de las marcas, poligonoes, etc, en general de los features
29
+ */
30
+ featureLabel: string;
31
+ meaureToolRoot: string;
32
+ measureToolFormValue: string;
33
+ measureToolFormValueDistance: string;
34
+ measureToolFormValueSymbol: string;
35
+ measureToolLabel: string;
36
+ meausureToolLabelDistance: string;
37
+ meausureToolLabelSymbol: string;
38
+ /**
39
+ * Root element de la marca cread con L.divIcon, esta al mismo nivel de leaflet-marker-icon para denotar las marcas de medición
40
+ */
41
+ measureMarkerRoot: string;
42
+ /**
43
+ * Contenedor de la marca de medición, que indica el numero y forma el forma el rombo de la marca
44
+ */
45
+ measureMarkerContainer: string;
46
+ measureMarkerContainerRhomb: string;
47
+ measureMarkerContainerSlot: string;
48
+ measureMarkerContainerSlotNumber: string;
49
+ measureLabelMarkerRoot: string;
50
+ measureLabelMarkerContainer: string;
51
+ measureLabelMarkerDistance: string;
52
+ measureLabelMarkerRemove: string;
53
+ /**
54
+ * Map sources
55
+ */
56
+ mapSourcesPopoverRoot: string;
57
+ mapSourcesRoot: string;
58
+ mapSourcesOption: string;
59
+ mapSourcesOptionIconLabel: string;
60
+ mapSourcesOptionRoadOptions: string;
61
+ mapSourcesOptionRoadOptionsCheck: string;
62
+ /**
63
+ * Layers
64
+ */
65
+ layersPopoverRoot: string;
66
+ active: string;
67
+ disabled: string;
68
+ }
69
+ export declare type MapClassesKey = keyof MapClasses;
@@ -9,3 +9,27 @@ export declare const MAP_ZINDEX_DEFAULT = 0;
9
9
  export declare const MAP_ZINDEX_OVER_LAYERS = 1000;
10
10
  export declare const MAP_ZINDEX_OVER_MAP = 1100;
11
11
  export declare const TIME_DOUBLE_CLICK = 250;
12
+ export declare const MARKER_COLOR_DEFAULT = "#1E96DC";
13
+ export declare const LABEL_BK_COLOR_DEFAULT = "#1E96DC";
14
+ export declare const LABEL_COLOR_DEFAULT = "#FFFFFF";
15
+ export declare const GPS_TOOLS_POPUP_DEFAULT_POSITION: {
16
+ vertical: {
17
+ top: number;
18
+ bottom: number;
19
+ };
20
+ horizontal: {
21
+ right: number;
22
+ width: number;
23
+ };
24
+ };
25
+ export declare const MESURE_POPUP_DEFAULT_POSITION: {
26
+ vertical: {
27
+ top: number;
28
+ height: number;
29
+ };
30
+ horizontal: {
31
+ right: number;
32
+ width: number;
33
+ };
34
+ };
35
+ export declare const SVG_ICON_DEFAULT = "<svg viewBox=\"0 0 640 640\" height=\"32\" width=\"32\" xmlns=\"http://www.w3.org/2000/svg\">\n<g>\n <circle\n cx=\"320\"\n cy=\"320\"\n r=\"280\"\n fill=\"#1E96DC\"\n />\n <text\n x=\"320\"\n y=\"320\"\n font-size=\"320\"\n font-family=\"sans-serif\"\n fill=\"#FFFFFF\"\n text-anchor=\"middle\"\n alignment-baseline=\"central\"\n dominant-baseline=\"central\"\n >P</text>\n</g>\n</svg>";
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { MapProviderProps } from './types';
3
+ declare const MapContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").MapStateWithActions>, "setState"> & {
4
+ setState<A extends string | {
5
+ type: unknown;
6
+ }>(partial: import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions> | ((state: import("./types").MapStateWithActions) => import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
7
+ }, "setState"> & {
8
+ setState(nextStateOrUpdater: import("./types").MapStateWithActions | Partial<import("./types").MapStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").MapStateWithActions>) => 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 MapProvider(props: MapProviderProps): import("react/jsx-runtime").JSX.Element;
19
+ export { MapProvider, MapContext };
@@ -0,0 +1,8 @@
1
+ import { WritableDraft } from 'immer/dist/internal';
2
+ import type { MapStateWithActions, LayerStore } from './types';
3
+ export declare const DEFAULT_LAYER: Partial<LayerStore>;
4
+ /**
5
+ * @description Actualiza la clases basado en owner state
6
+ * @param state immer State
7
+ */
8
+ export declare const updateOwnerStateClasses: (state: WritableDraft<MapStateWithActions>) => void;
@@ -0,0 +1,2 @@
1
+ export { MapProvider, MapContext } from './MapContext';
2
+ export type { RendePropFeatureArgs, ComponentRenderPropFeature, FeatureId, FeatureCollection, Feature, Geometry } from './types';
@@ -0,0 +1,16 @@
1
+ import type { MapStateWithActions, InitialMapStoreProps } 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 createMapStore: (initProps: InitialMapStoreProps) => Omit<Omit<import("zustand").StoreApi<MapStateWithActions>, "setState"> & {
8
+ setState<A extends string | {
9
+ type: unknown;
10
+ }>(partial: MapStateWithActions | Partial<MapStateWithActions> | ((state: MapStateWithActions) => MapStateWithActions | Partial<MapStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
11
+ }, "setState"> & {
12
+ setState(nextStateOrUpdater: MapStateWithActions | Partial<MapStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<MapStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
13
+ type: unknown;
14
+ } | undefined): void;
15
+ };
16
+ export declare type MapStore = ReturnType<typeof createMapStore>;