argous 1.2.247 → 1.3.3

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 (226) 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.js +17 -7
  7. package/dist/components/ArgousAction/ArgousAction.js +17 -7
  8. package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
  9. package/dist/components/ArgousAvatar/ArgousAvatar.js +44 -60
  10. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
  11. package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +107 -81
  12. package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
  13. package/dist/components/ArgousComplexTable/ArgousComplexTable.js +39 -52
  14. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
  15. package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +119 -97
  16. package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
  17. package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
  18. package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +64 -47
  19. package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +55 -37
  20. package/dist/components/ArgousInput/ArgousInput.js +19 -9
  21. package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
  22. package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
  23. package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +28 -22
  24. package/dist/components/AutoComplete/AutoComplete.js +18 -9
  25. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
  26. package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +226 -174
  27. package/dist/components/BarChart/BarChart.js +17 -7
  28. package/dist/components/BarraFerramentas/BarraFerramentas.js +119 -105
  29. package/dist/components/Button/Button.js +17 -7
  30. package/dist/components/Cabecalho/Cabecalho.js +17 -7
  31. package/dist/components/Calendar/Calendar.js +24 -41
  32. package/dist/components/Cam/Cam.js +19 -9
  33. package/dist/components/Carousel/Carousel.js +113 -103
  34. package/dist/components/CartaoUsuario/CartaoUsuario.js +36 -26
  35. package/dist/components/Collapse/Collapse.d.ts +3 -3
  36. package/dist/components/Collapse/Collapse.js +121 -71
  37. package/dist/components/Compartilhar/Compartilhar.js +70 -65
  38. package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
  39. package/dist/components/ConfirmModal/BasicModal.js +8 -8
  40. package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
  41. package/dist/components/ConfirmModal/ModalProvider.js +17 -7
  42. package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
  43. package/dist/components/ConfirmModal/WrapperModal.js +5 -5
  44. package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
  45. package/dist/components/ContactValidationInput/ContactValidationInput.js +105 -80
  46. package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
  47. package/dist/components/ContactValidationInput/SealModal.js +13 -20
  48. package/dist/components/Document/Icons.d.ts +2 -2
  49. package/dist/components/Document/Icons.js +33 -16
  50. package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
  51. package/dist/components/Document/ModalVisualizacaoDocumentos.js +33 -17
  52. package/dist/components/Document/Visualizacao.d.ts +1 -1
  53. package/dist/components/Document/Visualizacao.js +48 -34
  54. package/dist/components/DropArea/DropArea.js +27 -12
  55. package/dist/components/DropArea/Html5FileSelector.js +6 -7
  56. package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
  57. package/dist/components/Editor/ScriptLoader2.js +2 -2
  58. package/dist/components/Editor/Utils.d.ts +3 -3
  59. package/dist/components/Editor/Utils.js +2 -2
  60. package/dist/components/Editor/components/Editor.d.ts +1 -1
  61. package/dist/components/Editor/components/Editor.js +18 -9
  62. package/dist/components/Editor/components/EditorPropTypes.js +17 -7
  63. package/dist/components/FilePreparer/FilePreparer.d.ts +1 -1
  64. package/dist/components/FilePreparer/FilePreparer.js +105 -88
  65. package/dist/components/FileUploader/FileUploader.js +33 -22
  66. package/dist/components/FormVisualizer/FormVisualizer.d.ts +5 -7
  67. package/dist/components/FormVisualizer/FormVisualizer.js +92 -61
  68. package/dist/components/HalfGauge/HalfGauge.js +87 -135
  69. package/dist/components/Highlight/Highlight.js +23 -12
  70. package/dist/components/ImageResize/ImageResize.d.ts +1 -1
  71. package/dist/components/ImageResize/ImageResize.js +79 -85
  72. package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
  73. package/dist/components/ImageResizeButton/ImageResizeButton.js +19 -9
  74. package/dist/components/Input/Input.js +19 -9
  75. package/dist/components/InputTags/InputTags.js +22 -13
  76. package/dist/components/ListSelect/ListSelect.js +17 -7
  77. package/dist/components/MaterialButton/MaterialButton.d.ts +2 -4
  78. package/dist/components/MaterialButton/MaterialButton.js +56 -125
  79. package/dist/components/MenuBar/MenuBar.js +17 -7
  80. package/dist/components/MonthPicker/MonthPicker.js +20 -10
  81. package/dist/components/MultipleSelect/MultipleSelect.js +17 -7
  82. package/dist/components/OtpInput/OtpInput.d.ts +1 -1
  83. package/dist/components/OtpInput/OtpInput.js +71 -58
  84. package/dist/components/OutputText/OutputText.js +17 -7
  85. package/dist/components/Pagination/Pagination.js +17 -7
  86. package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
  87. package/dist/components/PercentageDisplay/PercentageDisplay.js +24 -92
  88. package/dist/components/Programa/PageCodeEasterEgg.d.ts +5 -4
  89. package/dist/components/Programa/PageCodeEasterEgg.js +41 -32
  90. package/dist/components/Programa/Programa.d.ts +2 -2
  91. package/dist/components/Programa/Programa.js +50 -28
  92. package/dist/components/Programa/Tab.d.ts +2 -2
  93. package/dist/components/Programa/TabNavigationRail.d.ts +3 -3
  94. package/dist/components/Programa/TabNavigationRail.js +13 -55
  95. package/dist/components/ProgressBar/ProgressBar.js +17 -7
  96. package/dist/components/Select/Select.js +17 -7
  97. package/dist/components/SimpleTable/SimpleTable.js +17 -7
  98. package/dist/components/Stepper/Stepper.d.ts +1 -1
  99. package/dist/components/Stepper/Stepper.js +194 -179
  100. package/dist/components/TablePicker/TablePicker.js +37 -12
  101. package/dist/components/Tabs/Tabs.js +17 -7
  102. package/dist/components/TextArea/TextArea.js +17 -7
  103. package/dist/components/TextToHtml/Cursor.d.ts +1 -1
  104. package/dist/components/TextToHtml/Cursor.js +17 -7
  105. package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
  106. package/dist/components/TextToHtml/TextStyles.js +51 -44
  107. package/dist/components/TextToHtml/TextToHtml.js +37 -17
  108. package/dist/components/ThreadLog/ThreadLog.js +19 -9
  109. package/dist/components/UserCard/UserCard.js +36 -26
  110. package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
  111. package/dist/components/UtilAutoComplete/UtilAutoComplete.js +26 -16
  112. package/dist/components/UtilTextField/UtilTextField.d.ts +1 -1
  113. package/dist/components/UtilTextField/UtilTextField.js +26 -14
  114. package/dist/components/Zoom/Zoom.js +23 -24
  115. package/dist/fieldsRedux/createField.js +17 -7
  116. package/dist/fieldsRedux/fieldsRedux.js +19 -9
  117. package/dist/fieldsRedux/passFields.js +17 -7
  118. package/dist/reducers/index.d.ts +98 -2
  119. package/dist/utils/api.js +32 -15
  120. package/dist/utils/config.js +2 -3
  121. package/dist/utils/index.d.ts +3 -3
  122. package/dist/utils/index.js +68 -54
  123. package/dist/utils/store.js +2 -3
  124. package/lib/api/WebSocket.js +11 -12
  125. package/lib/api/index.js +14 -14
  126. package/lib/api/ws.js +48 -4
  127. package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
  128. package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
  129. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
  130. package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
  131. package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
  132. package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
  133. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
  134. package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
  135. package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
  136. package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
  137. package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
  138. package/lib/components/ArgousInput/ArgousInput.js +2 -2
  139. package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
  140. package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
  141. package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
  142. package/lib/components/AutoComplete/AutoComplete.js +2 -3
  143. package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
  144. package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
  145. package/lib/components/BarraFerramentas/BarraFerramentas.js +32 -21
  146. package/lib/components/Calendar/Calendar.js +7 -42
  147. package/lib/components/Carousel/Carousel.js +42 -27
  148. package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
  149. package/lib/components/Collapse/Collapse.d.ts +3 -3
  150. package/lib/components/Collapse/Collapse.js +92 -57
  151. package/lib/components/Compartilhar/Compartilhar.js +47 -46
  152. package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
  153. package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
  154. package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
  155. package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
  156. package/lib/components/ContactValidationInput/SealModal.js +38 -32
  157. package/lib/components/Document/Icons.js +14 -6
  158. package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
  159. package/lib/components/Document/Visualizacao.js +31 -25
  160. package/lib/components/DropArea/DropArea.js +9 -3
  161. package/lib/components/Editor/ScriptLoader2.ts +3 -3
  162. package/lib/components/Editor/Utils.ts +3 -3
  163. package/lib/components/Editor/components/Editor.tsx +1 -1
  164. package/lib/components/Editor/tinymce/README.md +73 -0
  165. package/lib/components/Editor/tinymce/langs/README.md +3 -0
  166. package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
  167. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
  168. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
  169. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
  170. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
  171. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
  172. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
  173. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
  174. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
  175. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
  176. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
  177. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
  178. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
  179. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
  180. package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
  181. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
  182. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
  183. package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
  184. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
  185. package/lib/components/Editor/tinymce/tinymce.js +12 -12
  186. package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
  187. package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
  188. package/lib/components/FilePreparer/FilePreparer.js +112 -108
  189. package/lib/components/FileUploader/FileUploader.js +8 -7
  190. package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
  191. package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
  192. package/lib/components/HalfGauge/HalfGauge.js +87 -85
  193. package/lib/components/Highlight/Highlight.js +4 -4
  194. package/lib/components/ImageResize/ImageResize.d.ts +1 -1
  195. package/lib/components/ImageResize/ImageResize.js +123 -118
  196. package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
  197. package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
  198. package/lib/components/Input/Input.js +2 -2
  199. package/lib/components/InputTags/InputTags.js +6 -7
  200. package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
  201. package/lib/components/MaterialButton/MaterialButton.js +50 -125
  202. package/lib/components/MonthPicker/MonthPicker.js +2 -2
  203. package/lib/components/OtpInput/OtpInput.tsx +77 -69
  204. package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
  205. package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
  206. package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
  207. package/lib/components/Programa/Programa.d.ts +2 -2
  208. package/lib/components/Programa/Programa.js +21 -5
  209. package/lib/components/Programa/Tab.ts +4 -2
  210. package/lib/components/Programa/TabNavigationRail.js +9 -31
  211. package/lib/components/Stepper/Stepper.d.ts +1 -1
  212. package/lib/components/Stepper/Stepper.js +222 -190
  213. package/lib/components/TablePicker/TablePicker.js +11 -6
  214. package/lib/components/TextToHtml/TextStyles.js +42 -42
  215. package/lib/components/TextToHtml/TextToHtml.js +102 -92
  216. package/lib/components/ThreadLog/ThreadLog.js +1 -1
  217. package/lib/components/UserCard/UserCard.js +6 -6
  218. package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
  219. package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
  220. package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
  221. package/lib/components/UtilTextField/UtilTextField.js +18 -16
  222. package/lib/components/Zoom/Zoom.js +6 -3
  223. package/lib/utils/api.ts +1 -1
  224. package/lib/utils/index.ts +10 -8
  225. package/package.json +56 -56
  226. package/.gitlab-ci.yml +0 -21
@@ -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>
@@ -1,8 +1,7 @@
1
- import { TextFieldProps } from '@material-ui/core';
2
- import { AutocompleteProps, AutocompleteChangeDetails } from '@material-ui/lab';
1
+ import { TextFieldProps, AutocompleteProps, AutocompleteChangeDetails } from '@mui/material';
3
2
  import * as React from 'react';
4
3
 
5
- export interface AutoCompleteFavoritesProps extends Omit<AutocompleteProps<any, false, false, false>, 'getOptionLabel'>{
4
+ export interface AutoCompleteFavoritesProps extends Omit<AutocompleteProps<any, false, false, false>, 'getOptionLabel' | 'onChange'>{
6
5
  /**
7
6
  * Valor do campo
8
7
  */
@@ -98,4 +97,4 @@ export interface AutoCompleteFavoritesProps extends Omit<AutocompleteProps<any,
98
97
 
99
98
  declare function AutoCompleteFavorites(props: AutoCompleteFavoritesProps): JSX.Element
100
99
 
101
- export default AutoCompleteFavorites;
100
+ export default AutoCompleteFavorites;