@m4l/gclick 0.2.0 → 0.2.3-beta.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 +5 -4
  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 +3 -2
  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,263 +0,0 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { Circle, Polyline, Polygon } from "react-leaflet";
3
- import { shallow } from "zustand/shallow";
4
- import { u as useMapStore } from "../../hooks/useMapStore/index.js";
5
- import React, { useState, useEffect, useCallback } from "react";
6
- import { a as MARKER_COLOR_DEFAULT, L as LABEL_BK_COLOR_DEFAULT, b as LABEL_COLOR_DEFAULT, S as SVG_ICON_DEFAULT } from "../../constants.js";
7
- import { M as MarkerIconLabel } from "../MarkerIconLabel/index.js";
8
- import { F as FALLBACK_SVG } from "./constants.js";
9
- import { P as PolylineWithArrows } from "../../pluginLayers/PolylineWithArrows/index.js";
10
- const CommonFeatureRender = (props) => {
11
- const { id, layerId } = props;
12
- const feature = useMapStore((state) => {
13
- const gObject = state.hashLayers[layerId].geoJsonObject;
14
- if (!gObject) {
15
- return null;
16
- }
17
- if (gObject.object.type === "Feature") {
18
- return {
19
- id: gObject.object.id,
20
- geometry: gObject.object.geometry,
21
- properties: gObject.object.properties,
22
- featureLabel: gObject.object.label,
23
- popupRender: state.hashLayers[layerId].popupComponent,
24
- popupOptions: state.hashLayers[layerId].popupOptions
25
- };
26
- } else {
27
- const feat = gObject.object.features.find((f) => f.id === id);
28
- if (feat) {
29
- return {
30
- id: feat.id,
31
- geometry: feat.geometry,
32
- properties: feat.properties,
33
- featureLabel: feat.label,
34
- popupRender: state.hashLayers[layerId].popupComponent,
35
- popupOptions: state.hashLayers[layerId].popupOptions
36
- };
37
- }
38
- return null;
39
- }
40
- }, shallow);
41
- const { addLayerDataToFeature } = useMapStore((state) => state.mapActions, shallow);
42
- const [svg, setSvg] = useState(null);
43
- useEffect(() => {
44
- if (!feature) {
45
- return;
46
- }
47
- if (feature.geometry?.type === "Point" && (feature.properties?.subType === "Marker" || feature.properties?.subType === void 0)) {
48
- const { iconUrl, markerColor = MARKER_COLOR_DEFAULT } = feature?.properties;
49
- const fetchData = async () => {
50
- if (svg && svg.path === iconUrl && svg.color === markerColor) {
51
- return;
52
- }
53
- let data;
54
- if (iconUrl) {
55
- try {
56
- data = await fetch(iconUrl).then((i) => i.text());
57
- } catch (_e) {
58
- data = FALLBACK_SVG;
59
- }
60
- }
61
- if (!data) {
62
- data = SVG_ICON_DEFAULT;
63
- }
64
- data = "data:image/svg+xml;base64," + btoa((data || "").replace(/#1E96DC/g, markerColor));
65
- setSvg({
66
- color: markerColor,
67
- path: iconUrl,
68
- data
69
- });
70
- };
71
- fetchData();
72
- }
73
- }, [feature]);
74
- const onAddPointLayer = useCallback((e) => {
75
- if (!feature) {
76
- return;
77
- }
78
- const layerData = {
79
- // visible: true,
80
- boundsNW: e.target?._latlng,
81
- boundsSE: e.target?._latlng,
82
- getTarget: () => e.target
83
- // {
84
- // id: e.target?._leaflet_id,
85
- // openPopup: e.target?.openPopup,
86
- // },
87
- // target: e.target,
88
- };
89
- addLayerDataToFeature(layerId, feature.id, layerData);
90
- }, [feature]);
91
- const onAddMultipointLayer = useCallback((e) => {
92
- if (!feature) {
93
- return;
94
- }
95
- const layerData = {
96
- // visible: true,
97
- boundsNW: e.target.getBounds().getNorthWest(),
98
- boundsSE: e.target.getBounds().getSouthEast(),
99
- getTarget: () => e.target
100
- // target: e.target,
101
- };
102
- addLayerDataToFeature(layerId, feature.id, layerData);
103
- }, [feature, addLayerDataToFeature, layerId]);
104
- if (!feature) {
105
- return null;
106
- }
107
- const propFeature = {
108
- featureId: feature.id
109
- };
110
- if (feature.geometry?.type === "Point") {
111
- const [lng, lat] = feature.geometry.coordinates;
112
- if (feature.properties?.subType === "Marker" || feature.properties?.subType === void 0) {
113
- const {
114
- iconUrl,
115
- iconRotate = 0,
116
- scaleIcon = 1,
117
- iconHeight,
118
- iconWidth,
119
- className,
120
- label,
121
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
122
- markerColor = MARKER_COLOR_DEFAULT,
123
- labelBkColor = LABEL_BK_COLOR_DEFAULT,
124
- labelColor = LABEL_COLOR_DEFAULT,
125
- offsetLeftTop = [42, 0],
126
- ...styleProperties
127
- } = feature.properties;
128
- if (iconUrl && !svg) {
129
- return null;
130
- }
131
- return /* @__PURE__ */ jsx(
132
- MarkerIconLabel,
133
- {
134
- position: { lat, lng },
135
- ...{
136
- label,
137
- iconSrc: svg?.data,
138
- iconScale: scaleIcon,
139
- iconRotate,
140
- iconWidth,
141
- iconHeight,
142
- labelBkColor,
143
- labelColor,
144
- offsetLeftTop
145
- },
146
- draggable: false,
147
- eventHandlers: {
148
- add: onAddPointLayer
149
- },
150
- popupRender: feature.popupRender,
151
- properties: feature.properties,
152
- popupOptions: feature.popupOptions,
153
- ...styleProperties,
154
- ...propFeature
155
- }
156
- );
157
- } else if (feature.properties?.subType === "Circle" && feature.properties?.radius) {
158
- const { subType, radius, ...styleProperties } = feature.properties;
159
- return /* @__PURE__ */ jsxs(Fragment, { children: [
160
- /* @__PURE__ */ jsx(
161
- Circle,
162
- {
163
- center: { lat, lng },
164
- radius: feature.properties?.radius,
165
- eventHandlers: {
166
- add: onAddMultipointLayer
167
- // remove: () => {
168
- // removeLefletLayerToFeature(layerId, feature.id)
169
- // },
170
- },
171
- ...styleProperties,
172
- ...propFeature
173
- },
174
- Math.random()
175
- ),
176
- feature?.featureLabel && /* @__PURE__ */ jsx(
177
- MarkerIconLabel,
178
- {
179
- position: [lat + feature.properties.radius / 111319, lng],
180
- ...feature?.featureLabel
181
- }
182
- )
183
- ] });
184
- }
185
- } else if (feature.geometry?.type === "LineString") {
186
- const polylinePositions = feature.geometry.coordinates.map(
187
- (coord) => [coord[1], coord[0]]
188
- );
189
- if (feature.properties?.subType === "PolylineWithArrows") {
190
- return /* @__PURE__ */ jsx(
191
- PolylineWithArrows,
192
- {
193
- positions: polylinePositions,
194
- stroke: true,
195
- weight: 10,
196
- eventHandlers: {
197
- add: onAddMultipointLayer
198
- // remove: () => {;
199
- // removeLefletLayerToFeature(layerId, feature.id)
200
- // },
201
- },
202
- dashArray: "20 30",
203
- ...feature.properties,
204
- ...propFeature
205
- },
206
- Math.random()
207
- );
208
- } else {
209
- return /* @__PURE__ */ jsx(
210
- Polyline,
211
- {
212
- positions: polylinePositions,
213
- stroke: true,
214
- weight: 10,
215
- eventHandlers: {
216
- add: onAddMultipointLayer
217
- // remove: () => {
218
- // removeLefletLayerToFeature(layerId, feature.id)
219
- // },
220
- },
221
- dashArray: "20 30",
222
- ...feature.properties,
223
- ...propFeature
224
- },
225
- Math.random()
226
- );
227
- }
228
- } else if (feature.geometry?.type === "Polygon") {
229
- const polygonPositions = feature.geometry.coordinates.map(
230
- (ring) => ring.map(([lng, lat]) => [lat, lng])
231
- );
232
- let topRightPoint = null;
233
- polygonPositions[0].forEach((coord) => {
234
- const [lat, lng] = coord;
235
- if (!topRightPoint || lat >= topRightPoint[0] && lng >= topRightPoint[1]) {
236
- topRightPoint = coord;
237
- }
238
- });
239
- topRightPoint = topRightPoint || polygonPositions[0][0];
240
- return /* @__PURE__ */ jsxs(React.Fragment, { children: [
241
- /* @__PURE__ */ jsx(
242
- Polygon,
243
- {
244
- positions: polygonPositions,
245
- opacity: 1,
246
- eventHandlers: {
247
- add: onAddMultipointLayer
248
- // remove: () => {
249
- // removeLefletLayerToFeature(layerId, feature.id)
250
- // },
251
- },
252
- ...feature.properties,
253
- ...propFeature
254
- }
255
- ),
256
- feature?.featureLabel && /* @__PURE__ */ jsx(MarkerIconLabel, { position: topRightPoint, ...feature?.featureLabel })
257
- ] });
258
- }
259
- return null;
260
- };
261
- export {
262
- CommonFeatureRender as C
263
- };
@@ -1,33 +0,0 @@
1
- import L__default from "leaflet";
2
- import { L as LABEL_BK_COLOR_DEFAULT, b as LABEL_COLOR_DEFAULT } from "../../constants.js";
3
- import { m as mapClasses } from "../../classes/index.js";
4
- import clsx from "clsx";
5
- const FeatureDivIconLabel = (props) => {
6
- const {
7
- label,
8
- iconSrc,
9
- iconScale: scale = 1,
10
- iconRotate,
11
- labelBkColor: bkColor = LABEL_BK_COLOR_DEFAULT,
12
- labelColor: color = LABEL_COLOR_DEFAULT,
13
- iconWidth = 24,
14
- iconHeight = 24,
15
- offsetLeftTop = [24, 0]
16
- } = props;
17
- let html = label ? `<div class="${mapClasses.featureLabel}"
18
- style="background-color:${bkColor}; color:${color};left:${offsetLeftTop[0]}px;top:${offsetLeftTop[1]}px;">${label}</div>` : "";
19
- if (iconSrc) {
20
- html = `<div class="${mapClasses.markerLayerIcon}" style="transform: rotate(${iconRotate}deg) scale(${scale}); transform-origin: center center;">
21
- <img src=${iconSrc}></img>
22
- </div>` + html;
23
- }
24
- return L__default.divIcon({
25
- className: clsx(mapClasses.markerLayerRoot, ""),
26
- iconSize: [iconWidth, iconHeight],
27
- // iconAnchor: [-width, height/2],
28
- html
29
- });
30
- };
31
- export {
32
- FeatureDivIconLabel as F
33
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * Componente que contiene los botones de herramientas de la parte superior derecha del mapa
3
- * - Boton de herramientas de GPS (Opcional)
4
- * - Boton de herramientas de medición
5
- * - Botones de zoom In
6
- * - Botones de zoom Out
7
- * @param props
8
- * @returns
9
- */
10
- export declare function BottomRightTools(): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { M as MapControl } from "../../../../external/MapControl/index.js";
3
- import { Z as ZoomButtons } from "./subcomponents/ZoomButtons/index.js";
4
- import { R as RightToolsRootStyled } from "../../../../slots/styled.js";
5
- function BottomRightTools() {
6
- return /* @__PURE__ */ jsx(MapControl, { position: "bottomright", prepend: true, ControlContainer: RightToolsRootStyled, children: /* @__PURE__ */ jsx(ZoomButtons, {}) });
7
- }
8
- export {
9
- BottomRightTools as B
10
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * TODO: Documentar
3
- */
4
- export declare function ZoomButtons(): import("react/jsx-runtime").JSX.Element;
@@ -1,52 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
3
- import { useMap } from "react-leaflet";
4
- import { M as MAP_ICONS } from "../../../../../../icons.js";
5
- import { useEnvironment } from "@m4l/core";
6
- import { m as mapClasses } from "../../../../../../classes/index.js";
7
- import { Z as ZoomButtonStyled } from "../../../../../../slots/styled.js";
8
- function ZoomButtons() {
9
- const map = useMap();
10
- const { host_static_assets, environment_assets } = useEnvironment();
11
- const [, setZoomInDisabled] = useState(false);
12
- const [, setZoomOutDisabled] = useState(false);
13
- useEffect(() => {
14
- const updateButtonState = () => {
15
- const currentZoom = map.getZoom();
16
- const maxZoom = map.getMaxZoom();
17
- const minZoom = map.getMinZoom();
18
- setZoomInDisabled(currentZoom === maxZoom);
19
- setZoomOutDisabled(currentZoom === minZoom);
20
- };
21
- map.on("zoomend", updateButtonState);
22
- updateButtonState();
23
- return () => {
24
- map.off("zoomend", updateButtonState);
25
- };
26
- }, [map]);
27
- const handleZoomIn = () => {
28
- map.zoomIn();
29
- };
30
- const handleZoomOut = () => {
31
- map.zoomOut();
32
- };
33
- return /* @__PURE__ */ jsxs("div", { className: mapClasses.zoomButtons, children: [
34
- /* @__PURE__ */ jsx(
35
- ZoomButtonStyled,
36
- {
37
- onClick: handleZoomIn,
38
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_ZOOM_IN}`
39
- }
40
- ),
41
- /* @__PURE__ */ jsx(
42
- ZoomButtonStyled,
43
- {
44
- onClick: handleZoomOut,
45
- src: `${host_static_assets}/${environment_assets}/frontend/components/map/assets/icons/${MAP_ICONS.MAP_ZOOM_OUT}`
46
- }
47
- )
48
- ] });
49
- }
50
- export {
51
- ZoomButtons as Z
52
- };
@@ -1,2 +0,0 @@
1
- export interface BottomRigthToolsProps {
2
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * TODO: Documentar
3
- */
4
- export declare function TopLeftTools(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface MainToolsProps {
3
- aditionalMainTools?: ReactNode;
4
- gpsTools?: ReactNode;
5
- }
@@ -1,9 +0,0 @@
1
- import { TopRigthToolsProps } from './types';
2
- /**
3
- * Componente que contiene los botones de herramientas de la parte superior derecha del mapa
4
- * - Boton de herramientas de GPS (Opcional)
5
- * - Boton de herramientas de medición
6
- * @param props
7
- * @returns
8
- */
9
- export declare function TopRightTools(props: TopRigthToolsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,58 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { M as MapControl } from "../../../../external/MapControl/index.js";
3
- import { M as MAP_ICONS } from "../../../../icons.js";
4
- import { B as ButtonTool } from "./subcomponents/ButtonTool/index.js";
5
- import { M as MAP_DICCTIONARY } from "../../../../dictionary.js";
6
- import { d as MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION, e as MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION, G as GPS_TOOLS_POPUP_DEFAULT_POSITION, f as MESURE_TOOL_POPUP_DEFAULT_POSITION } from "../../../../constants.js";
7
- import { M as MapLayersTool } from "./subcomponents/MapLayersTool/MapLayersTool.js";
8
- import { M as MeasureTool } from "./subcomponents/MeasureTool/MeasureTool.js";
9
- import { M as MapSourcesTool } from "./subcomponents/MapSourcesTool/MapSourcesTool.js";
10
- import { R as RightToolsRootStyled } from "../../../../slots/styled.js";
11
- function TopRightTools(props) {
12
- const { GpsTools } = props;
13
- return /* @__PURE__ */ jsxs(MapControl, { position: "topright", prepend: true, ControlContainer: RightToolsRootStyled, children: [
14
- /* @__PURE__ */ jsx(
15
- ButtonTool,
16
- {
17
- ToolComponent: MapSourcesTool,
18
- iconId: MAP_ICONS.MAP_SOURCES_TOOL,
19
- popupId: "sourcesTools",
20
- dictionaryId: MAP_DICCTIONARY.LABEL_MAP_SOURCES,
21
- defaultPosition: MAP_SOURCES_TOOL_POPUP_DEFAULT_POSITION
22
- }
23
- ),
24
- /* @__PURE__ */ jsx(
25
- ButtonTool,
26
- {
27
- ToolComponent: MapLayersTool,
28
- iconId: MAP_ICONS.MAP_LAYERS_TOOL,
29
- popupId: "layersTools",
30
- dictionaryId: MAP_DICCTIONARY.LABEL_LAYERS,
31
- defaultPosition: MAP_LAYERS_TOOL_POPUP_DEFAULT_POSITION
32
- }
33
- ),
34
- /* @__PURE__ */ jsx(
35
- ButtonTool,
36
- {
37
- ToolComponent: GpsTools,
38
- iconId: MAP_ICONS.MAP_GPS_TOOLS_TOOL,
39
- popupId: "gpsTools",
40
- dictionaryId: MAP_DICCTIONARY.LABEL_GPSTOOLS_NAME,
41
- defaultPosition: GPS_TOOLS_POPUP_DEFAULT_POSITION
42
- }
43
- ),
44
- /* @__PURE__ */ jsx(
45
- ButtonTool,
46
- {
47
- ToolComponent: MeasureTool,
48
- iconId: MAP_ICONS.MAP_MEASURE_TOOL,
49
- popupId: "measureTools",
50
- dictionaryId: MAP_DICCTIONARY.LABEL_MEASURE,
51
- defaultPosition: MESURE_TOOL_POPUP_DEFAULT_POSITION
52
- }
53
- )
54
- ] });
55
- }
56
- export {
57
- TopRightTools as T
58
- };
@@ -1,9 +0,0 @@
1
- import { ButtonToolProps } from './types';
2
- /**
3
- * Boton de herramienta, se encarga de renderizar el boton de herramienta y gestionar el popup asociado.
4
- * - Boton de herramientas de GPS (Opcional)
5
- * - Boton de herramientas de medición
6
- * @param props
7
- * @returns
8
- */
9
- export declare function ButtonTool(props: ButtonToolProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +0,0 @@
1
- import { JSX_REACT_NODE } from '@m4l/components';
2
- export interface TopRigthToolsProps {
3
- GpsTools?: JSX_REACT_NODE;
4
- }
@@ -1,5 +0,0 @@
1
- /**
2
- * TODO: Documentar
3
- */
4
- export declare function GpsMapTools(): import("react/jsx-runtime").JSX.Element | null;
5
- export type GpsMapToolsType = typeof GpsMapTools;
@@ -1,10 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useModuleSkeleton } from "@m4l/core";
3
- import { T as TabsGpsTools } from "./subcomponents/TabsGpsTools/index.js";
4
- function GpsMapTools() {
5
- const isSkeleton = useModuleSkeleton();
6
- return isSkeleton ? null : /* @__PURE__ */ jsx(TabsGpsTools, {});
7
- }
8
- export {
9
- GpsMapTools as G
10
- };
@@ -1,7 +0,0 @@
1
- import { GpsToolsClasses } from './types';
2
- export declare const gpsToolsClasses: GpsToolsClasses;
3
- /**
4
- * TODO: Documentar
5
- */
6
- export declare const useUtilityClasses: () => Record<"gpsToolsGeofencesList" | "gpsToolsGeofencesAddEdit" | "gpsToolsGeofencesAddEditContent" | "gpsToolsGeofencesAddEditDrawFinishContainer" | "toolGeofencesAddEditGeneral" | "toolGeofencesAddEditStyle" | "GpsToolsRoot" | "GpsToolsTabContent" | "GpsToolsTab", string>;
7
- export type Classes = ReturnType<typeof useUtilityClasses>;
@@ -1,21 +0,0 @@
1
- import { generateUtilityClasses } from "@mui/material";
2
- import "@mui/base";
3
- import { C as COMPONENT_CLASS_NAME } from "../constants.js";
4
- const gpsToolsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
5
- /* elements */
6
- "gpsToolsRoot",
7
- "gpsToolsTab",
8
- "gpsToolsTabContent",
9
- "gpsToolsGeofencesList",
10
- "gpsToolsGeofencesAddEdit",
11
- "gpsToolsGeofencesAddEditContent",
12
- "gpsToolsGeofencesAddEditDrawFinishContainer",
13
- "toolGeofencesAddEditGeneral",
14
- "toolGeofencesAddEditStyle",
15
- /* states or variants of elements */
16
- "visible",
17
- "hidden"
18
- ]);
19
- export {
20
- gpsToolsClasses as g
21
- };
@@ -1,14 +0,0 @@
1
- export interface GpsToolsClasses {
2
- gpsToolsRoot: string;
3
- gpsToolsTab: string;
4
- gpsToolsTabContent: string;
5
- gpsToolsGeofencesList: string;
6
- gpsToolsGeofencesAddEdit: string;
7
- gpsToolsGeofencesAddEditContent: string;
8
- gpsToolsGeofencesAddEditDrawFinishContainer: string;
9
- toolGeofencesAddEditGeneral: string;
10
- toolGeofencesAddEditStyle: string;
11
- visible: string;
12
- hidden: string;
13
- }
14
- export type GpsToolsClassesKey = keyof GpsToolsClasses;
@@ -1,57 +0,0 @@
1
- import { useEffect } from "react";
2
- import { shallow } from "zustand/shallow";
3
- import { u as useGpsMapToolsStore } from "../useGpsMapToolsStore/index.js";
4
- import { C as CommonFeatureRender } from "../../../GpsMap/featureRenders/CommonFeatureRender/index.js";
5
- import { G as GeofencesFeaturesLayers } from "../../subcomponents/TabsGpsTools/subcomponents/constants.js";
6
- import { u as useMapStore } from "../../../GpsMap/hooks/useMapStore/index.js";
7
- function useLayers() {
8
- const { addLayer, removeLayer } = useMapStore((state) => state.mapActions, shallow);
9
- const { init } = useGpsMapToolsStore((state) => state.gpsToolsActions, shallow);
10
- useEffect(() => {
11
- addLayer({
12
- layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES,
13
- name: "Geocercas",
14
- renderFeature: CommonFeatureRender,
15
- geoJsonObject: {
16
- object: {
17
- type: "FeatureCollection",
18
- features: []
19
- }
20
- },
21
- autoFocus: false
22
- });
23
- addLayer({
24
- layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_TRANSIT_FEATURES,
25
- name: "Geometrías de tránsito",
26
- renderFeature: CommonFeatureRender,
27
- geoJsonObject: {
28
- object: {
29
- type: "FeatureCollection",
30
- features: []
31
- }
32
- },
33
- autoFocus: false
34
- });
35
- addLayer({
36
- layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_INTERNAL_FEATURES,
37
- name: "Geometrías internas",
38
- renderFeature: CommonFeatureRender,
39
- geoJsonObject: {
40
- object: {
41
- type: "FeatureCollection",
42
- features: []
43
- }
44
- },
45
- autoFocus: false
46
- });
47
- init();
48
- return () => {
49
- removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES);
50
- removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES_INTERNAL_FEATURES);
51
- removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES_TRANSIT_FEATURES);
52
- };
53
- }, []);
54
- }
55
- export {
56
- useLayers as u
57
- };
@@ -1 +0,0 @@
1
- export declare const DivTabGpsToolsRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,18 +0,0 @@
1
- import { styled } from "@mui/material/styles";
2
- import { g as gpsToolsClasses } from "./classes/index.js";
3
- const DivTabGpsToolsRoot = styled("div")`
4
- .${gpsToolsClasses.gpsToolsTabContent}.${gpsToolsClasses.hidden} {
5
- display: none;
6
- }
7
- .${gpsToolsClasses.gpsToolsGeofencesList} .M4LDataGrid-root {
8
- height: unset !important;
9
- flex-grow: 1;
10
- }
11
- .${gpsToolsClasses.toolGeofencesAddEditGeneral} {
12
- flex-grow: 1;
13
- }
14
-
15
- `;
16
- export {
17
- DivTabGpsToolsRoot as D
18
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * Componente que renderiza las herramientas de GPS a traves de los tabs
3
- * Funcionalidad:
4
- * - Cuando se cambia el tab, se actualiza el subtitulo del popup
5
- * - Los tabs no visible se ocultan a traves de css, para que no destruyan los componentes evitando
6
- * la recargar de los mismos entre cambio de pestañas.
7
- * @returns Tabs con las herramientas de GPS
8
- */
9
- export declare function TabsGpsTools(): import("react/jsx-runtime").JSX.Element | null;