@m4l/gclick 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/components/maps/components/GpsMap/GpsMap.js +3 -3
  2. package/components/maps/components/GpsMap/GpsMap.styles.js +74 -4
  3. package/components/maps/components/GpsMap/constants.d.ts +3 -1
  4. package/components/maps/components/GpsMap/constants.js +9 -41
  5. package/components/maps/components/GpsMap/contexts/MapContext/store.js +5 -7
  6. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +6 -21
  7. package/components/maps/components/GpsMap/dictionary.js +0 -4
  8. package/components/maps/components/GpsMap/external/MapControl/types.d.ts +1 -2
  9. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +3 -1
  10. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +13 -15
  11. package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/index.d.ts +1 -1
  12. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/subcomponents/FeatureDivIconLabel/index.js +33 -0
  13. package/components/maps/components/GpsMap/featureRenders/{FeatureDivIconLabel → MarkerIconLabel/subcomponents/FeatureDivIconLabel}/types.d.ts +1 -1
  14. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +1 -2
  15. package/components/maps/components/GpsMap/featureRenders/index.d.ts +0 -1
  16. package/components/maps/components/GpsMap/hooks/useAutoFocus/index.js +4 -3
  17. package/components/maps/components/GpsMap/icons.js +0 -5
  18. package/components/maps/components/GpsMap/slots/slots.d.ts +2 -2
  19. package/components/maps/components/GpsMap/slots/slots.js +2 -2
  20. package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.d.ts +23 -0
  21. package/components/maps/components/GpsMap/subcomponents/Controls/hooks/useControls.js +32 -0
  22. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +0 -12
  23. package/components/maps/components/GpsMap/subcomponents/Controls/index.js +7 -9
  24. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts +4 -0
  25. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +41 -0
  26. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/types.d.ts +2 -2
  27. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.js +9 -9
  28. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +5 -0
  29. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +61 -0
  30. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +7 -0
  31. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.js +38 -0
  32. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +5 -0
  33. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/index.js +4 -6
  34. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.js +1 -1
  35. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/types.d.ts +7 -0
  36. package/components/maps/components/GpsMap/subcomponents/Controls/types.d.ts +1 -1
  37. package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.js +2 -2
  38. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +13 -0
  39. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.d.ts +1 -1
  40. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/index.js +3 -39
  41. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.d.ts +1 -1
  42. package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/index.js +1 -1
  43. package/components/maps/components/GpsMap/types.d.ts +95 -8
  44. package/components/maps/components/GpsMapTools/constants.d.ts +1 -5
  45. package/components/maps/components/GpsMapTools/constants.js +2 -69
  46. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.d.ts +21 -0
  47. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/GpsMapToolsContext.js +20 -0
  48. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.d.ts +1 -21
  49. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/index.js +1 -48
  50. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.d.ts +1 -1
  51. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/store.js +54 -58
  52. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +20 -79
  53. package/components/maps/components/GpsMapTools/dictionary.d.ts +67 -53
  54. package/components/maps/components/GpsMapTools/dictionary.js +58 -50
  55. package/components/maps/components/GpsMapTools/hooks/useGpsMapToolsStore/index.js +1 -1
  56. package/components/maps/components/GpsMapTools/icons.d.ts +58 -17
  57. package/components/maps/components/GpsMapTools/icons.js +45 -18
  58. package/components/maps/components/GpsMapTools/index.d.ts +4 -5
  59. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.d.ts +4 -0
  60. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/GeofencesTool.js +16 -0
  61. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.d.ts +12 -0
  62. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/constants.js +52 -0
  63. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts +9 -0
  64. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +17 -0
  65. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.d.ts +8 -0
  66. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useColumns.js +88 -0
  67. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts +27 -0
  68. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.js +79 -0
  69. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.d.ts +16 -0
  70. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +57 -0
  71. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.d.ts +19 -0
  72. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterAndSort.js +57 -0
  73. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.d.ts +5 -0
  74. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useFilterFields.js +32 -0
  75. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.d.ts +5 -0
  76. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useFilterAndSort/useSortFields.js +20 -0
  77. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLayers.js +32 -0
  78. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts +8 -0
  79. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.js +104 -0
  80. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.d.ts +7 -0
  81. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useMaster.js +39 -0
  82. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.d.ts +12 -0
  83. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useModuleDynamicActions.js +55 -0
  84. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.d.ts +2 -2
  85. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofencesList → GeofencesTool}/hooks/useRowActionsGetter.js +30 -35
  86. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.d.ts +18 -0
  87. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabFiltered.js +70 -0
  88. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.d.ts +17 -0
  89. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useTabSelected.js +48 -0
  90. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/index.d.ts +1 -0
  91. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents → GeofencesTool}/model.d.ts +40 -12
  92. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts +5 -0
  93. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +45 -0
  94. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +3 -0
  95. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +31 -0
  96. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.d.ts +6 -15
  97. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/helpers.js +32 -15
  98. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +1 -1
  99. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useDrawing.js +108 -85
  100. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts +10 -0
  101. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +98 -0
  102. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +1 -3
  103. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +23 -24
  104. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +6 -3
  105. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +67 -0
  106. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.js +78 -0
  107. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.d.ts +8 -0
  108. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/hooks/useGeneral.js +43 -0
  109. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +6 -0
  110. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +3 -1
  111. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.js +6 -1
  112. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.d.ts +5 -0
  113. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel/MyActionFormCancel.js +19 -0
  114. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.d.ts +9 -0
  115. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/constants.js +64 -0
  116. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.js +2 -2
  117. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.js +7 -10
  118. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.d.ts +11 -0
  119. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokePatternOptions.js +19 -0
  120. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.d.ts +9 -0
  121. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/hooks/useStrokeWeightsOptions.js +17 -0
  122. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.js +15 -22
  123. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +9 -0
  124. package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/types.d.ts +17 -11
  125. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts +5 -0
  126. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.js +163 -0
  127. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/constants.d.ts +1 -0
  128. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.d.ts +17 -0
  129. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/helpers.js +35 -0
  130. package/components/maps/components/GpsMapTools/types.d.ts +0 -18
  131. package/components/maps/index.d.ts +1 -1
  132. package/index.js +65 -66
  133. package/package.json +2 -1
  134. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/constants.js +0 -4
  135. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +0 -263
  136. package/components/maps/components/GpsMap/featureRenders/FeatureDivIconLabel/index.js +0 -33
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.d.ts +0 -10
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/index.js +0 -10
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.d.ts +0 -4
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/subcomponents/ZoomButtons/index.js +0 -52
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/BottomRigthTools/types.d.ts +0 -2
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/index.d.ts +0 -4
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopLeftTools/types.d.ts +0 -5
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.d.ts +0 -9
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/index.js +0 -58
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/ButtonTool/index.d.ts +0 -9
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/TopRigthTools/types.d.ts +0 -4
  148. package/components/maps/components/GpsMapTools/GpsMapTools.d.ts +0 -5
  149. package/components/maps/components/GpsMapTools/GpsMapTools.js +0 -10
  150. package/components/maps/components/GpsMapTools/classes/index.d.ts +0 -7
  151. package/components/maps/components/GpsMapTools/classes/index.js +0 -21
  152. package/components/maps/components/GpsMapTools/classes/types.d.ts +0 -14
  153. package/components/maps/components/GpsMapTools/hooks/useLayers/index.js +0 -57
  154. package/components/maps/components/GpsMapTools/styles.d.ts +0 -1
  155. package/components/maps/components/GpsMapTools/styles.js +0 -18
  156. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.d.ts +0 -9
  157. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/index.js +0 -84
  158. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.d.ts +0 -20
  159. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/constants.js +0 -40
  160. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.js +0 -36
  161. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.d.ts +0 -5
  162. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/index.js +0 -71
  163. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.d.ts +0 -1
  164. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/styles.js +0 -8
  165. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.js +0 -51
  166. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.js +0 -128
  167. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +0 -7
  168. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -5
  169. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +0 -55
  170. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -4
  171. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +0 -76
  172. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/types.d.ts +0 -7
  173. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +0 -10
  174. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +0 -9
  175. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedFeatures.js +0 -86
  176. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +0 -7
  177. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useCheckedGeofences.js +0 -85
  178. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.d.ts +0 -12
  179. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useColumns.js +0 -111
  180. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.d.ts +0 -22
  181. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useMaster.js +0 -164
  182. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +0 -4
  183. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +0 -73
  184. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +0 -1
  185. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.js +0 -8
  186. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +0 -9
  187. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/subcomponents/Filter/index.js +0 -49
  188. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.d.ts +0 -7
  189. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/subcomponents/constants.js +0 -13
  190. package/components/maps/components/GpsMapTools/subcomponents/TabsGpsTools/types.d.ts +0 -7
  191. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/hooks/useTool.d.ts +0 -0
  192. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools/subcomponents/ButtonTool → ButtonsToolsList/subcomponents/ButtonPopupTool}/types.d.ts +0 -0
  193. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.d.ts +0 -0
  194. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.js +0 -0
  195. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.d.ts +0 -0
  196. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/MapLayersTool.styles.js +0 -0
  197. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/types.d.ts +0 -0
  198. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.d.ts +0 -0
  199. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/hooks/useMapLayersTool.js +0 -0
  200. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.d.ts +0 -0
  201. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/slots.js +0 -0
  202. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.d.ts +0 -0
  203. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/slots/styled.js +0 -0
  204. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.d.ts +0 -0
  205. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/MapLayerRow.js +0 -0
  206. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/subcomponents/types.d.ts +0 -0
  207. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapLayersTool/types.d.ts +0 -0
  208. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.d.ts +0 -0
  209. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.js +0 -0
  210. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.d.ts +0 -0
  211. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/MapSourcesTool.styles.js +0 -0
  212. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.d.ts +0 -0
  213. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/hooks/useMapSourcesTool.js +0 -0
  214. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.d.ts +0 -0
  215. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/slots.js +0 -0
  216. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.d.ts +0 -0
  217. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/slots/styled.js +0 -0
  218. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.d.ts +0 -0
  219. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/bing.js +0 -0
  220. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.d.ts +0 -0
  221. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/google.js +0 -0
  222. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.d.ts +0 -0
  223. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/sourceTypes/others.js +0 -0
  224. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.d.ts +0 -0
  225. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +0 -0
  226. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/subcomponents/types.d.ts +0 -0
  227. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MapSourcesTool/types.d.ts +0 -0
  228. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.d.ts +0 -0
  229. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.js +0 -0
  230. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.d.ts +0 -0
  231. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/MeasureTool.styles.js +0 -0
  232. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.d.ts +0 -0
  233. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/constants.js +0 -0
  234. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.d.ts +0 -0
  235. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/helpers.js +0 -0
  236. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/index.d.ts +0 -0
  237. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useMeasure/types.d.ts +0 -0
  238. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.d.ts +0 -0
  239. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/hooks/useValidation.js +0 -0
  240. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/model.d.ts +0 -0
  241. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.d.ts +0 -0
  242. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/slots.js +0 -0
  243. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.d.ts +0 -0
  244. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/slots/styled.js +0 -0
  245. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -0
  246. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/index.js +0 -0
  247. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +0 -0
  248. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +0 -0
  249. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MeasureData/validations.js +0 -0
  250. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -0
  251. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/subcomponents/MyActions/index.js +0 -0
  252. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/{TopRigthTools → ButtonsToolsList}/subcomponents/MeasureTool/types.d.ts +0 -0
  253. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer → Layers}/index.d.ts +0 -0
  254. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.d.ts +0 -0
  255. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/index.js +0 -0
  256. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
  257. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
  258. /package/components/maps/components/GpsMap/subcomponents/{LayersContainer/subcomponents/MyLayer → Layers/subcomponents/Layer}/types.d.ts +0 -0
  259. /package/components/maps/components/GpsMapTools/{hooks/useLayers/index.d.ts → subcomponents/GeofencesTool/hooks/useLayers.d.ts} +0 -0
  260. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +0 -0
  261. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/hooks/useValidation.js +0 -0
  262. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +0 -0
  263. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +0 -0
  264. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +0 -0
  265. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.js +0 -0
  266. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/GeneralData.d.ts} +0 -0
  267. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions → GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActionFormCancel}/types.d.ts +0 -0
  268. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +0 -0
  269. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +0 -0
  270. /package/components/maps/components/GpsMapTools/subcomponents/{TabsGpsTools → GeofencesTool}/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +0 -0
