argous 1.2.246 → 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 +22 -10
- package/dist/api/WebSocket.js +40 -28
- package/dist/api/index.js +154 -132
- package/dist/api/ws.d.ts +1 -1
- package/dist/api/ws.js +45 -4
- package/dist/components/Alert/Alert.d.ts +19 -5
- package/dist/components/Alert/Alert.js +23 -9
- package/dist/components/Alert/index.d.ts +1 -2
- package/dist/components/ArgousAction/ArgousAction.d.ts +26 -5
- package/dist/components/ArgousAction/ArgousAction.js +25 -11
- package/dist/components/ArgousAction/index.d.ts +1 -2
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +3 -14
- package/dist/components/ArgousAvatar/ArgousAvatar.js +54 -66
- package/dist/components/ArgousAvatar/index.d.ts +1 -2
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +3 -76
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +114 -82
- package/dist/components/ArgousComplexPagination/index.d.ts +1 -2
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +3 -158
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +94 -80
- package/dist/components/ArgousComplexTable/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +7 -177
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +126 -100
- 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 +72 -51
- package/dist/components/ArgousComplexTableHead/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +3 -58
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +63 -41
- package/dist/components/ArgousComplexTableToolbar/index.d.ts +1 -2
- package/dist/components/ArgousInput/ArgousInput.d.ts +2 -8
- package/dist/components/ArgousInput/ArgousInput.js +27 -13
- 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 +43 -33
- package/dist/components/ArgousSimpleTable/index.d.ts +1 -2
- package/dist/components/AutoComplete/AutoComplete.d.ts +2 -8
- package/dist/components/AutoComplete/AutoComplete.js +34 -21
- package/dist/components/AutoComplete/index.d.ts +1 -2
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +28 -101
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +241 -185
- package/dist/components/AutoCompleteFavorites/index.d.ts +1 -2
- package/dist/components/BarChart/BarChart.d.ts +29 -5
- package/dist/components/BarChart/BarChart.js +22 -8
- package/dist/components/BarChart/index.d.ts +1 -2
- package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +54 -25
- package/dist/components/BarraFerramentas/BarraFerramentas.js +163 -131
- package/dist/components/BarraFerramentas/index.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +54 -5
- package/dist/components/Button/Button.js +25 -11
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Cabecalho/Cabecalho.d.ts +2 -8
- package/dist/components/Cabecalho/Cabecalho.js +46 -32
- package/dist/components/Cabecalho/index.d.ts +1 -2
- package/dist/components/Calendar/Calendar.d.ts +2 -8
- package/dist/components/Calendar/Calendar.js +35 -48
- package/dist/components/Calendar/index.d.ts +1 -2
- package/dist/components/Cam/Cam.d.ts +24 -24
- package/dist/components/Cam/Cam.js +34 -20
- package/dist/components/Cam/index.d.ts +1 -2
- package/dist/components/Carousel/Carousel.d.ts +21 -71
- package/dist/components/Carousel/Carousel.js +125 -111
- package/dist/components/Carousel/index.d.ts +1 -2
- package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +6 -9
- package/dist/components/CartaoUsuario/CartaoUsuario.js +54 -40
- package/dist/components/CartaoUsuario/index.d.ts +1 -2
- package/dist/components/Collapse/Collapse.d.ts +55 -56
- package/dist/components/Collapse/Collapse.js +133 -79
- package/dist/components/Collapse/index.d.ts +1 -3
- package/dist/components/Compartilhar/Compartilhar.d.ts +3 -7
- package/dist/components/Compartilhar/Compartilhar.js +92 -83
- 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 +34 -20
- 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/ConfirmModal/index.js +5 -1
- package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +17 -62
- package/dist/components/ContactValidationInput/ContactValidationInput.js +133 -105
- 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 +46 -25
- package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
- package/dist/components/Document/ModalVisualizacaoDocumentos.js +44 -24
- package/dist/components/Document/Visualizacao.d.ts +1 -1
- package/dist/components/Document/Visualizacao.js +60 -42
- package/dist/components/Document/index.d.ts +3 -3
- package/dist/components/Document/index.js +5 -1
- package/dist/components/DropArea/DropArea.d.ts +8 -21
- package/dist/components/DropArea/DropArea.js +43 -24
- package/dist/components/DropArea/Html5FileSelector.js +8 -9
- package/dist/components/DropArea/index.d.ts +1 -2
- package/dist/components/Editor/Events.d.ts +2 -2
- package/dist/components/Editor/ScriptLoader2.d.ts +2 -2
- package/dist/components/Editor/ScriptLoader2.js +3 -3
- package/dist/components/Editor/Utils.d.ts +4 -4
- package/dist/components/Editor/Utils.js +3 -3
- package/dist/components/Editor/components/Editor.d.ts +2 -2
- package/dist/components/Editor/components/Editor.js +38 -24
- package/dist/components/Editor/components/EditorPropTypes.d.ts +2 -2
- package/dist/components/Editor/components/EditorPropTypes.js +22 -8
- package/dist/components/FilePreparer/FilePreparer.d.ts +16 -26
- package/dist/components/FilePreparer/FilePreparer.js +133 -108
- package/dist/components/FilePreparer/index.d.ts +1 -2
- package/dist/components/FileUploader/FileUploader.d.ts +21 -8
- package/dist/components/FileUploader/FileUploader.js +54 -39
- package/dist/components/FileUploader/index.d.ts +1 -2
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +8 -92
- package/dist/components/FormVisualizer/FormVisualizer.js +119 -80
- package/dist/components/FormVisualizer/index.d.ts +1 -2
- package/dist/components/HalfGauge/HalfGauge.d.ts +23 -82
- package/dist/components/HalfGauge/HalfGauge.js +107 -151
- package/dist/components/HalfGauge/index.d.ts +1 -2
- package/dist/components/Highlight/Highlight.d.ts +20 -7
- package/dist/components/Highlight/Highlight.js +28 -13
- package/dist/components/Highlight/index.d.ts +1 -2
- package/dist/components/ImageResize/ImageResize.d.ts +8 -28
- package/dist/components/ImageResize/ImageResize.js +128 -130
- package/dist/components/ImageResize/index.d.ts +1 -2
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +2 -25
- package/dist/components/ImageResizeButton/ImageResizeButton.js +28 -14
- package/dist/components/ImageResizeButton/index.d.ts +1 -2
- package/dist/components/Input/Input.d.ts +2 -8
- package/dist/components/Input/Input.js +27 -13
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputTags/InputTags.d.ts +2 -8
- package/dist/components/InputTags/InputTags.js +38 -21
- package/dist/components/InputTags/index.d.ts +1 -2
- package/dist/components/ListSelect/ListSelect.d.ts +2 -8
- package/dist/components/ListSelect/ListSelect.js +28 -14
- 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 +28 -14
- package/dist/components/MenuBar/index.d.ts +1 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +2 -8
- package/dist/components/MonthPicker/MonthPicker.js +53 -35
- package/dist/components/MonthPicker/index.d.ts +1 -2
- package/dist/components/MultipleSelect/MultipleSelect.d.ts +2 -8
- package/dist/components/MultipleSelect/MultipleSelect.js +37 -19
- package/dist/components/MultipleSelect/index.d.ts +1 -2
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +80 -63
- package/dist/components/OtpInput/index.d.ts +1 -2
- package/dist/components/OutputText/OutputText.d.ts +2 -8
- package/dist/components/OutputText/OutputText.js +25 -11
- package/dist/components/OutputText/index.d.ts +1 -2
- package/dist/components/Pagination/Pagination.d.ts +16 -5
- package/dist/components/Pagination/Pagination.js +22 -8
- package/dist/components/Pagination/index.d.ts +1 -2
- package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +14 -51
- package/dist/components/PercentageDisplay/PercentageDisplay.js +25 -89
- package/dist/components/PercentageDisplay/index.d.ts +1 -2
- package/dist/components/Programa/PageCodeEasterEgg.d.ts +6 -5
- package/dist/components/Programa/PageCodeEasterEgg.js +49 -36
- package/dist/components/Programa/Programa.d.ts +72 -32
- package/dist/components/Programa/Programa.js +78 -28
- package/dist/components/Programa/Tab.d.ts +7 -0
- package/dist/components/Programa/Tab.js +2 -0
- package/dist/components/Programa/TabNavigationRail.d.ts +12 -0
- package/dist/components/Programa/TabNavigationRail.js +76 -0
- package/dist/components/Programa/index.d.ts +1 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +20 -5
- package/dist/components/ProgressBar/ProgressBar.js +25 -11
- package/dist/components/ProgressBar/index.d.ts +1 -2
- package/dist/components/Select/Select.d.ts +2 -8
- package/dist/components/Select/Select.js +28 -14
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts +27 -10
- package/dist/components/SimpleTable/SimpleTable.js +47 -33
- package/dist/components/SimpleTable/index.d.ts +1 -2
- package/dist/components/Stepper/Stepper.d.ts +25 -68
- package/dist/components/Stepper/Stepper.js +200 -181
- package/dist/components/Stepper/index.d.ts +1 -2
- package/dist/components/TablePicker/TablePicker.d.ts +3 -8
- package/dist/components/TablePicker/TablePicker.js +76 -43
- package/dist/components/TablePicker/index.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +25 -5
- package/dist/components/Tabs/Tabs.js +25 -11
- package/dist/components/Tabs/index.d.ts +1 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -8
- package/dist/components/TextArea/TextArea.js +25 -11
- package/dist/components/TextArea/index.d.ts +1 -2
- package/dist/components/TextToHtml/Cursor.d.ts +1 -1
- package/dist/components/TextToHtml/Cursor.js +26 -12
- package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
- package/dist/components/TextToHtml/TextStyles.js +57 -46
- package/dist/components/TextToHtml/TextToHtml.d.ts +32 -36
- package/dist/components/TextToHtml/TextToHtml.js +76 -56
- package/dist/components/TextToHtml/index.d.ts +1 -2
- package/dist/components/ThreadLog/ThreadLog.d.ts +36 -5
- package/dist/components/ThreadLog/ThreadLog.js +34 -20
- package/dist/components/ThreadLog/index.d.ts +1 -2
- package/dist/components/UserCard/UserCard.d.ts +6 -15
- package/dist/components/UserCard/UserCard.js +51 -37
- package/dist/components/UserCard/index.d.ts +1 -2
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +32 -97
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +44 -30
- package/dist/components/UtilAutoComplete/index.d.ts +1 -2
- package/dist/components/UtilTextField/UtilTextField.d.ts +7 -23
- package/dist/components/UtilTextField/UtilTextField.js +36 -20
- package/dist/components/UtilTextField/index.d.ts +1 -2
- package/dist/components/Zoom/Zoom.d.ts +7 -15
- package/dist/components/Zoom/Zoom.js +32 -29
- package/dist/components/Zoom/index.d.ts +1 -2
- package/dist/components/index.d.ts +118 -180
- package/dist/components/index.js +5 -1
- package/dist/fieldsRedux/createField.d.ts +6 -6
- package/dist/fieldsRedux/createField.js +39 -25
- package/dist/fieldsRedux/fieldsRedux.d.ts +3 -58
- package/dist/fieldsRedux/fieldsRedux.js +63 -49
- package/dist/fieldsRedux/index.d.ts +17 -2
- package/dist/fieldsRedux/passFields.d.ts +2 -0
- package/dist/fieldsRedux/passFields.js +33 -19
- package/dist/reducers/index.d.ts +98 -2
- package/dist/reducers/index.js +1 -1
- package/dist/utils/api.d.ts +2 -2
- package/dist/utils/api.js +50 -33
- package/dist/utils/config.js +2 -3
- package/dist/utils/date.js +4 -4
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +108 -162
- package/dist/utils/store.js +2 -3
- package/dist/utils/xmlToJson.js +1 -1
- 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.d.ts +30 -2
- package/lib/components/BarraFerramentas/BarraFerramentas.js +92 -37
- 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/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 +18 -3
- package/lib/components/Programa/Programa.js +60 -7
- package/lib/components/Programa/Tab.ts +8 -0
- package/lib/components/Programa/TabNavigationRail.js +96 -0
- 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 -96
- 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,18 +1,29 @@
|
|
|
1
1
|
import { Compartilhar } from '..';
|
|
2
2
|
import ThreadLog from '../../components/ThreadLog';
|
|
3
3
|
import { usePrevious } from '../../utils';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { TAB_ACTIVE_INDEX, TAB_ALIAS_INDEX, TAB_ICON_INDEX, TAB_LABEL_INDEX } from '../Programa/TabNavigationRail';
|
|
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';
|
|
7
|
+
import { isArray, isNumber, isEqual, isFunction } from 'lodash';
|
|
7
8
|
import PropTypes from 'prop-types';
|
|
8
9
|
import React, { useEffect, useRef, useState } from 'react';
|
|
9
10
|
import { AiOutlineAppstoreAdd } from 'react-icons/ai';
|
|
10
11
|
import { FaStar } from 'react-icons/fa';
|
|
12
|
+
import { IoSettings } from 'react-icons/io5';
|
|
11
13
|
import { MdShare, MdFormatListBulleted, MdArrowBack, MdEdit, MdDelete, MdSave, MdKeyboardArrowRight, MdFirstPage, MdKeyboardArrowLeft, MdLastPage, MdEditNote } from 'react-icons/md';
|
|
12
14
|
|
|
13
15
|
|
|
14
|
-
const
|
|
15
|
-
root:
|
|
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
|
+
};
|
|
22
|
+
|
|
23
|
+
const TAB_ICON_SIZE = 20;
|
|
24
|
+
|
|
25
|
+
const toolbarStyles = ({ habNavegador }) => theme => ({
|
|
26
|
+
[`.${classes.root}`]: {
|
|
16
27
|
zIndex: 0,
|
|
17
28
|
margin: '-11px',
|
|
18
29
|
marginBottom: 0,
|
|
@@ -31,35 +42,34 @@ const useStyles = makeStyles(theme => ({
|
|
|
31
42
|
},
|
|
32
43
|
'&:hover': {
|
|
33
44
|
'&::-webkit-scrollbar-thumb': {
|
|
34
|
-
background: theme.palette.
|
|
45
|
+
background: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)'
|
|
35
46
|
}
|
|
36
47
|
}
|
|
37
48
|
},
|
|
38
|
-
menuButton: {
|
|
49
|
+
[`.${classes.menuButton}`]: {
|
|
39
50
|
marginRight: theme.spacing(2),
|
|
40
51
|
},
|
|
41
|
-
|
|
42
|
-
|
|
52
|
+
[`.${classes.title}`]: {
|
|
53
|
+
flexGrow: habNavegador ? 0 : 1,
|
|
43
54
|
},
|
|
44
|
-
|
|
45
|
-
flexGrow: ({ habNavegador }) => habNavegador ? 0 : 1,
|
|
46
|
-
},
|
|
47
|
-
navigator: {
|
|
55
|
+
[`.${classes.navigator}`]: {
|
|
48
56
|
flexGrow: 1,
|
|
49
57
|
marginLeft: theme.spacing(2)
|
|
50
58
|
}
|
|
51
|
-
})
|
|
59
|
+
});
|
|
52
60
|
|
|
53
|
-
const ToolbarTooltip =
|
|
54
|
-
popper: {
|
|
61
|
+
const ToolbarTooltip = styled(Tooltip)({
|
|
62
|
+
'&.MuiTooltip-popper': {
|
|
55
63
|
zIndex: 1300
|
|
56
64
|
}
|
|
57
|
-
})
|
|
65
|
+
});
|
|
58
66
|
|
|
59
67
|
|
|
60
68
|
const CustomTooltip = ({ disabled, arrow, placement, title, children }) => {
|
|
61
69
|
const [open, setOpen] = useState(false);
|
|
62
|
-
useEffect(() =>
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (disabled && open) setOpen(false);
|
|
72
|
+
}, [disabled, open]);
|
|
63
73
|
return (
|
|
64
74
|
<ToolbarTooltip
|
|
65
75
|
{...{ arrow, placement, title }}
|
|
@@ -98,14 +108,22 @@ function BarraFerramentas ({
|
|
|
98
108
|
addWidget = () => '',
|
|
99
109
|
snAnotacaoPrograma = false,
|
|
100
110
|
openAnnotations = () => '',
|
|
101
|
-
toolbarLoading = {}
|
|
111
|
+
toolbarLoading = {},
|
|
112
|
+
selectedTab = [],
|
|
113
|
+
setSelectedTab = () => ''
|
|
102
114
|
}) {
|
|
103
115
|
|
|
104
|
-
const
|
|
116
|
+
const theme = useTheme();
|
|
117
|
+
const xs = useMediaQuery(theme.breakpoints.only('xs'));
|
|
105
118
|
const anchorMenu = useRef(null);
|
|
106
119
|
const anchorCompartilhar = useRef(null);
|
|
120
|
+
const setSelectedTabRef = useRef(setSelectedTab);
|
|
121
|
+
|
|
122
|
+
useEffect(() => {
|
|
123
|
+
setSelectedTabRef.current = setSelectedTab;
|
|
124
|
+
}, [setSelectedTab]);
|
|
125
|
+
|
|
107
126
|
const [open, setOpen] = useState(false);
|
|
108
|
-
const [abaAtual, setAbaAtual] = useState(undefined);
|
|
109
127
|
const [habEditar, setHabEditar] = useState(true);
|
|
110
128
|
const [habSalvar, setHabSalvar] = useState(false);
|
|
111
129
|
const [habExcluir, setHabExcluir] = useState(false);
|
|
@@ -117,13 +135,18 @@ function BarraFerramentas ({
|
|
|
117
135
|
}, [open]);
|
|
118
136
|
|
|
119
137
|
const previousAbas = usePrevious(abas);
|
|
138
|
+
|
|
120
139
|
useEffect(() => {
|
|
140
|
+
|
|
121
141
|
if (isEqual(abas, previousAbas)) return;
|
|
122
|
-
if (!abas
|
|
123
|
-
|
|
142
|
+
if (!abas?.length) {
|
|
143
|
+
if (typeof setSelectedTabRef.current === 'function') setSelectedTabRef.current([]);
|
|
144
|
+
} else for (let i = 0; i < abas?.length; i++) {
|
|
145
|
+
|
|
124
146
|
const aba = abas[i];
|
|
125
|
-
|
|
126
|
-
|
|
147
|
+
|
|
148
|
+
if (aba[TAB_ACTIVE_INDEX] === 'active') {
|
|
149
|
+
if (typeof setSelectedTabRef.current === 'function') setSelectedTabRef.current(aba);
|
|
127
150
|
break;
|
|
128
151
|
}
|
|
129
152
|
}
|
|
@@ -144,10 +167,16 @@ function BarraFerramentas ({
|
|
|
144
167
|
setOpenCompartilhar(false);
|
|
145
168
|
};
|
|
146
169
|
|
|
147
|
-
const selecionaAba = (index,
|
|
170
|
+
const selecionaAba = (index, tab) => (event) => {
|
|
171
|
+
|
|
172
|
+
const alias = tab?.[TAB_ALIAS_INDEX];
|
|
173
|
+
|
|
148
174
|
if (anchorMenu.current && anchorMenu?.current?.contains(event.target)) return;
|
|
149
|
-
if (
|
|
175
|
+
if (typeof setSelectedTabRef.current === 'function') {
|
|
176
|
+
if (tab?.length) setSelectedTabRef.current(tab);
|
|
177
|
+
}
|
|
150
178
|
if (isNumber(index)) executaFuncao(alias || `T${index}`);
|
|
179
|
+
|
|
151
180
|
setOpen(false);
|
|
152
181
|
};
|
|
153
182
|
|
|
@@ -178,9 +207,11 @@ function BarraFerramentas ({
|
|
|
178
207
|
);
|
|
179
208
|
};
|
|
180
209
|
|
|
210
|
+
|
|
181
211
|
return <>
|
|
182
|
-
<
|
|
183
|
-
|
|
212
|
+
<GlobalStyles styles={toolbarStyles({ habNavegador })} />
|
|
213
|
+
<Toolbar className={classes.root} variant='dense'>
|
|
214
|
+
{(xs && isArray(abas) && (abas?.length > 0)) && (
|
|
184
215
|
<IconButton id='botaoAbasBarraFerramentas' ref={anchorMenu} onClick={toggleAbas} className={classes.menuButton}>
|
|
185
216
|
<MdFormatListBulleted />
|
|
186
217
|
</IconButton>
|
|
@@ -188,12 +219,34 @@ function BarraFerramentas ({
|
|
|
188
219
|
<Popper open={open} anchorEl={anchorMenu.current} role={undefined} transition keepMounted style={{ zIndex: 2, marginLeft: 10 }}>
|
|
189
220
|
{({ TransitionProps }) => (
|
|
190
221
|
<Collapse in={TransitionProps.in} timeout={100}>
|
|
191
|
-
<Paper style={{ maxHeight: '80vh', overflowY: 'auto' }}>
|
|
222
|
+
<Paper elevation={6} style={{ maxHeight: '80vh', overflowY: 'auto' }}>
|
|
192
223
|
<ClickAwayListener onClickAway={selecionaAba()}>
|
|
193
224
|
<MenuList autoFocusItem={open} onKeyDown={handleListKeyDown}>
|
|
194
|
-
{isArray(abas) && abas.map((item, key) =>
|
|
195
|
-
|
|
196
|
-
|
|
225
|
+
{(isArray(abas)) && abas.map((item, key) => {
|
|
226
|
+
|
|
227
|
+
const Icon = item?.[TAB_ICON_INDEX];
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
return (
|
|
231
|
+
<MenuItem
|
|
232
|
+
key={key}
|
|
233
|
+
onClick={selecionaAba(key, item)}
|
|
234
|
+
selected={isEqual(item, selectedTab)}
|
|
235
|
+
>
|
|
236
|
+
<ListItemIcon>
|
|
237
|
+
{(Icon) && (
|
|
238
|
+
<Icon size={TAB_ICON_SIZE} />
|
|
239
|
+
)}
|
|
240
|
+
{(!Icon) && (
|
|
241
|
+
<IoSettings size={TAB_ICON_SIZE} />
|
|
242
|
+
)}
|
|
243
|
+
</ListItemIcon>
|
|
244
|
+
<ListItemText>
|
|
245
|
+
{item?.[TAB_LABEL_INDEX]}
|
|
246
|
+
</ListItemText>
|
|
247
|
+
</MenuItem>
|
|
248
|
+
);
|
|
249
|
+
})}
|
|
197
250
|
</MenuList>
|
|
198
251
|
</ClickAwayListener>
|
|
199
252
|
</Paper>
|
|
@@ -201,8 +254,8 @@ function BarraFerramentas ({
|
|
|
201
254
|
)}
|
|
202
255
|
</Popper>
|
|
203
256
|
<Typography component='div' variant='h6' className={classes.title}>
|
|
204
|
-
{(
|
|
205
|
-
<Typography variant='subtitle1'>{
|
|
257
|
+
{(selectedTab?.length) ? (
|
|
258
|
+
<Typography variant='subtitle1'>{selectedTab?.[TAB_LABEL_INDEX]} <Typography variant='caption'>( {titulo} )</Typography></Typography>
|
|
206
259
|
) : (
|
|
207
260
|
<Typography variant='subtitle1'>{titulo}</Typography>
|
|
208
261
|
)}
|
|
@@ -342,7 +395,9 @@ BarraFerramentas.propTypes = {
|
|
|
342
395
|
threads: PropTypes.array,
|
|
343
396
|
currentProgram: PropTypes.string,
|
|
344
397
|
habWidget: PropTypes.bool,
|
|
345
|
-
addWidget: PropTypes.func
|
|
398
|
+
addWidget: PropTypes.func,
|
|
399
|
+
selectedTab: PropTypes.array,
|
|
400
|
+
setSelectedTab: PropTypes.func
|
|
346
401
|
};
|
|
347
402
|
|
|
348
|
-
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
|
}
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import clsx from 'clsx';
|
|
1
|
+
import { GlobalStyles } from '@mui/material';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
3
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
4
|
import { IoIosArrowBack, IoIosArrowForward } from 'react-icons/io';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
container:
|
|
7
|
+
const classes = {
|
|
8
|
+
container: 'argous-carousel-container',
|
|
9
|
+
carouselContainer: 'argous-carousel-carousel-container',
|
|
10
|
+
carousel: 'argous-carousel-carousel',
|
|
11
|
+
button: 'argous-carousel-button',
|
|
12
|
+
leftButton: 'argous-carousel-left-button',
|
|
13
|
+
rightButton: 'argous-carousel-right-button',
|
|
14
|
+
indicator: 'argous-carousel-indicator',
|
|
15
|
+
currentIndicator: 'argous-carousel-current-indicator',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const carouselStyles = ({ itemSpacing, indicator, indicatorSize, indicatorGap, indicatorPadding, iconSize }) => theme => ({
|
|
19
|
+
[`.${classes.container}`]: {
|
|
9
20
|
height: '100%',
|
|
10
21
|
width: '100%'
|
|
11
22
|
},
|
|
12
|
-
carouselContainer: {
|
|
23
|
+
[`.${classes.carouselContainer}`]: {
|
|
13
24
|
width: '100%',
|
|
14
|
-
height:
|
|
25
|
+
height: indicator ? `calc(100% - ${indicatorPadding * 2}px)` : '100%',
|
|
15
26
|
minWidth: '100%',
|
|
16
27
|
display: 'flex',
|
|
17
28
|
alignItems: 'center'
|
|
18
29
|
},
|
|
19
|
-
carousel: {
|
|
30
|
+
[`.${classes.carousel}`]: {
|
|
20
31
|
width: '100%',
|
|
21
32
|
height: '100%',
|
|
22
33
|
margin: 'auto',
|
|
@@ -26,52 +37,52 @@ const useStyles = makeStyles(theme => ({
|
|
|
26
37
|
overflow: 'hidden',
|
|
27
38
|
scrollBehavior: 'smooth',
|
|
28
39
|
'&>*:not(:last-child)': {
|
|
29
|
-
marginRight:
|
|
40
|
+
marginRight: itemSpacing || ''
|
|
30
41
|
}
|
|
31
42
|
},
|
|
32
|
-
button: {
|
|
43
|
+
[`.${classes.button}`]: {
|
|
33
44
|
display: 'flex',
|
|
34
45
|
alignItems: 'center',
|
|
35
46
|
cursor: 'pointer',
|
|
36
47
|
border: 0,
|
|
37
48
|
padding: 0,
|
|
38
49
|
backgroundColor: '#0000',
|
|
39
|
-
color:
|
|
50
|
+
color: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, .4)' : 'rgba(255, 255, 255, .5)',
|
|
40
51
|
'&:hover': {
|
|
41
|
-
color:
|
|
52
|
+
color: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, .6)' : 'rgba(255, 255, 255, .8)'
|
|
42
53
|
},
|
|
43
54
|
'&:disabled': {
|
|
44
|
-
color:
|
|
55
|
+
color: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, .23)' : 'rgba(255, 255, 255, .3)',
|
|
45
56
|
backgroundColor: 'transparent',
|
|
46
57
|
cursor: 'default',
|
|
47
58
|
pointerEvents: 'none'
|
|
48
59
|
}
|
|
49
60
|
},
|
|
50
|
-
leftButton: {
|
|
61
|
+
[`.${classes.leftButton}`]: {
|
|
51
62
|
left: 0
|
|
52
63
|
},
|
|
53
|
-
rightButton: {
|
|
64
|
+
[`.${classes.rightButton}`]: {
|
|
54
65
|
right: 0
|
|
55
66
|
},
|
|
56
|
-
indicator: {
|
|
67
|
+
[`.${classes.indicator}`]: {
|
|
57
68
|
display: 'flex',
|
|
58
69
|
flexWrap: 'wrap',
|
|
59
70
|
alignItems: 'center',
|
|
60
71
|
justifyContent: 'center',
|
|
61
|
-
gap:
|
|
62
|
-
padding:
|
|
72
|
+
gap: indicatorGap || '',
|
|
73
|
+
padding: `${indicatorPadding - (indicatorSize / 2)}px ${iconSize}px`,
|
|
63
74
|
'& span': {
|
|
64
|
-
width:
|
|
65
|
-
height:
|
|
75
|
+
width: indicatorSize || '',
|
|
76
|
+
height: indicatorSize || '',
|
|
66
77
|
borderRadius: '50%',
|
|
67
|
-
backgroundColor:
|
|
78
|
+
backgroundColor: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, .4)' : 'rgba(255, 255, 255, .5)',
|
|
68
79
|
transition: 'background-color 500ms'
|
|
69
80
|
}
|
|
70
81
|
},
|
|
71
|
-
currentIndicator: {
|
|
72
|
-
backgroundColor:
|
|
82
|
+
[`.${classes.currentIndicator}`]: {
|
|
83
|
+
backgroundColor: theme.palette.mode === 'light' ? '#000 !important' : '#fff !important'
|
|
73
84
|
}
|
|
74
|
-
})
|
|
85
|
+
});
|
|
75
86
|
|
|
76
87
|
|
|
77
88
|
const CAROUSEL_ID = 'carousel';
|
|
@@ -102,7 +113,6 @@ const Carousel = ({
|
|
|
102
113
|
currentIndicatorClassName
|
|
103
114
|
}) => {
|
|
104
115
|
|
|
105
|
-
const classes = useStyles({ itemSpacing, indicator, indicatorSize, indicatorGap, indicatorPadding, iconSize });
|
|
106
116
|
const [state, setState] = useState(initialState);
|
|
107
117
|
const { position, indicatorArray } = state;
|
|
108
118
|
const carousel = useRef(null);
|
|
@@ -140,7 +150,9 @@ const Carousel = ({
|
|
|
140
150
|
|
|
141
151
|
(position === children.length) && logicSetState({ type: 'position', value: (children.length - 1) });
|
|
142
152
|
}, [itemSpacing, leftButtonId, rightButtonId, position, children.length]);
|
|
143
|
-
useEffect(() =>
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
control();
|
|
155
|
+
}, [control]);
|
|
144
156
|
control();
|
|
145
157
|
|
|
146
158
|
const createIndicatorArray = useCallback(() => {
|
|
@@ -148,7 +160,9 @@ const Carousel = ({
|
|
|
148
160
|
const newIndicatorArray = Array.from(Array(childrenLength).keys());
|
|
149
161
|
logicSetState({ type: 'indicatorArray', value: newIndicatorArray });
|
|
150
162
|
}, []);
|
|
151
|
-
useEffect(() =>
|
|
163
|
+
useEffect(() => {
|
|
164
|
+
if (indicator) createIndicatorArray();
|
|
165
|
+
}, [indicator, children, createIndicatorArray]);
|
|
152
166
|
|
|
153
167
|
const handleCarouselClick = (e, direction) => {
|
|
154
168
|
if (!childWidth || (typeof childWidth !== 'number')) return;
|
|
@@ -181,6 +195,7 @@ const Carousel = ({
|
|
|
181
195
|
|
|
182
196
|
|
|
183
197
|
return <div id={carouselId} className={classes.container}>
|
|
198
|
+
<GlobalStyles styles={carouselStyles({ itemSpacing, indicator, indicatorSize, indicatorGap, indicatorPadding, iconSize })} />
|
|
184
199
|
<div className={classes.carouselContainer}>
|
|
185
200
|
{(buttons && LEFT_ICON) && (
|
|
186
201
|
<button id={leftButtonId} onClick={(e) => handleCarouselClick(e, 'left')} className={clsx(classes.button, classes.leftButton, buttonClassName)}>
|
|
@@ -215,4 +230,4 @@ const Carousel = ({
|
|
|
215
230
|
};
|
|
216
231
|
|
|
217
232
|
|
|
218
|
-
export default Carousel;
|
|
233
|
+
export default Carousel;
|
|
@@ -2,7 +2,7 @@ import { ArgousAvatar } from '../';
|
|
|
2
2
|
import { setAnotherProgramField } from '../../fieldsRedux';
|
|
3
3
|
import { useStore } from '../../utils';
|
|
4
4
|
import { serverAction } from '../../utils/api';
|
|
5
|
-
import { Card, Typography, Grid, Button, Portal, Popper } from '@material
|
|
5
|
+
import { Card, Typography, Grid, Button, Portal, Popper } from '@mui/material';
|
|
6
6
|
import React, { useState, useEffect, useRef, useCallback } from 'react';
|
|
7
7
|
import { IoIosCall } from 'react-icons/io';
|
|
8
8
|
import { MdMail, MdMessage } from 'react-icons/md';
|
|
@@ -71,10 +71,10 @@ function CartaoUsuario({ anchor, idUsuario }) {
|
|
|
71
71
|
<Popper onClick={e => e.stopPropagation()} style={{ zIndex: 5 }} onMouseLeave={mouseLeave} onMouseEnter={mouseEnter} open={(!!anchor || !!localAnchor) && !!dados.dsNomeUsuario} anchorEl={anchor || localAnchor}>
|
|
72
72
|
<Card variant='outlined' style={{ padding: '10px', maxWidth: '350px' }}>
|
|
73
73
|
<Grid container spacing={1}>
|
|
74
|
-
<Grid
|
|
74
|
+
<Grid size='auto'>
|
|
75
75
|
<ArgousAvatar style={{ width: '50px', height: '50px', margin: '10px' }} nome={dados.dsNomeUsuario} idUsuario={idUsuario || localIdUsuario} />
|
|
76
76
|
</Grid>
|
|
77
|
-
<Grid
|
|
77
|
+
<Grid size='auto'>
|
|
78
78
|
<Typography variant='h6' style={{ overflow: 'hidden', width: '250px', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{dados.dsNomeUsuario}</Typography>
|
|
79
79
|
<Typography variant='body2' style={{ width: '250px' }}>{dados.dsFuncaoUsuario}</Typography>
|
|
80
80
|
<Typography variant='caption' style={{ width: '250px' }}>{dados.dsSetor}</Typography>
|
|
@@ -85,14 +85,14 @@ function CartaoUsuario({ anchor, idUsuario }) {
|
|
|
85
85
|
((idUsuario && (idUsuarioLogado !== idUsuario)) || (localIdUsuario && (idUsuarioLogado !== localIdUsuario))) &&
|
|
86
86
|
<React.Fragment>
|
|
87
87
|
{dados.nrRamalUsuario &&
|
|
88
|
-
<Grid
|
|
88
|
+
<Grid size='grow'>
|
|
89
89
|
<Button fullWidth variant='contained' href={`tel: ${dados.nrRamalUsuario}`} title={`Ramal: ${dados.nrRamalUsuario}`}><IoIosCall/> {dados.nrRamalUsuario}</Button>
|
|
90
90
|
</Grid>
|
|
91
91
|
}
|
|
92
|
-
<Grid
|
|
92
|
+
<Grid size='grow'>
|
|
93
93
|
<Button fullWidth variant='contained' href={`mailto: ${dados.dsEmailUsuario}`} title={dados.dsEmailUsuario}><MdMail/> Email</Button>
|
|
94
94
|
</Grid>
|
|
95
|
-
<Grid
|
|
95
|
+
<Grid size='grow'>
|
|
96
96
|
<Button fullWidth variant='contained' onClick={() => setAnotherProgramField('janelaChatOpen', retornaUser(), 'argousSystem')} title='Abrir chat de conversa'><MdMessage/> Mensagem</Button>
|
|
97
97
|
</Grid>
|
|
98
98
|
</React.Fragment>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StandardProps } from '@material
|
|
2
|
-
import { TransitionProps } from '@material
|
|
1
|
+
import { StandardProps } from '@mui/material';
|
|
2
|
+
import { TransitionProps } from '@mui/material/transitions';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
5
|
export interface CollapseProps extends StandardProps<TransitionProps, CollapseClassKey, 'timeout'> {
|
|
@@ -57,4 +57,4 @@ export type CollapseClassKey = 'container' | 'entered' | 'hidden' | 'wrapper' |
|
|
|
57
57
|
* - inherits [Transition API](https://reactcommunity.org/react-transition-group/transition#Transition-props)
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
|
-
export default function Collapse(props: CollapseProps): JSX.Element;
|
|
60
|
+
export default function Collapse(props: CollapseProps): JSX.Element;
|