@m4l/components 0.2.13 → 0.2.15

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 (320) hide show
  1. package/@types/export.d.ts +7 -16
  2. package/{commonjs.333e55c7.js → commonjs.565e6834.js} +0 -5
  3. package/components/AccountPopover/index.d.ts +0 -1
  4. package/components/AccountPopover/{index.7060320a.js → index.da84c424.js} +12 -22
  5. package/components/AppBar/AppBar.d.ts +0 -24
  6. package/components/AppBar/classes/index.d.ts +0 -2
  7. package/components/AppBar/classes/types.d.ts +0 -2
  8. package/components/AppBar/{index.c8e7b25c.js → index.46f2db0a.js} +7 -45
  9. package/components/AppBar/types.d.ts +0 -14
  10. package/components/CommonActions/components/ActionCancel/{index.82313aef.js → index.06365996.js} +2 -2
  11. package/components/CommonActions/components/ActionFormCancel/index.2c1fff45.js +70 -0
  12. package/components/CommonActions/components/ActionFormIntro/{index.29891df9.js → index.885f49af.js} +2 -2
  13. package/components/CommonActions/components/ActionIntro/{index.c70ae272.js → index.b97cfeec.js} +2 -2
  14. package/components/CommonActions/components/Actions/index.8368ac0f.js +74 -0
  15. package/components/DataGrid/assets/icons/datagrid.svg +4 -0
  16. package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.d.ts +9 -0
  17. package/components/DataGrid/formatters/ColumnSetCheckFormatter/types.d.ts +6 -0
  18. package/components/DataGrid/formatters/columnPointsFormatter/{index.a19b7b90.js → index.5e645334.js} +1 -1
  19. package/components/DataGrid/{index.387652a9.js → index.e127cac8.js} +54 -732
  20. package/components/DataGrid/subcomponents/Actions/index.5947f820.js +591 -0
  21. package/components/DataGrid/subcomponents/editors/TextEditor/index.91380a55.js +64 -0
  22. package/components/DragResizeWindow/DragResizeWindow.d.ts +15 -0
  23. package/components/DragResizeWindow/classes/index.d.ts +6 -0
  24. package/components/DragResizeWindow/classes/types.d.ts +8 -0
  25. package/components/DragResizeWindow/constants.d.ts +3 -0
  26. package/components/DragResizeWindow/index.67aa1e22.js +445 -0
  27. package/components/DragResizeWindow/index.d.ts +2 -0
  28. package/components/DragResizeWindow/types.d.ts +169 -0
  29. package/components/DragResizeWindow/utils.d.ts +2 -0
  30. package/components/DynamicFilter/classes/index.d.ts +1 -1
  31. package/components/DynamicFilter/classes/types.d.ts +0 -1
  32. package/components/DynamicFilter/{index.9e9885b0.js → index.068ca09c.js} +25 -96
  33. package/components/GridLayout/{index.68093cfb.js → index.367e44f9.js} +8 -63
  34. package/components/GridLayout/index.d.ts +1 -1
  35. package/components/GridLayout/subcomponents/Griditem/{index.8e4af155.js → index.b3c79b77.js} +3 -3
  36. package/components/GridLayout/subcomponents/Responsive/{index.c32210fc.js → index.4234d9f3.js} +1 -1
  37. package/components/GridLayout/subcomponents/SizeProvider/index.0676f896.js +62 -0
  38. package/components/GridLayout/subcomponents/{WidthProvider → withSizeProvider}/index.d.ts +1 -1
  39. package/components/HelperText/{index.918bba47.js → index.7d2afdb3.js} +2 -23
  40. package/components/Icon/index.aa9949f0.js +147 -0
  41. package/components/Icon/types.d.ts +0 -1
  42. package/components/Image/{index.d684bdf2.js → index.d5fed0ab.js} +5 -47
  43. package/components/Image/types.d.ts +2 -2
  44. package/components/LanguagePopover/{index.424bad09.js → index.02987c68.js} +4 -20
  45. package/components/LinearProgressIndeterminate/{index.a0ad2d9e.js → index.2d53ade4.js} +1 -1
  46. package/components/LoadingError/{index.b3e4e8e5.js → index.991393ca.js} +5 -23
  47. package/components/MFLoader/{index.3d17dfc3.js → index.b928e361.js} +13 -22
  48. package/components/ModalDialog/{index.40f6571e.js → index.a30831c9.js} +5 -5
  49. package/components/NavLink/{index.ed4c0609.js → index.b75c91e1.js} +2 -22
  50. package/components/NoItemSelected/{index.5ed80b8e.js → index.1ddc6a38.js} +1 -1
  51. package/components/ObjectLogs/{index.3a939c6b.js → index.546bf5bf.js} +7 -84
  52. package/components/Page/{index.890fbaac.js → index.c3767243.js} +1 -1
  53. package/components/PaperForm/classes/index.d.ts +1 -2
  54. package/components/PaperForm/classes/types.d.ts +0 -1
  55. package/components/PaperForm/{index.013ed28b.js → index.27dafbcc.js} +6 -11
  56. package/components/PaperForm/types.d.ts +1 -4
  57. package/components/Period/{index.3bd05e05.js → index.288a0ec2.js} +5 -88
  58. package/components/PopupsProvider/classes/index.d.ts +11 -0
  59. package/components/PopupsProvider/classes/types.d.ts +9 -0
  60. package/components/PopupsProvider/constants.d.ts +10 -0
  61. package/components/PopupsProvider/contexts/PopupsContext/PopupsContext.d.ts +19 -0
  62. package/components/PopupsProvider/contexts/PopupsContext/helper.d.ts +7 -0
  63. package/components/PopupsProvider/contexts/PopupsContext/index.d.ts +1 -0
  64. package/components/PopupsProvider/contexts/PopupsContext/store.d.ts +16 -0
  65. package/components/PopupsProvider/contexts/PopupsContext/types.d.ts +117 -0
  66. package/components/PopupsProvider/hooks/usePopupsStore/index.d.ts +3 -0
  67. package/components/PopupsProvider/index.ae1bd010.js +247 -0
  68. package/components/PopupsProvider/index.d.ts +2 -0
  69. package/components/PopupsProvider/subcomponents/Popup/index.d.ts +8 -0
  70. package/components/PopupsProvider/subcomponents/Popup/types.d.ts +16 -0
  71. package/components/PopupsProvider/subcomponents/PopupsContainer/index.d.ts +2 -0
  72. package/components/PopupsProvider/subcomponents/PopupsContainer/types.d.ts +1 -0
  73. package/components/PrintingSystem/{index.70234425.js → index.b69edc07.js} +44 -20
  74. package/components/PrintingSystem/subcomponents/BodyNode/{index.1dd418aa.js → index.81da2c9c.js} +1 -1
  75. package/components/PrintingSystem/subcomponents/ChartNode/{index.6aadd6b3.js → index.1863bcf1.js} +4 -4
  76. package/components/PrintingSystem/subcomponents/DividerNode/{index.91e65ff6.js → index.0e6e76ad.js} +1 -1
  77. package/components/PrintingSystem/subcomponents/FooterNode/{index.c2481749.js → index.5af68fd5.js} +1 -1
  78. package/components/PrintingSystem/subcomponents/GridNode/{index.758d94d1.js → index.07d4f9a4.js} +7 -3
  79. package/components/PrintingSystem/subcomponents/HeaderNode/{index.732d7c58.js → index.dbf08ab4.js} +1 -1
  80. package/components/PrintingSystem/subcomponents/PaperNode/{index.1a20a9d4.js → index.d81d2f30.js} +4 -4
  81. package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.8402e742.js → index.4c20215d.js} +5 -3
  82. package/components/PrintingSystem/subcomponents/SectionNode/{index.25aeb4aa.js → index.72cb64b8.js} +1 -1
  83. package/components/PrintingSystem/subcomponents/TextBoxNode/{index.2b632722.js → index.41c261f4.js} +3 -3
  84. package/components/PrintingSystem/types.d.ts +3 -12
  85. package/components/PrintingSystem/utils/getEvalValue/index.d.ts +1 -0
  86. package/components/PropertyValue/classes/index.d.ts +1 -1
  87. package/components/PropertyValue/classes/types.d.ts +1 -4
  88. package/components/PropertyValue/index.92ccdf7a.js +220 -0
  89. package/components/PropertyValue/skeleton.d.ts +2 -0
  90. package/components/PropertyValue/types.d.ts +7 -5
  91. package/components/Resizeable/{index.6478d7d8.js → index.e4f47710.js} +5 -5
  92. package/components/ResizeableWindow/types.d.ts +3 -5
  93. package/components/ScrollBar/{index.010f1b9d.js → index.65bb2930.js} +1 -5
  94. package/components/SideBar/classes/index.d.ts +1 -1
  95. package/components/SideBar/{index.614f85fb.js → index.e4d2ee53.js} +31 -30
  96. package/components/SideBar/types.d.ts +3 -3
  97. package/components/SplitLayout/{index.30fd5861.js → index.9ef430f6.js} +1 -1
  98. package/components/animate/{index.4e9774a6.js → index.5d4575bc.js} +2 -6
  99. package/components/areas/components/AreasAdmin/{index.c1539c1b.js → index.8426755c.js} +29 -98
  100. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  101. package/components/areas/components/AreasViewer/{index.e084d8e9.js → index.6b310068.js} +24 -88
  102. package/components/areas/components/index.558684b3.js +1 -0
  103. package/components/areas/contexts/AreasContext/helper.d.ts +2 -2
  104. package/components/areas/contexts/AreasContext/{index.cffa1526.js → index.1e3974e1.js} +17 -10
  105. package/components/areas/contexts/index.24025b97.js +1 -0
  106. package/components/areas/hooks/index.d9dc1e21.js +1 -0
  107. package/components/areas/hooks/useAreas/{index.00031ac3.js → index.21fa4ab1.js} +1 -1
  108. package/components/areas/index.4cc6a221.js +22 -0
  109. package/components/formatters/BooleanFormatter/{index.5ed55bda.js → index.fcc47dfd.js} +3 -2
  110. package/components/formatters/PointsFormatter/{index.5c94c5e8.js → index.80a4e414.js} +2 -2
  111. package/components/formatters/PointsFormatter/index.d.ts +1 -1
  112. package/components/formatters/{index.4426a315.js → index.7d5cbac9.js} +3 -7
  113. package/components/hook-form/HelperError/index.66bbcac3.js +30 -0
  114. package/components/hook-form/RHFAutocomplete/classes/types.d.ts +0 -2
  115. package/components/hook-form/RHFAutocomplete/{index.01a8f57e.js → index.ea720b8f.js} +38 -44
  116. package/components/hook-form/RHFAutocomplete/subcomponents/RenderOption/index.d.ts +1 -1
  117. package/components/hook-form/RHFAutocomplete/subcomponents/Skeleton/types.d.ts +2 -1
  118. package/components/hook-form/RHFAutocomplete/types.d.ts +3 -8
  119. package/components/hook-form/RHFAutocompleteAsync/{index.df1d5bca.js → index.1609eaf0.js} +1 -1
  120. package/components/hook-form/RHFCheckbox/{index.23fc4851.js → index.a38715e3.js} +2 -22
  121. package/components/hook-form/RHFColorPicker/index.259b6f38.js +61 -0
  122. package/components/hook-form/RHFColorPicker/index.d.ts +0 -6
  123. package/components/hook-form/RHFColorPicker/types.d.ts +0 -5
  124. package/components/hook-form/RHFDateTime/{index.984b803f.js → index.8bd9e41e.js} +5 -21
  125. package/components/hook-form/RHFDateTime/types.d.ts +1 -0
  126. package/components/hook-form/RHFHelperError/index.d.ts +4 -0
  127. package/components/hook-form/RHFPeriod/{index.1852e7d3.js → index.89bebd60.js} +3 -2
  128. package/components/hook-form/RHFRadioGroup/{index.3b17819b.js → index.1ddb3d93.js} +1 -1
  129. package/components/hook-form/RHFTextField/{index.1167879e.js → index.2c8d4613.js} +6 -8
  130. package/components/hook-form/RHFUpload/{index.49edcb02.js → index.55e495bb.js} +7 -24
  131. package/components/index.d.ts +2 -3
  132. package/components/maps/components/GpsTools/GpsTools.d.ts +1 -0
  133. package/components/maps/components/GpsTools/classes/index.d.ts +4 -0
  134. package/components/maps/components/GpsTools/classes/types.d.ts +20 -0
  135. package/components/maps/components/GpsTools/constants.d.ts +8 -0
  136. package/components/maps/components/GpsTools/contexts/GpsToolsContext/index.d.ts +19 -0
  137. package/components/maps/components/GpsTools/contexts/GpsToolsContext/store.d.ts +16 -0
  138. package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +173 -0
  139. package/components/maps/components/GpsTools/hooks/useGpsToolsStore/index.d.ts +2 -0
  140. package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +1 -0
  141. package/components/maps/components/GpsTools/icons.d.ts +15 -0
  142. package/components/maps/components/GpsTools/index.1b6d82bc.js +2086 -0
  143. package/components/maps/components/GpsTools/index.d.ts +2 -0
  144. package/components/maps/components/GpsTools/subcomponents/TabTools/index.d.ts +9 -0
  145. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/constants.d.ts +7 -0
  146. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/index.d.ts +1 -0
  147. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/model.d.ts +122 -0
  148. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +20 -0
  149. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.d.ts +7 -0
  150. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +11 -0
  151. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +8 -0
  152. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +5 -0
  153. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +22 -0
  154. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/index.d.ts +1 -0
  155. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +1 -0
  156. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +6 -0
  157. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +5 -0
  158. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +1 -0
  159. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +7 -0
  160. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +6 -0
  161. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +1 -0
  162. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +1 -0
  163. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +1 -0
  164. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +1 -0
  165. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +1 -0
  166. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +10 -0
  167. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/types.d.ts +25 -0
  168. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedFeatures.d.ts +9 -0
  169. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useCheckedGeofences.d.ts +4 -0
  170. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useColumns.d.ts +9 -0
  171. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useMaster.d.ts +20 -0
  172. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +9 -0
  173. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/index.d.ts +1 -0
  174. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +7 -0
  175. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/constants.d.ts +30 -0
  176. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useMeasure.d.ts +31 -0
  177. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +10 -0
  178. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/index.d.ts +1 -0
  179. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +1 -0
  180. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +6 -0
  181. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +2 -0
  182. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +1 -0
  183. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/types.d.ts +9 -0
  184. package/components/maps/components/GpsTools/types.d.ts +34 -0
  185. package/components/maps/components/Map/Map.d.ts +2 -0
  186. package/components/maps/components/Map/classes/index.d.ts +5 -0
  187. package/components/maps/components/Map/classes/types.d.ts +19 -0
  188. package/components/maps/components/Map/constants.d.ts +11 -0
  189. package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +19 -0
  190. package/components/maps/components/Map/contexts/MapContext/helper.d.ts +8 -0
  191. package/components/maps/components/Map/contexts/MapContext/index.d.ts +2 -0
  192. package/components/maps/components/Map/contexts/MapContext/store.d.ts +16 -0
  193. package/components/maps/components/Map/contexts/MapContext/types.d.ts +414 -0
  194. package/components/maps/components/Map/dictionary.d.ts +70 -0
  195. package/components/maps/components/Map/featureRenders/CommonFeatureRender/index.d.ts +8 -0
  196. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarker.d.ts +6 -0
  197. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerGrua.d.ts +1 -0
  198. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/IconMarkerTaxi.d.ts +1 -0
  199. package/components/maps/components/Map/featureRenders/MarkerFeatureRender/index.d.ts +2 -0
  200. package/components/maps/components/Map/featureRenders/index.d.ts +1 -0
  201. package/components/maps/components/Map/hooks/useAutoFocus/index.d.ts +8 -0
  202. package/components/maps/components/Map/hooks/useAutoFocus/types.d.ts +15 -0
  203. package/components/maps/components/Map/hooks/useDisableZoomEvents/index.d.ts +1 -0
  204. package/components/maps/components/Map/hooks/useMapStore/index.d.ts +3 -0
  205. package/components/maps/components/Map/index.d.ts +7 -0
  206. package/components/maps/components/Map/index.f38df83e.js +1338 -0
  207. package/components/maps/components/Map/pluginLayers/PolylineWithArrows/index.d.ts +9 -0
  208. package/components/maps/components/Map/pluginLayers/index.d.ts +1 -0
  209. package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +2 -0
  210. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useCheckedLayers.d.ts +9 -0
  211. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useColumns.d.ts +15 -0
  212. package/components/maps/components/Map/subcomponents/LayersTool/hooks/useMaster.d.ts +12 -0
  213. package/components/maps/components/Map/subcomponents/LayersTool/index.d.ts +1 -0
  214. package/components/maps/components/Map/subcomponents/LayersTool/model.d.ts +19 -0
  215. package/components/maps/components/Map/subcomponents/MainTools/index.d.ts +2 -0
  216. package/components/maps/components/Map/subcomponents/MainTools/types.d.ts +5 -0
  217. package/components/maps/components/Map/subcomponents/MyLayer/index.d.ts +17 -0
  218. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/index.d.ts +20 -0
  219. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/MarkerClusterGroup/types.d.ts +11 -0
  220. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/index.d.ts +12 -0
  221. package/components/maps/components/Map/subcomponents/MyLayer/subcomponents/RenderByEachFeatureComponent/types.d.ts +5 -0
  222. package/components/maps/components/Map/subcomponents/MyLayer/types.d.ts +2 -0
  223. package/components/maps/components/Map/types.d.ts +28 -0
  224. package/components/maps/index.d.ts +3 -0
  225. package/components/modal/WindowBase.a4534b0b.js +74 -0
  226. package/components/modal/WindowConfirm.7a79bfa5.js +102 -0
  227. package/components/modal/index.61389369.js +57 -0
  228. package/components/mui_extended/Accordion/{index.3087f40e.js → index.f1289de0.js} +4 -4
  229. package/components/mui_extended/Button/classes/types.d.ts +0 -2
  230. package/components/mui_extended/Button/{index.0f2552ed.js → index.007f5a6e.js} +5 -5
  231. package/components/mui_extended/{CheckBox.38abccd8.js → CheckBox.e662d20c.js} +1 -1
  232. package/components/mui_extended/IconButton/{index.5afe56b7.js → index.b705c196.js} +2 -2
  233. package/components/mui_extended/LoadingButton/classes/constants.d.ts +1 -1
  234. package/components/mui_extended/MenuActions/{index.cc54c35c.js → index.aa43c4f2.js} +5 -19
  235. package/components/mui_extended/Pager/{index.5fbbefe2.js → index.9928807e.js} +3 -2
  236. package/components/mui_extended/Tab/{index.ae9ea641.js → index.cefe27e7.js} +6 -6
  237. package/components/mui_extended/ToggleButton/ToggleButton.d.ts +1 -1
  238. package/components/mui_extended/ToggleButton/{index.667d63cd.js → index.b053aa70.js} +1 -5
  239. package/components/mui_extended/ToggleButton/types.d.ts +2 -2
  240. package/components/mui_extended/ToggleIconButton/{index.2de19be3.js → index.80d38bf4.js} +1 -6
  241. package/components/mui_extended/ToggleIconButton/types.d.ts +1 -1
  242. package/components/mui_extended/index.b606cd9d.js +1 -0
  243. package/contexts/ModalContext/{index.ef38d747.js → index.054af5d8.js} +1 -1
  244. package/hocs/withToggle/index.d.ts +1 -9
  245. package/hocs/withToggle/types.d.ts +10 -0
  246. package/hooks/useFormAddEdit/index.b4348b6a.js +96 -0
  247. package/hooks/useFormReadyForUpdate/index.d.ts +6 -0
  248. package/hooks/useFormReadyForUpdate/index.f60f500e.js +20 -0
  249. package/hooks/useModal/{index.8acace45.js → index.acc61361.js} +1 -1
  250. package/hooks/useSizeContainer/contants.d.ts +1 -0
  251. package/hooks/useSizeContainer/index.62b4e0c4.js +35 -0
  252. package/hooks/useSizeContainer/index.d.ts +8 -0
  253. package/hooks/useStateRef/index.538edb89.js +15 -0
  254. package/hooks/useStateRef/index.d.ts +8 -0
  255. package/hooks/useTab/index.500c048b.js +12 -0
  256. package/index.js +225 -213
  257. package/package.json +6 -8
  258. package/{react-draggable.ee21cb7e.js → react-draggable.2bc0e647.js} +4 -4
  259. package/{react-json-view.5636414a.js → react-json-view.57125fcf.js} +1 -1
  260. package/{react-resizable.ee028152.js → react-resizable.53094455.js} +5 -5
  261. package/{react-splitter-layout.c5d98bf7.js → react-splitter-layout.8b1655c8.js} +3 -3
  262. package/test/getNameDataTestId.14875ec7.js +6 -0
  263. package/utils/capitalizeFirstLetter.d.ts +1 -0
  264. package/utils/getComponentUtilityClass.d.ts +1 -0
  265. package/utils/getPaletteColor.d.ts +2 -0
  266. package/utils/getThemeVariantColor.d.ts +3 -0
  267. package/utils/getTransformXY.d.ts +4 -0
  268. package/utils/index.d.ts +6 -7
  269. package/utils/isValidDate.d.ts +1 -0
  270. package/utils/types.d.ts +16 -0
  271. package/components/CommonActions/components/ActionFormCancel/index.3b2605ee.js +0 -144
  272. package/components/CommonActions/components/Actions/index.93e9112b.js +0 -161
  273. package/components/DraggableWindow/index.d.ts +0 -3
  274. package/components/DraggableWindow/index.f9f067bd.js +0 -39
  275. package/components/DraggableWindow/types.d.ts +0 -5
  276. package/components/Icon/index.e215d0f0.js +0 -248
  277. package/components/PDFViewer/PDFViewer.d.ts +0 -2
  278. package/components/PDFViewer/classes/constants.d.ts +0 -1
  279. package/components/PDFViewer/classes/index.d.ts +0 -7
  280. package/components/PDFViewer/classes/types.d.ts +0 -7
  281. package/components/PDFViewer/index.4d16e5bc.js +0 -83
  282. package/components/PDFViewer/index.d.ts +0 -1
  283. package/components/PDFViewer/types.d.ts +0 -3
  284. package/components/PrintingSystem/subcomponents/QRImageNode/index.d.ts +0 -2
  285. package/components/PrintingSystem/subcomponents/QRImageNode/types.d.ts +0 -3
  286. package/components/PropertyValue/index.45482ca3.js +0 -222
  287. package/components/ToastContainer/ToastContainer.d.ts +0 -2
  288. package/components/ToastContainer/classes/constants.d.ts +0 -1
  289. package/components/ToastContainer/classes/index.d.ts +0 -8
  290. package/components/ToastContainer/classes/types.d.ts +0 -9
  291. package/components/ToastContainer/index.5e729fbb.js +0 -89
  292. package/components/ToastContainer/index.d.ts +0 -2
  293. package/components/ToastContainer/subcomponents/ToastMessage/index.d.ts +0 -2
  294. package/components/ToastContainer/subcomponents/ToastMessage/types.d.ts +0 -5
  295. package/components/ToastContainer/types.d.ts +0 -4
  296. package/components/areas/components/index.4381fcfa.js +0 -32
  297. package/components/areas/contexts/index.003a53c1.js +0 -4
  298. package/components/areas/hooks/index.0184c6f7.js +0 -4
  299. package/components/areas/index.1b5b2267.js +0 -56
  300. package/components/hook-form/RHFColorPicker/classes/constants.d.ts +0 -1
  301. package/components/hook-form/RHFColorPicker/classes/index.d.ts +0 -11
  302. package/components/hook-form/RHFColorPicker/classes/types.d.ts +0 -11
  303. package/components/hook-form/RHFColorPicker/index.c7695748.js +0 -166
  304. package/components/hook-form/RHFColorPicker/subcomponents/Skeleton/indext.d.ts +0 -1
  305. package/components/maps/leaflet.d.ts +0 -29
  306. package/components/modal/WindowBase.8e3e5337.js +0 -158
  307. package/components/modal/WindowConfirm.eec3e5d0.js +0 -186
  308. package/components/modal/index.ac0c9093.js +0 -146
  309. package/components/mui_extended/index.6837d969.js +0 -24
  310. package/hooks/useFormAddEdit/index.8276444a.js +0 -181
  311. package/hooks/useTab/index.07f652ec.js +0 -101
  312. package/node_modules.79f5ed2f.js +0 -6921
  313. package/vendor.f0742647.js +0 -140
  314. package/components/GridLayout/subcomponents/{GridItem → Griditem}/index.d.ts +0 -0
  315. package/components/GridLayout/subcomponents/{GridItem → Griditem}/types.d.ts +0 -0
  316. package/components/mui_extended/Badge/{index.b09524fe.js → index.09f5aee5.js} +1 -1
  317. package/components/mui_extended/Popover/{index.9f35d0eb.js → index.b3eca6b1.js} +2 -2
  318. package/components/mui_extended/Tooltip/{index.5a795dcd.js → index.24a2bc3f.js} +1 -1
  319. package/components/mui_extended/Typography/{index.443590d6.js → index.379dd374.js} +1 -1
  320. package/utils/{index.de903261.js → index.9ad3909a.js} +3 -3