@@ -1,64 +1,72 @@
1
- import { getDataGridComponentsDictionary, getRHFAutocompleteComponentsDictionary, getDynamicFilterComponentsDictionary } from "@m4l/components";
2
- const MAPGPSTOOLS_DICTIONARY_ID = "gps_tools";
1
+ import { getDataGridComponentsDictionary, getRHFAutocompleteComponentsDictionary, getDynamicFilterComponentsDictionary, getDynamicSortComponentsDictionary } from "@m4l/components";
2
+ const MAPGPSTOOLS_DICTIONARY_ID = "map_gps_tools";
3
3
  function getGpsMapToolsComponentsDictionary() {
4
4
  return [MAPGPSTOOLS_DICTIONARY_ID].concat(
5
- getDataGridComponentsDictionary().concat(getRHFAutocompleteComponentsDictionary()).concat(getDynamicFilterComponentsDictionary())
5
+ getDataGridComponentsDictionary().concat(getRHFAutocompleteComponentsDictionary()).concat(getDynamicFilterComponentsDictionary()).concat(getDynamicSortComponentsDictionary())
6
6
  );
7
7
  }
8
8
  const MAP_GPSTOOLS_DICCTIONARY = {
9
9
  /** Common */
10
+ STEP_BASIC_INFORMATION: `${MAPGPSTOOLS_DICTIONARY_ID}.step_basic_information`,
11
+ STEP_BASIC_INFORMATION_DESCRIPTION: `${MAPGPSTOOLS_DICTIONARY_ID}.step_basic_information_description`,
12
+ STEP_STYLE: `${MAPGPSTOOLS_DICTIONARY_ID}.step_style`,
13
+ STEP_STYLE_DESCRIPTION: `${MAPGPSTOOLS_DICTIONARY_ID}.step_style_description`,
10
14
  /** GeofenceList */
11
- MODULE_NAME_GEOFENCE_ADD: "module_name_geofence_add",
12
- MODULE_NAME_GEOFENCE_EDIT: "module_name_geofence_edit",
15
+ MODULE_NAME_GEOFENCE_ADD: `${MAPGPSTOOLS_DICTIONARY_ID}.module_name_geofence_add`,
16
+ MODULE_NAME_GEOFENCE_EDIT: `${MAPGPSTOOLS_DICTIONARY_ID}.module_name_geofence_edit`,
13
17
  // Row Actions
14
- ROW_ACTION_GEO_EDIT: "row_action_geo_edit",
18
+ ROW_ACTION_GEO_EDIT: `${MAPGPSTOOLS_DICTIONARY_ID}.row_action_geo_edit`,
15
19
  // ROW_ACTION_GEO_ENABLE: 'row_action_geo_enable',
16
20
  // ROW_ACTION_GEO_DISABLE: 'row_action_geo_disable',
17
- ROW_ACTION_GEO_DELETE: "row_action_geo_delete",
21
+ ROW_ACTION_GEO_DELETE: `${MAPGPSTOOLS_DICTIONARY_ID}.row_action_geo_delete`,
18
22
  /** GeofenceAddEdit */
19
- LABEL_TAB_GEO: "label_tab_geo",
20
- TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip",
21
- PAPER_GENERAL: "paper_general",
22
- LABEL_ID: "label_id",
23
- LABEL_NAME: "label_name",
24
- LABEL_ALIAS: "label_alias",
25
- LABEL_CUSTOMER_ID: "label_customer_id",
26
- LABEL_GEOMETRY_TYPE: "label_geometry_type",
27
- LABEL_GEOMETRY_CIRCLE: "label_geometry_circle",
28
- LABEL_GEOMETRY_RECTANGLE: "label_geometry_rectangle",
29
- LABEL_GEOMETRY_POLYGON: "label_geometry_polygon",
30
- LABEL_DRAW: "label_draw",
31
- LABEL_FINISH: "label_finish",
32
- PAPER_CONFIG: "paper_config",
33
- LABEL_TIME_MIN_IN_SECONDS: "label_time_min_in_seconds",
34
- LABEL_TIME_MIN_OUT_SECONDS: "label_time_min_out_seconds",
35
- TAB_STYLE_CONFIG_TOOLTIP: "tab_style_tooltip",
36
- PAPER_STROKE: "paper_stroke",
37
- LABEL_COLOR: "label_color",
38
- LABEL_OPACITY: "label_opacity",
39
- LABEL_WEIGHT: "label_weight",
40
- LABEL_DASH_ARRAY: "label_dash_array",
41
- PAPER_FILL: "paper_fill",
42
- LABEL_RADIUS: "label_radius",
43
- LABEL_LAT: "label_lat",
44
- LABEL_LON: "label_lon",
45
- LABEL_FIRST_VERTEX: "label_first_vertex",
46
- LABEL_CONTINUE_LINE: "label_continue_line",
47
- LABEL_FINISH_LINE: "label_finish_line",
48
- LABEL_FINISH_POLY: "label_finish_poly",
49
- LABEL_FINISH_RECT: "label_finish_rect",
50
- LABEL_START_CIRCLE: "label_start_circle",
51
- LABEL_FINISH_CIRCLE: "label_finish_circle",
52
- LABEL_PLACE_CIRCLE_MARKER: "label_place_circle_marker",
53
- VALIDATION_GEOMETRY_REQUIRED: "validation_geometry_required",
54
- VALIDATION_FIELD_REQUIRED: "validation_field_required",
55
- VALIDATION_FIELD_TYPE_NUMBER_ERROR: "validation_field_type_number_error",
56
- VALIDATION_FIELD_MIN_NUMBER_ERROR: "validation_field_min_number_error",
57
- LABEL_CREATED_AT: "label_created_at",
58
- LABEL_UPDATED_AT: "label_updated_at",
59
- MODAL_DELETE_GEO_TITLE: "modal_delete_geo_title",
60
- MODAL_DELETE_GEO_MESSAGE: "modal_delete_geo_message",
61
- ACTION_CANCEL: "action_cancel"
23
+ LABEL_GEOFENCES: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geofences`,
24
+ LABEL_TAB_FILTERED: `${MAPGPSTOOLS_DICTIONARY_ID}.label_tab_filtered`,
25
+ LABEL_TAB_SELECTED: `${MAPGPSTOOLS_DICTIONARY_ID}.label_tab_selected`,
26
+ PAPER_GENERAL: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_general`,
27
+ LABEL_ID: `${MAPGPSTOOLS_DICTIONARY_ID}.label_id`,
28
+ LABEL_NAME: `${MAPGPSTOOLS_DICTIONARY_ID}.label_name`,
29
+ LABEL_ALIAS: `${MAPGPSTOOLS_DICTIONARY_ID}.label_alias`,
30
+ LABEL_CUSTOMER_ID: `${MAPGPSTOOLS_DICTIONARY_ID}.label_customer_id`,
31
+ LABEL_GEOMETRY_TYPE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_type`,
32
+ LABEL_GEOMETRY_CIRCLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_circle`,
33
+ LABEL_GEOMETRY_RECTANGLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_rectangle`,
34
+ LABEL_GEOMETRY_POLYGON: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_polygon`,
35
+ LABEL_GEOMETRY_MULTIPOLYGON: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geometry_multipolygon`,
36
+ LABEL_DRAW: `${MAPGPSTOOLS_DICTIONARY_ID}.label_draw`,
37
+ LABEL_FINISH: `${MAPGPSTOOLS_DICTIONARY_ID}.label_finish`,
38
+ PAPER_CONFIG: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_config`,
39
+ LABEL_TIME_MIN_IN: `${MAPGPSTOOLS_DICTIONARY_ID}.label_time_min_in`,
40
+ LABEL_TIME_MIN_OUT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_time_min_out`,
41
+ LABEL_TIME_UNIT_SECONDS: `${MAPGPSTOOLS_DICTIONARY_ID}.label_time_unit_seconds`,
42
+ PAPER_STROKE: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_stroke`,
43
+ LABEL_COLOR: `${MAPGPSTOOLS_DICTIONARY_ID}.label_color`,
44
+ LABEL_OPACITY: `${MAPGPSTOOLS_DICTIONARY_ID}.label_opacity`,
45
+ LABEL_WEIGHT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_weight`,
46
+ LABEL_DASH_ARRAY: `${MAPGPSTOOLS_DICTIONARY_ID}.label_dash_array`,
47
+ PAPER_FILL: `${MAPGPSTOOLS_DICTIONARY_ID}.paper_fill`,
48
+ LABEL_RADIUS: `${MAPGPSTOOLS_DICTIONARY_ID}.label_radius`,
49
+ LABEL_LAT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_lat`,
50
+ LABEL_LON: `${MAPGPSTOOLS_DICTIONARY_ID}.label_lon`,
51
+ LABEL_GEOMAN_FIRST_VERTEX: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_first_vertex`,
52
+ LABEL_GEOMAN_CONTINUE_LINE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_continue_line`,
53
+ LABEL_GEOMAN_FINISH_LINE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_line`,
54
+ LABEL_GEOMAN_FINISH_POLYLINE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_polyline`,
55
+ LABEL_GEOMAN_FINISH_RECT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_rect`,
56
+ LABEL_GEOMAN_START_CIRCLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_start_circle`,
57
+ LABEL_GEOMAN_FINISH_CIRCLE: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_finish_circle`,
58
+ LABEL_GEOMAN_PLACE_CIRCLE_MARKER: `${MAPGPSTOOLS_DICTIONARY_ID}.label_geoman_place_circle_marker`,
59
+ LABEL_STROKE_PATTERN_SOLID: `${MAPGPSTOOLS_DICTIONARY_ID}.label_stroke_pattern_solid`,
60
+ LABEL_STROKE_PATTERN_DASH: `${MAPGPSTOOLS_DICTIONARY_ID}.label_stroke_pattern_dash`,
61
+ VALIDATION_GEOMETRY_REQUIRED: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_geometry_required`,
62
+ VALIDATION_FIELD_REQUIRED: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_field_required`,
63
+ VALIDATION_IS_IN_EDITION: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_is_in_edition`,
64
+ VALIDATION_FIELD_TYPE_NUMBER_ERROR: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_field_type_number_error`,
65
+ VALIDATION_FIELD_MIN_NUMBER_ERROR: `${MAPGPSTOOLS_DICTIONARY_ID}.validation_field_min_number_error`,
66
+ LABEL_CREATED_AT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_created_at`,
67
+ LABEL_UPDATED_AT: `${MAPGPSTOOLS_DICTIONARY_ID}.label_updated_at`,
68
+ MODAL_DELETE_GEO_TITLE: `${MAPGPSTOOLS_DICTIONARY_ID}.modal_delete_geo_title`,
69
+ MODAL_DELETE_GEO_MESSAGE: `${MAPGPSTOOLS_DICTIONARY_ID}.modal_delete_geo_message`
62
70
  };
