argous 1.2.247 → 1.3.2

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 (439) hide show
  1. package/dist/api/WebSocket.d.ts +18 -10
  2. package/dist/api/WebSocket.js +26 -18
  3. package/dist/api/index.js +54 -43
  4. package/dist/api/ws.d.ts +1 -1
  5. package/dist/api/ws.js +44 -3
  6. package/dist/components/Alert/Alert.d.ts +19 -5
  7. package/dist/components/Alert/Alert.js +17 -7
  8. package/dist/components/Alert/index.d.ts +1 -2
  9. package/dist/components/ArgousAction/ArgousAction.d.ts +26 -5
  10. package/dist/components/ArgousAction/ArgousAction.js +17 -7
  11. package/dist/components/ArgousAction/index.d.ts +1 -2
  12. package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +3 -14
  13. package/dist/components/ArgousAvatar/ArgousAvatar.js +44 -60
  14. package/dist/components/ArgousAvatar/index.d.ts +1 -2
  15. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +3 -76
  16. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +107 -81
  17. package/dist/components/ArgousComplexPagination/index.d.ts +1 -2
  18. package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +3 -158
  19. package/dist/components/ArgousComplexTable/ArgousComplexTable.js +39 -52
  20. package/dist/components/ArgousComplexTable/index.d.ts +1 -2
  21. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +7 -177
  22. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +119 -97
  23. package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
  24. package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
  25. package/dist/components/ArgousComplexTableBody/index.d.ts +1 -2
  26. package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +3 -73
  27. package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +64 -47
  28. package/dist/components/ArgousComplexTableHead/index.d.ts +1 -2
  29. package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +3 -58
  30. package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +55 -37
  31. package/dist/components/ArgousComplexTableToolbar/index.d.ts +1 -2
  32. package/dist/components/ArgousInput/ArgousInput.d.ts +2 -8
  33. package/dist/components/ArgousInput/ArgousInput.js +19 -9
  34. package/dist/components/ArgousInput/index.d.ts +1 -2
  35. package/dist/components/ArgousPagination/ArgousPagination.d.ts +3 -5
  36. package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
  37. package/dist/components/ArgousPagination/index.d.ts +1 -2
  38. package/dist/components/ArgousProgressBar/ArgousProgressBar.d.ts +31 -21
  39. package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
  40. package/dist/components/ArgousProgressBar/index.d.ts +1 -2
  41. package/dist/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +3 -5
  42. package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +28 -22
  43. package/dist/components/ArgousSimpleTable/index.d.ts +1 -2
  44. package/dist/components/AutoComplete/AutoComplete.d.ts +2 -8
  45. package/dist/components/AutoComplete/AutoComplete.js +18 -9
  46. package/dist/components/AutoComplete/index.d.ts +1 -2
  47. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +28 -101
  48. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +226 -174
  49. package/dist/components/AutoCompleteFavorites/index.d.ts +1 -2
  50. package/dist/components/BarChart/BarChart.d.ts +29 -5
  51. package/dist/components/BarChart/BarChart.js +17 -7
  52. package/dist/components/BarChart/index.d.ts +1 -2
  53. package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +54 -53
  54. package/dist/components/BarraFerramentas/BarraFerramentas.js +119 -105
  55. package/dist/components/BarraFerramentas/index.d.ts +1 -2
  56. package/dist/components/Button/Button.d.ts +54 -5
  57. package/dist/components/Button/Button.js +17 -7
  58. package/dist/components/Button/index.d.ts +1 -2
  59. package/dist/components/Cabecalho/Cabecalho.d.ts +2 -8
  60. package/dist/components/Cabecalho/Cabecalho.js +17 -7
  61. package/dist/components/Cabecalho/index.d.ts +1 -2
  62. package/dist/components/Calendar/Calendar.d.ts +2 -8
  63. package/dist/components/Calendar/Calendar.js +24 -41
  64. package/dist/components/Calendar/index.d.ts +1 -2
  65. package/dist/components/Cam/Cam.d.ts +24 -24
  66. package/dist/components/Cam/Cam.js +19 -9
  67. package/dist/components/Cam/index.d.ts +1 -2
  68. package/dist/components/Carousel/Carousel.d.ts +21 -71
  69. package/dist/components/Carousel/Carousel.js +113 -103
  70. package/dist/components/Carousel/index.d.ts +1 -2
  71. package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +6 -9
  72. package/dist/components/CartaoUsuario/CartaoUsuario.js +36 -26
  73. package/dist/components/CartaoUsuario/index.d.ts +1 -2
  74. package/dist/components/Collapse/Collapse.d.ts +55 -56
  75. package/dist/components/Collapse/Collapse.js +121 -71
  76. package/dist/components/Collapse/index.d.ts +1 -3
  77. package/dist/components/Compartilhar/Compartilhar.d.ts +3 -7
  78. package/dist/components/Compartilhar/Compartilhar.js +70 -65
  79. package/dist/components/Compartilhar/index.d.ts +1 -2
  80. package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
  81. package/dist/components/ConfirmModal/BasicModal.js +8 -8
  82. package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
  83. package/dist/components/ConfirmModal/ModalProvider.js +17 -7
  84. package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
  85. package/dist/components/ConfirmModal/WrapperModal.js +5 -5
  86. package/dist/components/ConfirmModal/index.d.ts +6 -20
  87. package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +17 -62
  88. package/dist/components/ContactValidationInput/ContactValidationInput.js +105 -80
  89. package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
  90. package/dist/components/ContactValidationInput/SealModal.js +13 -20
  91. package/dist/components/ContactValidationInput/index.d.ts +1 -2
  92. package/dist/components/Document/Icons.d.ts +2 -2
  93. package/dist/components/Document/Icons.js +33 -16
  94. package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
  95. package/dist/components/Document/ModalVisualizacaoDocumentos.js +33 -17
  96. package/dist/components/Document/Visualizacao.d.ts +1 -1
  97. package/dist/components/Document/Visualizacao.js +48 -34
  98. package/dist/components/Document/index.d.ts +3 -3
  99. package/dist/components/DropArea/DropArea.d.ts +8 -21
  100. package/dist/components/DropArea/DropArea.js +27 -12
  101. package/dist/components/DropArea/Html5FileSelector.js +6 -7
  102. package/dist/components/DropArea/index.d.ts +1 -2
  103. package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
  104. package/dist/components/Editor/ScriptLoader2.js +2 -2
  105. package/dist/components/Editor/Utils.d.ts +3 -3
  106. package/dist/components/Editor/Utils.js +2 -2
  107. package/dist/components/Editor/components/Editor.d.ts +1 -1
  108. package/dist/components/Editor/components/Editor.js +18 -9
  109. package/dist/components/Editor/components/EditorPropTypes.js +17 -7
  110. package/dist/components/FilePreparer/FilePreparer.d.ts +16 -26
  111. package/dist/components/FilePreparer/FilePreparer.js +105 -88
  112. package/dist/components/FilePreparer/index.d.ts +1 -2
  113. package/dist/components/FileUploader/FileUploader.d.ts +21 -8
  114. package/dist/components/FileUploader/FileUploader.js +33 -22
  115. package/dist/components/FileUploader/index.d.ts +1 -2
  116. package/dist/components/FormVisualizer/FormVisualizer.d.ts +8 -92
  117. package/dist/components/FormVisualizer/FormVisualizer.js +92 -61
  118. package/dist/components/FormVisualizer/index.d.ts +1 -2
  119. package/dist/components/HalfGauge/HalfGauge.d.ts +23 -82
  120. package/dist/components/HalfGauge/HalfGauge.js +87 -135
  121. package/dist/components/HalfGauge/index.d.ts +1 -2
  122. package/dist/components/Highlight/Highlight.d.ts +20 -7
  123. package/dist/components/Highlight/Highlight.js +23 -12
  124. package/dist/components/Highlight/index.d.ts +1 -2
  125. package/dist/components/ImageResize/ImageResize.d.ts +8 -28
  126. package/dist/components/ImageResize/ImageResize.js +79 -85
  127. package/dist/components/ImageResize/index.d.ts +1 -2
  128. package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +2 -25
  129. package/dist/components/ImageResizeButton/ImageResizeButton.js +19 -9
  130. package/dist/components/ImageResizeButton/index.d.ts +1 -2
  131. package/dist/components/Input/Input.d.ts +2 -8
  132. package/dist/components/Input/Input.js +19 -9
  133. package/dist/components/Input/index.d.ts +1 -2
  134. package/dist/components/InputTags/InputTags.d.ts +2 -8
  135. package/dist/components/InputTags/InputTags.js +22 -13
  136. package/dist/components/InputTags/index.d.ts +1 -2
  137. package/dist/components/ListSelect/ListSelect.d.ts +2 -8
  138. package/dist/components/ListSelect/ListSelect.js +17 -7
  139. package/dist/components/ListSelect/index.d.ts +1 -2
  140. package/dist/components/MaterialButton/MaterialButton.d.ts +30 -12
  141. package/dist/components/MaterialButton/MaterialButton.js +56 -125
  142. package/dist/components/MaterialButton/index.d.ts +1 -2
  143. package/dist/components/MenuBar/MenuBar.d.ts +2 -8
  144. package/dist/components/MenuBar/MenuBar.js +17 -7
  145. package/dist/components/MenuBar/index.d.ts +1 -2
  146. package/dist/components/MonthPicker/MonthPicker.d.ts +2 -8
  147. package/dist/components/MonthPicker/MonthPicker.js +20 -10
  148. package/dist/components/MonthPicker/index.d.ts +1 -2
  149. package/dist/components/MultipleSelect/MultipleSelect.d.ts +2 -8
  150. package/dist/components/MultipleSelect/MultipleSelect.js +17 -7
  151. package/dist/components/MultipleSelect/index.d.ts +1 -2
  152. package/dist/components/OtpInput/OtpInput.d.ts +1 -1
  153. package/dist/components/OtpInput/OtpInput.js +71 -58
  154. package/dist/components/OtpInput/index.d.ts +1 -2
  155. package/dist/components/OutputText/OutputText.d.ts +2 -8
  156. package/dist/components/OutputText/OutputText.js +17 -7
  157. package/dist/components/OutputText/index.d.ts +1 -2
  158. package/dist/components/Pagination/Pagination.d.ts +16 -5
  159. package/dist/components/Pagination/Pagination.js +17 -7
  160. package/dist/components/Pagination/index.d.ts +1 -2
  161. package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +14 -51
  162. package/dist/components/PercentageDisplay/PercentageDisplay.js +24 -92
  163. package/dist/components/PercentageDisplay/index.d.ts +1 -2
  164. package/dist/components/Programa/PageCodeEasterEgg.d.ts +5 -4
  165. package/dist/components/Programa/PageCodeEasterEgg.js +41 -32
  166. package/dist/components/Programa/Programa.d.ts +72 -47
  167. package/dist/components/Programa/Programa.js +50 -28
  168. package/dist/components/Programa/Tab.d.ts +2 -2
  169. package/dist/components/Programa/TabNavigationRail.d.ts +3 -3
  170. package/dist/components/Programa/TabNavigationRail.js +13 -55
  171. package/dist/components/Programa/index.d.ts +1 -2
  172. package/dist/components/ProgressBar/ProgressBar.d.ts +20 -5
  173. package/dist/components/ProgressBar/ProgressBar.js +17 -7
  174. package/dist/components/ProgressBar/index.d.ts +1 -2
  175. package/dist/components/Select/Select.d.ts +2 -8
  176. package/dist/components/Select/Select.js +17 -7
  177. package/dist/components/Select/index.d.ts +1 -2
  178. package/dist/components/SimpleTable/SimpleTable.d.ts +27 -10
  179. package/dist/components/SimpleTable/SimpleTable.js +17 -7
  180. package/dist/components/SimpleTable/index.d.ts +1 -2
  181. package/dist/components/Stepper/Stepper.d.ts +25 -68
  182. package/dist/components/Stepper/Stepper.js +194 -179
  183. package/dist/components/Stepper/index.d.ts +1 -2
  184. package/dist/components/TablePicker/TablePicker.d.ts +3 -8
  185. package/dist/components/TablePicker/TablePicker.js +37 -12
  186. package/dist/components/TablePicker/index.d.ts +1 -2
  187. package/dist/components/Tabs/Tabs.d.ts +25 -5
  188. package/dist/components/Tabs/Tabs.js +17 -7
  189. package/dist/components/Tabs/index.d.ts +1 -2
  190. package/dist/components/TextArea/TextArea.d.ts +2 -8
  191. package/dist/components/TextArea/TextArea.js +17 -7
  192. package/dist/components/TextArea/index.d.ts +1 -2
  193. package/dist/components/TextToHtml/Cursor.d.ts +1 -1
  194. package/dist/components/TextToHtml/Cursor.js +17 -7
  195. package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
  196. package/dist/components/TextToHtml/TextStyles.js +51 -44
  197. package/dist/components/TextToHtml/TextToHtml.d.ts +32 -36
  198. package/dist/components/TextToHtml/TextToHtml.js +37 -17
  199. package/dist/components/TextToHtml/index.d.ts +1 -2
  200. package/dist/components/ThreadLog/ThreadLog.d.ts +36 -5
  201. package/dist/components/ThreadLog/ThreadLog.js +19 -9
  202. package/dist/components/ThreadLog/index.d.ts +1 -2
  203. package/dist/components/UserCard/UserCard.d.ts +6 -15
  204. package/dist/components/UserCard/UserCard.js +36 -26
  205. package/dist/components/UserCard/index.d.ts +1 -2
  206. package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +32 -97
  207. package/dist/components/UtilAutoComplete/UtilAutoComplete.js +26 -16
  208. package/dist/components/UtilAutoComplete/index.d.ts +1 -2
  209. package/dist/components/UtilTextField/UtilTextField.d.ts +7 -23
  210. package/dist/components/UtilTextField/UtilTextField.js +26 -14
  211. package/dist/components/UtilTextField/index.d.ts +1 -2
  212. package/dist/components/Zoom/Zoom.d.ts +7 -15
  213. package/dist/components/Zoom/Zoom.js +23 -24
  214. package/dist/components/Zoom/index.d.ts +1 -2
  215. package/dist/components/index.d.ts +118 -180
  216. package/dist/fieldsRedux/createField.d.ts +6 -6
  217. package/dist/fieldsRedux/createField.js +17 -7
  218. package/dist/fieldsRedux/fieldsRedux.d.ts +3 -58
  219. package/dist/fieldsRedux/fieldsRedux.js +19 -9
  220. package/dist/fieldsRedux/index.d.ts +17 -2
  221. package/dist/fieldsRedux/passFields.d.ts +2 -0
  222. package/dist/fieldsRedux/passFields.js +17 -7
  223. package/dist/reducers/index.d.ts +98 -2
  224. package/dist/utils/api.js +32 -15
  225. package/dist/utils/config.js +2 -3
  226. package/dist/utils/index.d.ts +3 -3
  227. package/dist/utils/index.js +68 -54
  228. package/dist/utils/store.js +2 -3
  229. package/lib/api/WebSocket.js +11 -12
  230. package/lib/api/index.js +14 -14
  231. package/lib/api/ws.js +48 -4
  232. package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
  233. package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
  234. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
  235. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
  236. package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
  237. package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
  238. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
  239. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
  240. package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
  241. package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
  242. package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
  243. package/lib/components/ArgousInput/ArgousInput.js +2 -2
  244. package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
  245. package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
  246. package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
  247. package/lib/components/AutoComplete/AutoComplete.js +2 -3
  248. package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
  249. package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
  250. package/lib/components/BarraFerramentas/BarraFerramentas.js +32 -21
  251. package/lib/components/Calendar/Calendar.js +7 -42
  252. package/lib/components/Carousel/Carousel.js +42 -27
  253. package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
  254. package/lib/components/Collapse/Collapse.d.ts +3 -3
  255. package/lib/components/Collapse/Collapse.js +92 -57
  256. package/lib/components/Compartilhar/Compartilhar.js +47 -46
  257. package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
  258. package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
  259. package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
  260. package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
  261. package/lib/components/ContactValidationInput/SealModal.js +38 -32
  262. package/lib/components/Document/Icons.js +14 -6
  263. package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
  264. package/lib/components/Document/Visualizacao.js +31 -25
  265. package/lib/components/DropArea/DropArea.js +9 -3
  266. package/lib/components/Editor/ScriptLoader2.ts +3 -3
  267. package/lib/components/Editor/Utils.ts +3 -3
  268. package/lib/components/Editor/components/Editor.tsx +1 -1
  269. package/lib/components/Editor/tinymce/README.md +73 -0
  270. package/lib/components/Editor/tinymce/langs/README.md +3 -0
  271. package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
  272. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
  273. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
  274. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
  275. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
  276. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
  277. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
  278. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
  279. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
  280. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
  281. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
  282. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
  283. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
  284. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
  285. package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
  286. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
  287. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
  288. package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
  289. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
  290. package/lib/components/Editor/tinymce/tinymce.js +12 -12
  291. package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
  292. package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
  293. package/lib/components/FilePreparer/FilePreparer.js +112 -108
  294. package/lib/components/FileUploader/FileUploader.js +8 -7
  295. package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
  296. package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
  297. package/lib/components/HalfGauge/HalfGauge.js +87 -85
  298. package/lib/components/Highlight/Highlight.js +4 -4
  299. package/lib/components/ImageResize/ImageResize.d.ts +1 -1
  300. package/lib/components/ImageResize/ImageResize.js +123 -118
  301. package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
  302. package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
  303. package/lib/components/Input/Input.js +2 -2
  304. package/lib/components/InputTags/InputTags.js +6 -7
  305. package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
  306. package/lib/components/MaterialButton/MaterialButton.js +50 -125
  307. package/lib/components/MonthPicker/MonthPicker.js +2 -2
  308. package/lib/components/OtpInput/OtpInput.tsx +77 -69
  309. package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
  310. package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
  311. package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
  312. package/lib/components/Programa/Programa.d.ts +2 -2
  313. package/lib/components/Programa/Programa.js +21 -5
  314. package/lib/components/Programa/Tab.ts +4 -2
  315. package/lib/components/Programa/TabNavigationRail.js +9 -31
  316. package/lib/components/Stepper/Stepper.d.ts +1 -1
  317. package/lib/components/Stepper/Stepper.js +222 -190
  318. package/lib/components/TablePicker/TablePicker.js +11 -6
  319. package/lib/components/TextToHtml/TextStyles.js +42 -42
  320. package/lib/components/TextToHtml/TextToHtml.js +102 -92
  321. package/lib/components/ThreadLog/ThreadLog.js +1 -1
  322. package/lib/components/UserCard/UserCard.js +6 -6
  323. package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
  324. package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
  325. package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
  326. package/lib/components/UtilTextField/UtilTextField.js +18 -16
  327. package/lib/components/Zoom/Zoom.js +6 -3
  328. package/lib/utils/api.ts +1 -1
  329. package/lib/utils/index.ts +10 -8
  330. package/package.json +56 -56
  331. package/.gitlab-ci.yml +0 -21
  332. package/dist/components/Cam/cam.css +0 -8
  333. package/dist/components/ContactValidationInput/style.css +0 -10
  334. package/dist/components/Document/icons/ai.svg +0 -20
  335. package/dist/components/Document/icons/audio.svg +0 -16
  336. package/dist/components/Document/icons/avi.svg +0 -15
  337. package/dist/components/Document/icons/css.svg +0 -47
  338. package/dist/components/Document/icons/csv.svg +0 -37
  339. package/dist/components/Document/icons/dbf.svg +0 -30
  340. package/dist/components/Document/icons/doc.svg +0 -47
  341. package/dist/components/Document/icons/dwg.svg +0 -32
  342. package/dist/components/Document/icons/exe.svg +0 -20
  343. package/dist/components/Document/icons/file.svg +0 -11
  344. package/dist/components/Document/icons/fla.svg +0 -23
  345. package/dist/components/Document/icons/html.svg +0 -23
  346. package/dist/components/Document/icons/image.svg +0 -16
  347. package/dist/components/Document/icons/iso.svg +0 -40
  348. package/dist/components/Document/icons/jpg.svg +0 -33
  349. package/dist/components/Document/icons/js.svg +0 -40
  350. package/dist/components/Document/icons/json.svg +0 -45
  351. package/dist/components/Document/icons/mod.svg +0 -41
  352. package/dist/components/Document/icons/mp3.svg +0 -36
  353. package/dist/components/Document/icons/mp4.svg +0 -25
  354. package/dist/components/Document/icons/pdf.svg +0 -35
  355. package/dist/components/Document/icons/png.svg +0 -30
  356. package/dist/components/Document/icons/ppt.svg +0 -31
  357. package/dist/components/Document/icons/psd.svg +0 -50
  358. package/dist/components/Document/icons/rtf.svg +0 -35
  359. package/dist/components/Document/icons/search.svg +0 -20
  360. package/dist/components/Document/icons/svg.svg +0 -34
  361. package/dist/components/Document/icons/txt.svg +0 -29
  362. package/dist/components/Document/icons/video.svg +0 -17
  363. package/dist/components/Document/icons/xls.svg +0 -31
  364. package/dist/components/Document/icons/xml.svg +0 -25
  365. package/dist/components/Document/icons/zip.svg +0 -24
  366. package/dist/components/Document/icons/zip1.svg +0 -18
  367. package/dist/components/Editor/skins/content/dark/content.min.css +0 -1
  368. package/dist/components/Editor/skins/content/default/content.min.css +0 -1
  369. package/dist/components/Editor/skins/content/document/content.min.css +0 -1
  370. package/dist/components/Editor/skins/content/tinymce-5/content.min.css +0 -1
  371. package/dist/components/Editor/skins/content/tinymce-5-dark/content.min.css +0 -1
  372. package/dist/components/Editor/skins/content/writer/content.min.css +0 -1
  373. package/dist/components/Editor/skins/ui/oxide/content.inline.min.css +0 -1
  374. package/dist/components/Editor/skins/ui/oxide/content.min.css +0 -1
  375. package/dist/components/Editor/skins/ui/oxide/skin.min.css +0 -1
  376. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  377. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.min.css +0 -1
  378. package/dist/components/Editor/skins/ui/oxide-dark/content.min.css +0 -1
  379. package/dist/components/Editor/skins/ui/oxide-dark/skin.min.css +0 -1
  380. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  381. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.min.css +0 -1
  382. package/dist/components/Editor/skins/ui/tinymce-5/content.min.css +0 -1
  383. package/dist/components/Editor/skins/ui/tinymce-5/skin.min.css +0 -1
  384. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
  385. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +0 -1
  386. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.min.css +0 -1
  387. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +0 -1
  388. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
  389. package/dist/components/Editor/tinymce/icons/default/icons.js +0 -194
  390. package/dist/components/Editor/tinymce/icons/default/icons.min.js +0 -1
  391. package/dist/components/Editor/tinymce/skins/content/dark/content.css +0 -66
  392. package/dist/components/Editor/tinymce/skins/content/dark/content.min.css +0 -2
  393. package/dist/components/Editor/tinymce/skins/content/default/content.css +0 -61
  394. package/dist/components/Editor/tinymce/skins/content/default/content.min.css +0 -2
  395. package/dist/components/Editor/tinymce/skins/content/document/content.css +0 -66
  396. package/dist/components/Editor/tinymce/skins/content/document/content.min.css +0 -2
  397. package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.css +0 -61
  398. package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +0 -2
  399. package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.css +0 -66
  400. package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -2
  401. package/dist/components/Editor/tinymce/skins/content/writer/content.css +0 -62
  402. package/dist/components/Editor/tinymce/skins/content/writer/content.min.css +0 -2
  403. package/dist/components/Editor/tinymce/skins/ui/oxide/content.css +0 -785
  404. package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.css +0 -779
  405. package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +0 -2
  406. package/dist/components/Editor/tinymce/skins/ui/oxide/content.min.css +0 -2
  407. package/dist/components/Editor/tinymce/skins/ui/oxide/skin.css +0 -3763
  408. package/dist/components/Editor/tinymce/skins/ui/oxide/skin.min.css +0 -2
  409. package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  410. package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -2
  411. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.css +0 -766
  412. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
  413. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -2
  414. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +0 -2
  415. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
  416. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +0 -2
  417. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  418. package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -2
  419. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.css +0 -785
  420. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.css +0 -779
  421. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -2
  422. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +0 -2
  423. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.css +0 -3857
  424. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +0 -2
  425. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
  426. package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -2
  427. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.css +0 -766
  428. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -779
  429. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -2
  430. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -2
  431. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -3857
  432. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -2
  433. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
  434. package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -2
  435. package/dist/components/Editor/tinymce/tinymce.d.ts +0 -3238
  436. package/dist/components/TextToHtml/icons/resize_area.svg +0 -2
  437. package/dist/components/TextToHtml/style.css +0 -40
  438. package/dist/components/Zoom/style.css +0 -25
  439. package/dist/types.d.ts +0 -164