@@ -0,0 +1,591 @@
1
+ import { M as MenuActions } from "../../../mui_extended/MenuActions/index.aa43c4f2.js";
2
+ import { D as DATAGRID_ACTIONS_COLUMN_KEY, u as useDataGrid, a as useFilters, C as ColumnInteractiveCheckFormatterColumn, b as DataGridRoot, d as dictionary } from "../../index.e127cac8.js";
3
+ import { useTheme, Skeleton } from "@mui/material";
4
+ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
5
+ import { P as Pager } from "../../../mui_extended/Pager/index.9928807e.js";
6
+ import { I as IconButton } from "../../../mui_extended/IconButton/index.b705c196.js";
7
+ import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
8
+ import { forwardRef, useRef, useState, useImperativeHandle, useMemo, useEffect, useCallback } from "react";
9
+ import { D as DataGrid$1 } from "../../../../react-data-grid.c5377916.js";
10
+ import { styled } from "@mui/material/styles";
11
+ import { u as useModal } from "../../../../hooks/useModal/index.acc61361.js";
12
+ import { A as ActionCancel } from "../../../CommonActions/components/ActionCancel/index.06365996.js";
13
+ import { A as ActionIntro } from "../../../CommonActions/components/ActionIntro/index.b97cfeec.js";
14
+ import { useResponsiveDesktop } from "@m4l/graphics";
15
+ import { W as WindowBase } from "../../../modal/WindowBase.a4534b0b.js";
16
+ import { A as Actions$1 } from "../../../CommonActions/components/Actions/index.8368ac0f.js";
17
+ function ActionsFormatter(props) {
18
+ const {
19
+ rowActionsGetter,
20
+ classes
21
+ } = useDataGrid();
22
+ const theme = useTheme();
23
+ if (rowActionsGetter === void 0) {
24
+ return /* @__PURE__ */ jsx(Fragment, {});
25
+ }
26
+ return /* @__PURE__ */ jsx(MenuActions, {
27
+ arrowType: "top-left",
28
+ objItem: props.row,
29
+ menuActions: rowActionsGetter,
30
+ className: classes.actionsFormatter,
31
+ menuActionSx: theme.components?.M4LDataGridActionsFormatter?.styleOverrides,
32
+ marginTop: 1,
33
+ marginLeft: "-11px",
34
+ anchorOrigin: {
35
+ vertical: "bottom",
36
+ horizontal: "left"
37
+ },
38
+ transformOrigin: {
39
+ vertical: "top",
40
+ horizontal: "left"
41
+ }
42
+ });
43
+ }
44
+ const ActionsColumn = {
45
+ key: DATAGRID_ACTIONS_COLUMN_KEY,
46
+ name: getActionLabel(),
47
+ width: 60,
48
+ isDraggable: false,
49
+ withFilter: false,
50
+ resizable: true,
51
+ sortable: false,
52
+ frozen: true,
53
+ type: "custom",
54
+ formatter: ActionsFormatter
55
+ };
56
+ function getActionLabel() {
57
+ return "";
58
+ }
59
+ function Filter() {
60
+ const {
61
+ activeFilters,
62
+ setActiveFilters
63
+ } = useFilters();
64
+ const {
65
+ host_static_assets,
66
+ environment_assets
67
+ } = useEnvironment();
68
+ const {
69
+ classes
70
+ } = useDataGrid();
71
+ const toggleIcon = () => {
72
+ setActiveFilters(!activeFilters);
73
+ };
74
+ return /* @__PURE__ */ jsx(IconButton, {
75
+ dictionaryTooltipId: activeFilters ? "data_grid.tooltip_filter_hide" : "data_grid.tooltip_filter_show",
76
+ className: classes.actionFilter,
77
+ onClick: toggleIcon,
78
+ "aria-label": "filter",
79
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/filter.svg`
80
+ });
81
+ }
82
+ const WrapperColumnsConfig = styled("div")(({ theme }) => ({
83
+ color: theme.palette.text.primary,
84
+ position: "relative",
85
+ display: "flex",
86
+ flexDirection: "column",
87
+ height: "100%",
88
+ width: "100%"
89
+ }));
90
+ styled("div")(({ theme }) => ({
91
+ color: theme.palette.text.primary,
92
+ fontSize: theme.typography.h4.fontSize
93
+ }));
94
+ const DivSelColumns = styled("div")(({ theme }) => ({
95
+ ...theme.typography.bodyDens,
96
+ color: theme.palette.text.primary,
97
+ padding: `16px 8px`
98
+ }));
99
+ const WrapperDataGrid = styled("div")(() => ({
100
+ position: "relative",
101
+ display: "flex",
102
+ flexDirection: "column",
103
+ flexGrow: 1,
104
+ overflow: "auto"
105
+ }));
106
+ styled("div")(() => ({
107
+ display: "flex",
108
+ flexDirection: "row"
109
+ }));
110
+ const ColumnActions = styled("div")(() => ({
111
+ paddingTop: "16px",
112
+ paddingBottom: "8px",
113
+ display: "flex",
114
+ flexDirection: "row"
115
+ }));
116
+ styled("div")(({ theme }) => ({
117
+ paddingTop: theme.spacing(3),
118
+ display: "flex",
119
+ flexDirection: "row",
120
+ justifyContent: "flex-end",
121
+ "& > button": {
122
+ marginLeft: "10px"
123
+ }
124
+ }));
125
+ function getRowsFromColumnsConfig(columnsConfig) {
126
+ return columnsConfig.filter((column) => !column.hidden).map((column) => ({
127
+ key: column.key,
128
+ name: column.name,
129
+ visible: column.visible === void 0 ? true : column.visible,
130
+ frozen: column.frozen === void 0 ? false : column.frozen,
131
+ originalIndex: column.orginalIndex,
132
+ originalFrozen: column.originalFrozen,
133
+ originalVisible: column.originalVisible
134
+ }));
135
+ }
136
+ const ColumnsConfig = forwardRef((props, ref) => {
137
+ const refdata_grid = useRef(null);
138
+ const {
139
+ onCloseSettings,
140
+ columnsConfig,
141
+ onChangeColumnsConfig,
142
+ classes
143
+ } = props;
144
+ const {
145
+ getLabel
146
+ } = useModuleDictionary();
147
+ const [isInit, setIsInit] = useState(true);
148
+ const [rows, setRows] = useState(getRowsFromColumnsConfig(columnsConfig));
149
+ const [selRows, setSelRows] = useState(() => /* @__PURE__ */ new Set());
150
+ const divRef = useRef(null);
151
+ const {
152
+ host_static_assets,
153
+ environment_assets
154
+ } = useEnvironment();
155
+ useImperativeHandle(ref, () => ({
156
+ onClickIntro: handleIntro,
157
+ current: divRef.current
158
+ }));
159
+ const columnsdata_grid = useMemo(() => [{
160
+ key: "name",
161
+ name: getLabel("data_grid.settings_column_name"),
162
+ width: 200,
163
+ resizable: true,
164
+ type: "string"
165
+ }, {
166
+ key: "originalIndex",
167
+ name: getLabel("data_grid.settings_column_position"),
168
+ width: 50,
169
+ type: "number",
170
+ cellClass: "rdg-cell-align-center"
171
+ }, {
172
+ key: "visible",
173
+ name: getLabel("data_grid.settings_column_visible"),
174
+ width: 80,
175
+ type: "boolean",
176
+ formatter: ColumnInteractiveCheckFormatterColumn,
177
+ cellClass: "rdg-cell-align-center"
178
+ }, {
179
+ key: "frozen",
180
+ name: getLabel("data_grid.settings_column_frozen"),
181
+ width: 80,
182
+ type: "boolean",
183
+ formatter: ColumnInteractiveCheckFormatterColumn,
184
+ cellClass: "rdg-cell-align-center"
185
+ }], [getLabel]);
186
+ const checkAll = () => {
187
+ setRows(rows.map((row) => ({
188
+ ...row,
189
+ visible: true
190
+ })));
191
+ };
192
+ const unCheckAll = () => {
193
+ setRows(rows.map((row) => ({
194
+ ...row,
195
+ visible: false
196
+ })));
197
+ };
198
+ const restoreAll = () => {
199
+ setRows(rows.map((row) => ({
200
+ ...row,
201
+ visible: row.originalVisible,
202
+ frozen: row.originalFrozen,
203
+ index: row.originalIndex
204
+ })).sort((a, b) => a.index - b.index));
205
+ };
206
+ useEffect(() => {
207
+ if (isInit === false) {
208
+ setRows(getRowsFromColumnsConfig(columnsConfig));
209
+ }
210
+ setIsInit(false);
211
+ }, [columnsConfig]);
212
+ const rowSelectedIndex = useMemo(() => {
213
+ let rowIndex = -1;
214
+ if (selRows.size !== 1)
215
+ return rowIndex;
216
+ const iterator = selRows.entries();
217
+ const entry = iterator.next().value[1];
218
+ rowIndex = rows.findIndex((row) => row.key === entry);
219
+ return rowIndex;
220
+ }, [rows, selRows]);
221
+ const handleMoveFirst = () => {
222
+ if (rowSelectedIndex === -1)
223
+ return -1;
224
+ const newRows = [...rows];
225
+ newRows.splice(rowSelectedIndex, 1);
226
+ newRows.splice(0, 0, rows[rowSelectedIndex]);
227
+ refdata_grid.current?.selectCell({
228
+ idx: 0,
229
+ rowIdx: 0
230
+ });
231
+ setRows(newRows);
232
+ };
233
+ const handleMoveLast = () => {
234
+ if (rowSelectedIndex === -1)
235
+ return -1;
236
+ const newRows = [...rows];
237
+ newRows.splice(rowSelectedIndex, 1);
238
+ newRows.splice(newRows.length, 0, rows[rowSelectedIndex]);
239
+ refdata_grid.current?.selectCell({
240
+ idx: 0,
241
+ rowIdx: newRows.length - 1
242
+ });
243
+ setRows(newRows);
244
+ };
245
+ const handleMoveUpDownd = (position) => {
246
+ if (rowSelectedIndex === -1)
247
+ return -1;
248
+ const newRows = [...rows];
249
+ const element = newRows[rowSelectedIndex];
250
+ newRows.splice(rowSelectedIndex, 1);
251
+ newRows.splice(rowSelectedIndex + position, 0, element);
252
+ refdata_grid.current?.selectCell({
253
+ idx: 0,
254
+ rowIdx: rowSelectedIndex + position
255
+ });
256
+ setRows(newRows);
257
+ };
258
+ const getColumnConfigByKey = (key) => {
259
+ const rowIndexFinded = rows.findIndex((row) => row.key === key);
260
+ if (rowIndexFinded > -1) {
261
+ return {
262
+ visible: rows[rowIndexFinded].visible,
263
+ frozen: rows[rowIndexFinded].frozen
264
+ };
265
+ }
266
+ return void 0;
267
+ };
268
+ const getRowIndex = (column) => {
269
+ const rowIndexFinded = rows.findIndex((row) => row.key === column.key);
270
+ if (rowIndexFinded > -1) {
271
+ return rowIndexFinded;
272
+ }
273
+ return columnsConfig.findIndex((columnConfig) => columnConfig.key === column.key);
274
+ };
275
+ const handleIntro = () => {
276
+ const newColumnsConfig = columnsConfig.map((columnConfig) => {
277
+ const newColumnConfig = {
278
+ ...columnConfig
279
+ };
280
+ if (!columnConfig.hidden) {
281
+ const columnConfigRow = getColumnConfigByKey(columnConfig.key);
282
+ if (columnConfigRow) {
283
+ newColumnConfig.visible = columnConfigRow.visible;
284
+ newColumnConfig.frozen = columnConfigRow.frozen;
285
+ }
286
+ }
287
+ return newColumnConfig;
288
+ }).sort((a, b) => getRowIndex(a) - getRowIndex(b));
289
+ onChangeColumnsConfig(newColumnsConfig);
290
+ onCloseSettings();
291
+ };
292
+ const onInternalSelectedRowsChange = () => {
293
+ };
294
+ const onInternalRowsChange = (newRows) => {
295
+ setRows(newRows);
296
+ };
297
+ const onRowClick = (row) => {
298
+ if (selRows.has(row.key))
299
+ return;
300
+ const mySet = /* @__PURE__ */ new Set([row.key]);
301
+ setSelRows(mySet);
302
+ };
303
+ return /* @__PURE__ */ jsxs(WrapperColumnsConfig, {
304
+ ref: divRef,
305
+ className: classes.columnsConfigContainer,
306
+ children: [/* @__PURE__ */ jsx(DivSelColumns, {
307
+ className: classes.columnsLabelSetColumns,
308
+ children: getLabel("data_grid.settings_sel_columns")
309
+ }), /* @__PURE__ */ jsx(WrapperDataGrid, {
310
+ className: classes.columnsConfigContent,
311
+ children: /* @__PURE__ */ jsx("div", {
312
+ className: classes.wrapperDataGridCss,
313
+ children: /* @__PURE__ */ jsx(DataGrid$1, {
314
+ className: classes.columnsConfigGrid,
315
+ ref: refdata_grid,
316
+ columns: columnsdata_grid,
317
+ rows,
318
+ onRowsChange: onInternalRowsChange,
319
+ selectedRows: selRows,
320
+ onSelectedRowsChange: onInternalSelectedRowsChange,
321
+ onRowClick,
322
+ rowKeyGetter: (row) => row.key,
323
+ cellNavigationMode: "CHANGE_ROW",
324
+ defaultColumnOptions: {
325
+ resizable: true,
326
+ sortable: true
327
+ }
328
+ })
329
+ })
330
+ }), /* @__PURE__ */ jsxs(ColumnActions, {
331
+ className: classes.columnsConfigActions,
332
+ children: [/* @__PURE__ */ jsx(IconButton, {
333
+ tooltip: getLabel("data_grid.settings_move_first"),
334
+ onClick: handleMoveFirst,
335
+ "aria-label": "move first place",
336
+ disabled: rowSelectedIndex < 1,
337
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_first_place.svg`
338
+ }), /* @__PURE__ */ jsx(IconButton, {
339
+ tooltip: getLabel("data_grid.settings_move_up"),
340
+ dictionaryTooltipId: "data_grid.settings_move_up",
341
+ onClick: () => handleMoveUpDownd(-1),
342
+ "aria-label": "move up place",
343
+ disabled: rowSelectedIndex < 1,
344
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_up_place.svg`
345
+ }), /* @__PURE__ */ jsx(IconButton, {
346
+ tooltip: getLabel("data_grid.settings_move_last"),
347
+ onClick: handleMoveLast,
348
+ "aria-label": "move last place",
349
+ disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
350
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_last_place.svg`
351
+ }), /* @__PURE__ */ jsx(IconButton, {
352
+ tooltip: getLabel("data_grid.settings_move_down"),
353
+ onClick: () => handleMoveUpDownd(1),
354
+ "aria-label": "move down place",
355
+ disabled: !!(rowSelectedIndex === rows.length - 1 || rowSelectedIndex === -1),
356
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/move_down_place.svg`
357
+ }), /* @__PURE__ */ jsx(IconButton, {
358
+ tooltip: getLabel("data_grid.settings_visible_all"),
359
+ onClick: checkAll,
360
+ "aria-label": "check visible all",
361
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/check_all.svg`
362
+ }), /* @__PURE__ */ jsx(IconButton, {
363
+ tooltip: getLabel("data_grid.settings_no_visible_all"),
364
+ onClick: unCheckAll,
365
+ "aria-label": "un check all",
366
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/uncheck_all.svg`
367
+ }), /* @__PURE__ */ jsx(IconButton, {
368
+ tooltip: getLabel("data_grid.settings_restore"),
369
+ onClick: restoreAll,
370
+ "aria-label": "Restore columns",
371
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/restore_columns.svg`
372
+ })]
373
+ })]
374
+ });
375
+ });
376
+ ColumnsConfig.displayName = "ColumnsConfig";
377
+ function Settings() {
378
+ const {
379
+ openModal,
380
+ closeModal
381
+ } = useModal();
382
+ const {
383
+ columnsConfig,
384
+ onChangeColumnsConfig
385
+ } = useDataGrid();
386
+ const {
387
+ getLabel
388
+ } = useModuleDictionary();
389
+ const {
390
+ host_static_assets,
391
+ environment_assets
392
+ } = useEnvironment();
393
+ const isDesktop = useResponsiveDesktop();
394
+ const {
395
+ classes
396
+ } = useDataGrid();
397
+ const ref = useRef(null);
398
+ const onCloseSettings = useCallback(() => {
399
+ closeModal();
400
+ }, [closeModal]);
401
+ const onClickIntro = useCallback(() => {
402
+ if (ref.current?.onClickIntro) {
403
+ ref.current?.onClickIntro();
404
+ }
405
+ }, []);
406
+ const onClickSettings = useCallback(() => {
407
+ openModal({
408
+ initialWidth: 500,
409
+ initialHeigth: 680,
410
+ fullScreen: !isDesktop ? true : false,
411
+ window: /* @__PURE__ */ jsxs(WindowBase, {
412
+ title: getLabel("data_grid.settings_title"),
413
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/configuration.svg`,
414
+ children: [/* @__PURE__ */ jsx(DataGridRoot, {
415
+ className: classes.root,
416
+ children: /* @__PURE__ */ jsx("div", {
417
+ className: classes.tableContaniner,
418
+ style: {
419
+ inset: "0"
420
+ },
421
+ children: /* @__PURE__ */ jsx("div", {
422
+ className: classes.wrapperDataGridCss,
423
+ children: /* @__PURE__ */ jsx(ColumnsConfig, {
424
+ ref,
425
+ columnsConfig,
426
+ onChangeColumnsConfig,
427
+ onCloseSettings,
428
+ classes
429
+ })
430
+ })
431
+ })
432
+ }), /* @__PURE__ */ jsxs(Actions$1, {
433
+ children: [/* @__PURE__ */ jsx(ActionCancel, {
434
+ onClick: closeModal
435
+ }), /* @__PURE__ */ jsx(ActionIntro, {
436
+ onClick: onClickIntro
437
+ })]
438
+ })]
439
+ })
440
+ });
441
+ }, [closeModal, columnsConfig, getLabel, onChangeColumnsConfig, onCloseSettings, openModal, onClickIntro]);
442
+ return /* @__PURE__ */ jsx(IconButton, {
443
+ className: classes.actionSettings,
444
+ dictionaryTooltipId: "data_grid.tooltip_settings",
445
+ onClick: onClickSettings,
446
+ "aria-label": "settings",
447
+ src: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/configuration.svg`
448
+ });
449
+ }
450
+ function RowsCount() {
451
+ const {
452
+ rowsCount,
453
+ classes
454
+ } = useDataGrid();
455
+ const {
456
+ getLabel
457
+ } = useModuleDictionary();
458
+ const isSkeleton = useModuleSkeleton();
459
+ return /* @__PURE__ */ jsx("div", {
460
+ className: classes.rowsCount,
461
+ children: !isSkeleton ? /* @__PURE__ */ jsxs(Fragment, {
462
+ children: [/* @__PURE__ */ jsx("div", {
463
+ className: classes.rowsCountLabel,
464
+ children: getLabel("data_grid.rows")
465
+ }), /* @__PURE__ */ jsx("div", {
466
+ className: classes.rowsCountValue,
467
+ children: rowsCount
468
+ })]
469
+ }) : /* @__PURE__ */ jsxs(Fragment, {
470
+ children: [/* @__PURE__ */ jsx("div", {
471
+ className: classes.rowsCountLabel,
472
+ children: /* @__PURE__ */ jsx(Skeleton, {
473
+ variant: "text",
474
+ width: "40px",
475
+ height: "16px"
476
+ })
477
+ }), /* @__PURE__ */ jsx("div", {
478
+ className: classes.rowsCountValue,
479
+ children: /* @__PURE__ */ jsx(Skeleton, {
480
+ variant: "text",
481
+ width: "20px",
482
+ height: "16px"
483
+ })
484
+ })]
485
+ })
486
+ });
487
+ }
488
+ function Density() {
489
+ const {
490
+ host_static_assets,
491
+ environment_assets
492
+ } = useEnvironment();
493
+ const {
494
+ rowHeights,
495
+ currentRowHeightVariant,
496
+ setRowHeightVariant,
497
+ classes
498
+ } = useDataGrid();
499
+ const {
500
+ getLabel
501
+ } = useModuleDictionary();
502
+ const menuActions = useMemo(() => {
503
+ if (typeof rowHeights === "number") {
504
+ return [];
505
+ }
506
+ return [{
507
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/compact.svg`,
508
+ onClick: () => setRowHeightVariant("compact"),
509
+ disabled: currentRowHeightVariant === "compact",
510
+ dictionaryField: "data_grid.density_compact"
511
+ }, {
512
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/standard.svg`,
513
+ onClick: () => setRowHeightVariant("standard"),
514
+ disabled: currentRowHeightVariant === "standard",
515
+ dictionaryField: "data_grid.density_standard"
516
+ }, {
517
+ urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/confortable.svg`,
518
+ onClick: () => setRowHeightVariant("confortable"),
519
+ disabled: currentRowHeightVariant === "confortable",
520
+ dictionaryField: "data_grid.density_confortable"
521
+ }];
522
+ }, [rowHeights, currentRowHeightVariant, setRowHeightVariant, host_static_assets, environment_assets]);
523
+ const theme = useTheme();
524
+ const currenViewIcon = useMemo(() => {
525
+ if (currentRowHeightVariant === "compact") {
526
+ return `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/compact.svg`;
527
+ }
528
+ if (currentRowHeightVariant === "standard") {
529
+ return `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/standard.svg`;
530
+ }
531
+ return `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/confortable.svg`;
532
+ }, [currentRowHeightVariant, host_static_assets, environment_assets]);
533
+ if (menuActions.length === 0) {
534
+ return /* @__PURE__ */ jsx(Fragment, {});
535
+ }
536
+ return /* @__PURE__ */ jsx(MenuActions, {
537
+ arrowType: "right-top",
538
+ className: classes.actionDensityPopover,
539
+ menuActionSx: theme.components?.M4LDataGridDensityPopover?.styleOverrides,
540
+ anchorOrigin: {
541
+ vertical: "top",
542
+ horizontal: "left"
543
+ },
544
+ transformOrigin: {
545
+ vertical: "top",
546
+ horizontal: "right"
547
+ },
548
+ menuActions,
549
+ urlIcon: currenViewIcon,
550
+ toolTip: getLabel("data_grid.tooltip_density")
551
+ });
552
+ }
553
+ function Actions(props) {
554
+ const isDesktop = useResponsiveDesktop();
555
+ const {
556
+ rowHeights,
557
+ classes
558
+ } = useDataGrid();
559
+ const isSkeleton = useModuleSkeleton();
560
+ const {
561
+ getLabel
562
+ } = useModuleDictionary();
563
+ const {
564
+ withRowsCount = true,
565
+ withPager = true,
566
+ pagerOptions,
567
+ withSettings = true,
568
+ settingsProps,
569
+ withLocalFilters
570
+ } = props;
571
+ return /* @__PURE__ */ jsxs("div", {
572
+ className: classes.actions,
573
+ children: [withRowsCount && isDesktop && /* @__PURE__ */ jsx(RowsCount, {}), withPager && pagerOptions && /* @__PURE__ */ jsx(Pager, {
574
+ ...pagerOptions,
575
+ totalRecords: pagerOptions.totalRecords,
576
+ isSkeleton,
577
+ isDesktop,
578
+ labelRows: getLabel(dictionary.LABEL_ROWS_PER_PAGE),
579
+ labelOf: getLabel(dictionary.LABEL_OF)
580
+ }), /* @__PURE__ */ jsxs("div", {
581
+ className: classes.actionsConfigContainer,
582
+ children: [typeof rowHeights !== "number" && /* @__PURE__ */ jsx(Density, {}), withLocalFilters && /* @__PURE__ */ jsx(Filter, {}), withSettings && /* @__PURE__ */ jsx(Settings, {
583
+ ...settingsProps
584
+ })]
585
+ })]
586
+ });
587
+ }
588
+ export {
589
+ ActionsColumn as A,
590
+ Actions as a
591
+ };
@@ -0,0 +1,64 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { jsx } from "react/jsx-runtime";
3
+ const Input = styled("input")(() => ({
4
+ appearance: "none",
5
+ boxSizing: "border-box",
6
+ inlineSize: "100%",
7
+ blockSize: "100%",
8
+ paddingBlock: "0",
9
+ verticalAlign: "top",
10
+ textAlign: "right",
11
+ color: "var(--rdg-color)",
12
+ backgroundColor: "var(--rdg-background-color)",
13
+ fontFamily: "inherit",
14
+ "&:focus": {
15
+ outline: "none"
16
+ },
17
+ "&::placeholder": {
18
+ color: "#999",
19
+ opacity: "1"
20
+ }
21
+ }));
22
+ function autoFocusAndSelect(input) {
23
+ input?.focus();
24
+ input?.select();
25
+ }
26
+ function TextEditor({
27
+ row,
28
+ column,
29
+ onRowChange,
30
+ onClose
31
+ }) {
32
+ return /* @__PURE__ */ jsx(Input, {
33
+ className: "rdg-text-editor",
34
+ ref: autoFocusAndSelect,
35
+ value: row[column.key],
36
+ onChange: (event) => onRowChange({
37
+ ...row,
38
+ [column.key]: event.target.value
39
+ }),
40
+ onBlur: () => onClose(true)
41
+ });
42
+ }
43
+ function NumberEditor({
44
+ row,
45
+ column,
46
+ onRowChange,
47
+ onClose
48
+ }) {
49
+ return /* @__PURE__ */ jsx(Input, {
50
+ className: "rdg-text-editor",
51
+ ref: autoFocusAndSelect,
52
+ type: "number",
53
+ value: row[column.key],
54
+ onChange: (event) => onRowChange({
55
+ ...row,
56
+ [column.key]: event.target.value !== "" ? Number(event.target.value) : ""
57
+ }),
58
+ onBlur: () => onClose(true)
59
+ });
60
+ }
61
+ export {
62
+ NumberEditor as N,
63
+ TextEditor as T
64
+ };
@@ -0,0 +1,15 @@
1
+ import type { DraggableWindowProps } from './types';
2
+ /**
3
+ * Este component es un wrapper de Draggable, que permite ajustar la posición de acuerdo al tamaño del contenedor padre
4
+ * Es obligario pasarle como props el containerRef del padre.
5
+ * Internamente Draggable clona el children y le agrega un handle para poder arrastrar el componente
6
+ * Es recomendable pasarle el nodeRef del contendor interno, para que no tenga que hacer FindDOMNode.
7
+ * Consideraciones:
8
+ * No se le puede poner estilo, ya que DraggableCore no aporta className ni html, solo clona el children
9
+ * y le agrega las clases propias del componente: react-draggable,react-draggable-dragging,react-draggable-dragged
10
+ * Por lo tanto todo el estilo, va directamente a divChildRoot.
11
+ * @param props
12
+ * @returns
13
+ */
14
+ export declare const DragResizeWindow: (props: DraggableWindowProps) => import("react/jsx-runtime").JSX.Element;
15
+ export default DragResizeWindow;
@@ -0,0 +1,6 @@
1
+ import { DraggableWindowClasses } from './types';
2
+ export declare const draggableWindowClasses: DraggableWindowClasses;
3
+ export declare function getDraggableWindowUtilityClass(slot: string): string;
4
+ export declare const draggableWindowUtilityClasses: (dragging: boolean) => {
5
+ root: string;
6
+ };
@@ -0,0 +1,8 @@
1
+ import { draggableWindowUtilityClasses } from ".";
2
+ export interface DraggableWindowClasses {
3
+ root: string;
4
+ draggableHandle: string;
5
+ dragging: string;
6
+ }
7
+ export declare type DraggableWindowClassesKey = keyof DraggableWindowClasses;
8
+ export declare type Classes = ReturnType<typeof draggableWindowUtilityClasses>;
@@ -0,0 +1,3 @@
1
+ export declare const COMPONENT_TEST_ID = "M4LDraggableWindow";
2
+ export declare const COMPONENT_CLASS_NAME = "M4LDraggableWindow";
3
+ export declare const DEFAULT_TRANSFORM_SCALE = 1;