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
|
@@ -1,539 +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 Cell = function (initial) {
|
|
13
|
-
var value = initial;
|
|
14
|
-
var get = function () {
|
|
15
|
-
return value;
|
|
16
|
-
};
|
|
17
|
-
var set = function (v) {
|
|
18
|
-
value = v;
|
|
19
|
-
};
|
|
20
|
-
return {
|
|
21
|
-
get: get,
|
|
22
|
-
set: set
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
26
|
-
var __assign = function () {
|
|
27
|
-
__assign = Object.assign || function __assign(t) {
|
|
28
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29
|
-
s = arguments[i];
|
|
30
|
-
for (var p in s)
|
|
31
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
32
|
-
t[p] = s[p];
|
|
33
|
-
}
|
|
34
|
-
return t;
|
|
35
|
-
};
|
|
36
|
-
return __assign.apply(this, arguments);
|
|
37
|
-
};
|
|
38
|
-
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
39
|
-
var global$2 = tinymce.util.Tools.resolve('tinymce.html.DomParser');
|
|
40
|
-
var global$3 = tinymce.util.Tools.resolve('tinymce.html.Node');
|
|
41
|
-
var global$4 = tinymce.util.Tools.resolve('tinymce.html.Serializer');
|
|
42
|
-
var shouldHideInSourceView = function (editor) {
|
|
43
|
-
return editor.getParam('fullpage_hide_in_source_view');
|
|
44
|
-
};
|
|
45
|
-
var getDefaultXmlPi = function (editor) {
|
|
46
|
-
return editor.getParam('fullpage_default_xml_pi');
|
|
47
|
-
};
|
|
48
|
-
var getDefaultEncoding = function (editor) {
|
|
49
|
-
return editor.getParam('fullpage_default_encoding');
|
|
50
|
-
};
|
|
51
|
-
var getDefaultFontFamily = function (editor) {
|
|
52
|
-
return editor.getParam('fullpage_default_font_family');
|
|
53
|
-
};
|
|
54
|
-
var getDefaultFontSize = function (editor) {
|
|
55
|
-
return editor.getParam('fullpage_default_font_size');
|
|
56
|
-
};
|
|
57
|
-
var getDefaultTextColor = function (editor) {
|
|
58
|
-
return editor.getParam('fullpage_default_text_color');
|
|
59
|
-
};
|
|
60
|
-
var getDefaultTitle = function (editor) {
|
|
61
|
-
return editor.getParam('fullpage_default_title');
|
|
62
|
-
};
|
|
63
|
-
var getDefaultDocType = function (editor) {
|
|
64
|
-
return editor.getParam('fullpage_default_doctype', '<!DOCTYPE html>');
|
|
65
|
-
};
|
|
66
|
-
var getProtect = function (editor) {
|
|
67
|
-
return editor.getParam('protect');
|
|
68
|
-
};
|
|
69
|
-
var parseHeader = function (head) {
|
|
70
|
-
return global$2({
|
|
71
|
-
validate: false,
|
|
72
|
-
root_name: '#document'
|
|
73
|
-
}).parse(head, { format: 'xhtml' });
|
|
74
|
-
};
|
|
75
|
-
var htmlToData = function (editor, head) {
|
|
76
|
-
var headerFragment = parseHeader(head);
|
|
77
|
-
var data = {};
|
|
78
|
-
var elm, matches;
|
|
79
|
-
var getAttr = function (elm, name) {
|
|
80
|
-
var value = elm.attr(name);
|
|
81
|
-
return value || '';
|
|
82
|
-
};
|
|
83
|
-
data.fontface = getDefaultFontFamily(editor);
|
|
84
|
-
data.fontsize = getDefaultFontSize(editor);
|
|
85
|
-
elm = headerFragment.firstChild;
|
|
86
|
-
if (elm.type === 7) {
|
|
87
|
-
data.xml_pi = true;
|
|
88
|
-
matches = /encoding="([^"]+)"/.exec(elm.value);
|
|
89
|
-
if (matches) {
|
|
90
|
-
data.docencoding = matches[1];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
elm = headerFragment.getAll('#doctype')[0];
|
|
94
|
-
if (elm) {
|
|
95
|
-
data.doctype = '<!DOCTYPE' + elm.value + '>';
|
|
96
|
-
}
|
|
97
|
-
elm = headerFragment.getAll('title')[0];
|
|
98
|
-
if (elm && elm.firstChild) {
|
|
99
|
-
data.title = elm.firstChild.value;
|
|
100
|
-
}
|
|
101
|
-
global$1.each(headerFragment.getAll('meta'), function (meta) {
|
|
102
|
-
var name = meta.attr('name');
|
|
103
|
-
var httpEquiv = meta.attr('http-equiv');
|
|
104
|
-
var matches;
|
|
105
|
-
if (name) {
|
|
106
|
-
data[name.toLowerCase()] = meta.attr('content');
|
|
107
|
-
}
|
|
108
|
-
else if (httpEquiv === 'Content-Type') {
|
|
109
|
-
matches = /charset\s*=\s*(.*)\s*/gi.exec(meta.attr('content'));
|
|
110
|
-
if (matches) {
|
|
111
|
-
data.docencoding = matches[1];
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
elm = headerFragment.getAll('html')[0];
|
|
116
|
-
if (elm) {
|
|
117
|
-
data.langcode = getAttr(elm, 'lang') || getAttr(elm, 'xml:lang');
|
|
118
|
-
}
|
|
119
|
-
data.stylesheets = [];
|
|
120
|
-
global$1.each(headerFragment.getAll('link'), function (link) {
|
|
121
|
-
if (link.attr('rel') === 'stylesheet') {
|
|
122
|
-
data.stylesheets.push(link.attr('href'));
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
elm = headerFragment.getAll('body')[0];
|
|
126
|
-
if (elm) {
|
|
127
|
-
data.langdir = getAttr(elm, 'dir');
|
|
128
|
-
data.style = getAttr(elm, 'style');
|
|
129
|
-
data.visited_color = getAttr(elm, 'vlink');
|
|
130
|
-
data.link_color = getAttr(elm, 'link');
|
|
131
|
-
data.active_color = getAttr(elm, 'alink');
|
|
132
|
-
}
|
|
133
|
-
return data;
|
|
134
|
-
};
|
|
135
|
-
var dataToHtml = function (editor, data, head) {
|
|
136
|
-
var headElement, elm, value;
|
|
137
|
-
var dom = editor.dom;
|
|
138
|
-
var setAttr = function (elm, name, value) {
|
|
139
|
-
elm.attr(name, value ? value : undefined);
|
|
140
|
-
};
|
|
141
|
-
var addHeadNode = function (node) {
|
|
142
|
-
if (headElement.firstChild) {
|
|
143
|
-
headElement.insert(node, headElement.firstChild);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
headElement.append(node);
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
var headerFragment = parseHeader(head);
|
|
150
|
-
headElement = headerFragment.getAll('head')[0];
|
|
151
|
-
if (!headElement) {
|
|
152
|
-
elm = headerFragment.getAll('html')[0];
|
|
153
|
-
headElement = new global$3('head', 1);
|
|
154
|
-
if (elm.firstChild) {
|
|
155
|
-
elm.insert(headElement, elm.firstChild, true);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
elm.append(headElement);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
elm = headerFragment.firstChild;
|
|
162
|
-
if (data.xml_pi) {
|
|
163
|
-
value = 'version="1.0"';
|
|
164
|
-
if (data.docencoding) {
|
|
165
|
-
value += ' encoding="' + data.docencoding + '"';
|
|
166
|
-
}
|
|
167
|
-
if (elm.type !== 7) {
|
|
168
|
-
elm = new global$3('xml', 7);
|
|
169
|
-
headerFragment.insert(elm, headerFragment.firstChild, true);
|
|
170
|
-
}
|
|
171
|
-
elm.value = value;
|
|
172
|
-
}
|
|
173
|
-
else if (elm && elm.type === 7) {
|
|
174
|
-
elm.remove();
|
|
175
|
-
}
|
|
176
|
-
elm = headerFragment.getAll('#doctype')[0];
|
|
177
|
-
if (data.doctype) {
|
|
178
|
-
if (!elm) {
|
|
179
|
-
elm = new global$3('#doctype', 10);
|
|
180
|
-
if (data.xml_pi) {
|
|
181
|
-
headerFragment.insert(elm, headerFragment.firstChild);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
addHeadNode(elm);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
elm.value = data.doctype.substring(9, data.doctype.length - 1);
|
|
188
|
-
}
|
|
189
|
-
else if (elm) {
|
|
190
|
-
elm.remove();
|
|
191
|
-
}
|
|
192
|
-
elm = null;
|
|
193
|
-
global$1.each(headerFragment.getAll('meta'), function (meta) {
|
|
194
|
-
if (meta.attr('http-equiv') === 'Content-Type') {
|
|
195
|
-
elm = meta;
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
if (data.docencoding) {
|
|
199
|
-
if (!elm) {
|
|
200
|
-
elm = new global$3('meta', 1);
|
|
201
|
-
elm.attr('http-equiv', 'Content-Type');
|
|
202
|
-
elm.shortEnded = true;
|
|
203
|
-
addHeadNode(elm);
|
|
204
|
-
}
|
|
205
|
-
elm.attr('content', 'text/html; charset=' + data.docencoding);
|
|
206
|
-
}
|
|
207
|
-
else if (elm) {
|
|
208
|
-
elm.remove();
|
|
209
|
-
}
|
|
210
|
-
elm = headerFragment.getAll('title')[0];
|
|
211
|
-
if (data.title) {
|
|
212
|
-
if (!elm) {
|
|
213
|
-
elm = new global$3('title', 1);
|
|
214
|
-
addHeadNode(elm);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
elm.empty();
|
|
218
|
-
}
|
|
219
|
-
elm.append(new global$3('#text', 3)).value = data.title;
|
|
220
|
-
}
|
|
221
|
-
else if (elm) {
|
|
222
|
-
elm.remove();
|
|
223
|
-
}
|
|
224
|
-
global$1.each('keywords,description,author,copyright,robots'.split(','), function (name) {
|
|
225
|
-
var nodes = headerFragment.getAll('meta');
|
|
226
|
-
var i, meta;
|
|
227
|
-
var value = data[name];
|
|
228
|
-
for (i = 0; i < nodes.length; i++) {
|
|
229
|
-
meta = nodes[i];
|
|
230
|
-
if (meta.attr('name') === name) {
|
|
231
|
-
if (value) {
|
|
232
|
-
meta.attr('content', value);
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
meta.remove();
|
|
236
|
-
}
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
if (value) {
|
|
241
|
-
elm = new global$3('meta', 1);
|
|
242
|
-
elm.attr('name', name);
|
|
243
|
-
elm.attr('content', value);
|
|
244
|
-
elm.shortEnded = true;
|
|
245
|
-
addHeadNode(elm);
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
var currentStyleSheetsMap = {};
|
|
249
|
-
global$1.each(headerFragment.getAll('link'), function (stylesheet) {
|
|
250
|
-
if (stylesheet.attr('rel') === 'stylesheet') {
|
|
251
|
-
currentStyleSheetsMap[stylesheet.attr('href')] = stylesheet;
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
global$1.each(data.stylesheets, function (stylesheet) {
|
|
255
|
-
if (!currentStyleSheetsMap[stylesheet]) {
|
|
256
|
-
elm = new global$3('link', 1);
|
|
257
|
-
elm.attr({
|
|
258
|
-
rel: 'stylesheet',
|
|
259
|
-
text: 'text/css',
|
|
260
|
-
href: stylesheet
|
|
261
|
-
});
|
|
262
|
-
elm.shortEnded = true;
|
|
263
|
-
addHeadNode(elm);
|
|
264
|
-
}
|
|
265
|
-
delete currentStyleSheetsMap[stylesheet];
|
|
266
|
-
});
|
|
267
|
-
global$1.each(currentStyleSheetsMap, function (stylesheet) {
|
|
268
|
-
stylesheet.remove();
|
|
269
|
-
});
|
|
270
|
-
elm = headerFragment.getAll('body')[0];
|
|
271
|
-
if (elm) {
|
|
272
|
-
setAttr(elm, 'dir', data.langdir);
|
|
273
|
-
setAttr(elm, 'style', data.style);
|
|
274
|
-
setAttr(elm, 'vlink', data.visited_color);
|
|
275
|
-
setAttr(elm, 'link', data.link_color);
|
|
276
|
-
setAttr(elm, 'alink', data.active_color);
|
|
277
|
-
dom.setAttribs(editor.getBody(), {
|
|
278
|
-
style: data.style,
|
|
279
|
-
dir: data.dir,
|
|
280
|
-
vLink: data.visited_color,
|
|
281
|
-
link: data.link_color,
|
|
282
|
-
aLink: data.active_color
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
elm = headerFragment.getAll('html')[0];
|
|
286
|
-
if (elm) {
|
|
287
|
-
setAttr(elm, 'lang', data.langcode);
|
|
288
|
-
setAttr(elm, 'xml:lang', data.langcode);
|
|
289
|
-
}
|
|
290
|
-
if (!headElement.firstChild) {
|
|
291
|
-
headElement.remove();
|
|
292
|
-
}
|
|
293
|
-
var html = global$4({
|
|
294
|
-
validate: false,
|
|
295
|
-
indent: true,
|
|
296
|
-
indent_before: 'head,html,body,meta,title,script,link,style',
|
|
297
|
-
indent_after: 'head,html,body,meta,title,script,link,style'
|
|
298
|
-
}).serialize(headerFragment);
|
|
299
|
-
return html.substring(0, html.indexOf('</body>'));
|
|
300
|
-
};
|
|
301
|
-
var open = function (editor, headState) {
|
|
302
|
-
var data = htmlToData(editor, headState.get());
|
|
303
|
-
var defaultData = {
|
|
304
|
-
title: '',
|
|
305
|
-
keywords: '',
|
|
306
|
-
description: '',
|
|
307
|
-
robots: '',
|
|
308
|
-
author: '',
|
|
309
|
-
docencoding: ''
|
|
310
|
-
};
|
|
311
|
-
var initialData = __assign(__assign({}, defaultData), data);
|
|
312
|
-
editor.windowManager.open({
|
|
313
|
-
title: 'Metadata and Document Properties',
|
|
314
|
-
size: 'normal',
|
|
315
|
-
body: {
|
|
316
|
-
type: 'panel',
|
|
317
|
-
items: [
|
|
318
|
-
{
|
|
319
|
-
name: 'title',
|
|
320
|
-
type: 'input',
|
|
321
|
-
label: 'Title'
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
name: 'keywords',
|
|
325
|
-
type: 'input',
|
|
326
|
-
label: 'Keywords'
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
name: 'description',
|
|
330
|
-
type: 'input',
|
|
331
|
-
label: 'Description'
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
name: 'robots',
|
|
335
|
-
type: 'input',
|
|
336
|
-
label: 'Robots'
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
name: 'author',
|
|
340
|
-
type: 'input',
|
|
341
|
-
label: 'Author'
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
name: 'docencoding',
|
|
345
|
-
type: 'input',
|
|
346
|
-
label: 'Encoding'
|
|
347
|
-
}
|
|
348
|
-
]
|
|
349
|
-
},
|
|
350
|
-
buttons: [
|
|
351
|
-
{
|
|
352
|
-
type: 'cancel',
|
|
353
|
-
name: 'cancel',
|
|
354
|
-
text: 'Cancel'
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
type: 'submit',
|
|
358
|
-
name: 'save',
|
|
359
|
-
text: 'Save',
|
|
360
|
-
primary: true
|
|
361
|
-
}
|
|
362
|
-
],
|
|
363
|
-
initialData: initialData,
|
|
364
|
-
onSubmit: function (api) {
|
|
365
|
-
var nuData = api.getData();
|
|
366
|
-
var headHtml = dataToHtml(editor, global$1.extend(data, nuData), headState.get());
|
|
367
|
-
headState.set(headHtml);
|
|
368
|
-
api.close();
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
};
|
|
372
|
-
var register = function (editor, headState) {
|
|
373
|
-
editor.addCommand('mceFullPageProperties', function () {
|
|
374
|
-
open(editor, headState);
|
|
375
|
-
});
|
|
376
|
-
};
|
|
377
|
-
var protectHtml = function (protect, html) {
|
|
378
|
-
global$1.each(protect, function (pattern) {
|
|
379
|
-
html = html.replace(pattern, function (str) {
|
|
380
|
-
return '<!--mce:protected ' + escape(str) + '-->';
|
|
381
|
-
});
|
|
382
|
-
});
|
|
383
|
-
return html;
|
|
384
|
-
};
|
|
385
|
-
var unprotectHtml = function (html) {
|
|
386
|
-
return html.replace(/<!--mce:protected ([\s\S]*?)-->/g, function (a, m) {
|
|
387
|
-
return unescape(m);
|
|
388
|
-
});
|
|
389
|
-
};
|
|
390
|
-
var each = global$1.each;
|
|
391
|
-
var low = function (s) {
|
|
392
|
-
return s.replace(/<\/?[A-Z]+/g, function (a) {
|
|
393
|
-
return a.toLowerCase();
|
|
394
|
-
});
|
|
395
|
-
};
|
|
396
|
-
var handleSetContent = function (editor, headState, footState, evt) {
|
|
397
|
-
var startPos, endPos, content, styles = '';
|
|
398
|
-
var dom = editor.dom;
|
|
399
|
-
if (evt.selection) {
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
content = protectHtml(getProtect(editor), evt.content);
|
|
403
|
-
if (evt.format === 'raw' && headState.get()) {
|
|
404
|
-
return;
|
|
405
|
-
}
|
|
406
|
-
if (evt.source_view && shouldHideInSourceView(editor)) {
|
|
407
|
-
return;
|
|
408
|
-
}
|
|
409
|
-
if (content.length === 0 && !evt.source_view) {
|
|
410
|
-
content = global$1.trim(headState.get()) + '\n' + global$1.trim(content) + '\n' + global$1.trim(footState.get());
|
|
411
|
-
}
|
|
412
|
-
content = content.replace(/<(\/?)BODY/gi, '<$1body');
|
|
413
|
-
startPos = content.indexOf('<body');
|
|
414
|
-
if (startPos !== -1) {
|
|
415
|
-
startPos = content.indexOf('>', startPos);
|
|
416
|
-
headState.set(low(content.substring(0, startPos + 1)));
|
|
417
|
-
endPos = content.indexOf('</body', startPos);
|
|
418
|
-
if (endPos === -1) {
|
|
419
|
-
endPos = content.length;
|
|
420
|
-
}
|
|
421
|
-
evt.content = global$1.trim(content.substring(startPos + 1, endPos));
|
|
422
|
-
footState.set(low(content.substring(endPos)));
|
|
423
|
-
}
|
|
424
|
-
else {
|
|
425
|
-
headState.set(getDefaultHeader(editor));
|
|
426
|
-
footState.set('\n</body>\n</html>');
|
|
427
|
-
}
|
|
428
|
-
var headerFragment = parseHeader(headState.get());
|
|
429
|
-
each(headerFragment.getAll('style'), function (node) {
|
|
430
|
-
if (node.firstChild) {
|
|
431
|
-
styles += node.firstChild.value;
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
var bodyElm = headerFragment.getAll('body')[0];
|
|
435
|
-
if (bodyElm) {
|
|
436
|
-
dom.setAttribs(editor.getBody(), {
|
|
437
|
-
style: bodyElm.attr('style') || '',
|
|
438
|
-
dir: bodyElm.attr('dir') || '',
|
|
439
|
-
vLink: bodyElm.attr('vlink') || '',
|
|
440
|
-
link: bodyElm.attr('link') || '',
|
|
441
|
-
aLink: bodyElm.attr('alink') || ''
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
dom.remove('fullpage_styles');
|
|
445
|
-
var headElm = editor.getDoc().getElementsByTagName('head')[0];
|
|
446
|
-
if (styles) {
|
|
447
|
-
var styleElm = dom.add(headElm, 'style', { id: 'fullpage_styles' });
|
|
448
|
-
styleElm.appendChild(document.createTextNode(styles));
|
|
449
|
-
}
|
|
450
|
-
var currentStyleSheetsMap = {};
|
|
451
|
-
global$1.each(headElm.getElementsByTagName('link'), function (stylesheet) {
|
|
452
|
-
if (stylesheet.rel === 'stylesheet' && stylesheet.getAttribute('data-mce-fullpage')) {
|
|
453
|
-
currentStyleSheetsMap[stylesheet.href] = stylesheet;
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
global$1.each(headerFragment.getAll('link'), function (stylesheet) {
|
|
457
|
-
var href = stylesheet.attr('href');
|
|
458
|
-
if (!href) {
|
|
459
|
-
return true;
|
|
460
|
-
}
|
|
461
|
-
if (!currentStyleSheetsMap[href] && stylesheet.attr('rel') === 'stylesheet') {
|
|
462
|
-
dom.add(headElm, 'link', {
|
|
463
|
-
'rel': 'stylesheet',
|
|
464
|
-
'text': 'text/css',
|
|
465
|
-
href: href,
|
|
466
|
-
'data-mce-fullpage': '1'
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
delete currentStyleSheetsMap[href];
|
|
470
|
-
});
|
|
471
|
-
global$1.each(currentStyleSheetsMap, function (stylesheet) {
|
|
472
|
-
stylesheet.parentNode.removeChild(stylesheet);
|
|
473
|
-
});
|
|
474
|
-
};
|
|
475
|
-
var getDefaultHeader = function (editor) {
|
|
476
|
-
var header = '', value, styles = '';
|
|
477
|
-
if (getDefaultXmlPi(editor)) {
|
|
478
|
-
var piEncoding = getDefaultEncoding(editor);
|
|
479
|
-
header += '<?xml version="1.0" encoding="' + (piEncoding ? piEncoding : 'ISO-8859-1') + '" ?>\n';
|
|
480
|
-
}
|
|
481
|
-
header += getDefaultDocType(editor);
|
|
482
|
-
header += '\n<html>\n<head>\n';
|
|
483
|
-
if (value = getDefaultTitle(editor)) {
|
|
484
|
-
header += '<title>' + value + '</title>\n';
|
|
485
|
-
}
|
|
486
|
-
if (value = getDefaultEncoding(editor)) {
|
|
487
|
-
header += '<meta http-equiv="Content-Type" content="text/html; charset=' + value + '" />\n';
|
|
488
|
-
}
|
|
489
|
-
if (value = getDefaultFontFamily(editor)) {
|
|
490
|
-
styles += 'font-family: ' + value + ';';
|
|
491
|
-
}
|
|
492
|
-
if (value = getDefaultFontSize(editor)) {
|
|
493
|
-
styles += 'font-size: ' + value + ';';
|
|
494
|
-
}
|
|
495
|
-
if (value = getDefaultTextColor(editor)) {
|
|
496
|
-
styles += 'color: ' + value + ';';
|
|
497
|
-
}
|
|
498
|
-
header += '</head>\n<body' + (styles ? ' style="' + styles + '"' : '') + '>\n';
|
|
499
|
-
return header;
|
|
500
|
-
};
|
|
501
|
-
var handleGetContent = function (editor, head, foot, evt) {
|
|
502
|
-
if (evt.format === 'html' && !evt.selection && (!evt.source_view || !shouldHideInSourceView(editor))) {
|
|
503
|
-
evt.content = unprotectHtml(global$1.trim(head) + '\n' + global$1.trim(evt.content) + '\n' + global$1.trim(foot));
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
var setup = function (editor, headState, footState) {
|
|
507
|
-
editor.on('BeforeSetContent', function (evt) {
|
|
508
|
-
handleSetContent(editor, headState, footState, evt);
|
|
509
|
-
});
|
|
510
|
-
editor.on('GetContent', function (evt) {
|
|
511
|
-
handleGetContent(editor, headState.get(), footState.get(), evt);
|
|
512
|
-
});
|
|
513
|
-
};
|
|
514
|
-
var register$1 = function (editor) {
|
|
515
|
-
editor.ui.registry.addButton('fullpage', {
|
|
516
|
-
tooltip: 'Metadata and document properties',
|
|
517
|
-
icon: 'document-properties',
|
|
518
|
-
onAction: function () {
|
|
519
|
-
editor.execCommand('mceFullPageProperties');
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
|
-
editor.ui.registry.addMenuItem('fullpage', {
|
|
523
|
-
text: 'Metadata and document properties',
|
|
524
|
-
icon: 'document-properties',
|
|
525
|
-
onAction: function () {
|
|
526
|
-
editor.execCommand('mceFullPageProperties');
|
|
527
|
-
}
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
|
-
function Plugin() {
|
|
531
|
-
global.add('fullpage', function (editor) {
|
|
532
|
-
var headState = Cell(''), footState = Cell('');
|
|
533
|
-
register(editor, headState);
|
|
534
|
-
register$1(editor);
|
|
535
|
-
setup(editor, headState, footState);
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
Plugin();
|
|
539
|
-
}());
|
|
File without changes
|