@@ -0,0 +1,85 @@
1
+ import PropTypes from 'prop-types';
2
+ import React, { Component } from 'react';
3
+ import smoothDnD, { constants, dropHandlers } from 'trello-smooth-dnd';
4
+
5
+ smoothDnD.dropHandler = dropHandlers.reactDropHandler().handler;
6
+ smoothDnD.wrapChild = child => child;
7
+
8
+ export class Container extends Component {
9
+ componentDidMount() {
10
+ this.previousContainer = this.containerElement;
11
+ this.container = smoothDnD(this.containerElement, this.getContainerOptions());
12
+ }
13
+
14
+ componentDidUpdate() {
15
+ if (this.previousContainer && this.previousContainer !== this.containerElement) {
16
+ this.container.dispose();
17
+ this.container = smoothDnD(this.containerElement, this.getContainerOptions());
18
+ this.previousContainer = this.containerElement;
19
+ }
20
+ }
21
+
22
+ componentWillUnmount() {
23
+ this.container.dispose();
24
+ }
25
+
26
+ setRef = element => {
27
+ this.containerElement = element;
28
+ };
29
+
30
+ getContainerOptions = () => {
31
+ const functionProps = {};
32
+ const callbacks = [
33
+ 'onDragStart',
34
+ 'onDragEnd',
35
+ 'onDrop',
36
+ 'getChildPayload',
37
+ 'shouldAnimateDrop',
38
+ 'shouldAcceptDrop',
39
+ 'onDragEnter',
40
+ 'onDragLeave',
41
+ 'render',
42
+ 'onDropReady',
43
+ 'getGhostParent'
44
+ ];
45
+
46
+ callbacks.forEach(callback => {
47
+ if (this.props[callback]) {
48
+ functionProps[callback] = (...parameters) => this.props[callback](...parameters);
49
+ }
50
+ });
51
+
52
+ return { ...this.props, ...functionProps };
53
+ };
54
+
55
+ render() {
56
+ if (this.props.render) {
57
+ return this.props.render(this.setRef);
58
+ }
59
+
60
+ return <div style={this.props.style} ref={this.setRef}>{this.props.children}</div>;
61
+ }
62
+ }
63
+
64
+ Container.propTypes = {
65
+ children: PropTypes.node,
66
+ render: PropTypes.func,
67
+ style: PropTypes.object
68
+ };
69
+
70
+ export class Draggable extends Component {
71
+ render() {
72
+ if (this.props.render) {
73
+ return React.cloneElement(this.props.render(), { className: constants.wrapperClass });
74
+ }
75
+
76
+ const className = `${this.props.className ? `${this.props.className} ` : ''}${constants.wrapperClass}`;
77
+ return <div {...this.props} className={className}>{this.props.children}</div>;
78
+ }
79
+ }
80
+
81
+ Draggable.propTypes = {
82
+ children: PropTypes.node,
83
+ className: PropTypes.string,
84
+ render: PropTypes.func
85
+ };
@@ -1,18 +1,25 @@
1
1
  import { TableContext } from '../ArgousComplexTable/ArgousComplexTable';
