argous 1.2.247 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/WebSocket.d.ts +18 -10
- package/dist/api/WebSocket.js +26 -18
- package/dist/api/index.js +54 -43
- package/dist/api/ws.d.ts +1 -1
- package/dist/api/ws.js +44 -3
- package/dist/components/Alert/Alert.d.ts +19 -5
- package/dist/components/Alert/Alert.js +17 -7
- package/dist/components/Alert/index.d.ts +1 -2
- package/dist/components/ArgousAction/ArgousAction.d.ts +26 -5
- package/dist/components/ArgousAction/ArgousAction.js +17 -7
- package/dist/components/ArgousAction/index.d.ts +1 -2
- package/dist/components/ArgousAvatar/ArgousAvatar.d.ts +3 -14
- package/dist/components/ArgousAvatar/ArgousAvatar.js +44 -60
- package/dist/components/ArgousAvatar/index.d.ts +1 -2
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +3 -76
- package/dist/components/ArgousComplexPagination/ArgousComplexPagination.js +107 -81
- package/dist/components/ArgousComplexPagination/index.d.ts +1 -2
- package/dist/components/ArgousComplexTable/ArgousComplexTable.d.ts +3 -158
- package/dist/components/ArgousComplexTable/ArgousComplexTable.js +39 -52
- package/dist/components/ArgousComplexTable/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +7 -177
- package/dist/components/ArgousComplexTableBody/ArgousComplexTableBody.js +119 -97
- package/dist/components/ArgousComplexTableBody/DragAndDrop.d.ts +37 -0
- package/dist/components/ArgousComplexTableBody/DragAndDrop.js +156 -0
- package/dist/components/ArgousComplexTableBody/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +3 -73
- package/dist/components/ArgousComplexTableHead/ArgousComplexTableHead.js +64 -47
- package/dist/components/ArgousComplexTableHead/index.d.ts +1 -2
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +3 -58
- package/dist/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +55 -37
- package/dist/components/ArgousComplexTableToolbar/index.d.ts +1 -2
- package/dist/components/ArgousInput/ArgousInput.d.ts +2 -8
- package/dist/components/ArgousInput/ArgousInput.js +19 -9
- package/dist/components/ArgousInput/index.d.ts +1 -2
- package/dist/components/ArgousPagination/ArgousPagination.d.ts +3 -5
- package/dist/components/ArgousPagination/ArgousPagination.js +18 -11
- package/dist/components/ArgousPagination/index.d.ts +1 -2
- package/dist/components/ArgousProgressBar/ArgousProgressBar.d.ts +31 -21
- package/dist/components/ArgousProgressBar/ArgousProgressBar.js +64 -74
- package/dist/components/ArgousProgressBar/index.d.ts +1 -2
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +3 -5
- package/dist/components/ArgousSimpleTable/ArgousSimpleTable.js +28 -22
- package/dist/components/ArgousSimpleTable/index.d.ts +1 -2
- package/dist/components/AutoComplete/AutoComplete.d.ts +2 -8
- package/dist/components/AutoComplete/AutoComplete.js +18 -9
- package/dist/components/AutoComplete/index.d.ts +1 -2
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +28 -101
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +226 -174
- package/dist/components/AutoCompleteFavorites/index.d.ts +1 -2
- package/dist/components/BarChart/BarChart.d.ts +29 -5
- package/dist/components/BarChart/BarChart.js +17 -7
- package/dist/components/BarChart/index.d.ts +1 -2
- package/dist/components/BarraFerramentas/BarraFerramentas.d.ts +54 -53
- package/dist/components/BarraFerramentas/BarraFerramentas.js +119 -105
- package/dist/components/BarraFerramentas/index.d.ts +1 -2
- package/dist/components/Button/Button.d.ts +54 -5
- package/dist/components/Button/Button.js +17 -7
- package/dist/components/Button/index.d.ts +1 -2
- package/dist/components/Cabecalho/Cabecalho.d.ts +2 -8
- package/dist/components/Cabecalho/Cabecalho.js +17 -7
- package/dist/components/Cabecalho/index.d.ts +1 -2
- package/dist/components/Calendar/Calendar.d.ts +2 -8
- package/dist/components/Calendar/Calendar.js +24 -41
- package/dist/components/Calendar/index.d.ts +1 -2
- package/dist/components/Cam/Cam.d.ts +24 -24
- package/dist/components/Cam/Cam.js +19 -9
- package/dist/components/Cam/index.d.ts +1 -2
- package/dist/components/Carousel/Carousel.d.ts +21 -71
- package/dist/components/Carousel/Carousel.js +113 -103
- package/dist/components/Carousel/index.d.ts +1 -2
- package/dist/components/CartaoUsuario/CartaoUsuario.d.ts +6 -9
- package/dist/components/CartaoUsuario/CartaoUsuario.js +36 -26
- package/dist/components/CartaoUsuario/index.d.ts +1 -2
- package/dist/components/Collapse/Collapse.d.ts +55 -56
- package/dist/components/Collapse/Collapse.js +121 -71
- package/dist/components/Collapse/index.d.ts +1 -3
- package/dist/components/Compartilhar/Compartilhar.d.ts +3 -7
- package/dist/components/Compartilhar/Compartilhar.js +70 -65
- package/dist/components/Compartilhar/index.d.ts +1 -2
- package/dist/components/ConfirmModal/BasicModal.d.ts +1 -1
- package/dist/components/ConfirmModal/BasicModal.js +8 -8
- package/dist/components/ConfirmModal/ModalProvider.d.ts +12 -1
- package/dist/components/ConfirmModal/ModalProvider.js +17 -7
- package/dist/components/ConfirmModal/WrapperModal.d.ts +2 -2
- package/dist/components/ConfirmModal/WrapperModal.js +5 -5
- package/dist/components/ConfirmModal/index.d.ts +6 -20
- package/dist/components/ContactValidationInput/ContactValidationInput.d.ts +17 -62
- package/dist/components/ContactValidationInput/ContactValidationInput.js +105 -80
- package/dist/components/ContactValidationInput/SealModal.d.ts +1 -1
- package/dist/components/ContactValidationInput/SealModal.js +13 -20
- package/dist/components/ContactValidationInput/index.d.ts +1 -2
- package/dist/components/Document/Icons.d.ts +2 -2
- package/dist/components/Document/Icons.js +33 -16
- package/dist/components/Document/ModalVisualizacaoDocumentos.d.ts +1 -1
- package/dist/components/Document/ModalVisualizacaoDocumentos.js +33 -17
- package/dist/components/Document/Visualizacao.d.ts +1 -1
- package/dist/components/Document/Visualizacao.js +48 -34
- package/dist/components/Document/index.d.ts +3 -3
- package/dist/components/DropArea/DropArea.d.ts +8 -21
- package/dist/components/DropArea/DropArea.js +27 -12
- package/dist/components/DropArea/Html5FileSelector.js +6 -7
- package/dist/components/DropArea/index.d.ts +1 -2
- package/dist/components/Editor/ScriptLoader2.d.ts +1 -1
- package/dist/components/Editor/ScriptLoader2.js +2 -2
- package/dist/components/Editor/Utils.d.ts +3 -3
- package/dist/components/Editor/Utils.js +2 -2
- package/dist/components/Editor/components/Editor.d.ts +1 -1
- package/dist/components/Editor/components/Editor.js +18 -9
- package/dist/components/Editor/components/EditorPropTypes.js +17 -7
- package/dist/components/FilePreparer/FilePreparer.d.ts +16 -26
- package/dist/components/FilePreparer/FilePreparer.js +105 -88
- package/dist/components/FilePreparer/index.d.ts +1 -2
- package/dist/components/FileUploader/FileUploader.d.ts +21 -8
- package/dist/components/FileUploader/FileUploader.js +33 -22
- package/dist/components/FileUploader/index.d.ts +1 -2
- package/dist/components/FormVisualizer/FormVisualizer.d.ts +8 -92
- package/dist/components/FormVisualizer/FormVisualizer.js +92 -61
- package/dist/components/FormVisualizer/index.d.ts +1 -2
- package/dist/components/HalfGauge/HalfGauge.d.ts +23 -82
- package/dist/components/HalfGauge/HalfGauge.js +87 -135
- package/dist/components/HalfGauge/index.d.ts +1 -2
- package/dist/components/Highlight/Highlight.d.ts +20 -7
- package/dist/components/Highlight/Highlight.js +23 -12
- package/dist/components/Highlight/index.d.ts +1 -2
- package/dist/components/ImageResize/ImageResize.d.ts +8 -28
- package/dist/components/ImageResize/ImageResize.js +79 -85
- package/dist/components/ImageResize/index.d.ts +1 -2
- package/dist/components/ImageResizeButton/ImageResizeButton.d.ts +2 -25
- package/dist/components/ImageResizeButton/ImageResizeButton.js +19 -9
- package/dist/components/ImageResizeButton/index.d.ts +1 -2
- package/dist/components/Input/Input.d.ts +2 -8
- package/dist/components/Input/Input.js +19 -9
- package/dist/components/Input/index.d.ts +1 -2
- package/dist/components/InputTags/InputTags.d.ts +2 -8
- package/dist/components/InputTags/InputTags.js +22 -13
- package/dist/components/InputTags/index.d.ts +1 -2
- package/dist/components/ListSelect/ListSelect.d.ts +2 -8
- package/dist/components/ListSelect/ListSelect.js +17 -7
- package/dist/components/ListSelect/index.d.ts +1 -2
- package/dist/components/MaterialButton/MaterialButton.d.ts +30 -12
- package/dist/components/MaterialButton/MaterialButton.js +56 -125
- package/dist/components/MaterialButton/index.d.ts +1 -2
- package/dist/components/MenuBar/MenuBar.d.ts +2 -8
- package/dist/components/MenuBar/MenuBar.js +17 -7
- package/dist/components/MenuBar/index.d.ts +1 -2
- package/dist/components/MonthPicker/MonthPicker.d.ts +2 -8
- package/dist/components/MonthPicker/MonthPicker.js +20 -10
- package/dist/components/MonthPicker/index.d.ts +1 -2
- package/dist/components/MultipleSelect/MultipleSelect.d.ts +2 -8
- package/dist/components/MultipleSelect/MultipleSelect.js +17 -7
- package/dist/components/MultipleSelect/index.d.ts +1 -2
- package/dist/components/OtpInput/OtpInput.d.ts +1 -1
- package/dist/components/OtpInput/OtpInput.js +71 -58
- package/dist/components/OtpInput/index.d.ts +1 -2
- package/dist/components/OutputText/OutputText.d.ts +2 -8
- package/dist/components/OutputText/OutputText.js +17 -7
- package/dist/components/OutputText/index.d.ts +1 -2
- package/dist/components/Pagination/Pagination.d.ts +16 -5
- package/dist/components/Pagination/Pagination.js +17 -7
- package/dist/components/Pagination/index.d.ts +1 -2
- package/dist/components/PercentageDisplay/PercentageDisplay.d.ts +14 -51
- package/dist/components/PercentageDisplay/PercentageDisplay.js +24 -92
- package/dist/components/PercentageDisplay/index.d.ts +1 -2
- package/dist/components/Programa/PageCodeEasterEgg.d.ts +5 -4
- package/dist/components/Programa/PageCodeEasterEgg.js +41 -32
- package/dist/components/Programa/Programa.d.ts +72 -47
- package/dist/components/Programa/Programa.js +50 -28
- package/dist/components/Programa/Tab.d.ts +2 -2
- package/dist/components/Programa/TabNavigationRail.d.ts +3 -3
- package/dist/components/Programa/TabNavigationRail.js +13 -55
- package/dist/components/Programa/index.d.ts +1 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts +20 -5
- package/dist/components/ProgressBar/ProgressBar.js +17 -7
- package/dist/components/ProgressBar/index.d.ts +1 -2
- package/dist/components/Select/Select.d.ts +2 -8
- package/dist/components/Select/Select.js +17 -7
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/SimpleTable/SimpleTable.d.ts +27 -10
- package/dist/components/SimpleTable/SimpleTable.js +17 -7
- package/dist/components/SimpleTable/index.d.ts +1 -2
- package/dist/components/Stepper/Stepper.d.ts +25 -68
- package/dist/components/Stepper/Stepper.js +194 -179
- package/dist/components/Stepper/index.d.ts +1 -2
- package/dist/components/TablePicker/TablePicker.d.ts +3 -8
- package/dist/components/TablePicker/TablePicker.js +37 -12
- package/dist/components/TablePicker/index.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +25 -5
- package/dist/components/Tabs/Tabs.js +17 -7
- package/dist/components/Tabs/index.d.ts +1 -2
- package/dist/components/TextArea/TextArea.d.ts +2 -8
- package/dist/components/TextArea/TextArea.js +17 -7
- package/dist/components/TextArea/index.d.ts +1 -2
- package/dist/components/TextToHtml/Cursor.d.ts +1 -1
- package/dist/components/TextToHtml/Cursor.js +17 -7
- package/dist/components/TextToHtml/TextStyles.d.ts +1 -1
- package/dist/components/TextToHtml/TextStyles.js +51 -44
- package/dist/components/TextToHtml/TextToHtml.d.ts +32 -36
- package/dist/components/TextToHtml/TextToHtml.js +37 -17
- package/dist/components/TextToHtml/index.d.ts +1 -2
- package/dist/components/ThreadLog/ThreadLog.d.ts +36 -5
- package/dist/components/ThreadLog/ThreadLog.js +19 -9
- package/dist/components/ThreadLog/index.d.ts +1 -2
- package/dist/components/UserCard/UserCard.d.ts +6 -15
- package/dist/components/UserCard/UserCard.js +36 -26
- package/dist/components/UserCard/index.d.ts +1 -2
- package/dist/components/UtilAutoComplete/UtilAutoComplete.d.ts +32 -97
- package/dist/components/UtilAutoComplete/UtilAutoComplete.js +26 -16
- package/dist/components/UtilAutoComplete/index.d.ts +1 -2
- package/dist/components/UtilTextField/UtilTextField.d.ts +7 -23
- package/dist/components/UtilTextField/UtilTextField.js +26 -14
- package/dist/components/UtilTextField/index.d.ts +1 -2
- package/dist/components/Zoom/Zoom.d.ts +7 -15
- package/dist/components/Zoom/Zoom.js +23 -24
- package/dist/components/Zoom/index.d.ts +1 -2
- package/dist/components/index.d.ts +118 -180
- package/dist/fieldsRedux/createField.d.ts +6 -6
- package/dist/fieldsRedux/createField.js +17 -7
- package/dist/fieldsRedux/fieldsRedux.d.ts +3 -58
- package/dist/fieldsRedux/fieldsRedux.js +19 -9
- package/dist/fieldsRedux/index.d.ts +17 -2
- package/dist/fieldsRedux/passFields.d.ts +2 -0
- package/dist/fieldsRedux/passFields.js +17 -7
- package/dist/reducers/index.d.ts +98 -2
- package/dist/utils/api.js +32 -15
- package/dist/utils/config.js +2 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +68 -54
- package/dist/utils/store.js +2 -3
- package/lib/api/WebSocket.js +11 -12
- package/lib/api/index.js +14 -14
- package/lib/api/ws.js +48 -4
- package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +1 -1
- package/lib/components/ArgousAvatar/ArgousAvatar.js +20 -54
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +1 -1
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +50 -25
- package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +1 -1
- package/lib/components/ArgousComplexTable/ArgousComplexTable.js +15 -15
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +1 -1
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +121 -106
- package/lib/components/ArgousComplexTableBody/DragAndDrop.js +85 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +60 -51
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +21 -12
- package/lib/components/ArgousInput/ArgousInput.js +2 -2
- package/lib/components/ArgousPagination/ArgousPagination.js +12 -4
- package/lib/components/ArgousProgressBar/ArgousProgressBar.js +67 -78
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +12 -18
- package/lib/components/AutoComplete/AutoComplete.js +2 -3
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +3 -4
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +174 -108
- package/lib/components/BarraFerramentas/BarraFerramentas.js +32 -21
- package/lib/components/Calendar/Calendar.js +7 -42
- package/lib/components/Carousel/Carousel.js +42 -27
- package/lib/components/CartaoUsuario/CartaoUsuario.js +6 -6
- package/lib/components/Collapse/Collapse.d.ts +3 -3
- package/lib/components/Collapse/Collapse.js +92 -57
- package/lib/components/Compartilhar/Compartilhar.js +47 -46
- package/lib/components/ConfirmModal/BasicModal.tsx +1 -1
- package/lib/components/ConfirmModal/WrapperModal.tsx +2 -2
- package/lib/components/ContactValidationInput/ContactValidationInput.d.ts +1 -1
- package/lib/components/ContactValidationInput/ContactValidationInput.js +248 -213
- package/lib/components/ContactValidationInput/SealModal.js +38 -32
- package/lib/components/Document/Icons.js +14 -6
- package/lib/components/Document/ModalVisualizacaoDocumentos.js +9 -2
- package/lib/components/Document/Visualizacao.js +31 -25
- package/lib/components/DropArea/DropArea.js +9 -3
- package/lib/components/Editor/ScriptLoader2.ts +3 -3
- package/lib/components/Editor/Utils.ts +3 -3
- package/lib/components/Editor/components/Editor.tsx +1 -1
- package/lib/components/Editor/tinymce/README.md +73 -0
- package/lib/components/Editor/tinymce/langs/README.md +3 -0
- package/lib/components/Editor/tinymce/models/dom/model.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +3 -3
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/lib/components/Editor/tinymce/themes/silver/theme.js +38 -38
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +1 -1
- package/lib/components/Editor/tinymce/tinymce.js +12 -12
- package/lib/components/Editor/tinymce/tinymce.min.js +1 -1
- package/lib/components/FilePreparer/FilePreparer.d.ts +1 -1
- package/lib/components/FilePreparer/FilePreparer.js +112 -108
- package/lib/components/FileUploader/FileUploader.js +8 -7
- package/lib/components/FormVisualizer/FormVisualizer.d.ts +5 -7
- package/lib/components/FormVisualizer/FormVisualizer.js +59 -46
- package/lib/components/HalfGauge/HalfGauge.js +87 -85
- package/lib/components/Highlight/Highlight.js +4 -4
- package/lib/components/ImageResize/ImageResize.d.ts +1 -1
- package/lib/components/ImageResize/ImageResize.js +123 -118
- package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +1 -1
- package/lib/components/ImageResizeButton/ImageResizeButton.js +1 -1
- package/lib/components/Input/Input.js +2 -2
- package/lib/components/InputTags/InputTags.js +6 -7
- package/lib/components/MaterialButton/MaterialButton.d.ts +2 -4
- package/lib/components/MaterialButton/MaterialButton.js +50 -125
- package/lib/components/MonthPicker/MonthPicker.js +2 -2
- package/lib/components/OtpInput/OtpInput.tsx +77 -69
- package/lib/components/PercentageDisplay/PercentageDisplay.d.ts +1 -1
- package/lib/components/PercentageDisplay/PercentageDisplay.js +29 -54
- package/lib/components/Programa/PageCodeEasterEgg.js +41 -40
- package/lib/components/Programa/Programa.d.ts +2 -2
- package/lib/components/Programa/Programa.js +21 -5
- package/lib/components/Programa/Tab.ts +4 -2
- package/lib/components/Programa/TabNavigationRail.js +9 -31
- package/lib/components/Stepper/Stepper.d.ts +1 -1
- package/lib/components/Stepper/Stepper.js +222 -190
- package/lib/components/TablePicker/TablePicker.js +11 -6
- package/lib/components/TextToHtml/TextStyles.js +42 -42
- package/lib/components/TextToHtml/TextToHtml.js +102 -92
- package/lib/components/ThreadLog/ThreadLog.js +1 -1
- package/lib/components/UserCard/UserCard.js +6 -6
- package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +3 -4
- package/lib/components/UtilAutoComplete/UtilAutoComplete.js +67 -9
- package/lib/components/UtilTextField/UtilTextField.d.ts +1 -1
- package/lib/components/UtilTextField/UtilTextField.js +18 -16
- package/lib/components/Zoom/Zoom.js +6 -3
- package/lib/utils/api.ts +1 -1
- package/lib/utils/index.ts +10 -8
- package/package.json +56 -56
- package/.gitlab-ci.yml +0 -21
- package/dist/components/Cam/cam.css +0 -8
- package/dist/components/ContactValidationInput/style.css +0 -10
- package/dist/components/Document/icons/ai.svg +0 -20
- package/dist/components/Document/icons/audio.svg +0 -16
- package/dist/components/Document/icons/avi.svg +0 -15
- package/dist/components/Document/icons/css.svg +0 -47
- package/dist/components/Document/icons/csv.svg +0 -37
- package/dist/components/Document/icons/dbf.svg +0 -30
- package/dist/components/Document/icons/doc.svg +0 -47
- package/dist/components/Document/icons/dwg.svg +0 -32
- package/dist/components/Document/icons/exe.svg +0 -20
- package/dist/components/Document/icons/file.svg +0 -11
- package/dist/components/Document/icons/fla.svg +0 -23
- package/dist/components/Document/icons/html.svg +0 -23
- package/dist/components/Document/icons/image.svg +0 -16
- package/dist/components/Document/icons/iso.svg +0 -40
- package/dist/components/Document/icons/jpg.svg +0 -33
- package/dist/components/Document/icons/js.svg +0 -40
- package/dist/components/Document/icons/json.svg +0 -45
- package/dist/components/Document/icons/mod.svg +0 -41
- package/dist/components/Document/icons/mp3.svg +0 -36
- package/dist/components/Document/icons/mp4.svg +0 -25
- package/dist/components/Document/icons/pdf.svg +0 -35
- package/dist/components/Document/icons/png.svg +0 -30
- package/dist/components/Document/icons/ppt.svg +0 -31
- package/dist/components/Document/icons/psd.svg +0 -50
- package/dist/components/Document/icons/rtf.svg +0 -35
- package/dist/components/Document/icons/search.svg +0 -20
- package/dist/components/Document/icons/svg.svg +0 -34
- package/dist/components/Document/icons/txt.svg +0 -29
- package/dist/components/Document/icons/video.svg +0 -17
- package/dist/components/Document/icons/xls.svg +0 -31
- package/dist/components/Document/icons/xml.svg +0 -25
- package/dist/components/Document/icons/zip.svg +0 -24
- package/dist/components/Document/icons/zip1.svg +0 -18
- package/dist/components/Editor/skins/content/dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/default/content.min.css +0 -1
- package/dist/components/Editor/skins/content/document/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/content/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/content/writer/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/content.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +0 -1
- package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
- package/dist/components/Editor/tinymce/icons/default/icons.js +0 -194
- package/dist/components/Editor/tinymce/icons/default/icons.min.js +0 -1
- package/dist/components/Editor/tinymce/skins/content/dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/default/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/default/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/document/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/document/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.css +0 -61
- package/dist/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.css +0 -66
- package/dist/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/content/writer/content.css +0 -62
- package/dist/components/Editor/tinymce/skins/content/writer/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.css +0 -3763
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.css +0 -785
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.css +0 -766
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -779
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -3857
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -2
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
- package/dist/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -2
- package/dist/components/Editor/tinymce/tinymce.d.ts +0 -3238
- package/dist/components/TextToHtml/icons/resize_area.svg +0 -2
- package/dist/components/TextToHtml/style.css +0 -40
- package/dist/components/Zoom/style.css +0 -25
- package/dist/types.d.ts +0 -164
|
@@ -1,76 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface ArgousComplexPaginationProps {
|
|
5
|
-
/**
|
|
6
|
-
* Array de opções para as quantidades de linhas por pagina possiveis
|
|
7
|
-
*
|
|
8
|
-
* Se receber zero como opção ao invés de um array a tabela tera todas as linahs numa só página
|
|
9
|
-
*/
|
|
10
|
-
rowsPerPageOptions?: Array<number> | 0,
|
|
11
|
-
/**
|
|
12
|
-
* Mostra a quantidade total de linhas da tabela
|
|
13
|
-
*/
|
|
14
|
-
showCount?: boolean
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ArgousComplexPaginationPrivateProps extends ArgousComplexPaginationProps {
|
|
18
|
-
/**
|
|
19
|
-
* Componente com os botões de mudança de página
|
|
20
|
-
*/
|
|
21
|
-
ActionsComponent: (props: {count: number, page: number, rowsPerPage: number, onChangePage: (evento: EventTarget, novaPagina: number) => void}) => JSX.Element,
|
|
22
|
-
/**
|
|
23
|
-
* Componente com o display das páginas
|
|
24
|
-
*/
|
|
25
|
-
LabelDisplayedRows: (props: {pages: number, page: number, onChangePage: (evento: EventTarget, novaPagina: number) => void, from: number, to: number, count: number, showCount: boolean}) => JSX.Element,
|
|
26
|
-
/**
|
|
27
|
-
* Classes aplicadas á raiz do componente
|
|
28
|
-
*/
|
|
29
|
-
className?: string,
|
|
30
|
-
/**
|
|
31
|
-
* Texto representando os itens da paginação (Linhas por padrão)
|
|
32
|
-
*/
|
|
33
|
-
labelRowsPerPage?: string,
|
|
34
|
-
/**
|
|
35
|
-
* Props repassados ao componente de seleção
|
|
36
|
-
*/
|
|
37
|
-
SelectProps?: SelectProps,
|
|
38
|
-
/**
|
|
39
|
-
* Quantidade total de linhas
|
|
40
|
-
*/
|
|
41
|
-
count: number,
|
|
42
|
-
/**
|
|
43
|
-
* Função chamada ao mudar de página
|
|
44
|
-
*
|
|
45
|
-
* @param evento - Evento do click
|
|
46
|
-
* @param novaPagina - Número da nova página selecionada
|
|
47
|
-
*
|
|
48
|
-
* @returns {void} Sem retorno
|
|
49
|
-
*/
|
|
50
|
-
onChangePage: (evento: EventTarget, novaPagina: number) => void,
|
|
51
|
-
/**
|
|
52
|
-
* Função chamada ao mudar a quantidade de itens por página
|
|
53
|
-
*
|
|
54
|
-
* @param evento - Evento do click
|
|
55
|
-
* @param filho - Elemento que foi selecionado
|
|
56
|
-
*
|
|
57
|
-
* @returns {void} Sem retorno
|
|
58
|
-
*/
|
|
59
|
-
onChangeRowsPerPage: ((evento: React.ChangeEvent<{name?: string | undefined; value: unknown;}>, filho: React.ReactNode) => void) | undefined,
|
|
60
|
-
/**
|
|
61
|
-
* Página atual
|
|
62
|
-
*/
|
|
63
|
-
page: number,
|
|
64
|
-
/**
|
|
65
|
-
* Quantidade de linhas por página
|
|
66
|
-
*/
|
|
67
|
-
rowsPerPage: number,
|
|
68
|
-
// backIconButtonProps?,
|
|
69
|
-
// backIconButtonText?: string,
|
|
70
|
-
// nextIconButtonProps?,
|
|
71
|
-
// nextIconButtonText?: string,
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare function ArgousComplexPagination(props: ArgousComplexPaginationPrivateProps): JSX.Element
|
|
75
|
-
|
|
76
|
-
export default ArgousComplexPagination;
|
|
1
|
+
export default ArgousComplexPagination;
|
|
2
|
+
declare const ArgousComplexPagination: React.NamedExoticComponent<object>;
|
|
3
|
+
import React from 'react';
|
|
@@ -26,66 +26,91 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
39
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
var
|
|
41
|
-
var clsx_1 =
|
|
47
|
+
var material_1 = require("@mui/material");
|
|
48
|
+
var clsx_1 = require("clsx");
|
|
42
49
|
var react_1 = __importStar(require("react"));
|
|
43
50
|
var md_1 = require("react-icons/md");
|
|
44
|
-
var
|
|
45
|
-
pagination:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
var classes = {
|
|
52
|
+
pagination: 'argous-complex-pagination-pagination',
|
|
53
|
+
toolbar: 'argous-complex-pagination-toolbar',
|
|
54
|
+
spacer: 'argous-complex-pagination-spacer',
|
|
55
|
+
caption: 'argous-complex-pagination-caption',
|
|
56
|
+
selectRoot: 'argous-complex-pagination-select-root',
|
|
57
|
+
select: 'argous-complex-pagination-select',
|
|
58
|
+
selectIcon: 'argous-complex-pagination-select-icon',
|
|
59
|
+
input: 'argous-complex-pagination-input',
|
|
60
|
+
menuItem: 'argous-complex-pagination-menu-item',
|
|
61
|
+
actions: 'argous-complex-pagination-actions',
|
|
62
|
+
paginationActions: 'argous-complex-pagination-pagination-actions',
|
|
63
|
+
};
|
|
64
|
+
var paginationStyles = function (theme) {
|
|
65
|
+
var _a;
|
|
66
|
+
return (_a = {},
|
|
67
|
+
_a[".".concat(classes.pagination)] = {
|
|
68
|
+
display: 'flex',
|
|
69
|
+
flexDirection: 'row-reverse',
|
|
70
|
+
color: theme.palette.text.primary,
|
|
71
|
+
fontSize: theme.typography.pxToRem(14),
|
|
72
|
+
overflow: 'auto',
|
|
73
|
+
'&:last-child': {
|
|
74
|
+
padding: 0,
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
_a[".".concat(classes.toolbar)] = {
|
|
78
|
+
minHeight: 52,
|
|
79
|
+
paddingRight: 2,
|
|
80
|
+
},
|
|
81
|
+
_a[".".concat(classes.spacer)] = {
|
|
82
|
+
flex: '1 1 100%',
|
|
53
83
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
paginationActions: {
|
|
85
|
-
flexShrink: 0,
|
|
86
|
-
marginLeft: theme.spacing(2.5),
|
|
87
|
-
},
|
|
88
|
-
}); });
|
|
84
|
+
_a[".".concat(classes.caption)] = {
|
|
85
|
+
flexShrink: 0,
|
|
86
|
+
},
|
|
87
|
+
_a[".".concat(classes.selectRoot)] = {
|
|
88
|
+
marginRight: 32,
|
|
89
|
+
marginLeft: 8,
|
|
90
|
+
},
|
|
91
|
+
_a[".".concat(classes.select)] = {
|
|
92
|
+
paddingLeft: 8,
|
|
93
|
+
paddingRight: 24,
|
|
94
|
+
textAlign: 'right',
|
|
95
|
+
textAlignLast: 'right',
|
|
96
|
+
},
|
|
97
|
+
_a[".".concat(classes.selectIcon)] = {},
|
|
98
|
+
_a[".".concat(classes.input)] = {
|
|
99
|
+
color: 'inherit',
|
|
100
|
+
fontSize: 'inherit',
|
|
101
|
+
flexShrink: 0,
|
|
102
|
+
},
|
|
103
|
+
_a[".".concat(classes.menuItem)] = {},
|
|
104
|
+
_a[".".concat(classes.actions)] = {
|
|
105
|
+
flexShrink: 0,
|
|
106
|
+
marginLeft: 20,
|
|
107
|
+
},
|
|
108
|
+
_a[".".concat(classes.paginationActions)] = {
|
|
109
|
+
flexShrink: 0,
|
|
110
|
+
marginLeft: theme.spacing(2.5),
|
|
111
|
+
},
|
|
112
|
+
_a);
|
|
113
|
+
};
|
|
89
114
|
var handleChangePgAtual = function (value, pages) {
|
|
90
115
|
if (value < 1)
|
|
91
116
|
return 0;
|
|
@@ -95,29 +120,31 @@ var handleChangePgAtual = function (value, pages) {
|
|
|
95
120
|
};
|
|
96
121
|
var DefaultLabelDisplayedRows = function (_a) {
|
|
97
122
|
var pages = _a.pages, page = _a.page, onChangePage = _a.onChangePage, from = _a.from, to = _a.to, count = _a.count, showCount = _a.showCount;
|
|
98
|
-
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
99
|
-
react_1.default.createElement(
|
|
100
|
-
|
|
123
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
124
|
+
react_1.default.createElement(material_1.Box, { sx: {
|
|
125
|
+
padding: '1px 0px',
|
|
126
|
+
display: 'inline'
|
|
127
|
+
} },
|
|
128
|
+
react_1.default.createElement(material_1.InputBase, { inputProps: { type: 'number', min: 1, max: pages || 1, value: page + 1 }, onChange: function (e) { return onChangePage(e, handleChangePgAtual(e.target.value, pages)); } }), " / ".concat(pages || 1)),
|
|
101
129
|
showCount && react_1.default.createElement("div", { style: { display: 'inline', marginLeft: '10px', paddingLeft: '10px' } },
|
|
102
130
|
from,
|
|
103
131
|
" a ",
|
|
104
132
|
to,
|
|
105
133
|
" de ",
|
|
106
|
-
count));
|
|
134
|
+
count)));
|
|
107
135
|
};
|
|
108
136
|
var TablePaginationActions = (0, react_1.memo)(function (_a) {
|
|
109
137
|
var count = _a.count, page = _a.page, rowsPerPage = _a.rowsPerPage, onChangePage = _a.onChangePage;
|
|
110
|
-
var
|
|
111
|
-
var theme = (0, core_1.useTheme)();
|
|
138
|
+
var theme = (0, material_1.useTheme)();
|
|
112
139
|
var handleFirstPageButtonClick = function (e) { return onChangePage(e, 0); };
|
|
113
140
|
var handleBackButtonClick = function (e) { return onChangePage(e, page - 1); };
|
|
114
141
|
var handleNextButtonClick = function (e) { return onChangePage(e, page + 1); };
|
|
115
142
|
var handleLastPageButtonClick = function (e) { return onChangePage(e, Math.max(0, Math.ceil(count / rowsPerPage) - 1)); };
|
|
116
143
|
return (react_1.default.createElement("div", { className: classes.paginationActions },
|
|
117
|
-
react_1.default.createElement(
|
|
118
|
-
react_1.default.createElement(
|
|
119
|
-
react_1.default.createElement(
|
|
120
|
-
react_1.default.createElement(
|
|
144
|
+
react_1.default.createElement(material_1.IconButton, { onClick: handleFirstPageButtonClick, disabled: page === 0 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdLastPage, null) : react_1.default.createElement(md_1.MdFirstPage, null)),
|
|
145
|
+
react_1.default.createElement(material_1.IconButton, { onClick: handleBackButtonClick, disabled: page === 0 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdKeyboardArrowRight, null) : react_1.default.createElement(md_1.MdKeyboardArrowLeft, null)),
|
|
146
|
+
react_1.default.createElement(material_1.IconButton, { onClick: handleNextButtonClick, disabled: page >= Math.ceil(count / rowsPerPage) - 1 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdKeyboardArrowLeft, null) : react_1.default.createElement(md_1.MdKeyboardArrowRight, null)),
|
|
147
|
+
react_1.default.createElement(material_1.IconButton, { onClick: handleLastPageButtonClick, disabled: page >= Math.ceil(count / rowsPerPage) - 1 }, theme.direction === 'rtl' ? react_1.default.createElement(md_1.MdFirstPage, null) : react_1.default.createElement(md_1.MdLastPage, null))));
|
|
121
148
|
});
|
|
122
149
|
var ArgousComplexPagination = (0, react_1.memo)(function (_a) {
|
|
123
150
|
var _b = _a.ActionsComponent, ActionsComponent = _b === void 0 ? TablePaginationActions : _b,
|
|
@@ -127,26 +154,25 @@ var ArgousComplexPagination = (0, react_1.memo)(function (_a) {
|
|
|
127
154
|
// nextIconButtonProps,
|
|
128
155
|
// nextIconButtonText = 'Próxima Página',
|
|
129
156
|
onChangePage = _a.onChangePage, onChangeRowsPerPage = _a.onChangeRowsPerPage, page = _a.page, rowsPerPage = _a.rowsPerPage, _e = _a.rowsPerPageOptions, rowsPerPageOptions = _e === void 0 ? [10, 25, 50, 100] : _e, _f = _a.SelectProps, SelectProps = _f === void 0 ? {} : _f, showCount = _a.showCount;
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
react_1.default.createElement(
|
|
157
|
+
var MenuItemComponent = SelectProps.native ? 'option' : material_1.MenuItem;
|
|
158
|
+
return (react_1.default.createElement("div", { className: (0, clsx_1.clsx)(classes.pagination, className) },
|
|
159
|
+
react_1.default.createElement(material_1.GlobalStyles, { styles: paginationStyles }),
|
|
160
|
+
react_1.default.createElement(material_1.Toolbar, { className: classes.toolbar },
|
|
134
161
|
react_1.default.createElement("div", { className: classes.spacer }),
|
|
135
|
-
rowsPerPageOptions.length > 1 && (react_1.default.createElement(
|
|
136
|
-
|
|
162
|
+
rowsPerPageOptions.length > 1 && (react_1.default.createElement(material_1.Typography, { variant: 'body2', className: classes.caption, sx: {
|
|
163
|
+
color: 'inherit'
|
|
164
|
+
} }, labelRowsPerPage)),
|
|
165
|
+
rowsPerPageOptions.length > 1 && (react_1.default.createElement(material_1.Select, __assign({ classes: {
|
|
137
166
|
select: classes.select,
|
|
138
167
|
icon: classes.selectIcon,
|
|
139
|
-
}, input: react_1.default.createElement(
|
|
140
|
-
react_1.default.createElement(
|
|
141
|
-
|
|
142
|
-
|
|
168
|
+
}, input: react_1.default.createElement(material_1.InputBase, { className: (0, clsx_1.clsx)(classes.input, classes.selectRoot) }), value: rowsPerPage, onChange: onChangeRowsPerPage }, SelectProps), rowsPerPageOptions.map(function (rowsPerPageOption) { return (react_1.default.createElement(MenuItemComponent, { className: classes.menuItem, key: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption, value: rowsPerPageOption.value ? rowsPerPageOption.value : rowsPerPageOption }, rowsPerPageOption.label ? rowsPerPageOption.label : rowsPerPageOption)); }))),
|
|
169
|
+
react_1.default.createElement(material_1.Typography, { variant: 'body2', component: 'div', className: classes.caption, sx: {
|
|
170
|
+
color: 'inherit'
|
|
171
|
+
} },
|
|
172
|
+
react_1.default.createElement(LabelDisplayedRows, { pages: Math.ceil(count / parseInt(rowsPerPage, 10)),
|
|
143
173
|
from: count === 0 ? 0 : page * rowsPerPage + 1,
|
|
144
174
|
to: count !== -1 ? Math.min(count, (page + 1) * rowsPerPage) : (page + 1) * rowsPerPage,
|
|
145
|
-
count: count === -1 ? -1 : count,
|
|
146
|
-
page: page,
|
|
147
|
-
onChangePage: onChangePage,
|
|
148
|
-
showCount: showCount
|
|
149
|
-
}))),
|
|
175
|
+
count: count === -1 ? -1 : count, page: page, onChangePage: onChangePage, showCount: showCount })),
|
|
150
176
|
react_1.default.createElement(ActionsComponent, { className: classes.actions,
|
|
151
177
|
// backIconButtonProps={{
|
|
152
178
|
// title: backIconButtonText,
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from './ArgousComplexPagination';
|
|
1
|
+
export { default } from "./ArgousComplexPagination";
|
|
@@ -1,159 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { ArgousComplexTableToolBarPrivateProps, ArgousComplexTableToolBarProps } from '../ArgousComplexTableToolbar/ArgousComplexTableToolBar';
|
|
5
|
-
import { TableContainerProps, TableProps } from '@material-ui/core';
|
|
1
|
+
export const TableContext: React.Context<any>;
|
|
2
|
+
declare const _default: React.NamedExoticComponent<React.RefAttributes<any>>;
|
|
3
|
+
export default _default;
|
|
6
4
|
import React from 'react';
|
|
7
|
-
|
|
8
|
-
export interface ArgousComplexTableProps extends ArgousComplexTableBodyProps, ArgousComplexPaginationProps, ArgousComplexPaginationProps, ArgousComplexTableHeadProps, ArgousComplexTableToolBarProps {
|
|
9
|
-
/**
|
|
10
|
-
* Componente para substituir a Toolbar padrão
|
|
11
|
-
*/
|
|
12
|
-
ToolbarComponent?: (props: ArgousComplexTableToolBarPrivateProps) => JSX.Element,
|
|
13
|
-
/**
|
|
14
|
-
* Componente para substituir o Header padrão
|
|
15
|
-
*/
|
|
16
|
-
HeadComponent?: (props: ArgousComplexTableHeadPrivateProps) => JSX.Element,
|
|
17
|
-
/**
|
|
18
|
-
* Componente para substituir o Body padrão
|
|
19
|
-
*/
|
|
20
|
-
BodyComponent?: (props: ArgousComplexTableBodyPrivateProps) => JSX.Element,
|
|
21
|
-
/**
|
|
22
|
-
* Componente para substituir a pagination padrão
|
|
23
|
-
*/
|
|
24
|
-
PaginationComponent?: (props: ArgousComplexPaginationPrivateProps) => JSX.Element,
|
|
25
|
-
/**
|
|
26
|
-
* Adiciona um Footer à tabela
|
|
27
|
-
*/
|
|
28
|
-
FooterComponent?: React.ReactNode,
|
|
29
|
-
/**
|
|
30
|
-
* Props repassados ao componente de footer
|
|
31
|
-
*/
|
|
32
|
-
footerProps?: object,
|
|
33
|
-
/**
|
|
34
|
-
* Array de dados fornecido para a tabela
|
|
35
|
-
*/
|
|
36
|
-
dados?: Array<Array<any> | Object>,
|
|
37
|
-
/**
|
|
38
|
-
* Número de linhas padrão por página
|
|
39
|
-
*/
|
|
40
|
-
defaultRowsPerPage?: number,
|
|
41
|
-
/**
|
|
42
|
-
* Estilos aplicados à tabela
|
|
43
|
-
*/
|
|
44
|
-
style?: React.CSSProperties,
|
|
45
|
-
/**
|
|
46
|
-
* Classes aplicadas à tabela
|
|
47
|
-
*/
|
|
48
|
-
className?: string,
|
|
49
|
-
/**
|
|
50
|
-
* Tamanho da tabela
|
|
51
|
-
*/
|
|
52
|
-
size?: 'small' | 'normal',
|
|
53
|
-
/**
|
|
54
|
-
* Função chamada ao abrir um item
|
|
55
|
-
*
|
|
56
|
-
* @param linhaOriginal - Linha original
|
|
57
|
-
* @param linhaFormatada - Linha formatada
|
|
58
|
-
*
|
|
59
|
-
* @returns {void} Sem retorno
|
|
60
|
-
*/
|
|
61
|
-
onOpen?: (linhaOriginal: Array<any> | object, linhaFormatada: Array<any>) => void,
|
|
62
|
-
/**
|
|
63
|
-
* Função chamada ao fechar um item
|
|
64
|
-
*
|
|
65
|
-
* @param linhaOriginal - Linha original
|
|
66
|
-
* @param linhaFormatada - Linha formatada
|
|
67
|
-
*
|
|
68
|
-
* @returns {void} Sem retorno
|
|
69
|
-
*/
|
|
70
|
-
onClose?: (linhaOriginal: Array<any> | object, linhaFormatada: Array<any>) => void,
|
|
71
|
-
/**
|
|
72
|
-
* Nome de metódo utilizando o padrão de caminhador argous para prover os dados para a tabela
|
|
73
|
-
*/
|
|
74
|
-
method?: string,
|
|
75
|
-
/**
|
|
76
|
-
* Objeto de parâmetros passados para o método
|
|
77
|
-
*/
|
|
78
|
-
methodPrms?: object,
|
|
79
|
-
/**
|
|
80
|
-
* Nome da chave do objeto de resposta do método (lista por padrão)
|
|
81
|
-
*/
|
|
82
|
-
methodResultList?: string,
|
|
83
|
-
/**
|
|
84
|
-
* Função chamada apos o metodo receber uma resposta
|
|
85
|
-
*
|
|
86
|
-
* @param response - Resposta
|
|
87
|
-
*
|
|
88
|
-
* @returns {void} Sem retorno
|
|
89
|
-
*/
|
|
90
|
-
onMethodResponse?: (response: Object) => void,
|
|
91
|
-
/**
|
|
92
|
-
* Boolean que define se o erro do método será tratado automaticamente na ServerAction
|
|
93
|
-
*/
|
|
94
|
-
handleMethodError?: boolean,
|
|
95
|
-
/**
|
|
96
|
-
* Boolean que permite solicitar o método
|
|
97
|
-
*/
|
|
98
|
-
allowMethodRequest?: boolean,
|
|
99
|
-
/**
|
|
100
|
-
* @deprecated
|
|
101
|
-
*
|
|
102
|
-
* Field contendo os dados a serem providos para a tabela
|
|
103
|
-
*/
|
|
104
|
-
field?: string,
|
|
105
|
-
/**
|
|
106
|
-
* Função que é chamada sempre que os itens selecionados mudam
|
|
107
|
-
*
|
|
108
|
-
* @param itensSelecionados - Array com os itens selecionados
|
|
109
|
-
*
|
|
110
|
-
* @returns {void} Sem retorno
|
|
111
|
-
*/
|
|
112
|
-
onSelect?: (itensSelecionados: Array<any>) => void,
|
|
113
|
-
/**
|
|
114
|
-
* Referência utilizada para salvar o estado da tabela quando ela é descarregada
|
|
115
|
-
*/
|
|
116
|
-
//TODO criar interface para o savedstate
|
|
117
|
-
savedState?: React.RefObject<any>,
|
|
118
|
-
/**
|
|
119
|
-
* Referencia passada ao componente
|
|
120
|
-
*/
|
|
121
|
-
//TODO criar interface para a referencia
|
|
122
|
-
ref?: React.RefObject<any>,
|
|
123
|
-
/**
|
|
124
|
-
* Props repassados ao componente container
|
|
125
|
-
*/
|
|
126
|
-
containerProps?: TableContainerProps,
|
|
127
|
-
/**
|
|
128
|
-
* Props repassados ao componente table
|
|
129
|
-
*/
|
|
130
|
-
tableProps?: TableProps,
|
|
131
|
-
/**
|
|
132
|
-
* Props repassados ao componente toolbar
|
|
133
|
-
*/
|
|
134
|
-
toolbarProps?: any,
|
|
135
|
-
/**
|
|
136
|
-
* Objeto de controle da paginação/ordenação que será fornecido à tabela e ao método externo
|
|
137
|
-
*/
|
|
138
|
-
externalCtrlPgn?: object,
|
|
139
|
-
/**
|
|
140
|
-
* Função que é chamada para setar o externalCtrlPgn sempre que os controles de paginação/ordenação mudarem
|
|
141
|
-
*
|
|
142
|
-
* @param value - Objeto com parâmetros da paginação/ordenação para ser enviado ao método
|
|
143
|
-
*
|
|
144
|
-
* @returns {void} Sem retorno
|
|
145
|
-
*/
|
|
146
|
-
setExternalCtrlPgn?: (value: Object) => void,
|
|
147
|
-
/**
|
|
148
|
-
* Program code (pgCode) que será utilizado junto ao método
|
|
149
|
-
*/
|
|
150
|
-
code?: string,
|
|
151
|
-
/**
|
|
152
|
-
* Token que será utilizado junto ao método
|
|
153
|
-
*/
|
|
154
|
-
token?: string
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
declare function ArgousComplexTable(props: ArgousComplexTableProps): JSX.Element
|
|
158
|
-
|
|
159
|
-
export default ArgousComplexTable;
|
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
47
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
48
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -43,8 +53,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
53
|
});
|
|
44
54
|
};
|
|
45
55
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g =
|
|
56
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
57
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
58
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
59
|
function step(op) {
|
|
50
60
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -86,22 +96,20 @@ exports.TableContext = void 0;
|
|
|
86
96
|
var __1 = require("../");
|
|
87
97
|
var fieldsRedux_1 = require("../../fieldsRedux");
|
|
88
98
|
var api_1 = require("../../utils/api");
|
|
89
|
-
var
|
|
90
|
-
var clsx_1 = __importDefault(require("clsx"));
|
|
99
|
+
var material_1 = require("@mui/material");
|
|
91
100
|
var lodash_1 = require("lodash");
|
|
92
101
|
var moment_1 = __importDefault(require("moment"));
|
|
93
102
|
var prop_types_1 = __importDefault(require("prop-types"));
|
|
94
103
|
var react_1 = __importStar(require("react"));
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
'
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
'
|
|
101
|
-
display: 'table-row !important'
|
|
102
|
-
}
|
|
104
|
+
var rootSx = {
|
|
105
|
+
'& [class*="smooth-dnd-container"]': {
|
|
106
|
+
display: 'table-row-group'
|
|
107
|
+
},
|
|
108
|
+
'& [class*="smooth-dnd-draggable-wrapper"]': {
|
|
109
|
+
display: 'table-row !important'
|
|
103
110
|
}
|
|
104
|
-
}
|
|
111
|
+
};
|
|
112
|
+
var normalizeSx = function (sx) { return sx ? (Array.isArray(sx) ? sx : [sx]) : []; };
|
|
105
113
|
exports.TableContext = (0, react_1.createContext)();
|
|
106
114
|
var ehData = function (valor) {
|
|
107
115
|
var retorno = function (format) { return (0, moment_1.default)(valor, format).format('YYYYMMDDHHmmss'); };
|
|
@@ -179,7 +187,6 @@ var initialState = function (defaultRowsPerPage) { return ({
|
|
|
179
187
|
}); };
|
|
180
188
|
var ArgousComplexTable = (0, react_1.forwardRef)(function (_a, ref) {
|
|
181
189
|
var _b = _a.ToolbarComponent, ToolbarComponent = _b === void 0 ? __1.ArgousComplexTableToolbar : _b, _c = _a.HeadComponent, HeadComponent = _c === void 0 ? __1.ArgousComplexTableHead : _c, _d = _a.BodyComponent, BodyComponent = _d === void 0 ? __1.ArgousComplexTableBody : _d, _e = _a.PaginationComponent, PaginationComponent = _e === void 0 ? __1.ArgousComplexPagination : _e, _f = _a.FooterComponent, FooterComponent = _f === void 0 ? undefined : _f, footerProps = _a.footerProps, dados = _a.dados, _g = _a.head, head = _g === void 0 ? [] : _g, _h = _a.line, line = _h === void 0 ? function (i) { return i; } : _h, actions = _a.actions, title = _a.title, _j = _a.defaultRowsPerPage, defaultRowsPerPage = _j === void 0 ? 10 : _j, _k = _a.rowsPerPageOptions, rowsPerPageOptions = _k === void 0 ? [10, 25, 50] : _k, checkEnabled = _a.enableCheck, disableCheckIf = _a.disableCheckIf, showCount = _a.showCount, lineStyle = _a.lineStyle, _l = _a.lineClass, lineClass = _l === void 0 ? function () { return undefined; } : _l, onClick = _a.onClick, onDoubleClick = _a.onDoubleClick, _m = _a.children, children = _m === void 0 ? undefined : _m, style = _a.style, className = _a.className, columnStyles = _a.columnStyles, headerColumnStyles = _a.headerColumnStyles, columnOptions = _a.columnOptions, disableFilter = _a.disableFilter, _o = _a.filterLabel, filterLabel = _o === void 0 ? 'Filtro' : _o, _p = _a.indexToSelect, indexToSelect = _p === void 0 ? 0 : _p, _q = _a.disableSorting, disableSorting = _q === void 0 ? [] : _q, _r = _a.size, size = _r === void 0 ? 'small' : _r, onOpen = _a.onOpen, lineTitle = _a.lineTitle, onClose = _a.onClose, method = _a.method, methodPrms = _a.methodPrms, _s = _a.methodResultList, methodResultList = _s === void 0 ? 'lista' : _s, onMethodResponse = _a.onMethodResponse, _t = _a.handleMethodError, handleMethodError = _t === void 0 ? true : _t, _u = _a.allowMethodRequest, allowMethodRequest = _u === void 0 ? true : _u, field = _a.field, fixedToolbar = _a.fixedToolbar, onSelect = _a.onSelect, customKey = _a.customKey, _v = _a.columnProps, columnProps = _v === void 0 ? function () { return ''; } : _v, _w = _a.rowProps, rowProps = _w === void 0 ? function () { return ''; } : _w, _x = _a.savedState, savedState = _x === void 0 ? {} : _x, containerProps = _a.containerProps, _y = _a.onClickAway, onClickAway = _y === void 0 ? function () { return undefined; } : _y, enableCheckIfSelected = _a.enableCheckIfSelected, enableDrag = _a.enableDrag, onDrop = _a.onDrop, tableProps = _a.tableProps, toolbarProps = _a.toolbarProps, externalCtrlPgn = _a.externalCtrlPgn, setExternalCtrlPgn = _a.setExternalCtrlPgn, _z = _a.code, code = _z === void 0 ? '' : _z, _0 = _a.token, token = _0 === void 0 ? '' : _0;
|
|
182
|
-
var classes = useStyles();
|
|
183
190
|
var _1 = (0, react_1.useReducer)(reducer, initialState(defaultRowsPerPage)), state = _1[0], dispatch = _1[1];
|
|
184
191
|
var memoState = (0, react_1.useMemo)(function () { return (__assign(__assign({}, state), { dispatch: dispatch })); }, [state, dispatch]);
|
|
185
192
|
var selected = memoState.selected, page = memoState.page, rowsPerPage = memoState.rowsPerPage, order = memoState.order, orderBy = memoState.orderBy, filter = memoState.filter, open = memoState.open;
|
|
@@ -286,7 +293,9 @@ var ArgousComplexTable = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
286
293
|
setCtrlPgn(function (currentState) { return (__assign(__assign({}, currentState), { pgAtl: 1 })); });
|
|
287
294
|
}
|
|
288
295
|
}, [page, lista.length, rowsPerPage, ctrlPgn.recordCount, lista, method, field, externalCtrlPgn, dispatch]);
|
|
289
|
-
(0, react_1.useEffect)(function () {
|
|
296
|
+
(0, react_1.useEffect)(function () {
|
|
297
|
+
dispatch({ type: 'setSelected', value: [] });
|
|
298
|
+
}, [lista]);
|
|
290
299
|
(0, react_1.useEffect)(function () {
|
|
291
300
|
if (onSelect)
|
|
292
301
|
onSelect(selected);
|
|
@@ -342,36 +351,14 @@ var ArgousComplexTable = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
342
351
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
343
352
|
}, [externalCtrlPgn]);
|
|
344
353
|
return (react_1.default.createElement(exports.TableContext.Provider, { value: __assign(__assign({}, memoState), { dadosMostrados: dadosMostrados, lista: lista, indexToSelect: indexToSelect, method: method, externalCtrlPgn: externalCtrlPgn }) },
|
|
345
|
-
react_1.default.createElement(
|
|
346
|
-
react_1.default.createElement(
|
|
347
|
-
react_1.default.createElement(ToolbarComponent, __assign({ numSelected: selected.length, disableFilter: disableFilter || !!method || !!externalCtrlPgn
|
|
348
|
-
react_1.default.createElement(
|
|
349
|
-
react_1.default.createElement(HeadComponent,
|
|
350
|
-
react_1.default.createElement(BodyComponent,
|
|
351
|
-
children: children,
|
|
352
|
-
line: line,
|
|
353
|
-
lineStyle: lineStyle,
|
|
354
|
-
lineTitle: lineTitle,
|
|
355
|
-
handleOpenClose: handleOpenClose,
|
|
356
|
-
lineClass: lineClass,
|
|
357
|
-
enableDrag: enableDrag,
|
|
358
|
-
enableCheck: enableCheck,
|
|
359
|
-
columnStyles: columnStyles,
|
|
360
|
-
head: head,
|
|
361
|
-
columnOptions: columnOptions,
|
|
362
|
-
columnProps: columnProps,
|
|
363
|
-
rowProps: rowProps,
|
|
364
|
-
onDrop: onDrop,
|
|
365
|
-
onClick: onClick,
|
|
366
|
-
onDoubleClick: onDoubleClick,
|
|
367
|
-
indexToSelect: indexToSelect,
|
|
368
|
-
open: open,
|
|
369
|
-
dadosMostrados: dadosMostrados,
|
|
370
|
-
customKey: customKey,
|
|
371
|
-
disableCheckIf: disableCheckIf
|
|
372
|
-
})),
|
|
354
|
+
react_1.default.createElement(material_1.ClickAwayListener, { onClickAway: onClickAway },
|
|
355
|
+
react_1.default.createElement(material_1.TableContainer, __assign({ component: material_1.Paper, variant: 'outlined', style: style }, containerProps, { className: className, sx: __spreadArray([rootSx], normalizeSx(containerProps === null || containerProps === void 0 ? void 0 : containerProps.sx), true) }),
|
|
356
|
+
react_1.default.createElement(ToolbarComponent, __assign({ numSelected: selected.length, disableFilter: disableFilter || !!method || !!externalCtrlPgn, actions: actions, title: title, selected: selected, filter: filter, filterLabel: filterLabel, lista: lista, indexToSelect: indexToSelect, fixedToolbar: fixedToolbar }, toolbarProps)),
|
|
357
|
+
react_1.default.createElement(material_1.Table, __assign({}, tableProps, { size: size }),
|
|
358
|
+
react_1.default.createElement(HeadComponent, { size: (method || externalCtrlPgn) ? ctrlPgn.recordCount : dadosNaoCortados.length, numSelected: selected.length, rowCount: (rowsPerPage > ((method || externalCtrlPgn) ? ctrlPgn.recordCount : dadosNaoCortados.length)) ? ((method || externalCtrlPgn) ? ctrlPgn.recordCount : dadosNaoCortados.length) : (rowsPerPage || dadosNaoCortados.length), head: head, order: order, orderBy: orderBy, enableCheck: enableCheck, headerColumnStyles: headerColumnStyles, disableSorting: disableSorting, ordCols: ordCols, method: method, cortaDados: cortaDados, disableCheckIf: disableCheckIf, line: line, enableDrag: enableDrag }),
|
|
359
|
+
react_1.default.createElement(BodyComponent, { children: children, line: line, lineStyle: lineStyle, lineTitle: lineTitle, handleOpenClose: handleOpenClose, lineClass: lineClass, enableDrag: enableDrag, enableCheck: enableCheck, columnStyles: columnStyles, head: head, columnOptions: columnOptions, columnProps: columnProps, rowProps: rowProps, onDrop: onDrop, onClick: onClick, onDoubleClick: onDoubleClick, indexToSelect: indexToSelect, open: open, dadosMostrados: dadosMostrados, customKey: customKey, disableCheckIf: disableCheckIf }),
|
|
373
360
|
FooterComponent && react_1.default.createElement(FooterComponent, __assign({}, footerProps))),
|
|
374
|
-
(usePagination) && (react_1.default.createElement(PaginationComponent,
|
|
361
|
+
(usePagination) && (react_1.default.createElement(PaginationComponent, { count: (method || externalCtrlPgn) ? ctrlPgn.recordCount : dadosNaoCortados.length, onChangePage: function (_, value) {
|
|
375
362
|
dispatch({ type: 'setPage', value: value });
|
|
376
363
|
setCtrlPgn(__assign(__assign({}, ctrlPgn), { pgAtl: value + 1 }));
|
|
377
364
|
}, onChangeRowsPerPage: function (e) {
|
|
@@ -379,7 +366,7 @@ var ArgousComplexTable = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
379
366
|
dispatch({ type: 'setPage', value: 0 });
|
|
380
367
|
setCtrlPgn(__assign(__assign({}, ctrlPgn), { pgAtl: 1, qtRegs: parseInt(e.target.value, 10) }));
|
|
381
368
|
setExternalCtrlPgn && setExternalCtrlPgn(__assign(__assign({}, externalCtrlPgn), { pgAtl: 1, qtRegs: parseInt(e.target.value, 10) }));
|
|
382
|
-
}
|
|
369
|
+
}, showCount: showCount, page: page, rowsPerPageOptions: rowsPerPageOptions, rowsPerPage: rowsPerPage }))))));
|
|
383
370
|
});
|
|
384
371
|
ArgousComplexTable.propTypes = {
|
|
385
372
|
dados: prop_types_1.default.array,
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from './ArgousComplexTable';
|
|
1
|
+
export { default } from "./ArgousComplexTable";
|