@m4l/components 0.2.14 → 0.2.16

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 (264) hide show
  1. package/@types/export.d.ts +3 -0
  2. package/components/AccountPopover/{index.7060320a.js → index.34362031.js} +9 -21
  3. package/components/AppBar/{index.c8e7b25c.js → index.c64b66ee.js} +5 -22
  4. package/components/CommonActions/components/ActionCancel/{index.82313aef.js → index.106c5327.js} +2 -2
  5. package/components/CommonActions/components/ActionFormCancel/index.6d00f737.js +61 -0
  6. package/components/CommonActions/components/ActionFormIntro/{index.29891df9.js → index.9ee7df17.js} +2 -2
  7. package/components/CommonActions/components/ActionIntro/{index.c70ae272.js → index.bd2a14b2.js} +2 -2
  8. package/components/CommonActions/components/Actions/index.8368ac0f.js +74 -0
  9. package/components/DataGrid/assets/icons/datagrid.svg +4 -0
  10. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.d.ts +9 -0
  11. package/components/DataGrid/formatters/ColumnSetCheckFormatter/types.d.ts +6 -0
  12. package/components/DataGrid/{index.387652a9.js → index.e5b552a2.js} +52 -730
  13. package/components/DataGrid/subcomponents/Actions/index.2f58e034.js +591 -0
  14. package/components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js +64 -0
  15. package/components/DragResizeWindow/DragResizeWindow.d.ts +15 -0
  16. package/components/DragResizeWindow/classes/index.d.ts +6 -0
  17. package/components/DragResizeWindow/classes/types.d.ts +8 -0
  18. package/components/DragResizeWindow/constants.d.ts +3 -0
  19. package/components/DragResizeWindow/index.b5206081.js +445 -0
  20. package/components/DragResizeWindow/index.d.ts +2 -0
  21. package/components/DragResizeWindow/types.d.ts +169 -0
  22. package/components/DragResizeWindow/utils.d.ts +2 -0
  23. package/components/DynamicFilter/{index.9e9885b0.js → index.73258cb8.js} +24 -91
  24. package/components/GridLayout/{index.68093cfb.js → index.4d26c328.js} +8 -63
  25. package/components/GridLayout/index.d.ts +1 -1
  26. package/components/GridLayout/subcomponents/Griditem/{index.8e4af155.js → index.25e9f332.js} +3 -3
  27. package/components/GridLayout/subcomponents/Responsive/{index.c32210fc.js → index.3839890b.js} +1 -1
  28. package/components/GridLayout/subcomponents/SizeProvider/index.a751962f.js +62 -0
  29. package/components/GridLayout/subcomponents/{WidthProvider → withSizeProvider}/index.d.ts +1 -1
  30. package/components/HelperText/{index.918bba47.js → index.7d2afdb3.js} +2 -23
  31. package/components/Icon/{index.e215d0f0.js → index.282c5b58.js} +5 -5
  32. package/components/Image/{index.d684bdf2.js → index.8915f577.js} +3 -3
  33. package/components/LanguagePopover/{index.424bad09.js → index.5e1d85a9.js} +4 -20
  34. package/components/LinearProgressIndeterminate/{index.a0ad2d9e.js → index.2d53ade4.js} +1 -1
  35. package/components/LoadingError/{index.b3e4e8e5.js → index.d95e6efb.js} +5 -23
  36. package/components/MFLoader/{index.3d17dfc3.js → index.cc563716.js} +13 -22
  37. package/components/ModalDialog/{index.40f6571e.js → index.690c82a4.js} +5 -5
  38. package/components/NavLink/{index.ed4c0609.js → index.b75c91e1.js} +2 -22
  39. package/components/NoItemSelected/{index.5ed80b8e.js → index.5246b204.js} +1 -1
  40. package/components/ObjectLogs/{index.3a939c6b.js → index.f2b5f7d9.js} +5 -82
  41. package/components/PDFViewer/{index.4d16e5bc.js → index.51e4f1b2.js} +3 -23
  42. package/components/Page/{index.890fbaac.js → index.f4aedd2d.js} +1 -1
  43. package/components/PaperForm/classes/index.d.ts +1 -2
  44. package/components/PaperForm/classes/types.d.ts +0 -1
  45. package/components/PaperForm/{index.013ed28b.js → index.30f68f0f.js} +6 -11
  46. package/components/PaperForm/types.d.ts +1 -4
  47. package/components/Period/{index.3bd05e05.js → index.8e118051.js} +5 -88
  48. package/components/PopupsProvider/classes/index.d.ts +11 -0
  49. package/components/PopupsProvider/classes/types.d.ts +9 -0
  50. package/components/PopupsProvider/constants.d.ts +10 -0
  51. package/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +19 -0
  52. package/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +7 -0
  53. package/components/PopupsProvider/contexts/PopupsContext/index.d.ts +1 -0
  54. package/components/PopupsProvider/contexts/PopupsContext/store.d.ts +16 -0
  55. package/components/PopupsProvider/contexts/PopupsContext/types.d.ts +117 -0
  56. package/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +3 -0
  57. package/components/PopupsProvider/index.c9400f03.js +247 -0
  58. package/components/PopupsProvider/index.d.ts +2 -0
  59. package/components/PopupsProvider/subcomponents/Popup/index.d.ts +8 -0
  60. package/components/PopupsProvider/subcomponents/Popup/types.d.ts +16 -0
  61. package/components/PopupsProvider/subcomponents/PopupsContainer/index.d.ts +2 -0
  62. package/components/PopupsProvider/subcomponents/PopupsContainer/types.d.ts +1 -0
  63. package/components/PrintingSystem/{index.70234425.js → index.9dc25af9.js} +14 -18
  64. package/components/PrintingSystem/subcomponents/BodyNode/{index.1dd418aa.js → index.6c1cf8f5.js} +1 -1
  65. package/components/PrintingSystem/subcomponents/ChartNode/{index.6aadd6b3.js → index.fdb01c74.js} +1 -1
  66. package/components/PrintingSystem/subcomponents/DividerNode/{index.91e65ff6.js → index.46c5eb9e.js} +1 -1
  67. package/components/PrintingSystem/subcomponents/FooterNode/{index.c2481749.js → index.18aa1ddd.js} +1 -1
  68. package/components/PrintingSystem/subcomponents/GridNode/{index.758d94d1.js → index.f4b4ffca.js} +6 -2
  69. package/components/PrintingSystem/subcomponents/HeaderNode/{index.732d7c58.js → index.9afcd686.js} +1 -1
  70. package/components/PrintingSystem/subcomponents/PaperNode/{index.1a20a9d4.js → index.a3967d23.js} +1 -1
  71. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8402e742.js → index.e1c05641.js} +5 -3
  72. package/components/PrintingSystem/subcomponents/SectionNode/{index.25aeb4aa.js → index.c5588090.js} +1 -1
  73. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.2b632722.js → index.7792384b.js} +1 -1
  74. package/components/PrintingSystem/types.d.ts +2 -2
  75. package/components/PropertyValue/{index.45482ca3.js → index.d61c943c.js} +4 -20
  76. package/components/Resizeable/{index.6478d7d8.js → index.18c86aff.js} +5 -5
  77. package/components/ResizeableWindow/types.d.ts +3 -5
  78. package/components/SideBar/{index.614f85fb.js → index.f5aecd41.js} +23 -22
  79. package/components/ToastContainer/{index.5e729fbb.js → index.83304f62.js} +5 -7
  80. package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
  81. package/components/areas/components/AreasAdmin/{index.c1539c1b.js → index.c55d5c24.js} +28 -97
  82. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  83. package/components/areas/components/AreasViewer/{index.e084d8e9.js → index.2bec316e.js} +24 -88
  84. package/components/areas/components/index.558684b3.js +1 -0
  85. package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
  86. package/components/areas/contexts/AreasContext/{index.cffa1526.js → index.827ee1e5.js} +17 -10
  87. package/components/areas/contexts/index.24025b97.js +1 -0
  88. package/components/areas/hooks/index.d9dc1e21.js +1 -0
  89. package/components/areas/hooks/useAreas/{index.00031ac3.js → index.71bc8f19.js} +1 -1
  90. package/components/areas/index.4cc6a221.js +22 -0
  91. package/components/formatters/BooleanFormatter/{index.5ed55bda.js → index.b21353a5.js} +3 -2
  92. package/components/formatters/{index.4426a315.js → index.7b216229.js} +3 -7
  93. package/components/hook-form/HelperError/index.66bbcac3.js +30 -0
  94. package/components/hook-form/RHFAutocomplete/{index.01a8f57e.js → index.210ee73f.js} +7 -22
  95. package/components/hook-form/RHFAutocompleteAsync/{index.df1d5bca.js → index.e5935f63.js} +1 -1
  96. package/components/hook-form/RHFCheckbox/{index.23fc4851.js → index.a38715e3.js} +2 -22
  97. package/components/hook-form/RHFColorPicker/{index.c7695748.js → index.bcc1eced.js} +5 -21
  98. package/components/hook-form/RHFDateTime/{index.984b803f.js → index.fa80a8cb.js} +5 -21
  99. package/components/hook-form/RHFHelperError/index.d.ts +4 -0
  100. package/components/hook-form/RHFPeriod/{index.1852e7d3.js → index.d320e56f.js} +3 -2
  101. package/components/hook-form/RHFRadioGroup/{index.3b17819b.js → index.1ddb3d93.js} +1 -1
  102. package/components/hook-form/RHFTextField/{index.1167879e.js → index.ab689d7d.js} +6 -8
  103. package/components/hook-form/RHFUpload/{index.49edcb02.js → index.e251c9b6.js} +5 -22
  104. package/components/index.d.ts +2 -1
  105. package/components/maps/components/GpsTools/GpsTools.d.ts +1 -0
  106. package/components/maps/components/GpsTools/classes/index.d.ts +4 -0
  107. package/components/maps/components/GpsTools/classes/types.d.ts +20 -0
  108. package/components/maps/components/GpsTools/constants.d.ts +8 -0
  109. package/components/maps/components/GpsTools/contexts/GpsToolsContext/index.d.ts +19 -0
  110. package/components/maps/components/GpsTools/contexts/GpsToolsContext/store.d.ts +16 -0
  111. package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +173 -0
  112. package/components/maps/components/GpsTools/hooks/useGpsToolsStore/index.d.ts +2 -0
  113. package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +1 -0
  114. package/components/maps/components/GpsTools/icons.d.ts +15 -0
  115. package/components/maps/components/GpsTools/index.03998a42.js +2086 -0
  116. package/components/maps/components/GpsTools/index.d.ts +2 -0
  117. package/components/maps/components/GpsTools/subcomponents/TabTools/index.d.ts +9 -0
  118. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/constants.d.ts +7 -0
  119. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/index.d.ts +1 -0
  120. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/model.d.ts +122 -0
  121. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
  122. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.d.ts +7 -0
  123. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +11 -0
  124. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +8 -0
  125. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
  126. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +22 -0
  127. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/index.d.ts +1 -0
  128. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +1 -0
  129. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
  130. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +5 -0
  131. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +1 -0
  132. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
  133. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +6 -0
  134. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +1 -0
  135. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +1 -0
  136. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +1 -0
  137. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +1 -0
  138. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +1 -0
  139. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
  140. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/types.d.ts +25 -0
  141. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
  142. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +4 -0
  143. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useColumns.d.ts +9 -0
  144. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useMaster.d.ts +20 -0
  145. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +9 -0
  146. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/index.d.ts +1 -0
  147. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +7 -0
  148. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/constants.d.ts +30 -0
  149. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useMeasure.d.ts +31 -0
  150. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +10 -0
  151. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/index.d.ts +1 -0
  152. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -0
  153. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
  154. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
  155. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -0
  156. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/types.d.ts +9 -0
  157. package/components/maps/components/GpsTools/types.d.ts +34 -0
  158. package/components/maps/components/Map/Map.d.ts +2 -0
  159. package/components/maps/components/Map/classes/index.d.ts +5 -0
  160. package/components/maps/components/Map/classes/types.d.ts +19 -0
  161. package/components/maps/components/Map/constants.d.ts +11 -0
  162. package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +19 -0
  163. package/components/maps/components/Map/contexts/MapContext/helper.d.ts +8 -0
  164. package/components/maps/components/Map/contexts/MapContext/index.d.ts +2 -0
  165. package/components/maps/components/Map/contexts/MapContext/store.d.ts +16 -0
  166. package/components/maps/components/Map/contexts/MapContext/types.d.ts +414 -0
  167. package/components/maps/components/Map/dictionary.d.ts +70 -0
  168. package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +8 -0
  169. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarker.d.ts +6 -0
  170. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +1 -0
  171. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +1 -0
  172. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +2 -0
  173. package/components/maps/components/Map/featureRenders/index.d.ts +1 -0
  174. package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +8 -0
  175. package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +15 -0
  176. package/components/maps/components/Map/hooks/useDisableZoomEvents/index.d.ts +1 -0
  177. package/components/maps/components/Map/hooks/useMapStore/index.d.ts +3 -0
  178. package/components/maps/components/Map/index.b79ceae4.js +1338 -0
  179. package/components/maps/components/Map/index.d.ts +7 -0
  180. package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +9 -0
  181. package/components/maps/components/Map/pluginLayers/index.d.ts +1 -0
  182. package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +2 -0
  183. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
  184. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useColumns.d.ts +15 -0
  185. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useMaster.d.ts +12 -0
  186. package/components/maps/components/Map/subcomponents/LayersTool/index.d.ts +1 -0
  187. package/components/maps/components/Map/subcomponents/LayersTool/model.d.ts +19 -0
  188. package/components/maps/components/Map/subcomponents/MainTools/index.d.ts +2 -0
  189. package/components/maps/components/Map/subcomponents/MainTools/types.d.ts +5 -0
  190. package/components/maps/components/Map/subcomponents/MyLayer/index.d.ts +17 -0
  191. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +20 -0
  192. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
  193. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +12 -0
  194. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
  195. package/components/maps/components/Map/subcomponents/MyLayer/types.d.ts +2 -0
  196. package/components/maps/components/Map/types.d.ts +28 -0
  197. package/components/maps/index.d.ts +3 -0
  198. package/components/modal/WindowBase.779aa7a5.js +74 -0
  199. package/components/modal/WindowConfirm.ec73ba4f.js +102 -0
  200. package/components/modal/index.61389369.js +57 -0
  201. package/components/mui_extended/Accordion/{index.3087f40e.js → index.e15e10d9.js} +4 -4
  202. package/components/mui_extended/Button/{index.0f2552ed.js → index.5c68764a.js} +3 -3
  203. package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
  204. package/components/mui_extended/IconButton/{index.5afe56b7.js → index.a719445f.js} +2 -2
  205. package/components/mui_extended/MenuActions/{index.cc54c35c.js → index.62359120.js} +5 -19
  206. package/components/mui_extended/Pager/{index.5fbbefe2.js → index.fa5f5ded.js} +3 -2
  207. package/components/mui_extended/Tab/{index.ae9ea641.js → index.cefe27e7.js} +6 -6
  208. package/components/mui_extended/ToggleButton/ToggleButton.d.ts +1 -1
  209. package/components/mui_extended/ToggleButton/{index.667d63cd.js → index.5aa6ea58.js} +1 -5
  210. package/components/mui_extended/ToggleButton/types.d.ts +2 -2
  211. package/components/mui_extended/ToggleIconButton/{index.2de19be3.js → index.47ddefd4.js} +1 -6
  212. package/components/mui_extended/ToggleIconButton/types.d.ts +1 -1
  213. package/components/mui_extended/index.b606cd9d.js +1 -0
  214. package/contexts/ModalContext/{index.ef38d747.js → index.6085b148.js} +1 -1
  215. package/hocs/withToggle/index.d.ts +1 -9
  216. package/hocs/withToggle/types.d.ts +10 -0
  217. package/hooks/useFormAddEdit/index.59821a33.js +96 -0
  218. package/hooks/useFormReadyForUpdate/index.d.ts +6 -0
  219. package/hooks/useFormReadyForUpdate/index.f60f500e.js +20 -0
  220. package/hooks/useModal/{index.8acace45.js → index.1c88654a.js} +1 -1
  221. package/hooks/useSizeContainer/contants.d.ts +1 -0
  222. package/hooks/useSizeContainer/index.62b4e0c4.js +35 -0
  223. package/hooks/useSizeContainer/index.d.ts +8 -0
  224. package/hooks/useStateRef/index.538edb89.js +15 -0
  225. package/hooks/useStateRef/index.d.ts +8 -0
  226. package/hooks/useTab/index.500c048b.js +12 -0
  227. package/index.js +225 -198
  228. package/{node_modules.79f5ed2f.js → node_modules.bb836860.js} +1 -1
  229. package/package.json +6 -4
  230. package/{react-draggable.ee21cb7e.js → react-draggable.312ab17d.js} +1 -1
  231. package/{react-resizable.ee028152.js → react-resizable.f2c58a4c.js} +2 -2
  232. package/test/getNameDataTestId.14875ec7.js +6 -0
  233. package/utils/capitalizeFirstLetter.d.ts +1 -0
  234. package/utils/getComponentUtilityClass.d.ts +1 -0
  235. package/utils/getPaletteColor.d.ts +2 -0
  236. package/utils/getThemeVariantColor.d.ts +3 -0
  237. package/utils/getTransformXY.d.ts +4 -0
  238. package/utils/index.d.ts +6 -7
  239. package/utils/isValidDate.d.ts +1 -0
  240. package/utils/types.d.ts +16 -0
  241. package/components/CommonActions/components/ActionFormCancel/index.3b2605ee.js +0 -144
  242. package/components/CommonActions/components/Actions/index.93e9112b.js +0 -161
  243. package/components/DraggableWindow/index.d.ts +0 -3
  244. package/components/DraggableWindow/index.f9f067bd.js +0 -39
  245. package/components/DraggableWindow/types.d.ts +0 -5
  246. package/components/areas/components/index.4381fcfa.js +0 -32
  247. package/components/areas/contexts/index.003a53c1.js +0 -4
  248. package/components/areas/hooks/index.0184c6f7.js +0 -4
  249. package/components/areas/index.1b5b2267.js +0 -56
  250. package/components/maps/leaflet.d.ts +0 -29
  251. package/components/modal/WindowBase.8e3e5337.js +0 -158
  252. package/components/modal/WindowConfirm.eec3e5d0.js +0 -186
  253. package/components/modal/index.ac0c9093.js +0 -146
  254. package/components/mui_extended/index.6837d969.js +0 -24
  255. package/hooks/useFormAddEdit/index.8276444a.js +0 -181
  256. package/hooks/useTab/index.07f652ec.js +0 -101
  257. package/vendor.f0742647.js +0 -140
  258. package/components/GridLayout/subcomponents/{GridItem → Griditem}/index.d.ts +0 -0
  259. package/components/GridLayout/subcomponents/{GridItem → Griditem}/types.d.ts +0 -0
  260. package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
  261. package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
  262. package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
  263. package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
  264. package/utils/{index.de903261.js → index.9ad3909a.js} +3 -3