63
71
  export {
64
72
  MAP_GPSTOOLS_DICCTIONARY as M,
@@ -1,6 +1,6 @@
1
1
  import { useContext } from "react";
2
2
  import { useStore } from "zustand";
3
- import { G as GpsMapToolsContext } from "../../contexts/GpsMapToolsContext/index.js";
3
+ import { G as GpsMapToolsContext } from "../../contexts/GpsMapToolsContext/GpsMapToolsContext.js";
4
4
  function useGpsMapToolsStore(selector, equalityFn) {
5
5
  const context = useContext(GpsMapToolsContext);
6
6
  if (!context) {
@@ -1,23 +1,64 @@
1
1
  export declare const MAP_GPSTOOLS_ICONS: {
2
+ GEOFENCES_PAPER_GENERAL: string;
3
+ GEOFENCES_PAPER_STYLE: string;
4
+ GEOFENCES_PAPER_ASSIGNMENT: string;
2
5
  /**
3
6
  * GpsTools
4
7
  */
5
- MAP_GPS_TOOLS_TOOL: string;
8
+ GEOFENCES_TOOL: string;
6
9
  GEOFENCES: string;
7
- GEOFENCE_ID: string;
8
- GEOFENCE_NAME: string;
9
- GEOFENCE_ADD: string;
10
- GEOFENCE_EDIT: string;
11
- GEOFENCE_DELETE: string;
12
- GENERAL: string;
13
- DATA: string;
14
- STYLE: string;
15
- GEOFENCE_DRAW: string;
16
- GEOFENCE_FINISH: string;
17
- GEOFENCE_TYPE_CIRCLE: string;
18
- GEOFENCE_TYPE_RECTANGLE: string;
19
- GEOFENCE_TYPE_POLYGON: string;
20
- CONFIG: string;
21
- STROKE: string;
22
- FILL: string;
10
+ GEOFENCES_ID: string;
11
+ GEOFENCES_NAME: string;
12
+ GEOFENCES_ADD: string;
13
+ GEOFENCES_EDIT: string;
14
+ GEOFENCES_DELETE: string;
15
+ GEOFENCES_GENERAL: string;
16
+ GEOFENCES_DATA: string;
17
+ GEOFENCES_STYLE: string;
18
+ GEOFENCES_DRAW: string;
19
+ GEOFENCES_FINISH: string;
20
+ GEOFENCES_TYPE_CIRCLE: string;
21
+ GEOFENCES_TYPE_RECTANGLE: string;
22
+ GEOFENCES_TYPE_POLYGON: string;
23
+ GEOFENCES_TYPE_MULTIPOLYGON: string;
24
+ GEOFENCES_TYPE_NOT_RECOGNIZED: string;
25
+ GEOFENCES_TIME_MIN_IN: string;
26
+ GEOFENCES_TIME_MIN_OUT: string;
27
+ GEOFENCES_STROKE_WEIGHT_1: string;
28
+ GEOFENCES_STROKE_WEIGHT_2: string;
29
+ GEOFENCES_STROKE_WEIGHT_4: string;
30
+ GEOFENCES_STROKE_PATTERN_SOLID: string;
31
+ GEOFENCES_STROKE_PATTERN_DASH: string;
32
+ GEOFENCES_CONFIG: string;
33
+ GEOFENCES_STROKE: string;
34
+ GEOFENCES_FILL: string;
35
+ };
36
+ export declare const GEOFENCES_TYPE_ID: {
37
+ POLYGON: string;
38
+ CIRCLE: string;
39
+ RECTANGLE: string;
40
+ MULTIPOLYGON: string;
41
+ NOT_RECOGNIZED: string;
42
+ };
43
+ export declare const GEOFENCES_TYPE_ICONS: {
44
+ [GEOFENCES_TYPE_ID.POLYGON]: {
45
+ icon: string;
46
+ dictionaryId: "map_gps_tools.label_geometry_polygon";
47
+ };
48
+ [GEOFENCES_TYPE_ID.MULTIPOLYGON]: {
49
+ icon: string;
50
+ dictionaryId: "map_gps_tools.label_geometry_multipolygon";
51
+ };
52
+ [GEOFENCES_TYPE_ID.CIRCLE]: {
53
+ icon: string;
54
+ dictionaryId: "map_gps_tools.label_geometry_circle";
55
+ };
56
+ [GEOFENCES_TYPE_ID.RECTANGLE]: {
57
+ icon: string;
58
+ dictionaryId: "map_gps_tools.label_geometry_rectangle";
59
+ };
60
+ [GEOFENCES_TYPE_ID.NOT_RECOGNIZED]: {
61
+ icon: string;
62
+ dictionaryId: undefined;
63
+ };
23
64
  };
@@ -1,22 +1,49 @@
1
+ import { M as MAP_GPSTOOLS_DICCTIONARY } from "./dictionary.js";
1
2
  const MAP_GPSTOOLS_ICONS = {
2
- GEOFENCES: "cmp_map_gpstools_geofences.svg",
3
- GEOFENCE_ID: "cmp_map_gpstools_geofence_id.svg",
4
- GEOFENCE_NAME: "cmp_map_gpstools_geofence_name.svg",
5
- GEOFENCE_ADD: "cmp_map_gpstools_add-geofence.svg",
6
- GEOFENCE_EDIT: "cmp_map_gpstools_edit-geofence.svg",
7
- GEOFENCE_DELETE: "cmp_map_gpstools_delete-geofence.svg",
8
- GENERAL: "cmp_map_gpstools_general.svg",
9
- DATA: "cmp_map_gpstools_data.svg",
10
- STYLE: "cmp_map_gpstools_style.svg",
11
- GEOFENCE_DRAW: "cmp_map_gpstools_draw.svg",
12
- GEOFENCE_FINISH: "cmp_map_gpstools_finish.svg",
13
- GEOFENCE_TYPE_CIRCLE: "cmp_map_gpstools_circle.svg",
14
- GEOFENCE_TYPE_RECTANGLE: "cmp_map_gpstools_rectangle.svg",
15
- GEOFENCE_TYPE_POLYGON: "cmp_map_gpstools_polygon.svg",
16
- CONFIG: "cmp_map_gpstools_config.svg",
17
- STROKE: "cmp_map_gpstools_stroke.svg",
18
- FILL: "cmp_map_gpstools_fill.svg"
3
+ GEOFENCES_PAPER_GENERAL: "geofences_general_information.svg",
4
+ GEOFENCES_PAPER_STYLE: "geofences_style.svg",
5
+ /**
6
+ * GpsTools
7
+ */
8
+ GEOFENCES_TOOL: "geofences_geofence.svg",
9
+ GEOFENCES_ID: "geofences_id.svg",
10
+ GEOFENCES_NAME: "geofences_name.svg",
11
+ GEOFENCES_ADD: "geofences_add.svg",
12
+ GEOFENCES_EDIT: "geofences_edit.svg",
13
+ GEOFENCES_DELETE: "geofences_delete.svg",
14
+ GEOFENCES_GENERAL: "geofences_general.svg",
15
+ GEOFENCES_TYPE_CIRCLE: "geofences_circle.svg",
16
+ GEOFENCES_TYPE_RECTANGLE: "geofences_rectangle.svg",
17
+ GEOFENCES_TYPE_POLYGON: "geofences_polygon.svg",
18
+ GEOFENCES_TYPE_MULTIPOLYGON: "geofences_multiple_polygon.svg",
19
+ GEOFENCES_TYPE_NOT_RECOGNIZED: "geofences_not_recognized.svg",
20
+ GEOFENCES_TIME_MIN_IN: "geofences_entry.svg",
21
+ GEOFENCES_TIME_MIN_OUT: "geofences_exit.svg",
22
+ GEOFENCES_STROKE_WEIGHT_1: "geofences_weight_1px.svg",
23
+ GEOFENCES_STROKE_WEIGHT_2: "geofences_weight_2px.svg",
24
+ GEOFENCES_STROKE_WEIGHT_4: "geofences_weight_4px.svg",
25
+ GEOFENCES_STROKE_PATTERN_SOLID: "geofences_stroke_solid.svg",
26
+ GEOFENCES_STROKE_PATTERN_DASH: "geofences_stroke_dash.svg",
27
+ GEOFENCES_CONFIG: "geofences_configuration.svg",
28
+ GEOFENCES_STROKE: "geofences_stroke.svg",
29
+ GEOFENCES_FILL: "geofences_fill.svg"
30
+ };
31
+ const GEOFENCES_TYPE_ID = {
32
+ POLYGON: "gt_polygon",
33
+ CIRCLE: "gt_circle",
34
+ RECTANGLE: "gt_rectangle",
35
+ MULTIPOLYGON: "gt_multipolygon",
36
+ NOT_RECOGNIZED: "not_recognized"
37
+ };
38
+ const GEOFENCES_TYPE_ICONS = {
39
+ [GEOFENCES_TYPE_ID.POLYGON]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_POLYGON, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_POLYGON },
40
+ [GEOFENCES_TYPE_ID.MULTIPOLYGON]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_MULTIPOLYGON, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_MULTIPOLYGON },
41
+ [GEOFENCES_TYPE_ID.CIRCLE]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_CIRCLE, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_CIRCLE },
42
+ [GEOFENCES_TYPE_ID.RECTANGLE]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_RECTANGLE, dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_RECTANGLE },
43
+ [GEOFENCES_TYPE_ID.NOT_RECOGNIZED]: { icon: MAP_GPSTOOLS_ICONS.GEOFENCES_TYPE_NOT_RECOGNIZED, dictionaryId: void 0 }
19
44
  };
