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
@@ -1,177 +1,7 @@
1
- import { TableCellBaseProps, TableRowProps } from '@material-ui/core';
2
- import * as React from 'react';
3
-
4
- export declare interface ChildrenFunction {
5
- /**
6
- * Função sera executada quando for clicado em alguma linha, seu retorno aparecerá abaixo da linha clicada
7
- *
8
- * @param linhaOriginal - Linha original, antes de ser formatada pela função line
9
- * @param linha - Linha ja formatada pela função line
10
- * @param index - Índice da linha
11
- *
12
- * @returns {React.ReactNode} Componente react
13
- */
14
- (props: {linhaOriginal: Array<any> | object, linha: Array<any>, index:number}): React.ReactNode
15
- }
16
-
17
- export declare interface ColumnOptions {
18
- /**
19
- * Indice da coluna a ser modificada
20
- */
21
- alias: number,
22
- /**
23
- * JSX Customizado para a coluna
24
- *
25
- * @param itemFormatado - Item retornado pela funcao line no indice selecionado
26
- * @param linhaOriginal - Linha original, antes de ser formatada pela função line
27
- * @param linhaFormatada - Linha ja formatada pela função line
28
- * @param index - Índice da linha
29
- *
30
- * @returns {React.ReactNode} Componente react
31
- */
32
- customJsx: (props: {index: number, itemFormatado: any, linhaFormatada: Array<any>, linhaOriginal: Array<any> | object}) => React.ReactNode
33
- }
34
-
35
- export interface ArgousComplexTableBodyProps {
36
- /**
37
- * @ignore
38
- */
39
- children?: React.ReactNode | ChildrenFunction,
40
- /**
41
- * Função que converte a linha original em um array com os dados a serem exibidos
42
- *
43
- * @param linhaOriginal - linha a ser formatada
44
- *
45
- * @returns {Array<any>} Retorna array
46
- */
47
- line: (linhaOriginal: Array<Array<any> | Object>) => Array<any>,
48
- /**
49
- * Estilo que pode ser aplicado por linhas dependendo do conteúdo ou do índice da linha
50
- *
51
- * @param linhaOriginal - Linha original
52
- * @param linhaFormatada - Linha formatada
53
- * @param index - Índice da linha
54
- *
55
- * @returns {React.CSSProperties} Estilos para a linha
56
- */
57
- lineStyle?: (linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, index:number) => React.CSSProperties,
58
- /**
59
- * Classe que pode ser aplicada por linhas dependendo do conteúdo ou do índice da linha
60
- *
61
- * @param linhaFormatada - Linha formatada
62
- * @param linhaOriginal - Linha original
63
- * @param index - Índice da linha
64
- *
65
- * @returns {string} Classe para a linha
66
- */
67
- lineClass?: (linhaFormatada: Array<any>, linhaOriginal: Array<any> | object, index: number) => string,
68
- /**
69
- * Habilita a seleção de linhas da lista
70
- */
71
- enableCheck?: boolean,
72
- /**
73
- * Habilita o drag and drop das linhas
74
- */
75
- enableDrag?: boolean,
76
- /**
77
- * Função chamada ao clicar em uma linha
78
- *
79
- * @param evento - Evento do drop
80
- *
81
- * @returns {void} Sem retorno
82
- */
83
- onDrop?: (evento: React.DragEventHandler<HTMLDivElement>) => void,
84
- /**
85
- * Função que decide se a seleção de determinada linha está habilitada
86
- *
87
- * @param linhaOriginal - Linha original, antes de ser formatada pela função line
88
- * @param linhaFormatada - Linha ja formatada pela função line
89
- * @param index - Índice da linha
90
- *
91
- * @returns {boolean} Booleano
92
- */
93
- disableCheckIf?: (linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, index: number) => boolean,
94
- /**
95
- * Array de estilos para cada coluna da linha
96
- */
97
- columnStyles?: Array<React.CSSProperties>,
98
- /**
99
- * Função chamada ao clicar em uma linha
100
- *
101
- * @param evento - Evento do click
102
- * @param linhaOriginal - Linha original
103
- * @param linhaFormatada - Linha formatada
104
- * @param index - Índice da linha clicada
105
- *
106
- * @returns {void} Sem retorno
107
- */
108
- onClick?: (evento: EventTarget, linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, index:number) => void,
109
- /**
110
- * Ìndice da linha original a ser utilizado como ID primário na hora das seleções e que será retornado pelas actions
111
- */
112
- indexToSelect?: number | string,
113
- /**
114
- * Array de opções para as colunas
115
- *
116
- * @param alias - Índice da coluna
117
- * @param customJsx - Função que retorna o JSX customizado
118
- */
119
- columnOptions?: Array<ColumnOptions>,
120
- /**
121
- * Title que aparecerá ao dar hover na linha
122
- */
123
- lineTitle?: string,
124
- /**
125
- * Item da linha original a ser utilizado como key no map
126
- */
127
- customKey?: string | number,
128
- /**
129
- * Props a serem repassados para a celula da tabela
130
- *
131
- * @param index - Index da coluna sendo testada
132
- * @param coluna - Item da coluna sendo testada
133
- * @param linhaOriginal - Linha original sendo testada
134
- * @param linhaFormatada - Linha formatada sendo testada
135
- *
136
- * @returns {TableCellBaseProps} Props a serem passados para a coluna
137
- */
138
- columnProps?: (index: number, coluna: any, linhaOriginal: Array<any> | object, linhaFormatada: Array<any>) => TableCellBaseProps,
139
- /**
140
- * Props a serem repassados para a linha da tabela
141
- *
142
- * @param index - Index da coluna sendo testada
143
- * @param linhaOriginal - Linha original sendo testada
144
- * @param linhaFormatada - Linha formatada sendo testada
145
- * @param itensSelecionados - Linha formatada sendo testada
146
- *
147
- * @returns {TableRowProps} Props a serem passados para a linha
148
- */
149
- rowProps?: (props: {index: number, linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, itensSelecionados: any[]}) => TableRowProps
150
- }
151
-
152
- export interface ArgousComplexTableBodyPrivateProps extends ArgousComplexTableBodyProps {
153
- /**
154
- * Função que abre a linha clicada
155
- *
156
- * @param index - Índice da linha clicada
157
- *
158
- * @returns {void} Sem retorno
159
- */
160
- handleOpenClose: (index: number) => void,
161
- /**
162
- * Array de títulos para o cabeçalho da tabela
163
- */
164
- head?: Array<string>,
165
- /**
166
- * Índice aberto
167
- */
168
- open: number,
169
- /**
170
- * Array de dados que estão visíveis no momento
171
- */
172
- dadosMostrados: Array<Array<any> | Object>,
173
- }
174
-
175
- declare function ArgousComplexTableBody(props: ArgousComplexTableBodyPrivateProps): JSX.Element
176
-
177
- export default ArgousComplexTableBody;
1
+ export default ArgousComplexTableBody;
2
+ export function CustomTooltip({ title, children }: {
3
+ title: any;
4
+ children: any;
5
+ }): any;
6
+ declare const ArgousComplexTableBody: React.NamedExoticComponent<object>;
7
+ import React from 'react';
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
26
26
  }) : function(o, v) {
27
27
  o["default"] = v;
28
28
  });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
