@m4l/gclick 0.3.6 → 0.3.7

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 (324) hide show
  1. package/components/ReportsViewer/hooks/useSheetContent/useSheetContent.d.ts +1 -1
  2. package/components/formatters/CourseFormatter/CourseFormatter.d.ts.map +1 -0
  3. package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.js +2 -2
  4. package/components/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +1 -0
  5. package/components/formatters/CourseFormatter/constants.d.ts.map +1 -0
  6. package/components/formatters/CourseFormatter/dictionary.d.ts.map +1 -0
  7. package/components/formatters/CourseFormatter/helper.d.ts.map +1 -0
  8. package/components/formatters/CourseFormatter/index.d.ts.map +1 -0
  9. package/components/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +1 -0
  10. package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +4 -0
  11. package/components/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +1 -0
  12. package/components/formatters/CourseFormatter/types.d.ts.map +1 -0
  13. package/components/formatters/index.d.ts +2 -0
  14. package/components/formatters/index.d.ts.map +1 -0
  15. package/components/index.d.ts +1 -0
  16. package/components/index.d.ts.map +1 -1
  17. package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts +1 -1
  18. package/components/indicators/IndicatorBattery/IndicatorBattery.d.ts.map +1 -1
  19. package/components/indicators/IndicatorBattery/IndicatorBattery.js +51 -53
  20. package/components/maps/components/GpsMap/GpsMap.js +16 -16
  21. package/components/maps/components/GpsMap/GpsMap.styles.d.ts.map +1 -1
  22. package/components/maps/components/GpsMap/GpsMap.styles.js +2 -0
  23. package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts +38 -0
  24. package/components/maps/components/GpsMap/__testing__/GpsMapTestWrapper.d.ts.map +1 -0
  25. package/components/maps/components/GpsMap/__testing__/constants.d.ts +36 -0
  26. package/components/maps/components/GpsMap/__testing__/constants.d.ts.map +1 -0
  27. package/components/maps/components/GpsMap/__testing__/fixtures.d.ts +54 -0
  28. package/components/maps/components/GpsMap/__testing__/fixtures.d.ts.map +1 -0
  29. package/components/maps/components/GpsMap/__testing__/index.d.ts +5 -0
  30. package/components/maps/components/GpsMap/__testing__/index.d.ts.map +1 -0
  31. package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts +51 -0
  32. package/components/maps/components/GpsMap/__testing__/renderFeatureTestSupport.d.ts.map +1 -0
  33. package/components/maps/components/GpsMap/classes/index.d.ts +1 -2
  34. package/components/maps/components/GpsMap/classes/index.d.ts.map +1 -1
  35. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.d.ts.map +1 -1
  36. package/components/maps/components/GpsMap/contexts/MapContext/MapContext.js +6 -10
  37. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts +21 -0
  38. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.d.ts.map +1 -0
  39. package/components/maps/components/GpsMap/contexts/MapContext/helpers/toolControllerRegistry.js +27 -0
  40. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +1 -1
  41. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts.map +1 -1
  42. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts +1 -1
  43. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts.map +1 -1
  44. package/components/maps/components/GpsMap/contexts/MapContext/store.js +113 -139
  45. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +73 -52
  46. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts.map +1 -1
  47. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts +4 -4
  48. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts.map +1 -1
  49. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +192 -209
  50. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts +5 -4
  51. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.d.ts.map +1 -1
  52. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/index.js +46 -66
  53. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts +2 -10
  54. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabel/types.d.ts.map +1 -1
  55. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts +17 -0
  56. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.d.ts.map +1 -0
  57. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/MarkerIconLabelWithPopup.js +53 -0
  58. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts +3 -0
  59. package/components/maps/components/GpsMap/featureRenders/MarkerIconLabelWithPopup/index.d.ts.map +1 -0
  60. package/components/maps/components/GpsMap/hooks/debug/index.d.ts +2 -0
  61. package/components/maps/components/GpsMap/hooks/debug/index.d.ts.map +1 -0
  62. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → debug/markerDecimation}/GridDebugVisualization.d.ts +1 -1
  63. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/GridDebugVisualization.d.ts.map +1 -0
  64. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts +3 -0
  65. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/constants.d.ts.map +1 -0
  66. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts +4 -0
  67. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/index.d.ts.map +1 -0
  68. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts +71 -0
  69. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/types.d.ts.map +1 -0
  70. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts +7 -0
  71. package/components/maps/components/GpsMap/hooks/debug/markerDecimation/useGridDebug.d.ts.map +1 -0
  72. package/components/maps/components/GpsMap/hooks/index.d.ts +5 -4
  73. package/components/maps/components/GpsMap/hooks/index.d.ts.map +1 -1
  74. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts +2 -1
  75. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.d.ts.map +1 -1
  76. package/components/maps/components/GpsMap/hooks/useDisableMapEventsOnMouseOver/index.js +10 -11
  77. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts +2 -0
  78. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.d.ts.map +1 -0
  79. package/components/maps/components/GpsMap/hooks/useFilterDecimation/constants.js +4 -0
  80. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts +3 -0
  81. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/constants.d.ts.map +1 -0
  82. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter}/constants.js +2 -3
  83. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts} +1 -1
  84. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.d.ts.map +1 -0
  85. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.js → useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/createPixelPathDecimationFilter.js} +4 -2
  86. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +1 -0
  87. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.js +1 -1
  88. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +1 -0
  89. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +22 -0
  90. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/helpers/index.d.ts.map +1 -0
  91. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts +2 -0
  92. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/index.d.ts.map +1 -0
  93. package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/types.d.ts +1 -1
  94. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/createPixelPathDecimationFilter/types.d.ts.map +1 -0
  95. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts +3 -0
  96. package/components/maps/components/GpsMap/hooks/useFilterDecimation/decimationMethods/index.d.ts.map +1 -0
  97. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts +9 -0
  98. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.d.ts.map +1 -0
  99. package/components/maps/components/GpsMap/hooks/useFilterDecimation/getPointFeaturesWithCoords.js +16 -0
  100. package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts +3 -0
  101. package/components/maps/components/GpsMap/hooks/useFilterDecimation/index.d.ts.map +1 -0
  102. package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts +16 -0
  103. package/components/maps/components/GpsMap/hooks/useFilterDecimation/types.d.ts.map +1 -0
  104. package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.d.ts.map +1 -0
  105. package/components/maps/components/GpsMap/hooks/useFilterDecimation/useFilterDecimation.js +75 -0
  106. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts +13 -0
  107. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.d.ts.map +1 -0
  108. package/components/maps/components/GpsMap/hooks/useRegisterMapToolController.js +21 -0
  109. package/components/maps/components/GpsMap/popups/index.d.ts +0 -1
  110. package/components/maps/components/GpsMap/popups/index.d.ts.map +1 -1
  111. package/components/maps/components/GpsMap/popups/types.d.ts +4 -0
  112. package/components/maps/components/GpsMap/popups/types.d.ts.map +1 -1
  113. package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts +6 -0
  114. package/components/maps/components/GpsMap/subcomponents/Controls/Controls.d.ts.map +1 -0
  115. package/components/maps/components/GpsMap/subcomponents/Controls/{index.js → Controls.js} +5 -5
  116. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts +1 -5
  117. package/components/maps/components/GpsMap/subcomponents/Controls/index.d.ts.map +1 -1
  118. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts +8 -0
  119. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/ButtonsToolsList.d.ts.map +1 -0
  120. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/{index.js → ButtonsToolsList.js} +9 -8
  121. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.d.ts.map +1 -1
  122. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/constants.js +31 -20
  123. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts +2 -0
  124. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/types.d.ts.map +1 -1
  125. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts +15 -0
  126. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.d.ts.map +1 -0
  127. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/usePopupToolRuntime.js +90 -0
  128. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts +3 -5
  129. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.d.ts.map +1 -1
  130. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useTool.js +35 -38
  131. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts +2 -1
  132. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.d.ts.map +1 -1
  133. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/hooks/useZoomBottons.js +31 -25
  134. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts +1 -7
  135. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/index.d.ts.map +1 -1
  136. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts +7 -0
  137. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.d.ts.map +1 -0
  138. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/ButtonPopupTool.js +22 -0
  139. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts +1 -5
  140. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.d.ts.map +1 -1
  141. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.d.ts.map +1 -1
  142. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapLayersTool/MapLayersTool.js +10 -9
  143. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/MeasureTool.js +7 -7
  144. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts +6 -0
  145. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/MeasureData.d.ts.map +1 -0
  146. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -5
  147. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts.map +1 -1
  148. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts +5 -0
  149. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/MyActions.d.ts.map +1 -0
  150. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -4
  151. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts.map +1 -1
  152. package/components/maps/components/GpsMap/subcomponents/{Layers/index.d.ts → LayersContainer/LayersContainer.d.ts} +1 -1
  153. package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.d.ts.map +1 -0
  154. package/components/maps/components/GpsMap/subcomponents/LayersContainer/LayersContainer.js +23 -0
  155. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts +2 -0
  156. package/components/maps/components/GpsMap/subcomponents/LayersContainer/index.d.ts.map +1 -0
  157. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.d.ts → LayersContainer/subcomponents/Layer/Layer.d.ts} +1 -1
  158. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/Layer.d.ts.map +1 -0
  159. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/index.js → LayersContainer/subcomponents/Layer/Layer.js} +8 -8
  160. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts +2 -0
  161. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/index.d.ts.map +1 -0
  162. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts +3 -0
  163. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.d.ts.map +1 -0
  164. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/MarkerClusterGroup.js +51 -0
  165. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +2 -0
  166. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +1 -0
  167. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +1 -0
  168. package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts} +1 -1
  169. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.d.ts.map +1 -0
  170. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts +2 -0
  171. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +1 -0
  172. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +1 -0
  173. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/types.d.ts.map +1 -0
  174. package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts +2 -0
  175. package/components/maps/components/GpsMap/subcomponents/MapEventController/index.d.ts.map +1 -0
  176. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts +7 -0
  177. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.d.ts.map +1 -0
  178. package/components/maps/components/GpsMap/subcomponents/TileLayers/TileLayers.js +30 -0
  179. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts +1 -6
  180. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.d.ts.map +1 -1
  181. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts +10 -0
  182. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/TileLayerGoogle.d.ts.map +1 -0
  183. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts +1 -9
  184. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/index.d.ts.map +1 -1
  185. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts +7 -0
  186. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/TileLayerOthers.d.ts.map +1 -0
  187. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts +1 -6
  188. package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/index.d.ts.map +1 -1
  189. package/components/maps/components/GpsMap/types.d.ts +18 -0
  190. package/components/maps/components/GpsMap/types.d.ts.map +1 -1
  191. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts +1 -1
  192. package/components/maps/components/GpsMapTools/contexts/GpsMapToolsContext/types.d.ts.map +1 -1
  193. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.d.ts.map +1 -1
  194. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/helpers.js +11 -10
  195. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridFiltered.d.ts.map +1 -1
  196. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useDatagridSelected.js +5 -5
  197. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useLoadDrawGeometry.d.ts.map +1 -1
  198. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/hooks/useRowActionsGetter.js +6 -6
  199. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts +14 -6
  200. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.d.ts.map +1 -1
  201. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.d.ts.map +1 -1
  202. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.js +32 -40
  203. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.js +8 -7
  204. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.js +23 -24
  205. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.d.ts.map +1 -1
  206. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.js +37 -37
  207. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts.map +1 -1
  208. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.js +36 -35
  209. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts +1 -0
  210. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.d.ts.map +1 -1
  211. package/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.d.ts.map +1 -1
  212. package/formatters/index.d.ts +1 -1
  213. package/formatters/index.d.ts.map +1 -1
  214. package/index.js +124 -126
  215. package/internal/storybookRuntime.d.ts +27 -0
  216. package/internal/storybookRuntime.d.ts.map +1 -0
  217. package/internal/storybookRuntime.js +19 -0
  218. package/package.json +3 -3
  219. package/components/DeviceStatus/dictionary.js +0 -8
  220. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts +0 -9
  221. package/components/maps/components/GpsMap/contexts/MapContext/helper.d.ts.map +0 -1
  222. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts +0 -2
  223. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/constants.d.ts.map +0 -1
  224. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts +0 -9
  225. package/components/maps/components/GpsMap/featureRenders/DeviceFeatureRender/index.d.ts.map +0 -1
  226. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts +0 -7
  227. package/components/maps/components/GpsMap/hooks/useDisableClickEvents/index.d.ts.map +0 -1
  228. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/GridDebugVisualization.d.ts.map +0 -1
  229. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts +0 -6
  230. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/constants.d.ts.map +0 -1
  231. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts.map +0 -1
  232. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts.map +0 -1
  233. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.js +0 -22
  234. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/helpers/index.d.ts.map +0 -1
  235. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/index.d.ts.map +0 -1
  236. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/createPixelPathDecimationFilter/types.d.ts.map +0 -1
  237. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts +0 -84
  238. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/types.d.ts.map +0 -1
  239. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.d.ts.map +0 -1
  240. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useFilterDecimation.js +0 -83
  241. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts +0 -6
  242. package/components/maps/components/GpsMap/hooks/useZoomBasedMarkerFilter/useGridDebug.d.ts.map +0 -1
  243. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts +0 -8
  244. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.d.ts.map +0 -1
  245. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.js +0 -32
  246. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts +0 -3
  247. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.d.ts.map +0 -1
  248. package/components/maps/components/GpsMap/popups/MapPopupDevice/MapPopupDevice.styles.js +0 -146
  249. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts +0 -6
  250. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.d.ts.map +0 -1
  251. package/components/maps/components/GpsMap/popups/MapPopupDevice/constants.js +0 -6
  252. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts +0 -17
  253. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.d.ts.map +0 -1
  254. package/components/maps/components/GpsMap/popups/MapPopupDevice/dictionary.js +0 -20
  255. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts +0 -3
  256. package/components/maps/components/GpsMap/popups/MapPopupDevice/index.d.ts.map +0 -1
  257. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts +0 -34
  258. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.d.ts.map +0 -1
  259. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/MapPopupDeviceSlots.js +0 -55
  260. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts +0 -14
  261. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.d.ts.map +0 -1
  262. package/components/maps/components/GpsMap/popups/MapPopupDevice/slots/slots.js +0 -4
  263. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts +0 -7
  264. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.d.ts.map +0 -1
  265. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Content/GpsDeviceContent.js +0 -111
  266. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts +0 -6
  267. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.d.ts.map +0 -1
  268. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/Header/GpsDeviceHeader.js +0 -18
  269. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts +0 -6
  270. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/index.d.ts.map +0 -1
  271. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts +0 -7
  272. package/components/maps/components/GpsMap/popups/MapPopupDevice/subcomponents/PropertyValue/types.d.ts.map +0 -1
  273. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts +0 -11
  274. package/components/maps/components/GpsMap/popups/MapPopupDevice/types.d.ts.map +0 -1
  275. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/ButtonPopupTool/index.js +0 -18
  276. package/components/maps/components/GpsMap/subcomponents/Layers/index.d.ts.map +0 -1
  277. package/components/maps/components/GpsMap/subcomponents/Layers/index.js +0 -21
  278. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts +0 -14
  279. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/hooks/useClusterMarkers.d.ts.map +0 -1
  280. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/index.d.ts.map +0 -1
  281. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts +0 -11
  282. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.d.ts.map +0 -1
  283. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/index.js +0 -29
  284. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts.map +0 -1
  285. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.d.ts.map +0 -1
  286. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts.map +0 -1
  287. package/components/maps/components/GpsMap/subcomponents/Layers/subcomponents/Layer/types.d.ts.map +0 -1
  288. package/components/maps/components/GpsMap/subcomponents/TileLayers/index.js +0 -30
  289. package/formatters/CourseFormatter/CourseFormatter.d.ts.map +0 -1
  290. package/formatters/CourseFormatter/CourseFormatter.styles.d.ts.map +0 -1
  291. package/formatters/CourseFormatter/constants.d.ts.map +0 -1
  292. package/formatters/CourseFormatter/dictionary.d.ts.map +0 -1
  293. package/formatters/CourseFormatter/helper.d.ts.map +0 -1
  294. package/formatters/CourseFormatter/index.d.ts.map +0 -1
  295. package/formatters/CourseFormatter/slots/CourseFormatterEnum.d.ts.map +0 -1
  296. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts +0 -4
  297. package/formatters/CourseFormatter/slots/CourseFormatterSlots.d.ts.map +0 -1
  298. package/formatters/CourseFormatter/types.d.ts.map +0 -1
  299. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.d.ts +0 -0
  300. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.d.ts +0 -0
  301. /package/{formatters → components/formatters}/CourseFormatter/CourseFormatter.styles.js +0 -0
  302. /package/{formatters → components/formatters}/CourseFormatter/constants.d.ts +0 -0
  303. /package/{formatters → components/formatters}/CourseFormatter/constants.js +0 -0
  304. /package/{formatters → components/formatters}/CourseFormatter/dictionary.d.ts +0 -0
  305. /package/{formatters → components/formatters}/CourseFormatter/dictionary.js +0 -0
  306. /package/{formatters → components/formatters}/CourseFormatter/helper.d.ts +0 -0
  307. /package/{formatters → components/formatters}/CourseFormatter/helper.js +0 -0
  308. /package/{formatters → components/formatters}/CourseFormatter/index.d.ts +0 -0
  309. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.d.ts +0 -0
  310. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterEnum.js +0 -0
  311. /package/{formatters → components/formatters}/CourseFormatter/slots/CourseFormatterSlots.js +0 -0
  312. /package/{formatters → components/formatters}/CourseFormatter/types.d.ts +0 -0
  313. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByConcentrationGrid.d.ts +0 -0
  314. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/decimateByPixelDistanceAlongPath.d.ts +0 -0
  315. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation/decimationMethods}/createPixelPathDecimationFilter/helpers/index.d.ts +0 -0
  316. /package/components/maps/components/GpsMap/hooks/{useZoomBasedMarkerFilter → useFilterDecimation}/useFilterDecimation.d.ts +0 -0
  317. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MeasureData/{index.js → MeasureData.js} +0 -0
  318. /package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MeasureTool/subcomponents/MyActions/{index.js → MyActions.js} +0 -0
  319. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/MarkerClusterGroup/types.d.ts +0 -0
  320. /package/components/maps/components/GpsMap/subcomponents/{Layers/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/index.js → LayersContainer/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/RenderByEachFeatureComponent.js} +0 -0
  321. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -0
  322. /package/components/maps/components/GpsMap/subcomponents/{Layers → LayersContainer}/subcomponents/Layer/types.d.ts +0 -0
  323. /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerGoogle/{index.js → TileLayerGoogle.js} +0 -0
  324. /package/components/maps/components/GpsMap/subcomponents/TileLayers/subcomponents/TileLayerOthers/{index.js → TileLayerOthers.js} +0 -0