20
45
  export {
21
- MAP_GPSTOOLS_ICONS as M
46
+ GEOFENCES_TYPE_ICONS as G,
47
+ MAP_GPSTOOLS_ICONS as M,
48
+ GEOFENCES_TYPE_ID as a
22
49
  };
@@ -1,5 +1,4 @@
1
- export { GpsMapTools } from './GpsMapTools';
2
- export { GpsMapToolsProvider } from './contexts/GpsMapToolsContext';
3
- export { getGpsMapToolsComponentsDictionary as getGpsMapToolsComponentsDictionary } from './dictionary';
4
- export { useGpsMapToolsStore } from './hooks/useGpsMapToolsStore';
5
- export type { GpsMapToolsType } from './GpsMapTools';
1
+ export { GeofencesTool } from './subcomponents/GeofencesTool/GeofencesTool';
2
+ export * from './contexts/GpsMapToolsContext';
3
+ export { GEOFENCES_TOOL } from './subcomponents/GeofencesTool/constants';
4
+ export { getGpsMapToolsComponentsDictionary } from './dictionary';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * TODO: Documentar
3
+ */
4
+ export declare function GeofencesTool(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { u as useMaster } from "./hooks/useMaster.js";
3
+ import { DynamicTabs } from "@m4l/layouts";
4
+ function GeofencesTool() {
5
+ const { tabs, defaultTab } = useMaster();
6
+ return /* @__PURE__ */ jsx(
7
+ DynamicTabs,
8
+ {
9
+ tabs,
10
+ defaultTab
11
+ }
12
+ );
13
+ }
14
+ export {
15
+ GeofencesTool as G
16
+ };
@@ -0,0 +1,12 @@
1
+ import { PositionMapTool } from '../../../GpsMap/types';
2
+ import { RNDDefaultPosition } from '@m4l/components';
3
+ import { StyleDashArray } from './model';
4
+ export declare const ENDPOINT_GEOFENCES_GET = "geofences";
5
+ export declare const ENDPOINT_GEOFENCES_NEW_EDIT = "geofences";
6
+ export declare const GEOFENCES_TOOL_LIST_POPUP_ID = "geofences";
7
+ export declare enum GeofencesLayers {
8
+ LAYER_GEOFENCES = "geofences"
9
+ }
10
+ export declare const GEOFENCES_TOOL: PositionMapTool;
11
+ export declare const GEOFENCES_TOOL_DEFAULT_POSITION: RNDDefaultPosition;
12
+ export declare const STYLE_PATTERNS: StyleDashArray[];
@@ -0,0 +1,52 @@
1
+ import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../constants.js";
2
+ import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../dictionary.js";
3
+ import { M as MAP_GPSTOOLS_ICONS } from "../../icons.js";
4
+ import { G as GeofencesTool } from "./GeofencesTool.js";
5
+ const ENDPOINT_GEOFENCES_GET = "geofences";
6
+ const ENDPOINT_GEOFENCES_NEW_EDIT = "geofences";
7
+ const GEOFENCES_TOOL_LIST_POPUP_ID = "geofences";
8
+ var GeofencesLayers = /* @__PURE__ */ ((GeofencesLayers2) => {
9
+ GeofencesLayers2[GeofencesLayers2["LAYER_GEOFENCES"] = GEOFENCES_TOOL_LIST_POPUP_ID] = "LAYER_GEOFENCES";
10
+ return GeofencesLayers2;
11
+ })(GeofencesLayers || {});
12
+ const GEOFENCES_TOOL = {
13
+ position: "topright",
14
+ type: "popup",
15
+ isInternal: true,
16
+ componentPathId: GPS_TOOLS_COMPONENT_PATH_ID,
17
+ iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_TOOL,
18
+ id: GEOFENCES_TOOL_LIST_POPUP_ID,
19
+ dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOFENCES,
20
+ popupDefaultPosition: {
21
+ vertical: { top: 16, bottom: 50 },
22
+ horizontal: { right: -55, width: 380, magnetize: true }
23
+ },
24
+ PopupContentComponent: GeofencesTool
25
+ };
26
+ const GEOFENCES_TOOL_DEFAULT_POSITION = {
27
+ vertical: { top: 16, bottom: 50 },
28
+ horizontal: { right: -55, width: 380, magnetize: true }
29
+ };
30
+ const STYLE_PATTERNS = [
31
+ {
32
+ id: "solid",
33
+ dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_STROKE_PATTERN_SOLID,
34
+ iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE_PATTERN_SOLID,
35
+ style: ""
36
+ },
37
+ {
38
+ id: "dash",
39
+ dictionaryId: MAP_GPSTOOLS_DICCTIONARY.LABEL_STROKE_PATTERN_DASH,
40
+ iconId: MAP_GPSTOOLS_ICONS.GEOFENCES_STROKE_PATTERN_DASH,
41
+ style: "4 8"
42
+ }
43
+ ];
44
+ export {
45
+ ENDPOINT_GEOFENCES_GET as E,
46
+ GeofencesLayers as G,
47
+ STYLE_PATTERNS as S,
48
+ GEOFENCES_TOOL_DEFAULT_POSITION as a,
49
+ ENDPOINT_GEOFENCES_NEW_EDIT as b,
50
+ GEOFENCES_TOOL_LIST_POPUP_ID as c,
51
+ GEOFENCES_TOOL as d
52
+ };
@@ -0,0 +1,9 @@
1
+ import { GeofenceStyleProperties, StyleProperties } from './model';
2
+ /**
3
+ * Retorna el estilo de la patrón de trazo
4
+ */
5
+ export declare const getStylePatternFromId: (id: string) => string;
6
+ /**
7
+ * Retorna el estilo para Leaflet basado en las propiedades de la geocerca, que vienen de la base de datos
8
+ */
9
+ export declare const getStyleFromProperties: (properties: GeofenceStyleProperties) => StyleProperties;
@@ -0,0 +1,17 @@
1
+ import { S as STYLE_PATTERNS } from "./constants.js";
2
+ const getStylePatternFromId = (id) => {
3
+ return STYLE_PATTERNS.find((style) => style.id === id)?.style || STYLE_PATTERNS[0].style;
4
+ };
5
+ const getStyleFromProperties = (properties) => {
6
+ return {
7
+ fillColor: properties.fillColor,
8
+ fillOpacity: properties.fillOpacity,
9
+ color: properties.strokeColor,
10
+ opacity: properties.strokeOpacity,
11
+ weight: properties.strokeWeight,
12
+ dashArray: getStylePatternFromId(properties.strokeDashArray)
13
+ };
14
+ };
15
+ export {
16
+ getStyleFromProperties as g
17
+ };
@@ -0,0 +1,8 @@
1
+ import { GeofenceListColumns } from '../model';
2
+ import { Column } from 'react-data-grid';
3
+ /**
4
+ * columnas del grid de geofences
5
+ */
6
+ export declare function useColumns(): {
7
+ columns: Column<GeofenceListColumns, unknown>[];
8
+ };
@@ -0,0 +1,88 @@
1
+ import { useModuleDictionary, useEnvironment } from "@m4l/core";
2
+ import { useCallback, useMemo } from "react";
3
+ import { M as MAP_GPSTOOLS_DICCTIONARY } from "../../../dictionary.js";
4
+ import { useColumnDate, useColumnIcon, DATAGRID_SEMANTIC_WIDTHS } from "@m4l/components";
5
+ import { G as GEOFENCES_TYPE_ICONS, a as GEOFENCES_TYPE_ID } from "../../../icons.js";
6
+ import { G as GPS_TOOLS_COMPONENT_PATH_ID } from "../../../constants.js";
7
+ function useColumns() {
8
+ const { getLabel } = useModuleDictionary();
9
+ const { host_static_assets, environment_assets } = useEnvironment();
10
+ const createdAtColumn = useColumnDate({ fieldValue: "createdAt", presentationType: "datetime" });
11
+ const updatedAtColumn = useColumnDate({ fieldValue: "updatedAt", presentationType: "datetime" });
12
+ const geometryTypeColumn = useColumnIcon(
13
+ {
14
+ getIconProps: useCallback((row) => {
15
+ if (!row) {
16
+ return {
17
+ iconUrl: "",
18
+ tooltip: "",
19
+ dataTestId: ""
20
+ };
21
+ }
22
+ const type = GEOFENCES_TYPE_ICONS[row.type.id] ? GEOFENCES_TYPE_ICONS[row.type.id] : GEOFENCES_TYPE_ICONS[GEOFENCES_TYPE_ID.NOT_RECOGNIZED];
23
+ const tooltip = type?.dictionaryId ? getLabel(type.dictionaryId) : void 0;
24
+ return {
25
+ iconUrl: `${host_static_assets}/${environment_assets}/frontend/components/${GPS_TOOLS_COMPONENT_PATH_ID}/assets/icons/${type.icon}`,
26
+ tooltip,
27
+ dataTestId: `geofence-type-${row.type.id}`
28
+ };
29
+ }, [getLabel, host_static_assets, environment_assets])
30
+ }
31
+ );
32
+ const columns = useMemo(
33
+ () => [
34
+ {
35
+ key: "id",
36
+ name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_ID),
37
+ type: "number",
38
+ width: 40,
39
+ visible: false
40
+ },
41
+ {
42
+ key: "geometryTypeId",
43
+ name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_GEOMETRY_TYPE),
44
+ type: "string",
45
+ width: 40,
46
+ visible: true,
47
+ align: "center",
48
+ ...geometryTypeColumn
49
+ },
50
+ {
51
+ key: "name",
52
+ name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_NAME),
53
+ type: "string",
54
+ width: 220
55
+ },
56
+ {
57
+ key: "customerId",
58
+ name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_CUSTOMER_ID),
59
+ type: "string",
60
+ width: 40,
61
+ visible: false
62
+ },
63
+ {
64
+ key: "createdAt",
65
+ name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_CREATED_AT),
66
+ type: "date",
67
+ align: "center",
68
+ width: DATAGRID_SEMANTIC_WIDTHS.date,
69
+ visible: false,
70
+ ...createdAtColumn
71
+ },
72
+ {
73
+ key: "updatedAt",
74
+ name: getLabel(MAP_GPSTOOLS_DICCTIONARY.LABEL_UPDATED_AT),
75
+ type: "date",
76
+ align: "center",
77
+ visible: false,
78
+ width: DATAGRID_SEMANTIC_WIDTHS.date,
79
+ ...updatedAtColumn
80
+ }
81
+ ],
82
+ [createdAtColumn, geometryTypeColumn, getLabel, updatedAtColumn]
83
+ );
84
+ return { columns };
85
+ }
86
+ export {
87
+ useColumns as u
88
+ };
@@ -0,0 +1,27 @@
1
+ import { GeofenceListModel } from '../model';
2
+ import { GeofenceId } from '../../../contexts/GpsMapToolsContext/types';
3
+ export type UseDatagridFilteredProps = {
4
+ goAdd: () => void;
5
+ labelAdd: string;
6
+ enableAdd: boolean;
7
+ refreshCount: number;
8
+ };
9
+ /**
10
+ * useDatagrid" hook encargado de gestionar el DataGridn de las geocercas filtradas a traves del endpoint
11
+ */
12
+ export declare function useDatagridFiltered(props: UseDatagridFilteredProps): {
13
+ pagerState: import('@m4l/graphics/src/hooks/usePaginate/types').PagerState;
14
+ onPageChange: (newPage: number) => void;
15
+ onRowsPerPageChange: (newRowsPerPage: number) => void;
16
+ rows: GeofenceListModel[];
17
+ defaultUserColumns: import('@m4l/components').IGridConfigExtended;
18
+ onChangeUserColumns: (newProps: import('@m4l/components').ChangeUserColumn) => void;
19
+ leftActions: import("react/jsx-runtime").JSX.Element;
20
+ rightActions: import("react/jsx-runtime").JSX.Element;
21
+ visibleCustomHeader: boolean;
22
+ customHeaderComponent: import("react/jsx-runtime").JSX.Element;
23
+ checkedGeofencesFiltered: Set<number>;
24
+ setCheckedGeofencesFiltered: (filteredCheckedGeofences: ReadonlySet<GeofenceId>) => void;
25
+ externalFilterSettings: import('@m4l/components/src/components/DataGrid/types').FilterSettings | undefined;
26
+ externalSortSettings: import('@m4l/components/src/components/DataGrid/types').SortSettings | undefined;
27
+ };
@@ -0,0 +1,79 @@
1
+ import { useState, useEffect, useMemo, useCallback } from "react";
2
+ import { useWindowToolsMF, useDataGridPersistence } from "@m4l/components";
3
+ import { usePaginate } from "@m4l/graphics";
4
+ import { u as useGpsMapToolsStore } from "../../../hooks/useGpsMapToolsStore/index.js";
5
+ import { shallow } from "zustand/shallow";
6
+ import { u as useFilterAndSort } from "./useFilterAndSort/useFilterAndSort.js";
7
+ function useDatagridFiltered(props) {
8
+ const { goAdd, labelAdd, refreshCount } = props;
9
+ const { startProgress, stopProgress } = useWindowToolsMF();
10
+ const [checkedGeofences] = useGpsMapToolsStore(
11
+ (state) => [
12
+ state.geofenceState.checkedGeofences
13
+ ],
14
+ shallow
15
+ );
16
+ const { verifyAddOrChangedGeofenceFromList: verifyAddOrChangedGeofence, setCheckedGeofences } = useGpsMapToolsStore(
17
+ (state) => state.geofenceActions,
18
+ shallow
19
+ );
20
+ const [backendQueryParams, setBackendQueryParams] = useState({});
21
+ const { pagerState, rows, onPageChange, onRowsPerPageChange, Refresh: refresh } = usePaginate(
22
+ {
23
+ endPoint: "geofences",
24
+ fireOnChangeParms: false,
25
+ fireOnFirstLoad: false,
26
+ queryParams: backendQueryParams,
27
+ responseToCamelCase: true,
28
+ startProgress,
29
+ stopProgress
30
+ }
31
+ );
32
+ useEffect(() => {
33
+ if (refreshCount > 0) {
34
+ refresh();
35
+ }
36
+ }, [refreshCount, refresh]);
37
+ const checkedGeofencesFiltered = useMemo(() => {
38
+ return new Set(Array.from(checkedGeofences).filter((id) => rows.some((row) => row.id === id)));
39
+ }, [checkedGeofences, rows]);
40
+ const setCheckedGeofencesFiltered = useCallback((filteredCheckedGeofences) => {
41
+ const totalCheckedGeofences = new Set(checkedGeofences);
42
+ rows.forEach((row) => {
43
+ if (!filteredCheckedGeofences.has(row.id)) {
44
+ totalCheckedGeofences.delete(row.id);
45
+ } else {
46
+ if (!totalCheckedGeofences.has(row.id)) {
47
+ totalCheckedGeofences.add(row.id);
48
+ }
49
+ }
50
+ });
51
+ setCheckedGeofences(totalCheckedGeofences);
52
+ }, [checkedGeofences, rows, setCheckedGeofences]);
53
+ useEffect(() => {
54
+ rows.forEach((row) => {
55
+ verifyAddOrChangedGeofence(row.id, row);
56
+ });
57
+ }, [rows]);
58
+ const { onChangeUserColumns, defaultUserColumns } = useDataGridPersistence({ prefixCookie: `master_all` });
59
+ const { leftActions, rightActions, visibleCustomHeader, customHeaderComponent, externalFilterSettings, externalSortSettings } = useFilterAndSort({ labelAdd, goAdd, setBackendQueryParams, refresh });
60
+ return {
61
+ pagerState,
62
+ onPageChange,
63
+ onRowsPerPageChange,
64
+ rows,
65
+ defaultUserColumns,
66
+ onChangeUserColumns,
67
+ leftActions,
68
+ rightActions,
69
+ visibleCustomHeader,
70
+ customHeaderComponent,
71
+ checkedGeofencesFiltered,
72
+ setCheckedGeofencesFiltered,
73
+ externalFilterSettings,
74
+ externalSortSettings
75
+ };
76
+ }
77
+ export {
78
+ useDatagridFiltered as u
79
+ };
@@ -0,0 +1,16 @@
1
+ import { GeofenceListColumns } from '../model';
2
+ export type UseDatagridSelectedProps = {
3
+ labelAdd: string;
4
+ enableAdd: boolean;
5
+ goAdd: () => void;
6
+ };
7
+ export type UseGpsMapToolsStoreSelected = {
8
+ rows: GeofenceListColumns[];
9
+ };
10
+ /**
11
+ * useDatagrid" hook encargado de gestionar el DataGrid
12
+ */
13
+ export declare function useDatagridSelected(props: UseDatagridSelectedProps): {
14
+ rows: GeofenceListColumns[];
15
+ rightActions: import("react/jsx-runtime").JSX.Element;
16
+ };