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,353 @@
|
|
|
1
|
+
import { createField, getField } from '../../fieldsRedux';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
import MaskedInput from 'react-maskedinput';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
class Input extends Component {
|
|
10
|
+
confs = '';
|
|
11
|
+
|
|
12
|
+
componentWillUnmount() {
|
|
13
|
+
if (this.props.stopWriting) {
|
|
14
|
+
clearTimeout(this.stopWritingTimeout);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
onChange = (event) => {
|
|
19
|
+
const { onChange } = this.props;
|
|
20
|
+
|
|
21
|
+
let value = this.handleValue(event.target);
|
|
22
|
+
|
|
23
|
+
value = this.handleWithTypeValues(value);
|
|
24
|
+
|
|
25
|
+
if (onChange) {
|
|
26
|
+
onChange(value);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
this.props.handleUpdates(value);
|
|
30
|
+
this.stopWritingHandler(value);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
stopWritingHandler = (value) => {
|
|
34
|
+
const { stopWriting, stopWritingTime = 2000 } = this.props;
|
|
35
|
+
|
|
36
|
+
if (stopWriting) {
|
|
37
|
+
clearTimeout(this.stopWritingTimeout);
|
|
38
|
+
this.stopWritingTimeout = setTimeout(() => {
|
|
39
|
+
stopWriting(value);
|
|
40
|
+
}, stopWritingTime);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
handleWithTypeValues = (value) => {
|
|
45
|
+
const { field, type, optionValue } = this.props;
|
|
46
|
+
|
|
47
|
+
if (type === 'checkbox') {
|
|
48
|
+
const fieldValue = getField(field, 'value') || [];
|
|
49
|
+
const index = fieldValue.indexOf(optionValue);
|
|
50
|
+
|
|
51
|
+
if (index < 0) {
|
|
52
|
+
fieldValue.push(optionValue);
|
|
53
|
+
} else {
|
|
54
|
+
fieldValue.splice(index, 1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
value = fieldValue;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (type === 'radio') {
|
|
61
|
+
value = optionValue;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
handleValue = (target) => {
|
|
68
|
+
const confs = this.stateOptions();
|
|
69
|
+
|
|
70
|
+
return confs.alias === 'check'
|
|
71
|
+
? target.checked
|
|
72
|
+
: target.value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
handleClassName = () => {
|
|
76
|
+
const {
|
|
77
|
+
className = ''
|
|
78
|
+
} = this.props;
|
|
79
|
+
const confs = this.stateOptions();
|
|
80
|
+
|
|
81
|
+
let cn = '';
|
|
82
|
+
|
|
83
|
+
if (confs.alias === 'text' && !className) {
|
|
84
|
+
cn += ' form-control ';
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
cn += className;
|
|
88
|
+
|
|
89
|
+
return cn;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
checkInputProps = () => {
|
|
93
|
+
const {
|
|
94
|
+
field,
|
|
95
|
+
id,
|
|
96
|
+
type = 'text',
|
|
97
|
+
name = '',
|
|
98
|
+
placeholder,
|
|
99
|
+
min,
|
|
100
|
+
max,
|
|
101
|
+
step,
|
|
102
|
+
maxLength,
|
|
103
|
+
minLength,
|
|
104
|
+
autoFocus,
|
|
105
|
+
disabled,
|
|
106
|
+
readOnly,
|
|
107
|
+
required,
|
|
108
|
+
style = {},
|
|
109
|
+
optionValue
|
|
110
|
+
} = this.props;
|
|
111
|
+
|
|
112
|
+
const confs = this.stateOptions();
|
|
113
|
+
|
|
114
|
+
let value = getField(field, 'value');
|
|
115
|
+
|
|
116
|
+
let inputProps = {};
|
|
117
|
+
|
|
118
|
+
switch (confs.alias) {
|
|
119
|
+
case 'button':
|
|
120
|
+
|
|
121
|
+
break;
|
|
122
|
+
case 'check':
|
|
123
|
+
value = type === 'radio' ? value.toString() : value;
|
|
124
|
+
inputProps['checked'] = value ? value.indexOf(optionValue) < 0 ? false : true : false;
|
|
125
|
+
break;
|
|
126
|
+
case 'color':
|
|
127
|
+
inputProps['value'] = value;
|
|
128
|
+
break;
|
|
129
|
+
case 'hidden':
|
|
130
|
+
inputProps['value'] = value;
|
|
131
|
+
break;
|
|
132
|
+
default:
|
|
133
|
+
inputProps['min'] = min;
|
|
134
|
+
inputProps['max'] = max;
|
|
135
|
+
inputProps['step'] = step;
|
|
136
|
+
inputProps['maxLength'] = maxLength;
|
|
137
|
+
inputProps['minLength'] = minLength;
|
|
138
|
+
inputProps['value'] = value;
|
|
139
|
+
inputProps['placeholder'] = placeholder;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
inputProps['readOnly'] = readOnly;
|
|
143
|
+
inputProps['required'] = required;
|
|
144
|
+
inputProps['disabled'] = disabled;
|
|
145
|
+
inputProps['autoFocus'] = autoFocus;
|
|
146
|
+
inputProps['id'] = id;
|
|
147
|
+
inputProps['type'] = type;
|
|
148
|
+
inputProps['name'] = name;
|
|
149
|
+
inputProps['className'] = this.handleClassName();
|
|
150
|
+
inputProps['style'] = style;
|
|
151
|
+
|
|
152
|
+
inputProps = {
|
|
153
|
+
...inputProps,
|
|
154
|
+
...this.events()
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
return inputProps;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
render() {
|
|
161
|
+
const { checkInputProps } = this;
|
|
162
|
+
const { mask } = this.props;
|
|
163
|
+
|
|
164
|
+
const inputProps = checkInputProps();
|
|
165
|
+
|
|
166
|
+
return !mask
|
|
167
|
+
? (<input {...inputProps} />)
|
|
168
|
+
: (<MaskedInput mask={mask} {...inputProps} />);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
stateOptions = () => {
|
|
172
|
+
const { confs } = this;
|
|
173
|
+
const { type } = this.props;
|
|
174
|
+
|
|
175
|
+
if (confs) {
|
|
176
|
+
return confs;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const confsAux = {};
|
|
180
|
+
|
|
181
|
+
switch (type) {
|
|
182
|
+
case 'time':
|
|
183
|
+
confsAux['alias'] = 'text';
|
|
184
|
+
break;
|
|
185
|
+
case 'date':
|
|
186
|
+
confsAux['alias'] = 'text';
|
|
187
|
+
break;
|
|
188
|
+
case 'datetime-local':
|
|
189
|
+
confsAux['alias'] = 'text';
|
|
190
|
+
break;
|
|
191
|
+
case 'email':
|
|
192
|
+
confsAux['alias'] = 'text';
|
|
193
|
+
break;
|
|
194
|
+
case 'url':
|
|
195
|
+
confsAux['alias'] = 'text';
|
|
196
|
+
break;
|
|
197
|
+
case 'month':
|
|
198
|
+
confsAux['alias'] = 'text';
|
|
199
|
+
break;
|
|
200
|
+
case 'week':
|
|
201
|
+
confsAux['alias'] = 'text';
|
|
202
|
+
break;
|
|
203
|
+
case 'number':
|
|
204
|
+
confsAux['alias'] = 'text';
|
|
205
|
+
break;
|
|
206
|
+
case 'password':
|
|
207
|
+
confsAux['alias'] = 'text';
|
|
208
|
+
break;
|
|
209
|
+
case 'search':
|
|
210
|
+
confsAux['alias'] = 'text';
|
|
211
|
+
break;
|
|
212
|
+
case 'button':
|
|
213
|
+
confsAux['alias'] = 'button';
|
|
214
|
+
break;
|
|
215
|
+
case 'submit':
|
|
216
|
+
confsAux['alias'] = 'button';
|
|
217
|
+
break;
|
|
218
|
+
case 'file':
|
|
219
|
+
confsAux['alias'] = 'button';
|
|
220
|
+
break;
|
|
221
|
+
case 'checkbox':
|
|
222
|
+
confsAux['alias'] = 'check';
|
|
223
|
+
break;
|
|
224
|
+
case 'radio':
|
|
225
|
+
confsAux['alias'] = 'check';
|
|
226
|
+
break;
|
|
227
|
+
case 'color':
|
|
228
|
+
confsAux['alias'] = 'color';
|
|
229
|
+
break;
|
|
230
|
+
case 'hidden':
|
|
231
|
+
confsAux['alias'] = 'hidden';
|
|
232
|
+
break;
|
|
233
|
+
case 'range':
|
|
234
|
+
confsAux['alias'] = 'range';
|
|
235
|
+
break;
|
|
236
|
+
default:
|
|
237
|
+
confsAux['alias'] = 'text';
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
this.confs = confsAux;
|
|
241
|
+
|
|
242
|
+
return confsAux;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
events = () => {
|
|
246
|
+
const {
|
|
247
|
+
onFocus,
|
|
248
|
+
onBlur,
|
|
249
|
+
onKeyDown,
|
|
250
|
+
onKeyPress,
|
|
251
|
+
onKeyUp,
|
|
252
|
+
onMouseEnter,
|
|
253
|
+
onMouseOver,
|
|
254
|
+
onMouseMove,
|
|
255
|
+
onMouseDown,
|
|
256
|
+
onMouseUp,
|
|
257
|
+
onClick,
|
|
258
|
+
onDoubleClick,
|
|
259
|
+
onMouseLeave,
|
|
260
|
+
onMouseOut
|
|
261
|
+
} = this.props;
|
|
262
|
+
|
|
263
|
+
const onChange = this.onChange;
|
|
264
|
+
|
|
265
|
+
return {
|
|
266
|
+
onChange,
|
|
267
|
+
onFocus,
|
|
268
|
+
onBlur,
|
|
269
|
+
onKeyDown,
|
|
270
|
+
onKeyPress,
|
|
271
|
+
onKeyUp,
|
|
272
|
+
onMouseEnter,
|
|
273
|
+
onMouseOver,
|
|
274
|
+
onMouseMove,
|
|
275
|
+
onMouseDown,
|
|
276
|
+
onMouseUp,
|
|
277
|
+
onClick,
|
|
278
|
+
onDoubleClick,
|
|
279
|
+
onMouseLeave,
|
|
280
|
+
onMouseOut
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
Input.propTypes = {
|
|
286
|
+
field: PropTypes.string.isRequired,
|
|
287
|
+
defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]),
|
|
288
|
+
ajax: PropTypes.bool,
|
|
289
|
+
onChange: PropTypes.func,
|
|
290
|
+
action: PropTypes.string,
|
|
291
|
+
dados: PropTypes.object,
|
|
292
|
+
receiveUpdates: PropTypes.array,
|
|
293
|
+
sendUpdates: PropTypes.array,
|
|
294
|
+
onFieldSuccess: PropTypes.func,
|
|
295
|
+
onActionSuccess: PropTypes.func,
|
|
296
|
+
onAllUpdated: PropTypes.func,
|
|
297
|
+
fieldListener: PropTypes.func,
|
|
298
|
+
destroyOnUnmount: PropTypes.bool,
|
|
299
|
+
mask: PropTypes.string,
|
|
300
|
+
type: PropTypes.oneOf([
|
|
301
|
+
'time',
|
|
302
|
+
'date',
|
|
303
|
+
'datetime-local',
|
|
304
|
+
'email',
|
|
305
|
+
'url',
|
|
306
|
+
'month',
|
|
307
|
+
'week',
|
|
308
|
+
'number',
|
|
309
|
+
'password',
|
|
310
|
+
'search',
|
|
311
|
+
'button',
|
|
312
|
+
'submit',
|
|
313
|
+
'file',
|
|
314
|
+
'checkbox',
|
|
315
|
+
'radio',
|
|
316
|
+
'color',
|
|
317
|
+
'hidden',
|
|
318
|
+
'range',
|
|
319
|
+
'text'
|
|
320
|
+
]),
|
|
321
|
+
placeholder: PropTypes.string,
|
|
322
|
+
className: PropTypes.string,
|
|
323
|
+
style: PropTypes.object,
|
|
324
|
+
id: PropTypes.string,
|
|
325
|
+
name: PropTypes.string,
|
|
326
|
+
min: PropTypes.string,
|
|
327
|
+
max: PropTypes.string,
|
|
328
|
+
step: PropTypes.string,
|
|
329
|
+
maxLength: PropTypes.string,
|
|
330
|
+
minLength: PropTypes.string,
|
|
331
|
+
autoFocus: PropTypes.bool,
|
|
332
|
+
disabled: PropTypes.bool,
|
|
333
|
+
readOnly: PropTypes.bool,
|
|
334
|
+
required: PropTypes.bool,
|
|
335
|
+
onFocus: PropTypes.func,
|
|
336
|
+
onBlur: PropTypes.func,
|
|
337
|
+
onKeyDown: PropTypes.func,
|
|
338
|
+
onKeyPress: PropTypes.func,
|
|
339
|
+
onKeyUp: PropTypes.func,
|
|
340
|
+
onMouseEnter: PropTypes.func,
|
|
341
|
+
onMouseOver: PropTypes.func,
|
|
342
|
+
onMouseMove: PropTypes.func,
|
|
343
|
+
onMouseDown: PropTypes.func,
|
|
344
|
+
onMouseUp: PropTypes.func,
|
|
345
|
+
onClick: PropTypes.func,
|
|
346
|
+
onDoubleClick: PropTypes.func,
|
|
347
|
+
onMouseLeave: PropTypes.func,
|
|
348
|
+
onMouseOut: PropTypes.func,
|
|
349
|
+
stopWriting: PropTypes.func,
|
|
350
|
+
stopWritingTime: PropTypes.number
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
export default createField(Input);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Input';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { createField } from '../../fieldsRedux';
|
|
2
|
+
import { Chip, Grid, TextField } from '@material-ui/core';
|
|
3
|
+
import { Autocomplete } from '@material-ui/lab';
|
|
4
|
+
import { isArray } from 'lodash';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import React, { Component } from 'react';
|
|
7
|
+
|
|
8
|
+
class InputTags extends Component {
|
|
9
|
+
constructor(props) {
|
|
10
|
+
super(props);
|
|
11
|
+
const propValue = this.props.getField().value;
|
|
12
|
+
if (isArray(propValue)) this.props.setField({ value: propValue });
|
|
13
|
+
else {
|
|
14
|
+
try {
|
|
15
|
+
this.props.setField({ value: JSON.parse(propValue) });
|
|
16
|
+
} catch (error) {
|
|
17
|
+
this.props.setField({ value: [] });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
handleChange = (_, value, reason) => {
|
|
23
|
+
if (reason === 'create-option') {
|
|
24
|
+
let text = value.pop();
|
|
25
|
+
if (this.props.getField().value?.findIndex(item => item.text === text || item.id === text) === -1)
|
|
26
|
+
this.props.setField({ value: [...value, { id: text, text }] });
|
|
27
|
+
} else this.props.setField({ value });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
handleDelete = i => () => {
|
|
31
|
+
const tags = this.props.getField().value || [];
|
|
32
|
+
this.props.setField({ value: tags.filter((tag, index) => index !== i) });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
checkProps = () => {
|
|
36
|
+
let tags = this.props.getField().value || [];
|
|
37
|
+
if (typeof tags === 'string') {
|
|
38
|
+
try {
|
|
39
|
+
tags = JSON.parse(tags);
|
|
40
|
+
} catch (e) { }
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return { tags, handleChange: this.handleChange, handleDelete: this.handleDelete, ...this.props };
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
render() {
|
|
47
|
+
const { handleChange, handleDelete, tags, handleInputChange, label, placeholder, suggestions, ...props } = this.checkProps();
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<Grid container spacing={1}>
|
|
51
|
+
<Grid item xs={12}>
|
|
52
|
+
{tags.map((item, index) => (
|
|
53
|
+
<Chip key={index} label={item.text} onDelete={handleDelete(index)} />
|
|
54
|
+
))}
|
|
55
|
+
</Grid>
|
|
56
|
+
<Grid item xs={12}>
|
|
57
|
+
<Autocomplete
|
|
58
|
+
onInputChange={(_, value) => handleInputChange(value)}
|
|
59
|
+
multiple
|
|
60
|
+
freeSolo
|
|
61
|
+
disableClearable
|
|
62
|
+
value={tags}
|
|
63
|
+
options={suggestions?.filter((searched) => tags.findIndex(item => item.id?.localeCompare(searched.id, undefined, { sensitivity: 'accent' }) === 0) < 0)}
|
|
64
|
+
getOptionLabel={option => option.text || option}
|
|
65
|
+
onChange={handleChange}
|
|
66
|
+
noOptionsText='Não Encontrado'
|
|
67
|
+
size='small'
|
|
68
|
+
renderTags={() => null}
|
|
69
|
+
renderInput={params => (
|
|
70
|
+
<TextField
|
|
71
|
+
fullWidth
|
|
72
|
+
margin='dense'
|
|
73
|
+
color='secondary'
|
|
74
|
+
label={label}
|
|
75
|
+
placeholder={placeholder}
|
|
76
|
+
{...params}
|
|
77
|
+
/>
|
|
78
|
+
)}
|
|
79
|
+
{...props}
|
|
80
|
+
/>
|
|
81
|
+
</Grid>
|
|
82
|
+
</Grid>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
InputTags.propTypes = {
|
|
88
|
+
field: PropTypes.string.isRequired,
|
|
89
|
+
defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]),
|
|
90
|
+
fieldListener: PropTypes.func,
|
|
91
|
+
destroyOnUnmount: PropTypes.bool
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default createField(InputTags);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './InputTags';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { createField, initField, getField, clearField } from '../../fieldsRedux';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React, { Component } from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
class ListSelect extends Component {
|
|
9
|
+
|
|
10
|
+
componentDidMount() {
|
|
11
|
+
const { optionsField, optionsDefaultValue } = this.props;
|
|
12
|
+
initField(optionsField, optionsDefaultValue);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
componentWillUnmount() {
|
|
16
|
+
const { optionsField, destroyOnUnmount } = this.props;
|
|
17
|
+
|
|
18
|
+
if (destroyOnUnmount) {
|
|
19
|
+
clearField(optionsField);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
onChange = (val) => {
|
|
24
|
+
const { onChange } = this.props;
|
|
25
|
+
|
|
26
|
+
const value = val.toString();
|
|
27
|
+
|
|
28
|
+
if (onChange) {
|
|
29
|
+
onChange(value);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
this.props.handleUpdates(value);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
checkListSelectProps = () => {
|
|
36
|
+
const {
|
|
37
|
+
className,
|
|
38
|
+
disabled,
|
|
39
|
+
multiple,
|
|
40
|
+
style,
|
|
41
|
+
} = this.props;
|
|
42
|
+
|
|
43
|
+
return {
|
|
44
|
+
className,
|
|
45
|
+
disabled,
|
|
46
|
+
multiple,
|
|
47
|
+
style,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
render() {
|
|
52
|
+
const { checkListSelectProps, onChange } = this;
|
|
53
|
+
const { field, optionsField, optionsValue, optionsLabel, classActive, onMouseDown, liClassName = '' } = this.props;
|
|
54
|
+
|
|
55
|
+
const selectProps = checkListSelectProps();
|
|
56
|
+
const value = getField(field, 'value');
|
|
57
|
+
const options = getField(optionsField, 'value');
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<ul {...selectProps}>
|
|
61
|
+
{options && options.map((item, index) => (<li
|
|
62
|
+
// eslint-disable-next-line
|
|
63
|
+
className={`${value == item[optionsValue] ? classActive : ''} ${liClassName}`} onMouseDown={onMouseDown} key={index} onClick={() => onChange(item[optionsValue])}>{item[optionsLabel]}</li>))}
|
|
64
|
+
</ul>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
ListSelect.propTypes = {
|
|
70
|
+
field: PropTypes.string.isRequired,
|
|
71
|
+
defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]),
|
|
72
|
+
ajax: PropTypes.bool,
|
|
73
|
+
action: PropTypes.string,
|
|
74
|
+
dados: PropTypes.object,
|
|
75
|
+
sendUpdates: PropTypes.array,
|
|
76
|
+
receiveUpdates: PropTypes.array,
|
|
77
|
+
onChange: PropTypes.func,
|
|
78
|
+
onFieldSuccess: PropTypes.func,
|
|
79
|
+
onActionSuccess: PropTypes.func,
|
|
80
|
+
onAllUpdated: PropTypes.func,
|
|
81
|
+
optionsField: PropTypes.string.isRequired,
|
|
82
|
+
optionsDefaultValue: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
83
|
+
optionsValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
84
|
+
optionsLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
85
|
+
fieldListener: PropTypes.func,
|
|
86
|
+
destroyOnUnmount: PropTypes.bool,
|
|
87
|
+
className: PropTypes.string,
|
|
88
|
+
style: PropTypes.object,
|
|
89
|
+
classActive: PropTypes.string,
|
|
90
|
+
onMouseDown: PropTypes.func,
|
|
91
|
+
trClassName: PropTypes.string
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default createField(ListSelect);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ListSelect';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonProps } from '@material-ui/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
export interface MaterialButtonProps extends Omit<ButtonProps, 'color'> {
|
|
5
|
+
/**
|
|
6
|
+
* Cor Aplicada ao botão
|
|
7
|
+
*/
|
|
8
|
+
color?: 'default' | 'inherit' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare function MaterialButton(props: MaterialButtonProps): JSX.Element
|
|
12
|
+
|
|
13
|
+
export default MaterialButton;
|