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
|
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
16
20
|
}) : (function(o, m, k, k2) {
|
|
17
21
|
if (k2 === undefined) k2 = k;
|
|
18
22
|
o[k2] = m[k];
|
|
@@ -22,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
22
26
|
}) : function(o, v) {
|
|
23
27
|
o["default"] = v;
|
|
24
28
|
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
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
|
+
})();
|
|
32
46
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
33
47
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
34
48
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -39,12 +53,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
39
53
|
});
|
|
40
54
|
};
|
|
41
55
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
42
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
43
|
-
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;
|
|
44
58
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
45
59
|
function step(op) {
|
|
46
60
|
if (f) throw new TypeError("Generator is already executing.");
|
|
47
|
-
while (_) try {
|
|
61
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
48
62
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
49
63
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
50
64
|
switch (op[0]) {
|
|
@@ -65,10 +79,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
65
79
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
66
80
|
}
|
|
67
81
|
};
|
|
68
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
69
|
-
for (var i = 0,
|
|
70
|
-
|
|
71
|
-
|
|
82
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
83
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
84
|
+
if (ar || !(i in from)) {
|
|
85
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
86
|
+
ar[i] = from[i];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
72
90
|
};
|
|
73
91
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
74
92
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -78,25 +96,23 @@ exports.TableContext = void 0;
|
|
|
78
96
|
var __1 = require("../");
|
|
79
97
|
var fieldsRedux_1 = require("../../fieldsRedux");
|
|
80
98
|
var api_1 = require("../../utils/api");
|
|
81
|
-
var
|
|
82
|
-
var clsx_1 = __importDefault(require("clsx"));
|
|
99
|
+
var material_1 = require("@mui/material");
|
|
83
100
|
var lodash_1 = require("lodash");
|
|
84
101
|
var moment_1 = __importDefault(require("moment"));
|
|
85
102
|
var prop_types_1 = __importDefault(require("prop-types"));
|
|
86
103
|
var react_1 = __importStar(require("react"));
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
'
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
'
|
|
93
|
-
display: 'table-row !important'
|
|
94
|
-
}
|
|
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'
|
|
95
110
|
}
|
|
96
|
-
}
|
|
97
|
-
|
|
111
|
+
};
|
|
112
|
+
var normalizeSx = function (sx) { return sx ? (Array.isArray(sx) ? sx : [sx]) : []; };
|
|
113
|
+
exports.TableContext = (0, react_1.createContext)();
|
|
98
114
|
var ehData = function (valor) {
|
|
99
|
-
var retorno = function (format) { return moment_1.default(valor, format).format('YYYYMMDDHHmmss'); };
|
|
115
|
+
var retorno = function (format) { return (0, moment_1.default)(valor, format).format('YYYYMMDDHHmmss'); };
|
|
100
116
|
if (/[0-9]{2}\/[0-9]{2}\/[0-9]{4}/.test(valor))
|
|
101
117
|
return retorno('DD/MM/YYYY');
|
|
102
118
|
if (/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/.test(valor))
|
|
@@ -169,28 +185,27 @@ var initialState = function (defaultRowsPerPage) { return ({
|
|
|
169
185
|
open: undefined,
|
|
170
186
|
loading: false
|
|
171
187
|
}); };
|
|
172
|
-
var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
188
|
+
var ArgousComplexTable = (0, react_1.forwardRef)(function (_a, ref) {
|
|
173
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;
|
|
174
|
-
var
|
|
175
|
-
var
|
|
176
|
-
var memoState = react_1.useMemo(function () { return (__assign(__assign({}, state), { dispatch: dispatch })); }, [state, dispatch]);
|
|
190
|
+
var _1 = (0, react_1.useReducer)(reducer, initialState(defaultRowsPerPage)), state = _1[0], dispatch = _1[1];
|
|
191
|
+
var memoState = (0, react_1.useMemo)(function () { return (__assign(__assign({}, state), { dispatch: dispatch })); }, [state, dispatch]);
|
|
177
192
|
var selected = memoState.selected, page = memoState.page, rowsPerPage = memoState.rowsPerPage, order = memoState.order, orderBy = memoState.orderBy, filter = memoState.filter, open = memoState.open;
|
|
178
|
-
var _2 = react_1.useState(dados /*.map(linha => isArray(linha) ? linha : Object.values(linha))*/ || []), lista = _2[0], setLista = _2[1];
|
|
179
|
-
var _3 = react_1.useState({ qtRegs: defaultRowsPerPage, pgAtl: 1 }), ctrlPgn = _3[0], setCtrlPgn = _3[1];
|
|
193
|
+
var _2 = (0, react_1.useState)(dados /*.map(linha => isArray(linha) ? linha : Object.values(linha))*/ || []), lista = _2[0], setLista = _2[1];
|
|
194
|
+
var _3 = (0, react_1.useState)({ qtRegs: defaultRowsPerPage, pgAtl: 1 }), ctrlPgn = _3[0], setCtrlPgn = _3[1];
|
|
180
195
|
var qtRegs = ctrlPgn.qtRegs, pgAtl = ctrlPgn.pgAtl, ordCols = ctrlPgn.ordCols;
|
|
181
196
|
var enableCheck = checkEnabled || (enableCheckIfSelected && !!selected.length);
|
|
182
|
-
var dadosNaoCortados = react_1.useMemo(function () {
|
|
197
|
+
var dadosNaoCortados = (0, react_1.useMemo)(function () {
|
|
183
198
|
if (method)
|
|
184
199
|
return lista || [];
|
|
185
|
-
if (lodash_1.isArray(lista) && lista.length > 0)
|
|
200
|
+
if ((0, lodash_1.isArray)(lista) && lista.length > 0)
|
|
186
201
|
return stableSort(lista, getComparator(order, orderBy), line)
|
|
187
|
-
.filter(function (linha) { return lodash_1.isArray(line(linha)) ? line(linha).filter(function (item) { return filter ? new RegExp(".*"
|
|
202
|
+
.filter(function (linha) { return (0, lodash_1.isArray)(line(linha)) ? line(linha).filter(function (item) { return filter ? new RegExp(".*".concat(filter, ".*"), 'gi').test(item === null || item === void 0 ? void 0 : item.toString()) : true; }).length > 0 : true; }) || [];
|
|
188
203
|
return [];
|
|
189
204
|
}, [lista, filter, order, orderBy, method, line]);
|
|
190
205
|
var usePagination = ((rowsPerPageOptions !== 0) && (Math.ceil(((method || externalCtrlPgn) ? ctrlPgn.recordCount : dadosNaoCortados.length) / parseInt(rowsPerPageOptions[0], 10)) > 1));
|
|
191
|
-
var cortaDados = react_1.useCallback(function (dados) { return dados === null || dados === void 0 ? void 0 : dados.slice(defaultRowsPerPage === 0 ? (undefined) : page * rowsPerPage, defaultRowsPerPage === 0 ? (undefined) : page * rowsPerPage + rowsPerPage); }, [page, rowsPerPage, defaultRowsPerPage]);
|
|
192
|
-
var fillListToKeepHeight = react_1.useCallback(function (array) {
|
|
193
|
-
var newArray = __spreadArray([], array);
|
|
206
|
+
var cortaDados = (0, react_1.useCallback)(function (dados) { return dados === null || dados === void 0 ? void 0 : dados.slice(defaultRowsPerPage === 0 ? (undefined) : page * rowsPerPage, defaultRowsPerPage === 0 ? (undefined) : page * rowsPerPage + rowsPerPage); }, [page, rowsPerPage, defaultRowsPerPage]);
|
|
207
|
+
var fillListToKeepHeight = (0, react_1.useCallback)(function (array) {
|
|
208
|
+
var newArray = __spreadArray([], array, true);
|
|
194
209
|
if (newArray.length < rowsPerPage) {
|
|
195
210
|
var gap = (rowsPerPage - newArray.length);
|
|
196
211
|
var arrayToFillGap = Array.from(Array(gap)).fill(Array.from(Array(head.length)).fill(''));
|
|
@@ -198,26 +213,26 @@ var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
|
198
213
|
}
|
|
199
214
|
return newArray;
|
|
200
215
|
}, [head, rowsPerPage]);
|
|
201
|
-
var dadosMostrados = react_1.useMemo(function () {
|
|
216
|
+
var dadosMostrados = (0, react_1.useMemo)(function () {
|
|
202
217
|
if (page > -1) {
|
|
203
218
|
if (method || externalCtrlPgn)
|
|
204
219
|
return (usePagination) ? fillListToKeepHeight(lista || []) : (lista || []);
|
|
205
220
|
return (usePagination) ? fillListToKeepHeight(cortaDados(dadosNaoCortados) || []) : (cortaDados(dadosNaoCortados) || []);
|
|
206
221
|
}
|
|
207
222
|
}, [page, lista, dadosNaoCortados, usePagination, method, externalCtrlPgn, cortaDados, fillListToKeepHeight]);
|
|
208
|
-
react_1.useEffect(function () {
|
|
223
|
+
(0, react_1.useEffect)(function () {
|
|
209
224
|
dispatch({ type: 'mount', value: savedState.current });
|
|
210
225
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
211
226
|
}, []);
|
|
212
|
-
react_1.useEffect(function () {
|
|
227
|
+
(0, react_1.useEffect)(function () {
|
|
213
228
|
return function () { return savedState.current = state; };
|
|
214
229
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
215
230
|
}, [state]);
|
|
216
|
-
react_1.useEffect(function () {
|
|
217
|
-
if (lodash_1.isArray(dados))
|
|
231
|
+
(0, react_1.useEffect)(function () {
|
|
232
|
+
if ((0, lodash_1.isArray)(dados))
|
|
218
233
|
setLista(dados /*.map(linha => isArray(linha) ? linha : Object.values(linha))*/ || []);
|
|
219
234
|
}, [dados]);
|
|
220
|
-
var retornaAcao = react_1.useCallback(function (pgAtl, page) {
|
|
235
|
+
var retornaAcao = (0, react_1.useCallback)(function (pgAtl, page) {
|
|
221
236
|
if (page === pgAtl)
|
|
222
237
|
return undefined;
|
|
223
238
|
else if (page === pgAtl + 1)
|
|
@@ -228,9 +243,9 @@ var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
|
228
243
|
return 'L';
|
|
229
244
|
else if (page === 0)
|
|
230
245
|
return 'F';
|
|
231
|
-
return "S="
|
|
246
|
+
return "S=".concat(page);
|
|
232
247
|
}, [ctrlPgn.recordCount]);
|
|
233
|
-
var buscaMetodo = react_1.useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
|
+
var buscaMetodo = (0, react_1.useCallback)(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
234
249
|
var res;
|
|
235
250
|
var _a, _b, _c;
|
|
236
251
|
return __generator(this, function (_d) {
|
|
@@ -239,8 +254,9 @@ var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
|
239
254
|
if (!method || !allowMethodRequest)
|
|
240
255
|
return [2 /*return*/];
|
|
241
256
|
dispatch({ type: 'setLoading', value: true });
|
|
242
|
-
return [4 /*yield*/, api_1.serverAction(method, __assign({ ctrlPgn: {
|
|
243
|
-
qtRegs: qtRegs,
|
|
257
|
+
return [4 /*yield*/, (0, api_1.serverAction)(method, __assign({ ctrlPgn: {
|
|
258
|
+
qtRegs: qtRegs,
|
|
259
|
+
pgAtl: pgAtl,
|
|
244
260
|
acao: retornaAcao(ctrlPgn.pgAtl, page + 1),
|
|
245
261
|
tpOrdem: orderBy >= 0 ? (order === 'asc' ? 'A' : 'D') : undefined,
|
|
246
262
|
indOrdem: orderBy >= 0 ? orderBy : undefined
|
|
@@ -259,31 +275,33 @@ var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
|
259
275
|
}
|
|
260
276
|
});
|
|
261
277
|
}); }, [method, allowMethodRequest, qtRegs, pgAtl, retornaAcao, ctrlPgn.pgAtl, page, orderBy, order, methodPrms, handleMethodError, methodResultList, code, token]);
|
|
262
|
-
react_1.useEffect(function () {
|
|
278
|
+
(0, react_1.useEffect)(function () {
|
|
263
279
|
buscaMetodo();
|
|
264
280
|
}, [buscaMetodo]);
|
|
265
|
-
var fielValue = react_1.useMemo(function () { /*isArray(getField(field, 'value')) ? */ return fieldsRedux_1.getField(field, 'value'); } /*?.map(item => isArray(item) ? item : Object.values(item)) : []*/, [field]);
|
|
266
|
-
react_1.useEffect(function () {
|
|
267
|
-
if (field && !lodash_1.isEqual(lista, fielValue))
|
|
281
|
+
var fielValue = (0, react_1.useMemo)(function () { /*isArray(getField(field, 'value')) ? */ return (0, fieldsRedux_1.getField)(field, 'value'); } /*?.map(item => isArray(item) ? item : Object.values(item)) : []*/, [field]);
|
|
282
|
+
(0, react_1.useEffect)(function () {
|
|
283
|
+
if (field && !(0, lodash_1.isEqual)(lista, fielValue))
|
|
268
284
|
setLista(fielValue || []);
|
|
269
285
|
}, [field, lista, fielValue]);
|
|
270
|
-
react_1.useEffect(function () {
|
|
286
|
+
(0, react_1.useEffect)(function () {
|
|
271
287
|
if (method || field || externalCtrlPgn)
|
|
272
288
|
return;
|
|
273
|
-
if (lodash_1.isArray(lista) && (lista.length > 0) && (page === Math.ceil((method) ? ctrlPgn.recordCount : (lista.length / parseInt(rowsPerPage, 10)))))
|
|
289
|
+
if ((0, lodash_1.isArray)(lista) && (lista.length > 0) && (page === Math.ceil((method) ? ctrlPgn.recordCount : (lista.length / parseInt(rowsPerPage, 10)))))
|
|
274
290
|
dispatch({ type: 'decremmentPage' });
|
|
275
|
-
if (lodash_1.isArray(lista) && (lista.length > 0) && ((page + 1) > Math.ceil((method) ? ctrlPgn.recordCount : (lista.length / parseInt(rowsPerPage, 10))))) {
|
|
291
|
+
if ((0, lodash_1.isArray)(lista) && (lista.length > 0) && ((page + 1) > Math.ceil((method) ? ctrlPgn.recordCount : (lista.length / parseInt(rowsPerPage, 10))))) {
|
|
276
292
|
dispatch({ type: 'setPage', value: 0 });
|
|
277
293
|
setCtrlPgn(function (currentState) { return (__assign(__assign({}, currentState), { pgAtl: 1 })); });
|
|
278
294
|
}
|
|
279
295
|
}, [page, lista.length, rowsPerPage, ctrlPgn.recordCount, lista, method, field, externalCtrlPgn, dispatch]);
|
|
280
|
-
react_1.useEffect(function () {
|
|
281
|
-
|
|
296
|
+
(0, react_1.useEffect)(function () {
|
|
297
|
+
dispatch({ type: 'setSelected', value: [] });
|
|
298
|
+
}, [lista]);
|
|
299
|
+
(0, react_1.useEffect)(function () {
|
|
282
300
|
if (onSelect)
|
|
283
301
|
onSelect(selected);
|
|
284
302
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
285
303
|
}, [selected]);
|
|
286
|
-
var handleOpenClose = react_1.useCallback(function (index) {
|
|
304
|
+
var handleOpenClose = (0, react_1.useCallback)(function (index) {
|
|
287
305
|
if (index === open || (!index && index !== 0)) {
|
|
288
306
|
dispatch({ type: 'setOpen', value: undefined });
|
|
289
307
|
if (onClose && (index || open))
|
|
@@ -295,35 +313,35 @@ var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
|
295
313
|
onOpen({ linhaOriginal: dadosMostrados[index], linhaFormatada: line(dadosMostrados[index]) });
|
|
296
314
|
}
|
|
297
315
|
}, [open, onClose, onOpen, dadosMostrados, dispatch, line]);
|
|
298
|
-
react_1.useImperativeHandle(ref, function () { return ({
|
|
316
|
+
(0, react_1.useImperativeHandle)(ref, function () { return ({
|
|
299
317
|
setOpen: function (index) { return handleOpenClose(index); },
|
|
300
318
|
getOpen: dadosMostrados[open],
|
|
301
319
|
getSelected: selected,
|
|
302
|
-
setSelected: function (s) { return dispatch({ type: 'setSelected', value: lodash_1.isFunction(s) ? s(selected, dadosMostrados) : s }); },
|
|
320
|
+
setSelected: function (s) { return dispatch({ type: 'setSelected', value: (0, lodash_1.isFunction)(s) ? s(selected, dadosMostrados) : s }); },
|
|
303
321
|
setLoading: function (value) { return dispatch({ type: 'setLoading', value: value }); }
|
|
304
322
|
}); });
|
|
305
|
-
var _4 = react_1.useState(true), bounced = _4[0], setBounced = _4[1];
|
|
323
|
+
var _4 = (0, react_1.useState)(true), bounced = _4[0], setBounced = _4[1];
|
|
306
324
|
var getFullCtrlPgn = function (internal) {
|
|
307
325
|
var ctrl = internal ? ctrlPgn : externalCtrlPgn;
|
|
308
326
|
return __assign({ acao: retornaAcao(ctrl.pgAtl, page + 1), tpOrdem: orderBy >= 0 ? (order === 'asc' ? 'A' : 'D') : undefined, indOrdem: orderBy >= 0 ? orderBy : undefined }, ctrl);
|
|
309
327
|
};
|
|
310
|
-
react_1.useEffect(function () {
|
|
328
|
+
(0, react_1.useEffect)(function () {
|
|
311
329
|
if (!method && setExternalCtrlPgn) {
|
|
312
330
|
var fullCtrlPgn = __assign(__assign({}, ctrlPgn), { acao: retornaAcao(ctrlPgn.pgAtl, page + 1), tpOrdem: orderBy >= 0 ? (order === 'asc' ? 'A' : 'D') : undefined, indOrdem: orderBy >= 0 ? orderBy : undefined });
|
|
313
331
|
var fullExternalCtrlPgn = getFullCtrlPgn();
|
|
314
|
-
if (!bounced && !lodash_1.isEqual(fullCtrlPgn, fullExternalCtrlPgn))
|
|
332
|
+
if (!bounced && !(0, lodash_1.isEqual)(fullCtrlPgn, fullExternalCtrlPgn))
|
|
315
333
|
setExternalCtrlPgn(fullCtrlPgn);
|
|
316
334
|
else if (bounced)
|
|
317
335
|
setBounced(false);
|
|
318
336
|
}
|
|
319
337
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
320
338
|
}, [ctrlPgn, order, orderBy, page]);
|
|
321
|
-
react_1.useEffect(function () {
|
|
339
|
+
(0, react_1.useEffect)(function () {
|
|
322
340
|
var _a;
|
|
323
341
|
if (!method && externalCtrlPgn && ((_a = Object.keys(externalCtrlPgn)) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
324
342
|
var fullCtrlPgn = getFullCtrlPgn(true);
|
|
325
343
|
var fullExternalCtrlPgn = getFullCtrlPgn();
|
|
326
|
-
if (!lodash_1.isEqual(fullExternalCtrlPgn, fullCtrlPgn)) {
|
|
344
|
+
if (!(0, lodash_1.isEqual)(fullExternalCtrlPgn, fullCtrlPgn)) {
|
|
327
345
|
if (externalCtrlPgn === null || externalCtrlPgn === void 0 ? void 0 : externalCtrlPgn.pgAtl)
|
|
328
346
|
dispatch({ type: 'setPage', value: (externalCtrlPgn.pgAtl - 1) });
|
|
329
347
|
setCtrlPgn(__assign(__assign({}, fullExternalCtrlPgn), { recordCount: ((externalCtrlPgn === null || externalCtrlPgn === void 0 ? void 0 : externalCtrlPgn.qtPaginas) * (externalCtrlPgn === null || externalCtrlPgn === void 0 ? void 0 : externalCtrlPgn.qtRegs)) }));
|
|
@@ -333,18 +351,14 @@ var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
|
333
351
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
334
352
|
}, [externalCtrlPgn]);
|
|
335
353
|
return (react_1.default.createElement(exports.TableContext.Provider, { value: __assign(__assign({}, memoState), { dadosMostrados: dadosMostrados, lista: lista, indexToSelect: indexToSelect, method: method, externalCtrlPgn: externalCtrlPgn }) },
|
|
336
|
-
react_1.default.createElement(
|
|
337
|
-
react_1.default.createElement(
|
|
338
|
-
react_1.default.createElement(ToolbarComponent, __assign({ numSelected: selected.length, disableFilter: disableFilter || !!method || !!externalCtrlPgn
|
|
339
|
-
react_1.default.createElement(
|
|
340
|
-
react_1.default.createElement(HeadComponent,
|
|
341
|
-
react_1.default.createElement(BodyComponent,
|
|
342
|
-
children: children, line: line, lineStyle: lineStyle, lineTitle: lineTitle, handleOpenClose: handleOpenClose, lineClass: lineClass, enableDrag: enableDrag,
|
|
343
|
-
enableCheck: enableCheck, columnStyles: columnStyles, head: head, columnOptions: columnOptions, columnProps: columnProps, rowProps: rowProps, onDrop: onDrop,
|
|
344
|
-
onClick: onClick, onDoubleClick: onDoubleClick, indexToSelect: indexToSelect, open: open, dadosMostrados: dadosMostrados, customKey: customKey, disableCheckIf: disableCheckIf
|
|
345
|
-
})),
|
|
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 }),
|
|
346
360
|
FooterComponent && react_1.default.createElement(FooterComponent, __assign({}, footerProps))),
|
|
347
|
-
(usePagination) && (react_1.default.createElement(PaginationComponent,
|
|
361
|
+
(usePagination) && (react_1.default.createElement(PaginationComponent, { count: (method || externalCtrlPgn) ? ctrlPgn.recordCount : dadosNaoCortados.length, onChangePage: function (_, value) {
|
|
348
362
|
dispatch({ type: 'setPage', value: value });
|
|
349
363
|
setCtrlPgn(__assign(__assign({}, ctrlPgn), { pgAtl: value + 1 }));
|
|
350
364
|
}, onChangeRowsPerPage: function (e) {
|
|
@@ -352,7 +366,7 @@ var ArgousComplexTable = react_1.forwardRef(function (_a, ref) {
|
|
|
352
366
|
dispatch({ type: 'setPage', value: 0 });
|
|
353
367
|
setCtrlPgn(__assign(__assign({}, ctrlPgn), { pgAtl: 1, qtRegs: parseInt(e.target.value, 10) }));
|
|
354
368
|
setExternalCtrlPgn && setExternalCtrlPgn(__assign(__assign({}, externalCtrlPgn), { pgAtl: 1, qtRegs: parseInt(e.target.value, 10) }));
|
|
355
|
-
}
|
|
369
|
+
}, showCount: showCount, page: page, rowsPerPageOptions: rowsPerPageOptions, rowsPerPage: rowsPerPage }))))));
|
|
356
370
|
});
|
|
357
371
|
ArgousComplexTable.propTypes = {
|
|
358
372
|
dados: prop_types_1.default.array,
|
|
@@ -391,4 +405,4 @@ ArgousComplexTable.propTypes = {
|
|
|
391
405
|
externalCtrlPgn: prop_types_1.default.object,
|
|
392
406
|
setExternalCtrlPgn: prop_types_1.default.func
|
|
393
407
|
};
|
|
394
|
-
exports.default = react_1.memo(ArgousComplexTable, lodash_1.isEqual);
|
|
408
|
+
exports.default = (0, react_1.memo)(ArgousComplexTable, lodash_1.isEqual);
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from './ArgousComplexTable';
|
|
1
|
+
export { default } from "./ArgousComplexTable";
|
|
@@ -1,177 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* @param linhaOriginal - Linha original, antes de ser formatada pela função line
|
|
9
|
-
* @param linha - Linha ja formatada pela função line
|
|
10
|
-
* @param index - Índice da linha
|
|
11
|
-
*
|
|
12
|
-
* @returns {React.ReactNode} Componente react
|
|
13
|
-
*/
|
|
14
|
-
(props: {linhaOriginal: Array<any> | object, linha: Array<any>, index:number}): React.ReactNode
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export declare interface ColumnOptions {
|
|
18
|
-
/**
|
|
19
|
-
* Indice da coluna a ser modificada
|
|
20
|
-
*/
|
|
21
|
-
alias: number,
|
|
22
|
-
/**
|
|
23
|
-
* JSX Customizado para a coluna
|
|
24
|
-
*
|
|
25
|
-
* @param itemFormatado - Item retornado pela funcao line no indice selecionado
|
|
26
|
-
* @param linhaOriginal - Linha original, antes de ser formatada pela função line
|
|
27
|
-
* @param linhaFormatada - Linha ja formatada pela função line
|
|
28
|
-
* @param index - Índice da linha
|
|
29
|
-
*
|
|
30
|
-
* @returns {React.ReactNode} Componente react
|
|
31
|
-
*/
|
|
32
|
-
customJsx: (props: {index: number, itemFormatado: any, linhaFormatada: Array<any>, linhaOriginal: Array<any> | object}) => React.ReactNode
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface ArgousComplexTableBodyProps {
|
|
36
|
-
/**
|
|
37
|
-
* @ignore
|
|
38
|
-
*/
|
|
39
|
-
children?: React.ReactNode | ChildrenFunction,
|
|
40
|
-
/**
|
|
41
|
-
* Função que converte a linha original em um array com os dados a serem exibidos
|
|
42
|
-
*
|
|
43
|
-
* @param linhaOriginal - linha a ser formatada
|
|
44
|
-
*
|
|
45
|
-
* @returns {Array<any>} Retorna array
|
|
46
|
-
*/
|
|
47
|
-
line: (linhaOriginal: Array<Array<any> | Object>) => Array<any>,
|
|
48
|
-
/**
|
|
49
|
-
* Estilo que pode ser aplicado por linhas dependendo do conteúdo ou do índice da linha
|
|
50
|
-
*
|
|
51
|
-
* @param linhaOriginal - Linha original
|
|
52
|
-
* @param linhaFormatada - Linha formatada
|
|
53
|
-
* @param index - Índice da linha
|
|
54
|
-
*
|
|
55
|
-
* @returns {React.CSSProperties} Estilos para a linha
|
|
56
|
-
*/
|
|
57
|
-
lineStyle?: (linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, index:number) => React.CSSProperties,
|
|
58
|
-
/**
|
|
59
|
-
* Classe que pode ser aplicada por linhas dependendo do conteúdo ou do índice da linha
|
|
60
|
-
*
|
|
61
|
-
* @param linhaFormatada - Linha formatada
|
|
62
|
-
* @param linhaOriginal - Linha original
|
|
63
|
-
* @param index - Índice da linha
|
|
64
|
-
*
|
|
65
|
-
* @returns {string} Classe para a linha
|
|
66
|
-
*/
|
|
67
|
-
lineClass?: (linhaFormatada: Array<any>, linhaOriginal: Array<any> | object, index: number) => string,
|
|
68
|
-
/**
|
|
69
|
-
* Habilita a seleção de linhas da lista
|
|
70
|
-
*/
|
|
71
|
-
enableCheck?: boolean,
|
|
72
|
-
/**
|
|
73
|
-
* Habilita o drag and drop das linhas
|
|
74
|
-
*/
|
|
75
|
-
enableDrag?: boolean,
|
|
76
|
-
/**
|
|
77
|
-
* Função chamada ao clicar em uma linha
|
|
78
|
-
*
|
|
79
|
-
* @param evento - Evento do drop
|
|
80
|
-
*
|
|
81
|
-
* @returns {void} Sem retorno
|
|
82
|
-
*/
|
|
83
|
-
onDrop?: (evento: React.DragEventHandler<HTMLDivElement>) => void,
|
|
84
|
-
/**
|
|
85
|
-
* Função que decide se a seleção de determinada linha está habilitada
|
|
86
|
-
*
|
|
87
|
-
* @param linhaOriginal - Linha original, antes de ser formatada pela função line
|
|
88
|
-
* @param linhaFormatada - Linha ja formatada pela função line
|
|
89
|
-
* @param index - Índice da linha
|
|
90
|
-
*
|
|
91
|
-
* @returns {boolean} Booleano
|
|
92
|
-
*/
|
|
93
|
-
disableCheckIf?: (linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, index: number) => boolean,
|
|
94
|
-
/**
|
|
95
|
-
* Array de estilos para cada coluna da linha
|
|
96
|
-
*/
|
|
97
|
-
columnStyles?: Array<React.CSSProperties>,
|
|
98
|
-
/**
|
|
99
|
-
* Função chamada ao clicar em uma linha
|
|
100
|
-
*
|
|
101
|
-
* @param evento - Evento do click
|
|
102
|
-
* @param linhaOriginal - Linha original
|
|
103
|
-
* @param linhaFormatada - Linha formatada
|
|
104
|
-
* @param index - Índice da linha clicada
|
|
105
|
-
*
|
|
106
|
-
* @returns {void} Sem retorno
|
|
107
|
-
*/
|
|
108
|
-
onClick?: (evento: EventTarget, linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, index:number) => void,
|
|
109
|
-
/**
|
|
110
|
-
* Ìndice da linha original a ser utilizado como ID primário na hora das seleções e que será retornado pelas actions
|
|
111
|
-
*/
|
|
112
|
-
indexToSelect?: number | string,
|
|
113
|
-
/**
|
|
114
|
-
* Array de opções para as colunas
|
|
115
|
-
*
|
|
116
|
-
* @param alias - Índice da coluna
|
|
117
|
-
* @param customJsx - Função que retorna o JSX customizado
|
|
118
|
-
*/
|
|
119
|
-
columnOptions?: Array<ColumnOptions>,
|
|
120
|
-
/**
|
|
121
|
-
* Title que aparecerá ao dar hover na linha
|
|
122
|
-
*/
|
|
123
|
-
lineTitle?: string,
|
|
124
|
-
/**
|
|
125
|
-
* Item da linha original a ser utilizado como key no map
|
|
126
|
-
*/
|
|
127
|
-
customKey?: string | number,
|
|
128
|
-
/**
|
|
129
|
-
* Props a serem repassados para a celula da tabela
|
|
130
|
-
*
|
|
131
|
-
* @param index - Index da coluna sendo testada
|
|
132
|
-
* @param coluna - Item da coluna sendo testada
|
|
133
|
-
* @param linhaOriginal - Linha original sendo testada
|
|
134
|
-
* @param linhaFormatada - Linha formatada sendo testada
|
|
135
|
-
*
|
|
136
|
-
* @returns {TableCellBaseProps} Props a serem passados para a coluna
|
|
137
|
-
*/
|
|
138
|
-
columnProps?: (index: number, coluna: any, linhaOriginal: Array<any> | object, linhaFormatada: Array<any>) => TableCellBaseProps,
|
|
139
|
-
/**
|
|
140
|
-
* Props a serem repassados para a linha da tabela
|
|
141
|
-
*
|
|
142
|
-
* @param index - Index da coluna sendo testada
|
|
143
|
-
* @param linhaOriginal - Linha original sendo testada
|
|
144
|
-
* @param linhaFormatada - Linha formatada sendo testada
|
|
145
|
-
* @param itensSelecionados - Linha formatada sendo testada
|
|
146
|
-
*
|
|
147
|
-
* @returns {TableRowProps} Props a serem passados para a linha
|
|
148
|
-
*/
|
|
149
|
-
rowProps?: (props: {index: number, linhaOriginal: Array<any> | object, linhaFormatada: Array<any>, itensSelecionados: any[]}) => TableRowProps
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export interface ArgousComplexTableBodyPrivateProps extends ArgousComplexTableBodyProps {
|
|
153
|
-
/**
|
|
154
|
-
* Função que abre a linha clicada
|
|
155
|
-
*
|
|
156
|
-
* @param index - Índice da linha clicada
|
|
157
|
-
*
|
|
158
|
-
* @returns {void} Sem retorno
|
|
159
|
-
*/
|
|
160
|
-
handleOpenClose: (index: number) => void,
|
|
161
|
-
/**
|
|
162
|
-
* Array de títulos para o cabeçalho da tabela
|
|
163
|
-
*/
|
|
164
|
-
head?: Array<string>,
|
|
165
|
-
/**
|
|
166
|
-
* Índice aberto
|
|
167
|
-
*/
|
|
168
|
-
open: number,
|
|
169
|
-
/**
|
|
170
|
-
* Array de dados que estão visíveis no momento
|
|
171
|
-
*/
|
|
172
|
-
dadosMostrados: Array<Array<any> | Object>,
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
declare function ArgousComplexTableBody(props: ArgousComplexTableBodyPrivateProps): JSX.Element
|
|
176
|
-
|
|
177
|
-
export default ArgousComplexTableBody;
|
|
1
|
+
export default ArgousComplexTableBody;
|
|
2
|
+
export function CustomTooltip({ title, children }: {
|
|
3
|
+
title: any;
|
|
4
|
+
children: any;
|
|
5
|
+
}): any;
|
|
6
|
+
declare const ArgousComplexTableBody: React.NamedExoticComponent<object>;
|
|
7
|
+
import React from 'react';
|