@@ -1,8 +1,8 @@
1
1
  import { useMemo } from "react";
2
2
  import { useModuleDictionary, useEnvironment } from "@m4l/core";
3
- import { I as Icon } from "../../Icon/index.e215d0f0.js";
3
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
4
4
  import { W as WrapperComponent } from "../../WrapperComponent/index.5e872594.js";
5
- import { F as FormatterRoot, f as formatterClasses } from "../index.4426a315.js";
5
+ import { F as FormatterRoot, f as formatterClasses } from "../index.7b216229.js";
6
6
  import clsx from "clsx";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
@@ -26,6 +26,7 @@ function BooleanFormatter(props) {
26
26
  const final_value = value ?? false;
27
27
  const srcCheckTrue = `${host_static_assets}/${environment_assets}/frontend/components/data_grid/components/boolean_formatter/assets/icons/check_true.svg`;
28
28
  const srcCheckFalse = `${host_static_assets}/${environment_assets}/frontend/components/data_grid/components/boolean_formatter/assets/icons/check_false.svg`;
29
+ console.log("srcCheckTrue", srcCheckTrue);
29
30
  const memoComponent = useMemo(() => {
30
31
  if (presentationType === "string_yes_no") {
31
32
  return /* @__PURE__ */ jsx(Component, {
@@ -1,13 +1,9 @@
1
+ import { generateUtilityClasses, styled } from "@mui/material";
2
+ import "@mui/base";
1
3
  import { jsx } from "react/jsx-runtime";
2
4
  import { W as WrapperComponent } from "../WrapperComponent/index.5e872594.js";
3
5
  import { useModuleDictionary } from "@m4l/core";
4
- import "react";
5
- import "../Icon/index.e215d0f0.js";
6
- import { generateUtilityClasses, styled } from "@mui/material";
7
- import "clsx";
8
- import "@m4l/graphics";
9
- import "@mui/base";
10
- import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.5ed55bda.js";
6
+ import { a as BOOLEAN_FORMATTER_DICTIONARY_KEY } from "./BooleanFormatter/index.b21353a5.js";
11
7
  const COMPONENT_CLASS_NAME = "M4LFormatter";
12
8
  const formatterClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
13
9
  "root",
@@ -0,0 +1,30 @@
1
+ import { useFormContext, useController } from "react-hook-form";
2
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ function HelperError(props) {
5
+ const {
6
+ name
7
+ } = props;
8
+ const {
9
+ control
10
+ } = useFormContext();
11
+ const {
12
+ fieldState
13
+ } = useController({
14
+ name,
15
+ control,
16
+ rules: {
17
+ required: true
18
+ }
19
+ });
20
+ if (fieldState?.error?.message) {
21
+ return /* @__PURE__ */ jsx(HelperText, {
22
+ variant: "error",
23
+ message: fieldState?.error?.message
24
+ });
25
+ }
26
+ return null;
27
+ }
28
+ export {
29
+ HelperError as H
30
+ };
@@ -1,32 +1,16 @@
1
1
  import { useModuleDictionary, useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
3
  import { Skeleton, generateUtilityClasses, generateUtilityClass, useTheme, Autocomplete, Popper, TextField, CircularProgress } from "@mui/material";
4
- import { I as Image } from "../../Image/index.d684bdf2.js";
4
+ import { styled } from "@mui/material/styles";
5
+ import { I as Image } from "../../Image/index.8915f577.js";
5
6
  import { useMemo, useRef, useState, useEffect } from "react";
6
7
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
- import "../../Icon/index.e215d0f0.js";
8
- import "clsx";
9
- import { useResponsiveDesktop } from "@m4l/graphics";
10
8
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
11
- import { I as IconButton } from "../../mui_extended/IconButton/index.5afe56b7.js";
12
- import "../../mui_extended/Accordion/index.3087f40e.js";
13
- import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
14
- import "../../mui_extended/Avatar/index.75e6ed57.js";
15
- import "react-router-dom";
16
- import "@mui/material/Button";
17
- import "../../mui_extended/Button/index.0f2552ed.js";
18
- import "../../mui_extended/CheckBox.38abccd8.js";
19
- import "../../mui_extended/Badge/index.b09524fe.js";
20
- import "@mui/lab";
21
- import "../../mui_extended/MenuActions/index.cc54c35c.js";
22
- import "../../mui_extended/Popover/index.9f35d0eb.js";
23
- import "../../mui_extended/Stack/index.0e53197c.js";
24
- import "../../mui_extended/Tab/index.ae9ea641.js";
25
- import "../../mui_extended/Pager/index.5fbbefe2.js";
26
- import "../../mui_extended/Tooltip/index.5a795dcd.js";
27
- import { H as HelperText } from "../../HelperText/index.918bba47.js";
28
- import { styled } from "@mui/material/styles";
9
+ import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
29
10
  import { unstable_composeClasses } from "@mui/base";
11
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
12
+ import { useResponsiveDesktop } from "@m4l/graphics";
13
+ import { I as IconButton } from "../../mui_extended/IconButton/index.a719445f.js";
30
14
  const AutocompleteRoot = styled("div")(({
31
15
  theme
32
16
  }) => ({
@@ -295,6 +279,7 @@ function RHFAutocomplete(props) {
295
279
  inputValue,
296
280
  clearOnBlur: false,
297
281
  PopperComponent: (props2) => {
282
+ console.log("Autocomplete open Popover");
298
283
  return /* @__PURE__ */ jsx(Popper, {
299
284
  ...props2,
300
285
  className: classes.popper,
@@ -5,8 +5,8 @@ import { styled } from "@mui/material/styles";
5
5
  import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
6
6
  import { unstable_composeClasses } from "@mui/base";
7
7
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
8
- import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.01a8f57e.js";
9
8
  import { jsx } from "react/jsx-runtime";
9
+ import { R as RHFAutocomplete, g as getRHFAutocompleteComponentsDictionary } from "../RHFAutocomplete/index.210ee73f.js";
10
10
  styled("div")(() => ({
11
11
  display: "flex",
12
12
  width: "100%",
@@ -2,31 +2,11 @@ import { useFormContext, Controller } from "react-hook-form";
2
2
  import { styled } from "@mui/material/styles";
3
3
  import { Skeleton, generateUtilityClasses, generateUtilityClass } from "@mui/material";
4
4
  import { unstable_composeClasses } from "@mui/base";
5
- import { H as HelperText } from "../../HelperText/index.918bba47.js";
5
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
6
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
7
7
  import { useResponsiveDesktop } from "@m4l/graphics";
8
- import "react";
9
- import "@m4l/core";
10
- import "../../Icon/index.e215d0f0.js";
11
- import "clsx";
12
8
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
13
- import "../../mui_extended/IconButton/index.5afe56b7.js";
14
- import "../../mui_extended/Accordion/index.3087f40e.js";
15
- import "../../mui_extended/Typography/index.443590d6.js";
16
- import "../../mui_extended/Avatar/index.75e6ed57.js";
17
- import "react-router-dom";
18
- import "@mui/material/Button";
19
- import "../../mui_extended/Button/index.0f2552ed.js";
20
- import { C as CheckBox } from "../../mui_extended/CheckBox.38abccd8.js";
21
- import "../../mui_extended/Badge/index.b09524fe.js";
22
- import "../../Image/index.d684bdf2.js";
23
- import "@mui/lab";
24
- import "../../mui_extended/MenuActions/index.cc54c35c.js";
25
- import "../../mui_extended/Popover/index.9f35d0eb.js";
26
- import "../../mui_extended/Stack/index.0e53197c.js";
27
- import "../../mui_extended/Tab/index.ae9ea641.js";
28
- import "../../mui_extended/Pager/index.5fbbefe2.js";
29
- import "../../mui_extended/Tooltip/index.5a795dcd.js";
9
+ import { C as CheckBox } from "../../mui_extended/CheckBox.e662d20c.js";
30
10
  const RHFCheckboxRoot = styled("div")(({
31
11
  theme
32
12
  }) => ({
@@ -1,33 +1,17 @@
1
1
  import { useState } from "react";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import { B as Button } from "../../mui_extended/Button/index.0f2552ed.js";
4
3
  import { useModuleSkeleton, useEnvironment, useModuleDictionary } from "@m4l/core";
5
- import { S as SketchPicker } from "../../../node_modules.79f5ed2f.js";
4
+ import { S as SketchPicker } from "../../../node_modules.bb836860.js";
6
5
  import "lodash-es/debounce";
7
6
  import "lodash-es/each";
8
7
  import { jsx, jsxs } from "react/jsx-runtime";
9
- import { H as HelperText } from "../../HelperText/index.918bba47.js";
8
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
10
9
  import { generateUtilityClasses, generateUtilityClass, styled, Skeleton as Skeleton$1 } from "@mui/material";
11
10
  import { unstable_composeClasses } from "@mui/base";
12
11
  import { useTheme } from "@mui/material/styles";
13
- import { I as Icon } from "../../Icon/index.e215d0f0.js";
14
- import "../../mui_extended/IconButton/index.5afe56b7.js";
15
- import "clsx";
16
- import "@m4l/graphics";
17
- import "../../mui_extended/Accordion/index.3087f40e.js";
18
- import "../../mui_extended/Typography/index.443590d6.js";
19
- import "../../mui_extended/Avatar/index.75e6ed57.js";
20
- import "react-router-dom";
21
- import "../../mui_extended/CheckBox.38abccd8.js";
22
- import "../../mui_extended/Badge/index.b09524fe.js";
23
- import "../../Image/index.d684bdf2.js";
24
- import "@mui/lab";
25
- import "../../mui_extended/MenuActions/index.cc54c35c.js";
26
- import { P as Popover } from "../../mui_extended/Popover/index.9f35d0eb.js";
27
- import "../../mui_extended/Stack/index.0e53197c.js";
28
- import "../../mui_extended/Tab/index.ae9ea641.js";
29
- import "../../mui_extended/Pager/index.5fbbefe2.js";
30
- import "../../mui_extended/Tooltip/index.5a795dcd.js";
12
+ import { P as Popover } from "../../mui_extended/Popover/index.b3eca6b1.js";
13
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
14
+ import { B as Button } from "../../mui_extended/Button/index.5c68764a.js";
31
15
  const componentName = "M4LRHFColorPicker";
32
16
  const colorPickerClasses = generateUtilityClasses(componentName, [
33
17
  "root",
@@ -2,32 +2,16 @@ import { useFormContext, Controller } from "react-hook-form";
2
2
  import { DateTimePicker } from "@mui/x-date-pickers";
3
3
  import { useEnvironment, useModuleSkeleton } from "@m4l/core";
4
4
  import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
5
+ import { styled } from "@mui/material/styles";
5
6
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
6
7
  import { useFormatter, useResponsiveDesktop } from "@m4l/graphics";
7
8
  import { useState, useEffect } from "react";
9
+ import { unstable_composeClasses } from "@mui/base";
8
10
  import clsx from "clsx";
9
- import { I as Icon } from "../../Icon/index.e215d0f0.js";
10
- import "../../mui_extended/IconButton/index.5afe56b7.js";
11
- import "../../mui_extended/Accordion/index.3087f40e.js";
12
- import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
11
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
13
12
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
14
- import "../../mui_extended/Avatar/index.75e6ed57.js";
15
- import "react-router-dom";
16
- import "@mui/material/Button";
17
- import "../../mui_extended/Button/index.0f2552ed.js";
18
- import "../../mui_extended/CheckBox.38abccd8.js";
19
- import "../../mui_extended/Badge/index.b09524fe.js";
20
- import "../../Image/index.d684bdf2.js";
21
- import "@mui/lab";
22
- import "../../mui_extended/MenuActions/index.cc54c35c.js";
23
- import "../../mui_extended/Popover/index.9f35d0eb.js";
24
- import "../../mui_extended/Stack/index.0e53197c.js";
25
- import "../../mui_extended/Tab/index.ae9ea641.js";
26
- import "../../mui_extended/Pager/index.5fbbefe2.js";
27
- import "../../mui_extended/Tooltip/index.5a795dcd.js";
28
- import { H as HelperText } from "../../HelperText/index.918bba47.js";
29
- import { styled } from "@mui/material/styles";
30
- import { unstable_composeClasses } from "@mui/base";
13
+ import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
14
+ import { I as Icon } from "../../Icon/index.282c5b58.js";
31
15
  const SKTRHFWrapperTextField = styled("div")(({
32
16
  theme
33
17
  }) => ({
@@ -0,0 +1,4 @@
1
+ export declare type HelperErrorProps = {
2
+ name: string;
3
+ };
4
+ export declare function HelperError(props: HelperErrorProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +1,9 @@
1
1
  import { styled, generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import { H as HelperText } from "../../HelperText/index.918bba47.js";
4
- import { P as Period } from "../../Period/index.3bd05e05.js";
3
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
5
4
  import { unstable_composeClasses } from "@mui/base";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { P as Period } from "../../Period/index.8e118051.js";
7
7
  const RHFPeriodRoot = styled("div")(({
8
8
  theme
9
9
  }) => ({
@@ -55,6 +55,7 @@ const RHFPeriod = (props) => {
55
55
  error
56
56
  }
57
57
  }) => {
58
+ console.log("value RHFPeriod", value);
58
59
  return /* @__PURE__ */ jsxs(RHFPeriodRoot, {
59
60
  className: classes.root,
60
61
  children: [/* @__PURE__ */ jsx(Period, {
@@ -24,7 +24,7 @@ function RHFRadioGroup({
24
24
  ...field,
25
25
  row: true,
26
26
  ...other,
27
- children: options.map((option, _index) => /* @__PURE__ */ jsx(FormControlLabel, {
27
+ children: options.map((option) => /* @__PURE__ */ jsx(FormControlLabel, {
28
28
  defaultValue: field.value,
29
29
  value: getOptionValue(option),
30
30
  control: /* @__PURE__ */ jsx(Radio, {}),
@@ -1,18 +1,16 @@
1
1
  import { useModuleSkeleton, useEnvironment } from "@m4l/core";
2
2
  import { styled, Skeleton, generateUtilityClasses, TextField, InputAdornment, generateUtilityClass } from "@mui/material";
3
3
  import { forwardRef, useState, useEffect } from "react";
4
- import { I as IconButton } from "../../mui_extended/IconButton/index.5afe56b7.js";
4
+ import { I as IconButton } from "../../mui_extended/IconButton/index.a719445f.js";
5
+ import { useFormContext, Controller } from "react-hook-form";
5
6
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
6
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
7
- import "../../Icon/index.e215d0f0.js";
8
- import "clsx";
9
- import { useResponsiveDesktop } from "@m4l/graphics";
10
- import { useFormContext, Controller } from "react-hook-form";
11
8
  import { styled as styled$1 } from "@mui/material/styles";
12
9
  import { unstable_composeClasses } from "@mui/base";
13
- import { g as getComponentUtilityClass } from "../../../utils/index.de903261.js";
14
- import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
15
- import { H as HelperText } from "../../HelperText/index.918bba47.js";
10
+ import { g as getComponentUtilityClass } from "../../../utils/index.9ad3909a.js";
11
+ import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
12
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
13
+ import { useResponsiveDesktop } from "@m4l/graphics";
16
14
  const SkeletonTextFieldRoot = styled("div")(() => ({
17
15
  display: "flex",
18
16
  flexDirection: "column",
@@ -2,33 +2,16 @@ import { useCallback } from "react";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
3
  import require$$0 from "lodash/isString";
4
4
  import { useDropzone } from "react-dropzone";
5
- import { I as Image } from "../../Image/index.d684bdf2.js";
5
+ import { I as Image } from "../../Image/index.8915f577.js";
6
6
  import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
7
+ import { styled } from "@mui/material/styles";
7
8
  import { Skeleton, generateUtilityClasses, generateUtilityClass, styled as styled$1 } from "@mui/material";
8
9
  import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.86c553a9.js";
9
10
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
10
- import { B as Button } from "../../mui_extended/Button/index.0f2552ed.js";
11
- import { T as Typography } from "../../mui_extended/Typography/index.443590d6.js";
12
- import { H as HelperText } from "../../HelperText/index.918bba47.js";
13
- import "clsx";
14
- import { styled } from "@mui/material/styles";
15
11
  import { unstable_composeClasses } from "@mui/base";
16
- import "@mui/material/Button";
17
- import "../../Icon/index.e215d0f0.js";
18
- import "@m4l/graphics";
19
- import "../../mui_extended/IconButton/index.5afe56b7.js";
20
- import "../../mui_extended/Accordion/index.3087f40e.js";
21
- import "../../mui_extended/Avatar/index.75e6ed57.js";
22
- import "react-router-dom";
23
- import "../../mui_extended/CheckBox.38abccd8.js";
24
- import "../../mui_extended/Badge/index.b09524fe.js";
25
- import "@mui/lab";
26
- import "../../mui_extended/MenuActions/index.cc54c35c.js";
27
- import "../../mui_extended/Popover/index.9f35d0eb.js";
28
- import "../../mui_extended/Stack/index.0e53197c.js";
29
- import "../../mui_extended/Tab/index.ae9ea641.js";
30
- import "../../mui_extended/Pager/index.5fbbefe2.js";
31
- import "../../mui_extended/Tooltip/index.5a795dcd.js";
12
+ import { T as Typography } from "../../mui_extended/Typography/index.379dd374.js";
13
+ import { B as Button } from "../../mui_extended/Button/index.5c68764a.js";
14
+ import { H as HelperText } from "../../HelperText/index.7d2afdb3.js";
32
15
  const UploadImageRoot = styled("div")(({
33
16
  theme
34
17
  }) => ({
@@ -16,7 +16,7 @@ export * from './DynamicFilter/index';
16
16
  export * from './HelperText';
17
17
  export * from './CommonActions/';
18
18
  export * from './CommonActions/dictionary';
19
- export * from './DraggableWindow';
19
+ export * from './DragResizeWindow';
20
20
  export * from './GridLayout';
21
21
  export * from './PrintingSystem';
22
22
  export * from './Icon';
@@ -24,6 +24,7 @@ export * from './LanguagePopover';
24
24
  export * from './LinearProgressIndeterminate';
25
25
  export * from './Image/Image';
26
26
  export * from './Loadable';
27
+ export * from './maps';
27
28
  export * from './modal';
28
29
  export * from './LoadingError';
29
30
  export * from './MFLoader';
@@ -0,0 +1 @@
1
+ export declare function GpsTools(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { MapToolsClasses } from './types';
2
+ export declare const mapToolsClasses: MapToolsClasses;
3
+ export declare const useUtilityClasses: () => Record<"root" | "tabToolsRoot" | "tabContentRoot" | "toolGeofences" | "toolGeofencesList" | "toolGeofencesAddEdit" | "toolGeofencesAddEditGeneral" | "toolGeofencesAddEditStyle" | "toolMeasure" | "toolMeasureFormValue" | "toolMeasureFormValueDistance" | "toolMeasureFormValueSymbol" | "toolMeausureLabel" | "toolMeausureLabelDistance" | "toolMeausureLabelSymbol", string>;
4
+ export declare type Classes = ReturnType<typeof useUtilityClasses>;
@@ -0,0 +1,20 @@
1
+ export interface MapToolsClasses {
2
+ root: string;
3
+ tabToolsRoot: string;
4
+ tabContentRoot: string;
5
+ toolGeofences: string;
6
+ toolGeofencesList: string;
7
+ toolGeofencesAddEdit: string;
8
+ toolGeofencesAddEditGeneral: string;
9
+ toolGeofencesAddEditStyle: string;
10
+ toolMeasure: string;
11
+ toolMeasureFormValue: string;
12
+ toolMeasureFormValueDistance: string;
13
+ toolMeasureFormValueSymbol: string;
14
+ toolMeausureLabel: string;
15
+ toolMeausureLabelDistance: string;
16
+ toolMeausureLabelSymbol: string;
17
+ visible: string;
18
+ hidden: string;
19
+ }
20
+ export declare type MapToolsClassesKey = keyof MapToolsClasses;
@@ -0,0 +1,8 @@
1
+ import { StyleOpacity, StyleDashArray, StyleWheight } from "./types";
2
+ export declare const COMPONENT_TEST_ID = "M4LGpsTools";
3
+ export declare const COMPONENT_CLASS_NAME = "M4LGpsTools";
4
+ export declare const COOKIE_MAP_GEO_FILTER = "filter_map_geo";
5
+ export declare const COMPONENT_MAP_TOOLS_ID = "gps_tools";
6
+ export declare const STYLE_OPACITIES: StyleOpacity[];
7
+ export declare const STYLE_WHEIGHTS: StyleWheight[];
8
+ export declare const STYLE_PATTERNS: StyleDashArray[];
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import type { MapGpsToolsProviderProps } from './types';
3
+ declare const GpsToolsContext: import("react").Context<(Omit<Omit<import("zustand").StoreApi<import("./types").GpsToolsStateWithActions>, "setState"> & {
4
+ setState<A extends string | {
5
+ type: unknown;
6
+ }>(partial: import("./types").GpsToolsStateWithActions | Partial<import("./types").GpsToolsStateWithActions> | ((state: import("./types").GpsToolsStateWithActions) => import("./types").GpsToolsStateWithActions | Partial<import("./types").GpsToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
7
+ }, "setState"> & {
8
+ setState(nextStateOrUpdater: import("./types").GpsToolsStateWithActions | Partial<import("./types").GpsToolsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<import("./types").GpsToolsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
9
+ type: unknown;
10
+ } | undefined): void;
11
+ }) | null>;
12
+ /**
13
+ * @description Provedor del contexto de los mapas
14
+ * Expone el store (MapStore) encargado de gestionar la creación, modificación y borrado de capas.
15
+ * @param props
16
+ * @returns
17
+ */
18
+ declare function GpsToolsProvider(props: MapGpsToolsProviderProps): import("react/jsx-runtime").JSX.Element;
19
+ export { GpsToolsProvider, GpsToolsContext };
@@ -0,0 +1,16 @@
1
+ import type { GpsToolsStateWithActions, InitialMapGpsToolsStoreProps } from './types';
2
+ /**
3
+ * @description Crea el Store, por defecto inicia en estado 'init'
4
+ * @param initProps propiedades iniciales del store
5
+ * @returns
6
+ */
7
+ export declare const createGpsToolsStore: (initProps: InitialMapGpsToolsStoreProps) => Omit<Omit<import("zustand").StoreApi<GpsToolsStateWithActions>, "setState"> & {
8
+ setState<A extends string | {
9
+ type: unknown;
10
+ }>(partial: GpsToolsStateWithActions | Partial<GpsToolsStateWithActions> | ((state: GpsToolsStateWithActions) => GpsToolsStateWithActions | Partial<GpsToolsStateWithActions>), replace?: boolean | undefined, action?: A | undefined): void;
11
+ }, "setState"> & {
12
+ setState(nextStateOrUpdater: GpsToolsStateWithActions | Partial<GpsToolsStateWithActions> | ((state: import("immer/dist/internal").WritableDraft<GpsToolsStateWithActions>) => void), shouldReplace?: boolean | undefined, action?: string | {
13
+ type: unknown;
14
+ } | undefined): void;
15
+ };
16
+ export declare type MapStore = ReturnType<typeof createGpsToolsStore>;
@@ -0,0 +1,173 @@
1
+ import { GetLabelType } from '@m4l/core';
2
+ import { ReactNode } from 'react';
3
+ import { FeatureId } from '../../../Map';
4
+ import { CrossingFeature, GeofenceListModel, InternalFeature } from '../../subcomponents/TabTools/subcomponents/GeofencesTool/model';
5
+ export declare type GpsToolsStatus = 'init' | 'ready';
6
+ export declare type CurrentTabTool = 'geofences' | 'measure';
7
+ export interface GeofenceFeature extends Pick<GeofenceListModel, 'id' | 'name' | 'type' | 'geometry' | 'properties' | 'createdAt' | 'updatedAt' | 'countCrossingFeatures' | 'countInternalFeatures' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId'> {
8
+ hasRenderizedGeofence: boolean;
9
+ /**
10
+ * "renderizedCrossingFeatures" indica si está renderizado los features de cruce
11
+ */
12
+ hasRenderizedCrossingFeatures: boolean;
13
+ /**
14
+ * "loadedCrossingFeatures" features cargados, mas no necesariamente visibles (incremental)
15
+ */
16
+ loadedCrossingFeatures: CrossingFeature[] | null;
17
+ /**
18
+ * "loadedInternalFeatures" features internos cargados, mas no necesariamente visibles (incremental)
19
+ */
20
+ loadedInternalFeatures: InternalFeature[] | null;
21
+ /**
22
+ * "renderizedInternalFeatures" indica si está renderizado los features internos
23
+ */
24
+ hasRenderizedInternalFeatures: boolean;
25
+ }
26
+ export declare type OwnerState = {
27
+ status: GpsToolsStatus;
28
+ /**
29
+ * "isMobile" cuando el navegador está en modo celular
30
+ */
31
+ isMobile: boolean;
32
+ /**
33
+ * "isSkeleton" indica si el componente está en skeleton.
34
+ */
35
+ isSkeleton: boolean;
36
+ /**
37
+ * focus: Estado de selección asignado por el usuario.
38
+ *
39
+ */
40
+ focus: boolean;
41
+ };
42
+ /**
43
+ * @type
44
+ * @name ExternalOwnerState
45
+ * @description Estados que se actulizan por fuera del store, a través de hooks
46
+ */
47
+ export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
48
+ export declare type CurrentGeofenceTool = 'list' | 'add_edit';
49
+ /**
50
+ * @description Tipo de dato del Id de la geocerca
51
+ * @interface GeofenceId
52
+ */
53
+ export interface GeofenceState {
54
+ /**
55
+ * "geofenceId" indica el id de la geocerca en edición
56
+ */
57
+ geofenceId?: GeofenceId;
58
+ rows: GeofenceListModel[];
59
+ /**
60
+ * "currentGeofenceTool" indica la herramienta de geocercas en uso
61
+ */
62
+ currentGeofenceTool: CurrentGeofenceTool;
63
+ /**
64
+ * "checkedGeofences" indica las geocercas visibles en el mapa
65
+ */
66
+ checkedGeofences: ReadonlySet<GeofenceId>;
67
+ /**
68
+ * "hashGeofences" Almacena las geocercas que se han cargado alguna vez, no necesariamente visibles
69
+ */
70
+ hashGeofences: Record<FeatureId, GeofenceFeature>;
71
+ /**
72
+ * "checkedCrossingFeatures" indica los crossing features visibles en el mapa
73
+ */
74
+ checkedCrossingFeatures: ReadonlySet<GeofenceId>;
75
+ /**
76
+ * "checkedInternalFeatures" indica los features internos visibles en el mapa
77
+ */
78
+ checkedInternalFeatures: ReadonlySet<GeofenceId>;
79
+ }
80
+ /**
81
+ * @description Tipo de dato del Id de la geocerca
82
+ * @interface GeofenceId
83
+ */
84
+ export declare type GeofenceId = number;
85
+ /**
86
+ * @interface
87
+ * @description Interface que define el estado del componente (variables y funciones )
88
+ */
89
+ export interface GpsToolsState {
90
+ ownerState: OwnerState;
91
+ /**
92
+ * "currentTabTool" indica la pestaña actual en uso
93
+ */
94
+ currentTabTool: CurrentTabTool;
95
+ /**
96
+ * "geofenceState" manejo del estado lo relacionado con geocercas
97
+ */
98
+ geofenceState: GeofenceState;
99
+ /**
100
+ * "getLabel" funcion que usará para traducir las etiquetas de diccionario
101
+ */
102
+ getLabel: GetLabelType;
103
+ }
104
+ export interface GpsToolsStateWithActions extends GpsToolsState {
105
+ gpsToolsActions: {
106
+ /**
107
+ * @description
108
+ */
109
+ init(): void;
110
+ /**
111
+ * @description Cambia el estado del las herramientas de gps
112
+ */
113
+ setGpsToolsState: (state: GpsToolsStatus) => void;
114
+ /**
115
+ * @description Actualiza la variable de estado "getLabel"
116
+ * @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
117
+ * cambia por el useCallback, cuando el diccionario se carga.
118
+ * @returns void
119
+ */
120
+ setHandlerGetLabel: (newHandler: GetLabelType) => void;
121
+ /**
122
+ * @description Modifica los estados que se actualizan externamente al Store
123
+ * @param newIsMobile
124
+ * @returns
125
+ */
126
+ setExternalState: (newExternalState: ExternalOwnerState) => void;
127
+ /**
128
+ * @description Modifica los estados que se actualizan externamente al Store
129
+ * @param newIsMobile
130
+ * @returns
131
+ */
132
+ setCurrentTabTool: (newTabTool: CurrentTabTool) => void;
133
+ };
134
+ geofenceActions: {
135
+ /**
136
+ * @description Cambia la vista de la del modulo add/edit geocercas
137
+ */
138
+ goToAddEdit: (geofenceId?: GeofenceId) => void;
139
+ /**
140
+ * @description Cambia la vista de la del modulo add/edit geocercas
141
+ */
142
+ goToList: (geofenceId?: GeofenceId) => void;
143
+ /**
144
+ * @description Agrega una geocerca al store
145
+ */
146
+ addGeofence: (geofenceId: GeofenceId, geofence: GeofenceFeature) => void;
147
+ /**
148
+ * @description Actualizar parcialmente una geocerca
149
+ */
150
+ updatePartialGeofence: (geofenceId: GeofenceId, geofence: Partial<GeofenceFeature>) => void;
151
+ /**
152
+ * @description Actualizar la filas que son mostradas en el grid de geocercas
153
+ */
154
+ updateRows: (newRows: GeofenceListModel[]) => void;
155
+ /**
156
+ * @description Cambia el set de chequeo de las geocercas
157
+ */
158
+ setCheckedGeofences: (newGeofences: ReadonlySet<GeofenceId>) => void;
159
+ /**
160
+ * @description Cambia el set de chequeo de los crossing features
161
+ */
162
+ setCheckedCrossingFeatures: (newFeatures: ReadonlySet<GeofenceId>) => void;
163
+ /**
164
+ * @description Cambia el set de chequeo de los internal features
165
+ */
166
+ setCheckedInternalFeatures: (newFeatures: ReadonlySet<GeofenceId>) => void;
167
+ };
168
+ }
169
+ export declare type DefaultMapGpsToolsStoreProps = Omit<GpsToolsState, 'currentLayer'>;
170
+ export declare type InitialMapGpsToolsStoreProps = Pick<GpsToolsState, 'getLabel' | 'ownerState'> & Partial<DefaultMapGpsToolsStoreProps>;
171
+ export interface MapGpsToolsProviderProps {
172
+ children: ReactNode;
173
+ }
@@ -0,0 +1,2 @@
1
+ import { GpsToolsStateWithActions } from '../../contexts/GpsToolsContext/types';
2
+ export declare function useGpsToolsStore<T>(selector: (state: GpsToolsStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
@@ -0,0 +1 @@
1
+ export declare function useLayers(): void;
@@ -0,0 +1,15 @@
1
+ export declare const icons: {
2
+ GEOMETRY_CIRCLE: string;
3
+ GEOMETRY_RECTANGLE: string;
4
+ GEOMETRY_POLYGON: string;
5
+ ADD: string;
6
+ MEASURE: string;
7
+ GENERAL: string;
8
+ CONFIG: string;
9
+ STROKE: string;
10
+ FILL: string;
11
+ EDIT: string;
12
+ DELETE: string;
13
+ ACTIVE: string;
14
+ NAME: string;
15
+ };