36
46
  var __rest = (this && this.__rest) || function (s, e) {
37
47
  var t = {};
38
48
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -44,66 +54,76 @@ var __rest = (this && this.__rest) || function (s, e) {
44
54
  }
45
55
  return t;
46
56
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
57
  Object.defineProperty(exports, "__esModule", { value: true });
51
58
  exports.CustomTooltip = void 0;
52
59
  var ArgousComplexTable_1 = require("../ArgousComplexTable/ArgousComplexTable");
53
- var core_1 = require("@material-ui/core");
54
- var clsx_1 = __importDefault(require("clsx"));
60
+ var material_1 = require("@mui/material");
61
+ var styles_1 = require("@mui/material/styles");
62
+ var clsx_1 = require("clsx");
55
63
  var lodash_1 = require("lodash");
56
64
  var react_1 = __importStar(require("react"));
57
65
  var md_1 = require("react-icons/md");
58
- var dist_1 = require("react-trello/dist/");
59
- var useStyles = (0, core_1.makeStyles)(function (theme) { return ({
60
- dragHandle: {
61
- cursor: 'n-resize'
62
- },
63
- hover: {
64
- '&:hover': {
65
- backgroundColor: (0, core_1.alpha)(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
66
- }
67
- },
68
- open: {
69
- backgroundColor: (0, core_1.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
70
- '&:hover': {
71
- backgroundColor: (0, core_1.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity * 2),
72
- }
73
- },
74
- semDados: {
75
- padding: theme.spacing(1),
76
- paddingLeft: theme.spacing(2),
77
- fontSize: '1rem',
78
- },
79
- group: {
80
- '&>td': {
81
- padding: '0px',
82
- // '&:hover':{
83
- // backgroundColor: theme.palette.action.selected
84
- // }
85
- }
86
- },
87
- loading: {
88
- textAlign: 'center',
89
- padding: '7px'
90
- },
91
- ghost: {
92
- borderBottom: '1px solid #0000',
93
- userSelect: 'none',
94
- '&:hover': {
95
- backgroundColor: '#0000 !important'
96
- }
97
- },
98
- tableCell: {
99
- overflow: 'hidden',
100
- whiteSpace: 'nowrap',
101
- textOverflow: 'ellipsis'
102
- }
103
- }); });
66
+ var DragAndDrop_1 = require("./DragAndDrop");
67
+ var classes = {
68
+ dragHandle: 'argous-complex-table-body-drag-handle',
69
+ hover: 'argous-complex-table-body-hover',
70
+ open: 'argous-complex-table-body-open',
71
+ semDados: 'argous-complex-table-body-sem-dados',
72
+ group: 'argous-complex-table-body-group',
73
+ loading: 'argous-complex-table-body-loading',
74
+ ghost: 'argous-complex-table-body-ghost',
75
+ tableCell: 'argous-complex-table-body-table-cell',
76
+ };
77
+ var tableBodyStyles = function (theme) {
78
+ var _a;
79
+ return (_a = {},
80
+ _a[".".concat(classes.dragHandle)] = {
81
+ cursor: 'n-resize'
82
+ },
83
+ _a[".".concat(classes.hover)] = {
84
+ '&:hover': {
85
+ backgroundColor: (0, styles_1.alpha)(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
86
+ }
87
+ },
88
+ _a[".".concat(classes.open)] = {
89
+ backgroundColor: (0, styles_1.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
90
+ '&:hover': {
91
+ backgroundColor: (0, styles_1.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity * 2),
92
+ }
93
+ },
94
+ _a[".".concat(classes.semDados)] = {
95
+ padding: theme.spacing(1),
96
+ paddingLeft: theme.spacing(2),
97
+ fontSize: '1rem',
98
+ },
99
+ _a[".".concat(classes.group)] = {
100
+ '&>td': {
101
+ padding: '0px',
102
+ // '&:hover':{
103
+ // backgroundColor: theme.palette.action.selected
104
+ // }
105
+ }
106
+ },
107
+ _a[".".concat(classes.loading)] = {
108
+ textAlign: 'center',
109
+ padding: '7px'
110
+ },
111
+ _a[".".concat(classes.ghost)] = {
112
+ borderBottom: '1px solid #0000',
113
+ userSelect: 'none',
114
+ '&:hover': {
115
+ backgroundColor: '#0000 !important'
116
+ }
117
+ },
118
+ _a[".".concat(classes.tableCell)] = {
119
+ overflow: 'hidden',
120
+ whiteSpace: 'nowrap',
121
+ textOverflow: 'ellipsis'
122
+ },
123
+ _a);
124
+ };
104
125
  var ArgousComplexTableBody = (0, react_1.memo)(function (_a) {
105
126
  var children = _a.children, line = _a.line, lineStyle = _a.lineStyle, handleOpenClose = _a.handleOpenClose, lineClass = _a.lineClass, enableCheck = _a.enableCheck, disableCheckIf = _a.disableCheckIf, columnStyles = _a.columnStyles, head = _a.head, onClick = _a.onClick, onDoubleClick = _a.onDoubleClick, indexToSelect = _a.indexToSelect, open = _a.open, dadosMostrados = _a.dadosMostrados, columnOptions = _a.columnOptions, lineTitle = _a.lineTitle, customKey = _a.customKey, columnProps = _a.columnProps, rowProps = _a.rowProps, enableDrag = _a.enableDrag, onDrop = _a.onDrop;
106
- var classes = useStyles();
107
127
  var _b = (0, react_1.useContext)(ArgousComplexTable_1.TableContext), lista = _b.lista, selected = _b.selected, dispatch = _b.dispatch, loading = _b.loading;
108
128
  var handleClick = function (name) {
109
129
  var selectedIndex = selected.indexOf(name);
@@ -127,49 +147,51 @@ var ArgousComplexTableBody = (0, react_1.memo)(function (_a) {
127
147
  }
128
148
  return coluna;
129
149
  };
130
- return (react_1.default.createElement(dist_1.Container, { dragHandleSelector: ".".concat(classes.dragHandle), onDrop: onDrop, render: function (containerRef) {
131
- var _a;
132
- return (react_1.default.createElement(core_1.TableBody, { innerRef: containerRef }, loading ? (react_1.default.createElement(core_1.TableRow, null,
133
- react_1.default.createElement(core_1.TableCell, { className: classes.loading, colSpan: (dadosMostrados === null || dadosMostrados === void 0 ? void 0 : dadosMostrados.length) && ((_a = line(dadosMostrados[0])) === null || _a === void 0 ? void 0 : _a.length) + (enableCheck ? 1 : 0) + (enableDrag ? 1 : 0) },
134
- react_1.default.createElement(core_1.CircularProgress, { disableShrink: true })))) : dadosMostrados.length ? dadosMostrados.map(function (linha, i) {
135
- var isItemSelected = isSelected(linha[indexToSelect]);
136
- var isItemOpen = i === open;
137
- var ghostRow = ((0, lodash_1.isArray)(linha)) ? !linha.some(function (value) { return !!value; }) : false;
138
- var _a = rowProps({ index: i, linhaOriginal: linha, linhaFormatada: line(linha), itensSelecionados: selected }) || {}, title = _a.title, rowProperties = __rest(_a, ["title"]);
139
- return react_1.default.createElement(dist_1.Draggable, { key: customKey ? lista[i][customKey] : i, render: function (draggableRef) {
140
- var _a, _b;
141
- var _c;
142
- return (
143
- //TODO criar proprio draggable pois esse remove classes do filho
144
- react_1.default.createElement(react_1.Fragment, null,
145
- react_1.default.createElement(exports.CustomTooltip, { title: (ghostRow) ? '' : (lineTitle || title) },
146
- react_1.default.createElement(core_1.TableRow, __assign({ component: dist_1.Draggable }, rowProperties, { className: (0, clsx_1.default)((_a = {},
147
- _a[classes.hover] = isItemSelected,
148
- _a[classes.open] = (isItemOpen && !!children),
149
- _a[classes.ghost] = ghostRow,
150
- _a), (ghostRow) ? '' : lineClass(line(linha), linha, i), rowProperties.className), hover: true, role: 'checkbox', tabIndex: -1, selected: isItemSelected, style: (lineStyle && !ghostRow) ? lineStyle(linha, line(linha), i) : undefined, onClick: (ghostRow) ? undefined : (onClick) ? function (e) { return onClick(e, linha, line(linha), i); } : (children) ? function () { return handleOpenClose(i); } : undefined, onDoubleClick: (ghostRow) ? undefined : (onDoubleClick) ? function (e) { return onDoubleClick(e, linha, line(linha), i); } : undefined, innerRef: draggableRef }),
151
- enableDrag && react_1.default.createElement(core_1.TableCell, { padding: 'checkbox' },
152
- react_1.default.createElement(core_1.Tooltip, { title: 'Arrastar' },
153
- react_1.default.createElement(core_1.IconButton, { size: 'small', className: classes.dragHandle },
154
- react_1.default.createElement(md_1.MdDragHandle, null)))),
155
- (enableCheck) && (react_1.default.createElement(core_1.TableCell, { padding: 'checkbox', className: (0, clsx_1.default)((_b = {}, _b[classes.ghost] = ghostRow, _b)) }, (!ghostRow) && (react_1.default.createElement(core_1.Checkbox, { checked: isItemSelected, disabled: (disableCheckIf) && disableCheckIf(linha, line(linha), i), onClick: function (event) {
156
- event.stopPropagation();
157
- handleClick(linha[indexToSelect]);
158
- } })))),
159
- (0, lodash_1.isArray)(line(linha)) && line(linha).map(function (coluna, j) { return ((ghostRow) ? (react_1.default.createElement(core_1.TableCell, { key: j, className: (0, clsx_1.default)(classes.tableCell, classes.ghost) }, "\u00A0")) : (react_1.default.createElement(core_1.TableCell, __assign({ key: j }, columnProps(j, coluna, linha, line(linha)), { style: columnStyles ? columnStyles[j] : undefined, className: classes.tableCell }), getCellContent(coluna, dadosMostrados[i], j, i)))); }))),
160
- children && (react_1.default.createElement(core_1.TableRow, { className: classes.group },
161
- react_1.default.createElement(core_1.TableCell, { colSpan: (dadosMostrados === null || dadosMostrados === void 0 ? void 0 : dadosMostrados.length) && ((_c = line(dadosMostrados[0])) === null || _c === void 0 ? void 0 : _c.length) + (enableCheck ? 1 : 0) + (enableDrag ? 1 : 0), style: { padding: open === i ? 8 : 0 }, className: 'argous-complex-table-group-cell' },
162
- react_1.default.createElement(core_1.Collapse, { in: open === i, mountOnEnter: true, unmountOnExit: true }, typeof children === 'function' ? children({ linha: line(linha), linhaOriginal: linha, index: i }) : children))))));
163
- } });
164
- }) : react_1.default.createElement(core_1.TableRow, null,
165
- react_1.default.createElement(core_1.Typography, { className: classes.semDados, component: 'td', variant: 'h6', colSpan: head.length + (enableCheck ? 1 : 0) }, "Nenhum dado a ser exibido"))));
166
- } }));
150
+ return (react_1.default.createElement(react_1.default.Fragment, null,
151
+ react_1.default.createElement(material_1.GlobalStyles, { styles: tableBodyStyles }),
152
+ react_1.default.createElement(DragAndDrop_1.Container, { dragHandleSelector: ".".concat(classes.dragHandle), onDrop: onDrop, render: function (containerRef) {
153
+ var _a;
154
+ return (react_1.default.createElement(material_1.TableBody, { ref: containerRef }, loading ? (react_1.default.createElement(material_1.TableRow, null,
155
+ react_1.default.createElement(material_1.TableCell, { className: classes.loading, colSpan: (dadosMostrados === null || dadosMostrados === void 0 ? void 0 : dadosMostrados.length) && ((_a = line(dadosMostrados[0])) === null || _a === void 0 ? void 0 : _a.length) + (enableCheck ? 1 : 0) + (enableDrag ? 1 : 0) },
156
+ react_1.default.createElement(material_1.CircularProgress, { disableShrink: true })))) : dadosMostrados.length ? dadosMostrados.map(function (linha, i) {
157
+ var isItemSelected = isSelected(linha[indexToSelect]);
158
+ var isItemOpen = i === open;
159
+ var ghostRow = ((0, lodash_1.isArray)(linha)) ? !linha.some(function (value) { return !!value; }) : false;
160
+ var _a = rowProps({ index: i, linhaOriginal: linha, linhaFormatada: line(linha), itensSelecionados: selected }) || {}, title = _a.title, rowProperties = __rest(_a, ["title"]);
161
+ return (react_1.default.createElement(DragAndDrop_1.Draggable, { key: customKey ? lista[i][customKey] : i, render: function (draggableRef) {
162
+ var _a, _b;
163
+ var _c;
164
+ return (
165
+ //TODO criar proprio draggable pois esse remove classes do filho
166
+ (react_1.default.createElement(react_1.Fragment, null,
167
+ react_1.default.createElement(exports.CustomTooltip, { title: (ghostRow) ? '' : (lineTitle || title) },
168
+ react_1.default.createElement(material_1.TableRow, __assign({ component: DragAndDrop_1.Draggable }, rowProperties, { className: (0, clsx_1.clsx)((_a = {},
169
+ _a[classes.hover] = isItemSelected,
170
+ _a[classes.open] = (isItemOpen && !!children),
171
+ _a[classes.ghost] = ghostRow,
172
+ _a), (ghostRow) ? '' : lineClass(line(linha), linha, i), rowProperties.className), hover: true, role: 'checkbox', tabIndex: -1, selected: isItemSelected, style: (lineStyle && !ghostRow) ? lineStyle(linha, line(linha), i) : undefined, onClick: (ghostRow) ? undefined : (onClick) ? function (e) { return onClick(e, linha, line(linha), i); } : (children) ? function () { return handleOpenClose(i); } : undefined, onDoubleClick: (ghostRow) ? undefined : (onDoubleClick) ? function (e) { return onDoubleClick(e, linha, line(linha), i); } : undefined, ref: draggableRef }),
173
+ enableDrag && react_1.default.createElement(material_1.TableCell, { padding: 'checkbox' },
174
+ react_1.default.createElement(material_1.Tooltip, { title: 'Arrastar' },
175
+ react_1.default.createElement(material_1.IconButton, { size: 'small', className: classes.dragHandle },
176
+ react_1.default.createElement(md_1.MdDragHandle, null)))),
177
+ (enableCheck) && (react_1.default.createElement(material_1.TableCell, { padding: 'checkbox', className: (0, clsx_1.clsx)((_b = {}, _b[classes.ghost] = ghostRow, _b)) }, (!ghostRow) && (react_1.default.createElement(material_1.Checkbox, { checked: isItemSelected, disabled: (disableCheckIf) && disableCheckIf(linha, line(linha), i), onClick: function (event) {
178
+ event.stopPropagation();
179
+ handleClick(linha[indexToSelect]);
180
+ } })))),
181
+ (0, lodash_1.isArray)(line(linha)) && line(linha).map(function (coluna, j) { return ((ghostRow) ? (react_1.default.createElement(material_1.TableCell, { key: j, className: (0, clsx_1.clsx)(classes.tableCell, classes.ghost) }, "\u00A0")) : (react_1.default.createElement(material_1.TableCell, __assign({ key: j }, columnProps(j, coluna, linha, line(linha)), { style: columnStyles ? columnStyles[j] : undefined, className: classes.tableCell }), getCellContent(coluna, dadosMostrados[i], j, i)))); }))),
182
+ children && (react_1.default.createElement(material_1.TableRow, { className: classes.group },
183
+ react_1.default.createElement(material_1.TableCell, { colSpan: (dadosMostrados === null || dadosMostrados === void 0 ? void 0 : dadosMostrados.length) && ((_c = line(dadosMostrados[0])) === null || _c === void 0 ? void 0 : _c.length) + (enableCheck ? 1 : 0) + (enableDrag ? 1 : 0), style: { padding: open === i ? 8 : 0 }, className: 'argous-complex-table-group-cell' },
184
+ react_1.default.createElement(material_1.Collapse, { in: open === i, mountOnEnter: true, unmountOnExit: true }, typeof children === 'function' ? children({ linha: line(linha), linhaOriginal: linha, index: i }) : children)))))));
185
+ } }));
186
+ }) : react_1.default.createElement(material_1.TableRow, null,
187
+ react_1.default.createElement(material_1.Typography, { className: classes.semDados, component: 'td', variant: 'h6', colSpan: head.length + (enableCheck ? 1 : 0) }, "Nenhum dado a ser exibido"))));
188
+ } })));
167
189
  });
168
190
  exports.default = ArgousComplexTableBody;
169
191
  var CustomTooltip = function (_a) {
170
192
  var title = _a.title, children = _a.children;
171
193
  if (title)
172
- return react_1.default.createElement(core_1.Tooltip, { arrow: true, title: title }, children);
194
+ return react_1.default.createElement(material_1.Tooltip, { arrow: true, title: title }, children);
173
195
  return children;
174
196
  };
175
197
  exports.CustomTooltip = CustomTooltip;
@@ -0,0 +1,37 @@
1
+ export class Container extends React.Component<any, any, any> {
2
+ constructor(props: any);
3
+ constructor(props: any, context: any);
4
+ componentDidMount(): void;
5
+ previousContainer: any;
6
+ container: any;
7
+ componentDidUpdate(): void;
8
+ componentWillUnmount(): void;
9
+ setRef: (element: any) => void;
10
+ containerElement: any;
11
+ getContainerOptions: () => {};
12
+ render(): any;
13
+ }
14
+ export namespace Container {
15
+ namespace propTypes {
16
+ let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
+ let render: PropTypes.Requireable<(...args: any[]) => any>;
18
+ let style: PropTypes.Requireable<object>;
19
+ }
20
+ }
21
+ export class Draggable extends React.Component<any, any, any> {
22
+ constructor(props: any);
23
+ constructor(props: any, context: any);
24
+ render(): React.JSX.Element;
25
+ }
26
+ export namespace Draggable {
27
+ export namespace propTypes_1 {
28
+ let children_1: PropTypes.Requireable<PropTypes.ReactNodeLike>;
29
+ export { children_1 as children };
30
+ export let className: PropTypes.Requireable<string>;
31
+ let render_1: PropTypes.Requireable<(...args: any[]) => any>;
32
+ export { render_1 as render };
33
+ }
34
+ export { propTypes_1 as propTypes };
35
+ }
36
+ import React from 'react';
37
+ import PropTypes from 'prop-types';
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __assign = (this && this.__assign) || function () {
18
+ __assign = Object.assign || function(t) {
19
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
20
+ s = arguments[i];
21
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
+ t[p] = s[p];
23
+ }
24
+ return t;
25
+ };
26
+ return __assign.apply(this, arguments);
27
+ };
28
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
29
+ if (k2 === undefined) k2 = k;
30
+ var desc = Object.getOwnPropertyDescriptor(m, k);
31
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
32
+ desc = { enumerable: true, get: function() { return m[k]; } };
33
+ }
34
+ Object.defineProperty(o, k2, desc);
35
+ }) : (function(o, m, k, k2) {
36
+ if (k2 === undefined) k2 = k;
37
+ o[k2] = m[k];
38
+ }));
39
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
40
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
41
+ }) : function(o, v) {
42
+ o["default"] = v;
43
+ });
44
+ var __importStar = (this && this.__importStar) || (function () {
45
+ var ownKeys = function(o) {
46
+ ownKeys = Object.getOwnPropertyNames || function (o) {
47
+ var ar = [];
48
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
49
+ return ar;
50
+ };
51
+ return ownKeys(o);
52
+ };
53
+ return function (mod) {
54
+ if (mod && mod.__esModule) return mod;
55
+ var result = {};
56
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
57
+ __setModuleDefault(result, mod);
58
+ return result;
59
+ };
60
+ })();
61
+ var __importDefault = (this && this.__importDefault) || function (mod) {
62
+ return (mod && mod.__esModule) ? mod : { "default": mod };
63
+ };
64
+ Object.defineProperty(exports, "__esModule", { value: true });
65
+ exports.Draggable = exports.Container = void 0;
66
+ var prop_types_1 = __importDefault(require("prop-types"));
67
+ var react_1 = __importStar(require("react"));
68
+ var trello_smooth_dnd_1 = __importStar(require("trello-smooth-dnd"));
69
+ trello_smooth_dnd_1.default.dropHandler = trello_smooth_dnd_1.dropHandlers.reactDropHandler().handler;
70
+ trello_smooth_dnd_1.default.wrapChild = function (child) { return child; };
71
+ var Container = /** @class */ (function (_super) {
72
+ __extends(Container, _super);
73
+ function Container() {
74
+ var _this = _super !== null && _super.apply(this, arguments) || this;
75
+ _this.setRef = function (element) {
76
+ _this.containerElement = element;
77
+ };
78
+ _this.getContainerOptions = function () {
79
+ var functionProps = {};
80
+ var callbacks = [
81
+ 'onDragStart',
82
+ 'onDragEnd',
83
+ 'onDrop',
84
+ 'getChildPayload',
85
+ 'shouldAnimateDrop',
86
+ 'shouldAcceptDrop',
87
+ 'onDragEnter',
88
+ 'onDragLeave',
89
+ 'render',
90
+ 'onDropReady',
91
+ 'getGhostParent'
92
+ ];
93
+ callbacks.forEach(function (callback) {
94
+ if (_this.props[callback]) {
95
+ functionProps[callback] = function () {
96
+ var _a;
97
+ var parameters = [];
98
+ for (var _i = 0; _i < arguments.length; _i++) {
99
+ parameters[_i] = arguments[_i];
100
+ }
101
+ return (_a = _this.props)[callback].apply(_a, parameters);
102
+ };
103
+ }
104
+ });
105
+ return __assign(__assign({}, _this.props), functionProps);
106
+ };
107
+ return _this;
108
+ }
109
+ Container.prototype.componentDidMount = function () {
110
+ this.previousContainer = this.containerElement;
111
+ this.container = (0, trello_smooth_dnd_1.default)(this.containerElement, this.getContainerOptions());
112
+ };
113
+ Container.prototype.componentDidUpdate = function () {
114
+ if (this.previousContainer && this.previousContainer !== this.containerElement) {
115
+ this.container.dispose();
116
+ this.container = (0, trello_smooth_dnd_1.default)(this.containerElement, this.getContainerOptions());
117
+ this.previousContainer = this.containerElement;
118
+ }
119
+ };
120
+ Container.prototype.componentWillUnmount = function () {
121
+ this.container.dispose();
122
+ };
123
+ Container.prototype.render = function () {
124
+ if (this.props.render) {
125
+ return this.props.render(this.setRef);
126
+ }
127
+ return react_1.default.createElement("div", { style: this.props.style, ref: this.setRef }, this.props.children);
128
+ };
129
+ return Container;
130
+ }(react_1.Component));
131
+ exports.Container = Container;
132
+ Container.propTypes = {
133
+ children: prop_types_1.default.node,
134
+ render: prop_types_1.default.func,
135
+ style: prop_types_1.default.object
136
+ };
137
+ var Draggable = /** @class */ (function (_super) {
138
+ __extends(Draggable, _super);
139
+ function Draggable() {
140
+ return _super !== null && _super.apply(this, arguments) || this;
141
+ }
142
+ Draggable.prototype.render = function () {
143
+ if (this.props.render) {
144
+ return react_1.default.cloneElement(this.props.render(), { className: trello_smooth_dnd_1.constants.wrapperClass });
145
+ }
146
+ var className = "".concat(this.props.className ? "".concat(this.props.className, " ") : '').concat(trello_smooth_dnd_1.constants.wrapperClass);
147
+ return react_1.default.createElement("div", __assign({}, this.props, { className: className }), this.props.children);
148
+ };
149
+ return Draggable;
150
+ }(react_1.Component));
151
+ exports.Draggable = Draggable;
152
+ Draggable.propTypes = {
153
+ children: prop_types_1.default.node,
154
+ className: prop_types_1.default.string,
155
+ render: prop_types_1.default.func
156
+ };
@@ -1,2 +1 @@
1
- export { default } from './ArgousComplexTableBody';
2
- export * from './ArgousComplexTableBody';
1
+ export { default } from "./ArgousComplexTableBody";