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,32 +1,44 @@
|
|
|
1
1
|
import { TableContext } from '../ArgousComplexTable/ArgousComplexTable';
|
|
2
|
-
import { TableBody, TableRow, Checkbox, Collapse, TableCell,
|
|
3
|
-
import
|
|
2
|
+
import { TableBody, TableRow, Checkbox, Collapse, TableCell, Typography, CircularProgress, Tooltip, IconButton, GlobalStyles } from '@mui/material';
|
|
3
|
+
import { alpha } from '@mui/material/styles';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
4
5
|
import { isArray } from 'lodash';
|
|
5
6
|
import React, { Fragment, useContext, memo } from 'react';
|
|
6
7
|
import { MdDragHandle } from 'react-icons/md';
|
|
7
|
-
import { Container, Draggable } from '
|
|
8
|
+
import { Container, Draggable } from './DragAndDrop';
|
|
8
9
|
|
|
9
|
-
const
|
|
10
|
-
dragHandle:
|
|
10
|
+
const classes = {
|
|
11
|
+
dragHandle: 'argous-complex-table-body-drag-handle',
|
|
12
|
+
hover: 'argous-complex-table-body-hover',
|
|
13
|
+
open: 'argous-complex-table-body-open',
|
|
14
|
+
semDados: 'argous-complex-table-body-sem-dados',
|
|
15
|
+
group: 'argous-complex-table-body-group',
|
|
16
|
+
loading: 'argous-complex-table-body-loading',
|
|
17
|
+
ghost: 'argous-complex-table-body-ghost',
|
|
18
|
+
tableCell: 'argous-complex-table-body-table-cell',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const tableBodyStyles = theme => ({
|
|
22
|
+
[`.${classes.dragHandle}`]: {
|
|
11
23
|
cursor: 'n-resize'
|
|
12
24
|
},
|
|
13
|
-
hover: {
|
|
25
|
+
[`.${classes.hover}`]: {
|
|
14
26
|
'&:hover': {
|
|
15
27
|
backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
|
|
16
28
|
}
|
|
17
29
|
},
|
|
18
|
-
open: {
|
|
30
|
+
[`.${classes.open}`]: {
|
|
19
31
|
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
20
32
|
'&:hover': {
|
|
21
33
|
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity * 2),
|
|
22
34
|
}
|
|
23
35
|
},
|
|
24
|
-
semDados: {
|
|
36
|
+
[`.${classes.semDados}`]: {
|
|
25
37
|
padding: theme.spacing(1),
|
|
26
38
|
paddingLeft: theme.spacing(2),
|
|
27
39
|
fontSize: '1rem',
|
|
28
40
|
},
|
|
29
|
-
group: {
|
|
41
|
+
[`.${classes.group}`]: {
|
|
30
42
|
'&>td': {
|
|
31
43
|
padding: '0px',
|
|
32
44
|
// '&:hover':{
|
|
@@ -34,33 +46,33 @@ const useStyles = makeStyles(theme => ({
|
|
|
34
46
|
// }
|
|
35
47
|
}
|
|
36
48
|
},
|
|
37
|
-
loading: {
|
|
49
|
+
[`.${classes.loading}`]: {
|
|
38
50
|
textAlign: 'center',
|
|
39
51
|
padding: '7px'
|
|
40
52
|
},
|
|
41
|
-
ghost: {
|
|
53
|
+
[`.${classes.ghost}`]: {
|
|
42
54
|
borderBottom: '1px solid #0000',
|
|
43
55
|
userSelect: 'none',
|
|
44
56
|
'&:hover': {
|
|
45
57
|
backgroundColor: '#0000 !important'
|
|
46
58
|
}
|
|
47
59
|
},
|
|
48
|
-
tableCell: {
|
|
60
|
+
[`.${classes.tableCell}`]: {
|
|
49
61
|
overflow: 'hidden',
|
|
50
62
|
whiteSpace: 'nowrap',
|
|
51
63
|
textOverflow: 'ellipsis'
|
|
52
64
|
}
|
|
53
|
-
})
|
|
65
|
+
});
|
|
54
66
|
|
|
55
67
|
const ArgousComplexTableBody = memo(({
|
|
56
|
-
children,
|
|
57
|
-
line,
|
|
68
|
+
children,
|
|
69
|
+
line,
|
|
58
70
|
lineStyle,
|
|
59
71
|
handleOpenClose,
|
|
60
72
|
lineClass,
|
|
61
73
|
enableCheck,
|
|
62
74
|
disableCheckIf,
|
|
63
|
-
columnStyles,
|
|
75
|
+
columnStyles,
|
|
64
76
|
head,
|
|
65
77
|
onClick,
|
|
66
78
|
onDoubleClick,
|
|
@@ -75,8 +87,6 @@ const ArgousComplexTableBody = memo(({
|
|
|
75
87
|
enableDrag,
|
|
76
88
|
onDrop
|
|
77
89
|
}) => {
|
|
78
|
-
const classes = useStyles();
|
|
79
|
-
|
|
80
90
|
const { lista, selected, dispatch, loading } = useContext(TableContext);
|
|
81
91
|
|
|
82
92
|
const handleClick = name => {
|
|
@@ -103,98 +113,103 @@ const ArgousComplexTableBody = memo(({
|
|
|
103
113
|
};
|
|
104
114
|
|
|
105
115
|
return (
|
|
106
|
-
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
116
|
+
<>
|
|
117
|
+
<GlobalStyles styles={tableBodyStyles} />
|
|
118
|
+
<Container dragHandleSelector={`.${classes.dragHandle}`} onDrop={onDrop} render={containerRef => (
|
|
119
|
+
<TableBody ref={containerRef} /*component={Container} dragHandleSelector={`.${classes.dragHandle}`} onDrop={onDrop}*/>
|
|
120
|
+
{loading ? (
|
|
121
|
+
<TableRow><TableCell className={classes.loading} colSpan={dadosMostrados?.length && line(dadosMostrados[0])?.length + (enableCheck ? 1 : 0) + (enableDrag ? 1 : 0)}><CircularProgress disableShrink/></TableCell></TableRow>
|
|
122
|
+
) : dadosMostrados.length ? dadosMostrados.map((linha, i) => {
|
|
111
123
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
124
|
+
const isItemSelected = isSelected(linha[indexToSelect]);
|
|
125
|
+
const isItemOpen = i === open;
|
|
126
|
+
const ghostRow = (isArray(linha)) ? !linha.some((value) => !!value) : false;
|
|
127
|
+
const { title, ...rowProperties } = rowProps({ index: i, linhaOriginal: linha, linhaFormatada: line(linha), itensSelecionados: selected }) || {};
|
|
116
128
|
|
|
117
129
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
130
|
+
return (
|
|
131
|
+
<Draggable key={customKey ? lista[i][customKey] : i} render={draggableRef => (
|
|
132
|
+
//TODO criar proprio draggable pois esse remove classes do filho
|
|
133
|
+
(<Fragment>
|
|
134
|
+
<CustomTooltip title={(ghostRow) ? '' : (lineTitle || title)}>
|
|
135
|
+
<TableRow
|
|
136
|
+
component={Draggable}
|
|
137
|
+
{...rowProperties}
|
|
138
|
+
className={
|
|
139
|
+
clsx(
|
|
140
|
+
{
|
|
141
|
+
[classes.hover]: isItemSelected,
|
|
142
|
+
[classes.open]: (isItemOpen && !!children),
|
|
143
|
+
[classes.ghost]: ghostRow
|
|
144
|
+
},
|
|
145
|
+
(ghostRow) ? '' : lineClass(line(linha), linha, i),
|
|
146
|
+
rowProperties.className
|
|
147
|
+
)
|
|
148
|
+
}
|
|
149
|
+
hover
|
|
150
|
+
role='checkbox'
|
|
151
|
+
tabIndex={-1}
|
|
152
|
+
selected={isItemSelected}
|
|
153
|
+
style={(lineStyle && !ghostRow) ? lineStyle(linha, line(linha), i) : undefined}
|
|
154
|
+
onClick={(ghostRow) ? undefined : (onClick) ? e => onClick(e, linha, line(linha), i) : (children) ? () => handleOpenClose(i) : undefined}
|
|
155
|
+
onDoubleClick={(ghostRow) ? undefined : (onDoubleClick) ? e => onDoubleClick(e, linha, line(linha), i) : undefined}
|
|
156
|
+
ref={draggableRef}
|
|
157
|
+
>
|
|
158
|
+
{enableDrag && <TableCell padding='checkbox'>
|
|
159
|
+
<Tooltip title='Arrastar'>
|
|
160
|
+
<IconButton size='small' className={classes.dragHandle}>
|
|
161
|
+
<MdDragHandle/>
|
|
162
|
+
</IconButton>
|
|
163
|
+
</Tooltip>
|
|
164
|
+
</TableCell>}
|
|
165
|
+
{(enableCheck) && (
|
|
166
|
+
<TableCell padding='checkbox' className={clsx({ [classes.ghost]: ghostRow })}>
|
|
167
|
+
{(!ghostRow) && (
|
|
168
|
+
<Checkbox
|
|
169
|
+
checked={isItemSelected}
|
|
170
|
+
disabled={(disableCheckIf) && disableCheckIf(linha, line(linha), i)}
|
|
171
|
+
onClick={(event) => {
|
|
172
|
+
event.stopPropagation();
|
|
173
|
+
handleClick(linha[indexToSelect]);
|
|
174
|
+
}}
|
|
175
|
+
/>
|
|
176
|
+
)}
|
|
177
|
+
</TableCell>
|
|
163
178
|
)}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
{isArray(line(linha)) && line(linha).map((coluna, j) => (
|
|
180
|
+
(ghostRow) ? (
|
|
181
|
+
<TableCell key={j} className={clsx(classes.tableCell, classes.ghost)}>
|
|
182
|
+
|
|
183
|
+
</TableCell>
|
|
184
|
+
) : (
|
|
185
|
+
<TableCell
|
|
186
|
+
key={j}
|
|
187
|
+
{...columnProps(j, coluna, linha, line(linha))}
|
|
188
|
+
style={columnStyles ? columnStyles[j] : undefined}
|
|
189
|
+
className={classes.tableCell}
|
|
190
|
+
>
|
|
191
|
+
{getCellContent(coluna, dadosMostrados[i], j, i)}
|
|
192
|
+
</TableCell>
|
|
193
|
+
)
|
|
194
|
+
))}
|
|
195
|
+
</TableRow>
|
|
196
|
+
</CustomTooltip>
|
|
197
|
+
{children && (
|
|
198
|
+
<TableRow className={classes.group}>
|
|
199
|
+
<TableCell colSpan={dadosMostrados?.length && line(dadosMostrados[0])?.length + (enableCheck ? 1 : 0) + (enableDrag ? 1 : 0)} style={{ padding: open === i ? 8 : 0 }} className='argous-complex-table-group-cell'>
|
|
200
|
+
<Collapse in={open === i} mountOnEnter unmountOnExit>
|
|
201
|
+
{typeof children === 'function' ? children({ linha: line(linha), linhaOriginal: linha, index: i }) : children}
|
|
202
|
+
</Collapse>
|
|
179
203
|
</TableCell>
|
|
180
|
-
|
|
181
|
-
)
|
|
182
|
-
</
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
</Collapse>
|
|
190
|
-
</TableCell>
|
|
191
|
-
</TableRow>
|
|
192
|
-
)}
|
|
193
|
-
</Fragment>
|
|
194
|
-
)}/>;
|
|
195
|
-
}) : <TableRow><Typography className={classes.semDados} component='td' variant='h6' colSpan={head.length + (enableCheck ? 1 : 0)}>Nenhum dado a ser exibido</Typography></TableRow> }
|
|
196
|
-
</TableBody>
|
|
197
|
-
)}/>
|
|
204
|
+
</TableRow>
|
|
205
|
+
)}
|
|
206
|
+
</Fragment>)
|
|
207
|
+
)}/>
|
|
208
|
+
);
|
|
209
|
+
}) : <TableRow><Typography className={classes.semDados} component='td' variant='h6' colSpan={head.length + (enableCheck ? 1 : 0)}>Nenhum dado a ser exibido</Typography></TableRow> }
|
|
210
|
+
</TableBody>
|
|
211
|
+
)}/>
|
|
212
|
+
</>
|
|
198
213
|
);
|
|
199
214
|
});
|
|
200
215
|
|
|
@@ -205,4 +220,4 @@ export const CustomTooltip = ({ title, children }) => {
|
|
|
205
220
|
{children}
|
|
206
221
|
</Tooltip>;
|
|
207
222
|
return children;
|
|
208
|
-
};
|
|
223
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React, { Component } from 'react';
|
|
3
|
+
import smoothDnD, { constants, dropHandlers } from 'trello-smooth-dnd';
|
|
4
|
+
|
|
5
|
+
smoothDnD.dropHandler = dropHandlers.reactDropHandler().handler;
|
|
6
|
+
smoothDnD.wrapChild = child => child;
|
|
7
|
+
|
|
8
|
+
export class Container extends Component {
|
|
9
|
+
componentDidMount() {
|
|
10
|
+
this.previousContainer = this.containerElement;
|
|
11
|
+
this.container = smoothDnD(this.containerElement, this.getContainerOptions());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
componentDidUpdate() {
|
|
15
|
+
if (this.previousContainer && this.previousContainer !== this.containerElement) {
|
|
16
|
+
this.container.dispose();
|
|
17
|
+
this.container = smoothDnD(this.containerElement, this.getContainerOptions());
|
|
18
|
+
this.previousContainer = this.containerElement;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
componentWillUnmount() {
|
|
23
|
+
this.container.dispose();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
setRef = element => {
|
|
27
|
+
this.containerElement = element;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getContainerOptions = () => {
|
|
31
|
+
const functionProps = {};
|
|
32
|
+
const callbacks = [
|
|
33
|
+
'onDragStart',
|
|
34
|
+
'onDragEnd',
|
|
35
|
+
'onDrop',
|
|
36
|
+
'getChildPayload',
|
|
37
|
+
'shouldAnimateDrop',
|
|
38
|
+
'shouldAcceptDrop',
|
|
39
|
+
'onDragEnter',
|
|
40
|
+
'onDragLeave',
|
|
41
|
+
'render',
|
|
42
|
+
'onDropReady',
|
|
43
|
+
'getGhostParent'
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
callbacks.forEach(callback => {
|
|
47
|
+
if (this.props[callback]) {
|
|
48
|
+
functionProps[callback] = (...parameters) => this.props[callback](...parameters);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
return { ...this.props, ...functionProps };
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
render() {
|
|
56
|
+
if (this.props.render) {
|
|
57
|
+
return this.props.render(this.setRef);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return <div style={this.props.style} ref={this.setRef}>{this.props.children}</div>;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Container.propTypes = {
|
|
65
|
+
children: PropTypes.node,
|
|
66
|
+
render: PropTypes.func,
|
|
67
|
+
style: PropTypes.object
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export class Draggable extends Component {
|
|
71
|
+
render() {
|
|
72
|
+
if (this.props.render) {
|
|
73
|
+
return React.cloneElement(this.props.render(), { className: constants.wrapperClass });
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const className = `${this.props.className ? `${this.props.className} ` : ''}${constants.wrapperClass}`;
|
|
77
|
+
return <div {...this.props} className={className}>{this.props.children}</div>;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
Draggable.propTypes = {
|
|
82
|
+
children: PropTypes.node,
|
|
83
|
+
className: PropTypes.string,
|
|
84
|
+
render: PropTypes.func
|
|
85
|
+
};
|
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
import { TableContext } from '../ArgousComplexTable/ArgousComplexTable';
|
|
2
|
-
import { TableHead, TableRow, Checkbox, TableCell, TableSortLabel,
|
|
3
|
-
import
|
|
2
|
+
import { TableHead, TableRow, Checkbox, TableCell, TableSortLabel, GlobalStyles } from '@mui/material';
|
|
3
|
+
import { alpha } from '@mui/material/styles';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
4
5
|
import { isArray } from 'lodash';
|
|
5
6
|
import React, { useContext, memo, useMemo } from 'react';
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
-
highlight:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const classes = {
|
|
9
|
+
highlight: 'argous-complex-table-head-highlight',
|
|
10
|
+
lighthighlight: 'argous-complex-table-head-light-highlight',
|
|
11
|
+
visuallyHidden: 'argous-complex-table-head-visually-hidden',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const tableHeadStyles = theme => ({
|
|
15
|
+
[`.${classes.highlight}`]: {
|
|
16
|
+
color: theme.palette.mode === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
|
|
17
|
+
backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
|
|
11
18
|
},
|
|
12
|
-
lighthighlight: {
|
|
13
|
-
background: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity)
|
|
19
|
+
[`.${classes.lighthighlight}`]: {
|
|
20
|
+
background: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity)
|
|
14
21
|
},
|
|
15
|
-
visuallyHidden: {
|
|
22
|
+
[`.${classes.visuallyHidden}`]: {
|
|
16
23
|
border: 0,
|
|
17
24
|
clip: 'rect(0 0 0 0)',
|
|
18
25
|
height: 1,
|
|
@@ -23,23 +30,22 @@ const useStyles = makeStyles(theme => ({
|
|
|
23
30
|
top: 20,
|
|
24
31
|
width: 1,
|
|
25
32
|
}
|
|
26
|
-
})
|
|
33
|
+
});
|
|
27
34
|
|
|
28
|
-
const ArgousComplexTableHead = memo(({
|
|
29
|
-
numSelected,
|
|
30
|
-
rowCount,
|
|
31
|
-
head,
|
|
35
|
+
const ArgousComplexTableHead = memo(({
|
|
36
|
+
numSelected,
|
|
37
|
+
rowCount,
|
|
38
|
+
head,
|
|
32
39
|
enableCheck,
|
|
33
40
|
disableCheckIf,
|
|
34
|
-
line,
|
|
35
|
-
size,
|
|
36
|
-
headerColumnStyles,
|
|
41
|
+
line,
|
|
42
|
+
size,
|
|
43
|
+
headerColumnStyles,
|
|
37
44
|
disableSorting,
|
|
38
45
|
ordCols,
|
|
39
46
|
cortaDados,
|
|
40
47
|
enableDrag
|
|
41
48
|
}) => {
|
|
42
|
-
const classes = useStyles();
|
|
43
49
|
const { selected, order, orderBy, dispatch, lista, indexToSelect, method, externalCtrlPgn } = useContext(TableContext);
|
|
44
50
|
|
|
45
51
|
const handleRequestSort = property => {
|
|
@@ -59,39 +65,42 @@ const ArgousComplexTableHead = memo(({
|
|
|
59
65
|
};
|
|
60
66
|
|
|
61
67
|
return (
|
|
62
|
-
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
68
|
+
<>
|
|
69
|
+
<GlobalStyles styles={tableHeadStyles} />
|
|
70
|
+
<TableHead>
|
|
71
|
+
<TableRow className={clsx({
|
|
72
|
+
[classes.highlight]: (((numSelected === rowCount) || (numSelected === length) || (numSelected === lista?.length)) && (rowCount && length)),
|
|
73
|
+
[classes.lighthighlight]: ((numSelected > 0) && ((method || externalCtrlPgn) ? (numSelected < lista?.length) : (numSelected < rowCount)))
|
|
74
|
+
})}>
|
|
75
|
+
{enableDrag && <TableCell padding='checkbox'/>}
|
|
76
|
+
{enableCheck && <TableCell padding='checkbox'>
|
|
77
|
+
<Checkbox
|
|
78
|
+
disabled={!length}
|
|
79
|
+
indeterminate={(method || externalCtrlPgn) ? ((numSelected > 0) && (numSelected < lista?.length)) : ((numSelected > 0) && (numSelected < length))}
|
|
80
|
+
checked={(method || externalCtrlPgn) ? ((rowCount > 0) && ((numSelected === rowCount) || (numSelected === lista?.length))) : ((rowCount > 0) && length && (numSelected === length))}
|
|
81
|
+
onChange={handleSelectAllClick}
|
|
82
|
+
/>
|
|
83
|
+
</TableCell>}
|
|
84
|
+
{isArray(head) && head.map((item, i) => (
|
|
85
|
+
<TableCell key={i} style={headerColumnStyles ? headerColumnStyles[i] : undefined}>
|
|
86
|
+
{(disableSorting[i] || (ordCols && !ordCols[i])) ?
|
|
87
|
+
item
|
|
88
|
+
:
|
|
89
|
+
<TableSortLabel
|
|
90
|
+
active={orderBy === i}
|
|
91
|
+
direction={orderBy === i ? order : 'asc'}
|
|
92
|
+
onClick={() => handleRequestSort(i)}
|
|
93
|
+
>{item}{orderBy === i ? (
|
|
94
|
+
<span className={classes.visuallyHidden}>
|
|
95
|
+
{order === 'desc' ? 'sorted descending' : 'sorted ascending'}
|
|
96
|
+
</span>
|
|
97
|
+
) : null}
|
|
98
|
+
</TableSortLabel>}
|
|
99
|
+
</TableCell>
|
|
100
|
+
))}
|
|
101
|
+
</TableRow>
|
|
102
|
+
</TableHead>
|
|
103
|
+
</>
|
|
95
104
|
);
|
|
96
105
|
});
|
|
97
106
|
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import { TableContext } from '../ArgousComplexTable/ArgousComplexTable';
|
|
2
|
-
import { Toolbar, Typography, Grid, TextField, IconButton,
|
|
3
|
-
import
|
|
2
|
+
import { Toolbar, Typography, Grid, TextField, IconButton, Tooltip, GlobalStyles } from '@mui/material';
|
|
3
|
+
import { alpha } from '@mui/material/styles';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
4
5
|
import { isArray } from 'lodash';
|
|
5
6
|
import React, { useContext, useRef, memo } from 'react';
|
|
6
7
|
|
|
7
|
-
const
|
|
8
|
-
toolbar:
|
|
8
|
+
const classes = {
|
|
9
|
+
toolbar: 'argous-complex-table-toolbar-toolbar',
|
|
10
|
+
highlight: 'argous-complex-table-toolbar-highlight',
|
|
11
|
+
title: 'argous-complex-table-toolbar-title',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const toolbarStyles = theme => ({
|
|
15
|
+
[`.${classes.toolbar}`]: {
|
|
9
16
|
minHeight: 0,
|
|
10
17
|
paddingLeft: theme.spacing(2),
|
|
11
18
|
paddingRight: theme.spacing(1),
|
|
12
19
|
},
|
|
13
|
-
highlight: {
|
|
14
|
-
color: theme.palette.
|
|
20
|
+
[`.${classes.highlight}`]: {
|
|
21
|
+
color: theme.palette.mode === 'light' ? theme.palette.secondary.main : theme.palette.text.primary,
|
|
15
22
|
backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.selectedOpacity * 2)
|
|
16
23
|
},
|
|
17
|
-
title: {
|
|
24
|
+
[`.${classes.title}`]: {
|
|
18
25
|
flex: '1 1 100%',
|
|
19
26
|
lineHeight: '50px'
|
|
20
27
|
}
|
|
21
|
-
})
|
|
28
|
+
});
|
|
22
29
|
|
|
23
30
|
const ArgousComplexTableToolBar = memo(({
|
|
24
31
|
numSelected,
|
|
@@ -29,7 +36,6 @@ const ArgousComplexTableToolBar = memo(({
|
|
|
29
36
|
lista,
|
|
30
37
|
indexToSelect,
|
|
31
38
|
fixedToolbar }) => {
|
|
32
|
-
const classes = useStyles();
|
|
33
39
|
const { selected, dispatch } = useContext(TableContext);
|
|
34
40
|
|
|
35
41
|
const filterTime = useRef();
|
|
@@ -44,13 +50,16 @@ const ArgousComplexTableToolBar = memo(({
|
|
|
44
50
|
|
|
45
51
|
return (
|
|
46
52
|
<Toolbar className={clsx(classes.toolbar, { [classes.highlight]: numSelected > 0 })}>
|
|
53
|
+
<GlobalStyles styles={toolbarStyles} />
|
|
47
54
|
{numSelected > 0 ? (
|
|
48
|
-
<Typography className={classes.title}
|
|
55
|
+
<Typography className={classes.title} variant='subtitle1' component='div' sx={{
|
|
56
|
+
color: 'inherit'
|
|
57
|
+
}}>
|
|
49
58
|
{numSelected} {numSelected === 1 ? 'selecionado' : 'selecionados'}
|
|
50
59
|
</Typography>
|
|
51
60
|
) : <Grid container spacing={2} style={{ marginRight: 0 }}>
|
|
52
|
-
{title && <Grid
|
|
53
|
-
{!disableFilter && <Grid
|
|
61
|
+
{title && <Grid style={{ display: 'flex', alignItems: 'center' }} size='grow'><Typography className={classes.title} variant='h6' component='div'>{title}</Typography></Grid>}
|
|
62
|
+
{!disableFilter && <Grid size='grow'><TextField label={filterLabel} fullWidth margin='dense' variant='outlined' onChange={handleChange}/></Grid>}
|
|
54
63
|
</Grid>}
|
|
55
64
|
{(fixedToolbar || numSelected > 0) && isArray(actions) && actions.map((action, i) => (
|
|
56
65
|
<Tooltip key={i} title={action[0]}>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createField, getField } from '../../fieldsRedux';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
|
-
import MaskedInput from 'react-
|
|
4
|
+
import MaskedInput from '@mona-health/react-input-mask';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated
|
|
@@ -442,7 +442,7 @@ class ArgousInput extends Component {
|
|
|
442
442
|
<label style={this.styleLabel}
|
|
443
443
|
>{label}</label>
|
|
444
444
|
<div style={this.styleDiv2}>
|
|
445
|
-
<MaskedInput mask={mask} style={this.styleInput} {...this.props} />
|
|
445
|
+
<MaskedInput mask={mask.replaceAll('1', '9').replaceAll('#', '*')} style={this.styleInput} {...this.props} />
|
|
446
446
|
<fieldset style={this.stylefieldset}>
|
|
447
447
|
<legend style={this.styleLegend}>
|
|
448
448
|
<span style={this.styleSpan}></span>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select, MenuItem, InputBase, Box, Toolbar, Typography, IconButton } from '@material
|
|
1
|
+
import { Select, MenuItem, InputBase, Box, Toolbar, Typography, IconButton } from '@mui/material';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { MdKeyboardArrowLeft, MdKeyboardArrowRight } from 'react-icons/md';
|
|
4
4
|
|
|
@@ -12,7 +12,9 @@ const ArgousPagination = (props) => {
|
|
|
12
12
|
return (
|
|
13
13
|
<Toolbar style={{ minHeight: 52, paddingRight: 2 }}>
|
|
14
14
|
<div style={{ flex: '1 1 100%' }}/>
|
|
15
|
-
<Typography
|
|
15
|
+
<Typography variant='body2' style={{ flexShrink: 0 }} sx={{
|
|
16
|
+
color: 'inherit'
|
|
17
|
+
}}>Linhas</Typography>
|
|
16
18
|
{value && (
|
|
17
19
|
<Select
|
|
18
20
|
input={<InputBase style={{ marginRight: 32, marginLeft: 8, color: 'inherit', fontSize: 'inherit', flexShrink: 0, }} />}
|
|
@@ -22,8 +24,14 @@ const ArgousPagination = (props) => {
|
|
|
22
24
|
})}
|
|
23
25
|
</Select>
|
|
24
26
|
)}
|
|
25
|
-
<Typography
|
|
26
|
-
|
|
27
|
+
<Typography variant='body2' component='div' style={{ flexShrink: 0 }} sx={{
|
|
28
|
+
color: 'inherit'
|
|
29
|
+
}}>
|
|
30
|
+
<Box
|
|
31
|
+
sx={{
|
|
32
|
+
padding: '1px 0px',
|
|
33
|
+
display: 'inline'
|
|
34
|
+
}}>
|
|
27
35
|
<InputBase style={{ width: 40 }} inputProps={{ value: props.ctrlPgnReturn.pgAtl }} onBlur={e => props.onChangePageNumber(e.target.value) }/>
|
|
28
36
|
{` / ${props.ctrlPgnReturn.qtPaginas}`}
|
|
29
37
|
</Box>
|