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.
- package/dist/api/WebSocket.d.ts +18 -10
- package/dist/api/WebSocket.js +26 -18
- package/dist/api/index.js +54 -43
- package/dist/api/ws.d.ts +1 -1
- package/dist/api/ws.js +44 -3
- package/dist/components/Alert/Alert.d.ts +19 -5
- package/dist/components/Alert/Alert.js +17 -7
- package/dist/components/Alert/index.d.ts +1 -2
- package/dist/components/ArgousAction/ArgousAction.d.ts +26 -5
- package/dist/components/ArgousAction/ArgousAction.js +17 -7
- package/dist/components/ArgousAction/index.d.ts +1 -2
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +3 -14
- package/dist/components/ArgousAvatar/ArgousAvatar.js +44 -60
- package/dist/components/ArgousAvatar/index.d.ts +1 -2
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +3 -76
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +107 -81
- package/dist/components/ArgousComplexPagination/index.d.ts +1 -2
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +3 -158
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +39 -52
- package/dist/components/ArgousComplexTable/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +7 -177
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +119 -97
- package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
- package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
- package/dist/components/ArgousComplexTableBody/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +3 -73
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +64 -47
- package/dist/components/ArgousComplexTableHead/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +3 -58
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +55 -37
- package/dist/components/ArgousComplexTableToolbar/index.d.ts +1 -2
- package/dist/components/ArgousInput/ArgousInput.d.ts +2 -8
- package/dist/components/ArgousInput/ArgousInput.js +19 -9
- package/dist/components/ArgousInput/index.d.ts +1 -2
- package/dist/components/ArgousPagination/ArgousPagination.d.ts +3 -5
- package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
- package/dist/components/ArgousPagination/index.d.ts +1 -2
- package/dist/components/ArgousProgressBar/ArgousProgressBar.d.ts +31 -21
- package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
- package/dist/components/ArgousProgressBar/index.d.ts +1 -2
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +3 -5
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +28 -22
- package/dist/components/ArgousSimpleTable/index.d.ts +1 -2
- package/dist/components/AutoComplete/AutoComplete.d.ts +2 -8
- package/dist/components/AutoComplete/AutoComplete.js +18 -9
- package/dist/components/AutoComplete/index.d.ts +1 -2
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +28 -101
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +226 -174
- package/dist/components/AutoCompleteFavorites/index.d.ts +1 -2
- package/dist/components/BarChart/BarChart.d.ts +29 -5
- package/dist/components/BarChart/BarChart.js +17 -7
- package/dist/components/BarChart/index.d.ts +1 -2
- package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +54 -53
- package/dist/components/BarraFerramentas/BarraFerramentas.js +119 -105
- package/dist/components/BarraFerramentas/index.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +54 -5
- package/dist/components/Button/Button.js +17 -7
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Cabecalho/Cabecalho.d.ts +2 -8
- package/dist/components/Cabecalho/Cabecalho.js +17 -7
- package/dist/components/Cabecalho/index.d.ts +1 -2
- package/dist/components/Calendar/Calendar.d.ts +2 -8
- package/dist/components/Calendar/Calendar.js +24 -41
- package/dist/components/Calendar/index.d.ts +1 -2
- package/dist/components/Cam/Cam.d.ts +24 -24
- package/dist/components/Cam/Cam.js +19 -9
- package/dist/components/Cam/index.d.ts +1 -2
- package/dist/components/Carousel/Carousel.d.ts +21 -71
- package/dist/components/Carousel/Carousel.js +113 -103
- package/dist/components/Carousel/index.d.ts +1 -2
- package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +6 -9
- package/dist/components/CartaoUsuario/CartaoUsuario.js +36 -26
- package/dist/components/CartaoUsuario/index.d.ts +1 -2
- package/dist/components/Collapse/Collapse.d.ts +55 -56
- package/dist/components/Collapse/Collapse.js +121 -71
- package/dist/components/Collapse/index.d.ts +1 -3
- package/dist/components/Compartilhar/Compartilhar.d.ts +3 -7
- package/dist/components/Compartilhar/Compartilhar.js +70 -65
- package/dist/components/Compartilhar/index.d.ts +1 -2
- package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
- package/dist/components/ConfirmModal/BasicModal.js +8 -8
- package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
- package/dist/components/ConfirmModal/ModalProvider.js +17 -7
- package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
- package/dist/components/ConfirmModal/WrapperModal.js +5 -5
- package/dist/components/ConfirmModal/index.d.ts +6 -20
- package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +17 -62
- package/dist/components/ContactValidationInput/ContactValidationInput.js +105 -80
- package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
- package/dist/components/ContactValidationInput/SealModal.js +13 -20
- package/dist/components/ContactValidationInput/index.d.ts +1 -2
- package/dist/components/Document/Icons.d.ts +2 -2
- package/dist/components/Document/Icons.js +33 -16
- package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
- package/dist/components/Document/ModalVisualizacaoDocumentos.js +33 -17
- package/dist/components/Document/Visualizacao.d.ts +1 -1
- package/dist/components/Document/Visualizacao.js +48 -34
- package/dist/components/Document/index.d.ts +3 -3
- package/dist/components/DropArea/DropArea.d.ts +8 -21
- package/dist/components/DropArea/DropArea.js +27 -12
- package/dist/components/DropArea/Html5FileSelector.js +6 -7
- package/dist/components/DropArea/index.d.ts +1 -2
- package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
- package/dist/components/Editor/ScriptLoader2.js +2 -2
- package/dist/components/Editor/Utils.d.ts +3 -3
- package/dist/components/Editor/Utils.js +2 -2
- package/dist/components/Editor/components/Editor.d.ts +1 -1
- package/dist/components/Editor/components/Editor.js +18 -9
- package/dist/components/Editor/components/EditorPropTypes.js +17 -7
- package/dist/components/FilePreparer/FilePreparer.d.ts +16 -26
- package/dist/components/FilePreparer/FilePreparer.js +105 -88
- package/dist/components/FilePreparer/index.d.ts +1 -2
- package/dist/components/FileUploader/FileUploader.d.ts +21 -8
- package/dist/components/FileUploader/FileUploader.js +33 -22
- package/dist/components/FileUploader/index.d.ts +1 -2
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +8 -92
- package/dist/components/FormVisualizer/FormVisualizer.js +92 -61
- package/dist/components/FormVisualizer/index.d.ts +1 -2
- package/dist/components/HalfGauge/HalfGauge.d.ts +23 -82
- package/dist/components/HalfGauge/HalfGauge.js +87 -135
- package/dist/components/HalfGauge/index.d.ts +1 -2
- package/dist/components/Highlight/Highlight.d.ts +20 -7
- package/dist/components/Highlight/Highlight.js +23 -12
- package/dist/components/Highlight/index.d.ts +1 -2
- package/dist/components/ImageResize/ImageResize.d.ts +8 -28
- package/dist/components/ImageResize/ImageResize.js +79 -85
- package/dist/components/ImageResize/index.d.ts +1 -2
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +2 -25
- package/dist/components/ImageResizeButton/ImageResizeButton.js +19 -9
- package/dist/components/ImageResizeButton/index.d.ts +1 -2
- package/dist/components/Input/Input.d.ts +2 -8
- package/dist/components/Input/Input.js +19 -9
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputTags/InputTags.d.ts +2 -8
- package/dist/components/InputTags/InputTags.js +22 -13
- package/dist/components/InputTags/index.d.ts +1 -2
- package/dist/components/ListSelect/ListSelect.d.ts +2 -8
- package/dist/components/ListSelect/ListSelect.js +17 -7
- package/dist/components/ListSelect/index.d.ts +1 -2
- package/dist/components/MaterialButton/MaterialButton.d.ts +30 -12
- package/dist/components/MaterialButton/MaterialButton.js +56 -125
- package/dist/components/MaterialButton/index.d.ts +1 -2
- package/dist/components/MenuBar/MenuBar.d.ts +2 -8
- package/dist/components/MenuBar/MenuBar.js +17 -7
- package/dist/components/MenuBar/index.d.ts +1 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +2 -8
- package/dist/components/MonthPicker/MonthPicker.js +20 -10
- package/dist/components/MonthPicker/index.d.ts +1 -2
- package/dist/components/MultipleSelect/MultipleSelect.d.ts +2 -8
- package/dist/components/MultipleSelect/MultipleSelect.js +17 -7
- package/dist/components/MultipleSelect/index.d.ts +1 -2
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +71 -58
- package/dist/components/OtpInput/index.d.ts +1 -2
- package/dist/components/OutputText/OutputText.d.ts +2 -8
- package/dist/components/OutputText/OutputText.js +17 -7
- package/dist/components/OutputText/index.d.ts +1 -2
- package/dist/components/Pagination/Pagination.d.ts +16 -5
- package/dist/components/Pagination/Pagination.js +17 -7
- package/dist/components/Pagination/index.d.ts +1 -2
- package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +14 -51
- package/dist/components/PercentageDisplay/PercentageDisplay.js +24 -92
- package/dist/components/PercentageDisplay/index.d.ts +1 -2
- package/dist/components/Programa/PageCodeEasterEgg.d.ts +5 -4
- package/dist/components/Programa/PageCodeEasterEgg.js +41 -32
- package/dist/components/Programa/Programa.d.ts +72 -47
- package/dist/components/Programa/Programa.js +50 -28
- package/dist/components/Programa/Tab.d.ts +2 -2
- package/dist/components/Programa/TabNavigationRail.d.ts +3 -3
- package/dist/components/Programa/TabNavigationRail.js +13 -55
- package/dist/components/Programa/index.d.ts +1 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +20 -5
- package/dist/components/ProgressBar/ProgressBar.js +17 -7
- package/dist/components/ProgressBar/index.d.ts +1 -2
- package/dist/components/Select/Select.d.ts +2 -8
- package/dist/components/Select/Select.js +17 -7
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts +27 -10
- package/dist/components/SimpleTable/SimpleTable.js +17 -7
- package/dist/components/SimpleTable/index.d.ts +1 -2
- package/dist/components/Stepper/Stepper.d.ts +25 -68
- package/dist/components/Stepper/Stepper.js +194 -179
- package/dist/components/Stepper/index.d.ts +1 -2
- package/dist/components/TablePicker/TablePicker.d.ts +3 -8
- package/dist/components/TablePicker/TablePicker.js +37 -12
- package/dist/components/TablePicker/index.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +25 -5
- package/dist/components/Tabs/Tabs.js +17 -7
- package/dist/components/Tabs/index.d.ts +1 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -8
- package/dist/components/TextArea/TextArea.js +17 -7
- package/dist/components/TextArea/index.d.ts +1 -2
- package/dist/components/TextToHtml/Cursor.d.ts +1 -1
- package/dist/components/TextToHtml/Cursor.js +17 -7
- package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
- package/dist/components/TextToHtml/TextStyles.js +51 -44
- package/dist/components/TextToHtml/TextToHtml.d.ts +32 -36
- package/dist/components/TextToHtml/TextToHtml.js +37 -17
- package/dist/components/TextToHtml/index.d.ts +1 -2
- package/dist/components/ThreadLog/ThreadLog.d.ts +36 -5
- package/dist/components/ThreadLog/ThreadLog.js +19 -9
- package/dist/components/ThreadLog/index.d.ts +1 -2
- package/dist/components/UserCard/UserCard.d.ts +6 -15
- package/dist/components/UserCard/UserCard.js +36 -26
- package/dist/components/UserCard/index.d.ts +1 -2
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +32 -97
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +26 -16
- package/dist/components/UtilAutoComplete/index.d.ts +1 -2
- package/dist/components/UtilTextField/UtilTextField.d.ts +7 -23
- package/dist/components/UtilTextField/UtilTextField.js +26 -14
- package/dist/components/UtilTextField/index.d.ts +1 -2
- package/dist/components/Zoom/Zoom.d.ts +7 -15
- package/dist/components/Zoom/Zoom.js +23 -24
- package/dist/components/Zoom/index.d.ts +1 -2
- package/dist/components/index.d.ts +118 -180
- package/dist/fieldsRedux/createField.d.ts +6 -6
- package/dist/fieldsRedux/createField.js +17 -7
- package/dist/fieldsRedux/fieldsRedux.d.ts +3 -58
- package/dist/fieldsRedux/fieldsRedux.js +19 -9
- package/dist/fieldsRedux/index.d.ts +17 -2
- package/dist/fieldsRedux/passFields.d.ts +2 -0
- package/dist/fieldsRedux/passFields.js +17 -7
- package/dist/reducers/index.d.ts +98 -2
- package/dist/utils/api.js +32 -15
- package/dist/utils/config.js +2 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +68 -54
- package/dist/utils/store.js +2 -3
- package/lib/api/WebSocket.js +11 -12
- package/lib/api/index.js +14 -14
- package/lib/api/ws.js +48 -4
- package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
- package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
- package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
- package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
- package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
- package/lib/components/ArgousInput/ArgousInput.js +2 -2
- package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
- package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
- package/lib/components/AutoComplete/AutoComplete.js +2 -3
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
- package/lib/components/BarraFerramentas/BarraFerramentas.js +32 -21
- package/lib/components/Calendar/Calendar.js +7 -42
- package/lib/components/Carousel/Carousel.js +42 -27
- package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
- package/lib/components/Collapse/Collapse.d.ts +3 -3
- package/lib/components/Collapse/Collapse.js +92 -57
- package/lib/components/Compartilhar/Compartilhar.js +47 -46
- package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
- package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
- package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
- package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
- package/lib/components/ContactValidationInput/SealModal.js +38 -32
- package/lib/components/Document/Icons.js +14 -6
- package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
- package/lib/components/Document/Visualizacao.js +31 -25
- package/lib/components/DropArea/DropArea.js +9 -3
- package/lib/components/Editor/ScriptLoader2.ts +3 -3
- package/lib/components/Editor/Utils.ts +3 -3
- package/lib/components/Editor/components/Editor.tsx +1 -1
- package/lib/components/Editor/tinymce/README.md +73 -0
- package/lib/components/Editor/tinymce/langs/README.md +3 -0
- package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
- package/lib/components/Editor/tinymce/tinymce.js +12 -12
- package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
- package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
- package/lib/components/FilePreparer/FilePreparer.js +112 -108
- package/lib/components/FileUploader/FileUploader.js +8 -7
- package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
- package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
- package/lib/components/HalfGauge/HalfGauge.js +87 -85
- package/lib/components/Highlight/Highlight.js +4 -4
- package/lib/components/ImageResize/ImageResize.d.ts +1 -1
- package/lib/components/ImageResize/ImageResize.js +123 -118
- package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
- package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
- package/lib/components/Input/Input.js +2 -2
- package/lib/components/InputTags/InputTags.js +6 -7
- package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
- package/lib/components/MaterialButton/MaterialButton.js +50 -125
- package/lib/components/MonthPicker/MonthPicker.js +2 -2
- package/lib/components/OtpInput/OtpInput.tsx +77 -69
- package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
- package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
- package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
- package/lib/components/Programa/Programa.d.ts +2 -2
- package/lib/components/Programa/Programa.js +21 -5
- package/lib/components/Programa/Tab.ts +4 -2
- package/lib/components/Programa/TabNavigationRail.js +9 -31
- package/lib/components/Stepper/Stepper.d.ts +1 -1
- package/lib/components/Stepper/Stepper.js +222 -190
- package/lib/components/TablePicker/TablePicker.js +11 -6
- package/lib/components/TextToHtml/TextStyles.js +42 -42
- package/lib/components/TextToHtml/TextToHtml.js +102 -92
- package/lib/components/ThreadLog/ThreadLog.js +1 -1
- package/lib/components/UserCard/UserCard.js +6 -6
- package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
- package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
- package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
- package/lib/components/UtilTextField/UtilTextField.js +18 -16
- package/lib/components/Zoom/Zoom.js +6 -3
- package/lib/utils/api.ts +1 -1
- package/lib/utils/index.ts +10 -8
- package/package.json +56 -56
- package/.gitlab-ci.yml +0 -21
- package/dist/components/Cam/cam.css +0 -8
- package/dist/components/ContactValidationInput/style.css +0 -10
- package/dist/components/Document/icons/ai.svg +0 -20
- package/dist/components/Document/icons/audio.svg +0 -16
- package/dist/components/Document/icons/avi.svg +0 -15
- package/dist/components/Document/icons/css.svg +0 -47
- package/dist/components/Document/icons/csv.svg +0 -37
- package/dist/components/Document/icons/dbf.svg +0 -30
- package/dist/components/Document/icons/doc.svg +0 -47
- package/dist/components/Document/icons/dwg.svg +0 -32
- package/dist/components/Document/icons/exe.svg +0 -20
- package/dist/components/Document/icons/file.svg +0 -11
- package/dist/components/Document/icons/fla.svg +0 -23
- package/dist/components/Document/icons/html.svg +0 -23
- package/dist/components/Document/icons/image.svg +0 -16
- package/dist/components/Document/icons/iso.svg +0 -40
- package/dist/components/Document/icons/jpg.svg +0 -33
- package/dist/components/Document/icons/js.svg +0 -40
- package/dist/components/Document/icons/json.svg +0 -45
- package/dist/components/Document/icons/mod.svg +0 -41
- package/dist/components/Document/icons/mp3.svg +0 -36
- package/dist/components/Document/icons/mp4.svg +0 -25
- package/dist/components/Document/icons/pdf.svg +0 -35
- package/dist/components/Document/icons/png.svg +0 -30
- package/dist/components/Document/icons/ppt.svg +0 -31
- package/dist/components/Document/icons/psd.svg +0 -50
- package/dist/components/Document/icons/rtf.svg +0 -35
- package/dist/components/Document/icons/search.svg +0 -20
- package/dist/components/Document/icons/svg.svg +0 -34
- package/dist/components/Document/icons/txt.svg +0 -29
- package/dist/components/Document/icons/video.svg +0 -17
- package/dist/components/Document/icons/xls.svg +0 -31
- package/dist/components/Document/icons/xml.svg +0 -25
- package/dist/components/Document/icons/zip.svg +0 -24
- package/dist/components/Document/icons/zip1.svg +0 -18
- package/dist/components/Editor/skins/content/dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/default/content.min.css +0 -1
- package/dist/components/Editor/skins/content/document/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/writer/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/tinymce/icons/default/icons.js +0 -194
- package/dist/components/Editor/tinymce/icons/default/icons.min.js +0 -1
- package/dist/components/Editor/tinymce/skins/content/dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/default/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/default/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/document/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/document/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/writer/content.css +0 -62
- package/dist/components/Editor/tinymce/skins/content/writer/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.css +0 -3763
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/tinymce.d.ts +0 -3238
- package/dist/components/TextToHtml/icons/resize_area.svg +0 -2
- package/dist/components/TextToHtml/style.css +0 -40
- package/dist/components/Zoom/style.css +0 -25
- package/dist/types.d.ts +0 -164
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TextFieldProps } from '@material
|
|
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;
|
|
@@ -1,28 +1,42 @@
|
|
|
1
1
|
import { serverAction } from '../../utils/api';
|
|
2
|
-
import { CircularProgress, Fade, IconButton, ListItem, ListItemText, ListSubheader,
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { CircularProgress, Fade, GlobalStyles, IconButton, ListItem, ListItemText, ListSubheader, Popper, Slide, TextField, Tooltip, Autocomplete } from '@mui/material';
|
|
3
|
+
import { styled } from '@mui/material/styles';
|
|
4
|
+
import { tooltipClasses } from '@mui/material/Tooltip';
|
|
5
|
+
import { clsx } from 'clsx';
|
|
5
6
|
import { isArray, isObject, isString } from 'lodash';
|
|
6
7
|
import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
7
8
|
import { IoIosSearch } from 'react-icons/io';
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
-
subHeader:
|
|
10
|
+
const classes = {
|
|
11
|
+
subHeader: 'argous-autocomplete-favorites-sub-header',
|
|
12
|
+
divButton: 'argous-autocomplete-favorites-div-button',
|
|
13
|
+
areaButton: 'argous-autocomplete-favorites-area-button',
|
|
14
|
+
button: 'argous-autocomplete-favorites-button',
|
|
15
|
+
buttonActive: 'argous-autocomplete-favorites-button-active',
|
|
16
|
+
listItem: 'argous-autocomplete-favorites-list-item',
|
|
17
|
+
hoverListItem: 'argous-autocomplete-favorites-hover-list-item',
|
|
18
|
+
listItemText: 'argous-autocomplete-favorites-list-item-text',
|
|
19
|
+
box: 'argous-autocomplete-favorites-box',
|
|
20
|
+
searchButton: 'argous-autocomplete-favorites-search-button',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const favoritesStyles = theme => ({
|
|
24
|
+
[`.${classes.subHeader}`]: {
|
|
11
25
|
display: 'flex',
|
|
12
26
|
alignItems: 'center',
|
|
13
27
|
justifyContent: 'space-between',
|
|
14
28
|
backgroundColor: theme.palette.background.default,
|
|
15
29
|
height: 25
|
|
16
30
|
},
|
|
17
|
-
divButton: {
|
|
31
|
+
[`.${classes.divButton}`]: {
|
|
18
32
|
display: 'flex',
|
|
19
33
|
alignItems: 'center',
|
|
20
34
|
justifyContent: 'center',
|
|
21
35
|
},
|
|
22
|
-
areaButton: {
|
|
36
|
+
[`.${classes.areaButton}`]: {
|
|
23
37
|
padding: '0px 8px 0px 8px'
|
|
24
38
|
},
|
|
25
|
-
button: theme.palette.
|
|
39
|
+
[`.${classes.button}`]: theme.palette.mode === 'light' ? {
|
|
26
40
|
width: 15,
|
|
27
41
|
height: 15,
|
|
28
42
|
display: 'flex',
|
|
@@ -47,7 +61,7 @@ const useStyles = makeStyles((theme) => ({
|
|
|
47
61
|
color: '#ffffff',
|
|
48
62
|
}
|
|
49
63
|
},
|
|
50
|
-
buttonActive: theme.palette.
|
|
64
|
+
[`.${classes.buttonActive}`]: theme.palette.mode === 'light' ? {
|
|
51
65
|
color: 'rgba(0, 0, 0, 0.8)',
|
|
52
66
|
'&:hover': {
|
|
53
67
|
fontWeight: 600,
|
|
@@ -58,18 +72,18 @@ const useStyles = makeStyles((theme) => ({
|
|
|
58
72
|
fontWeight: 600,
|
|
59
73
|
}
|
|
60
74
|
},
|
|
61
|
-
listItem: {
|
|
75
|
+
[`.${classes.listItem}`]: {
|
|
62
76
|
padding: 0,
|
|
63
77
|
width: '100%',
|
|
64
78
|
cursor: 'pointer',
|
|
65
79
|
'&:hover': {
|
|
66
|
-
background: theme.palette.
|
|
80
|
+
background: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.08)'
|
|
67
81
|
}
|
|
68
82
|
},
|
|
69
|
-
hoverListItem: {
|
|
70
|
-
background: theme.palette.
|
|
83
|
+
[`.${classes.hoverListItem}`]: {
|
|
84
|
+
background: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.08)'
|
|
71
85
|
},
|
|
72
|
-
listItemText: {
|
|
86
|
+
[`.${classes.listItemText}`]: {
|
|
73
87
|
margin: 0,
|
|
74
88
|
width: '100%',
|
|
75
89
|
direction: 'ltr',
|
|
@@ -78,7 +92,7 @@ const useStyles = makeStyles((theme) => ({
|
|
|
78
92
|
textOverflow: 'ellipsis',
|
|
79
93
|
padding: '0px 0px 0px 6px',
|
|
80
94
|
},
|
|
81
|
-
box: {
|
|
95
|
+
[`.${classes.box}`]: {
|
|
82
96
|
padding: 0,
|
|
83
97
|
overflowX: 'hidden',
|
|
84
98
|
'&::-webkit-scrollbar': {
|
|
@@ -88,28 +102,34 @@ const useStyles = makeStyles((theme) => ({
|
|
|
88
102
|
background: '#0000'
|
|
89
103
|
},
|
|
90
104
|
'&::-webkit-scrollbar-thumb': {
|
|
91
|
-
background: theme.palette.
|
|
105
|
+
background: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.1)' : 'rgba(255, 255, 255, 0.1)'
|
|
92
106
|
}
|
|
93
107
|
},
|
|
94
|
-
searchButton: {
|
|
95
|
-
color: theme.palette.
|
|
108
|
+
[`.${classes.searchButton}`]: {
|
|
109
|
+
color: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.4)' : 'rgba(255, 255, 255, 0.5)',
|
|
96
110
|
'&:hover': {
|
|
97
|
-
color: theme.palette.
|
|
111
|
+
color: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.8)' : 'rgba(255, 255, 255, 0.9)',
|
|
98
112
|
background: '#0000'
|
|
99
113
|
}
|
|
100
|
-
},
|
|
101
|
-
popper: {
|
|
102
|
-
zIndex: 1300,
|
|
103
|
-
width: ({ widthListBox }) => widthListBox ? `${widthListBox}${testWidth(widthListBox.toString()) ? 'px' : ''} !important` : '',
|
|
104
114
|
}
|
|
105
|
-
})
|
|
115
|
+
});
|
|
106
116
|
|
|
107
117
|
const testWidth = value => value.replace(/[0-9]/g, '')?.length ? false : true;
|
|
108
118
|
|
|
109
|
-
const CustomPopper = (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
119
|
+
const CustomPopper = ({ widthListBox, ...props }) => (
|
|
120
|
+
<Popper
|
|
121
|
+
{...props}
|
|
122
|
+
sx={{
|
|
123
|
+
zIndex: 1300,
|
|
124
|
+
width: widthListBox ? `${widthListBox}${testWidth(widthListBox.toString()) ? 'px' : ''} !important` : undefined,
|
|
125
|
+
}}
|
|
126
|
+
/>
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
export const CustomTooltip = styled(({ className, ...props }) => (
|
|
130
|
+
<Tooltip {...props} classes={{ popper: className }} />
|
|
131
|
+
))(({ theme }) => ({
|
|
132
|
+
[`& .${tooltipClasses.tooltip}`]: theme.palette.mode === 'light' ? {
|
|
113
133
|
fontSize: 15,
|
|
114
134
|
fontWeight: 400,
|
|
115
135
|
color: '#FFF',
|
|
@@ -120,14 +140,13 @@ export const CustomTooltip = withStyles((theme) => ({
|
|
|
120
140
|
color: '#000',
|
|
121
141
|
backgroundColor: '#fbfbfbd1',
|
|
122
142
|
},
|
|
123
|
-
arrow: {
|
|
124
|
-
color: theme.palette.
|
|
143
|
+
[`& .${tooltipClasses.arrow}`]: {
|
|
144
|
+
color: theme.palette.mode === 'light' ? '#333333e3' : '#fbfbfbd1'
|
|
125
145
|
}
|
|
126
|
-
}))
|
|
146
|
+
}));
|
|
127
147
|
|
|
128
148
|
const ListboxFavorites = forwardRef((props, ref) => {
|
|
129
149
|
|
|
130
|
-
const classes = useStyles();
|
|
131
150
|
const { children, favoritePage, dados, setDados, group, groupHeaderColor, groupTitleColor } = props;
|
|
132
151
|
const { pageNumber, favoritosLength, direction, slide, cursor } = dados;
|
|
133
152
|
|
|
@@ -162,7 +181,7 @@ const ListboxFavorites = forwardRef((props, ref) => {
|
|
|
162
181
|
|
|
163
182
|
function retornaEstrutura(sectionIndex, item, itemIndex) {
|
|
164
183
|
const index = itemIndex ? itemIndex : sectionIndex;
|
|
165
|
-
const content = <CustomTooltip title={item.props.children} arrow enterDelay='1000' enterNextDelay='1000' placement='top-end'
|
|
184
|
+
const content = <CustomTooltip title={item.props.children} arrow enterDelay='1000' enterNextDelay='1000' placement='top-end' slots={{ transition: Fade }} slotProps={{ transition: { timeout: { enter: 100, exit: 500 } } }}>
|
|
166
185
|
<ListItem {...item.props} id='listItem' key={item.key} className={clsx(classes.listItem, { [classes.hoverListItem]: cursor?.index === index && cursor?.page === pageNumber })}>
|
|
167
186
|
<ListItemText primary={item.props.children} className={classes.listItemText} />
|
|
168
187
|
</ListItem>
|
|
@@ -200,36 +219,39 @@ const ListboxFavorites = forwardRef((props, ref) => {
|
|
|
200
219
|
return 'left';
|
|
201
220
|
}
|
|
202
221
|
|
|
203
|
-
return
|
|
204
|
-
{
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
222
|
+
return <>
|
|
223
|
+
<GlobalStyles styles={favoritesStyles} />
|
|
224
|
+
<ul {...props} ref={ref} id='listBox' className={clsx('MuiAutocomplete-listbox', classes.box)}>
|
|
225
|
+
{children.map((section, sectionIndex) => (group ?
|
|
226
|
+
<React.Fragment>
|
|
227
|
+
<ul {...props} id='listBox' className={clsx('MuiAutocomplete-listbox', classes.box)}>
|
|
228
|
+
<ListSubheader className={classes.subHeader} style={{ backgroundColor: groupHeaderColor?.[sectionIndex], color: groupTitleColor?.[sectionIndex] }}>
|
|
229
|
+
{section.props.children[0].props.children}
|
|
230
|
+
<Fade in={sectionIndex === 0 && favoritePage && favoritosLength > 7}>
|
|
231
|
+
<div className={classes.divButton}>
|
|
232
|
+
<div className={classes.areaButton}>
|
|
233
|
+
<div onClick={e => buttonClick(e, 1)} className={clsx({ [classes.buttonActive]: pageNumber === 1 }, classes.button)}>1</div>
|
|
234
|
+
</div>
|
|
235
|
+
<div className={classes.areaButton}>
|
|
236
|
+
<div onClick={e => buttonClick(e, 2)} className={clsx({ [classes.buttonActive]: pageNumber === 2 }, classes.button)}>2</div>
|
|
237
|
+
</div>
|
|
238
|
+
{favoritosLength > 14 &&
|
|
218
239
|
<React.Fragment>
|
|
219
240
|
<div className={classes.areaButton}>
|
|
220
241
|
<div onClick={e => buttonClick(e, 3)} className={clsx({ [classes.buttonActive]: pageNumber === 3 }, classes.button)}>3</div>
|
|
221
242
|
</div>
|
|
222
243
|
</React.Fragment>
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
244
|
+
}
|
|
245
|
+
</div>
|
|
246
|
+
</Fade>
|
|
247
|
+
</ListSubheader>
|
|
248
|
+
{retornaArray(sectionIndex, section).map((item, itemIndex) => retornaEstrutura(sectionIndex, item, itemIndex))}
|
|
249
|
+
</ul>
|
|
250
|
+
</React.Fragment>
|
|
251
|
+
: retornaEstrutura(sectionIndex, section)
|
|
252
|
+
))}
|
|
253
|
+
</ul>
|
|
254
|
+
</>;
|
|
233
255
|
});
|
|
234
256
|
|
|
235
257
|
const AutoCompleteFavorites = ({
|
|
@@ -252,11 +274,12 @@ const AutoCompleteFavorites = ({
|
|
|
252
274
|
searchParams,
|
|
253
275
|
autoSelectFirstOption,
|
|
254
276
|
onChange = e => e,
|
|
255
|
-
textFieldProps = {},
|
|
277
|
+
textFieldProps = {},
|
|
278
|
+
slots = {},
|
|
279
|
+
slotProps = {},
|
|
256
280
|
...props
|
|
257
281
|
}) => {
|
|
258
282
|
|
|
259
|
-
const classes = useStyles({ widthListBox });
|
|
260
283
|
const [dados, setDados] = useState({
|
|
261
284
|
lista: [],
|
|
262
285
|
slide: true,
|
|
@@ -266,6 +289,15 @@ const AutoCompleteFavorites = ({
|
|
|
266
289
|
pageNumber: favoritePage ? 1 : undefined,
|
|
267
290
|
});
|
|
268
291
|
const [loading, setLoading] = useState(false);
|
|
292
|
+
const {
|
|
293
|
+
FormHelperTextProps,
|
|
294
|
+
InputLabelProps,
|
|
295
|
+
InputProps,
|
|
296
|
+
inputProps,
|
|
297
|
+
SelectProps,
|
|
298
|
+
slotProps: textFieldSlotProps = {},
|
|
299
|
+
...resolvedTextFieldProps
|
|
300
|
+
} = textFieldProps;
|
|
269
301
|
const [inputValue, setInputValue] = useState('');
|
|
270
302
|
|
|
271
303
|
const interval = useRef(null);
|
|
@@ -304,14 +336,22 @@ const AutoCompleteFavorites = ({
|
|
|
304
336
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
305
337
|
}, [inputValue, searchParams]);
|
|
306
338
|
|
|
307
|
-
useEffect(() =>
|
|
339
|
+
useEffect(() => {
|
|
340
|
+
if (autoSearch && seconds === 1) buscar();
|
|
341
|
+
}, [autoSearch, seconds, buscar]);
|
|
342
|
+
useEffect(() => {
|
|
343
|
+
if (isString(value)) buscar(value);
|
|
308
344
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
309
|
-
|
|
345
|
+
}, []);
|
|
310
346
|
|
|
311
|
-
useEffect(() =>
|
|
347
|
+
useEffect(() => {
|
|
348
|
+
if (value !== dados.cursor?.linha) setDados(v => ({ ...v, cursor: { index: '', page: '' } }));
|
|
349
|
+
}, [value, dados.cursor?.linha]);
|
|
312
350
|
|
|
351
|
+
useEffect(() => {
|
|
352
|
+
if (autoSelectFirstOption && !!inputValue.length) onChange(undefined, dados?.lista?.[0] || null);
|
|
313
353
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
314
|
-
|
|
354
|
+
}, [dados.lista]);
|
|
315
355
|
|
|
316
356
|
const keyDown = e => {
|
|
317
357
|
((e.key === 'Enter' || e.key === 'Tab') && !loading) && buscar();
|
|
@@ -401,52 +441,78 @@ const AutoCompleteFavorites = ({
|
|
|
401
441
|
}
|
|
402
442
|
}
|
|
403
443
|
}, [dados]);
|
|
404
|
-
useEffect(() =>
|
|
444
|
+
useEffect(() => {
|
|
445
|
+
if (!dados.lista?.length) return undefined;
|
|
446
|
+
const timeoutId = setTimeout(() => scrollToSelected(), 0);
|
|
447
|
+
return () => clearTimeout(timeoutId);
|
|
448
|
+
}, [dados.lista, scrollToSelected]);
|
|
405
449
|
|
|
406
450
|
return (
|
|
407
|
-
|
|
408
|
-
{
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
451
|
+
<>
|
|
452
|
+
<GlobalStyles styles={favoritesStyles} />
|
|
453
|
+
<Autocomplete
|
|
454
|
+
{...props}
|
|
455
|
+
{...{ value, onChange }}
|
|
456
|
+
autoComplete
|
|
457
|
+
autoHighlight
|
|
458
|
+
openText='Abrir'
|
|
459
|
+
clearText='Limpar'
|
|
460
|
+
filterSelectedOptions
|
|
461
|
+
onInputChange={e => setInput(e?.target?.value || '')}
|
|
462
|
+
isOptionEqualToValue={(o, v) => o[0] === (isArray(v) ? v[0] : v)}
|
|
463
|
+
getOptionLabel={getOptionLabel && (option => getOptionLabel(option, dados?.lista))}
|
|
464
|
+
noOptionsText={inputValue.length < 2 ? 'Digite para pesquisar' : 'Não Encontrado'}
|
|
465
|
+
options={isObject(value) ? dados?.lista.filter(v => filterFunction ? filterFunction(v, value) : true || v[0] !== value[0]) : dados?.lista}
|
|
466
|
+
renderInput={params => (
|
|
467
|
+
<TextField
|
|
468
|
+
margin='dense'
|
|
469
|
+
variant='outlined'
|
|
470
|
+
label={label}
|
|
471
|
+
{...params}
|
|
472
|
+
{...resolvedTextFieldProps}
|
|
473
|
+
onKeyUp={e => keyUp(e)}
|
|
474
|
+
slotProps={{
|
|
475
|
+
...textFieldSlotProps,
|
|
476
|
+
...params.slotProps,
|
|
477
|
+
|
|
478
|
+
input: {
|
|
479
|
+
...InputProps,
|
|
480
|
+
...textFieldSlotProps.input,
|
|
481
|
+
...params.slotProps.input,
|
|
482
|
+
endAdornment: (
|
|
483
|
+
<React.Fragment>
|
|
484
|
+
{params.slotProps.input.endAdornment}
|
|
485
|
+
<Fade in={loading}><CircularProgress disableShrink color={loadingColor || 'inherit'} size={20} /></Fade>
|
|
486
|
+
{!autoSearch && <IconButton size='small' onClick={e => buscar()} className={classes.searchButton}><IoIosSearch size={20} /></IconButton>}
|
|
487
|
+
</React.Fragment>
|
|
488
|
+
)
|
|
489
|
+
},
|
|
490
|
+
|
|
491
|
+
htmlInput: {
|
|
492
|
+
...inputProps,
|
|
493
|
+
...textFieldSlotProps.htmlInput,
|
|
494
|
+
...params.slotProps.htmlInput,
|
|
495
|
+
onKeyDown: e => keyDown(e)
|
|
496
|
+
},
|
|
497
|
+
formHelperText: { ...FormHelperTextProps, ...textFieldSlotProps.formHelperText, ...params.slotProps.formHelperText },
|
|
498
|
+
inputLabel: { ...InputLabelProps, ...textFieldSlotProps.inputLabel, ...params.slotProps.inputLabel },
|
|
499
|
+
select: { ...SelectProps, ...textFieldSlotProps.select, ...params.slotProps.select }
|
|
500
|
+
}} />
|
|
501
|
+
)}
|
|
502
|
+
slots={{
|
|
503
|
+
...slots,
|
|
504
|
+
popper: popperProps => <CustomPopper {...popperProps} widthListBox={widthListBox} />
|
|
505
|
+
}}
|
|
506
|
+
slotProps={{
|
|
507
|
+
...slotProps,
|
|
508
|
+
listbox: {
|
|
509
|
+
component: ListboxFavorites,
|
|
510
|
+
...slotProps.listbox,
|
|
511
|
+
...{ dados, setDados, favoritePage, group, groupHeaderColor, groupTitleColor }
|
|
512
|
+
}
|
|
513
|
+
}} />
|
|
514
|
+
</>
|
|
449
515
|
);
|
|
450
516
|
};
|
|
451
517
|
|
|
452
|
-
export default AutoCompleteFavorites;
|
|
518
|
+
export default AutoCompleteFavorites;
|
|
@@ -2,7 +2,8 @@ import { Compartilhar } from '..';
|
|
|
2
2
|
import ThreadLog from '../../components/ThreadLog';
|
|
3
3
|
import { usePrevious } from '../../utils';
|
|
4
4
|
import { TAB_ACTIVE_INDEX, TAB_ALIAS_INDEX, TAB_ICON_INDEX, TAB_LABEL_INDEX } from '../Programa/TabNavigationRail';
|
|
5
|
-
import { Box, CircularProgress, ClickAwayListener, Collapse, Divider, IconButton, ListItemIcon, ListItemText,
|
|
5
|
+
import { Box, CircularProgress, ClickAwayListener, Collapse, Divider, GlobalStyles, IconButton, ListItemIcon, ListItemText, MenuItem, MenuList, Paper, Popper, Toolbar, Tooltip, Typography, useMediaQuery, useTheme } from '@mui/material';
|
|
6
|
+
import { styled } from '@mui/material/styles';
|
|
6
7
|
import { isArray, isNumber, isEqual, isFunction } from 'lodash';
|
|
7
8
|
import PropTypes from 'prop-types';
|
|
8
9
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -12,11 +13,17 @@ import { IoSettings } from 'react-icons/io5';
|
|
|
12
13
|
import { MdShare, MdFormatListBulleted, MdArrowBack, MdEdit, MdDelete, MdSave, MdKeyboardArrowRight, MdFirstPage, MdKeyboardArrowLeft, MdLastPage, MdEditNote } from 'react-icons/md';
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
const
|
|
16
|
+
const classes = {
|
|
17
|
+
root: 'argous-barra-ferramentas-root',
|
|
18
|
+
menuButton: 'argous-barra-ferramentas-menu-button',
|
|
19
|
+
title: 'argous-barra-ferramentas-title',
|
|
20
|
+
navigator: 'argous-barra-ferramentas-navigator',
|
|
21
|
+
};
|
|
16
22
|
|
|
23
|
+
const TAB_ICON_SIZE = 20;
|
|
17
24
|
|
|
18
|
-
const
|
|
19
|
-
root: {
|
|
25
|
+
const toolbarStyles = ({ habNavegador }) => theme => ({
|
|
26
|
+
[`.${classes.root}`]: {
|
|
20
27
|
zIndex: 0,
|
|
21
28
|
margin: '-11px',
|
|
22
29
|
marginBottom: 0,
|
|
@@ -35,35 +42,34 @@ const useStyles = makeStyles(theme => ({
|
|
|
35
42
|
},
|
|
36
43
|
'&:hover': {
|
|
37
44
|
'&::-webkit-scrollbar-thumb': {
|
|
38
|
-
background: theme.palette.
|
|
45
|
+
background: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)'
|
|
39
46
|
}
|
|
40
47
|
}
|
|
41
48
|
},
|
|
42
|
-
menuButton: {
|
|
49
|
+
[`.${classes.menuButton}`]: {
|
|
43
50
|
marginRight: theme.spacing(2),
|
|
44
51
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
title: {
|
|
49
|
-
flexGrow: ({ habNavegador }) => habNavegador ? 0 : 1,
|
|
52
|
+
[`.${classes.title}`]: {
|
|
53
|
+
flexGrow: habNavegador ? 0 : 1,
|
|
50
54
|
},
|
|
51
|
-
navigator: {
|
|
55
|
+
[`.${classes.navigator}`]: {
|
|
52
56
|
flexGrow: 1,
|
|
53
57
|
marginLeft: theme.spacing(2)
|
|
54
58
|
}
|
|
55
|
-
})
|
|
59
|
+
});
|
|
56
60
|
|
|
57
|
-
const ToolbarTooltip =
|
|
58
|
-
popper: {
|
|
61
|
+
const ToolbarTooltip = styled(Tooltip)({
|
|
62
|
+
'&.MuiTooltip-popper': {
|
|
59
63
|
zIndex: 1300
|
|
60
64
|
}
|
|
61
|
-
})
|
|
65
|
+
});
|
|
62
66
|
|
|
63
67
|
|
|
64
68
|
const CustomTooltip = ({ disabled, arrow, placement, title, children }) => {
|
|
65
69
|
const [open, setOpen] = useState(false);
|
|
66
|
-
useEffect(() =>
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (disabled && open) setOpen(false);
|
|
72
|
+
}, [disabled, open]);
|
|
67
73
|
return (
|
|
68
74
|
<ToolbarTooltip
|
|
69
75
|
{...{ arrow, placement, title }}
|
|
@@ -108,13 +114,15 @@ function BarraFerramentas ({
|
|
|
108
114
|
}) {
|
|
109
115
|
|
|
110
116
|
const theme = useTheme();
|
|
111
|
-
const classes = useStyles({ habNavegador });
|
|
112
117
|
const xs = useMediaQuery(theme.breakpoints.only('xs'));
|
|
113
|
-
|
|
114
118
|
const anchorMenu = useRef(null);
|
|
115
119
|
const anchorCompartilhar = useRef(null);
|
|
116
120
|
const setSelectedTabRef = useRef(setSelectedTab);
|
|
117
121
|
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
setSelectedTabRef.current = setSelectedTab;
|
|
124
|
+
}, [setSelectedTab]);
|
|
125
|
+
|
|
118
126
|
const [open, setOpen] = useState(false);
|
|
119
127
|
const [habEditar, setHabEditar] = useState(true);
|
|
120
128
|
const [habSalvar, setHabSalvar] = useState(false);
|
|
@@ -201,6 +209,7 @@ function BarraFerramentas ({
|
|
|
201
209
|
|
|
202
210
|
|
|
203
211
|
return <>
|
|
212
|
+
<GlobalStyles styles={toolbarStyles({ habNavegador })} />
|
|
204
213
|
<Toolbar className={classes.root} variant='dense'>
|
|
205
214
|
{(xs && isArray(abas) && (abas?.length > 0)) && (
|
|
206
215
|
<IconButton id='botaoAbasBarraFerramentas' ref={anchorMenu} onClick={toggleAbas} className={classes.menuButton}>
|
|
@@ -386,7 +395,9 @@ BarraFerramentas.propTypes = {
|
|
|
386
395
|
threads: PropTypes.array,
|
|
387
396
|
currentProgram: PropTypes.string,
|
|
388
397
|
habWidget: PropTypes.bool,
|
|
389
|
-
addWidget: PropTypes.func
|
|
398
|
+
addWidget: PropTypes.func,
|
|
399
|
+
selectedTab: PropTypes.array,
|
|
400
|
+
setSelectedTab: PropTypes.func
|
|
390
401
|
};
|
|
391
402
|
|
|
392
|
-
export default BarraFerramentas;
|
|
403
|
+
export default BarraFerramentas;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createField, initField, getField } from '../../fieldsRedux';
|
|
2
2
|
import { addExtraZero } from '../../utils';
|
|
3
|
-
import { getMonthName } from '../../utils/date';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import React, { Component } from 'react';
|
|
6
5
|
import { Calendar as CalDep } from 'react-date-range';
|
|
@@ -35,32 +34,12 @@ class Calendar extends Component {
|
|
|
35
34
|
|
|
36
35
|
handleClickCalendar = (e) => {
|
|
37
36
|
|
|
38
|
-
const
|
|
39
|
-
const eClsP = e.target.parentNode.className;
|
|
37
|
+
const navigationButton = e.target.closest('.rdrNextPrevButton');
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
const next = eCls !== 'rdr-MonthAndYear-button prev' && eClsP !== 'rdr-MonthAndYear-button prev';
|
|
43
|
-
|
|
44
|
-
if (next && prev) {
|
|
39
|
+
if (!navigationButton) {
|
|
45
40
|
this.setState({ open: false });
|
|
46
41
|
document.removeEventListener('click', this.handleClickCalendar);
|
|
47
|
-
} else {
|
|
48
|
-
const { month } = this.state;
|
|
49
|
-
|
|
50
|
-
let newMonth = next
|
|
51
|
-
? month + 1
|
|
52
|
-
: month - 1;
|
|
53
|
-
|
|
54
|
-
newMonth = newMonth < 0
|
|
55
|
-
? 11
|
|
56
|
-
: newMonth > 11
|
|
57
|
-
? 0
|
|
58
|
-
: newMonth;
|
|
59
|
-
|
|
60
|
-
this.setState({ month: newMonth });
|
|
61
|
-
this.setMonthName(null, newMonth);
|
|
62
42
|
}
|
|
63
|
-
|
|
64
43
|
}
|
|
65
44
|
|
|
66
45
|
checkDefaultValue = (defaultValue) => {
|
|
@@ -93,9 +72,9 @@ class Calendar extends Component {
|
|
|
93
72
|
handleSelect = (date) => {
|
|
94
73
|
const { onChange } = this.props;
|
|
95
74
|
|
|
96
|
-
const day = date.
|
|
97
|
-
const month = (date.
|
|
98
|
-
const year = date.
|
|
75
|
+
const day = date.getDate();
|
|
76
|
+
const month = (date.getMonth() + 1);
|
|
77
|
+
const year = date.getFullYear();
|
|
99
78
|
|
|
100
79
|
const formattedDate = `${addExtraZero(day)}/${addExtraZero(month)}/${year}`;
|
|
101
80
|
|
|
@@ -107,22 +86,8 @@ class Calendar extends Component {
|
|
|
107
86
|
this.setState({ open: false });
|
|
108
87
|
}
|
|
109
88
|
|
|
110
|
-
setMonthName = (date, month) => {
|
|
111
|
-
|
|
112
|
-
if (date) {
|
|
113
|
-
this.setState({ month: date._d.getMonth() });
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
const name = getMonthName(typeof month !== 'undefined'
|
|
117
|
-
? month
|
|
118
|
-
: date._d.getMonth());
|
|
119
|
-
|
|
120
|
-
const monthDescription = document.getElementsByClassName('rdr-MonthAndYear-month')[0];
|
|
121
|
-
monthDescription.innerHTML = name;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
89
|
render() {
|
|
125
|
-
const { openCalendar, handleSelect
|
|
90
|
+
const { openCalendar, handleSelect } = this;
|
|
126
91
|
const { open } = this.state;
|
|
127
92
|
const { field } = this.props;
|
|
128
93
|
|
|
@@ -131,7 +96,7 @@ class Calendar extends Component {
|
|
|
131
96
|
return (
|
|
132
97
|
<div className='argous-calendar'>
|
|
133
98
|
<span onMouseUp={openCalendar}>{date ? date : 'dd/mm/aaaa'}</span>
|
|
134
|
-
{open && (<CalDep date={date} onChange={handleSelect}
|
|
99
|
+
{open && (<CalDep date={date ? new Date(date.split('/').reverse().join('-') + 'T00:00:00') : new Date()} onChange={handleSelect} />)}
|
|
135
100
|
</div>
|
|
136
101
|
);
|
|
137
102
|
}
|