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,962 +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 get = function (fullscreenState) {
|
|
27
|
-
return {
|
|
28
|
-
isFullscreen: function () {
|
|
29
|
-
return fullscreenState.get() !== null;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
var typeOf = function (x) {
|
|
34
|
-
var t = typeof x;
|
|
35
|
-
if (x === null) {
|
|
36
|
-
return 'null';
|
|
37
|
-
}
|
|
38
|
-
else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
|
39
|
-
return 'array';
|
|
40
|
-
}
|
|
41
|
-
else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
|
42
|
-
return 'string';
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
return t;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var isType = function (type) {
|
|
49
|
-
return function (value) {
|
|
50
|
-
return typeOf(value) === type;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
var isSimpleType = function (type) {
|
|
54
|
-
return function (value) {
|
|
55
|
-
return typeof value === type;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
var isString = isType('string');
|
|
59
|
-
var isArray = isType('array');
|
|
60
|
-
var isBoolean = isSimpleType('boolean');
|
|
61
|
-
var isNullable = function (a) {
|
|
62
|
-
return a === null || a === undefined;
|
|
63
|
-
};
|
|
64
|
-
var isNonNullable = function (a) {
|
|
65
|
-
return !isNullable(a);
|
|
66
|
-
};
|
|
67
|
-
var isFunction = isSimpleType('function');
|
|
68
|
-
var isNumber = isSimpleType('number');
|
|
69
|
-
var noop = function () {
|
|
70
|
-
};
|
|
71
|
-
var compose = function (fa, fb) {
|
|
72
|
-
return function () {
|
|
73
|
-
var args = [];
|
|
74
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
75
|
-
args[_i] = arguments[_i];
|
|
76
|
-
}
|
|
77
|
-
return fa(fb.apply(null, args));
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
var compose1 = function (fbc, fab) {
|
|
81
|
-
return function (a) {
|
|
82
|
-
return fbc(fab(a));
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
var constant = function (value) {
|
|
86
|
-
return function () {
|
|
87
|
-
return value;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
function curry(fn) {
|
|
91
|
-
var initialArgs = [];
|
|
92
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
93
|
-
initialArgs[_i - 1] = arguments[_i];
|
|
94
|
-
}
|
|
95
|
-
return function () {
|
|
96
|
-
var restArgs = [];
|
|
97
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
98
|
-
restArgs[_i] = arguments[_i];
|
|
99
|
-
}
|
|
100
|
-
var all = initialArgs.concat(restArgs);
|
|
101
|
-
return fn.apply(null, all);
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
var never = constant(false);
|
|
105
|
-
var always = constant(true);
|
|
106
|
-
var none = function () {
|
|
107
|
-
return NONE;
|
|
108
|
-
};
|
|
109
|
-
var NONE = function () {
|
|
110
|
-
var eq = function (o) {
|
|
111
|
-
return o.isNone();
|
|
112
|
-
};
|
|
113
|
-
var call = function (thunk) {
|
|
114
|
-
return thunk();
|
|
115
|
-
};
|
|
116
|
-
var id = function (n) {
|
|
117
|
-
return n;
|
|
118
|
-
};
|
|
119
|
-
var me = {
|
|
120
|
-
fold: function (n, _s) {
|
|
121
|
-
return n();
|
|
122
|
-
},
|
|
123
|
-
is: never,
|
|
124
|
-
isSome: never,
|
|
125
|
-
isNone: always,
|
|
126
|
-
getOr: id,
|
|
127
|
-
getOrThunk: call,
|
|
128
|
-
getOrDie: function (msg) {
|
|
129
|
-
throw new Error(msg || 'error: getOrDie called on none.');
|
|
130
|
-
},
|
|
131
|
-
getOrNull: constant(null),
|
|
132
|
-
getOrUndefined: constant(undefined),
|
|
133
|
-
or: id,
|
|
134
|
-
orThunk: call,
|
|
135
|
-
map: none,
|
|
136
|
-
each: noop,
|
|
137
|
-
bind: none,
|
|
138
|
-
exists: never,
|
|
139
|
-
forall: always,
|
|
140
|
-
filter: none,
|
|
141
|
-
equals: eq,
|
|
142
|
-
equals_: eq,
|
|
143
|
-
toArray: function () {
|
|
144
|
-
return [];
|
|
145
|
-
},
|
|
146
|
-
toString: constant('none()')
|
|
147
|
-
};
|
|
148
|
-
return me;
|
|
149
|
-
}();
|
|
150
|
-
var some = function (a) {
|
|
151
|
-
var constant_a = constant(a);
|
|
152
|
-
var self = function () {
|
|
153
|
-
return me;
|
|
154
|
-
};
|
|
155
|
-
var bind = function (f) {
|
|
156
|
-
return f(a);
|
|
157
|
-
};
|
|
158
|
-
var me = {
|
|
159
|
-
fold: function (n, s) {
|
|
160
|
-
return s(a);
|
|
161
|
-
},
|
|
162
|
-
is: function (v) {
|
|
163
|
-
return a === v;
|
|
164
|
-
},
|
|
165
|
-
isSome: always,
|
|
166
|
-
isNone: never,
|
|
167
|
-
getOr: constant_a,
|
|
168
|
-
getOrThunk: constant_a,
|
|
169
|
-
getOrDie: constant_a,
|
|
170
|
-
getOrNull: constant_a,
|
|
171
|
-
getOrUndefined: constant_a,
|
|
172
|
-
or: self,
|
|
173
|
-
orThunk: self,
|
|
174
|
-
map: function (f) {
|
|
175
|
-
return some(f(a));
|
|
176
|
-
},
|
|
177
|
-
each: function (f) {
|
|
178
|
-
f(a);
|
|
179
|
-
},
|
|
180
|
-
bind: bind,
|
|
181
|
-
exists: bind,
|
|
182
|
-
forall: bind,
|
|
183
|
-
filter: function (f) {
|
|
184
|
-
return f(a) ? me : NONE;
|
|
185
|
-
},
|
|
186
|
-
toArray: function () {
|
|
187
|
-
return [a];
|
|
188
|
-
},
|
|
189
|
-
toString: function () {
|
|
190
|
-
return 'some(' + a + ')';
|
|
191
|
-
},
|
|
192
|
-
equals: function (o) {
|
|
193
|
-
return o.is(a);
|
|
194
|
-
},
|
|
195
|
-
equals_: function (o, elementEq) {
|
|
196
|
-
return o.fold(never, function (b) {
|
|
197
|
-
return elementEq(a, b);
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
return me;
|
|
202
|
-
};
|
|
203
|
-
var from = function (value) {
|
|
204
|
-
return value === null || value === undefined ? NONE : some(value);
|
|
205
|
-
};
|
|
206
|
-
var Optional = {
|
|
207
|
-
some: some,
|
|
208
|
-
none: none,
|
|
209
|
-
from: from
|
|
210
|
-
};
|
|
211
|
-
var revocable = function (doRevoke) {
|
|
212
|
-
var subject = Cell(Optional.none());
|
|
213
|
-
var revoke = function () {
|
|
214
|
-
return subject.get().each(doRevoke);
|
|
215
|
-
};
|
|
216
|
-
var clear = function () {
|
|
217
|
-
revoke();
|
|
218
|
-
subject.set(Optional.none());
|
|
219
|
-
};
|
|
220
|
-
var isSet = function () {
|
|
221
|
-
return subject.get().isSome();
|
|
222
|
-
};
|
|
223
|
-
var set = function (s) {
|
|
224
|
-
revoke();
|
|
225
|
-
subject.set(Optional.some(s));
|
|
226
|
-
};
|
|
227
|
-
return {
|
|
228
|
-
clear: clear,
|
|
229
|
-
isSet: isSet,
|
|
230
|
-
set: set
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
var unbindable = function () {
|
|
234
|
-
return revocable(function (s) {
|
|
235
|
-
return s.unbind();
|
|
236
|
-
});
|
|
237
|
-
};
|
|
238
|
-
var value = function () {
|
|
239
|
-
var subject = Cell(Optional.none());
|
|
240
|
-
var clear = function () {
|
|
241
|
-
return subject.set(Optional.none());
|
|
242
|
-
};
|
|
243
|
-
var set = function (s) {
|
|
244
|
-
return subject.set(Optional.some(s));
|
|
245
|
-
};
|
|
246
|
-
var isSet = function () {
|
|
247
|
-
return subject.get().isSome();
|
|
248
|
-
};
|
|
249
|
-
var on = function (f) {
|
|
250
|
-
return subject.get().each(f);
|
|
251
|
-
};
|
|
252
|
-
return {
|
|
253
|
-
clear: clear,
|
|
254
|
-
set: set,
|
|
255
|
-
isSet: isSet,
|
|
256
|
-
on: on
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
var nativePush = Array.prototype.push;
|
|
260
|
-
var map = function (xs, f) {
|
|
261
|
-
var len = xs.length;
|
|
262
|
-
var r = new Array(len);
|
|
263
|
-
for (var i = 0; i < len; i++) {
|
|
264
|
-
var x = xs[i];
|
|
265
|
-
r[i] = f(x, i);
|
|
266
|
-
}
|
|
267
|
-
return r;
|
|
268
|
-
};
|
|
269
|
-
var each = function (xs, f) {
|
|
270
|
-
for (var i = 0, len = xs.length; i < len; i++) {
|
|
271
|
-
var x = xs[i];
|
|
272
|
-
f(x, i);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
var filter = function (xs, pred) {
|
|
276
|
-
var r = [];
|
|
277
|
-
for (var i = 0, len = xs.length; i < len; i++) {
|
|
278
|
-
var x = xs[i];
|
|
279
|
-
if (pred(x, i)) {
|
|
280
|
-
r.push(x);
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
return r;
|
|
284
|
-
};
|
|
285
|
-
var flatten = function (xs) {
|
|
286
|
-
var r = [];
|
|
287
|
-
for (var i = 0, len = xs.length; i < len; ++i) {
|
|
288
|
-
if (!isArray(xs[i])) {
|
|
289
|
-
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
|
290
|
-
}
|
|
291
|
-
nativePush.apply(r, xs[i]);
|
|
292
|
-
}
|
|
293
|
-
return r;
|
|
294
|
-
};
|
|
295
|
-
var bind = function (xs, f) {
|
|
296
|
-
return flatten(map(xs, f));
|
|
297
|
-
};
|
|
298
|
-
var get$1 = function (xs, i) {
|
|
299
|
-
return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
|
|
300
|
-
};
|
|
301
|
-
var head = function (xs) {
|
|
302
|
-
return get$1(xs, 0);
|
|
303
|
-
};
|
|
304
|
-
var keys = Object.keys;
|
|
305
|
-
var each$1 = function (obj, f) {
|
|
306
|
-
var props = keys(obj);
|
|
307
|
-
for (var k = 0, len = props.length; k < len; k++) {
|
|
308
|
-
var i = props[k];
|
|
309
|
-
var x = obj[i];
|
|
310
|
-
f(x, i);
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
var isSupported = function (dom) {
|
|
314
|
-
return dom.style !== undefined && isFunction(dom.style.getPropertyValue);
|
|
315
|
-
};
|
|
316
|
-
var fromHtml = function (html, scope) {
|
|
317
|
-
var doc = scope || document;
|
|
318
|
-
var div = doc.createElement('div');
|
|
319
|
-
div.innerHTML = html;
|
|
320
|
-
if (!div.hasChildNodes() || div.childNodes.length > 1) {
|
|
321
|
-
console.error('HTML does not have a single root node', html);
|
|
322
|
-
throw new Error('HTML must have a single root node');
|
|
323
|
-
}
|
|
324
|
-
return fromDom(div.childNodes[0]);
|
|
325
|
-
};
|
|
326
|
-
var fromTag = function (tag, scope) {
|
|
327
|
-
var doc = scope || document;
|
|
328
|
-
var node = doc.createElement(tag);
|
|
329
|
-
return fromDom(node);
|
|
330
|
-
};
|
|
331
|
-
var fromText = function (text, scope) {
|
|
332
|
-
var doc = scope || document;
|
|
333
|
-
var node = doc.createTextNode(text);
|
|
334
|
-
return fromDom(node);
|
|
335
|
-
};
|
|
336
|
-
var fromDom = function (node) {
|
|
337
|
-
if (node === null || node === undefined) {
|
|
338
|
-
throw new Error('Node cannot be null or undefined');
|
|
339
|
-
}
|
|
340
|
-
return { dom: node };
|
|
341
|
-
};
|
|
342
|
-
var fromPoint = function (docElm, x, y) {
|
|
343
|
-
return Optional.from(docElm.dom.elementFromPoint(x, y)).map(fromDom);
|
|
344
|
-
};
|
|
345
|
-
var SugarElement = {
|
|
346
|
-
fromHtml: fromHtml,
|
|
347
|
-
fromTag: fromTag,
|
|
348
|
-
fromText: fromText,
|
|
349
|
-
fromDom: fromDom,
|
|
350
|
-
fromPoint: fromPoint
|
|
351
|
-
};
|
|
352
|
-
var Global = typeof window !== 'undefined' ? window : Function('return this;')();
|
|
353
|
-
var DOCUMENT = 9;
|
|
354
|
-
var DOCUMENT_FRAGMENT = 11;
|
|
355
|
-
var ELEMENT = 1;
|
|
356
|
-
var TEXT = 3;
|
|
357
|
-
var type = function (element) {
|
|
358
|
-
return element.dom.nodeType;
|
|
359
|
-
};
|
|
360
|
-
var isType$1 = function (t) {
|
|
361
|
-
return function (element) {
|
|
362
|
-
return type(element) === t;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
var isElement = isType$1(ELEMENT);
|
|
366
|
-
var isText = isType$1(TEXT);
|
|
367
|
-
var isDocument = isType$1(DOCUMENT);
|
|
368
|
-
var isDocumentFragment = isType$1(DOCUMENT_FRAGMENT);
|
|
369
|
-
var is = function (element, selector) {
|
|
370
|
-
var dom = element.dom;
|
|
371
|
-
if (dom.nodeType !== ELEMENT) {
|
|
372
|
-
return false;
|
|
373
|
-
}
|
|
374
|
-
else {
|
|
375
|
-
var elem = dom;
|
|
376
|
-
if (elem.matches !== undefined) {
|
|
377
|
-
return elem.matches(selector);
|
|
378
|
-
}
|
|
379
|
-
else if (elem.msMatchesSelector !== undefined) {
|
|
380
|
-
return elem.msMatchesSelector(selector);
|
|
381
|
-
}
|
|
382
|
-
else if (elem.webkitMatchesSelector !== undefined) {
|
|
383
|
-
return elem.webkitMatchesSelector(selector);
|
|
384
|
-
}
|
|
385
|
-
else if (elem.mozMatchesSelector !== undefined) {
|
|
386
|
-
return elem.mozMatchesSelector(selector);
|
|
387
|
-
}
|
|
388
|
-
else {
|
|
389
|
-
throw new Error('Browser lacks native selectors');
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
var bypassSelector = function (dom) {
|
|
394
|
-
return dom.nodeType !== ELEMENT && dom.nodeType !== DOCUMENT && dom.nodeType !== DOCUMENT_FRAGMENT || dom.childElementCount === 0;
|
|
395
|
-
};
|
|
396
|
-
var all = function (selector, scope) {
|
|
397
|
-
var base = scope === undefined ? document : scope.dom;
|
|
398
|
-
return bypassSelector(base) ? [] : map(base.querySelectorAll(selector), SugarElement.fromDom);
|
|
399
|
-
};
|
|
400
|
-
var eq = function (e1, e2) {
|
|
401
|
-
return e1.dom === e2.dom;
|
|
402
|
-
};
|
|
403
|
-
var owner = function (element) {
|
|
404
|
-
return SugarElement.fromDom(element.dom.ownerDocument);
|
|
405
|
-
};
|
|
406
|
-
var documentOrOwner = function (dos) {
|
|
407
|
-
return isDocument(dos) ? dos : owner(dos);
|
|
408
|
-
};
|
|
409
|
-
var parent = function (element) {
|
|
410
|
-
return Optional.from(element.dom.parentNode).map(SugarElement.fromDom);
|
|
411
|
-
};
|
|
412
|
-
var parents = function (element, isRoot) {
|
|
413
|
-
var stop = isFunction(isRoot) ? isRoot : never;
|
|
414
|
-
var dom = element.dom;
|
|
415
|
-
var ret = [];
|
|
416
|
-
while (dom.parentNode !== null && dom.parentNode !== undefined) {
|
|
417
|
-
var rawParent = dom.parentNode;
|
|
418
|
-
var p = SugarElement.fromDom(rawParent);
|
|
419
|
-
ret.push(p);
|
|
420
|
-
if (stop(p) === true) {
|
|
421
|
-
break;
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
dom = rawParent;
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
return ret;
|
|
428
|
-
};
|
|
429
|
-
var siblings = function (element) {
|
|
430
|
-
var filterSelf = function (elements) {
|
|
431
|
-
return filter(elements, function (x) {
|
|
432
|
-
return !eq(element, x);
|
|
433
|
-
});
|
|
434
|
-
};
|
|
435
|
-
return parent(element).map(children).map(filterSelf).getOr([]);
|
|
436
|
-
};
|
|
437
|
-
var children = function (element) {
|
|
438
|
-
return map(element.dom.childNodes, SugarElement.fromDom);
|
|
439
|
-
};
|
|
440
|
-
var isShadowRoot = function (dos) {
|
|
441
|
-
return isDocumentFragment(dos) && isNonNullable(dos.dom.host);
|
|
442
|
-
};
|
|
443
|
-
var supported = isFunction(Element.prototype.attachShadow) && isFunction(Node.prototype.getRootNode);
|
|
444
|
-
var isSupported$1 = constant(supported);
|
|
445
|
-
var getRootNode = supported ? function (e) {
|
|
446
|
-
return SugarElement.fromDom(e.dom.getRootNode());
|
|
447
|
-
} : documentOrOwner;
|
|
448
|
-
var getShadowRoot = function (e) {
|
|
449
|
-
var r = getRootNode(e);
|
|
450
|
-
return isShadowRoot(r) ? Optional.some(r) : Optional.none();
|
|
451
|
-
};
|
|
452
|
-
var getShadowHost = function (e) {
|
|
453
|
-
return SugarElement.fromDom(e.dom.host);
|
|
454
|
-
};
|
|
455
|
-
var getOriginalEventTarget = function (event) {
|
|
456
|
-
if (isSupported$1() && isNonNullable(event.target)) {
|
|
457
|
-
var el = SugarElement.fromDom(event.target);
|
|
458
|
-
if (isElement(el) && isOpenShadowHost(el)) {
|
|
459
|
-
if (event.composed && event.composedPath) {
|
|
460
|
-
var composedPath = event.composedPath();
|
|
461
|
-
if (composedPath) {
|
|
462
|
-
return head(composedPath);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
return Optional.from(event.target);
|
|
468
|
-
};
|
|
469
|
-
var isOpenShadowHost = function (element) {
|
|
470
|
-
return isNonNullable(element.dom.shadowRoot);
|
|
471
|
-
};
|
|
472
|
-
var inBody = function (element) {
|
|
473
|
-
var dom = isText(element) ? element.dom.parentNode : element.dom;
|
|
474
|
-
if (dom === undefined || dom === null || dom.ownerDocument === null) {
|
|
475
|
-
return false;
|
|
476
|
-
}
|
|
477
|
-
var doc = dom.ownerDocument;
|
|
478
|
-
return getShadowRoot(SugarElement.fromDom(dom)).fold(function () {
|
|
479
|
-
return doc.body.contains(dom);
|
|
480
|
-
}, compose1(inBody, getShadowHost));
|
|
481
|
-
};
|
|
482
|
-
var getBody = function (doc) {
|
|
483
|
-
var b = doc.dom.body;
|
|
484
|
-
if (b === null || b === undefined) {
|
|
485
|
-
throw new Error('Body is not available yet');
|
|
486
|
-
}
|
|
487
|
-
return SugarElement.fromDom(b);
|
|
488
|
-
};
|
|
489
|
-
var rawSet = function (dom, key, value) {
|
|
490
|
-
if (isString(value) || isBoolean(value) || isNumber(value)) {
|
|
491
|
-
dom.setAttribute(key, value + '');
|
|
492
|
-
}
|
|
493
|
-
else {
|
|
494
|
-
console.error('Invalid call to Attribute.set. Key ', key, ':: Value ', value, ':: Element ', dom);
|
|
495
|
-
throw new Error('Attribute value was not simple');
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
var set = function (element, key, value) {
|
|
499
|
-
rawSet(element.dom, key, value);
|
|
500
|
-
};
|
|
501
|
-
var get$2 = function (element, key) {
|
|
502
|
-
var v = element.dom.getAttribute(key);
|
|
503
|
-
return v === null ? undefined : v;
|
|
504
|
-
};
|
|
505
|
-
var remove = function (element, key) {
|
|
506
|
-
element.dom.removeAttribute(key);
|
|
507
|
-
};
|
|
508
|
-
var internalSet = function (dom, property, value) {
|
|
509
|
-
if (!isString(value)) {
|
|
510
|
-
console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom);
|
|
511
|
-
throw new Error('CSS value must be a string: ' + value);
|
|
512
|
-
}
|
|
513
|
-
if (isSupported(dom)) {
|
|
514
|
-
dom.style.setProperty(property, value);
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
var setAll = function (element, css) {
|
|
518
|
-
var dom = element.dom;
|
|
519
|
-
each$1(css, function (v, k) {
|
|
520
|
-
internalSet(dom, k, v);
|
|
521
|
-
});
|
|
522
|
-
};
|
|
523
|
-
var get$3 = function (element, property) {
|
|
524
|
-
var dom = element.dom;
|
|
525
|
-
var styles = window.getComputedStyle(dom);
|
|
526
|
-
var r = styles.getPropertyValue(property);
|
|
527
|
-
return r === '' && !inBody(element) ? getUnsafeProperty(dom, property) : r;
|
|
528
|
-
};
|
|
529
|
-
var getUnsafeProperty = function (dom, property) {
|
|
530
|
-
return isSupported(dom) ? dom.style.getPropertyValue(property) : '';
|
|
531
|
-
};
|
|
532
|
-
var mkEvent = function (target, x, y, stop, prevent, kill, raw) {
|
|
533
|
-
return {
|
|
534
|
-
target: target,
|
|
535
|
-
x: x,
|
|
536
|
-
y: y,
|
|
537
|
-
stop: stop,
|
|
538
|
-
prevent: prevent,
|
|
539
|
-
kill: kill,
|
|
540
|
-
raw: raw
|
|
541
|
-
};
|
|
542
|
-
};
|
|
543
|
-
var fromRawEvent = function (rawEvent) {
|
|
544
|
-
var target = SugarElement.fromDom(getOriginalEventTarget(rawEvent).getOr(rawEvent.target));
|
|
545
|
-
var stop = function () {
|
|
546
|
-
return rawEvent.stopPropagation();
|
|
547
|
-
};
|
|
548
|
-
var prevent = function () {
|
|
549
|
-
return rawEvent.preventDefault();
|
|
550
|
-
};
|
|
551
|
-
var kill = compose(prevent, stop);
|
|
552
|
-
return mkEvent(target, rawEvent.clientX, rawEvent.clientY, stop, prevent, kill, rawEvent);
|
|
553
|
-
};
|
|
554
|
-
var handle = function (filter, handler) {
|
|
555
|
-
return function (rawEvent) {
|
|
556
|
-
if (filter(rawEvent)) {
|
|
557
|
-
handler(fromRawEvent(rawEvent));
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
|
-
var binder = function (element, event, filter, handler, useCapture) {
|
|
562
|
-
var wrapped = handle(filter, handler);
|
|
563
|
-
element.dom.addEventListener(event, wrapped, useCapture);
|
|
564
|
-
return { unbind: curry(unbind, element, event, wrapped, useCapture) };
|
|
565
|
-
};
|
|
566
|
-
var bind$1 = function (element, event, filter, handler) {
|
|
567
|
-
return binder(element, event, filter, handler, false);
|
|
568
|
-
};
|
|
569
|
-
var unbind = function (element, event, handler, useCapture) {
|
|
570
|
-
element.dom.removeEventListener(event, handler, useCapture);
|
|
571
|
-
};
|
|
572
|
-
var filter$1 = always;
|
|
573
|
-
var bind$2 = function (element, event, handler) {
|
|
574
|
-
return bind$1(element, event, filter$1, handler);
|
|
575
|
-
};
|
|
576
|
-
var r = function (left, top) {
|
|
577
|
-
var translate = function (x, y) {
|
|
578
|
-
return r(left + x, top + y);
|
|
579
|
-
};
|
|
580
|
-
return {
|
|
581
|
-
left: left,
|
|
582
|
-
top: top,
|
|
583
|
-
translate: translate
|
|
584
|
-
};
|
|
585
|
-
};
|
|
586
|
-
var SugarPosition = r;
|
|
587
|
-
var get$4 = function (_DOC) {
|
|
588
|
-
var doc = _DOC !== undefined ? _DOC.dom : document;
|
|
589
|
-
var x = doc.body.scrollLeft || doc.documentElement.scrollLeft;
|
|
590
|
-
var y = doc.body.scrollTop || doc.documentElement.scrollTop;
|
|
591
|
-
return SugarPosition(x, y);
|
|
592
|
-
};
|
|
593
|
-
var get$5 = function (_win) {
|
|
594
|
-
var win = _win === undefined ? window : _win;
|
|
595
|
-
return Optional.from(win['visualViewport']);
|
|
596
|
-
};
|
|
597
|
-
var bounds = function (x, y, width, height) {
|
|
598
|
-
return {
|
|
599
|
-
x: x,
|
|
600
|
-
y: y,
|
|
601
|
-
width: width,
|
|
602
|
-
height: height,
|
|
603
|
-
right: x + width,
|
|
604
|
-
bottom: y + height
|
|
605
|
-
};
|
|
606
|
-
};
|
|
607
|
-
var getBounds = function (_win) {
|
|
608
|
-
var win = _win === undefined ? window : _win;
|
|
609
|
-
var doc = win.document;
|
|
610
|
-
var scroll = get$4(SugarElement.fromDom(doc));
|
|
611
|
-
return get$5(win).fold(function () {
|
|
612
|
-
var html = win.document.documentElement;
|
|
613
|
-
var width = html.clientWidth;
|
|
614
|
-
var height = html.clientHeight;
|
|
615
|
-
return bounds(scroll.left, scroll.top, width, height);
|
|
616
|
-
}, function (visualViewport) {
|
|
617
|
-
return bounds(Math.max(visualViewport.pageLeft, scroll.left), Math.max(visualViewport.pageTop, scroll.top), visualViewport.width, visualViewport.height);
|
|
618
|
-
});
|
|
619
|
-
};
|
|
620
|
-
var bind$3 = function (name, callback, _win) {
|
|
621
|
-
return get$5(_win).map(function (visualViewport) {
|
|
622
|
-
var handler = function (e) {
|
|
623
|
-
return callback(fromRawEvent(e));
|
|
624
|
-
};
|
|
625
|
-
visualViewport.addEventListener(name, handler);
|
|
626
|
-
return {
|
|
627
|
-
unbind: function () {
|
|
628
|
-
return visualViewport.removeEventListener(name, handler);
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
|
-
}).getOrThunk(function () {
|
|
632
|
-
return { unbind: noop };
|
|
633
|
-
});
|
|
634
|
-
};
|
|
635
|
-
var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
|
636
|
-
var global$2 = tinymce.util.Tools.resolve('tinymce.Env');
|
|
637
|
-
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
638
|
-
var fireFullscreenStateChanged = function (editor, state) {
|
|
639
|
-
editor.fire('FullscreenStateChanged', { state: state });
|
|
640
|
-
};
|
|
641
|
-
var getFullscreenNative = function (editor) {
|
|
642
|
-
return editor.getParam('fullscreen_native', false, 'boolean');
|
|
643
|
-
};
|
|
644
|
-
var getFullscreenRoot = function (editor) {
|
|
645
|
-
var elem = SugarElement.fromDom(editor.getElement());
|
|
646
|
-
return getShadowRoot(elem).map(getShadowHost).getOrThunk(function () {
|
|
647
|
-
return getBody(owner(elem));
|
|
648
|
-
});
|
|
649
|
-
};
|
|
650
|
-
var getFullscreenElement = function (root) {
|
|
651
|
-
if (root.fullscreenElement !== undefined) {
|
|
652
|
-
return root.fullscreenElement;
|
|
653
|
-
}
|
|
654
|
-
else if (root.msFullscreenElement !== undefined) {
|
|
655
|
-
return root.msFullscreenElement;
|
|
656
|
-
}
|
|
657
|
-
else if (root.webkitFullscreenElement !== undefined) {
|
|
658
|
-
return root.webkitFullscreenElement;
|
|
659
|
-
}
|
|
660
|
-
else {
|
|
661
|
-
return null;
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
var getFullscreenchangeEventName = function () {
|
|
665
|
-
if (document.fullscreenElement !== undefined) {
|
|
666
|
-
return 'fullscreenchange';
|
|
667
|
-
}
|
|
668
|
-
else if (document.msFullscreenElement !== undefined) {
|
|
669
|
-
return 'MSFullscreenChange';
|
|
670
|
-
}
|
|
671
|
-
else if (document.webkitFullscreenElement !== undefined) {
|
|
672
|
-
return 'webkitfullscreenchange';
|
|
673
|
-
}
|
|
674
|
-
else {
|
|
675
|
-
return 'fullscreenchange';
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
var requestFullscreen = function (sugarElem) {
|
|
679
|
-
var elem = sugarElem.dom;
|
|
680
|
-
if (elem.requestFullscreen) {
|
|
681
|
-
elem.requestFullscreen();
|
|
682
|
-
}
|
|
683
|
-
else if (elem.msRequestFullscreen) {
|
|
684
|
-
elem.msRequestFullscreen();
|
|
685
|
-
}
|
|
686
|
-
else if (elem.webkitRequestFullScreen) {
|
|
687
|
-
elem.webkitRequestFullScreen();
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
var exitFullscreen = function (sugarDoc) {
|
|
691
|
-
var doc = sugarDoc.dom;
|
|
692
|
-
if (doc.exitFullscreen) {
|
|
693
|
-
doc.exitFullscreen();
|
|
694
|
-
}
|
|
695
|
-
else if (doc.msExitFullscreen) {
|
|
696
|
-
doc.msExitFullscreen();
|
|
697
|
-
}
|
|
698
|
-
else if (doc.webkitCancelFullScreen) {
|
|
699
|
-
doc.webkitCancelFullScreen();
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
var isFullscreenElement = function (elem) {
|
|
703
|
-
return elem.dom === getFullscreenElement(owner(elem).dom);
|
|
704
|
-
};
|
|
705
|
-
var ancestors = function (scope, predicate, isRoot) {
|
|
706
|
-
return filter(parents(scope, isRoot), predicate);
|
|
707
|
-
};
|
|
708
|
-
var siblings$1 = function (scope, predicate) {
|
|
709
|
-
return filter(siblings(scope), predicate);
|
|
710
|
-
};
|
|
711
|
-
var all$1 = function (selector) {
|
|
712
|
-
return all(selector);
|
|
713
|
-
};
|
|
714
|
-
var ancestors$1 = function (scope, selector, isRoot) {
|
|
715
|
-
return ancestors(scope, function (e) {
|
|
716
|
-
return is(e, selector);
|
|
717
|
-
}, isRoot);
|
|
718
|
-
};
|
|
719
|
-
var siblings$2 = function (scope, selector) {
|
|
720
|
-
return siblings$1(scope, function (e) {
|
|
721
|
-
return is(e, selector);
|
|
722
|
-
});
|
|
723
|
-
};
|
|
724
|
-
var attr = 'data-ephox-mobile-fullscreen-style';
|
|
725
|
-
var siblingStyles = 'display:none!important;';
|
|
726
|
-
var ancestorPosition = 'position:absolute!important;';
|
|
727
|
-
var ancestorStyles = 'top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;';
|
|
728
|
-
var bgFallback = 'background-color:rgb(255,255,255)!important;';
|
|
729
|
-
var isAndroid = global$2.os.isAndroid();
|
|
730
|
-
var matchColor = function (editorBody) {
|
|
731
|
-
var color = get$3(editorBody, 'background-color');
|
|
732
|
-
return color !== undefined && color !== '' ? 'background-color:' + color + '!important' : bgFallback;
|
|
733
|
-
};
|
|
734
|
-
var clobberStyles = function (dom, container, editorBody) {
|
|
735
|
-
var gatherSiblings = function (element) {
|
|
736
|
-
return siblings$2(element, '*:not(.tox-silver-sink)');
|
|
737
|
-
};
|
|
738
|
-
var clobber = function (clobberStyle) {
|
|
739
|
-
return function (element) {
|
|
740
|
-
var styles = get$2(element, 'style');
|
|
741
|
-
var backup = styles === undefined ? 'no-styles' : styles.trim();
|
|
742
|
-
if (backup === clobberStyle) {
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
else {
|
|
746
|
-
set(element, attr, backup);
|
|
747
|
-
setAll(element, dom.parseStyle(clobberStyle));
|
|
748
|
-
}
|
|
749
|
-
};
|
|
750
|
-
};
|
|
751
|
-
var ancestors = ancestors$1(container, '*');
|
|
752
|
-
var siblings = bind(ancestors, gatherSiblings);
|
|
753
|
-
var bgColor = matchColor(editorBody);
|
|
754
|
-
each(siblings, clobber(siblingStyles));
|
|
755
|
-
each(ancestors, clobber(ancestorPosition + ancestorStyles + bgColor));
|
|
756
|
-
var containerStyles = isAndroid === true ? '' : ancestorPosition;
|
|
757
|
-
clobber(containerStyles + ancestorStyles + bgColor)(container);
|
|
758
|
-
};
|
|
759
|
-
var restoreStyles = function (dom) {
|
|
760
|
-
var clobberedEls = all$1('[' + attr + ']');
|
|
761
|
-
each(clobberedEls, function (element) {
|
|
762
|
-
var restore = get$2(element, attr);
|
|
763
|
-
if (restore !== 'no-styles') {
|
|
764
|
-
setAll(element, dom.parseStyle(restore));
|
|
765
|
-
}
|
|
766
|
-
else {
|
|
767
|
-
remove(element, 'style');
|
|
768
|
-
}
|
|
769
|
-
remove(element, attr);
|
|
770
|
-
});
|
|
771
|
-
};
|
|
772
|
-
var DOM = global$1.DOM;
|
|
773
|
-
var getScrollPos = function () {
|
|
774
|
-
var vp = getBounds(window);
|
|
775
|
-
return {
|
|
776
|
-
x: vp.x,
|
|
777
|
-
y: vp.y
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
|
-
var setScrollPos = function (pos) {
|
|
781
|
-
window.scrollTo(pos.x, pos.y);
|
|
782
|
-
};
|
|
783
|
-
var viewportUpdate = get$5().fold(function () {
|
|
784
|
-
return {
|
|
785
|
-
bind: noop,
|
|
786
|
-
unbind: noop
|
|
787
|
-
};
|
|
788
|
-
}, function (visualViewport) {
|
|
789
|
-
var editorContainer = value();
|
|
790
|
-
var resizeBinder = unbindable();
|
|
791
|
-
var scrollBinder = unbindable();
|
|
792
|
-
var refreshScroll = function () {
|
|
793
|
-
document.body.scrollTop = 0;
|
|
794
|
-
document.documentElement.scrollTop = 0;
|
|
795
|
-
};
|
|
796
|
-
var refreshVisualViewport = function () {
|
|
797
|
-
window.requestAnimationFrame(function () {
|
|
798
|
-
editorContainer.on(function (container) {
|
|
799
|
-
return setAll(container, {
|
|
800
|
-
top: visualViewport.offsetTop + 'px',
|
|
801
|
-
left: visualViewport.offsetLeft + 'px',
|
|
802
|
-
height: visualViewport.height + 'px',
|
|
803
|
-
width: visualViewport.width + 'px'
|
|
804
|
-
});
|
|
805
|
-
});
|
|
806
|
-
});
|
|
807
|
-
};
|
|
808
|
-
var update = global$3.throttle(function () {
|
|
809
|
-
refreshScroll();
|
|
810
|
-
refreshVisualViewport();
|
|
811
|
-
}, 50);
|
|
812
|
-
var bind = function (element) {
|
|
813
|
-
editorContainer.set(element);
|
|
814
|
-
update();
|
|
815
|
-
resizeBinder.set(bind$3('resize', update));
|
|
816
|
-
scrollBinder.set(bind$3('scroll', update));
|
|
817
|
-
};
|
|
818
|
-
var unbind = function () {
|
|
819
|
-
editorContainer.on(function () {
|
|
820
|
-
resizeBinder.clear();
|
|
821
|
-
scrollBinder.clear();
|
|
822
|
-
});
|
|
823
|
-
editorContainer.clear();
|
|
824
|
-
};
|
|
825
|
-
return {
|
|
826
|
-
bind: bind,
|
|
827
|
-
unbind: unbind
|
|
828
|
-
};
|
|
829
|
-
});
|
|
830
|
-
var toggleFullscreen = function (editor, fullscreenState) {
|
|
831
|
-
var body = document.body;
|
|
832
|
-
var documentElement = document.documentElement;
|
|
833
|
-
var editorContainer = editor.getContainer();
|
|
834
|
-
var editorContainerS = SugarElement.fromDom(editorContainer);
|
|
835
|
-
var fullscreenRoot = getFullscreenRoot(editor);
|
|
836
|
-
var fullscreenInfo = fullscreenState.get();
|
|
837
|
-
var editorBody = SugarElement.fromDom(editor.getBody());
|
|
838
|
-
var isTouch = global$2.deviceType.isTouch();
|
|
839
|
-
var editorContainerStyle = editorContainer.style;
|
|
840
|
-
var iframe = editor.iframeElement;
|
|
841
|
-
var iframeStyle = iframe.style;
|
|
842
|
-
var handleClasses = function (handler) {
|
|
843
|
-
handler(body, 'tox-fullscreen');
|
|
844
|
-
handler(documentElement, 'tox-fullscreen');
|
|
845
|
-
handler(editorContainer, 'tox-fullscreen');
|
|
846
|
-
getShadowRoot(editorContainerS).map(function (root) {
|
|
847
|
-
return getShadowHost(root).dom;
|
|
848
|
-
}).each(function (host) {
|
|
849
|
-
handler(host, 'tox-fullscreen');
|
|
850
|
-
handler(host, 'tox-shadowhost');
|
|
851
|
-
});
|
|
852
|
-
};
|
|
853
|
-
var cleanup = function () {
|
|
854
|
-
if (isTouch) {
|
|
855
|
-
restoreStyles(editor.dom);
|
|
856
|
-
}
|
|
857
|
-
handleClasses(DOM.removeClass);
|
|
858
|
-
viewportUpdate.unbind();
|
|
859
|
-
Optional.from(fullscreenState.get()).each(function (info) {
|
|
860
|
-
return info.fullscreenChangeHandler.unbind();
|
|
861
|
-
});
|
|
862
|
-
};
|
|
863
|
-
if (!fullscreenInfo) {
|
|
864
|
-
var fullscreenChangeHandler = bind$2(owner(fullscreenRoot), getFullscreenchangeEventName(), function (_evt) {
|
|
865
|
-
if (getFullscreenNative(editor)) {
|
|
866
|
-
if (!isFullscreenElement(fullscreenRoot) && fullscreenState.get() !== null) {
|
|
867
|
-
toggleFullscreen(editor, fullscreenState);
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
});
|
|
871
|
-
var newFullScreenInfo = {
|
|
872
|
-
scrollPos: getScrollPos(),
|
|
873
|
-
containerWidth: editorContainerStyle.width,
|
|
874
|
-
containerHeight: editorContainerStyle.height,
|
|
875
|
-
containerTop: editorContainerStyle.top,
|
|
876
|
-
containerLeft: editorContainerStyle.left,
|
|
877
|
-
iframeWidth: iframeStyle.width,
|
|
878
|
-
iframeHeight: iframeStyle.height,
|
|
879
|
-
fullscreenChangeHandler: fullscreenChangeHandler
|
|
880
|
-
};
|
|
881
|
-
if (isTouch) {
|
|
882
|
-
clobberStyles(editor.dom, editorContainerS, editorBody);
|
|
883
|
-
}
|
|
884
|
-
iframeStyle.width = iframeStyle.height = '100%';
|
|
885
|
-
editorContainerStyle.width = editorContainerStyle.height = '';
|
|
886
|
-
handleClasses(DOM.addClass);
|
|
887
|
-
viewportUpdate.bind(editorContainerS);
|
|
888
|
-
editor.on('remove', cleanup);
|
|
889
|
-
fullscreenState.set(newFullScreenInfo);
|
|
890
|
-
if (getFullscreenNative(editor)) {
|
|
891
|
-
requestFullscreen(fullscreenRoot);
|
|
892
|
-
}
|
|
893
|
-
fireFullscreenStateChanged(editor, true);
|
|
894
|
-
}
|
|
895
|
-
else {
|
|
896
|
-
fullscreenInfo.fullscreenChangeHandler.unbind();
|
|
897
|
-
if (getFullscreenNative(editor) && isFullscreenElement(fullscreenRoot)) {
|
|
898
|
-
exitFullscreen(owner(fullscreenRoot));
|
|
899
|
-
}
|
|
900
|
-
iframeStyle.width = fullscreenInfo.iframeWidth;
|
|
901
|
-
iframeStyle.height = fullscreenInfo.iframeHeight;
|
|
902
|
-
editorContainerStyle.width = fullscreenInfo.containerWidth;
|
|
903
|
-
editorContainerStyle.height = fullscreenInfo.containerHeight;
|
|
904
|
-
editorContainerStyle.top = fullscreenInfo.containerTop;
|
|
905
|
-
editorContainerStyle.left = fullscreenInfo.containerLeft;
|
|
906
|
-
setScrollPos(fullscreenInfo.scrollPos);
|
|
907
|
-
fullscreenState.set(null);
|
|
908
|
-
fireFullscreenStateChanged(editor, false);
|
|
909
|
-
cleanup();
|
|
910
|
-
editor.off('remove', cleanup);
|
|
911
|
-
}
|
|
912
|
-
};
|
|
913
|
-
var register = function (editor, fullscreenState) {
|
|
914
|
-
editor.addCommand('mceFullScreen', function () {
|
|
915
|
-
toggleFullscreen(editor, fullscreenState);
|
|
916
|
-
});
|
|
917
|
-
};
|
|
918
|
-
var makeSetupHandler = function (editor, fullscreenState) {
|
|
919
|
-
return function (api) {
|
|
920
|
-
api.setActive(fullscreenState.get() !== null);
|
|
921
|
-
var editorEventCallback = function (e) {
|
|
922
|
-
return api.setActive(e.state);
|
|
923
|
-
};
|
|
924
|
-
editor.on('FullscreenStateChanged', editorEventCallback);
|
|
925
|
-
return function () {
|
|
926
|
-
return editor.off('FullscreenStateChanged', editorEventCallback);
|
|
927
|
-
};
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
var register$1 = function (editor, fullscreenState) {
|
|
931
|
-
editor.ui.registry.addToggleMenuItem('fullscreen', {
|
|
932
|
-
text: 'Fullscreen',
|
|
933
|
-
icon: 'fullscreen',
|
|
934
|
-
shortcut: 'Meta+Shift+F',
|
|
935
|
-
onAction: function () {
|
|
936
|
-
return editor.execCommand('mceFullScreen');
|
|
937
|
-
},
|
|
938
|
-
onSetup: makeSetupHandler(editor, fullscreenState)
|
|
939
|
-
});
|
|
940
|
-
editor.ui.registry.addToggleButton('fullscreen', {
|
|
941
|
-
tooltip: 'Fullscreen',
|
|
942
|
-
icon: 'fullscreen',
|
|
943
|
-
onAction: function () {
|
|
944
|
-
return editor.execCommand('mceFullScreen');
|
|
945
|
-
},
|
|
946
|
-
onSetup: makeSetupHandler(editor, fullscreenState)
|
|
947
|
-
});
|
|
948
|
-
};
|
|
949
|
-
function Plugin() {
|
|
950
|
-
global.add('fullscreen', function (editor) {
|
|
951
|
-
var fullscreenState = Cell(null);
|
|
952
|
-
if (editor.inline) {
|
|
953
|
-
return get(fullscreenState);
|
|
954
|
-
}
|
|
955
|
-
register(editor, fullscreenState);
|
|
956
|
-
register$1(editor, fullscreenState);
|
|
957
|
-
editor.addShortcut('Meta+Shift+F', '', 'mceFullScreen');
|
|
958
|
-
return get(fullscreenState);
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
Plugin();
|
|
962
|
-
}());
|