@m4l/components 0.2.19 → 0.2.21

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 (211) hide show
  1. package/components/AccountPopover/{index.34362031.js → index.b00671fa.js} +1 -5
  2. package/components/AppBar/{index.c64b66ee.js → index.3a694645.js} +2 -2
  3. package/components/CommonActions/components/ActionCancel/{index.106c5327.js → index.bd595785.js} +2 -2
  4. package/components/CommonActions/components/ActionFormCancel/{index.6d00f737.js → index.6fd990b7.js} +4 -4
  5. package/components/CommonActions/components/ActionFormIntro/{index.9ee7df17.js → index.798cb977.js} +2 -2
  6. package/components/CommonActions/components/ActionIntro/{index.bd2a14b2.js → index.64498081.js} +2 -2
  7. package/components/CommonActions/components/Actions/{index.8368ac0f.js → index.b8a1d42a.js} +1 -1
  8. package/components/DataGrid/formatters/ColumnBooleanFormatter/{index.6924642b.js → index.6faecd3c.js} +1 -1
  9. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/{index.17a5c379.js → index.3cabb920.js} +3 -3
  10. package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.d.ts +1 -1
  11. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.d.ts +1 -1
  12. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/{index.60ddc1d2.js → index.fd1bea19.js} +3 -3
  13. package/components/DataGrid/formatters/index.d.ts +3 -1
  14. package/components/DataGrid/{index.37ce6054.js → index.660a6e7b.js} +3 -3
  15. package/components/DataGrid/subcomponents/Actions/{index.a39b31d8.js → index.e07a52bf.js} +12 -12
  16. package/components/DataGrid/types.d.ts +1 -1
  17. package/components/DragResizeWindow/{index.cb3d34e7.js → index.7c402375.js} +4 -4
  18. package/components/DynamicFilter/{index.73258cb8.js → index.0d1fcfa7.js} +10 -10
  19. package/components/GridLayout/{index.4d26c328.js → index.88b62a5d.js} +2 -2
  20. package/components/GridLayout/subcomponents/Griditem/{index.25e9f332.js → index.5256b153.js} +3 -3
  21. package/components/GridLayout/subcomponents/Responsive/{index.3839890b.js → index.dfed4e68.js} +1 -1
  22. package/components/GridLayout/subcomponents/SizeProvider/{index.a751962f.js → index.6b5de802.js} +1 -1
  23. package/components/Icon/{index.282c5b58.js → index.770f86ae.js} +1 -1
  24. package/components/Image/{index.8915f577.js → index.6dd3b128.js} +2 -2
  25. package/components/LanguagePopover/{index.5e1d85a9.js → index.b7f2816d.js} +2 -2
  26. package/components/LinearProgressIndeterminate/{index.2d53ade4.js → index.32caeee2.js} +1 -1
  27. package/components/LoadingError/{index.d95e6efb.js → index.3a86956f.js} +3 -3
  28. package/components/MFLoader/{index.cc563716.js → index.544940c7.js} +1 -4
  29. package/components/ModalDialog/{index.690c82a4.js → index.9ac45602.js} +4 -4
  30. package/components/NoItemSelected/{index.5246b204.js → index.08ec6c48.js} +1 -1
  31. package/components/ObjectLogs/{index.ad5284ce.js → index.0d263f80.js} +5 -5
  32. package/components/PDFViewer/{index.51e4f1b2.js → index.de51408a.js} +1 -2
  33. package/components/Page/{index.f4aedd2d.js → index.09e28ba1.js} +1 -1
  34. package/components/PaperForm/classes/index.d.ts +2 -1
  35. package/components/PaperForm/classes/types.d.ts +1 -0
  36. package/components/PaperForm/{index.30f68f0f.js → index.130ce6ad.js} +11 -6
  37. package/components/PaperForm/types.d.ts +4 -1
  38. package/components/Period/{index.8e118051.js → index.3c7e8590.js} +2 -2
  39. package/components/PopupsProvider/index.3d5ad0ee.js +4 -0
  40. package/components/PrintingSystem/{index.9dc25af9.js → index.9dcfb35d.js} +18 -14
  41. package/components/PrintingSystem/subcomponents/BodyNode/{index.6c1cf8f5.js → index.a3897785.js} +1 -1
  42. package/components/PrintingSystem/subcomponents/ChartNode/{index.fdb01c74.js → index.ecd5e809.js} +1 -1
  43. package/components/PrintingSystem/subcomponents/DividerNode/{index.46c5eb9e.js → index.6e177f94.js} +1 -1
  44. package/components/PrintingSystem/subcomponents/FooterNode/{index.18aa1ddd.js → index.82f1e38f.js} +1 -1
  45. package/components/PrintingSystem/subcomponents/GridNode/{index.f4b4ffca.js → index.2b8fef69.js} +2 -6
  46. package/components/PrintingSystem/subcomponents/HeaderNode/{index.9afcd686.js → index.a5d48adf.js} +1 -1
  47. package/components/PrintingSystem/subcomponents/PaperNode/{index.a3967d23.js → index.a4c5c3e6.js} +1 -1
  48. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.e1c05641.js → index.3764b312.js} +3 -5
  49. package/components/PrintingSystem/subcomponents/SectionNode/{index.c5588090.js → index.4941ecf4.js} +1 -1
  50. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.7792384b.js → index.9cc3b262.js} +1 -1
  51. package/components/PrintingSystem/types.d.ts +2 -2
  52. package/components/PropertyValue/{index.d61c943c.js → index.d975c7f3.js} +1 -2
  53. package/components/Resizeable/{index.18c86aff.js → index.14ab4804.js} +1 -1
  54. package/components/SideBar/{index.f5aecd41.js → index.e55c9b7c.js} +4 -4
  55. package/components/ToastContainer/{index.83304f62.js → index.b5f27f85.js} +3 -3
  56. package/components/areas/components/AreasAdmin/{index.c55d5c24.js → index.c802bb2f.js} +18 -20
  57. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  58. package/components/areas/components/AreasViewer/{index.2bec316e.js → index.214d8c7d.js} +15 -19
  59. package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
  60. package/components/areas/contexts/AreasContext/{index.827ee1e5.js → index.055ab6e2.js} +6 -16
  61. package/components/areas/hooks/useAreas/{index.71bc8f19.js → index.5da0bc90.js} +1 -1
  62. package/components/formatters/BooleanFormatter/{index.b21353a5.js → index.7a463493.js} +2 -3
  63. package/components/formatters/{index.7b216229.js → index.648cf3b0.js} +1 -1
  64. package/components/hook-form/RHFAutocomplete/{index.210ee73f.js → index.d05ae217.js} +2 -3
  65. package/components/hook-form/RHFAutocompleteAsync/{index.e5935f63.js → index.699b8aaf.js} +1 -1
  66. package/components/hook-form/RHFColorPicker/{index.bcc1eced.js → index.c069ef4d.js} +10 -7
  67. package/components/hook-form/RHFDateTime/{index.fa80a8cb.js → index.97bd36d7.js} +1 -1
  68. package/components/hook-form/RHFPeriod/{index.d320e56f.js → index.4e10efa3.js} +1 -2
  69. package/components/hook-form/RHFTextField/{index.ab689d7d.js → index.78934e84.js} +2 -2
  70. package/components/hook-form/RHFUpload/{index.e251c9b6.js → index.7178a50b.js} +2 -2
  71. package/components/index.d.ts +0 -1
  72. package/components/modal/{WindowBase.779aa7a5.js → WindowBase.14255209.js} +3 -3
  73. package/components/modal/{WindowConfirm.ec73ba4f.js → WindowConfirm.f79ee169.js} +6 -6
  74. package/components/mui_extended/Accordion/{index.e15e10d9.js → index.fb6849e8.js} +2 -2
  75. package/components/mui_extended/Button/{index.5c68764a.js → index.928f05b7.js} +1 -1
  76. package/components/mui_extended/IconButton/{index.a719445f.js → index.023c369f.js} +1 -1
  77. package/components/mui_extended/MenuActions/{index.62359120.js → index.34293162.js} +2 -2
  78. package/components/mui_extended/Pager/{index.fa5f5ded.js → index.212ee603.js} +1 -2
  79. package/components/mui_extended/Tab/{index.cefe27e7.js → index.409b9c74.js} +4 -4
  80. package/components/mui_extended/ToggleButton/{index.5aa6ea58.js → index.cb0fb441.js} +1 -1
  81. package/components/mui_extended/ToggleIconButton/{index.47ddefd4.js → index.49390b68.js} +1 -1
  82. package/contexts/ModalContext/{index.6085b148.js → index.e8f5ad3e.js} +1 -1
  83. package/hooks/useFormAddEdit/{index.59821a33.js → index.5e748884.js} +2 -4
  84. package/hooks/useModal/{index.1c88654a.js → index.50b23c06.js} +1 -1
  85. package/hooks/useTab/{index.500c048b.js → index.eee18a49.js} +1 -1
  86. package/index.js +94 -113
  87. package/{node_modules.bb836860.js → node_modules.448153f1.js} +1 -1
  88. package/package.json +1 -1
  89. package/react-data-grid.c5377916.js +2 -2
  90. package/{react-draggable.312ab17d.js → react-draggable.38b6012b.js} +1 -1
  91. package/{react-resizable.f2c58a4c.js → react-resizable.3cdda6a7.js} +2 -2
  92. package/vendor.daffbfe5.js +114 -0
  93. package/components/PopupsProvider/classes/index.d.ts +0 -11
  94. package/components/PopupsProvider/classes/types.d.ts +0 -9
  95. package/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +0 -19
  96. package/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +0 -7
  97. package/components/PopupsProvider/contexts/PopupsContext/index.d.ts +0 -1
  98. package/components/PopupsProvider/contexts/PopupsContext/store.d.ts +0 -16
  99. package/components/PopupsProvider/contexts/PopupsContext/types.d.ts +0 -117
  100. package/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +0 -3
  101. package/components/PopupsProvider/index.81460070.js +0 -247
  102. package/components/PopupsProvider/index.d.ts +0 -2
  103. package/components/PopupsProvider/subcomponents/Popup/index.d.ts +0 -8
  104. package/components/PopupsProvider/subcomponents/Popup/types.d.ts +0 -16
  105. package/components/PopupsProvider/subcomponents/PopupsContainer/index.d.ts +0 -2
  106. package/components/PopupsProvider/subcomponents/PopupsContainer/types.d.ts +0 -1
  107. package/components/hook-form/HelperError/index.66bbcac3.js +0 -30
  108. package/components/hook-form/RHFHelperError/index.d.ts +0 -4
  109. package/components/maps/components/GpsTools/GpsTools.d.ts +0 -1
  110. package/components/maps/components/GpsTools/classes/index.d.ts +0 -4
  111. package/components/maps/components/GpsTools/classes/types.d.ts +0 -20
  112. package/components/maps/components/GpsTools/constants.d.ts +0 -8
  113. package/components/maps/components/GpsTools/contexts/GpsToolsContext/index.d.ts +0 -19
  114. package/components/maps/components/GpsTools/contexts/GpsToolsContext/store.d.ts +0 -16
  115. package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +0 -173
  116. package/components/maps/components/GpsTools/hooks/useGpsToolsStore/index.d.ts +0 -2
  117. package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +0 -1
  118. package/components/maps/components/GpsTools/icons.d.ts +0 -15
  119. package/components/maps/components/GpsTools/index.d.ts +0 -2
  120. package/components/maps/components/GpsTools/index.dfa96cdf.js +0 -2092
  121. package/components/maps/components/GpsTools/subcomponents/TabTools/index.d.ts +0 -9
  122. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/constants.d.ts +0 -7
  123. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/index.d.ts +0 -1
  124. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/model.d.ts +0 -122
  125. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +0 -20
  126. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.d.ts +0 -7
  127. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +0 -11
  128. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +0 -8
  129. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +0 -5
  130. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +0 -22
  131. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/index.d.ts +0 -1
  132. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +0 -1
  133. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +0 -6
  134. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +0 -5
  135. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +0 -1
  136. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +0 -7
  137. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +0 -6
  138. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -1
  139. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -1
  140. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +0 -1
  141. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +0 -1
  142. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +0 -1
  143. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +0 -10
  144. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/types.d.ts +0 -25
  145. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +0 -9
  146. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +0 -4
  147. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useColumns.d.ts +0 -9
  148. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useMaster.d.ts +0 -20
  149. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +0 -9
  150. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/index.d.ts +0 -1
  151. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +0 -7
  152. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/constants.d.ts +0 -30
  153. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useMeasure.d.ts +0 -31
  154. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +0 -10
  155. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/index.d.ts +0 -1
  156. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -1
  157. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +0 -6
  158. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +0 -2
  159. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -1
  160. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/types.d.ts +0 -9
  161. package/components/maps/components/GpsTools/types.d.ts +0 -34
  162. package/components/maps/components/Map/Map.d.ts +0 -2
  163. package/components/maps/components/Map/classes/index.d.ts +0 -5
  164. package/components/maps/components/Map/classes/types.d.ts +0 -19
  165. package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +0 -19
  166. package/components/maps/components/Map/contexts/MapContext/helper.d.ts +0 -8
  167. package/components/maps/components/Map/contexts/MapContext/index.d.ts +0 -2
  168. package/components/maps/components/Map/contexts/MapContext/store.d.ts +0 -16
  169. package/components/maps/components/Map/contexts/MapContext/types.d.ts +0 -414
  170. package/components/maps/components/Map/dictionary.d.ts +0 -70
  171. package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +0 -8
  172. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarker.d.ts +0 -6
  173. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +0 -1
  174. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +0 -1
  175. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +0 -2
  176. package/components/maps/components/Map/featureRenders/index.d.ts +0 -1
  177. package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +0 -8
  178. package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +0 -15
  179. package/components/maps/components/Map/hooks/useDisableZoomEvents/index.d.ts +0 -1
  180. package/components/maps/components/Map/hooks/useMapStore/index.d.ts +0 -3
  181. package/components/maps/components/Map/index.040c05a5.js +0 -1339
  182. package/components/maps/components/Map/index.d.ts +0 -7
  183. package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +0 -9
  184. package/components/maps/components/Map/pluginLayers/index.d.ts +0 -1
  185. package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +0 -2
  186. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useCheckedLayers.d.ts +0 -9
  187. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useColumns.d.ts +0 -15
  188. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useMaster.d.ts +0 -12
  189. package/components/maps/components/Map/subcomponents/LayersTool/index.d.ts +0 -1
  190. package/components/maps/components/Map/subcomponents/LayersTool/model.d.ts +0 -19
  191. package/components/maps/components/Map/subcomponents/MainTools/index.d.ts +0 -2
  192. package/components/maps/components/Map/subcomponents/MainTools/types.d.ts +0 -5
  193. package/components/maps/components/Map/subcomponents/MyLayer/index.d.ts +0 -17
  194. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +0 -20
  195. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +0 -11
  196. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +0 -12
  197. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +0 -5
  198. package/components/maps/components/Map/subcomponents/MyLayer/types.d.ts +0 -2
  199. package/components/maps/components/Map/types.d.ts +0 -28
  200. package/components/maps/index.d.ts +0 -3
  201. package/hooks/useFormReadyForUpdate/index.d.ts +0 -6
  202. package/hooks/useFormReadyForUpdate/index.f60f500e.js +0 -20
  203. package/hooks/useSizeContainer/contants.d.ts +0 -1
  204. package/hooks/useSizeContainer/index.62b4e0c4.js +0 -35
  205. package/hooks/useSizeContainer/index.d.ts +0 -8
  206. package/hooks/useStateRef/index.538edb89.js +0 -15
  207. package/hooks/useStateRef/index.d.ts +0 -8
  208. package/components/DataGrid/formatters/ColumnUncertaintyFormatter/{index.084ce3ef.js → index.aeea65aa.js} +1 -1
  209. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/index.d.ts +0 -0
  210. /package/components/GridLayout/subcomponents/{Griditem → GridItem}/types.d.ts +0 -0
  211. /package/utils/{index.9ad3909a.js → index.79b6a2c1.js} +0 -0