@@ -7,8 +7,8 @@ import { useModal as g, usePopupsStore as L, WindowConfirm as F } from "@m4l/com
7
7
  import { useGpsMapToolsStore as k } from "../../../hooks/useGpsMapToolsStore/index.js";
8
8
  import { shallow as E } from "zustand/shallow";
9
9
  import { Form as y } from "../subcomponents/GeofenceAddEdit/Form.js";
10
- import { GeofencesLayers as R, GEOFENCES_TOOL_DEFAULT_POSITION as U } from "../constants.js";
11
- import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as w } from "../subcomponents/GeofenceAddEdit/constants.js";
10
+ import { GeofencesLayers as R, GEOFENCES_TOOL_DEFAULT_POSITION as w } from "../constants.js";
11
+ import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as b } from "../subcomponents/GeofenceAddEdit/constants.js";
12
12
  import { GPS_TOOLS_COMPONENT_PATH_ID as C } from "../../../constants.js";
13
13
  function X(S) {
14
14
  const { fullRefresh: s } = S, { networkOperation: c } = N(), { openModal: m, closeModal: p } = g(), { getLabel: e } = h(), { host_static_assets: l, environment_assets: _ } = M(), { addPopup: O } = L((o) => o.popupsActions, E), { hide: a } = L((o) => o.popupActions, E), { removeCheckedGeofence: u } = k((o) => o.geofenceActions, E), { toast: d } = $(), [i] = A(
@@ -18,13 +18,13 @@ function X(S) {
18
18
  ), T = r((o, t) => {
19
19
  a(R.LAYER_GEOFENCES), O({
20
20
  winType: "component",
21
- popupId: w,
21
+ popupId: b,
22
22
  title: e(n.MODULE_NAME_GEOFENCE_EDIT),
23
23
  editionInfo: `${e(n.LABEL_ID)}:${o} - ${t} `,
24
24
  componentProps: { fullRefresh: s, geofenceId: o },
25
25
  component: y,
26
26
  // onMouseDown,
27
- defaultPosition: U,
27
+ defaultPosition: w,
28
28
  iconUrl: i
29
29
  }), u(o);
30
30
  }, [s, O, e, a, u, i]), I = r((o) => {
@@ -64,7 +64,7 @@ function X(S) {
64
64
  },
65
65
  // Solo se habilita si intenta editarse a él mismo, o si tiene permisos pero está en un nivel superior al usuario a editar
66
66
  // disabled: !(itsMe || (hasPrivilege(PRIVILEGE_EDIT) && (loggedUserType > row.user_type.id)))
67
- disabled: !o.authUserOptions?.edit
67
+ disabled: !o.userAuthOptions?.edit
68
68
  }), t.push({
69
69
  type: "menuItem",
70
70
  startIcon: f,
@@ -75,7 +75,7 @@ function X(S) {
75
75
  color: "error",
76
76
  // Solo se habilita si intenta editarse a él mismo, o si tiene permisos pero está en un nivel superior al usuario a editar
77
77
  // disabled: !(itsMe || (hasPrivilege(PRIVILEGE_EDIT) && (loggedUserType > row.user_type.id)))
78
- disabled: !o.authUserOptions?.delete
78
+ disabled: !o.userAuthOptions?.delete
79
79
  }), t;
80
80
  },
81
81
  [e, T, D, f, i]
@@ -100,19 +100,19 @@ export interface GeofenceGetModel {
100
100
  /**
101
101
  * "devicesAssignmentType" tipo de asignacion de dispositivos a la geocerca
102
102
  */
103
- devicesAssignmentType: DevicesAssignmentType;
103
+ devicesAllocationTypeId: DevicesAssignmentType;
104
104
  /**
105
105
  * "assignmentDevices" dispositivos asignados a la geocerca
106
106
  */
107
- assignmentDevices: DevicesListModel[];
107
+ devicesAllocation?: DevicesListModel[];
108
108
  /**
109
109
  * "assignmentDepartments" departamentos asignados a la geocerca, si tier
110
110
  */
111
- assignmentDepartments: DepartmentModel[];
111
+ departmentsAllocation?: DepartmentModel[];
112
112
  createdAt: string;
113
113
  updatedAt: string | null;
114
114
  }
115
- interface AuthUserOptionsType {
115
+ interface UserAuthOptionsType {
116
116
  activation: boolean;
117
117
  delete: boolean;
118
118
  edit: boolean;
@@ -125,12 +125,12 @@ export interface GeofenceListModel extends Omit<GeofenceGetModel, 'geometry' | '
125
125
  * "geometry" geometría de la geocerca compatible con GeoJSON
126
126
  */
127
127
  geometry: GeofenceGeometry | null;
128
- authUserOptions: AuthUserOptionsType;
128
+ userAuthOptions: UserAuthOptionsType;
129
129
  }
130
130
  /**
131
131
  * Columnas de la lista de geocercas
132
132
  */
133
- export type GeofenceListColumns = Pick<GeofenceListModel, 'id' | 'name' | 'type' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId' | 'createdAt' | 'updatedAt' | 'authUserOptions'>;
133
+ export type GeofenceListColumns = Pick<GeofenceListModel, 'id' | 'name' | 'type' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId' | 'createdAt' | 'updatedAt' | 'userAuthOptions'>;
134
134
  /**
135
135
  * Modelo de datos para enviar al endpoint de creacion de geocercas
136
136
  */
@@ -139,6 +139,14 @@ export interface GeofenceNewModel extends Pick<GeofenceGetModel, 'name' | 'geome
139
139
  * "type" tipo de geocerca con idioma
140
140
  */
141
141
  typeId: GeofenceTypeId;
142
+ /**
143
+ * "devicesAllocationTypeId" tipo de asignacion de dispositivos a la geocerca
144
+ */
145
+ devicesAllocationTypeId: DevicesAssignmentType;
146
+ /***
147
+ * "devices_allocation_ids" ids de los dispositivos o departamentos asignados a la geocerca, dependiendo del tipo de asignacion elegido
148
+ */
149
+ devicesAllocationIds?: number[];
142
150
  }
143
151
  /**
144
152
  * Modelo de datos para enviar al endpoint de creacion de geocercas
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,EACZ,KAAK,EACL,OAAO,EACR,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAA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B,GAAG,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,iBAAiB,CAAC,CAAC;AAEtM;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,gBAAgB,EACd,MAAM,GACN,UAAU,GACV,YAAY,GACZ,kBAAkB,GAClB,mBAAmB,GACnB,OAAO,GACP,YAAY,CACf;IACD;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB;AACD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;CACxB;AAGD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;CACjB;AAGD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,eAAe,GAAG,IAAI,CAAC;CACpC;AAGD,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,eAAe,EACf,UAAU,EACV,YAAY,EACZ,KAAK,EACL,OAAO,EACR,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAUzC;;GAEG;AACH,MAAM,MAAM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iBAAiB,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,iBAAiB,CAAC,CAAC;AAEtM;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CACV,gBAAgB,EACd,MAAM,GACN,UAAU,GACV,YAAY,GACZ,kBAAkB,GAClB,mBAAmB,GACnB,OAAO,GACP,YAAY,CACf;IACD;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,uBAAuB,EAAE,qBAAqB,CAAC;IAE/C;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CAEjC;AACD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;CACxB;AAGD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC;CACjB;AAGD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,eAAe,GAAG,IAAI,CAAC;CACpC;AAGD,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAG,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA2CrD;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,oBAAoB,oDA8C/C"}
1
+ {"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/Form.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAG,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAgBrD;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,oBAAoB,oDA8C/C"}
@@ -1,48 +1,40 @@
1
- import { jsx as t, jsxs as o } from "@emotion/react/jsx-runtime";
2
- import { RHFormProvider as f, Stepper as l, StepperContent as p, Step as n, Stack as d, StepperFooter as u, StepperFooterLeftActions as h, StepperFooterRightActions as S, StepperPrevButton as b, StepperNextButton as g, StepperSubmitButton as y } from "@m4l/components";
1
+ import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
2
+ import { RHFormProvider as c, Stepper as l, StepperContent as f, Step as r, Stack as d, StepperFooter as u, StepperFooterLeftActions as S, StepperFooterRightActions as h, StepperPrevButton as b, StepperNextButton as g, StepperSubmitButton as y } from "@m4l/components";
3
+ import { loadModuleOutsideChromatic as F } from "../../../../../../../../internal/storybookRuntime.js";
3
4
  import { useSubmit as v } from "./hooks/useSubmit.js";
4
- import { ConfigData as C } from "./subcomponents/ConfigData/index.js";
5
- import { GeneralData as F } from "./subcomponents/GeneralData/GeneralData.js";
6
- import { StyleData as I } from "./subcomponents/StyleData/index.js";
7
- import T from "./hooks/useForm.js";
8
- import { MyActionFormCancel as A } from "./subcomponents/MyActionFormCancel/MyActionFormCancel.js";
9
- import { AssignmentData as _ } from "./subcomponents/AssignmentData/index.js";
10
- import { ChooseAssignmentData as x } from "./subcomponents/ChooseAssignmentData/index.js";
11
- const D = (() => {
12
- if (typeof globalThis > "u")
13
- return !1;
14
- const e = globalThis;
15
- if (e.__STORYBOOK_IS_CHROMATIC__ === !0)
16
- return !0;
17
- const r = e.location?.href ?? "", i = e.location?.hostname ?? "";
18
- return /chromatic\.com/i.test(r) || /(^|\.)chromatic\.com$/i.test(i);
19
- })();
20
- typeof globalThis < "u" && !D && import("@geoman-io/leaflet-geoman-free");
21
- function G(e) {
22
- const { geofenceId: r } = e, { onSubmit: i } = v(e), { steps: m, formValues: s, statusLoad: a, validationSchema: c } = T(e);
23
- return /* @__PURE__ */ t(
24
- f,
5
+ import { ConfigData as x } from "./subcomponents/ConfigData/index.js";
6
+ import { GeneralData as A } from "./subcomponents/GeneralData/GeneralData.js";
7
+ import { StyleData as C } from "./subcomponents/StyleData/index.js";
8
+ import D from "./hooks/useForm.js";
9
+ import { MyActionFormCancel as I } from "./subcomponents/MyActionFormCancel/MyActionFormCancel.js";
10
+ import { AssignmentData as M } from "./subcomponents/AssignmentData/index.js";
11
+ import { ChooseAssignmentData as B } from "./subcomponents/ChooseAssignmentData/index.js";
12
+ F(() => import("@geoman-io/leaflet-geoman-free"));
13
+ function V(o) {
14
+ const { geofenceId: i } = o, { onSubmit: n } = v(o), { steps: m, formValues: s, statusLoad: a, validationSchema: p } = D(o);
15
+ return /* @__PURE__ */ e(
16
+ c,
25
17
  {
26
18
  statusLoad: a,
27
- onSubmit: i,
19
+ onSubmit: n,
28
20
  values: s,
29
- validationSchema: c,
30
- children: /* @__PURE__ */ o(l, { indicatorType: "dot", storeId: "form-geofence-add-edit", steps: m, orientation: "vertical", visibleTitle: !1, children: [
31
- /* @__PURE__ */ o(p, { children: [
32
- /* @__PURE__ */ t(n, { stepKey: "basic-information", children: /* @__PURE__ */ o(d, { direction: "column", gap: "8px", children: [
33
- /* @__PURE__ */ t(F, {}),
34
- /* @__PURE__ */ t(C, {}),
35
- /* @__PURE__ */ t(x, {})
21
+ validationSchema: p,
22
+ children: /* @__PURE__ */ t(l, { indicatorType: "dot", storeId: "form-geofence-add-edit", steps: m, orientation: "vertical", visibleTitle: !1, children: [
23
+ /* @__PURE__ */ t(f, { children: [
24
+ /* @__PURE__ */ e(r, { stepKey: "basic-information", children: /* @__PURE__ */ t(d, { direction: "column", gap: "8px", children: [
25
+ /* @__PURE__ */ e(A, {}),
26
+ /* @__PURE__ */ e(x, {}),
27
+ /* @__PURE__ */ e(B, {})
36
28
  ] }) }, "basic-information"),
37
- /* @__PURE__ */ t(n, { stepKey: "assignment", children: /* @__PURE__ */ t(_, {}) }, "assignment"),
38
- /* @__PURE__ */ t(n, { stepKey: "style-information", children: /* @__PURE__ */ t(I, {}) }, "style-information")
29
+ /* @__PURE__ */ e(r, { stepKey: "assignment", children: /* @__PURE__ */ e(M, {}) }, "assignment"),
30
+ /* @__PURE__ */ e(r, { stepKey: "style-information", children: /* @__PURE__ */ e(C, {}) }, "style-information")
39
31
  ] }),
40
- /* @__PURE__ */ o(u, { children: [
41
- /* @__PURE__ */ t(h, { children: /* @__PURE__ */ t(A, { geofenceId: r }) }),
42
- /* @__PURE__ */ o(S, { children: [
43
- /* @__PURE__ */ t(b, { forceIsMobile: !0 }),
44
- /* @__PURE__ */ t(g, { forceIsMobile: !0 }),
45
- /* @__PURE__ */ t(y, { forceIsMobile: !0 })
32
+ /* @__PURE__ */ t(u, { children: [
33
+ /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(I, { geofenceId: i }) }),
34
+ /* @__PURE__ */ t(h, { children: [
35
+ /* @__PURE__ */ e(b, { forceIsMobile: !0 }),
36
+ /* @__PURE__ */ e(g, { forceIsMobile: !0 }),
37
+ /* @__PURE__ */ e(y, { forceIsMobile: !0 })
46
38
  ] })
47
39
  ] })
48
40
  ] })
@@ -50,5 +42,5 @@ function G(e) {
50
42
  );
51
43
  }
52
44
  export {
53
- G as Form
45
+ V as Form
54
46
  };
@@ -1,5 +1,5 @@
1
- import { STROKE_DASH_ARRAY_DEFAULT as e, STROKE_WHEIGTH_DEFAULT as l, STROKE_OPACITY_DEFAULT as n, STROKE_COLOR_DEFAULT as s, FILL_OPACITY_DEFAULT as t, FILL_COLOR_DEFAULT as i } from "./subcomponents/StyleData/constants.js";
2
- const _ = "geofencesAddEdit", a = {
1
+ import { STROKE_DASH_ARRAY_DEFAULT as e, STROKE_WHEIGTH_DEFAULT as n, STROKE_OPACITY_DEFAULT as s, STROKE_COLOR_DEFAULT as l, FILL_OPACITY_DEFAULT as t, FILL_COLOR_DEFAULT as i } from "./subcomponents/StyleData/constants.js";
2
+ const _ = "geofencesAddEdit", T = {
3
3
  /** General Data */
4
4
  name: "",
5
5
  geofenceTypeId: null,
@@ -19,17 +19,18 @@ const _ = "geofencesAddEdit", a = {
19
19
  /** Style Data */
20
20
  fillColor: i,
21
21
  fillOpacity: t,
22
- strokeColor: s,
23
- strokeOpacity: n,
24
- strokeWeight: l,
22
+ strokeColor: l,
23
+ strokeOpacity: s,
24
+ strokeWeight: n,
25
25
  strokeDashArray: e
26
26
  },
27
27
  /** Assignment Data */
28
- devicesAssignmentType: "dat_all",
28
+ devicesAssignmentType: "dat_by_devices",
29
+ //Temporalmente mientras ingreso a geocercas.
29
30
  assignmentDevices: [],
30
31
  assignmentDepartments: []
31
32
  };
32
33
  export {
33
34
  _ as GEOFENCES_TOOL_ADD_EDIT_POPUP_ID,
34
- a as initialValues
35
+ T as initialValues
35
36
  };
@@ -1,51 +1,50 @@
1
- import { initialValues as l } from "./constants.js";
2
- import { FILL_COLOR_DEFAULT as y, STROKE_COLOR_DEFAULT as _, STROKE_OPACITY_DEFAULT as c, STYLE_OPACITIES as A, STROKE_DASH_ARRAY_DEFAULT as m, STROKE_WHEIGTH_DEFAULT as d, STYLE_WHEIGHTS as T } from "./subcomponents/StyleData/constants.js";
3
- import * as p from "leaflet";
1
+ import { initialValues as p } from "./constants.js";
2
+ import { FILL_COLOR_DEFAULT as A, STROKE_COLOR_DEFAULT as _, STROKE_OPACITY_DEFAULT as c, STYLE_OPACITIES as g, STROKE_DASH_ARRAY_DEFAULT as d, STROKE_WHEIGTH_DEFAULT as m, STYLE_WHEIGHTS as T } from "./subcomponents/StyleData/constants.js";
3
+ import * as s from "leaflet";
4
4
  import { STYLE_PATTERNS as E } from "../../constants.js";
5
- const u = (r) => r === void 0 ? c : A.find((t) => t.id === r)?.id || c, D = (r) => r === void 0 ? d : T.find((t) => t.id === r)?.id || d, L = (r) => r === void 0 ? m : E.find((t) => t.id === r)?.id || m, h = (r) => {
5
+ const u = (r) => r === void 0 ? c : g.find((t) => t.id === r)?.id || c, L = (r) => r === void 0 ? m : T.find((t) => t.id === r)?.id || m, O = (r) => r === void 0 ? d : E.find((t) => t.id === r)?.id || d, h = (r) => {
6
6
  try {
7
- const { data: t } = r, s = t?.devicesAssignmentType || "dat_all", e = {
8
- ...l,
7
+ const { data: t } = r, l = t?.devicesAllocationTypeId || "dat_all", e = {
8
+ ...p,
9
9
  ...t,
10
- chooseAssignmentType: s === "dat_all" ? "all" : "discriminate",
11
- devicesAssignmentType: s,
12
- assignmentDevices: (t?.assignmentDevices || []).map((i) => i.id),
13
- assignmentDepartments: (t?.assignmentDepartments || []).map((i) => i.id),
10
+ chooseAssignmentType: l === "dat_all" ? "all" : "discriminate",
11
+ assignmentDevices: (t?.devicesAllocation || []).map((i) => i.id),
12
+ assignmentDepartments: (t?.departmentsAllocation || []).map((i) => i.id),
14
13
  inEdition: !1,
15
14
  geofenceTypeId: t.type.id,
16
15
  properties: {
17
16
  strokeColor: t.properties.strokeColor || _,
18
17
  strokeOpacity: u(t.properties.strokeOpacity),
19
- strokeWeight: D(t.properties.strokeWeight),
20
- strokeDashArray: L(t.properties.strokeDashArray),
21
- fillColor: t.properties.fillColor || y,
18
+ strokeWeight: L(t.properties.strokeWeight),
19
+ strokeDashArray: O(t.properties.strokeDashArray),
20
+ fillColor: t.properties.fillColor || A,
22
21
  fillOpacity: u(t.properties.fillOpacity)
23
22
  }
24
23
  };
25
24
  return e.geofenceTypeId === "gt_circle" && (t.properties.radius && (e.properties.radius = t.properties.radius), t.geometry && t.geometry.type === "Point" && (e.lng = t.geometry.coordinates[0], e.lat = t.geometry.coordinates[1])), e;
26
25
  } catch {
27
- return { ...l };
26
+ return { ...p };
28
27
  }
29
- }, R = (r, t, s, e) => {
28
+ }, R = (r, t, l, e) => {
30
29
  if (r) {
31
30
  if (t === "gt_circle" && r.type === "Point")
32
- return p.circle([r.coordinates[1], r.coordinates[0]], {
31
+ return s.circle([r.coordinates[1], r.coordinates[0]], {
33
32
  ...e,
34
- radius: s || 0
33
+ radius: l || 0
35
34
  });
36
35
  if (t === "gt_polygon" && r.type === "Polygon") {
37
36
  const i = r.coordinates.map(
38
- (a) => a.map((n) => [n[1], n[0]])
37
+ (n) => n.map((a) => [a[1], a[0]])
39
38
  );
40
- return p.polygon(i, e);
39
+ return s.polygon(i, e);
41
40
  } else {
42
41
  if (t === "gt_multipolygon" && r.type === "MultiPolygon")
43
- return p.geoJSON(r, e);
42
+ return s.geoJSON(r, e);
44
43
  if (t === "gt_rectangle" && r.type === "Polygon") {
45
44
  const i = r.coordinates[0].map(
46
45
  (o) => [o[1], o[0]]
47
- ), a = i.map((o) => Array.isArray(o) ? o[0] : 0), n = i.map((o) => Array.isArray(o) ? o[1] : 0), f = [Math.min(...a), Math.min(...n)], g = [Math.max(...a), Math.max(...n)];
48
- return p.rectangle([f, g], e);
46
+ ), n = i.map((o) => Array.isArray(o) ? o[0] : 0), a = i.map((o) => Array.isArray(o) ? o[1] : 0), f = [Math.min(...n), Math.min(...a)], y = [Math.max(...n), Math.max(...a)];
47
+ return s.rectangle([f, y], e);
49
48
  }
50
49
  }
51
50
  }
@@ -54,7 +53,7 @@ const u = (r) => r === void 0 ? c : A.find((t) => t.id === r)?.id || c, D = (r)
54
53
  export {
55
54
  h as formatDataEndpoint,
56
55
  u as getFormOpacityFromData,
57
- D as getFormStrokeWeightFromData,
58
- L as getFormstrokeDashArrayFromData,
56
+ L as getFormStrokeWeightFromData,
57
+ O as getFormstrokeDashArrayFromData,
59
58
  R as getLayerFromGeometry
60
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAahF;;GAEG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,oBAAoB;;;;;CA+G3C,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useForm.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAC;AAahF;;GAEG;AACH,QAAA,MAAM,OAAO,GAAI,OAAO,oBAAoB;;;;;CAqH3C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,23 +1,23 @@
1
- import { useEffect as N, useMemo as g } from "react";
2
- import { useWindowToolsMF as v, deepShallow as C, getStepsAndValidationSchema as D } from "@m4l/components";
3
- import { useModuleDictionary as G, useEnvironment as y } from "@m4l/core";
4
- import { useFormAddEdit as M } from "@m4l/layouts";
5
- import { useGpsMapToolsStore as p } from "../../../../../hooks/useGpsMapToolsStore/index.js";
6
- import { formatDataEndpoint as l } from "../helpers.js";
7
- import { ENDPOINT_GEOFENCES_GET as $ } from "../../../constants.js";
1
+ import { useEffect as N, useMemo as v } from "react";
2
+ import { useWindowToolsMF as C, deepShallow as G, getStepsAndValidationSchema as y } from "@m4l/components";
3
+ import { useModuleDictionary as M, useEnvironment as g } from "@m4l/core";
4
+ import { useFormAddEdit as $ } from "@m4l/layouts";
5
+ import { useGpsMapToolsStore as l } from "../../../../../hooks/useGpsMapToolsStore/index.js";
6
+ import { formatDataEndpoint as p } from "../helpers.js";
7
+ import { ENDPOINT_GEOFENCES_GET as F } from "../../../constants.js";
8
8
  import { initialValues as E } from "../constants.js";
9
- import { MAP_GPSTOOLS_DICCTIONARY as s } from "../../../../../dictionary.js";
10
- import { GeneralDataValidation as F } from "../subcomponents/GeneralData/validations.js";
11
- import { MAP_GPSTOOLS_ICONS as c } from "../../../../../icons.js";
9
+ import { MAP_GPSTOOLS_DICCTIONARY as i } from "../../../../../dictionary.js";
10
+ import { GeneralDataValidation as R } from "../subcomponents/GeneralData/validations.js";
11
+ import { MAP_GPSTOOLS_ICONS as m } from "../../../../../icons.js";
12
12
  import { GPS_TOOLS_COMPONENT_PATH_ID as d } from "../../../../../constants.js";
13
- import { shallow as R } from "zustand/shallow";
13
+ import { shallow as D } from "zustand/shallow";
14
14
  import { AssignmentDataValidation as h } from "../subcomponents/AssignmentData/validations.js";
15
15
  const K = (S) => {
16
- const { geofenceId: o } = S, { getLabel: t } = G(), { host_static_assets: i, environment_assets: a } = y(), { startProgress: f, stopProgress: u } = v(), { addOrReplaceGeofence: T } = p((n) => n.geofenceActions, R), [_, A] = p((n) => {
16
+ const { geofenceId: o } = S, { getLabel: t } = M(), { host_static_assets: s, environment_assets: a } = g(), { startProgress: f, stopProgress: u } = C(), { addOrReplaceGeofence: A } = l((n) => n.geofenceActions, D), [T, _] = l((n) => {
17
17
  if (o === void 0)
18
18
  return [E, !1];
19
19
  const e = n.geofenceState.hashGeofences[o];
20
- if (e?.geometry && e?.assignmentDevices && e?.assignmentDepartments) {
20
+ if (e?.geometry && (e?.devicesAllocation || e?.departmentsAllocation)) {
21
21
  const O = {
22
22
  data: {
23
23
  type: e.type,
@@ -33,20 +33,20 @@ const K = (S) => {
33
33
  bounds: e.bounds,
34
34
  alias: e.alias,
35
35
  customerId: e.customerId,
36
- devicesAssignmentType: e.devicesAssignmentType,
37
- assignmentDevices: e.assignmentDevices,
38
- assignmentDepartments: e.assignmentDepartments
36
+ devicesAllocationTypeId: e.devicesAllocationTypeId,
37
+ devicesAllocation: e.devicesAllocation,
38
+ departmentsAllocation: e.departmentsAllocation
39
39
  }
40
40
  };
41
- return [l(O), !0];
41
+ return [p(O), !0];
42
42
  } else
43
43
  return [E, !1];
44
- }, C), { formValues: r, statusLoad: m } = M({
44
+ }, G), { formValues: r, statusLoad: c } = $({
45
45
  objectId: o,
46
- formatDataEndpoint: l,
47
- initialValues: _,
46
+ formatDataEndpoint: p,
47
+ initialValues: T,
48
48
  networkProps: {
49
- endPoint: `${$}/${o}`,
49
+ endPoint: `${F}/${o}`,
50
50
  responseToCamelCase: !0,
51
51
  method: "GET",
52
52
  options: {
@@ -54,26 +54,26 @@ const K = (S) => {
54
54
  stopProgress: u
55
55
  }
56
56
  },
57
- omitCallEnpoint: A
57
+ omitCallEnpoint: _
58
58
  });
59
59
  N(() => {
60
- m === "ready" && o && r.createdAt && T(o, r);
61
- }, [m, o, r]);
62
- const { steps: I, validationSchema: P } = g(() => D({
60
+ c === "ready" && o && r.createdAt && A(o, r);
61
+ }, [c, o, r]);
62
+ const { steps: I, validationSchema: P } = v(() => y({
63
63
  visibilityData: void 0,
64
64
  steps: [
65
65
  {
66
66
  key: "basic-information",
67
- title: t(s.STEP_BASIC_INFORMATION),
68
- description: t(s.STEP_BASIC_INFORMATION_DESCRIPTION),
69
- icon: `${i}/${a}/frontend/components/${d}/assets/icons/${c.GEOFENCES_PAPER_GENERAL}`,
70
- validationFunction: () => F(t)
67
+ title: t(i.STEP_BASIC_INFORMATION),
68
+ description: t(i.STEP_BASIC_INFORMATION_DESCRIPTION),
69
+ icon: `${s}/${a}/frontend/components/${d}/assets/icons/${m.GEOFENCES_PAPER_GENERAL}`,
70
+ validationFunction: () => R(t)
71
71
  },
72
72
  {
73
73
  key: "assignment",
74
- title: t(s.STEP_ASSIGNMENT),
75
- description: t(s.STEP_ASSIGNMENT_DESCRIPTION),
76
- icon: `${i}/${a}/frontend/components/${d}/assets/icons/${c.GEOFENCES_PAPER_ASSIGNMENT}`,
74
+ title: t(i.STEP_ASSIGNMENT),
75
+ description: t(i.STEP_ASSIGNMENT_DESCRIPTION),
76
+ icon: `${s}/${a}/frontend/components/${d}/assets/icons/${m.GEOFENCES_PAPER_ASSIGNMENT}`,
77
77
  validationFunction: () => h(t),
78
78
  /**
79
79
  * Visibility condition for the parts information, only show if the objectId and accountId are defined
@@ -82,14 +82,14 @@ const K = (S) => {
82
82
  },
83
83
  {
84
84
  key: "style-information",
85
- title: t(s.STEP_STYLE),
86
- description: t(s.STEP_STYLE_DESCRIPTION),
87
- icon: `${i}/${a}/frontend/components/${d}/assets/icons/${c.GEOFENCES_PAPER_STYLE}`,
85
+ title: t(i.STEP_STYLE),
86
+ description: t(i.STEP_STYLE_DESCRIPTION),
87
+ icon: `${s}/${a}/frontend/components/${d}/assets/icons/${m.GEOFENCES_PAPER_STYLE}`,
88
88
  validationFunction: void 0
89
89
  }
90
90
  ]
91
- }), [t, i, a]);
92
- return { steps: I, formValues: r, statusLoad: m, validationSchema: P };
91
+ }), [t, s, a]);
92
+ return { steps: I, formValues: r, statusLoad: c, validationSchema: P };
93
93
  };
94
94
  export {
95
95
  K as default
@@ -1 +1 @@
1
- {"version":3,"file":"useSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAgBnE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,YAAY,CAAC,CAAA;AAgCrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc;qBAaF,iBAAiB,GAAG,WAAW;EAwB3E"}
1
+ {"version":3,"file":"useSubmit.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAgBnE,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,aAAa,GAAG,YAAY,CAAC,CAAA;AAwCrF;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc;qBAaF,iBAAiB,GAAG,WAAW;EAwB3E"}
@@ -1,48 +1,49 @@
1
- import { useHostTools as a, useNetwork as f } from "@m4l/core";
2
- import { ENDPOINT_GEOFENCES_NEW_EDIT as d, GEOFENCES_TOOL_LIST_POPUP_ID as O } from "../../../constants.js";
3
- import { useGpsMapToolsStore as S } from "../../../../../hooks/useGpsMapToolsStore/index.js";
4
- import { usePopupsStore as l } from "@m4l/components";
5
- import { shallow as E } from "zustand/shallow";
6
- import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as u } from "../constants.js";
7
- import { useCallback as y } from "react";
8
- const T = (t, o) => {
9
- const e = {
10
- name: t.name,
11
- typeId: t.geofenceTypeId,
12
- geometry: t.geometry,
1
+ import { useHostTools as m, useNetwork as d } from "@m4l/core";
2
+ import { ENDPOINT_GEOFENCES_NEW_EDIT as f, GEOFENCES_TOOL_LIST_POPUP_ID as l } from "../../../constants.js";
3
+ import { useGpsMapToolsStore as O } from "../../../../../hooks/useGpsMapToolsStore/index.js";
4
+ import { usePopupsStore as y } from "@m4l/components";
5
+ import { shallow as I } from "zustand/shallow";
6
+ import { GEOFENCES_TOOL_ADD_EDIT_POPUP_ID as S } from "../constants.js";
7
+ import { useCallback as T } from "react";
8
+ const _ = (e, t) => {
9
+ const o = {
10
+ name: e.name,
11
+ typeId: e.geofenceTypeId,
12
+ geometry: e.geometry,
13
13
  properties: {
14
- strokeColor: t.properties.strokeColor,
15
- strokeOpacity: t.properties.strokeOpacity,
16
- strokeWeight: t.properties.strokeWeight,
17
- strokeDashArray: t.properties.strokeDashArray,
18
- fillColor: t.properties.fillColor,
19
- fillOpacity: t.properties.fillOpacity
14
+ strokeColor: e.properties.strokeColor,
15
+ strokeOpacity: e.properties.strokeOpacity,
16
+ strokeWeight: e.properties.strokeWeight,
17
+ strokeDashArray: e.properties.strokeDashArray,
18
+ fillColor: e.properties.fillColor,
19
+ fillOpacity: e.properties.fillOpacity
20
20
  },
21
- timeMinInSeconds: t.timeMinInSeconds,
22
- timeMinOutSeconds: t.timeMinOutSeconds,
23
- alias: t.alias,
24
- customerId: t.customerId,
25
- ...o ? { geofenceId: o } : {}
21
+ timeMinInSeconds: e.timeMinInSeconds,
22
+ timeMinOutSeconds: e.timeMinOutSeconds,
23
+ alias: e.alias,
24
+ customerId: e.customerId,
25
+ ...t ? { geofenceId: t } : {},
26
+ devicesAllocationTypeId: "dat_all"
26
27
  };
27
- return t.geofenceTypeId === "gt_circle" && (e.properties.radius = t.properties.radius), e;
28
+ return e.geofenceTypeId === "gt_circle" && (o.properties.radius = e.properties.radius), e.chooseAssignmentType === "discriminate" && (o.devicesAllocationTypeId = "dat_by_devices", o.devicesAllocationIds = e.assignmentDevices.map((i) => parseInt(i))), o;
28
29
  };
29
- function N(t) {
30
- const { geofenceId: o, fullRefresh: e } = t, { toast: s } = a(), { networkOperation: p } = f(), { close: n, show: c } = l((r) => r.popupActions), { addOrReplaceGeofence: m } = S((r) => r.geofenceActions, E);
31
- return { onSubmit: y(async (r) => {
32
- await p({
33
- method: o ? "PATCH" : "POST",
34
- endPoint: `${d}${o ? `/${o}` : ""}`,
35
- data: T(r, o),
30
+ function A(e) {
31
+ const { geofenceId: t, fullRefresh: o } = e, { toast: i } = m(), { networkOperation: n } = d(), { close: c, show: p } = y((r) => r.popupActions), { addOrReplaceGeofence: a } = O((r) => r.geofenceActions, I);
32
+ return { onSubmit: T(async (r) => {
33
+ await n({
34
+ method: t ? "PATCH" : "POST",
35
+ endPoint: `${f}${t ? `/${t}` : ""}`,
36
+ data: _(r, t),
36
37
  toastError: !0,
37
38
  toastSuccess: !1,
38
39
  bodyToSnakeCase: !0,
39
40
  responseToCamelCase: !0
40
- }).then((i) => {
41
- m(i.data.id, i.data, !0), e && e(), s({ title: i.message }, { type: "success" }), n(u, !1), c(O);
41
+ }).then((s) => {
42
+ a(s.data.id, s.data, !0), o && o(), i({ title: s.message }, { type: "success" }), c(S, !1), p(l);
42
43
  }).catch(() => {
43
44
  });
44
- }, [p, o, m, e, s, n, c]) };
45
+ }, [n, t, a, o, i, c, p]) };
45
46
  }
46
47
  export {
47
- N as useSubmit
48
+ A as useSubmit
48
49
  };
@@ -1,4 +1,5 @@
1
1
  import { DevicesAssignmentType } from '../../../../model';
2
+ export type DevicesAssignmentNyDeviceOrDeparment = Exclude<DevicesAssignmentType, 'dat_all'>;
2
3
  export interface FormAssignmentDataValues {
3
4
  devicesAssignmentType: DevicesAssignmentType;
4
5
  assignmentDevices: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,wBAAwB;IACvC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,iBAAiB,EAAE,MAAM,EAAE,CAAE;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAE;CAClC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/AssignmentData/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,MAAM,MAAM,oCAAoC,GAAK,OAAO,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;AAG/F,MAAM,WAAW,wBAAwB;IACvC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,iBAAiB,EAAE,MAAM,EAAE,CAAE;IAC7B,qBAAqB,EAAE,MAAM,EAAE,CAAE;CAClC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GeofenceFeatureRender.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAcvF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,0BAyLnC,CAAC"}
1
+ {"version":3,"file":"GeofenceFeatureRender.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMapTools/subcomponents/GeofencesTool/subcomponents/GeofenceFeatureRender/GeofenceFeatureRender.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAcvF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,0BAwLnC,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from './CourseFormatter';
1
+ export * from '../components/formatters';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}