argous 1.2.133 → 1.2.137
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/index.d.ts +1 -0
- package/dist/api/index.js +18 -1
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.d.ts +20 -0
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +331 -0
- package/dist/components/AutoCompleteFavorites/index.d.ts +1 -0
- package/dist/components/AutoCompleteFavorites/index.js +8 -0
- package/dist/components/Compartilhar/Compartilhar.js +1 -1
- package/lib/actions/index.ts +57 -0
- package/lib/api/WebSocket.js +148 -0
- package/lib/api/index.js +402 -0
- package/lib/api/ws.js +27 -0
- package/lib/components/Alert/Alert.d.ts +8 -0
- package/lib/components/Alert/Alert.js +49 -0
- package/lib/components/Alert/index.d.ts +2 -0
- package/lib/components/Alert/index.js +1 -0
- package/lib/components/ArgousAction/ArgousAction.d.ts +8 -0
- package/lib/components/ArgousAction/ArgousAction.js +78 -0
- package/lib/components/ArgousAction/index.d.ts +2 -0
- package/lib/components/ArgousAction/index.js +1 -0
- package/lib/components/ArgousAvatar/ArgousAvatar.d.ts +14 -0
- package/lib/components/ArgousAvatar/ArgousAvatar.js +79 -0
- package/lib/components/ArgousAvatar/index.d.ts +2 -0
- package/lib/components/ArgousAvatar/index.js +1 -0
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.d.ts +76 -0
- package/lib/components/ArgousComplexPagination/ArgousComplexPagination.js +182 -0
- package/lib/components/ArgousComplexPagination/index.d.ts +2 -0
- package/lib/components/ArgousComplexPagination/index.js +1 -0
- package/lib/components/ArgousComplexTable/ArgousComplexTable.d.ts +131 -0
- package/lib/components/ArgousComplexTable/ArgousComplexTable.js +360 -0
- package/lib/components/ArgousComplexTable/index.d.ts +2 -0
- package/lib/components/ArgousComplexTable/index.js +1 -0
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.d.ts +177 -0
- package/lib/components/ArgousComplexTableBody/ArgousComplexTableBody.js +162 -0
- package/lib/components/ArgousComplexTableBody/index.d.ts +2 -0
- package/lib/components/ArgousComplexTableBody/index.js +1 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.d.ts +73 -0
- package/lib/components/ArgousComplexTableHead/ArgousComplexTableHead.js +98 -0
- package/lib/components/ArgousComplexTableHead/index.d.ts +2 -0
- package/lib/components/ArgousComplexTableHead/index.js +1 -0
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.d.ts +58 -0
- package/lib/components/ArgousComplexTableToolbar/ArgousComplexTableToolBar.js +66 -0
- package/lib/components/ArgousComplexTableToolbar/index.d.ts +2 -0
- package/lib/components/ArgousComplexTableToolbar/index.js +1 -0
- package/lib/components/ArgousInput/ArgousInput.d.ts +8 -0
- package/lib/components/ArgousInput/ArgousInput.js +616 -0
- package/lib/components/ArgousInput/index.d.ts +2 -0
- package/lib/components/ArgousInput/index.js +1 -0
- package/lib/components/ArgousPagination/ArgousPagination.d.ts +8 -0
- package/lib/components/ArgousPagination/ArgousPagination.js +43 -0
- package/lib/components/ArgousPagination/index.d.ts +2 -0
- package/lib/components/ArgousPagination/index.js +1 -0
- package/lib/components/ArgousProgressBar/ArgousProgressBar.d.ts +22 -0
- package/lib/components/ArgousProgressBar/ArgousProgressBar.js +167 -0
- package/lib/components/ArgousProgressBar/index.d.ts +2 -0
- package/lib/components/ArgousProgressBar/index.js +1 -0
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.d.ts +8 -0
- package/lib/components/ArgousSimpleTable/ArgousSimpleTable.js +241 -0
- package/lib/components/ArgousSimpleTable/index.d.ts +2 -0
- package/lib/components/ArgousSimpleTable/index.js +1 -0
- package/lib/components/AutoComplete/AutoComplete.d.ts +8 -0
- package/lib/components/AutoComplete/AutoComplete.js +189 -0
- package/lib/components/AutoComplete/index.d.ts +2 -0
- package/lib/components/AutoComplete/index.js +1 -0
- package/lib/components/AutoCompleteFavorites/AutoCompleteFavorites.js +298 -0
- package/lib/components/AutoCompleteFavorites/index.js +1 -0
- package/lib/components/BarChart/BarChart.d.ts +8 -0
- package/lib/components/BarChart/BarChart.js +92 -0
- package/lib/components/BarChart/index.d.ts +2 -0
- package/lib/components/BarChart/index.js +1 -0
- package/lib/components/BarraFerramentas/BarraFerramentas.d.ts +21 -0
- package/lib/components/BarraFerramentas/BarraFerramentas.js +277 -0
- package/lib/components/BarraFerramentas/index.d.ts +2 -0
- package/lib/components/BarraFerramentas/index.js +1 -0
- package/lib/components/Button/Button.d.ts +8 -0
- package/lib/components/Button/Button.js +135 -0
- package/lib/components/Button/index.d.ts +2 -0
- package/lib/components/Button/index.js +1 -0
- package/lib/components/Cabecalho/Cabecalho.d.ts +8 -0
- package/lib/components/Cabecalho/Cabecalho.js +245 -0
- package/lib/components/Cabecalho/index.d.ts +2 -0
- package/lib/components/Cabecalho/index.js +1 -0
- package/lib/components/Calendar/Calendar.d.ts +8 -0
- package/lib/components/Calendar/Calendar.js +156 -0
- package/lib/components/Calendar/index.d.ts +2 -0
- package/lib/components/Calendar/index.js +1 -0
- package/lib/components/CartaoUsuario/CartaoUsuario.d.ts +9 -0
- package/lib/components/CartaoUsuario/CartaoUsuario.js +108 -0
- package/lib/components/CartaoUsuario/index.d.ts +2 -0
- package/lib/components/CartaoUsuario/index.js +1 -0
- package/lib/components/Collapse/Collapse.d.ts +60 -0
- package/lib/components/Collapse/Collapse.js +317 -0
- package/lib/components/Collapse/index.d.ts +3 -0
- package/lib/components/Collapse/index.js +1 -0
- package/lib/components/Compartilhar/Compartilhar.d.ts +7 -0
- package/lib/components/Compartilhar/Compartilhar.js +314 -0
- package/lib/components/Compartilhar/index.d.ts +2 -0
- package/lib/components/Compartilhar/index.js +1 -0
- package/lib/components/ConfirmModal/BasicModal.tsx +63 -0
- package/lib/components/ConfirmModal/ModalProvider.tsx +81 -0
- package/lib/components/ConfirmModal/WrapperModal.tsx +33 -0
- package/lib/components/ConfirmModal/index.d.ts +20 -0
- package/lib/components/ConfirmModal/index.js +8 -0
- package/lib/components/DropArea/DropArea.d.ts +21 -0
- package/lib/components/DropArea/DropArea.js +90 -0
- package/lib/components/DropArea/Html5FileSelector.js +164 -0
- package/lib/components/DropArea/index.d.ts +2 -0
- package/lib/components/DropArea/index.js +1 -0
- package/lib/components/Editor/Events.ts +83 -0
- package/lib/components/Editor/ScriptLoader.ts +96 -0
- package/lib/components/Editor/TinyMCE.ts +19 -0
- package/lib/components/Editor/Utils.ts +95 -0
- package/lib/components/Editor/components/Editor.tsx +375 -0
- package/lib/components/Editor/components/EditorPropTypes.ts +106 -0
- package/lib/components/Editor/index.tsx +11 -0
- package/lib/components/Editor/skins/content/dark/content.css +72 -0
- package/lib/components/Editor/skins/content/dark/content.min.css +8 -0
- package/lib/components/Editor/skins/content/dark/content.min.css.map +1 -0
- package/lib/components/Editor/skins/content/default/content.css +67 -0
- package/lib/components/Editor/skins/content/default/content.min.css +8 -0
- package/lib/components/Editor/skins/content/default/content.min.css.map +1 -0
- package/lib/components/Editor/skins/content/document/content.css +72 -0
- package/lib/components/Editor/skins/content/document/content.min.css +8 -0
- package/lib/components/Editor/skins/content/document/content.min.css.map +1 -0
- package/lib/components/Editor/skins/content/writer/content.css +68 -0
- package/lib/components/Editor/skins/content/writer/content.min.css +8 -0
- package/lib/components/Editor/skins/content/writer/content.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/content.css +714 -0
- package/lib/components/Editor/skins/ui/dark/content.inline.css +726 -0
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/content.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/content.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/content.mobile.css +29 -0
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/dark/skin.css +3034 -0
- package/lib/components/Editor/skins/ui/dark/skin.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/skin.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/skin.mobile.css +673 -0
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.css +37 -0
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/content.css +732 -0
- package/lib/components/Editor/skins/ui/default/content.inline.css +726 -0
- package/lib/components/Editor/skins/ui/default/content.inline.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/content.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/content.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/content.mobile.css +29 -0
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/default/skin.css +3034 -0
- package/lib/components/Editor/skins/ui/default/skin.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/skin.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/skin.mobile.css +673 -0
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.css +37 -0
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +1641 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +8 -0
- package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +1 -0
- package/lib/components/Editor/tinymce/README.md +63 -0
- package/lib/components/Editor/tinymce/icons/default/icons.js +172 -0
- package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -0
- package/lib/components/Editor/tinymce/jquery.tinymce.min.js +92 -0
- package/lib/components/Editor/tinymce/langs/README.md +3 -0
- package/lib/components/Editor/tinymce/langs/pt_BR.js +419 -0
- package/lib/components/Editor/tinymce/license.txt +504 -0
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +280 -0
- package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +216 -0
- package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +185 -0
- package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +171 -0
- package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +212 -0
- package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +99 -0
- package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +1706 -0
- package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/code/plugin.js +92 -0
- package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2332 -0
- package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +9 -0
- package/{dist/components/Editor/tinymce/plugins/textcolor → lib/components/Editor/tinymce/plugins/colorpicker}/plugin.js +8 -5
- package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +9 -0
- package/{dist/components/Editor/tinymce/plugins/colorpicker → lib/components/Editor/tinymce/plugins/contextmenu}/plugin.js +8 -5
- package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +320 -0
- package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +9424 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +9423 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +605 -0
- package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +544 -0
- package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +979 -0
- package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/help/plugin.js +873 -0
- package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/hr/plugin.js +46 -0
- package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/image/plugin.js +1661 -0
- package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +1354 -0
- package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +343 -0
- package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +177 -0
- package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +199 -0
- package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/link/plugin.js +1287 -0
- package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/lists/plugin.js +2286 -0
- package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/media/plugin.js +1382 -0
- package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +101 -0
- package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +117 -0
- package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +105 -0
- package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/paste/plugin.js +1764 -0
- package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/preview/plugin.js +127 -0
- package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/print/plugin.js +53 -0
- package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +489 -0
- package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/save/plugin.js +119 -0
- package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +1163 -0
- package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +731 -0
- package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +129 -0
- package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/table/plugin.js +10938 -0
- package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/template/plugin.js +577 -0
- package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +9 -0
- package/{dist/components/Editor/tinymce/plugins/contextmenu → lib/components/Editor/tinymce/plugins/textcolor}/plugin.js +8 -5
- package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +1394 -0
- package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/toc/plugin.js +236 -0
- package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +104 -0
- package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +541 -0
- package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +416 -0
- package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +9 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.css +72 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.css +67 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.css +72 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.css +68 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +732 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +726 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +29 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +3034 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +37 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +714 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +726 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +3034 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +1 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +8 -0
- package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -0
- package/lib/components/Editor/tinymce/themes/mobile/theme.js +13587 -0
- package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +9 -0
- package/lib/components/Editor/tinymce/themes/silver/theme.js +32480 -0
- package/lib/components/Editor/tinymce/themes/silver/theme.min.js +9 -0
- package/lib/components/Editor/tinymce/tinymce.d.ts +2963 -0
- package/lib/components/Editor/tinymce/tinymce.js +30106 -0
- package/lib/components/Editor/tinymce/tinymce.min.js +30106 -0
- package/lib/components/FilePreparer/FilePreparer.d.ts +26 -0
- package/lib/components/FilePreparer/FilePreparer.js +247 -0
- package/lib/components/FilePreparer/index.d.ts +2 -0
- package/lib/components/FilePreparer/index.js +1 -0
- package/lib/components/FileUploader/FileUploader.d.ts +9 -0
- package/lib/components/FileUploader/FileUploader.js +318 -0
- package/lib/components/FileUploader/index.d.ts +2 -0
- package/lib/components/FileUploader/index.js +1 -0
- package/lib/components/FormVisualizer/FormVisualizer.d.ts +92 -0
- package/lib/components/FormVisualizer/FormVisualizer.js +289 -0
- package/lib/components/FormVisualizer/index.d.ts +2 -0
- package/lib/components/FormVisualizer/index.js +1 -0
- package/lib/components/Highlight/Highlight.d.ts +7 -0
- package/lib/components/Highlight/Highlight.js +51 -0
- package/lib/components/Highlight/index.d.ts +2 -0
- package/lib/components/Highlight/index.js +1 -0
- package/lib/components/ImageResize/ImageResize.d.ts +28 -0
- package/lib/components/ImageResize/ImageResize.js +479 -0
- package/lib/components/ImageResize/index.d.ts +2 -0
- package/lib/components/ImageResize/index.js +1 -0
- package/lib/components/ImageResizeButton/ImageResizeButton.d.ts +26 -0
- package/lib/components/ImageResizeButton/ImageResizeButton.js +65 -0
- package/lib/components/ImageResizeButton/index.d.ts +2 -0
- package/lib/components/ImageResizeButton/index.js +1 -0
- package/lib/components/Input/Input.d.ts +8 -0
- package/lib/components/Input/Input.js +353 -0
- package/lib/components/Input/index.d.ts +2 -0
- package/lib/components/Input/index.js +1 -0
- package/lib/components/InputTags/InputTags.d.ts +8 -0
- package/lib/components/InputTags/InputTags.js +94 -0
- package/lib/components/InputTags/index.d.ts +2 -0
- package/lib/components/InputTags/index.js +1 -0
- package/lib/components/ListSelect/ListSelect.d.ts +8 -0
- package/lib/components/ListSelect/ListSelect.js +94 -0
- package/lib/components/ListSelect/index.d.ts +2 -0
- package/lib/components/ListSelect/index.js +1 -0
- package/lib/components/MaterialButton/MaterialButton.d.ts +13 -0
- package/lib/components/MaterialButton/MaterialButton.js +177 -0
- package/lib/components/MaterialButton/index.d.ts +2 -0
- package/lib/components/MaterialButton/index.js +1 -0
- package/lib/components/MenuBar/MenuBar.d.ts +8 -0
- package/lib/components/MenuBar/MenuBar.js +139 -0
- package/lib/components/MenuBar/index.d.ts +2 -0
- package/lib/components/MenuBar/index.js +1 -0
- package/lib/components/MonthPicker/MonthPicker.d.ts +8 -0
- package/lib/components/MonthPicker/MonthPicker.js +313 -0
- package/lib/components/MonthPicker/index.d.ts +2 -0
- package/lib/components/MonthPicker/index.js +1 -0
- package/lib/components/MultipleSelect/MultipleSelect.d.ts +8 -0
- package/lib/components/MultipleSelect/MultipleSelect.js +106 -0
- package/lib/components/MultipleSelect/index.d.ts +2 -0
- package/lib/components/MultipleSelect/index.js +1 -0
- package/lib/components/OtpInput/OtpInput.tsx +244 -0
- package/lib/components/OtpInput/index.d.ts +2 -0
- package/lib/components/OtpInput/index.js +1 -0
- package/lib/components/OutputText/OutputText.d.ts +8 -0
- package/lib/components/OutputText/OutputText.js +57 -0
- package/lib/components/OutputText/index.d.ts +2 -0
- package/lib/components/OutputText/index.js +1 -0
- package/lib/components/Pagination/Pagination.d.ts +8 -0
- package/lib/components/Pagination/Pagination.js +32 -0
- package/lib/components/Pagination/index.d.ts +2 -0
- package/lib/components/Pagination/index.js +1 -0
- package/lib/components/Programa/Programa.d.ts +31 -0
- package/lib/components/Programa/Programa.js +172 -0
- package/lib/components/Programa/index.d.ts +2 -0
- package/lib/components/Programa/index.js +1 -0
- package/lib/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/lib/components/ProgressBar/ProgressBar.js +71 -0
- package/lib/components/ProgressBar/index.d.ts +2 -0
- package/lib/components/ProgressBar/index.js +1 -0
- package/lib/components/Select/Select.d.ts +8 -0
- package/lib/components/Select/Select.js +117 -0
- package/lib/components/Select/index.d.ts +2 -0
- package/lib/components/Select/index.js +1 -0
- package/lib/components/SimpleTable/SimpleTable.d.ts +13 -0
- package/lib/components/SimpleTable/SimpleTable.js +504 -0
- package/lib/components/SimpleTable/index.d.ts +2 -0
- package/lib/components/SimpleTable/index.js +2 -0
- package/lib/components/Stepper/Stepper.d.ts +54 -0
- package/lib/components/Stepper/Stepper.js +222 -0
- package/lib/components/Stepper/index.d.ts +2 -0
- package/lib/components/Stepper/index.js +1 -0
- package/lib/components/TablePicker/TablePicker.d.ts +8 -0
- package/lib/components/TablePicker/TablePicker.js +238 -0
- package/lib/components/TablePicker/index.d.ts +2 -0
- package/lib/components/TablePicker/index.js +1 -0
- package/lib/components/Tabs/Tabs.d.ts +8 -0
- package/lib/components/Tabs/Tabs.js +59 -0
- package/lib/components/Tabs/index.d.ts +2 -0
- package/lib/components/Tabs/index.js +1 -0
- package/lib/components/TextArea/TextArea.d.ts +8 -0
- package/lib/components/TextArea/TextArea.js +123 -0
- package/lib/components/TextArea/index.d.ts +2 -0
- package/lib/components/TextArea/index.js +1 -0
- package/lib/components/ThreadLog/ThreadLog.d.ts +8 -0
- package/lib/components/ThreadLog/ThreadLog.js +189 -0
- package/lib/components/ThreadLog/index.d.ts +2 -0
- package/lib/components/ThreadLog/index.js +1 -0
- package/lib/components/UtilAutoComplete/UtilAutoComplete.d.ts +93 -0
- package/lib/components/UtilAutoComplete/UtilAutoComplete.js +130 -0
- package/lib/components/UtilAutoComplete/index.d.ts +2 -0
- package/lib/components/UtilAutoComplete/index.js +1 -0
- package/lib/components/index.d.ts +148 -0
- package/lib/components/index.js +146 -0
- package/lib/fieldsRedux/createField.d.ts +8 -0
- package/lib/fieldsRedux/createField.js +120 -0
- package/lib/fieldsRedux/fieldsRedux.d.ts +71 -0
- package/lib/fieldsRedux/fieldsRedux.js +391 -0
- package/lib/fieldsRedux/index.d.ts +4 -0
- package/lib/fieldsRedux/index.js +5 -0
- package/lib/fieldsRedux/passFields.d.ts +5 -0
- package/lib/fieldsRedux/passFields.js +76 -0
- package/lib/reducers/argous.ts +103 -0
- package/lib/reducers/index.ts +6 -0
- package/lib/types.d.ts +144 -0
- package/lib/utils/api.ts +153 -0
- package/lib/utils/config.ts +12 -0
- package/lib/utils/date.ts +63 -0
- package/lib/utils/index.ts +314 -0
- package/lib/utils/rippleEffect.js +211 -0
- package/lib/utils/store.ts +11 -0
- package/lib/utils/xmlToJson.js +117 -0
- package/package.json +1 -1
- package/dist/components/ArgousComplexTableBody/dnd/Container.d.ts +0 -55
- package/dist/components/ArgousComplexTableBody/dnd/Container.js +0 -173
- package/dist/components/ArgousComplexTableBody/dnd/Draggable.d.ts +0 -14
- package/dist/components/ArgousComplexTableBody/dnd/Draggable.js +0 -73
- package/dist/components/ArgousComplexTableBody/dnd/index.d.ts +0 -2
- package/dist/components/ArgousComplexTableBody/dnd/index.js +0 -10
- package/dist/components/ConfirmModal/useModal.d.ts +0 -2
- package/dist/components/ConfirmModal/useModal.js +0 -9
- package/dist/components/DropArea/worker.d.ts +0 -1
- package/dist/components/DropArea/worker.js +0 -55
- package/dist/components/Editor/tinymce/icons/default/icons.d.ts +0 -0
- package/dist/components/Editor/tinymce/icons/default/icons.js +0 -173
- package/dist/components/Editor/tinymce/plugins/advlist/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/advlist/plugin.js +0 -271
- package/dist/components/Editor/tinymce/plugins/anchor/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/anchor/plugin.js +0 -207
- package/dist/components/Editor/tinymce/plugins/autolink/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/autolink/plugin.js +0 -187
- package/dist/components/Editor/tinymce/plugins/autoresize/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/autoresize/plugin.js +0 -163
- package/dist/components/Editor/tinymce/plugins/autosave/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/autosave/plugin.js +0 -199
- package/dist/components/Editor/tinymce/plugins/bbcode/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -94
- package/dist/components/Editor/tinymce/plugins/charmap/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/charmap/plugin.js +0 -1691
- package/dist/components/Editor/tinymce/plugins/code/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/code/plugin.js +0 -85
- package/dist/components/Editor/tinymce/plugins/codesample/plugin.js +0 -2331
- package/dist/components/Editor/tinymce/plugins/colorpicker/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/contextmenu/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/directionality/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/directionality/plugin.js +0 -300
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojiimages.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +0 -9425
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojis.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/emoticons/js/emojis.js +0 -9424
- package/dist/components/Editor/tinymce/plugins/emoticons/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/emoticons/plugin.js +0 -585
- package/dist/components/Editor/tinymce/plugins/fullpage/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -539
- package/dist/components/Editor/tinymce/plugins/fullscreen/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/fullscreen/plugin.js +0 -962
- package/dist/components/Editor/tinymce/plugins/help/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/help/plugin.js +0 -850
- package/dist/components/Editor/tinymce/plugins/hr/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/hr/plugin.js +0 -41
- package/dist/components/Editor/tinymce/plugins/image/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/image/plugin.js +0 -1673
- package/dist/components/Editor/tinymce/plugins/imagetools/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1335
- package/dist/components/Editor/tinymce/plugins/importcss/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/importcss/plugin.js +0 -346
- package/dist/components/Editor/tinymce/plugins/insertdatetime/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/insertdatetime/plugin.js +0 -171
- package/dist/components/Editor/tinymce/plugins/legacyoutput/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -193
- package/dist/components/Editor/tinymce/plugins/link/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/link/plugin.js +0 -1282
- package/dist/components/Editor/tinymce/plugins/lists/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/lists/plugin.js +0 -2256
- package/dist/components/Editor/tinymce/plugins/media/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/media/plugin.js +0 -1374
- package/dist/components/Editor/tinymce/plugins/nonbreaking/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/nonbreaking/plugin.js +0 -93
- package/dist/components/Editor/tinymce/plugins/noneditable/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -114
- package/dist/components/Editor/tinymce/plugins/pagebreak/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/pagebreak/plugin.js +0 -96
- package/dist/components/Editor/tinymce/plugins/paste/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/paste/plugin.js +0 -1747
- package/dist/components/Editor/tinymce/plugins/preview/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/preview/plugin.js +0 -119
- package/dist/components/Editor/tinymce/plugins/print/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/print/plugin.js +0 -48
- package/dist/components/Editor/tinymce/plugins/quickbars/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/quickbars/plugin.js +0 -475
- package/dist/components/Editor/tinymce/plugins/save/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/save/plugin.js +0 -112
- package/dist/components/Editor/tinymce/plugins/searchreplace/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/searchreplace/plugin.js +0 -1149
- package/dist/components/Editor/tinymce/plugins/spellchecker/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -723
- package/dist/components/Editor/tinymce/plugins/tabfocus/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -124
- package/dist/components/Editor/tinymce/plugins/table/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/table/plugin.js +0 -10853
- package/dist/components/Editor/tinymce/plugins/template/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/template/plugin.js +0 -561
- package/dist/components/Editor/tinymce/plugins/textcolor/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/textpattern/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1393
- package/dist/components/Editor/tinymce/plugins/toc/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/toc/plugin.js +0 -227
- package/dist/components/Editor/tinymce/plugins/visualblocks/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/visualblocks/plugin.js +0 -94
- package/dist/components/Editor/tinymce/plugins/visualchars/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/visualchars/plugin.js +0 -521
- package/dist/components/Editor/tinymce/plugins/wordcount/plugin.d.ts +0 -0
- package/dist/components/Editor/tinymce/plugins/wordcount/plugin.js +0 -397
- package/dist/components/Editor/tinymce/themes/mobile/theme.js +0 -13348
- package/dist/components/Editor/tinymce/themes/silver/theme.js +0 -32028
- package/dist/components/Editor/tinymce/tinymce.js +0 -30486
- package/dist/components/FilePreparer/worker.d.ts +0 -2
- package/dist/components/FilePreparer/worker.js +0 -31
- package/dist/convertReacticons.d.ts +0 -1
- package/dist/convertReacticons.js +0 -62
- package/dist/utils/Fields.d.ts +0 -0
- package/dist/utils/Fields.js +0 -1
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { ArgousComplexPagination, ArgousComplexTableHead, ArgousComplexTableToolbar, ArgousComplexTableBody } from '../';
|
|
2
|
+
import { getField } from '../../fieldsRedux';
|
|
3
|
+
import { serverAction } from '../../utils/api';
|
|
4
|
+
import { Table, TableContainer, Paper, ClickAwayListener, makeStyles } from '@material-ui/core';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { isArray, isEqual, isFunction } from 'lodash';
|
|
7
|
+
import moment from 'moment';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import React, { useState, useEffect, forwardRef, useImperativeHandle, useMemo, createContext, useReducer, useCallback, memo } from 'react';
|
|
10
|
+
|
|
11
|
+
const useStyles = makeStyles({
|
|
12
|
+
root: {
|
|
13
|
+
'& [class*="smooth-dnd-container"]': {
|
|
14
|
+
display: 'table-row-group'
|
|
15
|
+
},
|
|
16
|
+
'& [class*="smooth-dnd-draggable-wrapper"]': {
|
|
17
|
+
display: 'table-row !important'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const TableContext = createContext();
|
|
23
|
+
|
|
24
|
+
const ehData = valor => {
|
|
25
|
+
const retorno = (format) => moment(valor, format).format('YYYYMMDDHHmmss');
|
|
26
|
+
if (/[0-9]{2}\/[0-9]{2}\/[0-9]{4}/.test(valor)) return retorno('DD/MM/YYYY');
|
|
27
|
+
if (/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}/.test(valor)) return retorno('DD/MM/YYYY HH:mm');
|
|
28
|
+
if (/\d{2}\/\d{2}\/\d{4} \d{2}:\d{2}:\d{2}/.test(valor)) return retorno('DD/MM/YYYY HH:mm:ss');
|
|
29
|
+
if (/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(.\d)*/.test(valor)) return retorno('YYYY-MM-DD HH:mm:ss');
|
|
30
|
+
return valor;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
function descendingComparator(a, b, orderBy) {
|
|
34
|
+
const aO = ehData(a[orderBy]);
|
|
35
|
+
const bO = ehData(b[orderBy]);
|
|
36
|
+
if (bO < aO) return -1;
|
|
37
|
+
if (bO > aO) return 1;
|
|
38
|
+
return 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function getComparator(order, orderBy) {
|
|
42
|
+
return order === 'desc'
|
|
43
|
+
? (a, b) => descendingComparator(a, b, orderBy)
|
|
44
|
+
: (a, b) => -descendingComparator(a, b, orderBy);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function stableSort(array, comparator, line) {
|
|
48
|
+
const stabilizedThis = array.map((el, index) => [el, line(el), index]);
|
|
49
|
+
stabilizedThis.sort((a, b) => {
|
|
50
|
+
const order = comparator(a[1], b[1]);
|
|
51
|
+
if (order !== 0) return order;
|
|
52
|
+
return a[2] - b[2];
|
|
53
|
+
});
|
|
54
|
+
return stabilizedThis.map((el) => el[0]);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const reducer = (state, action) => {
|
|
58
|
+
switch (action.type) {
|
|
59
|
+
case 'setSelected':
|
|
60
|
+
return {
|
|
61
|
+
...state,
|
|
62
|
+
selected: action.value
|
|
63
|
+
};
|
|
64
|
+
case 'setPage':
|
|
65
|
+
return {
|
|
66
|
+
...state,
|
|
67
|
+
page: action.value
|
|
68
|
+
};
|
|
69
|
+
case 'decremmentPage':
|
|
70
|
+
return {
|
|
71
|
+
...state,
|
|
72
|
+
page: state.page === 0 ? 0 : state.page - 1
|
|
73
|
+
};
|
|
74
|
+
case 'setRowsPerPage':
|
|
75
|
+
return {
|
|
76
|
+
...state,
|
|
77
|
+
rowsPerPage: action.value
|
|
78
|
+
};
|
|
79
|
+
case 'setOrder':
|
|
80
|
+
return {
|
|
81
|
+
...state,
|
|
82
|
+
order: action.value
|
|
83
|
+
};
|
|
84
|
+
case 'setOrderBy':
|
|
85
|
+
return {
|
|
86
|
+
...state,
|
|
87
|
+
orderBy: action.value
|
|
88
|
+
};
|
|
89
|
+
case 'setFilter':
|
|
90
|
+
return {
|
|
91
|
+
...state,
|
|
92
|
+
filter: action.value
|
|
93
|
+
};
|
|
94
|
+
case 'setOpen':
|
|
95
|
+
return {
|
|
96
|
+
...state,
|
|
97
|
+
open: action.value
|
|
98
|
+
};
|
|
99
|
+
case 'setLoading':
|
|
100
|
+
return {
|
|
101
|
+
...state,
|
|
102
|
+
loading: action.value
|
|
103
|
+
};
|
|
104
|
+
case 'mount':
|
|
105
|
+
if (!action.value) return state;
|
|
106
|
+
return action.value;
|
|
107
|
+
default:
|
|
108
|
+
return state;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const initialState = (defaultRowsPerPage) => ({
|
|
113
|
+
selected: [],
|
|
114
|
+
page: 0,
|
|
115
|
+
rowsPerPage: defaultRowsPerPage,
|
|
116
|
+
order: 'asc',
|
|
117
|
+
orderBy: -1,
|
|
118
|
+
filter: '',
|
|
119
|
+
open: undefined,
|
|
120
|
+
loading: false
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
const ArgousComplexTable = forwardRef(({
|
|
124
|
+
ToolbarComponent = ArgousComplexTableToolbar,
|
|
125
|
+
HeadComponent = ArgousComplexTableHead,
|
|
126
|
+
BodyComponent = ArgousComplexTableBody,
|
|
127
|
+
PaginationComponent = ArgousComplexPagination,
|
|
128
|
+
FooterComponent = undefined,
|
|
129
|
+
footerProps,
|
|
130
|
+
dados,
|
|
131
|
+
head = [],
|
|
132
|
+
line = i => i,
|
|
133
|
+
actions,
|
|
134
|
+
title,
|
|
135
|
+
defaultRowsPerPage = 10,
|
|
136
|
+
rowsPerPageOptions = [10, 25, 50],
|
|
137
|
+
enableCheck: checkEnabled,
|
|
138
|
+
disableCheckIf,
|
|
139
|
+
showCount,
|
|
140
|
+
lineStyle,
|
|
141
|
+
lineClass = () => undefined,
|
|
142
|
+
onClick,
|
|
143
|
+
onDoubleClick,
|
|
144
|
+
children = undefined,
|
|
145
|
+
style,
|
|
146
|
+
className,
|
|
147
|
+
columnStyles,
|
|
148
|
+
headerColumnStyles,
|
|
149
|
+
columnOptions,
|
|
150
|
+
disableFilter,
|
|
151
|
+
filterLabel = 'Filtro',
|
|
152
|
+
indexToSelect = 0,
|
|
153
|
+
disableSorting = [],
|
|
154
|
+
size = 'small',
|
|
155
|
+
onOpen,
|
|
156
|
+
lineTitle,
|
|
157
|
+
onClose,
|
|
158
|
+
method,
|
|
159
|
+
methodPrms,
|
|
160
|
+
methodResultList = 'lista',
|
|
161
|
+
onMethodResponse,
|
|
162
|
+
field,
|
|
163
|
+
fixedToolbar,
|
|
164
|
+
onSelect,
|
|
165
|
+
customKey,
|
|
166
|
+
columnProps = () => '',
|
|
167
|
+
rowProps = () => '',
|
|
168
|
+
savedState = {},
|
|
169
|
+
containerProps,
|
|
170
|
+
onClickAway = () => undefined,
|
|
171
|
+
enableCheckIfSelected,
|
|
172
|
+
enableDrag,
|
|
173
|
+
onDrop,
|
|
174
|
+
tableProps,
|
|
175
|
+
toolbarProps
|
|
176
|
+
}, ref) => {
|
|
177
|
+
const classes = useStyles();
|
|
178
|
+
const [state, dispatch] = useReducer(reducer, initialState(defaultRowsPerPage));
|
|
179
|
+
const memoState = useMemo(() => ({ ...state, dispatch }), [state, dispatch]);
|
|
180
|
+
const { selected, page, rowsPerPage, order, orderBy, filter, open } = memoState;
|
|
181
|
+
|
|
182
|
+
const [lista, setLista] = useState(dados/*.map(linha => isArray(linha) ? linha : Object.values(linha))*/ || []);
|
|
183
|
+
const [ctrlPgn, setCtrlPgn] = useState({ qtRegs: defaultRowsPerPage, pgAtl: 1 });
|
|
184
|
+
const { qtRegs, pgAtl, ordCols } = ctrlPgn;
|
|
185
|
+
|
|
186
|
+
const enableCheck = checkEnabled || (enableCheckIfSelected && !!selected.length);
|
|
187
|
+
|
|
188
|
+
useEffect(() => {
|
|
189
|
+
dispatch({ type: 'mount', value: savedState.current });
|
|
190
|
+
}, []);
|
|
191
|
+
|
|
192
|
+
useEffect(() => {
|
|
193
|
+
return () => savedState.current = state;
|
|
194
|
+
}, [state]);
|
|
195
|
+
|
|
196
|
+
useEffect(() => {
|
|
197
|
+
if (isArray(dados)) setLista(dados/*.map(linha => isArray(linha) ? linha : Object.values(linha))*/ || []);
|
|
198
|
+
}, [dados]);
|
|
199
|
+
|
|
200
|
+
const retornaAcao = useCallback((pgAtl, page) => {
|
|
201
|
+
if (page === pgAtl) return undefined;
|
|
202
|
+
else if (page === pgAtl + 1) return 'N';
|
|
203
|
+
else if (page === pgAtl - 1) return 'P';
|
|
204
|
+
else if (page === ctrlPgn.recordCount) return 'L';
|
|
205
|
+
else if (page === 0) return 'F';
|
|
206
|
+
return `S=${page}`;
|
|
207
|
+
}, [ctrlPgn.recordCount]);
|
|
208
|
+
|
|
209
|
+
const buscaMetodo = useCallback(async () => {
|
|
210
|
+
if (!method) return;
|
|
211
|
+
dispatch({ type: 'setLoading', value: true });
|
|
212
|
+
const res = await serverAction(method, {
|
|
213
|
+
ctrlPgn: {
|
|
214
|
+
qtRegs, pgAtl,
|
|
215
|
+
acao: retornaAcao(ctrlPgn.pgAtl, page + 1),
|
|
216
|
+
tpOrdem: orderBy >= 0 ? (order === 'asc' ? 'A' : 'D') : undefined,
|
|
217
|
+
indOrdem: orderBy >= 0 ? orderBy : undefined
|
|
218
|
+
}, ...methodPrms
|
|
219
|
+
}, true);
|
|
220
|
+
onMethodResponse && onMethodResponse(res);
|
|
221
|
+
if (res.status) {
|
|
222
|
+
setCtrlPgn({ ...res.ctrlPgn, recordCount: res.ctrlPgn?.recordCount || res[methodResultList]?.length < res.ctrlPgn?.qtRegs ? res[methodResultList]?.length : res.ctrlPgn?.qtPaginas * res.ctrlPgn?.qtRegs });
|
|
223
|
+
setLista(res[methodResultList] || []);
|
|
224
|
+
}
|
|
225
|
+
dispatch({ type: 'setLoading', value: false });
|
|
226
|
+
}, [method, qtRegs, pgAtl, order, orderBy, retornaAcao, ctrlPgn.pgAtl, page, methodPrms, methodResultList]);
|
|
227
|
+
|
|
228
|
+
useEffect(() => {
|
|
229
|
+
buscaMetodo();
|
|
230
|
+
}, [buscaMetodo]);
|
|
231
|
+
|
|
232
|
+
const fielValue = useMemo(() => /*isArray(getField(field, 'value')) ? */getField(field, 'value')/*?.map(item => isArray(item) ? item : Object.values(item)) : []*/, [field]);
|
|
233
|
+
|
|
234
|
+
useEffect(() => {
|
|
235
|
+
if (field && !isEqual(lista, fielValue)) setLista(fielValue || []);
|
|
236
|
+
}, [field, lista, fielValue]);
|
|
237
|
+
|
|
238
|
+
useEffect(() => {
|
|
239
|
+
if (method || field) return;
|
|
240
|
+
if (isArray(lista) && lista.length > 0 && page === Math.ceil(method ? ctrlPgn.recordCount : lista.length / parseInt(rowsPerPage, 10))) dispatch({ type: 'decremmentPage' });
|
|
241
|
+
}, [page, method, lista.length, rowsPerPage, ctrlPgn.recordCount, lista, field]);
|
|
242
|
+
|
|
243
|
+
useEffect(() => dispatch({ type: 'setSelected', value: [] }), [lista]);
|
|
244
|
+
|
|
245
|
+
useEffect(() => {
|
|
246
|
+
if (onSelect) onSelect(selected);
|
|
247
|
+
}, [selected]);
|
|
248
|
+
|
|
249
|
+
const dadosNaoCortados = useMemo(() => {
|
|
250
|
+
if (method) return lista || [];
|
|
251
|
+
if (isArray(lista) && lista.length > 0) return stableSort(lista, getComparator(order, orderBy), line)
|
|
252
|
+
.filter(linha => isArray(line(linha)) ? line(linha).filter(item => filter ? new RegExp(`.*${filter}.*`, 'gi').test(item?.toString()) : true).length > 0 : true) || [];
|
|
253
|
+
return [];
|
|
254
|
+
}, [lista, filter, order, orderBy, method, line]);
|
|
255
|
+
|
|
256
|
+
const cortaDados = useCallback((dados) => dados
|
|
257
|
+
?.slice(defaultRowsPerPage === 0 ? (undefined) : page * rowsPerPage, defaultRowsPerPage === 0 ? (undefined) : page * rowsPerPage + rowsPerPage),
|
|
258
|
+
[page, rowsPerPage, defaultRowsPerPage]);
|
|
259
|
+
|
|
260
|
+
const dadosMostrados = useMemo(() => {
|
|
261
|
+
if (method) return lista || [];
|
|
262
|
+
return cortaDados(dadosNaoCortados) || [];
|
|
263
|
+
}, [method, lista, dadosNaoCortados, cortaDados]);
|
|
264
|
+
|
|
265
|
+
const handleOpenClose = useCallback((index) => {
|
|
266
|
+
if (index === open || (!index && index !== 0)) {
|
|
267
|
+
dispatch({ type: 'setOpen', value: undefined });
|
|
268
|
+
if (onClose && (index || open)) onClose({ linhaOriginal: dadosMostrados[index || open], linhaFormatada: line(dadosMostrados[index || open]) });
|
|
269
|
+
} else {
|
|
270
|
+
dispatch({ type: 'setOpen', value: index });
|
|
271
|
+
if (onOpen) onOpen({ linhaOriginal: dadosMostrados[index], linhaFormatada: line(dadosMostrados[index]) });
|
|
272
|
+
}
|
|
273
|
+
}, [open, onClose, onOpen, dadosMostrados, dispatch, line]);
|
|
274
|
+
|
|
275
|
+
useImperativeHandle(ref, () => ({
|
|
276
|
+
setOpen: index => handleOpenClose(index),
|
|
277
|
+
getOpen: dadosMostrados[open],
|
|
278
|
+
getSelected: selected,
|
|
279
|
+
setSelected: s => dispatch({ type: 'setSelected', value: isFunction(s) ? s(selected, dadosMostrados) : s }),
|
|
280
|
+
setLoading: value => dispatch({ type: 'setLoading', value })
|
|
281
|
+
}));
|
|
282
|
+
|
|
283
|
+
return (
|
|
284
|
+
<TableContext.Provider value={{ ...memoState, dadosMostrados, lista, indexToSelect, method }}>
|
|
285
|
+
<ClickAwayListener onClickAway={onClickAway}>
|
|
286
|
+
<TableContainer component={Paper} variant='outlined' style={style} {...containerProps} className={clsx(classes.root, className)}>
|
|
287
|
+
<ToolbarComponent
|
|
288
|
+
numSelected={selected.length}
|
|
289
|
+
disableFilter={disableFilter || !!method}
|
|
290
|
+
{...{ actions, title, selected, filter, filterLabel, lista, indexToSelect, fixedToolbar, ...toolbarProps }} />
|
|
291
|
+
<Table {...{ ...tableProps, size }}>
|
|
292
|
+
<HeadComponent
|
|
293
|
+
size={method ? ctrlPgn.recordCount : dadosNaoCortados.length}
|
|
294
|
+
numSelected={selected.length}
|
|
295
|
+
rowCount={(rowsPerPage > (method ? ctrlPgn.recordCount : dadosNaoCortados.length)) ? method ? ctrlPgn.recordCount : dadosNaoCortados.length : rowsPerPage || dadosNaoCortados.length}
|
|
296
|
+
{...{ head, order, orderBy, enableCheck, headerColumnStyles, disableSorting, ordCols, method, cortaDados, disableCheckIf, line, enableDrag }}
|
|
297
|
+
/>
|
|
298
|
+
<BodyComponent
|
|
299
|
+
{...{
|
|
300
|
+
children, line, lineStyle, lineTitle, handleOpenClose, lineClass, enableDrag,
|
|
301
|
+
enableCheck, columnStyles, head, columnOptions, columnProps, rowProps, onDrop,
|
|
302
|
+
onClick, onDoubleClick, indexToSelect, open, dadosMostrados, customKey, disableCheckIf
|
|
303
|
+
}}/>
|
|
304
|
+
{FooterComponent && <FooterComponent {...footerProps}/>}
|
|
305
|
+
</Table>
|
|
306
|
+
{rowsPerPageOptions !== 0 && Math.ceil(method ? ctrlPgn.recordCount : dadosNaoCortados.length / parseInt(rowsPerPageOptions[0], 10)) > 1 && (
|
|
307
|
+
<PaginationComponent
|
|
308
|
+
count={method ? ctrlPgn.recordCount : dadosNaoCortados.length}
|
|
309
|
+
onChangePage={(_, value) => {
|
|
310
|
+
dispatch({ type: 'setPage', value });
|
|
311
|
+
setCtrlPgn({ ...ctrlPgn, pgAtl: value + 1 });
|
|
312
|
+
}}
|
|
313
|
+
onChangeRowsPerPage={(e) => {
|
|
314
|
+
dispatch({ type: 'setRowsPerPage', value: parseInt(e.target.value, 10) });
|
|
315
|
+
dispatch({ type: 'setPage', value: 0 });
|
|
316
|
+
setCtrlPgn({ ...ctrlPgn, pgAtl: 1, qtRegs: parseInt(e.target.value, 10) });
|
|
317
|
+
}}
|
|
318
|
+
{...{ showCount, page, rowsPerPageOptions, rowsPerPage }} />
|
|
319
|
+
)}
|
|
320
|
+
</TableContainer>
|
|
321
|
+
</ClickAwayListener>
|
|
322
|
+
</TableContext.Provider>
|
|
323
|
+
);
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
ArgousComplexTable.propTypes = {
|
|
327
|
+
dados: PropTypes.array,
|
|
328
|
+
head: PropTypes.array,
|
|
329
|
+
line: PropTypes.func,
|
|
330
|
+
actions: PropTypes.array,
|
|
331
|
+
title: PropTypes.string,
|
|
332
|
+
defaultRowsPerPage: PropTypes.number,
|
|
333
|
+
rowsPerPageOptions: PropTypes.oneOfType([PropTypes.array, PropTypes.oneOf([0])]),
|
|
334
|
+
enableCheck: PropTypes.bool,
|
|
335
|
+
showCount: PropTypes.bool,
|
|
336
|
+
lineStyle: PropTypes.func,
|
|
337
|
+
lineTitle: PropTypes.string,
|
|
338
|
+
lineClass: PropTypes.func,
|
|
339
|
+
onClick: PropTypes.func,
|
|
340
|
+
children: PropTypes.func,
|
|
341
|
+
style: PropTypes.object,
|
|
342
|
+
className: PropTypes.string,
|
|
343
|
+
columnStyles: PropTypes.array,
|
|
344
|
+
headerColumnStyles: PropTypes.array,
|
|
345
|
+
columnOptions: PropTypes.array,
|
|
346
|
+
disableFilter: PropTypes.bool,
|
|
347
|
+
filterLabel: PropTypes.string,
|
|
348
|
+
indexToSelect: PropTypes.number,
|
|
349
|
+
disableSorting: PropTypes.array,
|
|
350
|
+
size: PropTypes.oneOf(['small', 'normal']),
|
|
351
|
+
onOpen: PropTypes.func,
|
|
352
|
+
onClose: PropTypes.func,
|
|
353
|
+
method: PropTypes.string,
|
|
354
|
+
methodPrms: PropTypes.object,
|
|
355
|
+
field: PropTypes.string,
|
|
356
|
+
fixedToolbar: PropTypes.bool,
|
|
357
|
+
onSelect: PropTypes.func
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
export default memo(ArgousComplexTable, isEqual);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ArgousComplexTable';
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { TableCellBaseProps, TableRowProps } from '@material-ui/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export declare interface ChildrenFunction {
|
|
5
|
+
/**
|
|
6
|
+
* Função sera executada quando for clicado em alguma linha, seu retorno aparecerá abaixo da linha clicada
|
|
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;
|