@@ -1,117 +0,0 @@
1
- import { GetLabelType } from '@m4l/core';
2
- import { ReactNode } from 'react';
3
- import { PopupsClasses } from '../../classes/types';
4
- import { DraggableWindowProps } from '../../../DragResizeWindow/types';
5
- import { PositionXY } from '../../../../utils/types';
6
- export interface PopupStoreProps extends Pick<DraggableWindowProps, 'bounds' | 'defaultPosition'> {
7
- /**
8
- * "popupId" Indetificador del popupId
9
- */
10
- popupId: string;
11
- /**
12
- * "title" Titulo de la ventan
13
- */
14
- title?: string;
15
- /**
16
- * draggable Indica si el popup es arrastrable, default true
17
- */
18
- draggable?: boolean;
19
- /**
20
- * resizable Indica si el popup es redimensionable, default true
21
- */
22
- resizable?: boolean;
23
- /**
24
- * maxSizeByPadding Tamaño maximo del popup en terminos de padding con respecto al conenedor padre
25
- */
26
- maxSizeByPadding?: PositionXY;
27
- /**
28
- * functionComponent retorna el componente que se va a mostrar en el popup.
29
- * Se utiliza ()=>ReactNode para evitar que zustand cargue todo el componente en el store.
30
- * Lo unico que necesita es guardar la referencia la función que retorna el componente.
31
- */
32
- functionComponent: (() => ReactNode);
33
- /**
34
- * "onMouseDown" Evento nativo del Draggable, para tomar acciones externamente
35
- */
36
- onMouseDown?: (e: MouseEvent) => void;
37
- }
38
- export declare type PopupsStatus = 'init' | 'ready';
39
- export declare type OwnerState = {
40
- status: PopupsStatus;
41
- /**
42
- * "isMobile" cuando el navegador está en modo celular
43
- */
44
- isMobile: boolean;
45
- /**
46
- * "isSkeleton" indica si el componente está en skeleton.
47
- */
48
- isSkeleton: boolean;
49
- };
50
- /**
51
- * @type
52
- * @name ExternalOwnerState
53
- * @description Estados que se actulizan por fuera del store, a través de hooks
54
- */
55
- export declare type ExternalOwnerState = Pick<OwnerState, 'isMobile' | 'isSkeleton'>;
56
- /**
57
- * @interface
58
- * @description Interface que define el estado del componente (variables y funciones )
59
- */
60
- export interface PopupsState {
61
- ownerState: OwnerState;
62
- /**
63
- * "classes" enfocado al funcionamiento de las clases a nivel de map
64
- */
65
- classes: PopupsClasses;
66
- /**
67
- * "poupsIds" Poups para saber en que orden se muestran
68
- */
69
- popupsIds: string[];
70
- /**
71
- * "hashPoups" Poups
72
- */
73
- hashPopups: Record<string, PopupStoreProps>;
74
- /**
75
- * "getLabel" funcion que usará para traducir las etiquetas de diccionario
76
- */
77
- getLabel: GetLabelType;
78
- }
79
- export interface PopupsStateWithActions extends PopupsState {
80
- popupsActions: {
81
- /**
82
- * @description
83
- */
84
- init(layersStore: PopupStoreProps[]): void;
85
- /**
86
- * @description Cambia el estado del popus
87
- */
88
- setState: (state: PopupsStatus) => void;
89
- /**
90
- * @description Agrega una capa nueva,
91
- */
92
- addPopup: (popupProps: PopupStoreProps) => void;
93
- /**
94
- * @description Remueve un feature especifico de la capa
95
- */
96
- removePopup: (layerId: string) => void;
97
- /**
98
- * @description Actualiza la variable de estado "getLabel"
99
- * @param newHandler handle o función que va a traducir las etiquetas, esto es necesario debido que getLabel de useModuleDictionary
100
- * cambia por el useCallback, cuando el diccionario se carga.
101
- * @returns void
102
- */
103
- setHandlerGetLabel: (newHandler: GetLabelType) => void;
104
- /**
105
- * @description Modifica los estados que se actualizan externamente al Store
106
- * @param newIsMobile
107
- * @returns
108
- */
109
- setExternalState: (newExternalState: ExternalOwnerState) => void;
110
- };
111
- }
112
- export declare type DefaultPopupsStoreProps = PopupsState;
113
- export declare type InitialPopupsStoreProps = Pick<PopupsState, 'getLabel' | 'ownerState'> & Partial<DefaultPopupsStoreProps>;
114
- export interface PopupsProviderProps {
115
- initialPopups?: PopupStoreProps[];
116
- children: ReactNode;
117
- }
@@ -1,3 +0,0 @@
1
- import { PopupsStateWithActions } from '../../contexts/PopupsContext/types';
2
- export declare function usePopupsStore<T>(selector: (state: PopupsStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
3
- export default usePopupsStore;
@@ -1,247 +0,0 @@
1
- import React__default, { useContext, useRef, useEffect, createContext } from "react";
2
- import { createStore, useStore } from "zustand";
3
- import { shallow } from "zustand/shallow";
4
- import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
5
- import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
6
- import { devtools } from "zustand/middleware";
7
- import { immer } from "zustand/middleware/immer";
8
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
9
- import { unstable_composeClasses } from "@mui/base";
10
- import { cloneDeep } from "lodash";
11
- import clsx from "clsx";
12
- import { jsx, jsxs } from "react/jsx-runtime";
13
- import { styled } from "@mui/material/styles";
14
- import { D as DragResizeWindow, d as draggableWindowClasses } from "../DragResizeWindow/index.cb3d34e7.js";
15
- import { useMap } from "react-leaflet";
16
- import { u as useSizeContainer } from "../../hooks/useSizeContainer/index.62b4e0c4.js";
17
- const COMPONENT_CLASS_NAME = "M4LPopupsProvider";
18
- const MAP_ZINDEX_OVER_MAP = 1100;
19
- const popupsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
20
- "root",
21
- "windowRoot",
22
- "headerContainer",
23
- "windowContent"
24
- ]);
25
- function getPopupsUtilityClass(slot) {
26
- return generateUtilityClass(COMPONENT_CLASS_NAME, slot);
27
- }
28
- const popupsUtilityClasses = (_ownerState) => {
29
- const slots = {
30
- root: ["root"],
31
- popupsContainer: ["popupsContainer"],
32
- windowRoot: ["windowBaseRoot"],
33
- headerContainer: ["headerContainer"],
34
- windowContent: ["windowContent"]
35
- };
36
- const composedClasses = unstable_composeClasses(slots, getPopupsUtilityClass, {});
37
- return {
38
- ...composedClasses
39
- };
40
- };
41
- const updateOwnerStateClasses = (state) => {
42
- state.classes = popupsUtilityClasses(state.ownerState);
43
- };
44
- const createPopupsStore = (initProps) => {
45
- const startProps = {
46
- classes: popupsUtilityClasses(initProps.ownerState),
47
- popupsIds: [],
48
- hashPopups: {},
49
- ...initProps
50
- };
51
- return createStore(
52
- devtools(
53
- immer((set, get) => ({
54
- ...startProps,
55
- popupsActions: {
56
- init: (initialPopups) => {
57
- set((state) => {
58
- for (let index = 0; index < initialPopups.length; index++) {
59
- state.hashPopups[initialPopups[index].popupId] = cloneDeep(
60
- initialPopups[index]
61
- );
62
- state.popupsIds.push(initialPopups[index].popupId);
63
- }
64
- });
65
- },
66
- setState: (status) => {
67
- set((state) => {
68
- state.ownerState.status = status;
69
- });
70
- },
71
- addPopup: (popupProps) => {
72
- if (get().hashPopups[popupProps.popupId]) {
73
- throw new Error(`Poupup with id ${popupProps.popupId} already exists`);
74
- }
75
- set((state) => {
76
- state.hashPopups[popupProps.popupId] = popupProps;
77
- state.popupsIds.push(popupProps.popupId);
78
- });
79
- },
80
- removePopup: (popupId) => {
81
- if (!get().hashPopups[popupId]) {
82
- return;
83
- }
84
- set((state) => {
85
- state.popupsIds.splice(state.popupsIds.indexOf(popupId), 1);
86
- delete state.hashPopups[popupId];
87
- });
88
- },
89
- setHandlerGetLabel: (newHandler) => {
90
- set((state) => {
91
- state.getLabel = newHandler;
92
- });
93
- },
94
- setExternalState: (newExternalState) => {
95
- set((state) => {
96
- state.ownerState = { ...state.ownerState, ...newExternalState };
97
- updateOwnerStateClasses(state);
98
- });
99
- }
100
- }
101
- })),
102
- { name: `Popups store` }
103
- )
104
- );
105
- };
106
- function usePopupsStore(selector, equalityFn) {
107
- const context = useContext(PopupsContext);
108
- if (!context)
109
- throw new Error("usePopupsStore context must be use inside PopupsContext");
110
- return useStore(context, selector, equalityFn);
111
- }
112
- const PopupWindowRoot = styled("div")`
113
- display: flex;
114
- flex-direction: column;
115
- position: relative;
116
- width: 100%;
117
- height: 100%;
118
-
119
-
120
- .${popupsClasses.headerContainer} {
121
- position: relative;
122
- }
123
- .${popupsClasses.windowContent} {
124
- padding: 12px;
125
- position: relative;
126
- flex-grow: 1;
127
- overflow: hidden;
128
- }
129
-
130
- `;
131
- const Popup = (props) => {
132
- const {
133
- popupId,
134
- containerElement,
135
- containerSize
136
- } = props;
137
- const popup = usePopupsStore((state) => state.hashPopups[popupId], shallow);
138
- const {
139
- draggable,
140
- resizable,
141
- defaultPosition,
142
- bounds,
143
- ...others
144
- } = popup;
145
- const nodeRef = useRef(null);
146
- return /* @__PURE__ */ jsx(DragResizeWindow, {
147
- className: popupsClasses.root,
148
- onMouseDown: popup.onMouseDown,
149
- containerElement,
150
- containerSize,
151
- bounds,
152
- draggable,
153
- resizeable: resizable,
154
- defaultPosition,
155
- ...others,
156
- children: /* @__PURE__ */ jsxs(PopupWindowRoot, {
157
- className: popupsClasses.windowRoot,
158
- children: [/* @__PURE__ */ jsx("div", {
159
- ref: nodeRef,
160
- className: clsx(popupsClasses.headerContainer, draggableWindowClasses.draggableHandle),
161
- children: /* @__PURE__ */ jsx("h3", {
162
- children: popup.popupId
163
- })
164
- }), /* @__PURE__ */ jsx("div", {
165
- className: popupsClasses.windowContent,
166
- children: popup.functionComponent()
167
- })]
168
- })
169
- });
170
- };
171
- const PopupsContainer = (_props) => {
172
- const map = useMap();
173
- const popupsIds = usePopupsStore((state) => state.popupsIds, shallow);
174
- const [containerElement, setContainerElement] = React__default.useState();
175
- const containerSize = useSizeContainer(containerElement);
176
- useEffect(() => {
177
- if (!map)
178
- return;
179
- setContainerElement(map.getContainer());
180
- }, [map]);
181
- if (!containerElement) {
182
- return null;
183
- }
184
- return /* @__PURE__ */ jsx(React__default.Fragment, {
185
- children: popupsIds.map((id) => {
186
- return /* @__PURE__ */ jsx(Popup, {
187
- popupId: id,
188
- containerElement,
189
- containerSize
190
- }, id);
191
- })
192
- });
193
- };
194
- const PopupsContext = createContext(null);
195
- function PopupsProvider(props) {
196
- const {
197
- children,
198
- initialPopups
199
- } = props;
200
- const {
201
- getLabel
202
- } = useModuleDictionary();
203
- const isDesktop = useResponsiveDesktop();
204
- const isSkeleton = useModuleSkeleton();
205
- const isFirstRender = useFirstRender([getLabel]);
206
- const popupsStoreRef = useRef();
207
- if (!popupsStoreRef.current) {
208
- popupsStoreRef.current = createPopupsStore({
209
- getLabel,
210
- ownerState: {
211
- status: "init",
212
- isMobile: !isDesktop,
213
- isSkeleton
214
- }
215
- });
216
- popupsStoreRef.current?.getState().popupsActions.init(initialPopups || []);
217
- }
218
- const {
219
- setHandlerGetLabel,
220
- setExternalState
221
- } = useStore(popupsStoreRef.current, (state) => state.popupsActions, shallow);
222
- useEffect(() => {
223
- if (!isFirstRender) {
224
- setHandlerGetLabel(getLabel);
225
- }
226
- }, [getLabel]);
227
- useEffect(() => {
228
- if (isFirstRender) {
229
- return;
230
- }
231
- setExternalState({
232
- isMobile: !isDesktop,
233
- isSkeleton
234
- });
235
- }, [isDesktop, isSkeleton]);
236
- return /* @__PURE__ */ jsx(PopupsContext.Provider, {
237
- value: popupsStoreRef.current,
238
- children: /* @__PURE__ */ jsxs(React__default.Fragment, {
239
- children: [children, /* @__PURE__ */ jsx(PopupsContainer, {})]
240
- })
241
- });
242
- }
243
- export {
244
- MAP_ZINDEX_OVER_MAP as M,
245
- PopupsProvider as P,
246
- usePopupsStore as u
247
- };
@@ -1,2 +0,0 @@
1
- export * from './contexts/PopupsContext';
2
- export { usePopupsStore } from './hooks/usePopupsStore';
@@ -1,8 +0,0 @@
1
- import type { PopupProps } from './types';
2
- export declare type ResizeCorrectionRef = {
3
- initialSize: {
4
- width: number;
5
- height: number;
6
- };
7
- };
8
- export declare const Popup: (props: PopupProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import { ContainerSize } from "../../../../utils/types";
2
- export declare type ResizeReason = 'start' | 'resize' | 'stop';
3
- export interface PopupProps {
4
- /**
5
- * "popupId" Indetificador del popupId
6
- */
7
- popupId: string;
8
- /**
9
- * Referencia el contendedor donde van a estar los popups
10
- */
11
- containerElement: HTMLElement;
12
- /**
13
- * "containerSize" tamaño del contenedor padre
14
- */
15
- containerSize?: ContainerSize | undefined;
16
- }
@@ -1,2 +0,0 @@
1
- import type { PopupContainerProps } from './types';
2
- export declare const PopupsContainer: (_props: PopupContainerProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare type PopupContainerProps = {};
@@ -1,30 +0,0 @@
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,4 +0,0 @@
1
- export declare type HelperErrorProps = {
2
- name: string;
3
- };
4
- export declare function HelperError(props: HelperErrorProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export declare function GpsTools(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
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>;
@@ -1,20 +0,0 @@
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;
@@ -1,8 +0,0 @@
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[];
@@ -1,19 +0,0 @@
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 };
@@ -1,16 +0,0 @@
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>;