epx-frame 3.5.0-shpgy.1
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/.browserslistrc +4 -0
- package/.dockerignore +2 -0
- package/.editorconfig +5 -0
- package/.env.dev +6 -0
- package/.env.development +4 -0
- package/.env.localize +7 -0
- package/.env.ppe +6 -0
- package/.env.prd +6 -0
- package/.env.pre +6 -0
- package/.env.production +6 -0
- package/.env.simple +8 -0
- package/.eslintignore +2 -0
- package/.eslintrc.js +24 -0
- package/Dockerfile +12 -0
- package/README.md +108 -0
- package/babel.config.js +26 -0
- package/build/webpack.component.js +54 -0
- package/build/webpack.dev.js +114 -0
- package/build/webpack.prod.js +133 -0
- package/nginx.conf +38 -0
- package/package.json +93 -0
- package/public/403.html +77 -0
- package/public/cmaps/78-EUC-H.bcmap +0 -0
- package/public/cmaps/78-EUC-V.bcmap +0 -0
- package/public/cmaps/78-H.bcmap +0 -0
- package/public/cmaps/78-RKSJ-H.bcmap +0 -0
- package/public/cmaps/78-RKSJ-V.bcmap +0 -0
- package/public/cmaps/78-V.bcmap +0 -0
- package/public/cmaps/78ms-RKSJ-H.bcmap +0 -0
- package/public/cmaps/78ms-RKSJ-V.bcmap +0 -0
- package/public/cmaps/83pv-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90ms-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90ms-RKSJ-V.bcmap +0 -0
- package/public/cmaps/90msp-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90msp-RKSJ-V.bcmap +0 -0
- package/public/cmaps/90pv-RKSJ-H.bcmap +0 -0
- package/public/cmaps/90pv-RKSJ-V.bcmap +0 -0
- package/public/cmaps/Add-H.bcmap +0 -0
- package/public/cmaps/Add-RKSJ-H.bcmap +0 -0
- package/public/cmaps/Add-RKSJ-V.bcmap +0 -0
- package/public/cmaps/Add-V.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-0.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-1.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-2.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-3.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-4.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-5.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-6.bcmap +0 -0
- package/public/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-0.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-1.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-2.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-3.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-4.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-5.bcmap +0 -0
- package/public/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-0.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-1.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-2.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-3.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-4.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-5.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-6.bcmap +0 -0
- package/public/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-0.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-1.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-2.bcmap +0 -0
- package/public/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
- package/public/cmaps/B5-H.bcmap +0 -0
- package/public/cmaps/B5-V.bcmap +0 -0
- package/public/cmaps/B5pc-H.bcmap +0 -0
- package/public/cmaps/B5pc-V.bcmap +0 -0
- package/public/cmaps/CNS-EUC-H.bcmap +0 -0
- package/public/cmaps/CNS-EUC-V.bcmap +0 -0
- package/public/cmaps/CNS1-H.bcmap +0 -0
- package/public/cmaps/CNS1-V.bcmap +0 -0
- package/public/cmaps/CNS2-H.bcmap +0 -0
- package/public/cmaps/CNS2-V.bcmap +3 -0
- package/public/cmaps/ETHK-B5-H.bcmap +0 -0
- package/public/cmaps/ETHK-B5-V.bcmap +0 -0
- package/public/cmaps/ETen-B5-H.bcmap +0 -0
- package/public/cmaps/ETen-B5-V.bcmap +0 -0
- package/public/cmaps/ETenms-B5-H.bcmap +3 -0
- package/public/cmaps/ETenms-B5-V.bcmap +0 -0
- package/public/cmaps/EUC-H.bcmap +0 -0
- package/public/cmaps/EUC-V.bcmap +0 -0
- package/public/cmaps/Ext-H.bcmap +0 -0
- package/public/cmaps/Ext-RKSJ-H.bcmap +0 -0
- package/public/cmaps/Ext-RKSJ-V.bcmap +0 -0
- package/public/cmaps/Ext-V.bcmap +0 -0
- package/public/cmaps/GB-EUC-H.bcmap +0 -0
- package/public/cmaps/GB-EUC-V.bcmap +0 -0
- package/public/cmaps/GB-H.bcmap +4 -0
- package/public/cmaps/GB-V.bcmap +0 -0
- package/public/cmaps/GBK-EUC-H.bcmap +0 -0
- package/public/cmaps/GBK-EUC-V.bcmap +0 -0
- package/public/cmaps/GBK2K-H.bcmap +0 -0
- package/public/cmaps/GBK2K-V.bcmap +0 -0
- package/public/cmaps/GBKp-EUC-H.bcmap +0 -0
- package/public/cmaps/GBKp-EUC-V.bcmap +0 -0
- package/public/cmaps/GBT-EUC-H.bcmap +0 -0
- package/public/cmaps/GBT-EUC-V.bcmap +0 -0
- package/public/cmaps/GBT-H.bcmap +0 -0
- package/public/cmaps/GBT-V.bcmap +0 -0
- package/public/cmaps/GBTpc-EUC-H.bcmap +0 -0
- package/public/cmaps/GBTpc-EUC-V.bcmap +0 -0
- package/public/cmaps/GBpc-EUC-H.bcmap +0 -0
- package/public/cmaps/GBpc-EUC-V.bcmap +0 -0
- package/public/cmaps/H.bcmap +0 -0
- package/public/cmaps/HKdla-B5-H.bcmap +0 -0
- package/public/cmaps/HKdla-B5-V.bcmap +0 -0
- package/public/cmaps/HKdlb-B5-H.bcmap +0 -0
- package/public/cmaps/HKdlb-B5-V.bcmap +0 -0
- package/public/cmaps/HKgccs-B5-H.bcmap +0 -0
- package/public/cmaps/HKgccs-B5-V.bcmap +0 -0
- package/public/cmaps/HKm314-B5-H.bcmap +0 -0
- package/public/cmaps/HKm314-B5-V.bcmap +0 -0
- package/public/cmaps/HKm471-B5-H.bcmap +0 -0
- package/public/cmaps/HKm471-B5-V.bcmap +0 -0
- package/public/cmaps/HKscs-B5-H.bcmap +0 -0
- package/public/cmaps/HKscs-B5-V.bcmap +0 -0
- package/public/cmaps/Hankaku.bcmap +0 -0
- package/public/cmaps/Hiragana.bcmap +0 -0
- package/public/cmaps/KSC-EUC-H.bcmap +0 -0
- package/public/cmaps/KSC-EUC-V.bcmap +0 -0
- package/public/cmaps/KSC-H.bcmap +0 -0
- package/public/cmaps/KSC-Johab-H.bcmap +0 -0
- package/public/cmaps/KSC-Johab-V.bcmap +0 -0
- package/public/cmaps/KSC-V.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-H.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
- package/public/cmaps/KSCms-UHC-V.bcmap +0 -0
- package/public/cmaps/KSCpc-EUC-H.bcmap +0 -0
- package/public/cmaps/KSCpc-EUC-V.bcmap +0 -0
- package/public/cmaps/Katakana.bcmap +0 -0
- package/public/cmaps/LICENSE +36 -0
- package/public/cmaps/NWP-H.bcmap +0 -0
- package/public/cmaps/NWP-V.bcmap +0 -0
- package/public/cmaps/RKSJ-H.bcmap +0 -0
- package/public/cmaps/RKSJ-V.bcmap +0 -0
- package/public/cmaps/Roman.bcmap +0 -0
- package/public/cmaps/UniCNS-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniCNS-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniGB-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniGB-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniGB-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniGB-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniGB-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniGB-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniGB-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniGB-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniJIS-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
- package/public/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
- package/public/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniKS-UCS2-H.bcmap +0 -0
- package/public/cmaps/UniKS-UCS2-V.bcmap +0 -0
- package/public/cmaps/UniKS-UTF16-H.bcmap +0 -0
- package/public/cmaps/UniKS-UTF16-V.bcmap +0 -0
- package/public/cmaps/UniKS-UTF32-H.bcmap +0 -0
- package/public/cmaps/UniKS-UTF32-V.bcmap +0 -0
- package/public/cmaps/UniKS-UTF8-H.bcmap +0 -0
- package/public/cmaps/UniKS-UTF8-V.bcmap +0 -0
- package/public/cmaps/V.bcmap +0 -0
- package/public/cmaps/WP-Symbol.bcmap +0 -0
- package/public/favicon.ico +0 -0
- package/public/font/font_2530548_ikl5ryc86u.css +535 -0
- package/public/font/font_2530548_ikl5ryc86u.ttf +0 -0
- package/public/font/font_2530548_ikl5ryc86u.woff +0 -0
- package/public/font/font_2530548_ikl5ryc86u.woff2 +0 -0
- package/public/font/font_2612462_d2s6adyaymf.css +93 -0
- package/public/font/font_2612462_d2s6adyaymf.ttf +0 -0
- package/public/font/font_2612462_d2s6adyaymf.woff +0 -0
- package/public/font/font_2612462_d2s6adyaymf.woff2 +0 -0
- package/public/img/banner.png +0 -0
- package/public/img/icons/android-chrome-192x192.png +0 -0
- package/public/img/icons/android-chrome-512x512.png +0 -0
- package/public/img/icons/android-chrome-maskable-192x192.png +0 -0
- package/public/img/icons/android-chrome-maskable-512x512.png +0 -0
- package/public/img/icons/apple-touch-icon-120x120.png +0 -0
- package/public/img/icons/apple-touch-icon-152x152.png +0 -0
- package/public/img/icons/apple-touch-icon-180x180.png +0 -0
- package/public/img/icons/apple-touch-icon-60x60.png +0 -0
- package/public/img/icons/apple-touch-icon-76x76.png +0 -0
- package/public/img/icons/apple-touch-icon.png +0 -0
- package/public/img/icons/favicon-16x16.png +0 -0
- package/public/img/icons/favicon-32x32.png +0 -0
- package/public/img/icons/msapplication-icon-144x144.png +0 -0
- package/public/img/icons/mstile-150x150.png +0 -0
- package/public/img/icons/safari-pinned-tab.svg +149 -0
- package/public/img/success.png +0 -0
- package/public/img/tip.png +0 -0
- package/public/index.html +132 -0
- package/public/js/babel-standalone.min.js +25 -0
- package/public/js/config.js +0 -0
- package/public/js/jquery-3.6.0.min.js +2 -0
- package/public/js/pdf.worker.js +45929 -0
- package/public/js/signature_pad.min.js +6 -0
- package/public/js/tinymce/icons/default/icons.js +170 -0
- package/public/js/tinymce/icons/default/icons.min.js +1 -0
- package/public/js/tinymce/jquery.tinymce.min.js +92 -0
- package/public/js/tinymce/langs/readme.md +3 -0
- package/public/js/tinymce/langs/zh_CN.js +419 -0
- package/public/js/tinymce/license.txt +504 -0
- package/public/js/tinymce/plugins/advlist/plugin.js +281 -0
- package/public/js/tinymce/plugins/advlist/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/anchor/plugin.js +216 -0
- package/public/js/tinymce/plugins/anchor/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/autolink/plugin.js +185 -0
- package/public/js/tinymce/plugins/autolink/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/autoresize/plugin.js +171 -0
- package/public/js/tinymce/plugins/autoresize/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/autosave/plugin.js +214 -0
- package/public/js/tinymce/plugins/autosave/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/bbcode/plugin.js +99 -0
- package/public/js/tinymce/plugins/bbcode/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/charmap/plugin.js +1706 -0
- package/public/js/tinymce/plugins/charmap/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/code/plugin.js +92 -0
- package/public/js/tinymce/plugins/code/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/codesample/plugin.js +1717 -0
- package/public/js/tinymce/plugins/codesample/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/colorpicker/plugin.js +22 -0
- package/public/js/tinymce/plugins/colorpicker/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/contextmenu/plugin.js +22 -0
- package/public/js/tinymce/plugins/contextmenu/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/data/plugin.min.js +209 -0
- package/public/js/tinymce/plugins/directionality/plugin.js +314 -0
- package/public/js/tinymce/plugins/directionality/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/emoticons/js/emojiimages.js +9424 -0
- package/public/js/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/public/js/tinymce/plugins/emoticons/js/emojis.js +9423 -0
- package/public/js/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
- package/public/js/tinymce/plugins/emoticons/plugin.js +564 -0
- package/public/js/tinymce/plugins/emoticons/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/fullpage/plugin.js +544 -0
- package/public/js/tinymce/plugins/fullpage/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/fullscreen/plugin.js +851 -0
- package/public/js/tinymce/plugins/fullscreen/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/help/plugin.js +846 -0
- package/public/js/tinymce/plugins/help/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/hr/plugin.js +46 -0
- package/public/js/tinymce/plugins/hr/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/image/plugin.js +1660 -0
- package/public/js/tinymce/plugins/image/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/imagetools/plugin.js +1304 -0
- package/public/js/tinymce/plugins/imagetools/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/importcss/plugin.js +337 -0
- package/public/js/tinymce/plugins/importcss/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/insertdatetime/plugin.js +177 -0
- package/public/js/tinymce/plugins/insertdatetime/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/legacyoutput/plugin.js +199 -0
- package/public/js/tinymce/plugins/legacyoutput/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/link/plugin.js +1219 -0
- package/public/js/tinymce/plugins/link/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/lists/plugin.js +2163 -0
- package/public/js/tinymce/plugins/lists/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/media/plugin.js +1315 -0
- package/public/js/tinymce/plugins/media/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/nonbreaking/plugin.js +101 -0
- package/public/js/tinymce/plugins/nonbreaking/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/noneditable/plugin.js +117 -0
- package/public/js/tinymce/plugins/noneditable/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/pagebreak/plugin.js +107 -0
- package/public/js/tinymce/plugins/pagebreak/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/pagelink/plugin.min.js +171 -0
- package/public/js/tinymce/plugins/paper/plugin.min.js +80 -0
- package/public/js/tinymce/plugins/paste/plugin.js +1707 -0
- package/public/js/tinymce/plugins/paste/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/preview/plugin.js +127 -0
- package/public/js/tinymce/plugins/preview/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/print/plugin.js +53 -0
- package/public/js/tinymce/plugins/print/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/quickbars/plugin.js +488 -0
- package/public/js/tinymce/plugins/quickbars/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/save/plugin.js +119 -0
- package/public/js/tinymce/plugins/save/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/searchreplace/plugin.js +1167 -0
- package/public/js/tinymce/plugins/searchreplace/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/spellchecker/plugin.js +737 -0
- package/public/js/tinymce/plugins/spellchecker/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/tabfocus/plugin.js +128 -0
- package/public/js/tinymce/plugins/tabfocus/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/table/plugin.min.js +9805 -0
- package/public/js/tinymce/plugins/table/plugin.min.js1 +9 -0
- package/public/js/tinymce/plugins/template/plugin.js +562 -0
- package/public/js/tinymce/plugins/template/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/textattribute/plugin.min.js +76 -0
- package/public/js/tinymce/plugins/textcolor/plugin.js +22 -0
- package/public/js/tinymce/plugins/textcolor/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/textpattern/plugin.js +1392 -0
- package/public/js/tinymce/plugins/textpattern/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/toc/plugin.js +235 -0
- package/public/js/tinymce/plugins/toc/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/visualblocks/plugin.js +104 -0
- package/public/js/tinymce/plugins/visualblocks/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/visualchars/plugin.js +541 -0
- package/public/js/tinymce/plugins/visualchars/plugin.min.js +9 -0
- package/public/js/tinymce/plugins/wordcount/plugin.js +416 -0
- package/public/js/tinymce/plugins/wordcount/plugin.min.js +9 -0
- package/public/js/tinymce/readme.md +77 -0
- package/public/js/tinymce/skins/content/dark/content.css +59 -0
- package/public/js/tinymce/skins/content/dark/content.min.css +7 -0
- package/public/js/tinymce/skins/content/dark/content.min.css.map +1 -0
- package/public/js/tinymce/skins/content/default/content.css +49 -0
- package/public/js/tinymce/skins/content/default/content.min.css +7 -0
- package/public/js/tinymce/skins/content/default/content.min.css.map +1 -0
- package/public/js/tinymce/skins/content/document/content.css +54 -0
- package/public/js/tinymce/skins/content/document/content.min.css +7 -0
- package/public/js/tinymce/skins/content/document/content.min.css.map +1 -0
- package/public/js/tinymce/skins/content/writer/content.css +50 -0
- package/public/js/tinymce/skins/content/writer/content.min.css +7 -0
- package/public/js/tinymce/skins/content/writer/content.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/content.css +693 -0
- package/public/js/tinymce/skins/ui/oxide/content.inline.css +687 -0
- package/public/js/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/content.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/content.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/content.mobile.css +29 -0
- package/public/js/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/content.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/public/js/tinymce/skins/ui/oxide/skin.css +2937 -0
- package/public/js/tinymce/skins/ui/oxide/skin.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/skin.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
- package/public/js/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide/skin.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.css +675 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.inline.css +687 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.css +2937 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +1 -0
- package/public/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/public/js/tinymce/themes/mobile/theme.js +13612 -0
- package/public/js/tinymce/themes/mobile/theme.min.js +9 -0
- package/public/js/tinymce/themes/silver/theme.js +31769 -0
- package/public/js/tinymce/themes/silver/theme.min.js +9 -0
- package/public/js/tinymce/tinymce.d.ts +2916 -0
- package/public/js/tinymce/tinymce.min.js +9 -0
- package/public/luckysheet/iconfont.css +456 -0
- package/public/luckysheet/luckysheet.css +1 -0
- package/public/luckysheet/luckysheet.umd.js +27 -0
- package/public/luckysheet/plugin.js +1 -0
- package/public/luckysheet/plugins.css +10 -0
- package/public/luckysheet/pluginsCss.css +1 -0
- package/public/robots.txt +2 -0
- package/public/signature.html +445 -0
- package/sh.exe.stackdump +11 -0
- package/src/App.vue +31 -0
- package/src/api/README.md +1 -0
- package/src/api/config.js +187 -0
- package/src/api/createHttp.js +160 -0
- package/src/api/index.js +32 -0
- package/src/assets/bdrz/banlizhong.png +0 -0
- package/src/assets/bdrz/chenggong.png +0 -0
- package/src/assets/bdrz/danwei.png +0 -0
- package/src/assets/bdrz/hedui.png +0 -0
- package/src/assets/bdrz/laoziguanli.png +0 -0
- package/src/assets/bdrz/location.png +0 -0
- package/src/assets/bdrz/locationl.png +0 -0
- package/src/assets/bdrz/phone.png +0 -0
- package/src/assets/bdrz/phonel.png +0 -0
- package/src/assets/bdrz/shouzhi.png +0 -0
- package/src/assets/bdrz/time.png +0 -0
- package/src/assets/bdrz/timel.png +0 -0
- package/src/assets/bdrz/wancheng.png +0 -0
- package/src/assets/bdrz/zuobiao.png +0 -0
- package/src/assets/customTranslate/customTranslate.js +13 -0
- package/src/assets/customTranslate/translations.js +218 -0
- package/src/assets/data/card.png +0 -0
- package/src/assets/data/code.png +0 -0
- package/src/assets/home/apply.png +0 -0
- package/src/assets/home/banner1.png +0 -0
- package/src/assets/home/banner11.png +0 -0
- package/src/assets/home/banner12.png +0 -0
- package/src/assets/home/banner2.png +0 -0
- package/src/assets/home/banner3.png +0 -0
- package/src/assets/home/benke.png +0 -0
- package/src/assets/home/chengguo.png +0 -0
- package/src/assets/home/gaojirencaisousuo.png +0 -0
- package/src/assets/home/hangyebiaozhun.png +0 -0
- package/src/assets/home/huojiang.png +0 -0
- package/src/assets/home/icon-test.png +0 -0
- package/src/assets/home/kaoshi.png +0 -0
- package/src/assets/home/kejichengguo.png +0 -0
- package/src/assets/home/keyanxiangmu.png +0 -0
- package/src/assets/home/lunwendao.png +0 -0
- package/src/assets/home/message.png +0 -0
- package/src/assets/home/my-yanjiubaogao.png +0 -0
- package/src/assets/home/nodata.png +0 -0
- package/src/assets/home/people.png +0 -0
- package/src/assets/home/qita.png +0 -0
- package/src/assets/home/schoollogo.png +0 -0
- package/src/assets/home/search.png +0 -0
- package/src/assets/home/shenbaoguanli.png +0 -0
- package/src/assets/home/shouye.png +0 -0
- package/src/assets/home/title.png +0 -0
- package/src/assets/home/todo.png +0 -0
- package/src/assets/home/wave0.png +0 -0
- package/src/assets/home/wave1.png +0 -0
- package/src/assets/home/wave2.png +0 -0
- package/src/assets/home/wodeshuju(1).png +0 -0
- package/src/assets/home/xinxizhongxin.png +0 -0
- package/src/assets/home/yanjiusheng.png +0 -0
- package/src/assets/home/yeji.png +0 -0
- package/src/assets/home/zhengjiuniandukaohe.png +0 -0
- package/src/assets/home/zhengshu.png +0 -0
- package/src/assets/home/zhidao.png +0 -0
- package/src/assets/home/zhuanli.png +0 -0
- package/src/assets/home/zhuanye.png +0 -0
- package/src/assets/home/zhuzuoquan.png +0 -0
- package/src/assets/images/add.png +0 -0
- package/src/assets/images/app.png +0 -0
- package/src/assets/images/apply_bg.png +0 -0
- package/src/assets/images/auto.png +0 -0
- package/src/assets/images/book.png +0 -0
- package/src/assets/images/clear.png +0 -0
- package/src/assets/images/contact_bg.png +0 -0
- package/src/assets/images/data/benke.png +0 -0
- package/src/assets/images/data/chengguo.png +0 -0
- package/src/assets/images/data/chubanwu.png +0 -0
- package/src/assets/images/data/erjidanwei.png +0 -0
- package/src/assets/images/data/hangyebiaozhun.png +0 -0
- package/src/assets/images/data/huojiang(1).png +0 -0
- package/src/assets/images/data/huojiang(2).png +0 -0
- package/src/assets/images/data/icon-test.png +0 -0
- package/src/assets/images/data/jianzhi.png +0 -0
- package/src/assets/images/data/jiaozhigong.png +0 -0
- package/src/assets/images/data/keyanxiangmu.png +0 -0
- package/src/assets/images/data/keyanxiangmu/346/213/267/350/264/2352.png +0 -0
- package/src/assets/images/data/lunwen(1).png +0 -0
- package/src/assets/images/data/lunwendao.png +0 -0
- package/src/assets/images/data/lunwendao/346/213/267/350/264/2352.png +0 -0
- package/src/assets/images/data/pingtai.png +0 -0
- package/src/assets/images/data/pingtai/346/213/267/350/264/235.png +0 -0
- package/src/assets/images/data/shengbujijiaoxuechengguojiang.png +0 -0
- package/src/assets/images/data/wudachengguozhuanhuazhongxin.png +0 -0
- package/src/assets/images/data/xueke(1).png +0 -0
- package/src/assets/images/data/yanjiusheng.png +0 -0
- package/src/assets/images/data/zhidao.png +0 -0
- package/src/assets/images/data/zhuanli.png +0 -0
- package/src/assets/images/data/zhuzuoquan.png +0 -0
- package/src/assets/images/error.png +0 -0
- package/src/assets/images/file.png +0 -0
- package/src/assets/images/hall_banner.png +0 -0
- package/src/assets/images/hr.png +0 -0
- package/src/assets/images/index/benke.png +0 -0
- package/src/assets/images/index/chengguo.png +0 -0
- package/src/assets/images/index/gaojirencaisousuo.png +0 -0
- package/src/assets/images/index/hangyebiaozhun.png +0 -0
- package/src/assets/images/index/huojiang.png +0 -0
- package/src/assets/images/index/icon-test.png +0 -0
- package/src/assets/images/index/kaoshi.png +0 -0
- package/src/assets/images/index/kejichengguo.png +0 -0
- package/src/assets/images/index/keyanxiangmu.png +0 -0
- package/src/assets/images/index/lunwendao.png +0 -0
- package/src/assets/images/index/my-yanjiubaogao.png +0 -0
- package/src/assets/images/index/qita.png +0 -0
- package/src/assets/images/index/shenbaoguanli.png +0 -0
- package/src/assets/images/index/wodeshuju(1).png +0 -0
- package/src/assets/images/index/xinxizhongxin.png +0 -0
- package/src/assets/images/index/yanjiusheng.png +0 -0
- package/src/assets/images/index/yeji.png +0 -0
- package/src/assets/images/index/zhengjiuniandukaohe.png +0 -0
- package/src/assets/images/index/zhengshu.png +0 -0
- package/src/assets/images/index/zhidao.png +0 -0
- package/src/assets/images/index/zhuanli.png +0 -0
- package/src/assets/images/index/zhuanye.png +0 -0
- package/src/assets/images/index/zhuzuoquan.png +0 -0
- package/src/assets/images/index//344/270/232/345/212/241/347/224/263/346/212/245/344/270/200/347/253/231/345/274/217/345/212/236/347/220/206.png +0 -0
- package/src/assets/images/index//345/276/205/345/212/236.png +0 -0
- package/src/assets/images/index//346/244/255/345/234/2064/346/213/267/350/264/2355.png +0 -0
- package/src/assets/images/index//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
- package/src/assets/images/index//346/266/210/346/201/257.png +0 -0
- package/src/assets/images/index//347/224/263/350/257/267.png +0 -0
- package/src/assets/images/index//351/273/230/350/256/244/345/255/246/346/240/241logo.png +0 -0
- package/src/assets/images/jian.png +0 -0
- package/src/assets/images/login.jpg +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/assets/images/m_hall_banner.png +0 -0
- package/src/assets/images/mlogin.png +0 -0
- package/src/assets/images/module.png +0 -0
- package/src/assets/images/offical/111.png +0 -0
- package/src/assets/images/offical/haiwaigaocengcirencai.png +0 -0
- package/src/assets/images/offical/jiaoxue(1).png +0 -0
- package/src/assets/images/offical/niandukaohe-weikaohe.png +0 -0
- package/src/assets/images/offical/pinqikaohe.png +0 -0
- package/src/assets/images/offical/renshiguanlixinxi_yingongchuguo.png +0 -0
- package/src/assets/images/offical/shengbujijiaoxuechengguojiang.png +0 -0
- package/src/assets/images/offical/shujucaiji.png +0 -0
- package/src/assets/images/offical/yeji(1).png +0 -0
- package/src/assets/images/offical/zhuanye.png +0 -0
- package/src/assets/images/offical//345/244/232/350/276/271/345/275/2421/346/213/267/350/264/23510.png +0 -0
- package/src/assets/images/qq.png +0 -0
- package/src/assets/images/role_select.png +0 -0
- package/src/assets/images/staff.png +0 -0
- package/src/assets/images/success.png +0 -0
- package/src/assets/images/theme/aurorablue.png +0 -0
- package/src/assets/images/theme/classicblue.png +0 -0
- package/src/assets/images/theme/deepblue.png +0 -0
- package/src/assets/images/theme/forestgreen.png +0 -0
- package/src/assets/images/theme/orange.png +0 -0
- package/src/assets/images/theme/palevioletred.png +0 -0
- package/src/assets/images/theme/purple.png +0 -0
- package/src/assets/images/theme/skyblue.png +0 -0
- package/src/assets/images/theme/tiffanyblue.png +0 -0
- package/src/assets/images/user_bg.png +0 -0
- package/src/assets/images/weixin.png +0 -0
- package/src/assets/login/bgimg.jpg +0 -0
- package/src/assets/moren.png +0 -0
- package/src/assets/wage/baseBanner.png +0 -0
- package/src/frame/base/AppModuleTreeFind.vue +51 -0
- package/src/frame/base/AttributeSubAdd.vue +29 -0
- package/src/frame/base/ChooseApplication.vue +176 -0
- package/src/frame/base/ChooseApplicationSet.vue +165 -0
- package/src/frame/base/ClientAppItem.vue +217 -0
- package/src/frame/base/ClientApplication.vue +446 -0
- package/src/frame/base/ClientApplicationList.vue +180 -0
- package/src/frame/base/ClientModule.vue +65 -0
- package/src/frame/base/ClientModuleIndex.vue +413 -0
- package/src/frame/base/ClientTreePage.vue +29 -0
- package/src/frame/base/ConfigModuleIndex.vue +82 -0
- package/src/frame/base/CurrentClientApplication.vue +33 -0
- package/src/frame/base/DeptTreeFind.vue +51 -0
- package/src/frame/base/EntityList.vue +71 -0
- package/src/frame/base/ModuleTreeFind.vue +51 -0
- package/src/frame/base/PageList.vue +47 -0
- package/src/frame/base/PermissManage.vue +95 -0
- package/src/frame/base/RoleAccredit.vue +961 -0
- package/src/frame/base/ServiceAccredit.vue +956 -0
- package/src/frame/base/ServiceMenu.vue +380 -0
- package/src/frame/base/ServiceOperate.vue +929 -0
- package/src/frame/base/ServiceTreePage.vue +31 -0
- package/src/frame/components/AddUsedInterface.vue +154 -0
- package/src/frame/components/Alert.vue +35 -0
- package/src/frame/components/AppList.vue +254 -0
- package/src/frame/components/Apply/ApplyIndex.vue +207 -0
- package/src/frame/components/AttributeList.vue +612 -0
- package/src/frame/components/Banner.vue +25 -0
- package/src/frame/components/CardO.vue +112 -0
- package/src/frame/components/CheckForm.vue +20 -0
- package/src/frame/components/ClientAdminFormItem.vue +49 -0
- package/src/frame/components/ClientFormItem.vue +45 -0
- package/src/frame/components/ClientList.vue +135 -0
- package/src/frame/components/CodeDetail.vue +374 -0
- package/src/frame/components/CodeManage.vue +755 -0
- package/src/frame/components/ComponentFind.vue +356 -0
- package/src/frame/components/ComponentList.vue +521 -0
- package/src/frame/components/ConfigParamFormItem.vue +193 -0
- package/src/frame/components/CreatePage.vue +329 -0
- package/src/frame/components/DataLog.vue +91 -0
- package/src/frame/components/DblogList.vue +158 -0
- package/src/frame/components/DeptFind.vue +126 -0
- package/src/frame/components/DropDown/DropDownMenu.vue +267 -0
- package/src/frame/components/DropDown/DropDownMenuItem.vue +489 -0
- package/src/frame/components/DynamicUserList.vue +69 -0
- package/src/frame/components/EditListTable.vue +774 -0
- package/src/frame/components/EntityCheckboxFind.vue +88 -0
- package/src/frame/components/EntityRelationAdd.vue +201 -0
- package/src/frame/components/EntityRelationAddFormItem.vue +100 -0
- package/src/frame/components/EntityRightFormItem.vue +616 -0
- package/src/frame/components/EntityRightSubList.vue +588 -0
- package/src/frame/components/EntityTreeManage.vue +852 -0
- package/src/frame/components/EntityViewFields.vue +401 -0
- package/src/frame/components/EntityViewSubList.vue +976 -0
- package/src/frame/components/ExportSystemConfig.vue +103 -0
- package/src/frame/components/FieldAddFormItem.vue +35 -0
- package/src/frame/components/Footer.vue +120 -0
- package/src/frame/components/FormulaEditor.vue +1216 -0
- package/src/frame/components/HallNav.vue +450 -0
- package/src/frame/components/HeaderNav.vue +417 -0
- package/src/frame/components/IconCard.vue +158 -0
- package/src/frame/components/IconFontLibrary.vue +59 -0
- package/src/frame/components/IconFontList.vue +75 -0
- package/src/frame/components/IdentifyList.vue +33 -0
- package/src/frame/components/ImportSystemConfig.vue +206 -0
- package/src/frame/components/InterfaceSubList.vue +295 -0
- package/src/frame/components/JsPanel.vue +103 -0
- package/src/frame/components/LanguageImportPage.vue +598 -0
- package/src/frame/components/LanguageSetting.vue +449 -0
- package/src/frame/components/List/LinkItem.vue +98 -0
- package/src/frame/components/List/List.vue +17 -0
- package/src/frame/components/List/ListItem.vue +52 -0
- package/src/frame/components/ListTable.vue +796 -0
- package/src/frame/components/MEntitySubList.vue +199 -0
- package/src/frame/components/MenuTreeFind.vue +107 -0
- package/src/frame/components/MessageList.vue +137 -0
- package/src/frame/components/MessageRuleFormItem.vue +61 -0
- package/src/frame/components/MessageRuleReceiverFormItem.vue +173 -0
- package/src/frame/components/MessageTemplate.vue +791 -0
- package/src/frame/components/MetaList.vue +65 -0
- package/src/frame/components/Mine.vue +114 -0
- package/src/frame/components/Nav.vue +599 -0
- package/src/frame/components/NavFormCatalogItem.vue +9 -0
- package/src/frame/components/NumList.vue +108 -0
- package/src/frame/components/OperateLog.vue +168 -0
- package/src/frame/components/PageCatalog.vue +454 -0
- package/src/frame/components/PageChart.vue +306 -0
- package/src/frame/components/PageSwipes.vue +179 -0
- package/src/frame/components/PersonFormItem.vue +92 -0
- package/src/frame/components/Popup.vue +181 -0
- package/src/frame/components/PrintFormList.vue +495 -0
- package/src/frame/components/PublishEntity.vue +87 -0
- package/src/frame/components/ReportFormList.vue +247 -0
- package/src/frame/components/ReportList.vue +493 -0
- package/src/frame/components/RightSubList.vue +253 -0
- package/src/frame/components/RoleAddUser.vue +50 -0
- package/src/frame/components/RoleApplicationCard.vue +299 -0
- package/src/frame/components/RoleApplicationList.vue +766 -0
- package/src/frame/components/RoleApplicationSet.vue +845 -0
- package/src/frame/components/RuleText.vue +98 -0
- package/src/frame/components/Search.vue +270 -0
- package/src/frame/components/ServiceFormItem.vue +29 -0
- package/src/frame/components/SubAdd.vue +0 -0
- package/src/frame/components/SystemNav.vue +18 -0
- package/src/frame/components/TaskNumCard.vue +26 -0
- package/src/frame/components/TimerRuleFormItem.vue +227 -0
- package/src/frame/components/TodoList.vue +429 -0
- package/src/frame/components/UpdateSystemConfig.vue +186 -0
- package/src/frame/components/UserCard.vue +110 -0
- package/src/frame/components/UserFind.vue +438 -0
- package/src/frame/components/UserFormItem.vue +666 -0
- package/src/frame/components/UserList.vue +17 -0
- package/src/frame/components/UserManage.vue +716 -0
- package/src/frame/components/ValidateRuleFormItem.vue +40 -0
- package/src/frame/components/ViewFieldDefine.vue +554 -0
- package/src/frame/components/attribute/Form.vue +439 -0
- package/src/frame/components/authorization/AddApiPermiss.vue +179 -0
- package/src/frame/components/authorization/AddAuthorization.vue +135 -0
- package/src/frame/components/authorization/AddEntityFind.vue +68 -0
- package/src/frame/components/authorization/AddNoApi.vue +143 -0
- package/src/frame/components/authorization/AddRoleScope.vue +291 -0
- package/src/frame/components/authorization/ApiShareOtherList.vue +353 -0
- package/src/frame/components/authorization/ApiSystemList.vue +315 -0
- package/src/frame/components/authorization/AuthorizationRoleSystem.vue +213 -0
- package/src/frame/components/authorization/EntityConstraintFormItem.vue +255 -0
- package/src/frame/components/authorization/OtherShareApiList.vue +248 -0
- package/src/frame/components/authorization/PermissRoleAuthorization.vue +583 -0
- package/src/frame/components/authorization/PermissRoleTabs.vue +117 -0
- package/src/frame/components/authorization/RoleLevel.vue +113 -0
- package/src/frame/components/authorization/RoleLevelScope.vue +247 -0
- package/src/frame/components/card/CardList.vue +78 -0
- package/src/frame/components/card/CardListItem.vue +147 -0
- package/src/frame/components/card/Title.vue +38 -0
- package/src/frame/components/chart/CircularPie.vue +11 -0
- package/src/frame/components/chart/Column.vue +11 -0
- package/src/frame/components/chart/HoriColumn.vue +11 -0
- package/src/frame/components/chart/Line.vue +11 -0
- package/src/frame/components/chart/Pie.vue +11 -0
- package/src/frame/components/custom-bpmn/CustomContextPad.js +58 -0
- package/src/frame/components/custom-bpmn/CustomPalette.js +257 -0
- package/src/frame/components/custom-bpmn/CustomRenderer.js +115 -0
- package/src/frame/components/custom-bpmn/CustomRendererBpmn.js +45 -0
- package/src/frame/components/custom-bpmn/PropertiesView.vue +4046 -0
- package/src/frame/components/custom-bpmn/img/chaxun.png +0 -0
- package/src/frame/components/custom-bpmn/img/fasong.png +0 -0
- package/src/frame/components/custom-bpmn/img/gengxin.png +0 -0
- package/src/frame/components/custom-bpmn/img/jiagong.png +0 -0
- package/src/frame/components/custom-bpmn/img/jiekou.png +0 -0
- package/src/frame/components/custom-bpmn/img/shanchu.png +0 -0
- package/src/frame/components/custom-bpmn/img/tongbu.png +0 -0
- package/src/frame/components/custom-bpmn/img/xinzeng.png +0 -0
- package/src/frame/components/custom-bpmn/img/xunhuanend.png +0 -0
- package/src/frame/components/custom-bpmn/img/xunhuanstart.png +0 -0
- package/src/frame/components/custom-bpmn/img/ywgz.png +0 -0
- package/src/frame/components/custom-bpmn/index.js +6 -0
- package/src/frame/components/custom-bpmn/palette.js +18 -0
- package/src/frame/components/custom-bpmn/util.js +5 -0
- package/src/frame/components/expand/AddForm.vue +91 -0
- package/src/frame/components/expand/AddFormItem.vue +144 -0
- package/src/frame/components/filter/Filter.vue +744 -0
- package/src/frame/components/filter/FilterItem.vue +516 -0
- package/src/frame/components/form/Cascader.vue +79 -0
- package/src/frame/components/form/CheckBox.vue +88 -0
- package/src/frame/components/form/Date.vue +154 -0
- package/src/frame/components/form/DateRange.vue +108 -0
- package/src/frame/components/form/Field.vue +91 -0
- package/src/frame/components/form/File.vue +415 -0
- package/src/frame/components/form/FormItem.vue +128 -0
- package/src/frame/components/form/Hidden.vue +77 -0
- package/src/frame/components/form/Input.vue +123 -0
- package/src/frame/components/form/List.vue +149 -0
- package/src/frame/components/form/Object.vue +225 -0
- package/src/frame/components/form/Photo.vue +235 -0
- package/src/frame/components/form/Textarea.vue +133 -0
- package/src/frame/components/grid/Module.vue +63 -0
- package/src/frame/components/grid/ModuleItem.vue +205 -0
- package/src/frame/components/hall/AppCollect.vue +189 -0
- package/src/frame/components/hall/AppList.vue +407 -0
- package/src/frame/components/hall/AppVisitRecord.vue +170 -0
- package/src/frame/components/hall/Banner.vue +21 -0
- package/src/frame/components/hall/ServiceCard.vue +202 -0
- package/src/frame/components/hall/UserCard.vue +112 -0
- package/src/frame/components/mscope/Scope.vue +90 -0
- package/src/frame/components/mscope/ScopeItem.vue +372 -0
- package/src/frame/components/mscope/drawer.vue +43 -0
- package/src/frame/components/permiss/AddApi.vue +119 -0
- package/src/frame/components/permiss/AddNoEntityApi.vue +131 -0
- package/src/frame/components/permiss/AddSystemPermiss.vue +107 -0
- package/src/frame/components/permiss/AllocateRole.vue +107 -0
- package/src/frame/components/permiss/ApiSubList.vue +193 -0
- package/src/frame/components/permiss/FieldScope.vue +138 -0
- package/src/frame/components/permiss/ListTable.vue +842 -0
- package/src/frame/components/permiss/PermissEdit.vue +61 -0
- package/src/frame/components/permiss/PermissManage.vue +96 -0
- package/src/frame/components/permiss/PermissManageAdd.vue +203 -0
- package/src/frame/components/permiss/RoleMenu.vue +405 -0
- package/src/frame/components/permiss/RoleSubList.vue +264 -0
- package/src/frame/components/permiss/jurisdiction.vue +425 -0
- package/src/frame/components/report/ChartLine.vue +253 -0
- package/src/frame/components/report/ChartPie.vue +345 -0
- package/src/frame/components/report/Config.vue +709 -0
- package/src/frame/components/report/Design.vue +2783 -0
- package/src/frame/components/report/Index.vue +115 -0
- package/src/frame/components/report/ReportTable.vue +1051 -0
- package/src/frame/components/report/StatList.vue +229 -0
- package/src/frame/components/right/RoleDataList.vue +291 -0
- package/src/frame/components/right/RoleFieldList.vue +348 -0
- package/src/frame/components/scope/Scope.vue +497 -0
- package/src/frame/components/scope/ScopeDrawer.vue +195 -0
- package/src/frame/components/scope/ScopeItem.vue +973 -0
- package/src/frame/components/task-list/TaskList.vue +617 -0
- package/src/frame/components/task-list/Visual.vue +45 -0
- package/src/frame/components/task-list/index.js +3 -0
- package/src/frame/components/task-list-page/TaskListPage.vue +26 -0
- package/src/frame/components/task-list-page/index.js +8 -0
- package/src/frame/components/upLoad.vue +69 -0
- package/src/frame/components/viewport/LookViewList.vue +28 -0
- package/src/frame/components/viewport/ViewAddForm.vue +151 -0
- package/src/frame/components/viewport/ViewDefineList.vue +53 -0
- package/src/frame/components/viewport/ViewFiedList.vue +646 -0
- package/src/frame/components/viewport/ViewScope.vue +109 -0
- package/src/frame/index.js +37 -0
- package/src/frame/packages/add-form/AddForm.vue +2128 -0
- package/src/frame/packages/add-form/Preview.vue +312 -0
- package/src/frame/packages/add-form/index.js +8 -0
- package/src/frame/packages/add-form-item/AddFormItem.vue +446 -0
- package/src/frame/packages/add-form-item/Preview.vue +92 -0
- package/src/frame/packages/add-form-item/index.js +8 -0
- package/src/frame/packages/alter/Alert.vue +42 -0
- package/src/frame/packages/alter/Visual.vue +58 -0
- package/src/frame/packages/alter/index.js +8 -0
- package/src/frame/packages/app-index/AppIndex.vue +188 -0
- package/src/frame/packages/app-index/index.js +8 -0
- package/src/frame/packages/app-nav/AppNav.vue +1553 -0
- package/src/frame/packages/app-nav/Preview.vue +13 -0
- package/src/frame/packages/app-nav/index.js +8 -0
- package/src/frame/packages/app-tabs/Tabs.vue +121 -0
- package/src/frame/packages/app-tabs/index.js +8 -0
- package/src/frame/packages/apply-form/ApplyForm.vue +68 -0
- package/src/frame/packages/apply-form/index.js +3 -0
- package/src/frame/packages/approval-index/ApprovalIndex.vue +465 -0
- package/src/frame/packages/approval-index/index.js +8 -0
- package/src/frame/packages/approval-index-page/ApprovalIndexPage.vue +21 -0
- package/src/frame/packages/approval-index-page/index.js +8 -0
- package/src/frame/packages/base-page/BasePage.vue +221 -0
- package/src/frame/packages/base-page/index.js +8 -0
- package/src/frame/packages/button/Button.vue +47 -0
- package/src/frame/packages/button/Preview.vue +33 -0
- package/src/frame/packages/button/index.js +8 -0
- package/src/frame/packages/card/Card.vue +291 -0
- package/src/frame/packages/card/index.js +8 -0
- package/src/frame/packages/card-form-item/CardFormItem.vue +301 -0
- package/src/frame/packages/card-form-item/Visual.vue +101 -0
- package/src/frame/packages/card-form-item/index.js +3 -0
- package/src/frame/packages/category-list/CategoryList.vue +854 -0
- package/src/frame/packages/category-list/index.js +8 -0
- package/src/frame/packages/chart/Chart.vue +124 -0
- package/src/frame/packages/chart/ChartColumn.vue +365 -0
- package/src/frame/packages/chart/ChartFormItem.vue +241 -0
- package/src/frame/packages/chart/ChartLine.vue +317 -0
- package/src/frame/packages/chart/ChartPie.vue +384 -0
- package/src/frame/packages/chart/Funnel.vue +379 -0
- package/src/frame/packages/chart/ReportTable.vue +1139 -0
- package/src/frame/packages/chart/index.js +23 -0
- package/src/frame/packages/check-history/CheckHistory.vue +510 -0
- package/src/frame/packages/check-history/Steps.vue +213 -0
- package/src/frame/packages/check-history/index.js +8 -0
- package/src/frame/packages/component/Component.vue +16 -0
- package/src/frame/packages/component/index.js +8 -0
- package/src/frame/packages/contacts/Card.vue +133 -0
- package/src/frame/packages/contacts/Contacts.vue +167 -0
- package/src/frame/packages/contacts/index.js +8 -0
- package/src/frame/packages/edit-entity-list/EditEntityList.vue +108 -0
- package/src/frame/packages/entity-add-page/EntityAddPage.vue +100 -0
- package/src/frame/packages/entity-add-page/index.js +8 -0
- package/src/frame/packages/entity-apply-page/EntityApplyPage.vue +60 -0
- package/src/frame/packages/entity-apply-page/index.js +3 -0
- package/src/frame/packages/entity-list/Config.vue +275 -0
- package/src/frame/packages/entity-list/EntityList.scss +88 -0
- package/src/frame/packages/entity-list/EntityList.vue +2105 -0
- package/src/frame/packages/entity-list/Preview.vue +232 -0
- package/src/frame/packages/entity-list/components/EditField.vue +76 -0
- package/src/frame/packages/entity-list/components/Field.vue +166 -0
- package/src/frame/packages/entity-list/config.js +0 -0
- package/src/frame/packages/entity-list/index.js +20 -0
- package/src/frame/packages/entity-list-find/EntityListFind.vue +161 -0
- package/src/frame/packages/entity-list-find/index.js +8 -0
- package/src/frame/packages/entity-list-find-page/EntityListFindPage.vue +72 -0
- package/src/frame/packages/entity-list-find-page/index.js +8 -0
- package/src/frame/packages/entity-list-page/EntityListPage.vue +91 -0
- package/src/frame/packages/entity-list-page/index.js +8 -0
- package/src/frame/packages/entity-no-submit-sub-list/EntityNoSubmitSubList.vue +302 -0
- package/src/frame/packages/entity-no-submit-sub-list/index.js +8 -0
- package/src/frame/packages/entity-sub-grid/EntitySubGrid.vue +46 -0
- package/src/frame/packages/entity-sub-grid/EntitySubGridItem.vue +68 -0
- package/src/frame/packages/entity-sub-grid/index.js +13 -0
- package/src/frame/packages/entity-sub-list/EntitySubList.vue +418 -0
- package/src/frame/packages/entity-sub-list/index.js +8 -0
- package/src/frame/packages/entity-tree-find/EntitytTreeFind.vue +460 -0
- package/src/frame/packages/entity-tree-find/index.js +8 -0
- package/src/frame/packages/entity-tree-find-page/EntityTreeFindPage.vue +29 -0
- package/src/frame/packages/entity-tree-find-page/index.js +8 -0
- package/src/frame/packages/export/Export.vue +530 -0
- package/src/frame/packages/export/index.js +8 -0
- package/src/frame/packages/footer/Footer.vue +142 -0
- package/src/frame/packages/footer/index.js +3 -0
- package/src/frame/packages/form/Form.vue +611 -0
- package/src/frame/packages/form/index.js +8 -0
- package/src/frame/packages/form-item/CheckBox.vue +160 -0
- package/src/frame/packages/form-item/Color.vue +135 -0
- package/src/frame/packages/form-item/Date.vue +330 -0
- package/src/frame/packages/form-item/File.vue +712 -0
- package/src/frame/packages/form-item/FormItem.vue +464 -0
- package/src/frame/packages/form-item/Hidden.vue +55 -0
- package/src/frame/packages/form-item/Html.vue +291 -0
- package/src/frame/packages/form-item/Input.vue +320 -0
- package/src/frame/packages/form-item/Location.vue +313 -0
- package/src/frame/packages/form-item/Number.vue +217 -0
- package/src/frame/packages/form-item/Object.vue +1195 -0
- package/src/frame/packages/form-item/Password.vue +128 -0
- package/src/frame/packages/form-item/Photo.vue +362 -0
- package/src/frame/packages/form-item/Radio.vue +157 -0
- package/src/frame/packages/form-item/Rule.vue +989 -0
- package/src/frame/packages/form-item/Scope.vue +224 -0
- package/src/frame/packages/form-item/Select.vue +226 -0
- package/src/frame/packages/form-item/Signature.vue +242 -0
- package/src/frame/packages/form-item/Switch.vue +124 -0
- package/src/frame/packages/form-item/Tag.vue +216 -0
- package/src/frame/packages/form-item/Textarea.vue +279 -0
- package/src/frame/packages/form-item/index.js +45 -0
- package/src/frame/packages/grid/Grid.vue +70 -0
- package/src/frame/packages/grid/GridItem.vue +190 -0
- package/src/frame/packages/grid/index.js +13 -0
- package/src/frame/packages/header/Breadcrumb.vue +55 -0
- package/src/frame/packages/header/Header.vue +602 -0
- package/src/frame/packages/header/Preview.vue +252 -0
- package/src/frame/packages/header/index.js +16 -0
- package/src/frame/packages/icon/Icon.vue +47 -0
- package/src/frame/packages/icon/index.js +7 -0
- package/src/frame/packages/iframe/Iframe.vue +17 -0
- package/src/frame/packages/iframe/index.js +8 -0
- package/src/frame/packages/image/image.vue +23 -0
- package/src/frame/packages/import/Import.vue +832 -0
- package/src/frame/packages/import/index.js +8 -0
- package/src/frame/packages/layout/Column.vue +47 -0
- package/src/frame/packages/layout/ColumnPreview.vue +119 -0
- package/src/frame/packages/layout/Config.vue +114 -0
- package/src/frame/packages/layout/Layout.vue +62 -0
- package/src/frame/packages/layout/Preview.vue +111 -0
- package/src/frame/packages/layout/index.js +10 -0
- package/src/frame/packages/list/List.vue +426 -0
- package/src/frame/packages/list/index.js +8 -0
- package/src/frame/packages/list/visual/List.vue +349 -0
- package/src/frame/packages/load-page/LoadPage.vue +29 -0
- package/src/frame/packages/load-page/index.js +8 -0
- package/src/frame/packages/m-entity-add-page/MEntityAddPage.vue +100 -0
- package/src/frame/packages/m-entity-add-page/index.js +8 -0
- package/src/frame/packages/m-entity-list/MEntityList.vue +1083 -0
- package/src/frame/packages/m-entity-list/index.js +3 -0
- package/src/frame/packages/m-entity-list-find/MEntityListFind.vue +329 -0
- package/src/frame/packages/m-entity-list-find/Visual.vue +105 -0
- package/src/frame/packages/m-entity-list-find/index.js +3 -0
- package/src/frame/packages/m-entity-tree-find/MEntityTreeFind.vue +339 -0
- package/src/frame/packages/m-entity-tree-find/index.js +8 -0
- package/src/frame/packages/menu/Menu.vue +174 -0
- package/src/frame/packages/menu/MenuItem.vue +94 -0
- package/src/frame/packages/menu/index.js +16 -0
- package/src/frame/packages/menu-index/MenuIndex.vue +444 -0
- package/src/frame/packages/menu-index/index.js +8 -0
- package/src/frame/packages/mine/Mine.vue +404 -0
- package/src/frame/packages/module-index-page/ModuleIndexPage.vue +250 -0
- package/src/frame/packages/module-index-page/index.js +7 -0
- package/src/frame/packages/module-list/ModuleList.vue +222 -0
- package/src/frame/packages/module-list/index.js +8 -0
- package/src/frame/packages/module-list-page/ModuleListPage.vue +24 -0
- package/src/frame/packages/module-list-page/index.js +8 -0
- package/src/frame/packages/nav-add-form/NavAddForm.vue +626 -0
- package/src/frame/packages/nav-add-form/index.js +8 -0
- package/src/frame/packages/num/CardNum.vue +267 -0
- package/src/frame/packages/num/NumItem.vue +192 -0
- package/src/frame/packages/num/NumSubItem.vue +137 -0
- package/src/frame/packages/num/Statistic.vue +42 -0
- package/src/frame/packages/num/index.js +17 -0
- package/src/frame/packages/org-chart/OrgChart.vue +301 -0
- package/src/frame/packages/org-chart/index.js +8 -0
- package/src/frame/packages/page/Page.vue +322 -0
- package/src/frame/packages/page/index.js +8 -0
- package/src/frame/packages/page-help/PageHelp.vue +28 -0
- package/src/frame/packages/page-help/Preview.vue +35 -0
- package/src/frame/packages/page-help/index.js +8 -0
- package/src/frame/packages/page-tabs/PageTabs.vue +188 -0
- package/src/frame/packages/page-tabs/index.js +8 -0
- package/src/frame/packages/progress/Progress.vue +287 -0
- package/src/frame/packages/progress/ProgressItem.vue +39 -0
- package/src/frame/packages/progress/index.js +13 -0
- package/src/frame/packages/progress-chart/ProcessChart.vue +210 -0
- package/src/frame/packages/progress-chart/index.js +8 -0
- package/src/frame/packages/report-form-list/ReportFormList.vue +0 -0
- package/src/frame/packages/router-view/RouterView.vue +229 -0
- package/src/frame/packages/router-view/index.js +8 -0
- package/src/frame/packages/scope/Scope.vue +594 -0
- package/src/frame/packages/scope/ScopeDrawer.vue +201 -0
- package/src/frame/packages/scope/ScopeItem.vue +987 -0
- package/src/frame/packages/scope/index.js +15 -0
- package/src/frame/packages/search/Fields.vue +326 -0
- package/src/frame/packages/search/Filter.vue +473 -0
- package/src/frame/packages/search/Keyword.vue +106 -0
- package/src/frame/packages/search/Mobile.vue +314 -0
- package/src/frame/packages/search/Select.vue +238 -0
- package/src/frame/packages/search/index.js +22 -0
- package/src/frame/packages/step/Step.vue +149 -0
- package/src/frame/packages/step/index.js +8 -0
- package/src/frame/packages/step-item/StepItem.vue +126 -0
- package/src/frame/packages/step-item/index.js +8 -0
- package/src/frame/packages/tab-bar/Config.vue +11 -0
- package/src/frame/packages/tab-bar/TabBar.vue +25 -0
- package/src/frame/packages/tab-bar/index.js +3 -0
- package/src/frame/packages/text/Text.vue +25 -0
- package/src/frame/packages/text-editor/TextEditor.vue +22 -0
- package/src/frame/packages/title/Title.vue +21 -0
- package/src/frame/packages/title/index.js +8 -0
- package/src/frame/packages/visual-config-page/ComponentLibrary.vue +198 -0
- package/src/frame/packages/visual-config-page/ComponentList.vue +565 -0
- package/src/frame/packages/visual-config-page/ComponentPreview.vue +153 -0
- package/src/frame/packages/visual-config-page/ConfigOption.vue +16 -0
- package/src/frame/packages/visual-config-page/ConfigPanel.vue +576 -0
- package/src/frame/packages/visual-config-page/PagePreview.vue +53 -0
- package/src/frame/packages/visual-config-page/VisualConfigPage.vue +632 -0
- package/src/frame/packages/visual-config-page/index.js +24 -0
- package/src/frame/popup.js +31 -0
- package/src/frame/views/Add.vue +823 -0
- package/src/frame/views/App.vue +49 -0
- package/src/frame/views/AppRoleSelect.vue +272 -0
- package/src/frame/views/AppSubModule.vue +50 -0
- package/src/frame/views/BatchEdit.vue +206 -0
- package/src/frame/views/Bpmn.vue +553 -0
- package/src/frame/views/Container.vue +294 -0
- package/src/frame/views/DblogList.vue +348 -0
- package/src/frame/views/EntityCheckList.vue +164 -0
- package/src/frame/views/EntityCheckPage.vue +44 -0
- package/src/frame/views/EntityDetailPage.vue +75 -0
- package/src/frame/views/EntityEditApply.vue +136 -0
- package/src/frame/views/EntityEditPage.vue +13 -0
- package/src/frame/views/EntityFind.vue +135 -0
- package/src/frame/views/EntitySingleAdd.vue +31 -0
- package/src/frame/views/EntitySubListPage.vue +44 -0
- package/src/frame/views/EntityTreeFind.vue +188 -0
- package/src/frame/views/EntityTreePage.vue +37 -0
- package/src/frame/views/EntityTreePageOld.vue +536 -0
- package/src/frame/views/Error.vue +29 -0
- package/src/frame/views/ExcelDesign.vue +1795 -0
- package/src/frame/views/ExcelPreview.vue +173 -0
- package/src/frame/views/ExportPage.vue +19 -0
- package/src/frame/views/FormDesign.vue +1049 -0
- package/src/frame/views/IconFontLibraryPage.vue +74 -0
- package/src/frame/views/ImportPage.vue +19 -0
- package/src/frame/views/List.vue +955 -0
- package/src/frame/views/LocalLogin.vue +27 -0
- package/src/frame/views/Login.vue +1059 -0
- package/src/frame/views/MEntityListPage.vue +83 -0
- package/src/frame/views/MEntitySubListPage.vue +44 -0
- package/src/frame/views/MainModule.vue +83 -0
- package/src/frame/views/MenuIndex.vue +444 -0
- package/src/frame/views/MinePage.vue +18 -0
- package/src/frame/views/Module.vue +203 -0
- package/src/frame/views/ModuleIndex.vue +377 -0
- package/src/frame/views/PageAttriTree.vue +419 -0
- package/src/frame/views/PageAttributeTreePage.vue +424 -0
- package/src/frame/views/PageConfig.vue +218 -0
- package/src/frame/views/Permission.vue +695 -0
- package/src/frame/views/PersonalInfo.vue +659 -0
- package/src/frame/views/QyWechat.vue +69 -0
- package/src/frame/views/ReportFormList.vue +146 -0
- package/src/frame/views/ReportFormListPage.vue +91 -0
- package/src/frame/views/RoleTreePage.vue +180 -0
- package/src/frame/views/ServiceHelp.vue +177 -0
- package/src/frame/views/SubModule.vue +67 -0
- package/src/frame/views/SystemIndex.vue +105 -0
- package/src/frame/views/SystemTabs.vue +87 -0
- package/src/frame/views/TaskPage.vue +46 -0
- package/src/frame/views/client/AddForm.vue +64 -0
- package/src/frame/views/client/AppMarket.vue +345 -0
- package/src/frame/views/client/ClientIndex.vue +261 -0
- package/src/frame/views/client/ClientModuleIndexPage.vue +25 -0
- package/src/frame/views/client/CopySystem.vue +179 -0
- package/src/frame/views/client/CreateMethod.vue +133 -0
- package/src/frame/views/client/Login.vue +234 -0
- package/src/frame/views/client/OpenClientManage.vue +53 -0
- package/src/frame/views/client/PageTabsCyclic.vue +121 -0
- package/src/frame/views/client/SelfBuiltSystem.vue +272 -0
- package/src/frame/views/client/StandardProduct.vue +325 -0
- package/src/frame/views/client/SystemList.vue +160 -0
- package/src/frame/views/client/SystemManager.vue +346 -0
- package/src/frame/views/layout/CardList.vue +123 -0
- package/src/frame/views/layout/Grid.vue +95 -0
- package/src/frame/views/match/AddTargetField.vue +118 -0
- package/src/frame/views/match/MatchAddFormItem.vue +34 -0
- package/src/frame/views/match/conversion.vue +209 -0
- package/src/frame/views/match/customize.vue +344 -0
- package/src/frame/views/match/fieldMatch.vue +518 -0
- package/src/frame/views/report/AddFormItem.vue +67 -0
- package/src/frame/views/report/DesignReport.vue +1213 -0
- package/src/frame/views/report/LookReport.vue +221 -0
- package/src/frame/views/report/ReportAdd.vue +237 -0
- package/src/frame/views/report/ReportFormList.vue +235 -0
- package/src/frame/views/report/ReportList.vue +163 -0
- package/src/frame/views/report/ReportTreeFind.vue +188 -0
- package/src/frame/views/visual/Add.vue +1818 -0
- package/src/frame/views/visual/AddForm.vue +228 -0
- package/src/frame/views/visual/AddFormItem.vue +242 -0
- package/src/frame/views/visual/AppIndex.vue +149 -0
- package/src/frame/views/visual/ApplyForm.vue +142 -0
- package/src/frame/views/visual/AttributeList.vue +329 -0
- package/src/frame/views/visual/BasePage.vue +73 -0
- package/src/frame/views/visual/Button.vue +119 -0
- package/src/frame/views/visual/Card.vue +68 -0
- package/src/frame/views/visual/CardNum.vue +74 -0
- package/src/frame/views/visual/CategoryList.vue +566 -0
- package/src/frame/views/visual/Chart.vue +53 -0
- package/src/frame/views/visual/CheckForm.vue +106 -0
- package/src/frame/views/visual/CheckHistory.vue +28 -0
- package/src/frame/views/visual/ClientList.vue +42 -0
- package/src/frame/views/visual/CodeManage.vue +128 -0
- package/src/frame/views/visual/Component.vue +1142 -0
- package/src/frame/views/visual/ComponentList.vue +288 -0
- package/src/frame/views/visual/Config.vue +888 -0
- package/src/frame/views/visual/ConfigItem.vue +218 -0
- package/src/frame/views/visual/ConfigSelectItems.vue +521 -0
- package/src/frame/views/visual/CreatePage.vue +397 -0
- package/src/frame/views/visual/DblogList.vue +137 -0
- package/src/frame/views/visual/EntityAddPage.vue +52 -0
- package/src/frame/views/visual/EntityApplyPage.vue +57 -0
- package/src/frame/views/visual/EntityCheckPage.vue +69 -0
- package/src/frame/views/visual/EntityFindPage.vue +55 -0
- package/src/frame/views/visual/EntityList.vue +442 -0
- package/src/frame/views/visual/EntityListPage.vue +97 -0
- package/src/frame/views/visual/EntityNoSubmitSubList.vue +252 -0
- package/src/frame/views/visual/EntityRightSubList.vue +32 -0
- package/src/frame/views/visual/EntitySubAdd.vue +11 -0
- package/src/frame/views/visual/EntitySubGrid.vue +39 -0
- package/src/frame/views/visual/EntitySubGridItem.vue +96 -0
- package/src/frame/views/visual/EntitySubList.vue +298 -0
- package/src/frame/views/visual/EntityTreeFindPage.vue +36 -0
- package/src/frame/views/visual/EntityTreeManage.vue +144 -0
- package/src/frame/views/visual/EntityTreePage.vue +46 -0
- package/src/frame/views/visual/Grid.vue +46 -0
- package/src/frame/views/visual/GridItem.vue +41 -0
- package/src/frame/views/visual/HeaderNew.vue +326 -0
- package/src/frame/views/visual/Iframe.vue +32 -0
- package/src/frame/views/visual/Image.vue +49 -0
- package/src/frame/views/visual/Import.vue +59 -0
- package/src/frame/views/visual/InterfaceSubList.vue +23 -0
- package/src/frame/views/visual/Layout.vue +0 -0
- package/src/frame/views/visual/ListFirst.vue +613 -0
- package/src/frame/views/visual/LoadPage.vue +42 -0
- package/src/frame/views/visual/MEntityAddPage.vue +71 -0
- package/src/frame/views/visual/MEntityList.vue +472 -0
- package/src/frame/views/visual/MEntityListPage.vue +46 -0
- package/src/frame/views/visual/MEntitySubList.vue +237 -0
- package/src/frame/views/visual/MetaList.vue +23 -0
- package/src/frame/views/visual/Mine.vue +37 -0
- package/src/frame/views/visual/ModuleIndexPage.vue +68 -0
- package/src/frame/views/visual/ModuleList.vue +44 -0
- package/src/frame/views/visual/NavAddForm.vue +144 -0
- package/src/frame/views/visual/NavFormCatalogItem.vue +21 -0
- package/src/frame/views/visual/NumItem.vue +69 -0
- package/src/frame/views/visual/NumStatistic.vue +85 -0
- package/src/frame/views/visual/NumSubItem.vue +63 -0
- package/src/frame/views/visual/OrgChart.vue +121 -0
- package/src/frame/views/visual/PageCatalog.vue +26 -0
- package/src/frame/views/visual/PageConfig.vue +278 -0
- package/src/frame/views/visual/PageTabs.vue +54 -0
- package/src/frame/views/visual/ProcessChart.vue +24 -0
- package/src/frame/views/visual/Progress.vue +39 -0
- package/src/frame/views/visual/ProgressItem.vue +43 -0
- package/src/frame/views/visual/Text.vue +36 -0
- package/src/frame/views/visual/TextEditor.vue +36 -0
- package/src/frame/views/visual/Title.vue +44 -0
- package/src/frame/views/visual/TodoList.vue +18 -0
- package/src/frame/views/visual/TreeFind.vue +39 -0
- package/src/frame/views/visual/UserFormItem.vue +50 -0
- package/src/frame/views/visual/UserManage.vue +36 -0
- package/src/frame/views/visual/chart/CircularPie.vue +7 -0
- package/src/frame/views/visual/chart/Column.vue +73 -0
- package/src/frame/views/visual/chart/HoriColumn.vue +7 -0
- package/src/frame/views/visual/chart/Line.vue +7 -0
- package/src/frame/views/visual/chart/Pie.vue +7 -0
- package/src/frame/views/visual/config/Chart.vue +136 -0
- package/src/frame/views/visual/config/Color.vue +39 -0
- package/src/frame/views/visual/config/DesignReport.vue +20 -0
- package/src/frame/views/visual/config/Event.vue +218 -0
- package/src/frame/views/visual/config/Field.vue +494 -0
- package/src/frame/views/visual/config/Html.vue +26 -0
- package/src/frame/views/visual/config/Image.vue +118 -0
- package/src/frame/views/visual/config/Input.vue +52 -0
- package/src/frame/views/visual/config/List.vue +63 -0
- package/src/frame/views/visual/config/ListField.vue +1229 -0
- package/src/frame/views/visual/config/MField.vue +594 -0
- package/src/frame/views/visual/config/Number.vue +36 -0
- package/src/frame/views/visual/config/Object.vue +106 -0
- package/src/frame/views/visual/config/Operate.vue +1657 -0
- package/src/frame/views/visual/config/OrderField.vue +507 -0
- package/src/frame/views/visual/config/Page.vue +44 -0
- package/src/frame/views/visual/config/Params.vue +104 -0
- package/src/frame/views/visual/config/Radio.vue +54 -0
- package/src/frame/views/visual/config/Row.vue +64 -0
- package/src/frame/views/visual/config/Scope.vue +314 -0
- package/src/frame/views/visual/config/Select.vue +54 -0
- package/src/frame/views/visual/config/Switch.vue +36 -0
- package/src/frame/views/visual/config/Textarea.vue +38 -0
- package/src/frame/views/visual/config/Tree.vue +111 -0
- package/src/frame/views/visual/search/Fields.vue +52 -0
- package/src/frame/views/visual/search/Filter.vue +50 -0
- package/src/frame/views/visual/search/Mobile.vue +54 -0
- package/src/frame/views/visual/step/Index.vue +11 -0
- package/src/frame/views/visual/step/Item.vue +157 -0
- package/src/index.js +369 -0
- package/src/main.js +54 -0
- package/src/plugins/element.js +167 -0
- package/src/plugins/frame.js +12 -0
- package/src/plugins/i18n.js +51 -0
- package/src/plugins/index.js +11 -0
- package/src/plugins/oa.js +3 -0
- package/src/plugins/vant.js +80 -0
- package/src/product/oa/components/AddForm.vue +87 -0
- package/src/product/oa/components/MeetingAddForm.vue +85 -0
- package/src/product/oa/components/MeetingExport.vue +422 -0
- package/src/product/oa/components/MeetingRoomUse.vue +371 -0
- package/src/product/oa/index.js +31 -0
- package/src/registerServiceWorker.js +32 -0
- package/src/router/config.js +416 -0
- package/src/router/index.js +26 -0
- package/src/store/actions.js +46 -0
- package/src/store/export.js +23 -0
- package/src/store/index.js +17 -0
- package/src/store/modules/config.js +201 -0
- package/src/store/modules/file.js +32 -0
- package/src/store/modules/index.js +9 -0
- package/src/store/modules/list.js +130 -0
- package/src/store/modules/meta.js +210 -0
- package/src/store/modules/page.js +75 -0
- package/src/store/modules/router.js +140 -0
- package/src/store/modules/tabs.js +62 -0
- package/src/store/modules/user.js +71 -0
- package/src/styles/index.scss +143 -0
- package/src/styles/theme/element.scss +240 -0
- package/src/styles/theme/utils/config.scss +4 -0
- package/src/styles/theme/utils/function.scss +44 -0
- package/src/styles/theme/utils/mixins.scss +317 -0
- package/src/styles/theme/utils/var.scss +112 -0
- package/src/utils/Config.js +25 -0
- package/src/utils/axios.js +121 -0
- package/src/utils/chartTheme.js +471 -0
- package/src/utils/directives/global.js +127 -0
- package/src/utils/fieldFactory.js +147 -0
- package/src/utils/index.js +21 -0
- package/src/utils/loadComponent.js +39 -0
- package/src/utils/meta.js +355 -0
- package/src/utils/mixins/component.js +368 -0
- package/src/utils/mixins/global.js +985 -0
- package/src/utils/mixins/index.js +11 -0
- package/src/utils/page.js +126 -0
- package/src/utils/util.js +381 -0
- package/src/vant-variables.less +1 -0
- package/src/vue.bus.js +18 -0
- package/start-code-dev.sh +24 -0
- package/start-code-pgy.sh +25 -0
- package/start-code-ppe.sh +23 -0
- package/start-code-prd.sh +25 -0
- package/start-code-pre.sh +25 -0
- package/vue.config.js +101 -0
- package/webpack.config.js +97 -0
|
@@ -0,0 +1,1392 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
|
|
3
|
+
* Licensed under the LGPL or a commercial license.
|
|
4
|
+
* For LGPL see License.txt in the project root for license information.
|
|
5
|
+
* For commercial licenses see https://www.tiny.cloud/
|
|
6
|
+
*
|
|
7
|
+
* Version: 5.4.2 (2020-08-17)
|
|
8
|
+
*/
|
|
9
|
+
(function (domGlobals) {
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
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
|
+
|
|
26
|
+
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
27
|
+
|
|
28
|
+
var __assign = function () {
|
|
29
|
+
__assign = Object.assign || function __assign(t) {
|
|
30
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31
|
+
s = arguments[i];
|
|
32
|
+
for (var p in s)
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
34
|
+
t[p] = s[p];
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
38
|
+
return __assign.apply(this, arguments);
|
|
39
|
+
};
|
|
40
|
+
function __spreadArrays() {
|
|
41
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
42
|
+
s += arguments[i].length;
|
|
43
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
44
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
45
|
+
r[k] = a[j];
|
|
46
|
+
return r;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
var noop = function () {
|
|
50
|
+
};
|
|
51
|
+
var constant = function (value) {
|
|
52
|
+
return function () {
|
|
53
|
+
return value;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
var identity = function (x) {
|
|
57
|
+
return x;
|
|
58
|
+
};
|
|
59
|
+
var die = function (msg) {
|
|
60
|
+
return function () {
|
|
61
|
+
throw new Error(msg);
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
var never = constant(false);
|
|
65
|
+
var always = constant(true);
|
|
66
|
+
|
|
67
|
+
var none = function () {
|
|
68
|
+
return NONE;
|
|
69
|
+
};
|
|
70
|
+
var NONE = function () {
|
|
71
|
+
var eq = function (o) {
|
|
72
|
+
return o.isNone();
|
|
73
|
+
};
|
|
74
|
+
var call = function (thunk) {
|
|
75
|
+
return thunk();
|
|
76
|
+
};
|
|
77
|
+
var id = function (n) {
|
|
78
|
+
return n;
|
|
79
|
+
};
|
|
80
|
+
var me = {
|
|
81
|
+
fold: function (n, _s) {
|
|
82
|
+
return n();
|
|
83
|
+
},
|
|
84
|
+
is: never,
|
|
85
|
+
isSome: never,
|
|
86
|
+
isNone: always,
|
|
87
|
+
getOr: id,
|
|
88
|
+
getOrThunk: call,
|
|
89
|
+
getOrDie: function (msg) {
|
|
90
|
+
throw new Error(msg || 'error: getOrDie called on none.');
|
|
91
|
+
},
|
|
92
|
+
getOrNull: constant(null),
|
|
93
|
+
getOrUndefined: constant(undefined),
|
|
94
|
+
or: id,
|
|
95
|
+
orThunk: call,
|
|
96
|
+
map: none,
|
|
97
|
+
each: noop,
|
|
98
|
+
bind: none,
|
|
99
|
+
exists: never,
|
|
100
|
+
forall: always,
|
|
101
|
+
filter: none,
|
|
102
|
+
equals: eq,
|
|
103
|
+
equals_: eq,
|
|
104
|
+
toArray: function () {
|
|
105
|
+
return [];
|
|
106
|
+
},
|
|
107
|
+
toString: constant('none()')
|
|
108
|
+
};
|
|
109
|
+
return me;
|
|
110
|
+
}();
|
|
111
|
+
var some = function (a) {
|
|
112
|
+
var constant_a = constant(a);
|
|
113
|
+
var self = function () {
|
|
114
|
+
return me;
|
|
115
|
+
};
|
|
116
|
+
var bind = function (f) {
|
|
117
|
+
return f(a);
|
|
118
|
+
};
|
|
119
|
+
var me = {
|
|
120
|
+
fold: function (n, s) {
|
|
121
|
+
return s(a);
|
|
122
|
+
},
|
|
123
|
+
is: function (v) {
|
|
124
|
+
return a === v;
|
|
125
|
+
},
|
|
126
|
+
isSome: always,
|
|
127
|
+
isNone: never,
|
|
128
|
+
getOr: constant_a,
|
|
129
|
+
getOrThunk: constant_a,
|
|
130
|
+
getOrDie: constant_a,
|
|
131
|
+
getOrNull: constant_a,
|
|
132
|
+
getOrUndefined: constant_a,
|
|
133
|
+
or: self,
|
|
134
|
+
orThunk: self,
|
|
135
|
+
map: function (f) {
|
|
136
|
+
return some(f(a));
|
|
137
|
+
},
|
|
138
|
+
each: function (f) {
|
|
139
|
+
f(a);
|
|
140
|
+
},
|
|
141
|
+
bind: bind,
|
|
142
|
+
exists: bind,
|
|
143
|
+
forall: bind,
|
|
144
|
+
filter: function (f) {
|
|
145
|
+
return f(a) ? me : NONE;
|
|
146
|
+
},
|
|
147
|
+
toArray: function () {
|
|
148
|
+
return [a];
|
|
149
|
+
},
|
|
150
|
+
toString: function () {
|
|
151
|
+
return 'some(' + a + ')';
|
|
152
|
+
},
|
|
153
|
+
equals: function (o) {
|
|
154
|
+
return o.is(a);
|
|
155
|
+
},
|
|
156
|
+
equals_: function (o, elementEq) {
|
|
157
|
+
return o.fold(never, function (b) {
|
|
158
|
+
return elementEq(a, b);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
return me;
|
|
163
|
+
};
|
|
164
|
+
var from = function (value) {
|
|
165
|
+
return value === null || value === undefined ? NONE : some(value);
|
|
166
|
+
};
|
|
167
|
+
var Option = {
|
|
168
|
+
some: some,
|
|
169
|
+
none: none,
|
|
170
|
+
from: from
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
var typeOf = function (x) {
|
|
174
|
+
var t = typeof x;
|
|
175
|
+
if (x === null) {
|
|
176
|
+
return 'null';
|
|
177
|
+
} else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
|
178
|
+
return 'array';
|
|
179
|
+
} else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
|
180
|
+
return 'string';
|
|
181
|
+
} else {
|
|
182
|
+
return t;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
var isType = function (type) {
|
|
186
|
+
return function (value) {
|
|
187
|
+
return typeOf(value) === type;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
var isString = isType('string');
|
|
191
|
+
var isObject = isType('object');
|
|
192
|
+
var isArray = isType('array');
|
|
193
|
+
|
|
194
|
+
var nativeSlice = Array.prototype.slice;
|
|
195
|
+
var nativeIndexOf = Array.prototype.indexOf;
|
|
196
|
+
var rawIndexOf = function (ts, t) {
|
|
197
|
+
return nativeIndexOf.call(ts, t);
|
|
198
|
+
};
|
|
199
|
+
var contains = function (xs, x) {
|
|
200
|
+
return rawIndexOf(xs, x) > -1;
|
|
201
|
+
};
|
|
202
|
+
var map = function (xs, f) {
|
|
203
|
+
var len = xs.length;
|
|
204
|
+
var r = new Array(len);
|
|
205
|
+
for (var i = 0; i < len; i++) {
|
|
206
|
+
var x = xs[i];
|
|
207
|
+
r[i] = f(x, i);
|
|
208
|
+
}
|
|
209
|
+
return r;
|
|
210
|
+
};
|
|
211
|
+
var each = function (xs, f) {
|
|
212
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
|
213
|
+
var x = xs[i];
|
|
214
|
+
f(x, i);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
var eachr = function (xs, f) {
|
|
218
|
+
for (var i = xs.length - 1; i >= 0; i--) {
|
|
219
|
+
var x = xs[i];
|
|
220
|
+
f(x, i);
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
var filter = function (xs, pred) {
|
|
224
|
+
var r = [];
|
|
225
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
|
226
|
+
var x = xs[i];
|
|
227
|
+
if (pred(x, i)) {
|
|
228
|
+
r.push(x);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return r;
|
|
232
|
+
};
|
|
233
|
+
var foldr = function (xs, f, acc) {
|
|
234
|
+
eachr(xs, function (x) {
|
|
235
|
+
acc = f(acc, x);
|
|
236
|
+
});
|
|
237
|
+
return acc;
|
|
238
|
+
};
|
|
239
|
+
var foldl = function (xs, f, acc) {
|
|
240
|
+
each(xs, function (x) {
|
|
241
|
+
acc = f(acc, x);
|
|
242
|
+
});
|
|
243
|
+
return acc;
|
|
244
|
+
};
|
|
245
|
+
var findUntil = function (xs, pred, until) {
|
|
246
|
+
for (var i = 0, len = xs.length; i < len; i++) {
|
|
247
|
+
var x = xs[i];
|
|
248
|
+
if (pred(x, i)) {
|
|
249
|
+
return Option.some(x);
|
|
250
|
+
} else if (until(x, i)) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return Option.none();
|
|
255
|
+
};
|
|
256
|
+
var find = function (xs, pred) {
|
|
257
|
+
return findUntil(xs, pred, never);
|
|
258
|
+
};
|
|
259
|
+
var forall = function (xs, pred) {
|
|
260
|
+
for (var i = 0, len = xs.length; i < len; ++i) {
|
|
261
|
+
var x = xs[i];
|
|
262
|
+
if (pred(x, i) !== true) {
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return true;
|
|
267
|
+
};
|
|
268
|
+
var sort = function (xs, comparator) {
|
|
269
|
+
var copy = nativeSlice.call(xs, 0);
|
|
270
|
+
copy.sort(comparator);
|
|
271
|
+
return copy;
|
|
272
|
+
};
|
|
273
|
+
var head = function (xs) {
|
|
274
|
+
return xs.length === 0 ? Option.none() : Option.some(xs[0]);
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
var keys = Object.keys;
|
|
278
|
+
var hasOwnProperty = Object.hasOwnProperty;
|
|
279
|
+
var has = function (obj, key) {
|
|
280
|
+
return hasOwnProperty.call(obj, key);
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
var generate = function (cases) {
|
|
284
|
+
if (!isArray(cases)) {
|
|
285
|
+
throw new Error('cases must be an array');
|
|
286
|
+
}
|
|
287
|
+
if (cases.length === 0) {
|
|
288
|
+
throw new Error('there must be at least one case');
|
|
289
|
+
}
|
|
290
|
+
var constructors = [];
|
|
291
|
+
var adt = {};
|
|
292
|
+
each(cases, function (acase, count) {
|
|
293
|
+
var keys$1 = keys(acase);
|
|
294
|
+
if (keys$1.length !== 1) {
|
|
295
|
+
throw new Error('one and only one name per case');
|
|
296
|
+
}
|
|
297
|
+
var key = keys$1[0];
|
|
298
|
+
var value = acase[key];
|
|
299
|
+
if (adt[key] !== undefined) {
|
|
300
|
+
throw new Error('duplicate key detected:' + key);
|
|
301
|
+
} else if (key === 'cata') {
|
|
302
|
+
throw new Error('cannot have a case named cata (sorry)');
|
|
303
|
+
} else if (!isArray(value)) {
|
|
304
|
+
throw new Error('case arguments must be an array');
|
|
305
|
+
}
|
|
306
|
+
constructors.push(key);
|
|
307
|
+
adt[key] = function () {
|
|
308
|
+
var argLength = arguments.length;
|
|
309
|
+
if (argLength !== value.length) {
|
|
310
|
+
throw new Error('Wrong number of arguments to case ' + key + '. Expected ' + value.length + ' (' + value + '), got ' + argLength);
|
|
311
|
+
}
|
|
312
|
+
var args = new Array(argLength);
|
|
313
|
+
for (var i = 0; i < args.length; i++) {
|
|
314
|
+
args[i] = arguments[i];
|
|
315
|
+
}
|
|
316
|
+
var match = function (branches) {
|
|
317
|
+
var branchKeys = keys(branches);
|
|
318
|
+
if (constructors.length !== branchKeys.length) {
|
|
319
|
+
throw new Error('Wrong number of arguments to match. Expected: ' + constructors.join(',') + '\nActual: ' + branchKeys.join(','));
|
|
320
|
+
}
|
|
321
|
+
var allReqd = forall(constructors, function (reqKey) {
|
|
322
|
+
return contains(branchKeys, reqKey);
|
|
323
|
+
});
|
|
324
|
+
if (!allReqd) {
|
|
325
|
+
throw new Error('Not all branches were specified when using match. Specified: ' + branchKeys.join(', ') + '\nRequired: ' + constructors.join(', '));
|
|
326
|
+
}
|
|
327
|
+
return branches[key].apply(null, args);
|
|
328
|
+
};
|
|
329
|
+
return {
|
|
330
|
+
fold: function () {
|
|
331
|
+
if (arguments.length !== cases.length) {
|
|
332
|
+
throw new Error('Wrong number of arguments to fold. Expected ' + cases.length + ', got ' + arguments.length);
|
|
333
|
+
}
|
|
334
|
+
var target = arguments[count];
|
|
335
|
+
return target.apply(null, args);
|
|
336
|
+
},
|
|
337
|
+
match: match,
|
|
338
|
+
log: function (label) {
|
|
339
|
+
domGlobals.console.log(label, {
|
|
340
|
+
constructors: constructors,
|
|
341
|
+
constructor: key,
|
|
342
|
+
params: args
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
});
|
|
348
|
+
return adt;
|
|
349
|
+
};
|
|
350
|
+
var Adt = { generate: generate };
|
|
351
|
+
|
|
352
|
+
var comparison = Adt.generate([
|
|
353
|
+
{
|
|
354
|
+
bothErrors: [
|
|
355
|
+
'error1',
|
|
356
|
+
'error2'
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
firstError: [
|
|
361
|
+
'error1',
|
|
362
|
+
'value2'
|
|
363
|
+
]
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
secondError: [
|
|
367
|
+
'value1',
|
|
368
|
+
'error2'
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
bothValues: [
|
|
373
|
+
'value1',
|
|
374
|
+
'value2'
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
]);
|
|
378
|
+
var partition = function (results) {
|
|
379
|
+
var errors = [];
|
|
380
|
+
var values = [];
|
|
381
|
+
each(results, function (result) {
|
|
382
|
+
result.fold(function (err) {
|
|
383
|
+
errors.push(err);
|
|
384
|
+
}, function (value) {
|
|
385
|
+
values.push(value);
|
|
386
|
+
});
|
|
387
|
+
});
|
|
388
|
+
return {
|
|
389
|
+
errors: errors,
|
|
390
|
+
values: values
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
var value = function (o) {
|
|
395
|
+
var is = function (v) {
|
|
396
|
+
return o === v;
|
|
397
|
+
};
|
|
398
|
+
var or = function (_opt) {
|
|
399
|
+
return value(o);
|
|
400
|
+
};
|
|
401
|
+
var orThunk = function (_f) {
|
|
402
|
+
return value(o);
|
|
403
|
+
};
|
|
404
|
+
var map = function (f) {
|
|
405
|
+
return value(f(o));
|
|
406
|
+
};
|
|
407
|
+
var mapError = function (_f) {
|
|
408
|
+
return value(o);
|
|
409
|
+
};
|
|
410
|
+
var each = function (f) {
|
|
411
|
+
f(o);
|
|
412
|
+
};
|
|
413
|
+
var bind = function (f) {
|
|
414
|
+
return f(o);
|
|
415
|
+
};
|
|
416
|
+
var fold = function (_, onValue) {
|
|
417
|
+
return onValue(o);
|
|
418
|
+
};
|
|
419
|
+
var exists = function (f) {
|
|
420
|
+
return f(o);
|
|
421
|
+
};
|
|
422
|
+
var forall = function (f) {
|
|
423
|
+
return f(o);
|
|
424
|
+
};
|
|
425
|
+
var toOption = function () {
|
|
426
|
+
return Option.some(o);
|
|
427
|
+
};
|
|
428
|
+
return {
|
|
429
|
+
is: is,
|
|
430
|
+
isValue: always,
|
|
431
|
+
isError: never,
|
|
432
|
+
getOr: constant(o),
|
|
433
|
+
getOrThunk: constant(o),
|
|
434
|
+
getOrDie: constant(o),
|
|
435
|
+
or: or,
|
|
436
|
+
orThunk: orThunk,
|
|
437
|
+
fold: fold,
|
|
438
|
+
map: map,
|
|
439
|
+
mapError: mapError,
|
|
440
|
+
each: each,
|
|
441
|
+
bind: bind,
|
|
442
|
+
exists: exists,
|
|
443
|
+
forall: forall,
|
|
444
|
+
toOption: toOption
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
var error = function (message) {
|
|
448
|
+
var getOrThunk = function (f) {
|
|
449
|
+
return f();
|
|
450
|
+
};
|
|
451
|
+
var getOrDie = function () {
|
|
452
|
+
return die(String(message))();
|
|
453
|
+
};
|
|
454
|
+
var or = function (opt) {
|
|
455
|
+
return opt;
|
|
456
|
+
};
|
|
457
|
+
var orThunk = function (f) {
|
|
458
|
+
return f();
|
|
459
|
+
};
|
|
460
|
+
var map = function (_f) {
|
|
461
|
+
return error(message);
|
|
462
|
+
};
|
|
463
|
+
var mapError = function (f) {
|
|
464
|
+
return error(f(message));
|
|
465
|
+
};
|
|
466
|
+
var bind = function (_f) {
|
|
467
|
+
return error(message);
|
|
468
|
+
};
|
|
469
|
+
var fold = function (onError, _) {
|
|
470
|
+
return onError(message);
|
|
471
|
+
};
|
|
472
|
+
return {
|
|
473
|
+
is: never,
|
|
474
|
+
isValue: never,
|
|
475
|
+
isError: always,
|
|
476
|
+
getOr: identity,
|
|
477
|
+
getOrThunk: getOrThunk,
|
|
478
|
+
getOrDie: getOrDie,
|
|
479
|
+
or: or,
|
|
480
|
+
orThunk: orThunk,
|
|
481
|
+
fold: fold,
|
|
482
|
+
map: map,
|
|
483
|
+
mapError: mapError,
|
|
484
|
+
each: noop,
|
|
485
|
+
bind: bind,
|
|
486
|
+
exists: never,
|
|
487
|
+
forall: always,
|
|
488
|
+
toOption: Option.none
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
var fromOption = function (opt, err) {
|
|
492
|
+
return opt.fold(function () {
|
|
493
|
+
return error(err);
|
|
494
|
+
}, value);
|
|
495
|
+
};
|
|
496
|
+
var Result = {
|
|
497
|
+
value: value,
|
|
498
|
+
error: error,
|
|
499
|
+
fromOption: fromOption
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
var isInlinePattern = function (pattern) {
|
|
503
|
+
return pattern.type === 'inline-command' || pattern.type === 'inline-format';
|
|
504
|
+
};
|
|
505
|
+
var isBlockPattern = function (pattern) {
|
|
506
|
+
return pattern.type === 'block-command' || pattern.type === 'block-format';
|
|
507
|
+
};
|
|
508
|
+
var sortPatterns = function (patterns) {
|
|
509
|
+
return sort(patterns, function (a, b) {
|
|
510
|
+
if (a.start.length === b.start.length) {
|
|
511
|
+
return 0;
|
|
512
|
+
}
|
|
513
|
+
return a.start.length > b.start.length ? -1 : 1;
|
|
514
|
+
});
|
|
515
|
+
};
|
|
516
|
+
var normalizePattern = function (pattern) {
|
|
517
|
+
var err = function (message) {
|
|
518
|
+
return Result.error({
|
|
519
|
+
message: message,
|
|
520
|
+
pattern: pattern
|
|
521
|
+
});
|
|
522
|
+
};
|
|
523
|
+
var formatOrCmd = function (name, onFormat, onCommand) {
|
|
524
|
+
if (pattern.format !== undefined) {
|
|
525
|
+
var formats = void 0;
|
|
526
|
+
if (isArray(pattern.format)) {
|
|
527
|
+
if (!forall(pattern.format, isString)) {
|
|
528
|
+
return err(name + ' pattern has non-string items in the `format` array');
|
|
529
|
+
}
|
|
530
|
+
formats = pattern.format;
|
|
531
|
+
} else if (isString(pattern.format)) {
|
|
532
|
+
formats = [pattern.format];
|
|
533
|
+
} else {
|
|
534
|
+
return err(name + ' pattern has non-string `format` parameter');
|
|
535
|
+
}
|
|
536
|
+
return Result.value(onFormat(formats));
|
|
537
|
+
} else if (pattern.cmd !== undefined) {
|
|
538
|
+
if (!isString(pattern.cmd)) {
|
|
539
|
+
return err(name + ' pattern has non-string `cmd` parameter');
|
|
540
|
+
}
|
|
541
|
+
return Result.value(onCommand(pattern.cmd, pattern.value));
|
|
542
|
+
} else {
|
|
543
|
+
return err(name + ' pattern is missing both `format` and `cmd` parameters');
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
if (!isObject(pattern)) {
|
|
547
|
+
return err('Raw pattern is not an object');
|
|
548
|
+
}
|
|
549
|
+
if (!isString(pattern.start)) {
|
|
550
|
+
return err('Raw pattern is missing `start` parameter');
|
|
551
|
+
}
|
|
552
|
+
if (pattern.end !== undefined) {
|
|
553
|
+
if (!isString(pattern.end)) {
|
|
554
|
+
return err('Inline pattern has non-string `end` parameter');
|
|
555
|
+
}
|
|
556
|
+
if (pattern.start.length === 0 && pattern.end.length === 0) {
|
|
557
|
+
return err('Inline pattern has empty `start` and `end` parameters');
|
|
558
|
+
}
|
|
559
|
+
var start_1 = pattern.start;
|
|
560
|
+
var end_1 = pattern.end;
|
|
561
|
+
if (end_1.length === 0) {
|
|
562
|
+
end_1 = start_1;
|
|
563
|
+
start_1 = '';
|
|
564
|
+
}
|
|
565
|
+
return formatOrCmd('Inline', function (format) {
|
|
566
|
+
return {
|
|
567
|
+
type: 'inline-format',
|
|
568
|
+
start: start_1,
|
|
569
|
+
end: end_1,
|
|
570
|
+
format: format
|
|
571
|
+
};
|
|
572
|
+
}, function (cmd, value) {
|
|
573
|
+
return {
|
|
574
|
+
type: 'inline-command',
|
|
575
|
+
start: start_1,
|
|
576
|
+
end: end_1,
|
|
577
|
+
cmd: cmd,
|
|
578
|
+
value: value
|
|
579
|
+
};
|
|
580
|
+
});
|
|
581
|
+
} else if (pattern.replacement !== undefined) {
|
|
582
|
+
if (!isString(pattern.replacement)) {
|
|
583
|
+
return err('Replacement pattern has non-string `replacement` parameter');
|
|
584
|
+
}
|
|
585
|
+
if (pattern.start.length === 0) {
|
|
586
|
+
return err('Replacement pattern has empty `start` parameter');
|
|
587
|
+
}
|
|
588
|
+
return Result.value({
|
|
589
|
+
type: 'inline-command',
|
|
590
|
+
start: '',
|
|
591
|
+
end: pattern.start,
|
|
592
|
+
cmd: 'mceInsertContent',
|
|
593
|
+
value: pattern.replacement
|
|
594
|
+
});
|
|
595
|
+
} else {
|
|
596
|
+
if (pattern.start.length === 0) {
|
|
597
|
+
return err('Block pattern has empty `start` parameter');
|
|
598
|
+
}
|
|
599
|
+
return formatOrCmd('Block', function (formats) {
|
|
600
|
+
return {
|
|
601
|
+
type: 'block-format',
|
|
602
|
+
start: pattern.start,
|
|
603
|
+
format: formats[0]
|
|
604
|
+
};
|
|
605
|
+
}, function (command, commandValue) {
|
|
606
|
+
return {
|
|
607
|
+
type: 'block-command',
|
|
608
|
+
start: pattern.start,
|
|
609
|
+
cmd: command,
|
|
610
|
+
value: commandValue
|
|
611
|
+
};
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
var denormalizePattern = function (pattern) {
|
|
616
|
+
if (pattern.type === 'block-command') {
|
|
617
|
+
return {
|
|
618
|
+
start: pattern.start,
|
|
619
|
+
cmd: pattern.cmd,
|
|
620
|
+
value: pattern.value
|
|
621
|
+
};
|
|
622
|
+
} else if (pattern.type === 'block-format') {
|
|
623
|
+
return {
|
|
624
|
+
start: pattern.start,
|
|
625
|
+
format: pattern.format
|
|
626
|
+
};
|
|
627
|
+
} else if (pattern.type === 'inline-command') {
|
|
628
|
+
if (pattern.cmd === 'mceInsertContent' && pattern.start === '') {
|
|
629
|
+
return {
|
|
630
|
+
start: pattern.end,
|
|
631
|
+
replacement: pattern.value
|
|
632
|
+
};
|
|
633
|
+
} else {
|
|
634
|
+
return {
|
|
635
|
+
start: pattern.start,
|
|
636
|
+
end: pattern.end,
|
|
637
|
+
cmd: pattern.cmd,
|
|
638
|
+
value: pattern.value
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
} else if (pattern.type === 'inline-format') {
|
|
642
|
+
return {
|
|
643
|
+
start: pattern.start,
|
|
644
|
+
end: pattern.end,
|
|
645
|
+
format: pattern.format.length === 1 ? pattern.format[0] : pattern.format
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
};
|
|
649
|
+
var createPatternSet = function (patterns) {
|
|
650
|
+
return {
|
|
651
|
+
inlinePatterns: filter(patterns, isInlinePattern),
|
|
652
|
+
blockPatterns: sortPatterns(filter(patterns, isBlockPattern))
|
|
653
|
+
};
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
var get = function (patternsState) {
|
|
657
|
+
var setPatterns = function (newPatterns) {
|
|
658
|
+
var normalized = partition(map(newPatterns, normalizePattern));
|
|
659
|
+
if (normalized.errors.length > 0) {
|
|
660
|
+
var firstError = normalized.errors[0];
|
|
661
|
+
throw new Error(firstError.message + ':\n' + JSON.stringify(firstError.pattern, null, 2));
|
|
662
|
+
}
|
|
663
|
+
patternsState.set(createPatternSet(normalized.values));
|
|
664
|
+
};
|
|
665
|
+
var getPatterns = function () {
|
|
666
|
+
return __spreadArrays(map(patternsState.get().inlinePatterns, denormalizePattern), map(patternsState.get().blockPatterns, denormalizePattern));
|
|
667
|
+
};
|
|
668
|
+
return {
|
|
669
|
+
setPatterns: setPatterns,
|
|
670
|
+
getPatterns: getPatterns
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
|
|
675
|
+
|
|
676
|
+
var error$1 = function () {
|
|
677
|
+
var args = [];
|
|
678
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
679
|
+
args[_i] = arguments[_i];
|
|
680
|
+
}
|
|
681
|
+
var console = Global.console;
|
|
682
|
+
if (console) {
|
|
683
|
+
if (console.error) {
|
|
684
|
+
console.error.apply(console, args);
|
|
685
|
+
} else {
|
|
686
|
+
console.log.apply(console, args);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
var defaultPatterns = [
|
|
691
|
+
{
|
|
692
|
+
start: '*',
|
|
693
|
+
end: '*',
|
|
694
|
+
format: 'italic'
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
start: '**',
|
|
698
|
+
end: '**',
|
|
699
|
+
format: 'bold'
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
start: '#',
|
|
703
|
+
format: 'h1'
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
start: '##',
|
|
707
|
+
format: 'h2'
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
start: '###',
|
|
711
|
+
format: 'h3'
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
start: '####',
|
|
715
|
+
format: 'h4'
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
start: '#####',
|
|
719
|
+
format: 'h5'
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
start: '######',
|
|
723
|
+
format: 'h6'
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
start: '1. ',
|
|
727
|
+
cmd: 'InsertOrderedList'
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
start: '* ',
|
|
731
|
+
cmd: 'InsertUnorderedList'
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
start: '- ',
|
|
735
|
+
cmd: 'InsertUnorderedList'
|
|
736
|
+
}
|
|
737
|
+
];
|
|
738
|
+
var getPatternSet = function (editor) {
|
|
739
|
+
var patterns = editor.getParam('textpattern_patterns', defaultPatterns, 'array');
|
|
740
|
+
if (!isArray(patterns)) {
|
|
741
|
+
error$1('The setting textpattern_patterns should be an array');
|
|
742
|
+
return {
|
|
743
|
+
inlinePatterns: [],
|
|
744
|
+
blockPatterns: []
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
var normalized = partition(map(patterns, normalizePattern));
|
|
748
|
+
each(normalized.errors, function (err) {
|
|
749
|
+
return error$1(err.message, err.pattern);
|
|
750
|
+
});
|
|
751
|
+
return createPatternSet(normalized.values);
|
|
752
|
+
};
|
|
753
|
+
var getForcedRootBlock = function (editor) {
|
|
754
|
+
var block = editor.getParam('forced_root_block', 'p');
|
|
755
|
+
if (block === false) {
|
|
756
|
+
return '';
|
|
757
|
+
} else if (block === true) {
|
|
758
|
+
return 'p';
|
|
759
|
+
} else {
|
|
760
|
+
return block;
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
765
|
+
|
|
766
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.VK');
|
|
767
|
+
|
|
768
|
+
var zeroWidth = '\uFEFF';
|
|
769
|
+
var nbsp = '\xA0';
|
|
770
|
+
|
|
771
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
772
|
+
|
|
773
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
|
774
|
+
|
|
775
|
+
var global$5 = tinymce.util.Tools.resolve('tinymce.dom.TextSeeker');
|
|
776
|
+
|
|
777
|
+
var point = function (container, offset) {
|
|
778
|
+
return {
|
|
779
|
+
container: container,
|
|
780
|
+
offset: offset
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
var isText = function (node) {
|
|
785
|
+
return node.nodeType === domGlobals.Node.TEXT_NODE;
|
|
786
|
+
};
|
|
787
|
+
var cleanEmptyNodes = function (dom, node, isRoot) {
|
|
788
|
+
if (node && dom.isEmpty(node) && !isRoot(node)) {
|
|
789
|
+
var parent_1 = node.parentNode;
|
|
790
|
+
dom.remove(node);
|
|
791
|
+
cleanEmptyNodes(dom, parent_1, isRoot);
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
var deleteRng = function (dom, rng, isRoot, clean) {
|
|
795
|
+
if (clean === void 0) {
|
|
796
|
+
clean = true;
|
|
797
|
+
}
|
|
798
|
+
var startParent = rng.startContainer.parentNode;
|
|
799
|
+
var endParent = rng.endContainer.parentNode;
|
|
800
|
+
rng.deleteContents();
|
|
801
|
+
if (clean && !isRoot(rng.startContainer)) {
|
|
802
|
+
if (isText(rng.startContainer) && rng.startContainer.data.length === 0) {
|
|
803
|
+
dom.remove(rng.startContainer);
|
|
804
|
+
}
|
|
805
|
+
if (isText(rng.endContainer) && rng.endContainer.data.length === 0) {
|
|
806
|
+
dom.remove(rng.endContainer);
|
|
807
|
+
}
|
|
808
|
+
cleanEmptyNodes(dom, startParent, isRoot);
|
|
809
|
+
if (startParent !== endParent) {
|
|
810
|
+
cleanEmptyNodes(dom, endParent, isRoot);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
var isBlockFormatName = function (name, formatter) {
|
|
815
|
+
var formatSet = formatter.get(name);
|
|
816
|
+
return isArray(formatSet) && head(formatSet).exists(function (format) {
|
|
817
|
+
return has(format, 'block');
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
var isReplacementPattern = function (pattern) {
|
|
821
|
+
return pattern.start.length === 0;
|
|
822
|
+
};
|
|
823
|
+
var getParentBlock = function (editor, rng) {
|
|
824
|
+
var parentBlockOpt = Option.from(editor.dom.getParent(rng.startContainer, editor.dom.isBlock));
|
|
825
|
+
if (getForcedRootBlock(editor) === '') {
|
|
826
|
+
return parentBlockOpt.orThunk(function () {
|
|
827
|
+
return Option.some(editor.getBody());
|
|
828
|
+
});
|
|
829
|
+
} else {
|
|
830
|
+
return parentBlockOpt;
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
var DOM = global$4.DOM;
|
|
835
|
+
var alwaysNext = function (startNode) {
|
|
836
|
+
return function (node) {
|
|
837
|
+
return startNode === node ? -1 : 0;
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
var isBoundary = function (dom) {
|
|
841
|
+
return function (node) {
|
|
842
|
+
return dom.isBlock(node) || contains([
|
|
843
|
+
'BR',
|
|
844
|
+
'IMG',
|
|
845
|
+
'HR',
|
|
846
|
+
'INPUT'
|
|
847
|
+
], node.nodeName) || dom.getContentEditable(node) === 'false';
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
var textBefore = function (node, offset, rootNode) {
|
|
851
|
+
if (isText(node) && offset >= 0) {
|
|
852
|
+
return Option.some(point(node, offset));
|
|
853
|
+
} else {
|
|
854
|
+
var textSeeker = global$5(DOM);
|
|
855
|
+
return Option.from(textSeeker.backwards(node, offset, alwaysNext(node), rootNode)).map(function (prev) {
|
|
856
|
+
return point(prev.container, prev.container.data.length);
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
};
|
|
860
|
+
var textAfter = function (node, offset, rootNode) {
|
|
861
|
+
if (isText(node) && offset >= node.length) {
|
|
862
|
+
return Option.some(point(node, offset));
|
|
863
|
+
} else {
|
|
864
|
+
var textSeeker = global$5(DOM);
|
|
865
|
+
return Option.from(textSeeker.forwards(node, offset, alwaysNext(node), rootNode)).map(function (prev) {
|
|
866
|
+
return point(prev.container, 0);
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
var scanLeft = function (node, offset, rootNode) {
|
|
871
|
+
if (!isText(node)) {
|
|
872
|
+
return Option.none();
|
|
873
|
+
}
|
|
874
|
+
var text = node.textContent;
|
|
875
|
+
if (offset >= 0 && offset <= text.length) {
|
|
876
|
+
return Option.some(point(node, offset));
|
|
877
|
+
} else {
|
|
878
|
+
var textSeeker = global$5(DOM);
|
|
879
|
+
return Option.from(textSeeker.backwards(node, offset, alwaysNext(node), rootNode)).bind(function (prev) {
|
|
880
|
+
var prevText = prev.container.data;
|
|
881
|
+
return scanLeft(prev.container, offset + prevText.length, rootNode);
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
};
|
|
885
|
+
var scanRight = function (node, offset, rootNode) {
|
|
886
|
+
if (!isText(node)) {
|
|
887
|
+
return Option.none();
|
|
888
|
+
}
|
|
889
|
+
var text = node.textContent;
|
|
890
|
+
if (offset <= text.length) {
|
|
891
|
+
return Option.some(point(node, offset));
|
|
892
|
+
} else {
|
|
893
|
+
var textSeeker = global$5(DOM);
|
|
894
|
+
return Option.from(textSeeker.forwards(node, offset, alwaysNext(node), rootNode)).bind(function (next) {
|
|
895
|
+
return scanRight(next.container, offset - text.length, rootNode);
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
var repeatLeft = function (dom, node, offset, process, rootNode) {
|
|
900
|
+
var search = global$5(dom, isBoundary(dom));
|
|
901
|
+
return Option.from(search.backwards(node, offset, process, rootNode));
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
var generatePath = function (root, node, offset) {
|
|
905
|
+
if (isText(node) && (offset < 0 || offset > node.data.length)) {
|
|
906
|
+
return [];
|
|
907
|
+
}
|
|
908
|
+
var p = [offset];
|
|
909
|
+
var current = node;
|
|
910
|
+
while (current !== root && current.parentNode) {
|
|
911
|
+
var parent_1 = current.parentNode;
|
|
912
|
+
for (var i = 0; i < parent_1.childNodes.length; i++) {
|
|
913
|
+
if (parent_1.childNodes[i] === current) {
|
|
914
|
+
p.push(i);
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
current = parent_1;
|
|
919
|
+
}
|
|
920
|
+
return current === root ? p.reverse() : [];
|
|
921
|
+
};
|
|
922
|
+
var generatePathRange = function (root, startNode, startOffset, endNode, endOffset) {
|
|
923
|
+
var start = generatePath(root, startNode, startOffset);
|
|
924
|
+
var end = generatePath(root, endNode, endOffset);
|
|
925
|
+
return {
|
|
926
|
+
start: start,
|
|
927
|
+
end: end
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
var resolvePath = function (root, path) {
|
|
931
|
+
var nodePath = path.slice();
|
|
932
|
+
var offset = nodePath.pop();
|
|
933
|
+
return foldl(nodePath, function (optNode, index) {
|
|
934
|
+
return optNode.bind(function (node) {
|
|
935
|
+
return Option.from(node.childNodes[index]);
|
|
936
|
+
});
|
|
937
|
+
}, Option.some(root)).bind(function (node) {
|
|
938
|
+
if (isText(node) && offset >= 0 && offset <= node.data.length) {
|
|
939
|
+
return Option.some({
|
|
940
|
+
node: node,
|
|
941
|
+
offset: offset
|
|
942
|
+
});
|
|
943
|
+
} else {
|
|
944
|
+
return Option.some({
|
|
945
|
+
node: node,
|
|
946
|
+
offset: offset
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
};
|
|
951
|
+
var resolvePathRange = function (root, range) {
|
|
952
|
+
return resolvePath(root, range.start).bind(function (_a) {
|
|
953
|
+
var startNode = _a.node, startOffset = _a.offset;
|
|
954
|
+
return resolvePath(root, range.end).map(function (_a) {
|
|
955
|
+
var endNode = _a.node, endOffset = _a.offset;
|
|
956
|
+
var rng = domGlobals.document.createRange();
|
|
957
|
+
rng.setStart(startNode, startOffset);
|
|
958
|
+
rng.setEnd(endNode, endOffset);
|
|
959
|
+
return rng;
|
|
960
|
+
});
|
|
961
|
+
});
|
|
962
|
+
};
|
|
963
|
+
var generatePathRangeFromRange = function (root, range) {
|
|
964
|
+
return generatePathRange(root, range.startContainer, range.startOffset, range.endContainer, range.endOffset);
|
|
965
|
+
};
|
|
966
|
+
|
|
967
|
+
var stripPattern = function (dom, block, pattern) {
|
|
968
|
+
var firstTextNode = textAfter(block, 0, block);
|
|
969
|
+
firstTextNode.each(function (spot) {
|
|
970
|
+
var node = spot.container;
|
|
971
|
+
scanRight(node, pattern.start.length, block).each(function (end) {
|
|
972
|
+
var rng = dom.createRng();
|
|
973
|
+
rng.setStart(node, 0);
|
|
974
|
+
rng.setEnd(end.container, end.offset);
|
|
975
|
+
deleteRng(dom, rng, function (e) {
|
|
976
|
+
return e === block;
|
|
977
|
+
});
|
|
978
|
+
});
|
|
979
|
+
});
|
|
980
|
+
};
|
|
981
|
+
var applyPattern = function (editor, match) {
|
|
982
|
+
var dom = editor.dom;
|
|
983
|
+
var pattern = match.pattern;
|
|
984
|
+
var rng = resolvePathRange(dom.getRoot(), match.range).getOrDie('Unable to resolve path range');
|
|
985
|
+
getParentBlock(editor, rng).each(function (block) {
|
|
986
|
+
if (pattern.type === 'block-format') {
|
|
987
|
+
if (isBlockFormatName(pattern.format, editor.formatter)) {
|
|
988
|
+
editor.undoManager.transact(function () {
|
|
989
|
+
stripPattern(editor.dom, block, pattern);
|
|
990
|
+
editor.formatter.apply(pattern.format);
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
} else if (pattern.type === 'block-command') {
|
|
994
|
+
editor.undoManager.transact(function () {
|
|
995
|
+
stripPattern(editor.dom, block, pattern);
|
|
996
|
+
editor.execCommand(pattern.cmd, false, pattern.value);
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
});
|
|
1000
|
+
return true;
|
|
1001
|
+
};
|
|
1002
|
+
var findPattern = function (patterns, text) {
|
|
1003
|
+
var nuText = text.replace(nbsp, ' ');
|
|
1004
|
+
return find(patterns, function (pattern) {
|
|
1005
|
+
if (text.indexOf(pattern.start) !== 0 && nuText.indexOf(pattern.start) !== 0) {
|
|
1006
|
+
return false;
|
|
1007
|
+
}
|
|
1008
|
+
return true;
|
|
1009
|
+
});
|
|
1010
|
+
};
|
|
1011
|
+
var findPatterns = function (editor, patterns) {
|
|
1012
|
+
var dom = editor.dom;
|
|
1013
|
+
var rng = editor.selection.getRng();
|
|
1014
|
+
return getParentBlock(editor, rng).filter(function (block) {
|
|
1015
|
+
var forcedRootBlock = getForcedRootBlock(editor);
|
|
1016
|
+
var matchesForcedRootBlock = forcedRootBlock === '' && dom.is(block, 'body') || dom.is(block, forcedRootBlock);
|
|
1017
|
+
return block !== null && matchesForcedRootBlock;
|
|
1018
|
+
}).bind(function (block) {
|
|
1019
|
+
var blockText = block.textContent;
|
|
1020
|
+
var matchedPattern = findPattern(patterns, blockText);
|
|
1021
|
+
return matchedPattern.map(function (pattern) {
|
|
1022
|
+
if (global$3.trim(blockText).length === pattern.start.length) {
|
|
1023
|
+
return [];
|
|
1024
|
+
}
|
|
1025
|
+
return [{
|
|
1026
|
+
pattern: pattern,
|
|
1027
|
+
range: generatePathRange(dom.getRoot(), block, 0, block, 0)
|
|
1028
|
+
}];
|
|
1029
|
+
});
|
|
1030
|
+
}).getOr([]);
|
|
1031
|
+
};
|
|
1032
|
+
var applyMatches = function (editor, matches) {
|
|
1033
|
+
if (matches.length === 0) {
|
|
1034
|
+
return;
|
|
1035
|
+
}
|
|
1036
|
+
var bookmark = editor.selection.getBookmark();
|
|
1037
|
+
each(matches, function (match) {
|
|
1038
|
+
return applyPattern(editor, match);
|
|
1039
|
+
});
|
|
1040
|
+
editor.selection.moveToBookmark(bookmark);
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
var unique = 0;
|
|
1044
|
+
var generate$1 = function (prefix) {
|
|
1045
|
+
var date = new Date();
|
|
1046
|
+
var time = date.getTime();
|
|
1047
|
+
var random = Math.floor(Math.random() * 1000000000);
|
|
1048
|
+
unique++;
|
|
1049
|
+
return prefix + '_' + random + unique + String(time);
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
var checkRange = function (str, substr, start) {
|
|
1053
|
+
return substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
|
|
1054
|
+
};
|
|
1055
|
+
var endsWith = function (str, suffix) {
|
|
1056
|
+
return checkRange(str, suffix, str.length - suffix.length);
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
var newMarker = function (dom, id) {
|
|
1060
|
+
return dom.create('span', {
|
|
1061
|
+
'data-mce-type': 'bookmark',
|
|
1062
|
+
id: id
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1065
|
+
var rangeFromMarker = function (dom, marker) {
|
|
1066
|
+
var rng = dom.createRng();
|
|
1067
|
+
rng.setStartAfter(marker.start);
|
|
1068
|
+
rng.setEndBefore(marker.end);
|
|
1069
|
+
return rng;
|
|
1070
|
+
};
|
|
1071
|
+
var createMarker = function (dom, markerPrefix, pathRange) {
|
|
1072
|
+
var rng = resolvePathRange(dom.getRoot(), pathRange).getOrDie('Unable to resolve path range');
|
|
1073
|
+
var startNode = rng.startContainer;
|
|
1074
|
+
var endNode = rng.endContainer;
|
|
1075
|
+
var textEnd = rng.endOffset === 0 ? endNode : endNode.splitText(rng.endOffset);
|
|
1076
|
+
var textStart = rng.startOffset === 0 ? startNode : startNode.splitText(rng.startOffset);
|
|
1077
|
+
return {
|
|
1078
|
+
prefix: markerPrefix,
|
|
1079
|
+
end: textEnd.parentNode.insertBefore(newMarker(dom, markerPrefix + '-end'), textEnd),
|
|
1080
|
+
start: textStart.parentNode.insertBefore(newMarker(dom, markerPrefix + '-start'), textStart)
|
|
1081
|
+
};
|
|
1082
|
+
};
|
|
1083
|
+
var removeMarker = function (dom, marker, isRoot) {
|
|
1084
|
+
cleanEmptyNodes(dom, dom.get(marker.prefix + '-end'), isRoot);
|
|
1085
|
+
cleanEmptyNodes(dom, dom.get(marker.prefix + '-start'), isRoot);
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
var matchesPattern = function (dom, block, patternContent) {
|
|
1089
|
+
return function (element, offset) {
|
|
1090
|
+
var text = element.data;
|
|
1091
|
+
var searchText = text.substring(0, offset);
|
|
1092
|
+
var startEndIndex = searchText.lastIndexOf(patternContent.charAt(patternContent.length - 1));
|
|
1093
|
+
var startIndex = searchText.lastIndexOf(patternContent);
|
|
1094
|
+
if (startIndex !== -1) {
|
|
1095
|
+
return startIndex + patternContent.length;
|
|
1096
|
+
} else if (startEndIndex !== -1) {
|
|
1097
|
+
return startEndIndex + 1;
|
|
1098
|
+
} else {
|
|
1099
|
+
return -1;
|
|
1100
|
+
}
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
var findPatternStartFromSpot = function (dom, pattern, block, spot) {
|
|
1104
|
+
var startPattern = pattern.start;
|
|
1105
|
+
var startSpot = repeatLeft(dom, spot.container, spot.offset, matchesPattern(dom, block, startPattern), block);
|
|
1106
|
+
return startSpot.bind(function (spot) {
|
|
1107
|
+
if (spot.offset >= startPattern.length) {
|
|
1108
|
+
var rng = dom.createRng();
|
|
1109
|
+
rng.setStart(spot.container, spot.offset - startPattern.length);
|
|
1110
|
+
rng.setEnd(spot.container, spot.offset);
|
|
1111
|
+
return Option.some(rng);
|
|
1112
|
+
} else {
|
|
1113
|
+
var offset = spot.offset - startPattern.length;
|
|
1114
|
+
return scanLeft(spot.container, offset, block).map(function (nextSpot) {
|
|
1115
|
+
var rng = dom.createRng();
|
|
1116
|
+
rng.setStart(nextSpot.container, nextSpot.offset);
|
|
1117
|
+
rng.setEnd(spot.container, spot.offset);
|
|
1118
|
+
return rng;
|
|
1119
|
+
}).filter(function (rng) {
|
|
1120
|
+
return rng.toString() === startPattern;
|
|
1121
|
+
}).orThunk(function () {
|
|
1122
|
+
return findPatternStartFromSpot(dom, pattern, block, point(spot.container, 0));
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
};
|
|
1127
|
+
var findPatternStart = function (dom, pattern, node, offset, block, requireGap) {
|
|
1128
|
+
if (requireGap === void 0) {
|
|
1129
|
+
requireGap = false;
|
|
1130
|
+
}
|
|
1131
|
+
if (pattern.start.length === 0 && !requireGap) {
|
|
1132
|
+
var rng = dom.createRng();
|
|
1133
|
+
rng.setStart(node, offset);
|
|
1134
|
+
rng.setEnd(node, offset);
|
|
1135
|
+
return Option.some(rng);
|
|
1136
|
+
}
|
|
1137
|
+
return textBefore(node, offset, block).bind(function (spot) {
|
|
1138
|
+
var start = findPatternStartFromSpot(dom, pattern, block, spot);
|
|
1139
|
+
return start.bind(function (startRange) {
|
|
1140
|
+
if (requireGap) {
|
|
1141
|
+
if (startRange.endContainer === spot.container && startRange.endOffset === spot.offset) {
|
|
1142
|
+
return Option.none();
|
|
1143
|
+
} else if (spot.offset === 0 && startRange.endContainer.textContent.length === startRange.endOffset) {
|
|
1144
|
+
return Option.none();
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
return Option.some(startRange);
|
|
1148
|
+
});
|
|
1149
|
+
});
|
|
1150
|
+
};
|
|
1151
|
+
var findPattern$1 = function (editor, block, details) {
|
|
1152
|
+
var dom = editor.dom;
|
|
1153
|
+
var root = dom.getRoot();
|
|
1154
|
+
var pattern = details.pattern;
|
|
1155
|
+
var endNode = details.position.container;
|
|
1156
|
+
var endOffset = details.position.offset;
|
|
1157
|
+
return scanLeft(endNode, endOffset - details.pattern.end.length, block).bind(function (spot) {
|
|
1158
|
+
var endPathRng = generatePathRange(root, spot.container, spot.offset, endNode, endOffset);
|
|
1159
|
+
if (isReplacementPattern(pattern)) {
|
|
1160
|
+
return Option.some({
|
|
1161
|
+
matches: [{
|
|
1162
|
+
pattern: pattern,
|
|
1163
|
+
startRng: endPathRng,
|
|
1164
|
+
endRng: endPathRng
|
|
1165
|
+
}],
|
|
1166
|
+
position: spot
|
|
1167
|
+
});
|
|
1168
|
+
} else {
|
|
1169
|
+
var resultsOpt = findPatternsRec(editor, details.remainingPatterns, spot.container, spot.offset, block);
|
|
1170
|
+
var results_1 = resultsOpt.getOr({
|
|
1171
|
+
matches: [],
|
|
1172
|
+
position: spot
|
|
1173
|
+
});
|
|
1174
|
+
var pos = results_1.position;
|
|
1175
|
+
var start = findPatternStart(dom, pattern, pos.container, pos.offset, block, resultsOpt.isNone());
|
|
1176
|
+
return start.map(function (startRng) {
|
|
1177
|
+
var startPathRng = generatePathRangeFromRange(root, startRng);
|
|
1178
|
+
return {
|
|
1179
|
+
matches: results_1.matches.concat([{
|
|
1180
|
+
pattern: pattern,
|
|
1181
|
+
startRng: startPathRng,
|
|
1182
|
+
endRng: endPathRng
|
|
1183
|
+
}]),
|
|
1184
|
+
position: point(startRng.startContainer, startRng.startOffset)
|
|
1185
|
+
};
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
});
|
|
1189
|
+
};
|
|
1190
|
+
var findPatternsRec = function (editor, patterns, node, offset, block) {
|
|
1191
|
+
var dom = editor.dom;
|
|
1192
|
+
return textBefore(node, offset, dom.getRoot()).bind(function (endSpot) {
|
|
1193
|
+
var rng = dom.createRng();
|
|
1194
|
+
rng.setStart(block, 0);
|
|
1195
|
+
rng.setEnd(node, offset);
|
|
1196
|
+
var text = rng.toString();
|
|
1197
|
+
for (var i = 0; i < patterns.length; i++) {
|
|
1198
|
+
var pattern = patterns[i];
|
|
1199
|
+
if (!endsWith(text, pattern.end)) {
|
|
1200
|
+
continue;
|
|
1201
|
+
}
|
|
1202
|
+
var patternsWithoutCurrent = patterns.slice();
|
|
1203
|
+
patternsWithoutCurrent.splice(i, 1);
|
|
1204
|
+
var result = findPattern$1(editor, block, {
|
|
1205
|
+
pattern: pattern,
|
|
1206
|
+
remainingPatterns: patternsWithoutCurrent,
|
|
1207
|
+
position: endSpot
|
|
1208
|
+
});
|
|
1209
|
+
if (result.isSome()) {
|
|
1210
|
+
return result;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
return Option.none();
|
|
1214
|
+
});
|
|
1215
|
+
};
|
|
1216
|
+
var applyPattern$1 = function (editor, pattern, patternRange) {
|
|
1217
|
+
editor.selection.setRng(patternRange);
|
|
1218
|
+
if (pattern.type === 'inline-format') {
|
|
1219
|
+
each(pattern.format, function (format) {
|
|
1220
|
+
editor.formatter.apply(format);
|
|
1221
|
+
});
|
|
1222
|
+
} else {
|
|
1223
|
+
editor.execCommand(pattern.cmd, false, pattern.value);
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
var applyReplacementPattern = function (editor, pattern, marker, isRoot) {
|
|
1227
|
+
var markerRange = rangeFromMarker(editor.dom, marker);
|
|
1228
|
+
deleteRng(editor.dom, markerRange, isRoot);
|
|
1229
|
+
applyPattern$1(editor, pattern, markerRange);
|
|
1230
|
+
};
|
|
1231
|
+
var applyPatternWithContent = function (editor, pattern, startMarker, endMarker, isRoot) {
|
|
1232
|
+
var dom = editor.dom;
|
|
1233
|
+
var markerEndRange = rangeFromMarker(dom, endMarker);
|
|
1234
|
+
var markerStartRange = rangeFromMarker(dom, startMarker);
|
|
1235
|
+
deleteRng(dom, markerStartRange, isRoot);
|
|
1236
|
+
deleteRng(dom, markerEndRange, isRoot);
|
|
1237
|
+
var patternMarker = {
|
|
1238
|
+
prefix: startMarker.prefix,
|
|
1239
|
+
start: startMarker.end,
|
|
1240
|
+
end: endMarker.start
|
|
1241
|
+
};
|
|
1242
|
+
var patternRange = rangeFromMarker(dom, patternMarker);
|
|
1243
|
+
applyPattern$1(editor, pattern, patternRange);
|
|
1244
|
+
};
|
|
1245
|
+
var addMarkers = function (dom, matches) {
|
|
1246
|
+
var markerPrefix = generate$1('mce_textpattern');
|
|
1247
|
+
var matchesWithEnds = foldr(matches, function (acc, match) {
|
|
1248
|
+
var endMarker = createMarker(dom, markerPrefix + ('_end' + acc.length), match.endRng);
|
|
1249
|
+
return acc.concat([__assign(__assign({}, match), { endMarker: endMarker })]);
|
|
1250
|
+
}, []);
|
|
1251
|
+
return foldr(matchesWithEnds, function (acc, match) {
|
|
1252
|
+
var idx = matchesWithEnds.length - acc.length - 1;
|
|
1253
|
+
var startMarker = isReplacementPattern(match.pattern) ? match.endMarker : createMarker(dom, markerPrefix + ('_start' + idx), match.startRng);
|
|
1254
|
+
return acc.concat([__assign(__assign({}, match), { startMarker: startMarker })]);
|
|
1255
|
+
}, []);
|
|
1256
|
+
};
|
|
1257
|
+
var findPatterns$1 = function (editor, patterns, space) {
|
|
1258
|
+
var rng = editor.selection.getRng();
|
|
1259
|
+
if (rng.collapsed === false) {
|
|
1260
|
+
return [];
|
|
1261
|
+
}
|
|
1262
|
+
return getParentBlock(editor, rng).bind(function (block) {
|
|
1263
|
+
var offset = rng.startOffset - (space ? 1 : 0);
|
|
1264
|
+
return findPatternsRec(editor, patterns, rng.startContainer, offset, block);
|
|
1265
|
+
}).fold(function () {
|
|
1266
|
+
return [];
|
|
1267
|
+
}, function (result) {
|
|
1268
|
+
return result.matches;
|
|
1269
|
+
});
|
|
1270
|
+
};
|
|
1271
|
+
var applyMatches$1 = function (editor, matches) {
|
|
1272
|
+
if (matches.length === 0) {
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
var dom = editor.dom;
|
|
1276
|
+
var bookmark = editor.selection.getBookmark();
|
|
1277
|
+
var matchesWithMarkers = addMarkers(dom, matches);
|
|
1278
|
+
each(matchesWithMarkers, function (match) {
|
|
1279
|
+
var block = dom.getParent(match.startMarker.start, dom.isBlock);
|
|
1280
|
+
var isRoot = function (node) {
|
|
1281
|
+
return node === block;
|
|
1282
|
+
};
|
|
1283
|
+
if (isReplacementPattern(match.pattern)) {
|
|
1284
|
+
applyReplacementPattern(editor, match.pattern, match.endMarker, isRoot);
|
|
1285
|
+
} else {
|
|
1286
|
+
applyPatternWithContent(editor, match.pattern, match.startMarker, match.endMarker, isRoot);
|
|
1287
|
+
}
|
|
1288
|
+
removeMarker(dom, match.endMarker, isRoot);
|
|
1289
|
+
removeMarker(dom, match.startMarker, isRoot);
|
|
1290
|
+
});
|
|
1291
|
+
editor.selection.moveToBookmark(bookmark);
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
var handleEnter = function (editor, patternSet) {
|
|
1295
|
+
if (!editor.selection.isCollapsed()) {
|
|
1296
|
+
return false;
|
|
1297
|
+
}
|
|
1298
|
+
var inlineMatches = findPatterns$1(editor, patternSet.inlinePatterns, false);
|
|
1299
|
+
var blockMatches = findPatterns(editor, patternSet.blockPatterns);
|
|
1300
|
+
if (blockMatches.length > 0 || inlineMatches.length > 0) {
|
|
1301
|
+
editor.undoManager.add();
|
|
1302
|
+
editor.undoManager.extra(function () {
|
|
1303
|
+
editor.execCommand('mceInsertNewLine');
|
|
1304
|
+
}, function () {
|
|
1305
|
+
editor.insertContent(zeroWidth);
|
|
1306
|
+
applyMatches$1(editor, inlineMatches);
|
|
1307
|
+
applyMatches(editor, blockMatches);
|
|
1308
|
+
var range = editor.selection.getRng();
|
|
1309
|
+
var spot = textBefore(range.startContainer, range.startOffset, editor.dom.getRoot());
|
|
1310
|
+
editor.execCommand('mceInsertNewLine');
|
|
1311
|
+
spot.each(function (s) {
|
|
1312
|
+
var node = s.container;
|
|
1313
|
+
if (node.data.charAt(s.offset - 1) === zeroWidth) {
|
|
1314
|
+
node.deleteData(s.offset - 1, 1);
|
|
1315
|
+
cleanEmptyNodes(editor.dom, node.parentNode, function (e) {
|
|
1316
|
+
return e === editor.dom.getRoot();
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
});
|
|
1321
|
+
return true;
|
|
1322
|
+
}
|
|
1323
|
+
return false;
|
|
1324
|
+
};
|
|
1325
|
+
var handleInlineKey = function (editor, patternSet) {
|
|
1326
|
+
var inlineMatches = findPatterns$1(editor, patternSet.inlinePatterns, true);
|
|
1327
|
+
if (inlineMatches.length > 0) {
|
|
1328
|
+
editor.undoManager.transact(function () {
|
|
1329
|
+
applyMatches$1(editor, inlineMatches);
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
var checkKeyEvent = function (codes, event, predicate) {
|
|
1334
|
+
for (var i = 0; i < codes.length; i++) {
|
|
1335
|
+
if (predicate(codes[i], event)) {
|
|
1336
|
+
return true;
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
};
|
|
1340
|
+
var checkKeyCode = function (codes, event) {
|
|
1341
|
+
return checkKeyEvent(codes, event, function (code, event) {
|
|
1342
|
+
return code === event.keyCode && global$2.modifierPressed(event) === false;
|
|
1343
|
+
});
|
|
1344
|
+
};
|
|
1345
|
+
var checkCharCode = function (chars, event) {
|
|
1346
|
+
return checkKeyEvent(chars, event, function (chr, event) {
|
|
1347
|
+
return chr.charCodeAt(0) === event.charCode;
|
|
1348
|
+
});
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
var setup = function (editor, patternsState) {
|
|
1352
|
+
var charCodes = [
|
|
1353
|
+
',',
|
|
1354
|
+
'.',
|
|
1355
|
+
';',
|
|
1356
|
+
':',
|
|
1357
|
+
'!',
|
|
1358
|
+
'?'
|
|
1359
|
+
];
|
|
1360
|
+
var keyCodes = [32];
|
|
1361
|
+
editor.on('keydown', function (e) {
|
|
1362
|
+
if (e.keyCode === 13 && !global$2.modifierPressed(e)) {
|
|
1363
|
+
if (handleEnter(editor, patternsState.get())) {
|
|
1364
|
+
e.preventDefault();
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
}, true);
|
|
1368
|
+
editor.on('keyup', function (e) {
|
|
1369
|
+
if (checkKeyCode(keyCodes, e)) {
|
|
1370
|
+
handleInlineKey(editor, patternsState.get());
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1373
|
+
editor.on('keypress', function (e) {
|
|
1374
|
+
if (checkCharCode(charCodes, e)) {
|
|
1375
|
+
global$1.setEditorTimeout(editor, function () {
|
|
1376
|
+
handleInlineKey(editor, patternsState.get());
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
function Plugin () {
|
|
1383
|
+
global.add('textpattern', function (editor) {
|
|
1384
|
+
var patternsState = Cell(getPatternSet(editor));
|
|
1385
|
+
setup(editor, patternsState);
|
|
1386
|
+
return get(patternsState);
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
Plugin();
|
|
1391
|
+
|
|
1392
|
+
}(window));
|