2
- import { TableHead, TableRow, Checkbox, TableCell, TableSortLabel, makeStyles, alpha } from '@material-ui/core';
3
- import clsx from 'clsx';
2
+ import { TableHead, TableRow, Checkbox, TableCell, TableSortLabel, GlobalStyles } from '@mui/material';
3
+ import { alpha } from '@mui/material/styles';
4
+ import { clsx } from 'clsx';
4
5
  import { isArray } from 'lodash';
5
6
  import React, { useContext, memo, useMemo } from 'react';
6
7
 
7
- const useStyles = makeStyles(theme => ({
8
- highlight: {
9
- color: theme.palette.type === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
10
- backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
8
+ const classes = {
9
+ highlight: 'argous-complex-table-head-highlight',
10
+ lighthighlight: 'argous-complex-table-head-light-highlight',
11
+ visuallyHidden: 'argous-complex-table-head-visually-hidden',
12
+ };
13
+
14
+ const tableHeadStyles = theme => ({
15
+ [`.${classes.highlight}`]: {
16
+ color: theme.palette.mode === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
17
+ backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
11
18
  },
12
- lighthighlight: {
13
- background: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity)
19
+ [`.${classes.lighthighlight}`]: {
20
+ background: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity)
14
21
  },
15
- visuallyHidden: {
22
+ [`.${classes.visuallyHidden}`]: {
16
23
  border: 0,
17
24
  clip: 'rect(0 0 0 0)',
18
25
  height: 1,
@@ -23,23 +30,22 @@ const useStyles = makeStyles(theme => ({
23
30
  top: 20,
24
31
  width: 1,
25
32
  }
26
- }));
33
+ });
27
34
 
28
- const ArgousComplexTableHead = memo(({
29
- numSelected,
30
- rowCount,
31
- head,
35
+ const ArgousComplexTableHead = memo(({
36
+ numSelected,
37
+ rowCount,
38
+ head,
32
39
  enableCheck,
33
40
  disableCheckIf,
34
- line,
35
- size,
36
- headerColumnStyles,
41
+ line,
42
+ size,
43
+ headerColumnStyles,
37
44
  disableSorting,
38
45
  ordCols,
39
46
  cortaDados,
40
47
  enableDrag
41
48
  }) => {
42
- const classes = useStyles();
43
49
  const { selected, order, orderBy, dispatch, lista, indexToSelect, method, externalCtrlPgn } = useContext(TableContext);
44
50
 
45
51
  const handleRequestSort = property => {
@@ -59,39 +65,42 @@ const ArgousComplexTableHead = memo(({
59
65
  };
60
66
 
61
67
  return (
62
- <TableHead>
63
- <TableRow className={clsx({
64
- [classes.highlight]: (((numSelected === rowCount) || (numSelected === length) || (numSelected === lista?.length)) && (rowCount && length)),
65
- [classes.lighthighlight]: ((numSelected > 0) && ((method || externalCtrlPgn) ? (numSelected < lista?.length) : (numSelected < rowCount)))
66
- })}>
67
- {enableDrag && <TableCell padding='checkbox'/>}
68
- {enableCheck && <TableCell padding='checkbox'>
69
- <Checkbox
70
- disabled={!length}
71
- indeterminate={(method || externalCtrlPgn) ? ((numSelected > 0) && (numSelected < lista?.length)) : ((numSelected > 0) && (numSelected < length))}
72
- checked={(method || externalCtrlPgn) ? ((rowCount > 0) && ((numSelected === rowCount) || (numSelected === lista?.length))) : ((rowCount > 0) && length && (numSelected === length))}
73
- onChange={handleSelectAllClick}
74
- />
75
- </TableCell>}
76
- {isArray(head) && head.map((item, i) => (
77
- <TableCell key={i} style={headerColumnStyles ? headerColumnStyles[i] : undefined}>
78
- {(disableSorting[i] || (ordCols && !ordCols[i])) ?
79
- item
80
- :
81
- <TableSortLabel
82
- active={orderBy === i}
83
- direction={orderBy === i ? order : 'asc'}
84
- onClick={() => handleRequestSort(i)}
85
- >{item}{orderBy === i ? (
86
- <span className={classes.visuallyHidden}>
87
- {order === 'desc' ? 'sorted descending' : 'sorted ascending'}
88
- </span>
89
- ) : null}
90
- </TableSortLabel>}
91
- </TableCell>
92
- ))}
93
- </TableRow>
94
- </TableHead>
68
+ <>
69
+ <GlobalStyles styles={tableHeadStyles} />
70
+ <TableHead>
71
+ <TableRow className={clsx({
72
+ [classes.highlight]: (((numSelected === rowCount) || (numSelected === length) || (numSelected === lista?.length)) && (rowCount && length)),
73
+ [classes.lighthighlight]: ((numSelected > 0) && ((method || externalCtrlPgn) ? (numSelected < lista?.length) : (numSelected < rowCount)))
74
+ })}>
75
+ {enableDrag && <TableCell padding='checkbox'/>}
76
+ {enableCheck && <TableCell padding='checkbox'>
77
+ <Checkbox
78
+ disabled={!length}
79
+ indeterminate={(method || externalCtrlPgn) ? ((numSelected > 0) && (numSelected < lista?.length)) : ((numSelected > 0) && (numSelected < length))}
80
+ checked={(method || externalCtrlPgn) ? ((rowCount > 0) && ((numSelected === rowCount) || (numSelected === lista?.length))) : ((rowCount > 0) && length && (numSelected === length))}
81
+ onChange={handleSelectAllClick}
82
+ />
83
+ </TableCell>}
84
+ {isArray(head) && head.map((item, i) => (
85
+ <TableCell key={i} style={headerColumnStyles ? headerColumnStyles[i] : undefined}>
86
+ {(disableSorting[i] || (ordCols && !ordCols[i])) ?
87
+ item
88
+ :
89
+ <TableSortLabel
90
+ active={orderBy === i}
91
+ direction={orderBy === i ? order : 'asc'}
92
+ onClick={() => handleRequestSort(i)}
93
+ >{item}{orderBy === i ? (
94
+ <span className={classes.visuallyHidden}>
95
+ {order === 'desc' ? 'sorted descending' : 'sorted ascending'}
96
+ </span>
97
+ ) : null}
98
+ </TableSortLabel>}
99
+ </TableCell>
100
+ ))}
101
+ </TableRow>
102
+ </TableHead>
103
+ </>
95
104
  );
96
105
  });
97
106
 
@@ -1,24 +1,31 @@
1
1
  import { TableContext } from '../ArgousComplexTable/ArgousComplexTable';
2
- import { Toolbar, Typography, Grid, TextField, IconButton, makeStyles, Tooltip, alpha } from '@material-ui/core';
3
- import clsx from 'clsx';
2
+ import { Toolbar, Typography, Grid, TextField, IconButton, Tooltip, GlobalStyles } from '@mui/material';
3
+ import { alpha } from '@mui/material/styles';
4
+ import { clsx } from 'clsx';
4
5
  import { isArray } from 'lodash';
5
6
  import React, { useContext, useRef, memo } from 'react';
6
7
 
7
- const useStyles = makeStyles(theme => ({
8
- toolbar: {
8
+ const classes = {
9
+ toolbar: 'argous-complex-table-toolbar-toolbar',
10
+ highlight: 'argous-complex-table-toolbar-highlight',
11
+ title: 'argous-complex-table-toolbar-title',
12
+ };
13
+
14
+ const toolbarStyles = theme => ({
15
+ [`.${classes.toolbar}`]: {
9
16
  minHeight: 0,
10
17
  paddingLeft: theme.spacing(2),
11
18
  paddingRight: theme.spacing(1),
12
19
  },
13
- highlight: {
14
- color: theme.palette.type === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
20
+ [`.${classes.highlight}`]: {
21
+ color: theme.palette.mode === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
15
22
  backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
16
23
  },
17
- title: {
24
+ [`.${classes.title}`]: {
18
25
  flex: '1 1 100%',
19
26
  lineHeight: '50px'
20
27
  }
21
- }));
28
+ });
22
29
 
23
30
  const ArgousComplexTableToolBar = memo(({
24
31
  numSelected,
@@ -29,7 +36,6 @@ const ArgousComplexTableToolBar = memo(({
29
36
  lista,
30
37
  indexToSelect,
31
38
  fixedToolbar }) => {
32
- const classes = useStyles();
33
39
  const { selected, dispatch } = useContext(TableContext);
34
40
 
35
41
  const filterTime = useRef();
@@ -44,13 +50,16 @@ const ArgousComplexTableToolBar = memo(({
44
50
 
45
51
  return (
46
52
  <Toolbar className={clsx(classes.toolbar, { [classes.highlight]: numSelected > 0 })}>
53
+ <GlobalStyles styles={toolbarStyles} />
47
54
  {numSelected > 0 ? (
48
- <Typography className={classes.title} color='inherit' variant='subtitle1' component='div'>
55
+ <Typography className={classes.title} variant='subtitle1' component='div' sx={{
56
+ color: 'inherit'
57
+ }}>
49
58
  {numSelected} {numSelected === 1 ? 'selecionado' : 'selecionados'}
50
59
  </Typography>
51
60
  ) : <Grid container spacing={2} style={{ marginRight: 0 }}>
52
- {title && <Grid item xs style={{ display: 'flex', alignItems: 'center' }}><Typography className={classes.title} variant='h6' component='div'>{title}</Typography></Grid>}
53
- {!disableFilter && <Grid item xs><TextField label={filterLabel} fullWidth margin='dense' variant='outlined' onChange={handleChange}/></Grid>}
61
+ {title && <Grid style={{ display: 'flex', alignItems: 'center' }} size='grow'><Typography className={classes.title} variant='h6' component='div'>{title}</Typography></Grid>}
62
+ {!disableFilter && <Grid size='grow'><TextField label={filterLabel} fullWidth margin='dense' variant='outlined' onChange={handleChange}/></Grid>}
54
63
  </Grid>}
55
64
  {(fixedToolbar || numSelected > 0) && isArray(actions) && actions.map((action, i) => (
56
65
  <Tooltip key={i} title={action[0]}>
@@ -1,7 +1,7 @@
1
1
  import { createField, getField } from '../../fieldsRedux';
2
2
  import PropTypes from 'prop-types';
3
3
  import React, { Component } from 'react';
4
- import MaskedInput from 'react-maskedinput';
4
+ import MaskedInput from '@mona-health/react-input-mask';
5
5
 
6
6
  /**
7
7
  * @deprecated
@@ -442,7 +442,7 @@ class ArgousInput extends Component {
442
442
  <label style={this.styleLabel}
443
443
  >{label}</label>
444
444
  <div style={this.styleDiv2}>
445
- <MaskedInput mask={mask} style={this.styleInput} {...this.props} />
445
+ <MaskedInput mask={mask.replaceAll('1', '9').replaceAll('#', '*')} style={this.styleInput} {...this.props} />
446
446
  <fieldset style={this.stylefieldset}>
447
447
  <legend style={this.styleLegend}>
448
448
  <span style={this.styleSpan}></span>
@@ -1,4 +1,4 @@
1
- import { Select, MenuItem, InputBase, Box, Toolbar, Typography, IconButton } from '@material-ui/core';
1
+ import { Select, MenuItem, InputBase, Box, Toolbar, Typography, IconButton } from '@mui/material';
2
2
  import React from 'react';
3
3
  import { MdKeyboardArrowLeft, MdKeyboardArrowRight } from 'react-icons/md';
4
4
 
@@ -12,7 +12,9 @@ const ArgousPagination = (props) => {
12
12
  return (
13
13
  <Toolbar style={{ minHeight: 52, paddingRight: 2 }}>
14
14
  <div style={{ flex: '1 1 100%' }}/>
15
- <Typography color='inherit' variant='body2' style={{ flexShrink: 0 }}>Linhas</Typography>
15
+ <Typography variant='body2' style={{ flexShrink: 0 }} sx={{
16
+ color: 'inherit'
17
+ }}>Linhas</Typography>
16
18
  {value && (
17
19
  <Select
18
20
  input={<InputBase style={{ marginRight: 32, marginLeft: 8, color: 'inherit', fontSize: 'inherit', flexShrink: 0, }} />}
@@ -22,8 +24,14 @@ const ArgousPagination = (props) => {
22
24
  })}
23
25
  </Select>
24
26
  )}
25
- <Typography color='inherit' variant='body2' component='div' style={{ flexShrink: 0 }}>
26
- <Box padding='1px 0px' display='inline'>
27
+ <Typography variant='body2' component='div' style={{ flexShrink: 0 }} sx={{
28
+ color: 'inherit'
29
+ }}>
30
+ <Box
31
+ sx={{
32
+ padding: '1px 0px',
33
+ display: 'inline'
34
+ }}>
27
35
  <InputBase style={{ width: 40 }} inputProps={{ value: props.ctrlPgnReturn.pgAtl }} onBlur={e => props.onChangePageNumber(e.target.value) }/>
28
36
  {` / ${props.ctrlPgnReturn.qtPaginas}`}
29
37
  </Box>
@@ -1,52 +1,71 @@
1
- import { Grid, makeStyles, Collapse, Grow, useTheme } from '@material-ui/core';
1
+ import { Box, Grid, Collapse, Grow, useTheme } from '@mui/material';
2
2
  import PropTypes from 'prop-types';
3
3
  import React from 'react';
4
4
 
5
- const useStyles = makeStyles(theme => ({
6
- progressContainer: {
7
- '& > div': {
8
- padding: '0px !important'
9
- }
10
- },
11
- progressBorder: {
12
- border: props => `3px solid ${props.borderColor || props.preset.borderColor}`,
5
+ const selectPreset = (preset, palette) => {
6
+ switch (preset) {
7
+ case 'secondary':
8
+ return { fullBarColor: palette.secondary.dark, borderColor: palette.secondary.dark, indicatorColor: palette.secondary.dark, barColor: `linear-gradient(90deg, ${palette.secondary.light} 0%, ${palette.secondary.main} 50%, ${palette.secondary.dark} 100%)` };
9
+ case 'success':
10
+ return { fullBarColor: palette.success.dark, borderColor: palette.success.dark, indicatorColor: palette.success.dark, barColor: `linear-gradient(90deg, ${palette.success.light} 0%, ${palette.success.main} 50%, ${palette.success.dark} 100%)` };
11
+ case 'info':
12
+ return { fullBarColor: palette.info.dark, borderColor: palette.info.dark, indicatorColor: palette.info.dark, barColor: `linear-gradient(90deg, ${palette.info.light} 0%, ${palette.info.main} 50%, ${palette.info.dark} 100%)` };
13
+ case 'warning':
14
+ return { fullBarColor: palette.warning.dark, borderColor: palette.warning.dark, indicatorColor: palette.warning.dark, barColor: `linear-gradient(90deg, ${palette.warning.light} 0%, ${palette.warning.main} 50%, ${palette.warning.dark} 100%)` };
15
+ case 'danger':
16
+ return { fullBarColor: palette.error.dark, borderColor: palette.error.dark, indicatorColor: palette.error.dark, barColor: `linear-gradient(90deg, ${palette.error.light} 0%, ${palette.error.main} 50%, ${palette.error.dark} 100%)` };
17
+ case 'hot':
18
+ return { fullBarColor: 'rgba(244,67,54,1)', borderColor: '#d84315', indicatorColor: '#f44336', barColor: 'linear-gradient(90deg, rgba(255,235,59,1) 0%, rgba(255,152,0,1) 50%, rgba(244,67,54,1) 100%)' };
19
+ case 'cold':
20
+ return { fullBarColor: '#673ab7', borderColor: '#5e35b1', indicatorColor: '#512da8', barColor: 'linear-gradient(90deg, #2196f3 0%, #3f51b5 50%, #673ab7 100%)' };
21
+ default:
22
+ return { fullBarColor: palette.primary.dark, borderColor: palette.primary.dark, indicatorColor: palette.primary.dark, barColor: `linear-gradient(90deg, ${palette.primary.light} 0%, ${palette.primary.main} 50%, ${palette.primary.dark} 100%)` };
23
+ }
24
+ };
25
+
26
+ export default function ProgressBar({ valueLabel, valueSuffix, maxValueSuffix, maxValueLabel, value, maxValue, rightIndicatorColor, topIndicatorColor, borderColor, barColor, fullBarColor, preset, compact, className }) {
27
+ const theme = useTheme();
28
+ const percnt = maxValue ? value * 100 / maxValue : 0;
29
+ const selectedPreset = selectPreset(preset, theme.palette);
30
+ const progressBorderSx = {
31
+ border: `3px solid ${borderColor || selectedPreset.borderColor}`,
13
32
  borderRadius: '15px',
14
- },
15
- progressBack: {
33
+ };
34
+ const progressBackSx = {
16
35
  height: '20px',
17
36
  padding: '2px',
18
37
  position: 'relative'
19
- },
20
- progressBar: {
38
+ };
39
+ const progressBarSx = {
21
40
  width: '100%',
22
41
  height: '100%',
23
42
  borderRadius: '10px',
24
- background: props => props.percnt === 0 ? theme.palette.background.paper : props.percnt > 100 ? props.fullBarColor || props.preset.fullBarColor : props.barColor || props.preset.barColor,
25
- },
26
- progressCover: {
43
+ background: percnt === 0 ? theme.palette.background.paper : percnt > 100 ? fullBarColor || selectedPreset.fullBarColor : barColor || selectedPreset.barColor,
44
+ };
45
+ const progressCoverSx = {
27
46
  height: '100%',
28
47
  transition: '300ms',
29
- background: props => props.percnt > 99 ? 'transparent' : theme.palette.background.paper,
48
+ background: percnt > 99 ? 'transparent' : theme.palette.background.paper,
30
49
  position: 'absolute',
31
50
  top: '0px',
32
51
  right: '0',
33
- width: props => `${100 - props.percnt}%`,
52
+ width: `${100 - percnt}%`,
34
53
  minWidth: '5%',
35
54
  maxWidth: '95%',
36
- borderRadius: '0px 10px 10px 0px;',
37
- },
38
- topIndicator: {
55
+ borderRadius: '0px 10px 10px 0px',
56
+ };
57
+ const topIndicatorSx = {
39
58
  zIndex: 1,
40
59
  transition: '300ms',
41
60
  display: 'block',
42
61
  position: 'relative',
43
62
  width: 'max-content',
44
63
  margin: '0 2px',
45
- paddingLeft: props => props.percnt > 94 ? '94%' : props.percnt < 5 ? '0' : `${props.percnt}%`,
46
- transform: props => props.percnt === 0 ? `translate(${props.compact ? '-25px, 1px' : '-10px, 0px'})` : props.percnt > 5 ? `translate(${props.compact ? '-30px, 1px' : '-15px, 0px'})` : '',
64
+ paddingLeft: percnt > 94 ? '94%' : percnt < 5 ? '0' : `${percnt}%`,
65
+ transform: percnt === 0 ? `translate(${compact ? '-25px, 1px' : '-10px, 0px'})` : percnt > 5 ? `translate(${compact ? '-30px, 1px' : '-15px, 0px'})` : '',
47
66
  '& p': {
48
67
  margin: '0 0 5px',
49
- border: props => props.compact ? 0 : `2px solid ${props.topIndicatorColor || props.preset.indicatorColor}`,
68
+ border: compact ? 0 : `2px solid ${topIndicatorColor || selectedPreset.indicatorColor}`,
50
69
  padding: '0px 3px',
51
70
  borderRadius: '5px',
52
71
  minWidth: '25px',
@@ -62,20 +81,20 @@ const useStyles = makeStyles(theme => ({
62
81
  left: '0px',
63
82
  width: '0px',
64
83
  height: '0px',
65
- borderTop: props => `5px solid ${props.topIndicatorColor || props.preset.indicatorColor}`,
84
+ borderTop: `5px solid ${topIndicatorColor || selectedPreset.indicatorColor}`,
66
85
  borderLeft: '10px solid transparent',
67
86
  borderRight: '10px solid transparent',
68
87
  display: 'block',
69
- opacity: props => props.compact ? 0 : 1
88
+ opacity: compact ? 0 : 1
70
89
  },
71
- },
72
- rightIndicator: {
90
+ };
91
+ const rightIndicatorSx = {
73
92
  display: 'block',
74
93
  position: 'relative',
75
94
  width: 'max-content',
76
95
  '& p': {
77
96
  margin: '0 7px 0',
78
- border: props => `2px solid ${props.rightIndicatorColor || props.preset.indicatorColor}`,
97
+ border: `2px solid ${rightIndicatorColor || selectedPreset.indicatorColor}`,
79
98
  padding: '0px 3px',
80
99
  borderRadius: '5px',
81
100
  minWidth: '25px',
@@ -92,62 +111,32 @@ const useStyles = makeStyles(theme => ({
92
111
  height: '0px',
93
112
  borderTop: '10px solid transparent',
94
113
  borderBottom: '10px solid transparent',
95
- borderRight: props => `8px solid ${props.rightIndicatorColor || props.preset.indicatorColor}`,
114
+ borderRight: `8px solid ${rightIndicatorColor || selectedPreset.indicatorColor}`,
96
115
  },
97
- },
98
- collapse: {
99
- height: props => props.compact ? '0px !important' : undefined
100
- }
101
- }));
102
-
103
- const selectPreset = (preset, palette) => {
104
- switch (preset) {
105
- case 'secondary':
106
- return { fullBarColor: palette.secondary.dark, borderColor: palette.secondary.dark, indicatorColor: palette.secondary.dark, barColor: `linear-gradient(90deg, ${palette.secondary.light} 0%, ${palette.secondary.main} 50%, ${palette.secondary.dark} 100%)` };
107
- case 'success':
108
- return { fullBarColor: palette.success.dark, borderColor: palette.success.dark, indicatorColor: palette.success.dark, barColor: `linear-gradient(90deg, ${palette.success.light} 0%, ${palette.success.main} 50%, ${palette.success.dark} 100%)` };
109
- case 'info':
110
- return { fullBarColor: palette.info.dark, borderColor: palette.info.dark, indicatorColor: palette.info.dark, barColor: `linear-gradient(90deg, ${palette.info.light} 0%, ${palette.info.main} 50%, ${palette.info.dark} 100%)` };
111
- case 'warning':
112
- return { fullBarColor: palette.warning.dark, borderColor: palette.warning.dark, indicatorColor: palette.warning.dark, barColor: `linear-gradient(90deg, ${palette.warning.light} 0%, ${palette.warning.main} 50%, ${palette.warning.dark} 100%)` };
113
- case 'danger':
114
- return { fullBarColor: palette.error.dark, borderColor: palette.error.dark, indicatorColor: palette.error.dark, barColor: `linear-gradient(90deg, ${palette.error.light} 0%, ${palette.error.main} 50%, ${palette.error.dark} 100%)` };
115
- case 'hot':
116
- return { fullBarColor: 'rgba(244,67,54,1)', borderColor: '#d84315', indicatorColor: '#f44336', barColor: 'linear-gradient(90deg, rgba(255,235,59,1) 0%, rgba(255,152,0,1) 50%, rgba(244,67,54,1) 100%)' };
117
- case 'cold':
118
- return { fullBarColor: '#673ab7', borderColor: '#5e35b1', indicatorColor: '#512da8', barColor: 'linear-gradient(90deg, #2196f3 0%, #3f51b5 50%, #673ab7 100%)' };
119
- default:
120
- return { fullBarColor: palette.primary.dark, borderColor: palette.primary.dark, indicatorColor: palette.primary.dark, barColor: `linear-gradient(90deg, ${palette.primary.light} 0%, ${palette.primary.main} 50%, ${palette.primary.dark} 100%)` };
121
- }
122
- };
123
-
124
- export default function ProgressBar({ valueLabel, valueSuffix, maxValueSuffix, maxValueLabel, value, maxValue, rightIndicatorColor, topIndicatorColor, borderColor, barColor, fullBarColor, preset, compact, className }) {
125
- const theme = useTheme();
126
- const percnt = maxValue ? value * 100 / maxValue : 0;
127
- const classes = useStyles({ percnt, rightIndicatorColor, topIndicatorColor, borderColor, barColor, fullBarColor, preset: selectPreset(preset, theme.palette), compact });
116
+ };
128
117
  return (
129
- <Grid container spacing={2} className={`${classes.progressContainer} ${className}`} style={{ marginTop: compact ? '-10px' : undefined }}>
130
- <Grid item xs={10} style={{ maxWidth: '80%', flexBasis: '80%' }}>
131
- <Collapse in={value > 0} className={classes.collapse}>
132
- <div className={classes.topIndicator}>
118
+ <Grid container spacing={2} className={className} sx={{ marginTop: compact ? '-10px' : undefined, '& > div': { padding: '0px !important' } }}>
119
+ <Grid style={{ maxWidth: '80%', flexBasis: '80%' }} size={10}>
120
+ <Collapse in={value > 0} sx={{ height: compact ? '0px !important' : undefined }}>
121
+ <Box sx={topIndicatorSx}>
133
122
  <p title={valueLabel || 'Minutos Realizados'}>{value}{valueSuffix}</p>
134
- </div>
123
+ </Box>
135
124
  </Collapse>
136
125
  </Grid>
137
- <Grid item xs={2} style={{ maxWidth: '20%', flexBasis: '20%' }}></Grid>
138
- <Grid item xs={10} style={{ maxWidth: '80%', flexBasis: '80%' }}>
139
- <div item title={`Porcentagem ${percnt.toFixed(2)}%`} className={classes.progressBorder}>
140
- <div className={classes.progressBack}>
141
- <div className={classes.progressBar}></div>
142
- <div className={classes.progressCover}></div>
143
- </div>
144
- </div>
126
+ <Grid style={{ maxWidth: '20%', flexBasis: '20%' }} size={2}></Grid>
127
+ <Grid style={{ maxWidth: '80%', flexBasis: '80%' }} size={10}>
128
+ <Box title={`Porcentagem ${percnt.toFixed(2)}%`} sx={progressBorderSx}>
129
+ <Box sx={progressBackSx}>
130
+ <Box sx={progressBarSx}></Box>
131
+ <Box sx={progressCoverSx}></Box>
132
+ </Box>
133
+ </Box>
145
134
  </Grid>
146
- <Grid item xs={2} style={{ maxWidth: '20%', flexBasis: '20%' }}>
135
+ <Grid style={{ maxWidth: '20%', flexBasis: '20%' }} size={2}>
147
136
  <Grow in={maxValue > 0}>
148
- <div className={classes.rightIndicator}>
137
+ <Box sx={rightIndicatorSx}>
149
138
  <p title={maxValueLabel || 'Minutos Previstos'}>{maxValue}{maxValueSuffix}</p>
150
- </div>
139
+ </Box>
151
140
  </Grow>
152
141
  </Grid>
153
142
  </Grid>
@@ -164,4 +153,4 @@ ProgressBar.propTypes = {
164
153
  fullBarColor: PropTypes.string,
165
154
  compact: PropTypes.bool,
166
155
  preset: PropTypes.oneOf(['default', 'primary', 'secondary', 'success', 'info', 'warning', 'danger', 'hot', 'cold'])
167
- };
156
+ };
@@ -1,12 +1,11 @@
1
1
  import AgPagination from '../ArgousPagination';
2
- import Paper from '@material-ui/core/Paper';
3
- import { makeStyles } from '@material-ui/core/styles';
4
- import Table from '@material-ui/core/Table';
5
- import TableBody from '@material-ui/core/TableBody';
6
- import TableCell from '@material-ui/core/TableCell';
7
- import TableContainer from '@material-ui/core/TableContainer';
8
- import TableHead from '@material-ui/core/TableHead';
9
- import TableRow from '@material-ui/core/TableRow';
2
+ import Paper from '@mui/material/Paper';
3
+ import Table from '@mui/material/Table';
4
+ import TableBody from '@mui/material/TableBody';
5
+ import TableCell from '@mui/material/TableCell';
6
+ import TableContainer from '@mui/material/TableContainer';
7
+ import TableHead from '@mui/material/TableHead';
8
+ import TableRow from '@mui/material/TableRow';
10
9
  import React, { useState, useEffect } from 'react';
11
10
 
12
11
  /**
@@ -14,19 +13,11 @@ import React, { useState, useEffect } from 'react';
14
13
  */
15
14
  const ArgousSimpleTable = (props) => {
16
15
 
17
- const useStyles = makeStyles({
18
- table: {
19
- minWidth: 650,
20
- },
21
- });
22
-
23
16
  const [ctrlPgn, setCtrlPgn] = useState({ acao: '', pgAtl: 1, qtRegs: 0 });
24
17
  const [iniciado, setIniciado] = useState(false);
25
18
  const [tpOrdenacao, setTpOrdenacao] = useState({ tpOrdem: 'D' });
26
19
  const [listaChildrens, setListaChildrens] = useState([]);
27
20
 
28
- const classes = useStyles();
29
-
30
21
  function getCellContent(vlr, line) {
31
22
 
32
23
  if (props.columnOptions) {
@@ -114,13 +105,16 @@ const ArgousSimpleTable = (props) => {
114
105
  setListaChildrens(listaFilhos());
115
106
  setIniciado(true);
116
107
  }
108
+ // Pagination changes intentionally drive this effect; including the legacy
109
+ // props object would retrigger it on every render.
110
+ // eslint-disable-next-line react-hooks/exhaustive-deps
117
111
  }, [ctrlPgn]);
118
112
 
119
113
  return (
120
114
  <div>
121
115
  <TableContainer component={Paper}>
122
116
 
123
- <Table className={classes.table} size='small' style={{ tableLayout: 'fixed', width: '100%' }}>
117
+ <Table size='small' sx={{ minWidth: 650 }} style={{ tableLayout: 'fixed', width: '100%' }}>
124
118
  <TableHead>
125
119
  <TableRow>
126
120
  {props.head.map((coluna, index) => {
@@ -238,4 +232,4 @@ const ArgousSimpleTable = (props) => {
238
232
  );
239
233
  };
240
234
 
241
- export default ArgousSimpleTable;
235
+ export default ArgousSimpleTable;
@@ -3,7 +3,6 @@ import { createField, getField, setField } from '../../fieldsRedux';
3
3
  import { serverAction } from '../../utils/api';
4
4
  import PropTypes from 'prop-types';
5
5
  import React, { Component } from 'react';
6
- import { Scrollbars } from 'react-custom-scrollbars';
7
6
 
8
7
  /**
9
8
  * @deprecated
@@ -141,7 +140,7 @@ class AutoComplete extends Component {
141
140
  {typeMessage > -1 &&
142
141
 
143
142
  <div className={dropdownClassName ? dropdownClassName : 'argous-list-dropdown'} style={{ height: !showOnlyResults ? resultHeight : typeMessage === 0 ? resultHeight : 0, maxHeight: dropdownMaxHeight }}>
144
- <Scrollbars>
143
+ <div style={{ height: '100%', overflowY: 'auto' }}>
145
144
  {typeMessage > 0 && !showOnlyResults && (
146
145
  <div className='padding-top-sm padding-bottom-sm color999 text-center'>
147
146
  {typeMessage === 1 && 'Escreva para começar a buscar'}
@@ -158,7 +157,7 @@ class AutoComplete extends Component {
158
157
  onClick={this.selectResult}
159
158
  className='reset-margin'
160
159
  />
161
- </Scrollbars>
160
+ </div>
162
161
  </div>
163
162
  }
164
163
  </td>