argous 1.2.132 → 1.2.136
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 +21 -0
- package/dist/components/AutoCompleteFavorites/AutoCompleteFavorites.js +331 -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/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,92 @@
|
|
|
1
|
+
import { CheckboxProps, OutlinedTextFieldProps, RadioProps, TypographyProps } from '@material-ui/core';
|
|
2
|
+
import { ClassNameMap } from '@material-ui/core/styles/withStyles';
|
|
3
|
+
import { AutocompleteProps } from '@material-ui/lab';
|
|
4
|
+
import { KeyboardDatePickerProps } from '@material-ui/pickers';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
|
|
7
|
+
interface TextField extends OutlinedTextFieldProps {
|
|
8
|
+
tp: 'text',
|
|
9
|
+
name: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface TextSelection extends AutocompleteProps<any, false, false, false> {
|
|
13
|
+
tp: 'text',
|
|
14
|
+
variant: 'select',
|
|
15
|
+
name: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface MultipleTextSelection extends AutocompleteProps<any, true, false, false> {
|
|
19
|
+
tp: 'text',
|
|
20
|
+
variant: 'select',
|
|
21
|
+
multiple: true
|
|
22
|
+
name: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface Label extends TypographyProps {
|
|
26
|
+
tp: 'label',
|
|
27
|
+
value: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface Data extends KeyboardDatePickerProps {
|
|
31
|
+
tp: 'data',
|
|
32
|
+
name: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface SelectionRadio extends RadioProps{
|
|
36
|
+
tp: 'checkBox',
|
|
37
|
+
multiple?: false,
|
|
38
|
+
name: string,
|
|
39
|
+
options: string[]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface SelectionCheckBox extends CheckboxProps{
|
|
43
|
+
tp: 'checkBox',
|
|
44
|
+
multiple: true
|
|
45
|
+
name: string,
|
|
46
|
+
options: string[]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface Coluna {
|
|
50
|
+
span: number,
|
|
51
|
+
className?: string,
|
|
52
|
+
style?: React.CSSProperties,
|
|
53
|
+
obj: TextField | TextSelection | MultipleTextSelection | Label | Data | SelectionRadio | SelectionCheckBox
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface Linha {
|
|
57
|
+
className?: string,
|
|
58
|
+
colunas: Coluna[],
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface Documento {
|
|
62
|
+
idDoc: number,
|
|
63
|
+
nome: string,
|
|
64
|
+
obrigatorio: boolean,
|
|
65
|
+
className?: string,
|
|
66
|
+
linhas: Linha[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface Fase {
|
|
70
|
+
idFase: number,
|
|
71
|
+
nome: string,
|
|
72
|
+
grupos?: number[],
|
|
73
|
+
usuarios?: number[],
|
|
74
|
+
className?: string,
|
|
75
|
+
documentos: Documento[]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface JSONInterface {
|
|
79
|
+
nome: string,
|
|
80
|
+
classes: ClassNameMap,
|
|
81
|
+
fases: Fase[],
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface FormVisualizerProps {
|
|
85
|
+
json: JSONInterface,
|
|
86
|
+
initialValues?: object[],
|
|
87
|
+
onChange?: (valores: object[]) => void
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare function FormVisualizer(props: FormVisualizerProps): JSX.Element
|
|
91
|
+
|
|
92
|
+
export default FormVisualizer;
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import Button from '../../components/MaterialButton';
|
|
2
|
+
import { useUpdateEffect } from '../../utils';
|
|
3
|
+
import { getStore } from '../../utils/store';
|
|
4
|
+
import MomentUtils from '@date-io/moment';
|
|
5
|
+
import { makeStyles, Grid, Paper, Card, Typography, TextField, FormLabel, FormGroup, FormControlLabel, Checkbox, RadioGroup, Radio, Dialog, DialogTitle, DialogContent, DialogActions, InputAdornment, IconButton } from '@material-ui/core';
|
|
6
|
+
import Autocomplete from '@material-ui/lab/Autocomplete';
|
|
7
|
+
import { KeyboardDatePicker, MuiPickersUtilsProvider } from '@material-ui/pickers';
|
|
8
|
+
import { isArray, isEqual, isString, set } from 'lodash';
|
|
9
|
+
import moment from 'moment';
|
|
10
|
+
import React, { useEffect, useState, useCallback, memo } from 'react';
|
|
11
|
+
import { MdVisibility, MdVisibilityOff } from 'react-icons/md';
|
|
12
|
+
import { useImmerReducer } from 'use-immer';
|
|
13
|
+
|
|
14
|
+
const reducer = (state = {}, { fase, documento, field, value }) => {
|
|
15
|
+
state[fase][documento][field] = value;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const init = (initialValues) => (initialState) => {
|
|
19
|
+
if (isArray(initialValues) && !isArray(initialValues[0])) {
|
|
20
|
+
return initialState.map((fase, i) => fase.map((_, j) => initialValues[i].documentos[j].values));
|
|
21
|
+
}
|
|
22
|
+
return initialValues;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const FormVisualizer = ({ json = {}, initialValues = [], onChange = () => '', disabled }) => {
|
|
26
|
+
const classes = makeStyles(json.classes)();
|
|
27
|
+
|
|
28
|
+
const [state, dispatch] = useImmerReducer(reducer, json.fases.map(fase => fase.documentos.map(documento => documento.linhas.reduce((a, linha) => ({ ...a, ...linha.colunas.reduce((ac, { obj }) => obj.name ? ({ ...ac, [obj.name]: obj.value }) : ac, {}) }), {}))), init(initialValues));
|
|
29
|
+
|
|
30
|
+
useUpdateEffect(() => {
|
|
31
|
+
onChange(state);
|
|
32
|
+
}, [state]);
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<Card style={{ padding: '10px' }}>
|
|
36
|
+
<Typography variant='h4' component='div' align='center' style={{ marginBottom: '10px' }}>{json.nome}</Typography>
|
|
37
|
+
{json.fases && json.fases.map((fase, i) => (
|
|
38
|
+
<Card key={fase.idFase} className={classes[fase.className]} style={{ ...fase.style, padding: '10px', margin: '10px' }}>
|
|
39
|
+
<Typography variant='h5' component='div' align='center' style={{ marginBottom: '5px' }}>{fase.nome}</Typography>
|
|
40
|
+
{fase.documentos.map((documento, j) => (
|
|
41
|
+
<Paper elevation={3} key={documento.idDoc} className={classes[documento.className]} style={{ ...documento.style, padding: '10px', margin: '10px' }}>
|
|
42
|
+
<Typography variant='h6' component='div' align='center' style={{ marginBottom: '5px' }}>{documento.nome}</Typography>
|
|
43
|
+
{documento.linhas.map((linha, k) => (
|
|
44
|
+
<Grid container spacing={linha.spacing || 2} key={`${k}`} className={classes[linha.className]} style={linha.style}>
|
|
45
|
+
{linha.colunas.map(({ span, className, style, obj: { name, ...obj } }, l) => (
|
|
46
|
+
<Grid item key={l} xs={span} className={classes[className]} style={style}>
|
|
47
|
+
{console.log(state[i][j][name])}
|
|
48
|
+
<RetornaComponente value={obj.value || state[i][j][name]} fase={i} documento={j} {...{ ...obj, name, dispatch, disabled }} />
|
|
49
|
+
</Grid>
|
|
50
|
+
))}
|
|
51
|
+
</Grid>
|
|
52
|
+
))}
|
|
53
|
+
</Paper>
|
|
54
|
+
))}
|
|
55
|
+
</Card>
|
|
56
|
+
))}
|
|
57
|
+
</Card>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export default FormVisualizer;
|
|
62
|
+
|
|
63
|
+
const RetornaComponente = memo(({ tp, name, dispatch, disabled, fase, documento, ...props }) => {
|
|
64
|
+
switch (tp) {
|
|
65
|
+
case 'label':
|
|
66
|
+
return <Label disabled={disabled} {...props} />;
|
|
67
|
+
case 'text':
|
|
68
|
+
return <Text disabled={disabled} dispatch={value => dispatch({ fase, documento, field: name, value })} {...props} />;
|
|
69
|
+
case 'data':
|
|
70
|
+
return <Data disabled={disabled} dispatch={value => dispatch({ fase, documento, field: name, value })} {...props} />;
|
|
71
|
+
case 'checkBox':
|
|
72
|
+
return <Selection disabled={disabled} dispatch={value => dispatch({ fase, documento, field: name, value })} {...props} />;
|
|
73
|
+
case 'assinatura':
|
|
74
|
+
return <Signature disabled={disabled} dispatch={value => dispatch({ fase, documento, field: name, value })} {...props} />;
|
|
75
|
+
default:
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}, isEqual);
|
|
79
|
+
|
|
80
|
+
const Label = ({ className, style, value, ...props }) => {
|
|
81
|
+
return <Typography {...{ className, style, ...props }}>{value}</Typography>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const useStyles = makeStyles({
|
|
85
|
+
textArea: {
|
|
86
|
+
'& textarea': {
|
|
87
|
+
resize: 'vertical',
|
|
88
|
+
minHeight: '50px'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
const Text = ({ variant, label, multiple, className, style, options, value, dispatch, path, ...props }) => {
|
|
94
|
+
const classes = useStyles();
|
|
95
|
+
if (variant === 'select') return (
|
|
96
|
+
<Autocomplete
|
|
97
|
+
{...{ multiple, options }}
|
|
98
|
+
defaultValue={value}
|
|
99
|
+
limitTags={1}
|
|
100
|
+
disableCloseOnSelect={multiple}
|
|
101
|
+
disablePortal
|
|
102
|
+
closeText='Fechar'
|
|
103
|
+
clearText='Limpar'
|
|
104
|
+
openText='Abrir'
|
|
105
|
+
onChange={(_e, value_) => {
|
|
106
|
+
dispatch(value_);
|
|
107
|
+
}}
|
|
108
|
+
{...props}
|
|
109
|
+
renderInput={params => (
|
|
110
|
+
<TextField
|
|
111
|
+
variant='outlined'
|
|
112
|
+
margin='dense' fullWidth
|
|
113
|
+
{...{ label, style, className }}{...params}
|
|
114
|
+
/>
|
|
115
|
+
)}
|
|
116
|
+
/>
|
|
117
|
+
);
|
|
118
|
+
return (
|
|
119
|
+
<TextField
|
|
120
|
+
className={`${classes.textArea} mostraSpinner ${className}`}
|
|
121
|
+
variant='outlined' margin='dense'
|
|
122
|
+
fullWidth multiline={variant === 'multiline'}
|
|
123
|
+
{...{ label, style }}
|
|
124
|
+
defaultValue={value}
|
|
125
|
+
onBlur={e => {
|
|
126
|
+
e.persist();
|
|
127
|
+
if (e.target.value === value) return;
|
|
128
|
+
dispatch(e.target.value);
|
|
129
|
+
}}{...props} />
|
|
130
|
+
);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
const Data = ({ label, className, style, value, dispatch, path, ...props }) => {
|
|
134
|
+
const [state, setState] = useState(value);
|
|
135
|
+
|
|
136
|
+
useEffect(() => {
|
|
137
|
+
if ((value || undefined) === (isString(state) ? state || undefined : state?.format('YYYY-MM-DD'))) return;
|
|
138
|
+
const time = setTimeout(() => {
|
|
139
|
+
dispatch(state ? moment(state).format('YYYY-MM-DD') : '');
|
|
140
|
+
}, 100);
|
|
141
|
+
return () => clearTimeout(time);
|
|
142
|
+
// eslint-disable-next-line
|
|
143
|
+
}, [state, path])
|
|
144
|
+
|
|
145
|
+
return (
|
|
146
|
+
<MuiPickersUtilsProvider utils={MomentUtils}>
|
|
147
|
+
<KeyboardDatePicker
|
|
148
|
+
fullWidth
|
|
149
|
+
invalidDateMessage='Data inválida'
|
|
150
|
+
autoOk
|
|
151
|
+
variant='inline'
|
|
152
|
+
inputVariant='outlined'
|
|
153
|
+
label='Data inicial'
|
|
154
|
+
margin='dense'
|
|
155
|
+
InputAdornmentProps={{ position: 'end' }}
|
|
156
|
+
format='DD/MM/YYYY'
|
|
157
|
+
{...{ className, label, style }}
|
|
158
|
+
{...props}
|
|
159
|
+
value={state || null}
|
|
160
|
+
onChange={setState}
|
|
161
|
+
/>
|
|
162
|
+
</MuiPickersUtilsProvider>
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const Selection = ({ label, multiple, className, style, options, value, dispatch, path, ...props }) => {
|
|
167
|
+
const [state, setState] = useState(value || (multiple ? [] : ''));
|
|
168
|
+
|
|
169
|
+
const atualizaDados = useCallback(() => {
|
|
170
|
+
dispatch(state);
|
|
171
|
+
// eslint-disable-next-line
|
|
172
|
+
}, [state])
|
|
173
|
+
|
|
174
|
+
useUpdateEffect(() => atualizaDados(), [state, atualizaDados]);
|
|
175
|
+
|
|
176
|
+
const changeCheckBox = (e) => {
|
|
177
|
+
if (e.target.checked) {
|
|
178
|
+
setState([...state, e.target.value]);
|
|
179
|
+
} else {
|
|
180
|
+
let temp = state;
|
|
181
|
+
temp.splice(temp.indexOf(e.target.value), 1);
|
|
182
|
+
setState(temp);
|
|
183
|
+
}
|
|
184
|
+
atualizaDados();
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
if (multiple) return (
|
|
188
|
+
<Grid container>
|
|
189
|
+
<Grid item xs={12} style={{ ...style, display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: 5, }} {...{ className }}>
|
|
190
|
+
{label && <FormLabel style={{ marginBottom: '0px' }}>{label}</FormLabel>}
|
|
191
|
+
<FormGroup row style={{ flexGrow: 1, justifyContent: label ? 'flex-end' : 'space-evenly' }}>
|
|
192
|
+
{options.map((item, i) => (
|
|
193
|
+
<FormControlLabel
|
|
194
|
+
key={i}
|
|
195
|
+
value={item}
|
|
196
|
+
control={<Checkbox name={item} onChange={changeCheckBox}{...{ style }}{...props} />}
|
|
197
|
+
label={item}
|
|
198
|
+
labelPlacement='start'
|
|
199
|
+
/>
|
|
200
|
+
))}
|
|
201
|
+
</FormGroup>
|
|
202
|
+
</Grid>
|
|
203
|
+
</Grid>
|
|
204
|
+
);
|
|
205
|
+
return (
|
|
206
|
+
<Grid container>
|
|
207
|
+
<Grid item xs={12} style={{ ...style, display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: 5, }} {...{ className }}>
|
|
208
|
+
{label && <FormLabel style={{ marginBottom: '0px' }}>{label}</FormLabel>}
|
|
209
|
+
<RadioGroup row defaultValue={value} onChange={e => setState(e.target.value)} style={{ flexGrow: 1, justifyContent: label ? 'flex-end' : 'space-evenly' }}>
|
|
210
|
+
{options.map((item, i) => (
|
|
211
|
+
<FormControlLabel
|
|
212
|
+
key={i}
|
|
213
|
+
value={item}
|
|
214
|
+
control={<Radio {...{ style }}{...props} />}
|
|
215
|
+
label={item}
|
|
216
|
+
labelPlacement='start'
|
|
217
|
+
/>
|
|
218
|
+
))}
|
|
219
|
+
</RadioGroup>
|
|
220
|
+
</Grid>
|
|
221
|
+
</Grid>
|
|
222
|
+
);
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const Signature = ({ label, grupos, usuarios, className, style, value, dados, setDados, path }) => {
|
|
226
|
+
const usuario = getStore().getState().argous.usuarioLogado;
|
|
227
|
+
const podeAssinar = (usuarios.filter(id => id === usuario.idUsuario)).length > 0;
|
|
228
|
+
|
|
229
|
+
const [values, setValues] = useState({ modal: false, password: '', showPassword: false, senhaIncorreta: '' });
|
|
230
|
+
|
|
231
|
+
//action para checar se o usuario é do grupo para poder assinar
|
|
232
|
+
|
|
233
|
+
async function confirmaAssinatura() {
|
|
234
|
+
const res = { status: true, hash: 'sdfghil349' }; // = await algumaFuncao('', {idUsuario:usuario.idUsuario,senha:values.password}, true)
|
|
235
|
+
if (res.status) {
|
|
236
|
+
setValues({ ...values, senhaIncorreta: '' });
|
|
237
|
+
const temp = { ...dados };
|
|
238
|
+
set(temp, path, [usuario.idUsuario, usuario.nome, moment(new Date()).format('YYYY-MM-DD HH:mm:ss'), res.hash]);
|
|
239
|
+
setDados(temp);
|
|
240
|
+
setValues({ ...values, modal: false });
|
|
241
|
+
} else setValues({ ...values, senhaIncorreta: 'Senha Incorreta!' });
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (value.length > 0) return (
|
|
245
|
+
<div {...{ className }} style={{ ...style, height: '50px', display: 'flex', justifyContent: 'flex-end', alignItems: ' flex-end' }}>
|
|
246
|
+
<Typography title={value[3]} variant='subtitle2' style={{ textAlign: 'right' }}>{`${value[1]} - ${moment(value[2]).format('DD/MM/YYYY HH:mm:ss')}`}</Typography>
|
|
247
|
+
</div>
|
|
248
|
+
);
|
|
249
|
+
return (
|
|
250
|
+
<>
|
|
251
|
+
<Grid container direction='row-reverse' {...{ className, style }}>
|
|
252
|
+
<Grid item xs={12} sm={6} md={4} lg={2} xl={1}>
|
|
253
|
+
<Button title={label} color='primary' variant='contained' fullWidth disabled={!podeAssinar} onClick={() => setValues({ ...values, modal: true })}>Assinar</Button>
|
|
254
|
+
</Grid>
|
|
255
|
+
</Grid>
|
|
256
|
+
<Dialog open={values.modal} onClose={() => setValues({ ...values, modal: false })} style={{ padding: '0px 10px 5px' }}>
|
|
257
|
+
<DialogTitle>Confirme sua senha</DialogTitle>
|
|
258
|
+
<DialogContent>
|
|
259
|
+
<TextField
|
|
260
|
+
variant='outlined'
|
|
261
|
+
label='Senha'
|
|
262
|
+
fullWidth
|
|
263
|
+
type={values.showPassword ? 'text' : 'password'}
|
|
264
|
+
value={values.password}
|
|
265
|
+
onChange={e => setValues({ ...values, password: e.target.value })}
|
|
266
|
+
InputProps={{
|
|
267
|
+
endAdornment: (
|
|
268
|
+
<InputAdornment position='end'>
|
|
269
|
+
<IconButton
|
|
270
|
+
onClick={() => setValues({ ...values, showPassword: !values.showPassword })}
|
|
271
|
+
onMouseDown={e => e.preventDefault()}
|
|
272
|
+
>
|
|
273
|
+
{values.showPassword ? <MdVisibility /> : <MdVisibilityOff />}
|
|
274
|
+
</IconButton>
|
|
275
|
+
</InputAdornment>
|
|
276
|
+
)
|
|
277
|
+
}}
|
|
278
|
+
error={!!values.senhaIncorreta}
|
|
279
|
+
helperText={values.senhaIncorreta}
|
|
280
|
+
/>
|
|
281
|
+
</DialogContent>
|
|
282
|
+
<DialogActions>
|
|
283
|
+
<Button title='Cancelar' color='warning' variant='contained' fullWidth onClick={() => setValues({ ...values, modal: false })}>Cancelar</Button>
|
|
284
|
+
<Button title='Confirmar' color='success' variant='contained' fullWidth onClick={confirmaAssinatura}>Confirmar</Button>
|
|
285
|
+
</DialogActions>
|
|
286
|
+
</Dialog>
|
|
287
|
+
</>
|
|
288
|
+
);
|
|
289
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './FormVisualizer';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import highlight from 'highlight.js';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import { findDOMNode } from 'react-dom';
|
|
5
|
+
|
|
6
|
+
class HighLight extends Component {
|
|
7
|
+
|
|
8
|
+
componentDidMount () {
|
|
9
|
+
highlight.highlightBlock(findDOMNode(this.refs.code));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
shouldComponentUpdate(nextProps) {
|
|
13
|
+
if (this.props.language !== nextProps.language || this.props.className !== nextProps.className || this.props.children !== nextProps.children) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
componentDidUpdate () {
|
|
21
|
+
highlight.initHighlighting.called = false;
|
|
22
|
+
highlight.highlightBlock(findDOMNode(this.refs.code));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
render () {
|
|
26
|
+
const { children, className, language, style } = this.props;
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<pre
|
|
30
|
+
className={className}
|
|
31
|
+
style={style}
|
|
32
|
+
>
|
|
33
|
+
<code
|
|
34
|
+
className={language}
|
|
35
|
+
ref='code'
|
|
36
|
+
>
|
|
37
|
+
{children}
|
|
38
|
+
</code>
|
|
39
|
+
</pre>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
HighLight.propTypes = {
|
|
45
|
+
children: PropTypes.node.isRequired,
|
|
46
|
+
className: PropTypes.string,
|
|
47
|
+
language: PropTypes.string,
|
|
48
|
+
style: PropTypes.object
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default HighLight;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Highlight';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DialogProps } from '@material-ui/core';
|
|
2
|
+
|
|
3
|
+
export interface ImageResizeProps extends DialogProps {
|
|
4
|
+
/**
|
|
5
|
+
* Imagem a ser Redimensionada
|
|
6
|
+
*/
|
|
7
|
+
imagem: File,
|
|
8
|
+
/**
|
|
9
|
+
* Funcao chamada quando a imagem termina de ser redimensionada
|
|
10
|
+
*
|
|
11
|
+
* @param {string} urlImagem - Base64 da imagem redimensionada
|
|
12
|
+
*
|
|
13
|
+
* @returns {void} Sem Retorno
|
|
14
|
+
*/
|
|
15
|
+
onImage?: (urlImagem: string) => void,
|
|
16
|
+
/**
|
|
17
|
+
* Propriedades da imagem final
|
|
18
|
+
*
|
|
19
|
+
* @param {number | string} width - Largura da imagem final
|
|
20
|
+
* @param {number | string} height - Altura da imagem final
|
|
21
|
+
* @param {number | string} borderRadius - Raio da imagem final
|
|
22
|
+
*/
|
|
23
|
+
finalImageProperties?: { width:number | string, height: number | string, borderRadius: number | string }
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare function ImageResize(props: ImageResizeProps): JSX.Element
|
|
27
|
+
|
|
28
|
+
export default ImageResize;
|