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
|
File without changes
|
|
@@ -1,585 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
4
|
-
* Licensed under the LGPL or a commercial license.
|
|
5
|
-
* For LGPL see License.txt in the project root for license information.
|
|
6
|
-
* For commercial licenses see https://www.tiny.cloud/
|
|
7
|
-
*
|
|
8
|
-
* Version: 5.9.0 (TBD)
|
|
9
|
-
*/
|
|
10
|
-
(function () {
|
|
11
|
-
'use strict';
|
|
12
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
13
|
-
var DEFAULT_ID = 'tinymce.plugins.emoticons';
|
|
14
|
-
var getEmoticonDatabase = function (editor) {
|
|
15
|
-
return editor.getParam('emoticons_database', 'emojis', 'string');
|
|
16
|
-
};
|
|
17
|
-
var getEmoticonDatabaseUrl = function (editor, pluginUrl) {
|
|
18
|
-
var database = getEmoticonDatabase(editor);
|
|
19
|
-
return editor.getParam('emoticons_database_url', pluginUrl + '/js/' + database + editor.suffix + '.js', 'string');
|
|
20
|
-
};
|
|
21
|
-
var getEmoticonDatabaseId = function (editor) {
|
|
22
|
-
return editor.getParam('emoticons_database_id', DEFAULT_ID, 'string');
|
|
23
|
-
};
|
|
24
|
-
var getAppendedEmoticons = function (editor) {
|
|
25
|
-
return editor.getParam('emoticons_append', {}, 'object');
|
|
26
|
-
};
|
|
27
|
-
var getEmotionsImageUrl = function (editor) {
|
|
28
|
-
return editor.getParam('emoticons_images_url', 'https://twemoji.maxcdn.com/v/13.0.1/72x72/', 'string');
|
|
29
|
-
};
|
|
30
|
-
var __assign = function () {
|
|
31
|
-
__assign = Object.assign || function __assign(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s)
|
|
35
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
36
|
-
t[p] = s[p];
|
|
37
|
-
}
|
|
38
|
-
return t;
|
|
39
|
-
};
|
|
40
|
-
return __assign.apply(this, arguments);
|
|
41
|
-
};
|
|
42
|
-
var Cell = function (initial) {
|
|
43
|
-
var value = initial;
|
|
44
|
-
var get = function () {
|
|
45
|
-
return value;
|
|
46
|
-
};
|
|
47
|
-
var set = function (v) {
|
|
48
|
-
value = v;
|
|
49
|
-
};
|
|
50
|
-
return {
|
|
51
|
-
get: get,
|
|
52
|
-
set: set
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
56
|
-
var shallow = function (old, nu) {
|
|
57
|
-
return nu;
|
|
58
|
-
};
|
|
59
|
-
var baseMerge = function (merger) {
|
|
60
|
-
return function () {
|
|
61
|
-
var objects = [];
|
|
62
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
63
|
-
objects[_i] = arguments[_i];
|
|
64
|
-
}
|
|
65
|
-
if (objects.length === 0) {
|
|
66
|
-
throw new Error('Can\'t merge zero objects');
|
|
67
|
-
}
|
|
68
|
-
var ret = {};
|
|
69
|
-
for (var j = 0; j < objects.length; j++) {
|
|
70
|
-
var curObject = objects[j];
|
|
71
|
-
for (var key in curObject) {
|
|
72
|
-
if (hasOwnProperty.call(curObject, key)) {
|
|
73
|
-
ret[key] = merger(ret[key], curObject[key]);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return ret;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
var merge = baseMerge(shallow);
|
|
81
|
-
var noop = function () {
|
|
82
|
-
};
|
|
83
|
-
var constant = function (value) {
|
|
84
|
-
return function () {
|
|
85
|
-
return value;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
var never = constant(false);
|
|
89
|
-
var always = constant(true);
|
|
90
|
-
var none = function () {
|
|
91
|
-
return NONE;
|
|
92
|
-
};
|
|
93
|
-
var NONE = function () {
|
|
94
|
-
var eq = function (o) {
|
|
95
|
-
return o.isNone();
|
|
96
|
-
};
|
|
97
|
-
var call = function (thunk) {
|
|
98
|
-
return thunk();
|
|
99
|
-
};
|
|
100
|
-
var id = function (n) {
|
|
101
|
-
return n;
|
|
102
|
-
};
|
|
103
|
-
var me = {
|
|
104
|
-
fold: function (n, _s) {
|
|
105
|
-
return n();
|
|
106
|
-
},
|
|
107
|
-
is: never,
|
|
108
|
-
isSome: never,
|
|
109
|
-
isNone: always,
|
|
110
|
-
getOr: id,
|
|
111
|
-
getOrThunk: call,
|
|
112
|
-
getOrDie: function (msg) {
|
|
113
|
-
throw new Error(msg || 'error: getOrDie called on none.');
|
|
114
|
-
},
|
|
115
|
-
getOrNull: constant(null),
|
|
116
|
-
getOrUndefined: constant(undefined),
|
|
117
|
-
or: id,
|
|
118
|
-
orThunk: call,
|
|
119
|
-
map: none,
|
|
120
|
-
each: noop,
|
|
121
|
-
bind: none,
|
|
122
|
-
exists: never,
|
|
123
|
-
forall: always,
|
|
124
|
-
filter: none,
|
|
125
|
-
equals: eq,
|
|
126
|
-
equals_: eq,
|
|
127
|
-
toArray: function () {
|
|
128
|
-
return [];
|
|
129
|
-
},
|
|
130
|
-
toString: constant('none()')
|
|
131
|
-
};
|
|
132
|
-
return me;
|
|
133
|
-
}();
|
|
134
|
-
var some = function (a) {
|
|
135
|
-
var constant_a = constant(a);
|
|
136
|
-
var self = function () {
|
|
137
|
-
return me;
|
|
138
|
-
};
|
|
139
|
-
var bind = function (f) {
|
|
140
|
-
return f(a);
|
|
141
|
-
};
|
|
142
|
-
var me = {
|
|
143
|
-
fold: function (n, s) {
|
|
144
|
-
return s(a);
|
|
145
|
-
},
|
|
146
|
-
is: function (v) {
|
|
147
|
-
return a === v;
|
|
148
|
-
},
|
|
149
|
-
isSome: always,
|
|
150
|
-
isNone: never,
|
|
151
|
-
getOr: constant_a,
|
|
152
|
-
getOrThunk: constant_a,
|
|
153
|
-
getOrDie: constant_a,
|
|
154
|
-
getOrNull: constant_a,
|
|
155
|
-
getOrUndefined: constant_a,
|
|
156
|
-
or: self,
|
|
157
|
-
orThunk: self,
|
|
158
|
-
map: function (f) {
|
|
159
|
-
return some(f(a));
|
|
160
|
-
},
|
|
161
|
-
each: function (f) {
|
|
162
|
-
f(a);
|
|
163
|
-
},
|
|
164
|
-
bind: bind,
|
|
165
|
-
exists: bind,
|
|
166
|
-
forall: bind,
|
|
167
|
-
filter: function (f) {
|
|
168
|
-
return f(a) ? me : NONE;
|
|
169
|
-
},
|
|
170
|
-
toArray: function () {
|
|
171
|
-
return [a];
|
|
172
|
-
},
|
|
173
|
-
toString: function () {
|
|
174
|
-
return 'some(' + a + ')';
|
|
175
|
-
},
|
|
176
|
-
equals: function (o) {
|
|
177
|
-
return o.is(a);
|
|
178
|
-
},
|
|
179
|
-
equals_: function (o, elementEq) {
|
|
180
|
-
return o.fold(never, function (b) {
|
|
181
|
-
return elementEq(a, b);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
return me;
|
|
186
|
-
};
|
|
187
|
-
var from = function (value) {
|
|
188
|
-
return value === null || value === undefined ? NONE : some(value);
|
|
189
|
-
};
|
|
190
|
-
var Optional = {
|
|
191
|
-
some: some,
|
|
192
|
-
none: none,
|
|
193
|
-
from: from
|
|
194
|
-
};
|
|
195
|
-
var keys = Object.keys;
|
|
196
|
-
var hasOwnProperty$1 = Object.hasOwnProperty;
|
|
197
|
-
var each = function (obj, f) {
|
|
198
|
-
var props = keys(obj);
|
|
199
|
-
for (var k = 0, len = props.length; k < len; k++) {
|
|
200
|
-
var i = props[k];
|
|
201
|
-
var x = obj[i];
|
|
202
|
-
f(x, i);
|
|
203
|
-
}
|
|
204
|
-
};
|
|
205
|
-
var map = function (obj, f) {
|
|
206
|
-
return tupleMap(obj, function (x, i) {
|
|
207
|
-
return {
|
|
208
|
-
k: i,
|
|
209
|
-
v: f(x, i)
|
|
210
|
-
};
|
|
211
|
-
});
|
|
212
|
-
};
|
|
213
|
-
var tupleMap = function (obj, f) {
|
|
214
|
-
var r = {};
|
|
215
|
-
each(obj, function (x, i) {
|
|
216
|
-
var tuple = f(x, i);
|
|
217
|
-
r[tuple.k] = tuple.v;
|
|
218
|
-
});
|
|
219
|
-
return r;
|
|
220
|
-
};
|
|
221
|
-
var has = function (obj, key) {
|
|
222
|
-
return hasOwnProperty$1.call(obj, key);
|
|
223
|
-
};
|
|
224
|
-
var checkRange = function (str, substr, start) {
|
|
225
|
-
return substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
|
|
226
|
-
};
|
|
227
|
-
var contains = function (str, substr) {
|
|
228
|
-
return str.indexOf(substr) !== -1;
|
|
229
|
-
};
|
|
230
|
-
var startsWith = function (str, prefix) {
|
|
231
|
-
return checkRange(str, prefix, 0);
|
|
232
|
-
};
|
|
233
|
-
var global$1 = tinymce.util.Tools.resolve('tinymce.Resource');
|
|
234
|
-
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
235
|
-
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
|
236
|
-
var ALL_CATEGORY = 'All';
|
|
237
|
-
var categoryNameMap = {
|
|
238
|
-
symbols: 'Symbols',
|
|
239
|
-
people: 'People',
|
|
240
|
-
animals_and_nature: 'Animals and Nature',
|
|
241
|
-
food_and_drink: 'Food and Drink',
|
|
242
|
-
activity: 'Activity',
|
|
243
|
-
travel_and_places: 'Travel and Places',
|
|
244
|
-
objects: 'Objects',
|
|
245
|
-
flags: 'Flags',
|
|
246
|
-
user: 'User Defined'
|
|
247
|
-
};
|
|
248
|
-
var translateCategory = function (categories, name) {
|
|
249
|
-
return has(categories, name) ? categories[name] : name;
|
|
250
|
-
};
|
|
251
|
-
var getUserDefinedEmoticons = function (editor) {
|
|
252
|
-
var userDefinedEmoticons = getAppendedEmoticons(editor);
|
|
253
|
-
return map(userDefinedEmoticons, function (value) {
|
|
254
|
-
return __assign({
|
|
255
|
-
keywords: [],
|
|
256
|
-
category: 'user'
|
|
257
|
-
}, value);
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
|
-
var initDatabase = function (editor, databaseUrl, databaseId) {
|
|
261
|
-
var categories = Cell(Optional.none());
|
|
262
|
-
var all = Cell(Optional.none());
|
|
263
|
-
var emojiImagesUrl = getEmotionsImageUrl(editor);
|
|
264
|
-
var getEmoji = function (lib) {
|
|
265
|
-
if (startsWith(lib.char, '<img')) {
|
|
266
|
-
return lib.char.replace(/src="([^"]+)"/, function (match, url) {
|
|
267
|
-
return 'src="' + emojiImagesUrl + url + '"';
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
return lib.char;
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
var processEmojis = function (emojis) {
|
|
275
|
-
var cats = {};
|
|
276
|
-
var everything = [];
|
|
277
|
-
each(emojis, function (lib, title) {
|
|
278
|
-
var entry = {
|
|
279
|
-
title: title,
|
|
280
|
-
keywords: lib.keywords,
|
|
281
|
-
char: getEmoji(lib),
|
|
282
|
-
category: translateCategory(categoryNameMap, lib.category)
|
|
283
|
-
};
|
|
284
|
-
var current = cats[entry.category] !== undefined ? cats[entry.category] : [];
|
|
285
|
-
cats[entry.category] = current.concat([entry]);
|
|
286
|
-
everything.push(entry);
|
|
287
|
-
});
|
|
288
|
-
categories.set(Optional.some(cats));
|
|
289
|
-
all.set(Optional.some(everything));
|
|
290
|
-
};
|
|
291
|
-
editor.on('init', function () {
|
|
292
|
-
global$1.load(databaseId, databaseUrl).then(function (emojis) {
|
|
293
|
-
var userEmojis = getUserDefinedEmoticons(editor);
|
|
294
|
-
processEmojis(merge(emojis, userEmojis));
|
|
295
|
-
}, function (err) {
|
|
296
|
-
console.log('Failed to load emoticons: ' + err);
|
|
297
|
-
categories.set(Optional.some({}));
|
|
298
|
-
all.set(Optional.some([]));
|
|
299
|
-
});
|
|
300
|
-
});
|
|
301
|
-
var listCategory = function (category) {
|
|
302
|
-
if (category === ALL_CATEGORY) {
|
|
303
|
-
return listAll();
|
|
304
|
-
}
|
|
305
|
-
return categories.get().bind(function (cats) {
|
|
306
|
-
return Optional.from(cats[category]);
|
|
307
|
-
}).getOr([]);
|
|
308
|
-
};
|
|
309
|
-
var listAll = function () {
|
|
310
|
-
return all.get().getOr([]);
|
|
311
|
-
};
|
|
312
|
-
var listCategories = function () {
|
|
313
|
-
return [ALL_CATEGORY].concat(keys(categories.get().getOr({})));
|
|
314
|
-
};
|
|
315
|
-
var waitForLoad = function () {
|
|
316
|
-
if (hasLoaded()) {
|
|
317
|
-
return global$3.resolve(true);
|
|
318
|
-
}
|
|
319
|
-
else {
|
|
320
|
-
return new global$3(function (resolve, reject) {
|
|
321
|
-
var numRetries = 15;
|
|
322
|
-
var interval = global$2.setInterval(function () {
|
|
323
|
-
if (hasLoaded()) {
|
|
324
|
-
global$2.clearInterval(interval);
|
|
325
|
-
resolve(true);
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
numRetries--;
|
|
329
|
-
if (numRetries < 0) {
|
|
330
|
-
console.log('Could not load emojis from url: ' + databaseUrl);
|
|
331
|
-
global$2.clearInterval(interval);
|
|
332
|
-
reject(false);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}, 100);
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
var hasLoaded = function () {
|
|
340
|
-
return categories.get().isSome() && all.get().isSome();
|
|
341
|
-
};
|
|
342
|
-
return {
|
|
343
|
-
listCategories: listCategories,
|
|
344
|
-
hasLoaded: hasLoaded,
|
|
345
|
-
waitForLoad: waitForLoad,
|
|
346
|
-
listAll: listAll,
|
|
347
|
-
listCategory: listCategory
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
var exists = function (xs, pred) {
|
|
351
|
-
for (var i = 0, len = xs.length; i < len; i++) {
|
|
352
|
-
var x = xs[i];
|
|
353
|
-
if (pred(x, i)) {
|
|
354
|
-
return true;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
return false;
|
|
358
|
-
};
|
|
359
|
-
var map$1 = function (xs, f) {
|
|
360
|
-
var len = xs.length;
|
|
361
|
-
var r = new Array(len);
|
|
362
|
-
for (var i = 0; i < len; i++) {
|
|
363
|
-
var x = xs[i];
|
|
364
|
-
r[i] = f(x, i);
|
|
365
|
-
}
|
|
366
|
-
return r;
|
|
367
|
-
};
|
|
368
|
-
var each$1 = function (xs, f) {
|
|
369
|
-
for (var i = 0, len = xs.length; i < len; i++) {
|
|
370
|
-
var x = xs[i];
|
|
371
|
-
f(x, i);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
var setup = function (editor) {
|
|
375
|
-
editor.on('PreInit', function () {
|
|
376
|
-
editor.parser.addAttributeFilter('data-emoticon', function (nodes) {
|
|
377
|
-
each$1(nodes, function (node) {
|
|
378
|
-
node.attr('data-mce-resize', 'false');
|
|
379
|
-
node.attr('data-mce-placeholder', '1');
|
|
380
|
-
});
|
|
381
|
-
});
|
|
382
|
-
});
|
|
383
|
-
};
|
|
384
|
-
var emojiMatches = function (emoji, lowerCasePattern) {
|
|
385
|
-
return contains(emoji.title.toLowerCase(), lowerCasePattern) || exists(emoji.keywords, function (k) {
|
|
386
|
-
return contains(k.toLowerCase(), lowerCasePattern);
|
|
387
|
-
});
|
|
388
|
-
};
|
|
389
|
-
var emojisFrom = function (list, pattern, maxResults) {
|
|
390
|
-
var matches = [];
|
|
391
|
-
var lowerCasePattern = pattern.toLowerCase();
|
|
392
|
-
var reachedLimit = maxResults.fold(function () {
|
|
393
|
-
return never;
|
|
394
|
-
}, function (max) {
|
|
395
|
-
return function (size) {
|
|
396
|
-
return size >= max;
|
|
397
|
-
};
|
|
398
|
-
});
|
|
399
|
-
for (var i = 0; i < list.length; i++) {
|
|
400
|
-
if (pattern.length === 0 || emojiMatches(list[i], lowerCasePattern)) {
|
|
401
|
-
matches.push({
|
|
402
|
-
value: list[i].char,
|
|
403
|
-
text: list[i].title,
|
|
404
|
-
icon: list[i].char
|
|
405
|
-
});
|
|
406
|
-
if (reachedLimit(matches.length)) {
|
|
407
|
-
break;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
return matches;
|
|
412
|
-
};
|
|
413
|
-
var init = function (editor, database) {
|
|
414
|
-
editor.ui.registry.addAutocompleter('emoticons', {
|
|
415
|
-
ch: ':',
|
|
416
|
-
columns: 'auto',
|
|
417
|
-
minChars: 2,
|
|
418
|
-
fetch: function (pattern, maxResults) {
|
|
419
|
-
return database.waitForLoad().then(function () {
|
|
420
|
-
var candidates = database.listAll();
|
|
421
|
-
return emojisFrom(candidates, pattern, Optional.some(maxResults));
|
|
422
|
-
});
|
|
423
|
-
},
|
|
424
|
-
onAction: function (autocompleteApi, rng, value) {
|
|
425
|
-
editor.selection.setRng(rng);
|
|
426
|
-
editor.insertContent(value);
|
|
427
|
-
autocompleteApi.hide();
|
|
428
|
-
}
|
|
429
|
-
});
|
|
430
|
-
};
|
|
431
|
-
var last = function (fn, rate) {
|
|
432
|
-
var timer = null;
|
|
433
|
-
var cancel = function () {
|
|
434
|
-
if (timer !== null) {
|
|
435
|
-
clearTimeout(timer);
|
|
436
|
-
timer = null;
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
var throttle = function () {
|
|
440
|
-
var args = [];
|
|
441
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
442
|
-
args[_i] = arguments[_i];
|
|
443
|
-
}
|
|
444
|
-
if (timer !== null) {
|
|
445
|
-
clearTimeout(timer);
|
|
446
|
-
}
|
|
447
|
-
timer = setTimeout(function () {
|
|
448
|
-
fn.apply(null, args);
|
|
449
|
-
timer = null;
|
|
450
|
-
}, rate);
|
|
451
|
-
};
|
|
452
|
-
return {
|
|
453
|
-
cancel: cancel,
|
|
454
|
-
throttle: throttle
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
var insertEmoticon = function (editor, ch) {
|
|
458
|
-
editor.insertContent(ch);
|
|
459
|
-
};
|
|
460
|
-
var patternName = 'pattern';
|
|
461
|
-
var open = function (editor, database) {
|
|
462
|
-
var initialState = {
|
|
463
|
-
pattern: '',
|
|
464
|
-
results: emojisFrom(database.listAll(), '', Optional.some(300))
|
|
465
|
-
};
|
|
466
|
-
var currentTab = Cell(ALL_CATEGORY);
|
|
467
|
-
var scan = function (dialogApi) {
|
|
468
|
-
var dialogData = dialogApi.getData();
|
|
469
|
-
var category = currentTab.get();
|
|
470
|
-
var candidates = database.listCategory(category);
|
|
471
|
-
var results = emojisFrom(candidates, dialogData[patternName], category === ALL_CATEGORY ? Optional.some(300) : Optional.none());
|
|
472
|
-
dialogApi.setData({ results: results });
|
|
473
|
-
};
|
|
474
|
-
var updateFilter = last(function (dialogApi) {
|
|
475
|
-
scan(dialogApi);
|
|
476
|
-
}, 200);
|
|
477
|
-
var searchField = {
|
|
478
|
-
label: 'Search',
|
|
479
|
-
type: 'input',
|
|
480
|
-
name: patternName
|
|
481
|
-
};
|
|
482
|
-
var resultsField = {
|
|
483
|
-
type: 'collection',
|
|
484
|
-
name: 'results'
|
|
485
|
-
};
|
|
486
|
-
var getInitialState = function () {
|
|
487
|
-
var body = {
|
|
488
|
-
type: 'tabpanel',
|
|
489
|
-
tabs: map$1(database.listCategories(), function (cat) {
|
|
490
|
-
return {
|
|
491
|
-
title: cat,
|
|
492
|
-
name: cat,
|
|
493
|
-
items: [
|
|
494
|
-
searchField,
|
|
495
|
-
resultsField
|
|
496
|
-
]
|
|
497
|
-
};
|
|
498
|
-
})
|
|
499
|
-
};
|
|
500
|
-
return {
|
|
501
|
-
title: 'Emoticons',
|
|
502
|
-
size: 'normal',
|
|
503
|
-
body: body,
|
|
504
|
-
initialData: initialState,
|
|
505
|
-
onTabChange: function (dialogApi, details) {
|
|
506
|
-
currentTab.set(details.newTabName);
|
|
507
|
-
updateFilter.throttle(dialogApi);
|
|
508
|
-
},
|
|
509
|
-
onChange: updateFilter.throttle,
|
|
510
|
-
onAction: function (dialogApi, actionData) {
|
|
511
|
-
if (actionData.name === 'results') {
|
|
512
|
-
insertEmoticon(editor, actionData.value);
|
|
513
|
-
dialogApi.close();
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
buttons: [{
|
|
517
|
-
type: 'cancel',
|
|
518
|
-
text: 'Close',
|
|
519
|
-
primary: true
|
|
520
|
-
}]
|
|
521
|
-
};
|
|
522
|
-
};
|
|
523
|
-
var dialogApi = editor.windowManager.open(getInitialState());
|
|
524
|
-
dialogApi.focus(patternName);
|
|
525
|
-
if (!database.hasLoaded()) {
|
|
526
|
-
dialogApi.block('Loading emoticons...');
|
|
527
|
-
database.waitForLoad().then(function () {
|
|
528
|
-
dialogApi.redial(getInitialState());
|
|
529
|
-
updateFilter.throttle(dialogApi);
|
|
530
|
-
dialogApi.focus(patternName);
|
|
531
|
-
dialogApi.unblock();
|
|
532
|
-
}).catch(function (_err) {
|
|
533
|
-
dialogApi.redial({
|
|
534
|
-
title: 'Emoticons',
|
|
535
|
-
body: {
|
|
536
|
-
type: 'panel',
|
|
537
|
-
items: [{
|
|
538
|
-
type: 'alertbanner',
|
|
539
|
-
level: 'error',
|
|
540
|
-
icon: 'warning',
|
|
541
|
-
text: '<p>Could not load emoticons</p>'
|
|
542
|
-
}]
|
|
543
|
-
},
|
|
544
|
-
buttons: [{
|
|
545
|
-
type: 'cancel',
|
|
546
|
-
text: 'Close',
|
|
547
|
-
primary: true
|
|
548
|
-
}],
|
|
549
|
-
initialData: {
|
|
550
|
-
pattern: '',
|
|
551
|
-
results: []
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
dialogApi.focus(patternName);
|
|
555
|
-
dialogApi.unblock();
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
|
-
var register = function (editor, database) {
|
|
560
|
-
var onAction = function () {
|
|
561
|
-
return open(editor, database);
|
|
562
|
-
};
|
|
563
|
-
editor.ui.registry.addButton('emoticons', {
|
|
564
|
-
tooltip: 'Emoticons',
|
|
565
|
-
icon: 'emoji',
|
|
566
|
-
onAction: onAction
|
|
567
|
-
});
|
|
568
|
-
editor.ui.registry.addMenuItem('emoticons', {
|
|
569
|
-
text: 'Emoticons...',
|
|
570
|
-
icon: 'emoji',
|
|
571
|
-
onAction: onAction
|
|
572
|
-
});
|
|
573
|
-
};
|
|
574
|
-
function Plugin() {
|
|
575
|
-
global.add('emoticons', function (editor, pluginUrl) {
|
|
576
|
-
var databaseUrl = getEmoticonDatabaseUrl(editor, pluginUrl);
|
|
577
|
-
var databaseId = getEmoticonDatabaseId(editor);
|
|
578
|
-
var database = initDatabase(editor, databaseUrl, databaseId);
|
|
579
|
-
register(editor, database);
|
|
580
|
-
init(editor, database);
|
|
581
|
-
setup(editor);
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
Plugin();
|
|
585
|
-
}());
|
|
File without changes
|