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.
Files changed (1223) hide show
  1. package/.browserslistrc +4 -0
  2. package/.dockerignore +2 -0
  3. package/.editorconfig +5 -0
  4. package/.env.dev +6 -0
  5. package/.env.development +4 -0
  6. package/.env.localize +7 -0
  7. package/.env.ppe +6 -0
  8. package/.env.prd +6 -0
  9. package/.env.pre +6 -0
  10. package/.env.production +6 -0
  11. package/.env.simple +8 -0
  12. package/.eslintignore +2 -0
  13. package/.eslintrc.js +24 -0
  14. package/Dockerfile +12 -0
  15. package/README.md +108 -0
  16. package/babel.config.js +26 -0
  17. package/build/webpack.component.js +54 -0
  18. package/build/webpack.dev.js +114 -0
  19. package/build/webpack.prod.js +133 -0
  20. package/nginx.conf +38 -0
  21. package/package.json +93 -0
  22. package/public/403.html +77 -0
  23. package/public/cmaps/78-EUC-H.bcmap +0 -0
  24. package/public/cmaps/78-EUC-V.bcmap +0 -0
  25. package/public/cmaps/78-H.bcmap +0 -0
  26. package/public/cmaps/78-RKSJ-H.bcmap +0 -0
  27. package/public/cmaps/78-RKSJ-V.bcmap +0 -0
  28. package/public/cmaps/78-V.bcmap +0 -0
  29. package/public/cmaps/78ms-RKSJ-H.bcmap +0 -0
  30. package/public/cmaps/78ms-RKSJ-V.bcmap +0 -0
  31. package/public/cmaps/83pv-RKSJ-H.bcmap +0 -0
  32. package/public/cmaps/90ms-RKSJ-H.bcmap +0 -0
  33. package/public/cmaps/90ms-RKSJ-V.bcmap +0 -0
  34. package/public/cmaps/90msp-RKSJ-H.bcmap +0 -0
  35. package/public/cmaps/90msp-RKSJ-V.bcmap +0 -0
  36. package/public/cmaps/90pv-RKSJ-H.bcmap +0 -0
  37. package/public/cmaps/90pv-RKSJ-V.bcmap +0 -0
  38. package/public/cmaps/Add-H.bcmap +0 -0
  39. package/public/cmaps/Add-RKSJ-H.bcmap +0 -0
  40. package/public/cmaps/Add-RKSJ-V.bcmap +0 -0
  41. package/public/cmaps/Add-V.bcmap +0 -0
  42. package/public/cmaps/Adobe-CNS1-0.bcmap +0 -0
  43. package/public/cmaps/Adobe-CNS1-1.bcmap +0 -0
  44. package/public/cmaps/Adobe-CNS1-2.bcmap +0 -0
  45. package/public/cmaps/Adobe-CNS1-3.bcmap +0 -0
  46. package/public/cmaps/Adobe-CNS1-4.bcmap +0 -0
  47. package/public/cmaps/Adobe-CNS1-5.bcmap +0 -0
  48. package/public/cmaps/Adobe-CNS1-6.bcmap +0 -0
  49. package/public/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  50. package/public/cmaps/Adobe-GB1-0.bcmap +0 -0
  51. package/public/cmaps/Adobe-GB1-1.bcmap +0 -0
  52. package/public/cmaps/Adobe-GB1-2.bcmap +0 -0
  53. package/public/cmaps/Adobe-GB1-3.bcmap +0 -0
  54. package/public/cmaps/Adobe-GB1-4.bcmap +0 -0
  55. package/public/cmaps/Adobe-GB1-5.bcmap +0 -0
  56. package/public/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  57. package/public/cmaps/Adobe-Japan1-0.bcmap +0 -0
  58. package/public/cmaps/Adobe-Japan1-1.bcmap +0 -0
  59. package/public/cmaps/Adobe-Japan1-2.bcmap +0 -0
  60. package/public/cmaps/Adobe-Japan1-3.bcmap +0 -0
  61. package/public/cmaps/Adobe-Japan1-4.bcmap +0 -0
  62. package/public/cmaps/Adobe-Japan1-5.bcmap +0 -0
  63. package/public/cmaps/Adobe-Japan1-6.bcmap +0 -0
  64. package/public/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  65. package/public/cmaps/Adobe-Korea1-0.bcmap +0 -0
  66. package/public/cmaps/Adobe-Korea1-1.bcmap +0 -0
  67. package/public/cmaps/Adobe-Korea1-2.bcmap +0 -0
  68. package/public/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  69. package/public/cmaps/B5-H.bcmap +0 -0
  70. package/public/cmaps/B5-V.bcmap +0 -0
  71. package/public/cmaps/B5pc-H.bcmap +0 -0
  72. package/public/cmaps/B5pc-V.bcmap +0 -0
  73. package/public/cmaps/CNS-EUC-H.bcmap +0 -0
  74. package/public/cmaps/CNS-EUC-V.bcmap +0 -0
  75. package/public/cmaps/CNS1-H.bcmap +0 -0
  76. package/public/cmaps/CNS1-V.bcmap +0 -0
  77. package/public/cmaps/CNS2-H.bcmap +0 -0
  78. package/public/cmaps/CNS2-V.bcmap +3 -0
  79. package/public/cmaps/ETHK-B5-H.bcmap +0 -0
  80. package/public/cmaps/ETHK-B5-V.bcmap +0 -0
  81. package/public/cmaps/ETen-B5-H.bcmap +0 -0
  82. package/public/cmaps/ETen-B5-V.bcmap +0 -0
  83. package/public/cmaps/ETenms-B5-H.bcmap +3 -0
  84. package/public/cmaps/ETenms-B5-V.bcmap +0 -0
  85. package/public/cmaps/EUC-H.bcmap +0 -0
  86. package/public/cmaps/EUC-V.bcmap +0 -0
  87. package/public/cmaps/Ext-H.bcmap +0 -0
  88. package/public/cmaps/Ext-RKSJ-H.bcmap +0 -0
  89. package/public/cmaps/Ext-RKSJ-V.bcmap +0 -0
  90. package/public/cmaps/Ext-V.bcmap +0 -0
  91. package/public/cmaps/GB-EUC-H.bcmap +0 -0
  92. package/public/cmaps/GB-EUC-V.bcmap +0 -0
  93. package/public/cmaps/GB-H.bcmap +4 -0
  94. package/public/cmaps/GB-V.bcmap +0 -0
  95. package/public/cmaps/GBK-EUC-H.bcmap +0 -0
  96. package/public/cmaps/GBK-EUC-V.bcmap +0 -0
  97. package/public/cmaps/GBK2K-H.bcmap +0 -0
  98. package/public/cmaps/GBK2K-V.bcmap +0 -0
  99. package/public/cmaps/GBKp-EUC-H.bcmap +0 -0
  100. package/public/cmaps/GBKp-EUC-V.bcmap +0 -0
  101. package/public/cmaps/GBT-EUC-H.bcmap +0 -0
  102. package/public/cmaps/GBT-EUC-V.bcmap +0 -0
  103. package/public/cmaps/GBT-H.bcmap +0 -0
  104. package/public/cmaps/GBT-V.bcmap +0 -0
  105. package/public/cmaps/GBTpc-EUC-H.bcmap +0 -0
  106. package/public/cmaps/GBTpc-EUC-V.bcmap +0 -0
  107. package/public/cmaps/GBpc-EUC-H.bcmap +0 -0
  108. package/public/cmaps/GBpc-EUC-V.bcmap +0 -0
  109. package/public/cmaps/H.bcmap +0 -0
  110. package/public/cmaps/HKdla-B5-H.bcmap +0 -0
  111. package/public/cmaps/HKdla-B5-V.bcmap +0 -0
  112. package/public/cmaps/HKdlb-B5-H.bcmap +0 -0
  113. package/public/cmaps/HKdlb-B5-V.bcmap +0 -0
  114. package/public/cmaps/HKgccs-B5-H.bcmap +0 -0
  115. package/public/cmaps/HKgccs-B5-V.bcmap +0 -0
  116. package/public/cmaps/HKm314-B5-H.bcmap +0 -0
  117. package/public/cmaps/HKm314-B5-V.bcmap +0 -0
  118. package/public/cmaps/HKm471-B5-H.bcmap +0 -0
  119. package/public/cmaps/HKm471-B5-V.bcmap +0 -0
  120. package/public/cmaps/HKscs-B5-H.bcmap +0 -0
  121. package/public/cmaps/HKscs-B5-V.bcmap +0 -0
  122. package/public/cmaps/Hankaku.bcmap +0 -0
  123. package/public/cmaps/Hiragana.bcmap +0 -0
  124. package/public/cmaps/KSC-EUC-H.bcmap +0 -0
  125. package/public/cmaps/KSC-EUC-V.bcmap +0 -0
  126. package/public/cmaps/KSC-H.bcmap +0 -0
  127. package/public/cmaps/KSC-Johab-H.bcmap +0 -0
  128. package/public/cmaps/KSC-Johab-V.bcmap +0 -0
  129. package/public/cmaps/KSC-V.bcmap +0 -0
  130. package/public/cmaps/KSCms-UHC-H.bcmap +0 -0
  131. package/public/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  132. package/public/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  133. package/public/cmaps/KSCms-UHC-V.bcmap +0 -0
  134. package/public/cmaps/KSCpc-EUC-H.bcmap +0 -0
  135. package/public/cmaps/KSCpc-EUC-V.bcmap +0 -0
  136. package/public/cmaps/Katakana.bcmap +0 -0
  137. package/public/cmaps/LICENSE +36 -0
  138. package/public/cmaps/NWP-H.bcmap +0 -0
  139. package/public/cmaps/NWP-V.bcmap +0 -0
  140. package/public/cmaps/RKSJ-H.bcmap +0 -0
  141. package/public/cmaps/RKSJ-V.bcmap +0 -0
  142. package/public/cmaps/Roman.bcmap +0 -0
  143. package/public/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  144. package/public/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  145. package/public/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  146. package/public/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  147. package/public/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  148. package/public/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  149. package/public/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  150. package/public/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  151. package/public/cmaps/UniGB-UCS2-H.bcmap +0 -0
  152. package/public/cmaps/UniGB-UCS2-V.bcmap +0 -0
  153. package/public/cmaps/UniGB-UTF16-H.bcmap +0 -0
  154. package/public/cmaps/UniGB-UTF16-V.bcmap +0 -0
  155. package/public/cmaps/UniGB-UTF32-H.bcmap +0 -0
  156. package/public/cmaps/UniGB-UTF32-V.bcmap +0 -0
  157. package/public/cmaps/UniGB-UTF8-H.bcmap +0 -0
  158. package/public/cmaps/UniGB-UTF8-V.bcmap +0 -0
  159. package/public/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  160. package/public/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  161. package/public/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  162. package/public/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  163. package/public/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  164. package/public/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  165. package/public/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  166. package/public/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  167. package/public/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  168. package/public/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  169. package/public/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  170. package/public/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  171. package/public/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  172. package/public/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  173. package/public/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  174. package/public/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  175. package/public/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  176. package/public/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  177. package/public/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  178. package/public/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  179. package/public/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  180. package/public/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  181. package/public/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  182. package/public/cmaps/UniKS-UCS2-H.bcmap +0 -0
  183. package/public/cmaps/UniKS-UCS2-V.bcmap +0 -0
  184. package/public/cmaps/UniKS-UTF16-H.bcmap +0 -0
  185. package/public/cmaps/UniKS-UTF16-V.bcmap +0 -0
  186. package/public/cmaps/UniKS-UTF32-H.bcmap +0 -0
  187. package/public/cmaps/UniKS-UTF32-V.bcmap +0 -0
  188. package/public/cmaps/UniKS-UTF8-H.bcmap +0 -0
  189. package/public/cmaps/UniKS-UTF8-V.bcmap +0 -0
  190. package/public/cmaps/V.bcmap +0 -0
  191. package/public/cmaps/WP-Symbol.bcmap +0 -0
  192. package/public/favicon.ico +0 -0
  193. package/public/font/font_2530548_ikl5ryc86u.css +535 -0
  194. package/public/font/font_2530548_ikl5ryc86u.ttf +0 -0
  195. package/public/font/font_2530548_ikl5ryc86u.woff +0 -0
  196. package/public/font/font_2530548_ikl5ryc86u.woff2 +0 -0
  197. package/public/font/font_2612462_d2s6adyaymf.css +93 -0
  198. package/public/font/font_2612462_d2s6adyaymf.ttf +0 -0
  199. package/public/font/font_2612462_d2s6adyaymf.woff +0 -0
  200. package/public/font/font_2612462_d2s6adyaymf.woff2 +0 -0
  201. package/public/img/banner.png +0 -0
  202. package/public/img/icons/android-chrome-192x192.png +0 -0
  203. package/public/img/icons/android-chrome-512x512.png +0 -0
  204. package/public/img/icons/android-chrome-maskable-192x192.png +0 -0
  205. package/public/img/icons/android-chrome-maskable-512x512.png +0 -0
  206. package/public/img/icons/apple-touch-icon-120x120.png +0 -0
  207. package/public/img/icons/apple-touch-icon-152x152.png +0 -0
  208. package/public/img/icons/apple-touch-icon-180x180.png +0 -0
  209. package/public/img/icons/apple-touch-icon-60x60.png +0 -0
  210. package/public/img/icons/apple-touch-icon-76x76.png +0 -0
  211. package/public/img/icons/apple-touch-icon.png +0 -0
  212. package/public/img/icons/favicon-16x16.png +0 -0
  213. package/public/img/icons/favicon-32x32.png +0 -0
  214. package/public/img/icons/msapplication-icon-144x144.png +0 -0
  215. package/public/img/icons/mstile-150x150.png +0 -0
  216. package/public/img/icons/safari-pinned-tab.svg +149 -0
  217. package/public/img/success.png +0 -0
  218. package/public/img/tip.png +0 -0
  219. package/public/index.html +132 -0
  220. package/public/js/babel-standalone.min.js +25 -0
  221. package/public/js/config.js +0 -0
  222. package/public/js/jquery-3.6.0.min.js +2 -0
  223. package/public/js/pdf.worker.js +45929 -0
  224. package/public/js/signature_pad.min.js +6 -0
  225. package/public/js/tinymce/icons/default/icons.js +170 -0
  226. package/public/js/tinymce/icons/default/icons.min.js +1 -0
  227. package/public/js/tinymce/jquery.tinymce.min.js +92 -0
  228. package/public/js/tinymce/langs/readme.md +3 -0
  229. package/public/js/tinymce/langs/zh_CN.js +419 -0
  230. package/public/js/tinymce/license.txt +504 -0
  231. package/public/js/tinymce/plugins/advlist/plugin.js +281 -0
  232. package/public/js/tinymce/plugins/advlist/plugin.min.js +9 -0
  233. package/public/js/tinymce/plugins/anchor/plugin.js +216 -0
  234. package/public/js/tinymce/plugins/anchor/plugin.min.js +9 -0
  235. package/public/js/tinymce/plugins/autolink/plugin.js +185 -0
  236. package/public/js/tinymce/plugins/autolink/plugin.min.js +9 -0
  237. package/public/js/tinymce/plugins/autoresize/plugin.js +171 -0
  238. package/public/js/tinymce/plugins/autoresize/plugin.min.js +9 -0
  239. package/public/js/tinymce/plugins/autosave/plugin.js +214 -0
  240. package/public/js/tinymce/plugins/autosave/plugin.min.js +9 -0
  241. package/public/js/tinymce/plugins/bbcode/plugin.js +99 -0
  242. package/public/js/tinymce/plugins/bbcode/plugin.min.js +9 -0
  243. package/public/js/tinymce/plugins/charmap/plugin.js +1706 -0
  244. package/public/js/tinymce/plugins/charmap/plugin.min.js +9 -0
  245. package/public/js/tinymce/plugins/code/plugin.js +92 -0
  246. package/public/js/tinymce/plugins/code/plugin.min.js +9 -0
  247. package/public/js/tinymce/plugins/codesample/plugin.js +1717 -0
  248. package/public/js/tinymce/plugins/codesample/plugin.min.js +9 -0
  249. package/public/js/tinymce/plugins/colorpicker/plugin.js +22 -0
  250. package/public/js/tinymce/plugins/colorpicker/plugin.min.js +9 -0
  251. package/public/js/tinymce/plugins/contextmenu/plugin.js +22 -0
  252. package/public/js/tinymce/plugins/contextmenu/plugin.min.js +9 -0
  253. package/public/js/tinymce/plugins/data/plugin.min.js +209 -0
  254. package/public/js/tinymce/plugins/directionality/plugin.js +314 -0
  255. package/public/js/tinymce/plugins/directionality/plugin.min.js +9 -0
  256. package/public/js/tinymce/plugins/emoticons/js/emojiimages.js +9424 -0
  257. package/public/js/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
  258. package/public/js/tinymce/plugins/emoticons/js/emojis.js +9423 -0
  259. package/public/js/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
  260. package/public/js/tinymce/plugins/emoticons/plugin.js +564 -0
  261. package/public/js/tinymce/plugins/emoticons/plugin.min.js +9 -0
  262. package/public/js/tinymce/plugins/fullpage/plugin.js +544 -0
  263. package/public/js/tinymce/plugins/fullpage/plugin.min.js +9 -0
  264. package/public/js/tinymce/plugins/fullscreen/plugin.js +851 -0
  265. package/public/js/tinymce/plugins/fullscreen/plugin.min.js +9 -0
  266. package/public/js/tinymce/plugins/help/plugin.js +846 -0
  267. package/public/js/tinymce/plugins/help/plugin.min.js +9 -0
  268. package/public/js/tinymce/plugins/hr/plugin.js +46 -0
  269. package/public/js/tinymce/plugins/hr/plugin.min.js +9 -0
  270. package/public/js/tinymce/plugins/image/plugin.js +1660 -0
  271. package/public/js/tinymce/plugins/image/plugin.min.js +9 -0
  272. package/public/js/tinymce/plugins/imagetools/plugin.js +1304 -0
  273. package/public/js/tinymce/plugins/imagetools/plugin.min.js +9 -0
  274. package/public/js/tinymce/plugins/importcss/plugin.js +337 -0
  275. package/public/js/tinymce/plugins/importcss/plugin.min.js +9 -0
  276. package/public/js/tinymce/plugins/insertdatetime/plugin.js +177 -0
  277. package/public/js/tinymce/plugins/insertdatetime/plugin.min.js +9 -0
  278. package/public/js/tinymce/plugins/legacyoutput/plugin.js +199 -0
  279. package/public/js/tinymce/plugins/legacyoutput/plugin.min.js +9 -0
  280. package/public/js/tinymce/plugins/link/plugin.js +1219 -0
  281. package/public/js/tinymce/plugins/link/plugin.min.js +9 -0
  282. package/public/js/tinymce/plugins/lists/plugin.js +2163 -0
  283. package/public/js/tinymce/plugins/lists/plugin.min.js +9 -0
  284. package/public/js/tinymce/plugins/media/plugin.js +1315 -0
  285. package/public/js/tinymce/plugins/media/plugin.min.js +9 -0
  286. package/public/js/tinymce/plugins/nonbreaking/plugin.js +101 -0
  287. package/public/js/tinymce/plugins/nonbreaking/plugin.min.js +9 -0
  288. package/public/js/tinymce/plugins/noneditable/plugin.js +117 -0
  289. package/public/js/tinymce/plugins/noneditable/plugin.min.js +9 -0
  290. package/public/js/tinymce/plugins/pagebreak/plugin.js +107 -0
  291. package/public/js/tinymce/plugins/pagebreak/plugin.min.js +9 -0
  292. package/public/js/tinymce/plugins/pagelink/plugin.min.js +171 -0
  293. package/public/js/tinymce/plugins/paper/plugin.min.js +80 -0
  294. package/public/js/tinymce/plugins/paste/plugin.js +1707 -0
  295. package/public/js/tinymce/plugins/paste/plugin.min.js +9 -0
  296. package/public/js/tinymce/plugins/preview/plugin.js +127 -0
  297. package/public/js/tinymce/plugins/preview/plugin.min.js +9 -0
  298. package/public/js/tinymce/plugins/print/plugin.js +53 -0
  299. package/public/js/tinymce/plugins/print/plugin.min.js +9 -0
  300. package/public/js/tinymce/plugins/quickbars/plugin.js +488 -0
  301. package/public/js/tinymce/plugins/quickbars/plugin.min.js +9 -0
  302. package/public/js/tinymce/plugins/save/plugin.js +119 -0
  303. package/public/js/tinymce/plugins/save/plugin.min.js +9 -0
  304. package/public/js/tinymce/plugins/searchreplace/plugin.js +1167 -0
  305. package/public/js/tinymce/plugins/searchreplace/plugin.min.js +9 -0
  306. package/public/js/tinymce/plugins/spellchecker/plugin.js +737 -0
  307. package/public/js/tinymce/plugins/spellchecker/plugin.min.js +9 -0
  308. package/public/js/tinymce/plugins/tabfocus/plugin.js +128 -0
  309. package/public/js/tinymce/plugins/tabfocus/plugin.min.js +9 -0
  310. package/public/js/tinymce/plugins/table/plugin.min.js +9805 -0
  311. package/public/js/tinymce/plugins/table/plugin.min.js1 +9 -0
  312. package/public/js/tinymce/plugins/template/plugin.js +562 -0
  313. package/public/js/tinymce/plugins/template/plugin.min.js +9 -0
  314. package/public/js/tinymce/plugins/textattribute/plugin.min.js +76 -0
  315. package/public/js/tinymce/plugins/textcolor/plugin.js +22 -0
  316. package/public/js/tinymce/plugins/textcolor/plugin.min.js +9 -0
  317. package/public/js/tinymce/plugins/textpattern/plugin.js +1392 -0
  318. package/public/js/tinymce/plugins/textpattern/plugin.min.js +9 -0
  319. package/public/js/tinymce/plugins/toc/plugin.js +235 -0
  320. package/public/js/tinymce/plugins/toc/plugin.min.js +9 -0
  321. package/public/js/tinymce/plugins/visualblocks/plugin.js +104 -0
  322. package/public/js/tinymce/plugins/visualblocks/plugin.min.js +9 -0
  323. package/public/js/tinymce/plugins/visualchars/plugin.js +541 -0
  324. package/public/js/tinymce/plugins/visualchars/plugin.min.js +9 -0
  325. package/public/js/tinymce/plugins/wordcount/plugin.js +416 -0
  326. package/public/js/tinymce/plugins/wordcount/plugin.min.js +9 -0
  327. package/public/js/tinymce/readme.md +77 -0
  328. package/public/js/tinymce/skins/content/dark/content.css +59 -0
  329. package/public/js/tinymce/skins/content/dark/content.min.css +7 -0
  330. package/public/js/tinymce/skins/content/dark/content.min.css.map +1 -0
  331. package/public/js/tinymce/skins/content/default/content.css +49 -0
  332. package/public/js/tinymce/skins/content/default/content.min.css +7 -0
  333. package/public/js/tinymce/skins/content/default/content.min.css.map +1 -0
  334. package/public/js/tinymce/skins/content/document/content.css +54 -0
  335. package/public/js/tinymce/skins/content/document/content.min.css +7 -0
  336. package/public/js/tinymce/skins/content/document/content.min.css.map +1 -0
  337. package/public/js/tinymce/skins/content/writer/content.css +50 -0
  338. package/public/js/tinymce/skins/content/writer/content.min.css +7 -0
  339. package/public/js/tinymce/skins/content/writer/content.min.css.map +1 -0
  340. package/public/js/tinymce/skins/ui/oxide/content.css +693 -0
  341. package/public/js/tinymce/skins/ui/oxide/content.inline.css +687 -0
  342. package/public/js/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
  343. package/public/js/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -0
  344. package/public/js/tinymce/skins/ui/oxide/content.min.css +7 -0
  345. package/public/js/tinymce/skins/ui/oxide/content.min.css.map +1 -0
  346. package/public/js/tinymce/skins/ui/oxide/content.mobile.css +29 -0
  347. package/public/js/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
  348. package/public/js/tinymce/skins/ui/oxide/content.mobile.min.css.map +1 -0
  349. package/public/js/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  350. package/public/js/tinymce/skins/ui/oxide/skin.css +2937 -0
  351. package/public/js/tinymce/skins/ui/oxide/skin.min.css +7 -0
  352. package/public/js/tinymce/skins/ui/oxide/skin.min.css.map +1 -0
  353. package/public/js/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
  354. package/public/js/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
  355. package/public/js/tinymce/skins/ui/oxide/skin.mobile.min.css.map +1 -0
  356. package/public/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
  357. package/public/js/tinymce/skins/ui/oxide-dark/content.css +675 -0
  358. package/public/js/tinymce/skins/ui/oxide-dark/content.inline.css +687 -0
  359. package/public/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
  360. package/public/js/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -0
  361. package/public/js/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
  362. package/public/js/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -0
  363. package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
  364. package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
  365. package/public/js/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +1 -0
  366. package/public/js/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  367. package/public/js/tinymce/skins/ui/oxide-dark/skin.css +2937 -0
  368. package/public/js/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
  369. package/public/js/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -0
  370. package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
  371. package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
  372. package/public/js/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +1 -0
  373. package/public/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
  374. package/public/js/tinymce/themes/mobile/theme.js +13612 -0
  375. package/public/js/tinymce/themes/mobile/theme.min.js +9 -0
  376. package/public/js/tinymce/themes/silver/theme.js +31769 -0
  377. package/public/js/tinymce/themes/silver/theme.min.js +9 -0
  378. package/public/js/tinymce/tinymce.d.ts +2916 -0
  379. package/public/js/tinymce/tinymce.min.js +9 -0
  380. package/public/luckysheet/iconfont.css +456 -0
  381. package/public/luckysheet/luckysheet.css +1 -0
  382. package/public/luckysheet/luckysheet.umd.js +27 -0
  383. package/public/luckysheet/plugin.js +1 -0
  384. package/public/luckysheet/plugins.css +10 -0
  385. package/public/luckysheet/pluginsCss.css +1 -0
  386. package/public/robots.txt +2 -0
  387. package/public/signature.html +445 -0
  388. package/sh.exe.stackdump +11 -0
  389. package/src/App.vue +31 -0
  390. package/src/api/README.md +1 -0
  391. package/src/api/config.js +187 -0
  392. package/src/api/createHttp.js +160 -0
  393. package/src/api/index.js +32 -0
  394. package/src/assets/bdrz/banlizhong.png +0 -0
  395. package/src/assets/bdrz/chenggong.png +0 -0
  396. package/src/assets/bdrz/danwei.png +0 -0
  397. package/src/assets/bdrz/hedui.png +0 -0
  398. package/src/assets/bdrz/laoziguanli.png +0 -0
  399. package/src/assets/bdrz/location.png +0 -0
  400. package/src/assets/bdrz/locationl.png +0 -0
  401. package/src/assets/bdrz/phone.png +0 -0
  402. package/src/assets/bdrz/phonel.png +0 -0
  403. package/src/assets/bdrz/shouzhi.png +0 -0
  404. package/src/assets/bdrz/time.png +0 -0
  405. package/src/assets/bdrz/timel.png +0 -0
  406. package/src/assets/bdrz/wancheng.png +0 -0
  407. package/src/assets/bdrz/zuobiao.png +0 -0
  408. package/src/assets/customTranslate/customTranslate.js +13 -0
  409. package/src/assets/customTranslate/translations.js +218 -0
  410. package/src/assets/data/card.png +0 -0
  411. package/src/assets/data/code.png +0 -0
  412. package/src/assets/home/apply.png +0 -0
  413. package/src/assets/home/banner1.png +0 -0
  414. package/src/assets/home/banner11.png +0 -0
  415. package/src/assets/home/banner12.png +0 -0
  416. package/src/assets/home/banner2.png +0 -0
  417. package/src/assets/home/banner3.png +0 -0
  418. package/src/assets/home/benke.png +0 -0
  419. package/src/assets/home/chengguo.png +0 -0
  420. package/src/assets/home/gaojirencaisousuo.png +0 -0
  421. package/src/assets/home/hangyebiaozhun.png +0 -0
  422. package/src/assets/home/huojiang.png +0 -0
  423. package/src/assets/home/icon-test.png +0 -0
  424. package/src/assets/home/kaoshi.png +0 -0
  425. package/src/assets/home/kejichengguo.png +0 -0
  426. package/src/assets/home/keyanxiangmu.png +0 -0
  427. package/src/assets/home/lunwendao.png +0 -0
  428. package/src/assets/home/message.png +0 -0
  429. package/src/assets/home/my-yanjiubaogao.png +0 -0
  430. package/src/assets/home/nodata.png +0 -0
  431. package/src/assets/home/people.png +0 -0
  432. package/src/assets/home/qita.png +0 -0
  433. package/src/assets/home/schoollogo.png +0 -0
  434. package/src/assets/home/search.png +0 -0
  435. package/src/assets/home/shenbaoguanli.png +0 -0
  436. package/src/assets/home/shouye.png +0 -0
  437. package/src/assets/home/title.png +0 -0
  438. package/src/assets/home/todo.png +0 -0
  439. package/src/assets/home/wave0.png +0 -0
  440. package/src/assets/home/wave1.png +0 -0
  441. package/src/assets/home/wave2.png +0 -0
  442. package/src/assets/home/wodeshuju(1).png +0 -0
  443. package/src/assets/home/xinxizhongxin.png +0 -0
  444. package/src/assets/home/yanjiusheng.png +0 -0
  445. package/src/assets/home/yeji.png +0 -0
  446. package/src/assets/home/zhengjiuniandukaohe.png +0 -0
  447. package/src/assets/home/zhengshu.png +0 -0
  448. package/src/assets/home/zhidao.png +0 -0
  449. package/src/assets/home/zhuanli.png +0 -0
  450. package/src/assets/home/zhuanye.png +0 -0
  451. package/src/assets/home/zhuzuoquan.png +0 -0
  452. package/src/assets/images/add.png +0 -0
  453. package/src/assets/images/app.png +0 -0
  454. package/src/assets/images/apply_bg.png +0 -0
  455. package/src/assets/images/auto.png +0 -0
  456. package/src/assets/images/book.png +0 -0
  457. package/src/assets/images/clear.png +0 -0
  458. package/src/assets/images/contact_bg.png +0 -0
  459. package/src/assets/images/data/benke.png +0 -0
  460. package/src/assets/images/data/chengguo.png +0 -0
  461. package/src/assets/images/data/chubanwu.png +0 -0
  462. package/src/assets/images/data/erjidanwei.png +0 -0
  463. package/src/assets/images/data/hangyebiaozhun.png +0 -0
  464. package/src/assets/images/data/huojiang(1).png +0 -0
  465. package/src/assets/images/data/huojiang(2).png +0 -0
  466. package/src/assets/images/data/icon-test.png +0 -0
  467. package/src/assets/images/data/jianzhi.png +0 -0
  468. package/src/assets/images/data/jiaozhigong.png +0 -0
  469. package/src/assets/images/data/keyanxiangmu.png +0 -0
  470. package/src/assets/images/data/keyanxiangmu/346/213/267/350/264/2352.png +0 -0
  471. package/src/assets/images/data/lunwen(1).png +0 -0
  472. package/src/assets/images/data/lunwendao.png +0 -0
  473. package/src/assets/images/data/lunwendao/346/213/267/350/264/2352.png +0 -0
  474. package/src/assets/images/data/pingtai.png +0 -0
  475. package/src/assets/images/data/pingtai/346/213/267/350/264/235.png +0 -0
  476. package/src/assets/images/data/shengbujijiaoxuechengguojiang.png +0 -0
  477. package/src/assets/images/data/wudachengguozhuanhuazhongxin.png +0 -0
  478. package/src/assets/images/data/xueke(1).png +0 -0
  479. package/src/assets/images/data/yanjiusheng.png +0 -0
  480. package/src/assets/images/data/zhidao.png +0 -0
  481. package/src/assets/images/data/zhuanli.png +0 -0
  482. package/src/assets/images/data/zhuzuoquan.png +0 -0
  483. package/src/assets/images/error.png +0 -0
  484. package/src/assets/images/file.png +0 -0
  485. package/src/assets/images/hall_banner.png +0 -0
  486. package/src/assets/images/hr.png +0 -0
  487. package/src/assets/images/index/benke.png +0 -0
  488. package/src/assets/images/index/chengguo.png +0 -0
  489. package/src/assets/images/index/gaojirencaisousuo.png +0 -0
  490. package/src/assets/images/index/hangyebiaozhun.png +0 -0
  491. package/src/assets/images/index/huojiang.png +0 -0
  492. package/src/assets/images/index/icon-test.png +0 -0
  493. package/src/assets/images/index/kaoshi.png +0 -0
  494. package/src/assets/images/index/kejichengguo.png +0 -0
  495. package/src/assets/images/index/keyanxiangmu.png +0 -0
  496. package/src/assets/images/index/lunwendao.png +0 -0
  497. package/src/assets/images/index/my-yanjiubaogao.png +0 -0
  498. package/src/assets/images/index/qita.png +0 -0
  499. package/src/assets/images/index/shenbaoguanli.png +0 -0
  500. package/src/assets/images/index/wodeshuju(1).png +0 -0
  501. package/src/assets/images/index/xinxizhongxin.png +0 -0
  502. package/src/assets/images/index/yanjiusheng.png +0 -0
  503. package/src/assets/images/index/yeji.png +0 -0
  504. package/src/assets/images/index/zhengjiuniandukaohe.png +0 -0
  505. package/src/assets/images/index/zhengshu.png +0 -0
  506. package/src/assets/images/index/zhidao.png +0 -0
  507. package/src/assets/images/index/zhuanli.png +0 -0
  508. package/src/assets/images/index/zhuanye.png +0 -0
  509. package/src/assets/images/index/zhuzuoquan.png +0 -0
  510. 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
  511. package/src/assets/images/index//345/276/205/345/212/236.png +0 -0
  512. package/src/assets/images/index//346/244/255/345/234/2064/346/213/267/350/264/2355.png +0 -0
  513. package/src/assets/images/index//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
  514. package/src/assets/images/index//346/266/210/346/201/257.png +0 -0
  515. package/src/assets/images/index//347/224/263/350/257/267.png +0 -0
  516. package/src/assets/images/index//351/273/230/350/256/244/345/255/246/346/240/241logo.png +0 -0
  517. package/src/assets/images/jian.png +0 -0
  518. package/src/assets/images/login.jpg +0 -0
  519. package/src/assets/images/logo.png +0 -0
  520. package/src/assets/images/m_hall_banner.png +0 -0
  521. package/src/assets/images/mlogin.png +0 -0
  522. package/src/assets/images/module.png +0 -0
  523. package/src/assets/images/offical/111.png +0 -0
  524. package/src/assets/images/offical/haiwaigaocengcirencai.png +0 -0
  525. package/src/assets/images/offical/jiaoxue(1).png +0 -0
  526. package/src/assets/images/offical/niandukaohe-weikaohe.png +0 -0
  527. package/src/assets/images/offical/pinqikaohe.png +0 -0
  528. package/src/assets/images/offical/renshiguanlixinxi_yingongchuguo.png +0 -0
  529. package/src/assets/images/offical/shengbujijiaoxuechengguojiang.png +0 -0
  530. package/src/assets/images/offical/shujucaiji.png +0 -0
  531. package/src/assets/images/offical/yeji(1).png +0 -0
  532. package/src/assets/images/offical/zhuanye.png +0 -0
  533. package/src/assets/images/offical//345/244/232/350/276/271/345/275/2421/346/213/267/350/264/23510.png +0 -0
  534. package/src/assets/images/qq.png +0 -0
  535. package/src/assets/images/role_select.png +0 -0
  536. package/src/assets/images/staff.png +0 -0
  537. package/src/assets/images/success.png +0 -0
  538. package/src/assets/images/theme/aurorablue.png +0 -0
  539. package/src/assets/images/theme/classicblue.png +0 -0
  540. package/src/assets/images/theme/deepblue.png +0 -0
  541. package/src/assets/images/theme/forestgreen.png +0 -0
  542. package/src/assets/images/theme/orange.png +0 -0
  543. package/src/assets/images/theme/palevioletred.png +0 -0
  544. package/src/assets/images/theme/purple.png +0 -0
  545. package/src/assets/images/theme/skyblue.png +0 -0
  546. package/src/assets/images/theme/tiffanyblue.png +0 -0
  547. package/src/assets/images/user_bg.png +0 -0
  548. package/src/assets/images/weixin.png +0 -0
  549. package/src/assets/login/bgimg.jpg +0 -0
  550. package/src/assets/moren.png +0 -0
  551. package/src/assets/wage/baseBanner.png +0 -0
  552. package/src/frame/base/AppModuleTreeFind.vue +51 -0
  553. package/src/frame/base/AttributeSubAdd.vue +29 -0
  554. package/src/frame/base/ChooseApplication.vue +176 -0
  555. package/src/frame/base/ChooseApplicationSet.vue +165 -0
  556. package/src/frame/base/ClientAppItem.vue +217 -0
  557. package/src/frame/base/ClientApplication.vue +446 -0
  558. package/src/frame/base/ClientApplicationList.vue +180 -0
  559. package/src/frame/base/ClientModule.vue +65 -0
  560. package/src/frame/base/ClientModuleIndex.vue +413 -0
  561. package/src/frame/base/ClientTreePage.vue +29 -0
  562. package/src/frame/base/ConfigModuleIndex.vue +82 -0
  563. package/src/frame/base/CurrentClientApplication.vue +33 -0
  564. package/src/frame/base/DeptTreeFind.vue +51 -0
  565. package/src/frame/base/EntityList.vue +71 -0
  566. package/src/frame/base/ModuleTreeFind.vue +51 -0
  567. package/src/frame/base/PageList.vue +47 -0
  568. package/src/frame/base/PermissManage.vue +95 -0
  569. package/src/frame/base/RoleAccredit.vue +961 -0
  570. package/src/frame/base/ServiceAccredit.vue +956 -0
  571. package/src/frame/base/ServiceMenu.vue +380 -0
  572. package/src/frame/base/ServiceOperate.vue +929 -0
  573. package/src/frame/base/ServiceTreePage.vue +31 -0
  574. package/src/frame/components/AddUsedInterface.vue +154 -0
  575. package/src/frame/components/Alert.vue +35 -0
  576. package/src/frame/components/AppList.vue +254 -0
  577. package/src/frame/components/Apply/ApplyIndex.vue +207 -0
  578. package/src/frame/components/AttributeList.vue +612 -0
  579. package/src/frame/components/Banner.vue +25 -0
  580. package/src/frame/components/CardO.vue +112 -0
  581. package/src/frame/components/CheckForm.vue +20 -0
  582. package/src/frame/components/ClientAdminFormItem.vue +49 -0
  583. package/src/frame/components/ClientFormItem.vue +45 -0
  584. package/src/frame/components/ClientList.vue +135 -0
  585. package/src/frame/components/CodeDetail.vue +374 -0
  586. package/src/frame/components/CodeManage.vue +755 -0
  587. package/src/frame/components/ComponentFind.vue +356 -0
  588. package/src/frame/components/ComponentList.vue +521 -0
  589. package/src/frame/components/ConfigParamFormItem.vue +193 -0
  590. package/src/frame/components/CreatePage.vue +329 -0
  591. package/src/frame/components/DataLog.vue +91 -0
  592. package/src/frame/components/DblogList.vue +158 -0
  593. package/src/frame/components/DeptFind.vue +126 -0
  594. package/src/frame/components/DropDown/DropDownMenu.vue +267 -0
  595. package/src/frame/components/DropDown/DropDownMenuItem.vue +489 -0
  596. package/src/frame/components/DynamicUserList.vue +69 -0
  597. package/src/frame/components/EditListTable.vue +774 -0
  598. package/src/frame/components/EntityCheckboxFind.vue +88 -0
  599. package/src/frame/components/EntityRelationAdd.vue +201 -0
  600. package/src/frame/components/EntityRelationAddFormItem.vue +100 -0
  601. package/src/frame/components/EntityRightFormItem.vue +616 -0
  602. package/src/frame/components/EntityRightSubList.vue +588 -0
  603. package/src/frame/components/EntityTreeManage.vue +852 -0
  604. package/src/frame/components/EntityViewFields.vue +401 -0
  605. package/src/frame/components/EntityViewSubList.vue +976 -0
  606. package/src/frame/components/ExportSystemConfig.vue +103 -0
  607. package/src/frame/components/FieldAddFormItem.vue +35 -0
  608. package/src/frame/components/Footer.vue +120 -0
  609. package/src/frame/components/FormulaEditor.vue +1216 -0
  610. package/src/frame/components/HallNav.vue +450 -0
  611. package/src/frame/components/HeaderNav.vue +417 -0
  612. package/src/frame/components/IconCard.vue +158 -0
  613. package/src/frame/components/IconFontLibrary.vue +59 -0
  614. package/src/frame/components/IconFontList.vue +75 -0
  615. package/src/frame/components/IdentifyList.vue +33 -0
  616. package/src/frame/components/ImportSystemConfig.vue +206 -0
  617. package/src/frame/components/InterfaceSubList.vue +295 -0
  618. package/src/frame/components/JsPanel.vue +103 -0
  619. package/src/frame/components/LanguageImportPage.vue +598 -0
  620. package/src/frame/components/LanguageSetting.vue +449 -0
  621. package/src/frame/components/List/LinkItem.vue +98 -0
  622. package/src/frame/components/List/List.vue +17 -0
  623. package/src/frame/components/List/ListItem.vue +52 -0
  624. package/src/frame/components/ListTable.vue +796 -0
  625. package/src/frame/components/MEntitySubList.vue +199 -0
  626. package/src/frame/components/MenuTreeFind.vue +107 -0
  627. package/src/frame/components/MessageList.vue +137 -0
  628. package/src/frame/components/MessageRuleFormItem.vue +61 -0
  629. package/src/frame/components/MessageRuleReceiverFormItem.vue +173 -0
  630. package/src/frame/components/MessageTemplate.vue +791 -0
  631. package/src/frame/components/MetaList.vue +65 -0
  632. package/src/frame/components/Mine.vue +114 -0
  633. package/src/frame/components/Nav.vue +599 -0
  634. package/src/frame/components/NavFormCatalogItem.vue +9 -0
  635. package/src/frame/components/NumList.vue +108 -0
  636. package/src/frame/components/OperateLog.vue +168 -0
  637. package/src/frame/components/PageCatalog.vue +454 -0
  638. package/src/frame/components/PageChart.vue +306 -0
  639. package/src/frame/components/PageSwipes.vue +179 -0
  640. package/src/frame/components/PersonFormItem.vue +92 -0
  641. package/src/frame/components/Popup.vue +181 -0
  642. package/src/frame/components/PrintFormList.vue +495 -0
  643. package/src/frame/components/PublishEntity.vue +87 -0
  644. package/src/frame/components/ReportFormList.vue +247 -0
  645. package/src/frame/components/ReportList.vue +493 -0
  646. package/src/frame/components/RightSubList.vue +253 -0
  647. package/src/frame/components/RoleAddUser.vue +50 -0
  648. package/src/frame/components/RoleApplicationCard.vue +299 -0
  649. package/src/frame/components/RoleApplicationList.vue +766 -0
  650. package/src/frame/components/RoleApplicationSet.vue +845 -0
  651. package/src/frame/components/RuleText.vue +98 -0
  652. package/src/frame/components/Search.vue +270 -0
  653. package/src/frame/components/ServiceFormItem.vue +29 -0
  654. package/src/frame/components/SubAdd.vue +0 -0
  655. package/src/frame/components/SystemNav.vue +18 -0
  656. package/src/frame/components/TaskNumCard.vue +26 -0
  657. package/src/frame/components/TimerRuleFormItem.vue +227 -0
  658. package/src/frame/components/TodoList.vue +429 -0
  659. package/src/frame/components/UpdateSystemConfig.vue +186 -0
  660. package/src/frame/components/UserCard.vue +110 -0
  661. package/src/frame/components/UserFind.vue +438 -0
  662. package/src/frame/components/UserFormItem.vue +666 -0
  663. package/src/frame/components/UserList.vue +17 -0
  664. package/src/frame/components/UserManage.vue +716 -0
  665. package/src/frame/components/ValidateRuleFormItem.vue +40 -0
  666. package/src/frame/components/ViewFieldDefine.vue +554 -0
  667. package/src/frame/components/attribute/Form.vue +439 -0
  668. package/src/frame/components/authorization/AddApiPermiss.vue +179 -0
  669. package/src/frame/components/authorization/AddAuthorization.vue +135 -0
  670. package/src/frame/components/authorization/AddEntityFind.vue +68 -0
  671. package/src/frame/components/authorization/AddNoApi.vue +143 -0
  672. package/src/frame/components/authorization/AddRoleScope.vue +291 -0
  673. package/src/frame/components/authorization/ApiShareOtherList.vue +353 -0
  674. package/src/frame/components/authorization/ApiSystemList.vue +315 -0
  675. package/src/frame/components/authorization/AuthorizationRoleSystem.vue +213 -0
  676. package/src/frame/components/authorization/EntityConstraintFormItem.vue +255 -0
  677. package/src/frame/components/authorization/OtherShareApiList.vue +248 -0
  678. package/src/frame/components/authorization/PermissRoleAuthorization.vue +583 -0
  679. package/src/frame/components/authorization/PermissRoleTabs.vue +117 -0
  680. package/src/frame/components/authorization/RoleLevel.vue +113 -0
  681. package/src/frame/components/authorization/RoleLevelScope.vue +247 -0
  682. package/src/frame/components/card/CardList.vue +78 -0
  683. package/src/frame/components/card/CardListItem.vue +147 -0
  684. package/src/frame/components/card/Title.vue +38 -0
  685. package/src/frame/components/chart/CircularPie.vue +11 -0
  686. package/src/frame/components/chart/Column.vue +11 -0
  687. package/src/frame/components/chart/HoriColumn.vue +11 -0
  688. package/src/frame/components/chart/Line.vue +11 -0
  689. package/src/frame/components/chart/Pie.vue +11 -0
  690. package/src/frame/components/custom-bpmn/CustomContextPad.js +58 -0
  691. package/src/frame/components/custom-bpmn/CustomPalette.js +257 -0
  692. package/src/frame/components/custom-bpmn/CustomRenderer.js +115 -0
  693. package/src/frame/components/custom-bpmn/CustomRendererBpmn.js +45 -0
  694. package/src/frame/components/custom-bpmn/PropertiesView.vue +4046 -0
  695. package/src/frame/components/custom-bpmn/img/chaxun.png +0 -0
  696. package/src/frame/components/custom-bpmn/img/fasong.png +0 -0
  697. package/src/frame/components/custom-bpmn/img/gengxin.png +0 -0
  698. package/src/frame/components/custom-bpmn/img/jiagong.png +0 -0
  699. package/src/frame/components/custom-bpmn/img/jiekou.png +0 -0
  700. package/src/frame/components/custom-bpmn/img/shanchu.png +0 -0
  701. package/src/frame/components/custom-bpmn/img/tongbu.png +0 -0
  702. package/src/frame/components/custom-bpmn/img/xinzeng.png +0 -0
  703. package/src/frame/components/custom-bpmn/img/xunhuanend.png +0 -0
  704. package/src/frame/components/custom-bpmn/img/xunhuanstart.png +0 -0
  705. package/src/frame/components/custom-bpmn/img/ywgz.png +0 -0
  706. package/src/frame/components/custom-bpmn/index.js +6 -0
  707. package/src/frame/components/custom-bpmn/palette.js +18 -0
  708. package/src/frame/components/custom-bpmn/util.js +5 -0
  709. package/src/frame/components/expand/AddForm.vue +91 -0
  710. package/src/frame/components/expand/AddFormItem.vue +144 -0
  711. package/src/frame/components/filter/Filter.vue +744 -0
  712. package/src/frame/components/filter/FilterItem.vue +516 -0
  713. package/src/frame/components/form/Cascader.vue +79 -0
  714. package/src/frame/components/form/CheckBox.vue +88 -0
  715. package/src/frame/components/form/Date.vue +154 -0
  716. package/src/frame/components/form/DateRange.vue +108 -0
  717. package/src/frame/components/form/Field.vue +91 -0
  718. package/src/frame/components/form/File.vue +415 -0
  719. package/src/frame/components/form/FormItem.vue +128 -0
  720. package/src/frame/components/form/Hidden.vue +77 -0
  721. package/src/frame/components/form/Input.vue +123 -0
  722. package/src/frame/components/form/List.vue +149 -0
  723. package/src/frame/components/form/Object.vue +225 -0
  724. package/src/frame/components/form/Photo.vue +235 -0
  725. package/src/frame/components/form/Textarea.vue +133 -0
  726. package/src/frame/components/grid/Module.vue +63 -0
  727. package/src/frame/components/grid/ModuleItem.vue +205 -0
  728. package/src/frame/components/hall/AppCollect.vue +189 -0
  729. package/src/frame/components/hall/AppList.vue +407 -0
  730. package/src/frame/components/hall/AppVisitRecord.vue +170 -0
  731. package/src/frame/components/hall/Banner.vue +21 -0
  732. package/src/frame/components/hall/ServiceCard.vue +202 -0
  733. package/src/frame/components/hall/UserCard.vue +112 -0
  734. package/src/frame/components/mscope/Scope.vue +90 -0
  735. package/src/frame/components/mscope/ScopeItem.vue +372 -0
  736. package/src/frame/components/mscope/drawer.vue +43 -0
  737. package/src/frame/components/permiss/AddApi.vue +119 -0
  738. package/src/frame/components/permiss/AddNoEntityApi.vue +131 -0
  739. package/src/frame/components/permiss/AddSystemPermiss.vue +107 -0
  740. package/src/frame/components/permiss/AllocateRole.vue +107 -0
  741. package/src/frame/components/permiss/ApiSubList.vue +193 -0
  742. package/src/frame/components/permiss/FieldScope.vue +138 -0
  743. package/src/frame/components/permiss/ListTable.vue +842 -0
  744. package/src/frame/components/permiss/PermissEdit.vue +61 -0
  745. package/src/frame/components/permiss/PermissManage.vue +96 -0
  746. package/src/frame/components/permiss/PermissManageAdd.vue +203 -0
  747. package/src/frame/components/permiss/RoleMenu.vue +405 -0
  748. package/src/frame/components/permiss/RoleSubList.vue +264 -0
  749. package/src/frame/components/permiss/jurisdiction.vue +425 -0
  750. package/src/frame/components/report/ChartLine.vue +253 -0
  751. package/src/frame/components/report/ChartPie.vue +345 -0
  752. package/src/frame/components/report/Config.vue +709 -0
  753. package/src/frame/components/report/Design.vue +2783 -0
  754. package/src/frame/components/report/Index.vue +115 -0
  755. package/src/frame/components/report/ReportTable.vue +1051 -0
  756. package/src/frame/components/report/StatList.vue +229 -0
  757. package/src/frame/components/right/RoleDataList.vue +291 -0
  758. package/src/frame/components/right/RoleFieldList.vue +348 -0
  759. package/src/frame/components/scope/Scope.vue +497 -0
  760. package/src/frame/components/scope/ScopeDrawer.vue +195 -0
  761. package/src/frame/components/scope/ScopeItem.vue +973 -0
  762. package/src/frame/components/task-list/TaskList.vue +617 -0
  763. package/src/frame/components/task-list/Visual.vue +45 -0
  764. package/src/frame/components/task-list/index.js +3 -0
  765. package/src/frame/components/task-list-page/TaskListPage.vue +26 -0
  766. package/src/frame/components/task-list-page/index.js +8 -0
  767. package/src/frame/components/upLoad.vue +69 -0
  768. package/src/frame/components/viewport/LookViewList.vue +28 -0
  769. package/src/frame/components/viewport/ViewAddForm.vue +151 -0
  770. package/src/frame/components/viewport/ViewDefineList.vue +53 -0
  771. package/src/frame/components/viewport/ViewFiedList.vue +646 -0
  772. package/src/frame/components/viewport/ViewScope.vue +109 -0
  773. package/src/frame/index.js +37 -0
  774. package/src/frame/packages/add-form/AddForm.vue +2128 -0
  775. package/src/frame/packages/add-form/Preview.vue +312 -0
  776. package/src/frame/packages/add-form/index.js +8 -0
  777. package/src/frame/packages/add-form-item/AddFormItem.vue +446 -0
  778. package/src/frame/packages/add-form-item/Preview.vue +92 -0
  779. package/src/frame/packages/add-form-item/index.js +8 -0
  780. package/src/frame/packages/alter/Alert.vue +42 -0
  781. package/src/frame/packages/alter/Visual.vue +58 -0
  782. package/src/frame/packages/alter/index.js +8 -0
  783. package/src/frame/packages/app-index/AppIndex.vue +188 -0
  784. package/src/frame/packages/app-index/index.js +8 -0
  785. package/src/frame/packages/app-nav/AppNav.vue +1553 -0
  786. package/src/frame/packages/app-nav/Preview.vue +13 -0
  787. package/src/frame/packages/app-nav/index.js +8 -0
  788. package/src/frame/packages/app-tabs/Tabs.vue +121 -0
  789. package/src/frame/packages/app-tabs/index.js +8 -0
  790. package/src/frame/packages/apply-form/ApplyForm.vue +68 -0
  791. package/src/frame/packages/apply-form/index.js +3 -0
  792. package/src/frame/packages/approval-index/ApprovalIndex.vue +465 -0
  793. package/src/frame/packages/approval-index/index.js +8 -0
  794. package/src/frame/packages/approval-index-page/ApprovalIndexPage.vue +21 -0
  795. package/src/frame/packages/approval-index-page/index.js +8 -0
  796. package/src/frame/packages/base-page/BasePage.vue +221 -0
  797. package/src/frame/packages/base-page/index.js +8 -0
  798. package/src/frame/packages/button/Button.vue +47 -0
  799. package/src/frame/packages/button/Preview.vue +33 -0
  800. package/src/frame/packages/button/index.js +8 -0
  801. package/src/frame/packages/card/Card.vue +291 -0
  802. package/src/frame/packages/card/index.js +8 -0
  803. package/src/frame/packages/card-form-item/CardFormItem.vue +301 -0
  804. package/src/frame/packages/card-form-item/Visual.vue +101 -0
  805. package/src/frame/packages/card-form-item/index.js +3 -0
  806. package/src/frame/packages/category-list/CategoryList.vue +854 -0
  807. package/src/frame/packages/category-list/index.js +8 -0
  808. package/src/frame/packages/chart/Chart.vue +124 -0
  809. package/src/frame/packages/chart/ChartColumn.vue +365 -0
  810. package/src/frame/packages/chart/ChartFormItem.vue +241 -0
  811. package/src/frame/packages/chart/ChartLine.vue +317 -0
  812. package/src/frame/packages/chart/ChartPie.vue +384 -0
  813. package/src/frame/packages/chart/Funnel.vue +379 -0
  814. package/src/frame/packages/chart/ReportTable.vue +1139 -0
  815. package/src/frame/packages/chart/index.js +23 -0
  816. package/src/frame/packages/check-history/CheckHistory.vue +510 -0
  817. package/src/frame/packages/check-history/Steps.vue +213 -0
  818. package/src/frame/packages/check-history/index.js +8 -0
  819. package/src/frame/packages/component/Component.vue +16 -0
  820. package/src/frame/packages/component/index.js +8 -0
  821. package/src/frame/packages/contacts/Card.vue +133 -0
  822. package/src/frame/packages/contacts/Contacts.vue +167 -0
  823. package/src/frame/packages/contacts/index.js +8 -0
  824. package/src/frame/packages/edit-entity-list/EditEntityList.vue +108 -0
  825. package/src/frame/packages/entity-add-page/EntityAddPage.vue +100 -0
  826. package/src/frame/packages/entity-add-page/index.js +8 -0
  827. package/src/frame/packages/entity-apply-page/EntityApplyPage.vue +60 -0
  828. package/src/frame/packages/entity-apply-page/index.js +3 -0
  829. package/src/frame/packages/entity-list/Config.vue +275 -0
  830. package/src/frame/packages/entity-list/EntityList.scss +88 -0
  831. package/src/frame/packages/entity-list/EntityList.vue +2105 -0
  832. package/src/frame/packages/entity-list/Preview.vue +232 -0
  833. package/src/frame/packages/entity-list/components/EditField.vue +76 -0
  834. package/src/frame/packages/entity-list/components/Field.vue +166 -0
  835. package/src/frame/packages/entity-list/config.js +0 -0
  836. package/src/frame/packages/entity-list/index.js +20 -0
  837. package/src/frame/packages/entity-list-find/EntityListFind.vue +161 -0
  838. package/src/frame/packages/entity-list-find/index.js +8 -0
  839. package/src/frame/packages/entity-list-find-page/EntityListFindPage.vue +72 -0
  840. package/src/frame/packages/entity-list-find-page/index.js +8 -0
  841. package/src/frame/packages/entity-list-page/EntityListPage.vue +91 -0
  842. package/src/frame/packages/entity-list-page/index.js +8 -0
  843. package/src/frame/packages/entity-no-submit-sub-list/EntityNoSubmitSubList.vue +302 -0
  844. package/src/frame/packages/entity-no-submit-sub-list/index.js +8 -0
  845. package/src/frame/packages/entity-sub-grid/EntitySubGrid.vue +46 -0
  846. package/src/frame/packages/entity-sub-grid/EntitySubGridItem.vue +68 -0
  847. package/src/frame/packages/entity-sub-grid/index.js +13 -0
  848. package/src/frame/packages/entity-sub-list/EntitySubList.vue +418 -0
  849. package/src/frame/packages/entity-sub-list/index.js +8 -0
  850. package/src/frame/packages/entity-tree-find/EntitytTreeFind.vue +460 -0
  851. package/src/frame/packages/entity-tree-find/index.js +8 -0
  852. package/src/frame/packages/entity-tree-find-page/EntityTreeFindPage.vue +29 -0
  853. package/src/frame/packages/entity-tree-find-page/index.js +8 -0
  854. package/src/frame/packages/export/Export.vue +530 -0
  855. package/src/frame/packages/export/index.js +8 -0
  856. package/src/frame/packages/footer/Footer.vue +142 -0
  857. package/src/frame/packages/footer/index.js +3 -0
  858. package/src/frame/packages/form/Form.vue +611 -0
  859. package/src/frame/packages/form/index.js +8 -0
  860. package/src/frame/packages/form-item/CheckBox.vue +160 -0
  861. package/src/frame/packages/form-item/Color.vue +135 -0
  862. package/src/frame/packages/form-item/Date.vue +330 -0
  863. package/src/frame/packages/form-item/File.vue +712 -0
  864. package/src/frame/packages/form-item/FormItem.vue +464 -0
  865. package/src/frame/packages/form-item/Hidden.vue +55 -0
  866. package/src/frame/packages/form-item/Html.vue +291 -0
  867. package/src/frame/packages/form-item/Input.vue +320 -0
  868. package/src/frame/packages/form-item/Location.vue +313 -0
  869. package/src/frame/packages/form-item/Number.vue +217 -0
  870. package/src/frame/packages/form-item/Object.vue +1195 -0
  871. package/src/frame/packages/form-item/Password.vue +128 -0
  872. package/src/frame/packages/form-item/Photo.vue +362 -0
  873. package/src/frame/packages/form-item/Radio.vue +157 -0
  874. package/src/frame/packages/form-item/Rule.vue +989 -0
  875. package/src/frame/packages/form-item/Scope.vue +224 -0
  876. package/src/frame/packages/form-item/Select.vue +226 -0
  877. package/src/frame/packages/form-item/Signature.vue +242 -0
  878. package/src/frame/packages/form-item/Switch.vue +124 -0
  879. package/src/frame/packages/form-item/Tag.vue +216 -0
  880. package/src/frame/packages/form-item/Textarea.vue +279 -0
  881. package/src/frame/packages/form-item/index.js +45 -0
  882. package/src/frame/packages/grid/Grid.vue +70 -0
  883. package/src/frame/packages/grid/GridItem.vue +190 -0
  884. package/src/frame/packages/grid/index.js +13 -0
  885. package/src/frame/packages/header/Breadcrumb.vue +55 -0
  886. package/src/frame/packages/header/Header.vue +602 -0
  887. package/src/frame/packages/header/Preview.vue +252 -0
  888. package/src/frame/packages/header/index.js +16 -0
  889. package/src/frame/packages/icon/Icon.vue +47 -0
  890. package/src/frame/packages/icon/index.js +7 -0
  891. package/src/frame/packages/iframe/Iframe.vue +17 -0
  892. package/src/frame/packages/iframe/index.js +8 -0
  893. package/src/frame/packages/image/image.vue +23 -0
  894. package/src/frame/packages/import/Import.vue +832 -0
  895. package/src/frame/packages/import/index.js +8 -0
  896. package/src/frame/packages/layout/Column.vue +47 -0
  897. package/src/frame/packages/layout/ColumnPreview.vue +119 -0
  898. package/src/frame/packages/layout/Config.vue +114 -0
  899. package/src/frame/packages/layout/Layout.vue +62 -0
  900. package/src/frame/packages/layout/Preview.vue +111 -0
  901. package/src/frame/packages/layout/index.js +10 -0
  902. package/src/frame/packages/list/List.vue +426 -0
  903. package/src/frame/packages/list/index.js +8 -0
  904. package/src/frame/packages/list/visual/List.vue +349 -0
  905. package/src/frame/packages/load-page/LoadPage.vue +29 -0
  906. package/src/frame/packages/load-page/index.js +8 -0
  907. package/src/frame/packages/m-entity-add-page/MEntityAddPage.vue +100 -0
  908. package/src/frame/packages/m-entity-add-page/index.js +8 -0
  909. package/src/frame/packages/m-entity-list/MEntityList.vue +1083 -0
  910. package/src/frame/packages/m-entity-list/index.js +3 -0
  911. package/src/frame/packages/m-entity-list-find/MEntityListFind.vue +329 -0
  912. package/src/frame/packages/m-entity-list-find/Visual.vue +105 -0
  913. package/src/frame/packages/m-entity-list-find/index.js +3 -0
  914. package/src/frame/packages/m-entity-tree-find/MEntityTreeFind.vue +339 -0
  915. package/src/frame/packages/m-entity-tree-find/index.js +8 -0
  916. package/src/frame/packages/menu/Menu.vue +174 -0
  917. package/src/frame/packages/menu/MenuItem.vue +94 -0
  918. package/src/frame/packages/menu/index.js +16 -0
  919. package/src/frame/packages/menu-index/MenuIndex.vue +444 -0
  920. package/src/frame/packages/menu-index/index.js +8 -0
  921. package/src/frame/packages/mine/Mine.vue +404 -0
  922. package/src/frame/packages/module-index-page/ModuleIndexPage.vue +250 -0
  923. package/src/frame/packages/module-index-page/index.js +7 -0
  924. package/src/frame/packages/module-list/ModuleList.vue +222 -0
  925. package/src/frame/packages/module-list/index.js +8 -0
  926. package/src/frame/packages/module-list-page/ModuleListPage.vue +24 -0
  927. package/src/frame/packages/module-list-page/index.js +8 -0
  928. package/src/frame/packages/nav-add-form/NavAddForm.vue +626 -0
  929. package/src/frame/packages/nav-add-form/index.js +8 -0
  930. package/src/frame/packages/num/CardNum.vue +267 -0
  931. package/src/frame/packages/num/NumItem.vue +192 -0
  932. package/src/frame/packages/num/NumSubItem.vue +137 -0
  933. package/src/frame/packages/num/Statistic.vue +42 -0
  934. package/src/frame/packages/num/index.js +17 -0
  935. package/src/frame/packages/org-chart/OrgChart.vue +301 -0
  936. package/src/frame/packages/org-chart/index.js +8 -0
  937. package/src/frame/packages/page/Page.vue +322 -0
  938. package/src/frame/packages/page/index.js +8 -0
  939. package/src/frame/packages/page-help/PageHelp.vue +28 -0
  940. package/src/frame/packages/page-help/Preview.vue +35 -0
  941. package/src/frame/packages/page-help/index.js +8 -0
  942. package/src/frame/packages/page-tabs/PageTabs.vue +188 -0
  943. package/src/frame/packages/page-tabs/index.js +8 -0
  944. package/src/frame/packages/progress/Progress.vue +287 -0
  945. package/src/frame/packages/progress/ProgressItem.vue +39 -0
  946. package/src/frame/packages/progress/index.js +13 -0
  947. package/src/frame/packages/progress-chart/ProcessChart.vue +210 -0
  948. package/src/frame/packages/progress-chart/index.js +8 -0
  949. package/src/frame/packages/report-form-list/ReportFormList.vue +0 -0
  950. package/src/frame/packages/router-view/RouterView.vue +229 -0
  951. package/src/frame/packages/router-view/index.js +8 -0
  952. package/src/frame/packages/scope/Scope.vue +594 -0
  953. package/src/frame/packages/scope/ScopeDrawer.vue +201 -0
  954. package/src/frame/packages/scope/ScopeItem.vue +987 -0
  955. package/src/frame/packages/scope/index.js +15 -0
  956. package/src/frame/packages/search/Fields.vue +326 -0
  957. package/src/frame/packages/search/Filter.vue +473 -0
  958. package/src/frame/packages/search/Keyword.vue +106 -0
  959. package/src/frame/packages/search/Mobile.vue +314 -0
  960. package/src/frame/packages/search/Select.vue +238 -0
  961. package/src/frame/packages/search/index.js +22 -0
  962. package/src/frame/packages/step/Step.vue +149 -0
  963. package/src/frame/packages/step/index.js +8 -0
  964. package/src/frame/packages/step-item/StepItem.vue +126 -0
  965. package/src/frame/packages/step-item/index.js +8 -0
  966. package/src/frame/packages/tab-bar/Config.vue +11 -0
  967. package/src/frame/packages/tab-bar/TabBar.vue +25 -0
  968. package/src/frame/packages/tab-bar/index.js +3 -0
  969. package/src/frame/packages/text/Text.vue +25 -0
  970. package/src/frame/packages/text-editor/TextEditor.vue +22 -0
  971. package/src/frame/packages/title/Title.vue +21 -0
  972. package/src/frame/packages/title/index.js +8 -0
  973. package/src/frame/packages/visual-config-page/ComponentLibrary.vue +198 -0
  974. package/src/frame/packages/visual-config-page/ComponentList.vue +565 -0
  975. package/src/frame/packages/visual-config-page/ComponentPreview.vue +153 -0
  976. package/src/frame/packages/visual-config-page/ConfigOption.vue +16 -0
  977. package/src/frame/packages/visual-config-page/ConfigPanel.vue +576 -0
  978. package/src/frame/packages/visual-config-page/PagePreview.vue +53 -0
  979. package/src/frame/packages/visual-config-page/VisualConfigPage.vue +632 -0
  980. package/src/frame/packages/visual-config-page/index.js +24 -0
  981. package/src/frame/popup.js +31 -0
  982. package/src/frame/views/Add.vue +823 -0
  983. package/src/frame/views/App.vue +49 -0
  984. package/src/frame/views/AppRoleSelect.vue +272 -0
  985. package/src/frame/views/AppSubModule.vue +50 -0
  986. package/src/frame/views/BatchEdit.vue +206 -0
  987. package/src/frame/views/Bpmn.vue +553 -0
  988. package/src/frame/views/Container.vue +294 -0
  989. package/src/frame/views/DblogList.vue +348 -0
  990. package/src/frame/views/EntityCheckList.vue +164 -0
  991. package/src/frame/views/EntityCheckPage.vue +44 -0
  992. package/src/frame/views/EntityDetailPage.vue +75 -0
  993. package/src/frame/views/EntityEditApply.vue +136 -0
  994. package/src/frame/views/EntityEditPage.vue +13 -0
  995. package/src/frame/views/EntityFind.vue +135 -0
  996. package/src/frame/views/EntitySingleAdd.vue +31 -0
  997. package/src/frame/views/EntitySubListPage.vue +44 -0
  998. package/src/frame/views/EntityTreeFind.vue +188 -0
  999. package/src/frame/views/EntityTreePage.vue +37 -0
  1000. package/src/frame/views/EntityTreePageOld.vue +536 -0
  1001. package/src/frame/views/Error.vue +29 -0
  1002. package/src/frame/views/ExcelDesign.vue +1795 -0
  1003. package/src/frame/views/ExcelPreview.vue +173 -0
  1004. package/src/frame/views/ExportPage.vue +19 -0
  1005. package/src/frame/views/FormDesign.vue +1049 -0
  1006. package/src/frame/views/IconFontLibraryPage.vue +74 -0
  1007. package/src/frame/views/ImportPage.vue +19 -0
  1008. package/src/frame/views/List.vue +955 -0
  1009. package/src/frame/views/LocalLogin.vue +27 -0
  1010. package/src/frame/views/Login.vue +1059 -0
  1011. package/src/frame/views/MEntityListPage.vue +83 -0
  1012. package/src/frame/views/MEntitySubListPage.vue +44 -0
  1013. package/src/frame/views/MainModule.vue +83 -0
  1014. package/src/frame/views/MenuIndex.vue +444 -0
  1015. package/src/frame/views/MinePage.vue +18 -0
  1016. package/src/frame/views/Module.vue +203 -0
  1017. package/src/frame/views/ModuleIndex.vue +377 -0
  1018. package/src/frame/views/PageAttriTree.vue +419 -0
  1019. package/src/frame/views/PageAttributeTreePage.vue +424 -0
  1020. package/src/frame/views/PageConfig.vue +218 -0
  1021. package/src/frame/views/Permission.vue +695 -0
  1022. package/src/frame/views/PersonalInfo.vue +659 -0
  1023. package/src/frame/views/QyWechat.vue +69 -0
  1024. package/src/frame/views/ReportFormList.vue +146 -0
  1025. package/src/frame/views/ReportFormListPage.vue +91 -0
  1026. package/src/frame/views/RoleTreePage.vue +180 -0
  1027. package/src/frame/views/ServiceHelp.vue +177 -0
  1028. package/src/frame/views/SubModule.vue +67 -0
  1029. package/src/frame/views/SystemIndex.vue +105 -0
  1030. package/src/frame/views/SystemTabs.vue +87 -0
  1031. package/src/frame/views/TaskPage.vue +46 -0
  1032. package/src/frame/views/client/AddForm.vue +64 -0
  1033. package/src/frame/views/client/AppMarket.vue +345 -0
  1034. package/src/frame/views/client/ClientIndex.vue +261 -0
  1035. package/src/frame/views/client/ClientModuleIndexPage.vue +25 -0
  1036. package/src/frame/views/client/CopySystem.vue +179 -0
  1037. package/src/frame/views/client/CreateMethod.vue +133 -0
  1038. package/src/frame/views/client/Login.vue +234 -0
  1039. package/src/frame/views/client/OpenClientManage.vue +53 -0
  1040. package/src/frame/views/client/PageTabsCyclic.vue +121 -0
  1041. package/src/frame/views/client/SelfBuiltSystem.vue +272 -0
  1042. package/src/frame/views/client/StandardProduct.vue +325 -0
  1043. package/src/frame/views/client/SystemList.vue +160 -0
  1044. package/src/frame/views/client/SystemManager.vue +346 -0
  1045. package/src/frame/views/layout/CardList.vue +123 -0
  1046. package/src/frame/views/layout/Grid.vue +95 -0
  1047. package/src/frame/views/match/AddTargetField.vue +118 -0
  1048. package/src/frame/views/match/MatchAddFormItem.vue +34 -0
  1049. package/src/frame/views/match/conversion.vue +209 -0
  1050. package/src/frame/views/match/customize.vue +344 -0
  1051. package/src/frame/views/match/fieldMatch.vue +518 -0
  1052. package/src/frame/views/report/AddFormItem.vue +67 -0
  1053. package/src/frame/views/report/DesignReport.vue +1213 -0
  1054. package/src/frame/views/report/LookReport.vue +221 -0
  1055. package/src/frame/views/report/ReportAdd.vue +237 -0
  1056. package/src/frame/views/report/ReportFormList.vue +235 -0
  1057. package/src/frame/views/report/ReportList.vue +163 -0
  1058. package/src/frame/views/report/ReportTreeFind.vue +188 -0
  1059. package/src/frame/views/visual/Add.vue +1818 -0
  1060. package/src/frame/views/visual/AddForm.vue +228 -0
  1061. package/src/frame/views/visual/AddFormItem.vue +242 -0
  1062. package/src/frame/views/visual/AppIndex.vue +149 -0
  1063. package/src/frame/views/visual/ApplyForm.vue +142 -0
  1064. package/src/frame/views/visual/AttributeList.vue +329 -0
  1065. package/src/frame/views/visual/BasePage.vue +73 -0
  1066. package/src/frame/views/visual/Button.vue +119 -0
  1067. package/src/frame/views/visual/Card.vue +68 -0
  1068. package/src/frame/views/visual/CardNum.vue +74 -0
  1069. package/src/frame/views/visual/CategoryList.vue +566 -0
  1070. package/src/frame/views/visual/Chart.vue +53 -0
  1071. package/src/frame/views/visual/CheckForm.vue +106 -0
  1072. package/src/frame/views/visual/CheckHistory.vue +28 -0
  1073. package/src/frame/views/visual/ClientList.vue +42 -0
  1074. package/src/frame/views/visual/CodeManage.vue +128 -0
  1075. package/src/frame/views/visual/Component.vue +1142 -0
  1076. package/src/frame/views/visual/ComponentList.vue +288 -0
  1077. package/src/frame/views/visual/Config.vue +888 -0
  1078. package/src/frame/views/visual/ConfigItem.vue +218 -0
  1079. package/src/frame/views/visual/ConfigSelectItems.vue +521 -0
  1080. package/src/frame/views/visual/CreatePage.vue +397 -0
  1081. package/src/frame/views/visual/DblogList.vue +137 -0
  1082. package/src/frame/views/visual/EntityAddPage.vue +52 -0
  1083. package/src/frame/views/visual/EntityApplyPage.vue +57 -0
  1084. package/src/frame/views/visual/EntityCheckPage.vue +69 -0
  1085. package/src/frame/views/visual/EntityFindPage.vue +55 -0
  1086. package/src/frame/views/visual/EntityList.vue +442 -0
  1087. package/src/frame/views/visual/EntityListPage.vue +97 -0
  1088. package/src/frame/views/visual/EntityNoSubmitSubList.vue +252 -0
  1089. package/src/frame/views/visual/EntityRightSubList.vue +32 -0
  1090. package/src/frame/views/visual/EntitySubAdd.vue +11 -0
  1091. package/src/frame/views/visual/EntitySubGrid.vue +39 -0
  1092. package/src/frame/views/visual/EntitySubGridItem.vue +96 -0
  1093. package/src/frame/views/visual/EntitySubList.vue +298 -0
  1094. package/src/frame/views/visual/EntityTreeFindPage.vue +36 -0
  1095. package/src/frame/views/visual/EntityTreeManage.vue +144 -0
  1096. package/src/frame/views/visual/EntityTreePage.vue +46 -0
  1097. package/src/frame/views/visual/Grid.vue +46 -0
  1098. package/src/frame/views/visual/GridItem.vue +41 -0
  1099. package/src/frame/views/visual/HeaderNew.vue +326 -0
  1100. package/src/frame/views/visual/Iframe.vue +32 -0
  1101. package/src/frame/views/visual/Image.vue +49 -0
  1102. package/src/frame/views/visual/Import.vue +59 -0
  1103. package/src/frame/views/visual/InterfaceSubList.vue +23 -0
  1104. package/src/frame/views/visual/Layout.vue +0 -0
  1105. package/src/frame/views/visual/ListFirst.vue +613 -0
  1106. package/src/frame/views/visual/LoadPage.vue +42 -0
  1107. package/src/frame/views/visual/MEntityAddPage.vue +71 -0
  1108. package/src/frame/views/visual/MEntityList.vue +472 -0
  1109. package/src/frame/views/visual/MEntityListPage.vue +46 -0
  1110. package/src/frame/views/visual/MEntitySubList.vue +237 -0
  1111. package/src/frame/views/visual/MetaList.vue +23 -0
  1112. package/src/frame/views/visual/Mine.vue +37 -0
  1113. package/src/frame/views/visual/ModuleIndexPage.vue +68 -0
  1114. package/src/frame/views/visual/ModuleList.vue +44 -0
  1115. package/src/frame/views/visual/NavAddForm.vue +144 -0
  1116. package/src/frame/views/visual/NavFormCatalogItem.vue +21 -0
  1117. package/src/frame/views/visual/NumItem.vue +69 -0
  1118. package/src/frame/views/visual/NumStatistic.vue +85 -0
  1119. package/src/frame/views/visual/NumSubItem.vue +63 -0
  1120. package/src/frame/views/visual/OrgChart.vue +121 -0
  1121. package/src/frame/views/visual/PageCatalog.vue +26 -0
  1122. package/src/frame/views/visual/PageConfig.vue +278 -0
  1123. package/src/frame/views/visual/PageTabs.vue +54 -0
  1124. package/src/frame/views/visual/ProcessChart.vue +24 -0
  1125. package/src/frame/views/visual/Progress.vue +39 -0
  1126. package/src/frame/views/visual/ProgressItem.vue +43 -0
  1127. package/src/frame/views/visual/Text.vue +36 -0
  1128. package/src/frame/views/visual/TextEditor.vue +36 -0
  1129. package/src/frame/views/visual/Title.vue +44 -0
  1130. package/src/frame/views/visual/TodoList.vue +18 -0
  1131. package/src/frame/views/visual/TreeFind.vue +39 -0
  1132. package/src/frame/views/visual/UserFormItem.vue +50 -0
  1133. package/src/frame/views/visual/UserManage.vue +36 -0
  1134. package/src/frame/views/visual/chart/CircularPie.vue +7 -0
  1135. package/src/frame/views/visual/chart/Column.vue +73 -0
  1136. package/src/frame/views/visual/chart/HoriColumn.vue +7 -0
  1137. package/src/frame/views/visual/chart/Line.vue +7 -0
  1138. package/src/frame/views/visual/chart/Pie.vue +7 -0
  1139. package/src/frame/views/visual/config/Chart.vue +136 -0
  1140. package/src/frame/views/visual/config/Color.vue +39 -0
  1141. package/src/frame/views/visual/config/DesignReport.vue +20 -0
  1142. package/src/frame/views/visual/config/Event.vue +218 -0
  1143. package/src/frame/views/visual/config/Field.vue +494 -0
  1144. package/src/frame/views/visual/config/Html.vue +26 -0
  1145. package/src/frame/views/visual/config/Image.vue +118 -0
  1146. package/src/frame/views/visual/config/Input.vue +52 -0
  1147. package/src/frame/views/visual/config/List.vue +63 -0
  1148. package/src/frame/views/visual/config/ListField.vue +1229 -0
  1149. package/src/frame/views/visual/config/MField.vue +594 -0
  1150. package/src/frame/views/visual/config/Number.vue +36 -0
  1151. package/src/frame/views/visual/config/Object.vue +106 -0
  1152. package/src/frame/views/visual/config/Operate.vue +1657 -0
  1153. package/src/frame/views/visual/config/OrderField.vue +507 -0
  1154. package/src/frame/views/visual/config/Page.vue +44 -0
  1155. package/src/frame/views/visual/config/Params.vue +104 -0
  1156. package/src/frame/views/visual/config/Radio.vue +54 -0
  1157. package/src/frame/views/visual/config/Row.vue +64 -0
  1158. package/src/frame/views/visual/config/Scope.vue +314 -0
  1159. package/src/frame/views/visual/config/Select.vue +54 -0
  1160. package/src/frame/views/visual/config/Switch.vue +36 -0
  1161. package/src/frame/views/visual/config/Textarea.vue +38 -0
  1162. package/src/frame/views/visual/config/Tree.vue +111 -0
  1163. package/src/frame/views/visual/search/Fields.vue +52 -0
  1164. package/src/frame/views/visual/search/Filter.vue +50 -0
  1165. package/src/frame/views/visual/search/Mobile.vue +54 -0
  1166. package/src/frame/views/visual/step/Index.vue +11 -0
  1167. package/src/frame/views/visual/step/Item.vue +157 -0
  1168. package/src/index.js +369 -0
  1169. package/src/main.js +54 -0
  1170. package/src/plugins/element.js +167 -0
  1171. package/src/plugins/frame.js +12 -0
  1172. package/src/plugins/i18n.js +51 -0
  1173. package/src/plugins/index.js +11 -0
  1174. package/src/plugins/oa.js +3 -0
  1175. package/src/plugins/vant.js +80 -0
  1176. package/src/product/oa/components/AddForm.vue +87 -0
  1177. package/src/product/oa/components/MeetingAddForm.vue +85 -0
  1178. package/src/product/oa/components/MeetingExport.vue +422 -0
  1179. package/src/product/oa/components/MeetingRoomUse.vue +371 -0
  1180. package/src/product/oa/index.js +31 -0
  1181. package/src/registerServiceWorker.js +32 -0
  1182. package/src/router/config.js +416 -0
  1183. package/src/router/index.js +26 -0
  1184. package/src/store/actions.js +46 -0
  1185. package/src/store/export.js +23 -0
  1186. package/src/store/index.js +17 -0
  1187. package/src/store/modules/config.js +201 -0
  1188. package/src/store/modules/file.js +32 -0
  1189. package/src/store/modules/index.js +9 -0
  1190. package/src/store/modules/list.js +130 -0
  1191. package/src/store/modules/meta.js +210 -0
  1192. package/src/store/modules/page.js +75 -0
  1193. package/src/store/modules/router.js +140 -0
  1194. package/src/store/modules/tabs.js +62 -0
  1195. package/src/store/modules/user.js +71 -0
  1196. package/src/styles/index.scss +143 -0
  1197. package/src/styles/theme/element.scss +240 -0
  1198. package/src/styles/theme/utils/config.scss +4 -0
  1199. package/src/styles/theme/utils/function.scss +44 -0
  1200. package/src/styles/theme/utils/mixins.scss +317 -0
  1201. package/src/styles/theme/utils/var.scss +112 -0
  1202. package/src/utils/Config.js +25 -0
  1203. package/src/utils/axios.js +121 -0
  1204. package/src/utils/chartTheme.js +471 -0
  1205. package/src/utils/directives/global.js +127 -0
  1206. package/src/utils/fieldFactory.js +147 -0
  1207. package/src/utils/index.js +21 -0
  1208. package/src/utils/loadComponent.js +39 -0
  1209. package/src/utils/meta.js +355 -0
  1210. package/src/utils/mixins/component.js +368 -0
  1211. package/src/utils/mixins/global.js +985 -0
  1212. package/src/utils/mixins/index.js +11 -0
  1213. package/src/utils/page.js +126 -0
  1214. package/src/utils/util.js +381 -0
  1215. package/src/vant-variables.less +1 -0
  1216. package/src/vue.bus.js +18 -0
  1217. package/start-code-dev.sh +24 -0
  1218. package/start-code-pgy.sh +25 -0
  1219. package/start-code-ppe.sh +23 -0
  1220. package/start-code-prd.sh +25 -0
  1221. package/start-code-pre.sh +25 -0
  1222. package/vue.config.js +101 -0
  1223. package/webpack.config.js +97 -0
@@ -0,0 +1,2163 @@
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 global = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
+
14
+ var noop = function () {
15
+ };
16
+ var constant = function (value) {
17
+ return function () {
18
+ return value;
19
+ };
20
+ };
21
+ var not = function (f) {
22
+ return function (t) {
23
+ return !f(t);
24
+ };
25
+ };
26
+ var never = constant(false);
27
+ var always = constant(true);
28
+
29
+ var none = function () {
30
+ return NONE;
31
+ };
32
+ var NONE = function () {
33
+ var eq = function (o) {
34
+ return o.isNone();
35
+ };
36
+ var call = function (thunk) {
37
+ return thunk();
38
+ };
39
+ var id = function (n) {
40
+ return n;
41
+ };
42
+ var me = {
43
+ fold: function (n, _s) {
44
+ return n();
45
+ },
46
+ is: never,
47
+ isSome: never,
48
+ isNone: always,
49
+ getOr: id,
50
+ getOrThunk: call,
51
+ getOrDie: function (msg) {
52
+ throw new Error(msg || 'error: getOrDie called on none.');
53
+ },
54
+ getOrNull: constant(null),
55
+ getOrUndefined: constant(undefined),
56
+ or: id,
57
+ orThunk: call,
58
+ map: none,
59
+ each: noop,
60
+ bind: none,
61
+ exists: never,
62
+ forall: always,
63
+ filter: none,
64
+ equals: eq,
65
+ equals_: eq,
66
+ toArray: function () {
67
+ return [];
68
+ },
69
+ toString: constant('none()')
70
+ };
71
+ return me;
72
+ }();
73
+ var some = function (a) {
74
+ var constant_a = constant(a);
75
+ var self = function () {
76
+ return me;
77
+ };
78
+ var bind = function (f) {
79
+ return f(a);
80
+ };
81
+ var me = {
82
+ fold: function (n, s) {
83
+ return s(a);
84
+ },
85
+ is: function (v) {
86
+ return a === v;
87
+ },
88
+ isSome: always,
89
+ isNone: never,
90
+ getOr: constant_a,
91
+ getOrThunk: constant_a,
92
+ getOrDie: constant_a,
93
+ getOrNull: constant_a,
94
+ getOrUndefined: constant_a,
95
+ or: self,
96
+ orThunk: self,
97
+ map: function (f) {
98
+ return some(f(a));
99
+ },
100
+ each: function (f) {
101
+ f(a);
102
+ },
103
+ bind: bind,
104
+ exists: bind,
105
+ forall: bind,
106
+ filter: function (f) {
107
+ return f(a) ? me : NONE;
108
+ },
109
+ toArray: function () {
110
+ return [a];
111
+ },
112
+ toString: function () {
113
+ return 'some(' + a + ')';
114
+ },
115
+ equals: function (o) {
116
+ return o.is(a);
117
+ },
118
+ equals_: function (o, elementEq) {
119
+ return o.fold(never, function (b) {
120
+ return elementEq(a, b);
121
+ });
122
+ }
123
+ };
124
+ return me;
125
+ };
126
+ var from = function (value) {
127
+ return value === null || value === undefined ? NONE : some(value);
128
+ };
129
+ var Option = {
130
+ some: some,
131
+ none: none,
132
+ from: from
133
+ };
134
+
135
+ var typeOf = function (x) {
136
+ var t = typeof x;
137
+ if (x === null) {
138
+ return 'null';
139
+ } else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
140
+ return 'array';
141
+ } else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
142
+ return 'string';
143
+ } else {
144
+ return t;
145
+ }
146
+ };
147
+ var isType = function (type) {
148
+ return function (value) {
149
+ return typeOf(value) === type;
150
+ };
151
+ };
152
+ var isSimpleType = function (type) {
153
+ return function (value) {
154
+ return typeof value === type;
155
+ };
156
+ };
157
+ var isString = isType('string');
158
+ var isArray = isType('array');
159
+ var isBoolean = isSimpleType('boolean');
160
+ var isFunction = isSimpleType('function');
161
+ var isNumber = isSimpleType('number');
162
+
163
+ var nativeSlice = Array.prototype.slice;
164
+ var nativePush = Array.prototype.push;
165
+ var map = function (xs, f) {
166
+ var len = xs.length;
167
+ var r = new Array(len);
168
+ for (var i = 0; i < len; i++) {
169
+ var x = xs[i];
170
+ r[i] = f(x, i);
171
+ }
172
+ return r;
173
+ };
174
+ var each = function (xs, f) {
175
+ for (var i = 0, len = xs.length; i < len; i++) {
176
+ var x = xs[i];
177
+ f(x, i);
178
+ }
179
+ };
180
+ var filter = function (xs, pred) {
181
+ var r = [];
182
+ for (var i = 0, len = xs.length; i < len; i++) {
183
+ var x = xs[i];
184
+ if (pred(x, i)) {
185
+ r.push(x);
186
+ }
187
+ }
188
+ return r;
189
+ };
190
+ var groupBy = function (xs, f) {
191
+ if (xs.length === 0) {
192
+ return [];
193
+ } else {
194
+ var wasType = f(xs[0]);
195
+ var r = [];
196
+ var group = [];
197
+ for (var i = 0, len = xs.length; i < len; i++) {
198
+ var x = xs[i];
199
+ var type = f(x);
200
+ if (type !== wasType) {
201
+ r.push(group);
202
+ group = [];
203
+ }
204
+ wasType = type;
205
+ group.push(x);
206
+ }
207
+ if (group.length !== 0) {
208
+ r.push(group);
209
+ }
210
+ return r;
211
+ }
212
+ };
213
+ var foldl = function (xs, f, acc) {
214
+ each(xs, function (x) {
215
+ acc = f(acc, x);
216
+ });
217
+ return acc;
218
+ };
219
+ var findUntil = function (xs, pred, until) {
220
+ for (var i = 0, len = xs.length; i < len; i++) {
221
+ var x = xs[i];
222
+ if (pred(x, i)) {
223
+ return Option.some(x);
224
+ } else if (until(x, i)) {
225
+ break;
226
+ }
227
+ }
228
+ return Option.none();
229
+ };
230
+ var find = function (xs, pred) {
231
+ return findUntil(xs, pred, never);
232
+ };
233
+ var flatten = function (xs) {
234
+ var r = [];
235
+ for (var i = 0, len = xs.length; i < len; ++i) {
236
+ if (!isArray(xs[i])) {
237
+ throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
238
+ }
239
+ nativePush.apply(r, xs[i]);
240
+ }
241
+ return r;
242
+ };
243
+ var bind = function (xs, f) {
244
+ return flatten(map(xs, f));
245
+ };
246
+ var reverse = function (xs) {
247
+ var r = nativeSlice.call(xs, 0);
248
+ r.reverse();
249
+ return r;
250
+ };
251
+ var head = function (xs) {
252
+ return xs.length === 0 ? Option.none() : Option.some(xs[0]);
253
+ };
254
+ var last = function (xs) {
255
+ return xs.length === 0 ? Option.none() : Option.some(xs[xs.length - 1]);
256
+ };
257
+
258
+ var compareDocumentPosition = function (a, b, match) {
259
+ return (a.compareDocumentPosition(b) & match) !== 0;
260
+ };
261
+ var documentPositionContainedBy = function (a, b) {
262
+ return compareDocumentPosition(a, b, domGlobals.Node.DOCUMENT_POSITION_CONTAINED_BY);
263
+ };
264
+
265
+ var __assign = function () {
266
+ __assign = Object.assign || function __assign(t) {
267
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
268
+ s = arguments[i];
269
+ for (var p in s)
270
+ if (Object.prototype.hasOwnProperty.call(s, p))
271
+ t[p] = s[p];
272
+ }
273
+ return t;
274
+ };
275
+ return __assign.apply(this, arguments);
276
+ };
277
+
278
+ var cached = function (f) {
279
+ var called = false;
280
+ var r;
281
+ return function () {
282
+ var args = [];
283
+ for (var _i = 0; _i < arguments.length; _i++) {
284
+ args[_i] = arguments[_i];
285
+ }
286
+ if (!called) {
287
+ called = true;
288
+ r = f.apply(null, args);
289
+ }
290
+ return r;
291
+ };
292
+ };
293
+
294
+ var firstMatch = function (regexes, s) {
295
+ for (var i = 0; i < regexes.length; i++) {
296
+ var x = regexes[i];
297
+ if (x.test(s)) {
298
+ return x;
299
+ }
300
+ }
301
+ return undefined;
302
+ };
303
+ var find$1 = function (regexes, agent) {
304
+ var r = firstMatch(regexes, agent);
305
+ if (!r) {
306
+ return {
307
+ major: 0,
308
+ minor: 0
309
+ };
310
+ }
311
+ var group = function (i) {
312
+ return Number(agent.replace(r, '$' + i));
313
+ };
314
+ return nu(group(1), group(2));
315
+ };
316
+ var detect = function (versionRegexes, agent) {
317
+ var cleanedAgent = String(agent).toLowerCase();
318
+ if (versionRegexes.length === 0) {
319
+ return unknown();
320
+ }
321
+ return find$1(versionRegexes, cleanedAgent);
322
+ };
323
+ var unknown = function () {
324
+ return nu(0, 0);
325
+ };
326
+ var nu = function (major, minor) {
327
+ return {
328
+ major: major,
329
+ minor: minor
330
+ };
331
+ };
332
+ var Version = {
333
+ nu: nu,
334
+ detect: detect,
335
+ unknown: unknown
336
+ };
337
+
338
+ var edge = 'Edge';
339
+ var chrome = 'Chrome';
340
+ var ie = 'IE';
341
+ var opera = 'Opera';
342
+ var firefox = 'Firefox';
343
+ var safari = 'Safari';
344
+ var unknown$1 = function () {
345
+ return nu$1({
346
+ current: undefined,
347
+ version: Version.unknown()
348
+ });
349
+ };
350
+ var nu$1 = function (info) {
351
+ var current = info.current;
352
+ var version = info.version;
353
+ var isBrowser = function (name) {
354
+ return function () {
355
+ return current === name;
356
+ };
357
+ };
358
+ return {
359
+ current: current,
360
+ version: version,
361
+ isEdge: isBrowser(edge),
362
+ isChrome: isBrowser(chrome),
363
+ isIE: isBrowser(ie),
364
+ isOpera: isBrowser(opera),
365
+ isFirefox: isBrowser(firefox),
366
+ isSafari: isBrowser(safari)
367
+ };
368
+ };
369
+ var Browser = {
370
+ unknown: unknown$1,
371
+ nu: nu$1,
372
+ edge: constant(edge),
373
+ chrome: constant(chrome),
374
+ ie: constant(ie),
375
+ opera: constant(opera),
376
+ firefox: constant(firefox),
377
+ safari: constant(safari)
378
+ };
379
+
380
+ var windows = 'Windows';
381
+ var ios = 'iOS';
382
+ var android = 'Android';
383
+ var linux = 'Linux';
384
+ var osx = 'OSX';
385
+ var solaris = 'Solaris';
386
+ var freebsd = 'FreeBSD';
387
+ var chromeos = 'ChromeOS';
388
+ var unknown$2 = function () {
389
+ return nu$2({
390
+ current: undefined,
391
+ version: Version.unknown()
392
+ });
393
+ };
394
+ var nu$2 = function (info) {
395
+ var current = info.current;
396
+ var version = info.version;
397
+ var isOS = function (name) {
398
+ return function () {
399
+ return current === name;
400
+ };
401
+ };
402
+ return {
403
+ current: current,
404
+ version: version,
405
+ isWindows: isOS(windows),
406
+ isiOS: isOS(ios),
407
+ isAndroid: isOS(android),
408
+ isOSX: isOS(osx),
409
+ isLinux: isOS(linux),
410
+ isSolaris: isOS(solaris),
411
+ isFreeBSD: isOS(freebsd),
412
+ isChromeOS: isOS(chromeos)
413
+ };
414
+ };
415
+ var OperatingSystem = {
416
+ unknown: unknown$2,
417
+ nu: nu$2,
418
+ windows: constant(windows),
419
+ ios: constant(ios),
420
+ android: constant(android),
421
+ linux: constant(linux),
422
+ osx: constant(osx),
423
+ solaris: constant(solaris),
424
+ freebsd: constant(freebsd),
425
+ chromeos: constant(chromeos)
426
+ };
427
+
428
+ var DeviceType = function (os, browser, userAgent, mediaMatch) {
429
+ var isiPad = os.isiOS() && /ipad/i.test(userAgent) === true;
430
+ var isiPhone = os.isiOS() && !isiPad;
431
+ var isMobile = os.isiOS() || os.isAndroid();
432
+ var isTouch = isMobile || mediaMatch('(pointer:coarse)');
433
+ var isTablet = isiPad || !isiPhone && isMobile && mediaMatch('(min-device-width:768px)');
434
+ var isPhone = isiPhone || isMobile && !isTablet;
435
+ var iOSwebview = browser.isSafari() && os.isiOS() && /safari/i.test(userAgent) === false;
436
+ var isDesktop = !isPhone && !isTablet && !iOSwebview;
437
+ return {
438
+ isiPad: constant(isiPad),
439
+ isiPhone: constant(isiPhone),
440
+ isTablet: constant(isTablet),
441
+ isPhone: constant(isPhone),
442
+ isTouch: constant(isTouch),
443
+ isAndroid: os.isAndroid,
444
+ isiOS: os.isiOS,
445
+ isWebView: constant(iOSwebview),
446
+ isDesktop: constant(isDesktop)
447
+ };
448
+ };
449
+
450
+ var detect$1 = function (candidates, userAgent) {
451
+ var agent = String(userAgent).toLowerCase();
452
+ return find(candidates, function (candidate) {
453
+ return candidate.search(agent);
454
+ });
455
+ };
456
+ var detectBrowser = function (browsers, userAgent) {
457
+ return detect$1(browsers, userAgent).map(function (browser) {
458
+ var version = Version.detect(browser.versionRegexes, userAgent);
459
+ return {
460
+ current: browser.name,
461
+ version: version
462
+ };
463
+ });
464
+ };
465
+ var detectOs = function (oses, userAgent) {
466
+ return detect$1(oses, userAgent).map(function (os) {
467
+ var version = Version.detect(os.versionRegexes, userAgent);
468
+ return {
469
+ current: os.name,
470
+ version: version
471
+ };
472
+ });
473
+ };
474
+ var UaString = {
475
+ detectBrowser: detectBrowser,
476
+ detectOs: detectOs
477
+ };
478
+
479
+ var contains = function (str, substr) {
480
+ return str.indexOf(substr) !== -1;
481
+ };
482
+
483
+ var normalVersionRegex = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/;
484
+ var checkContains = function (target) {
485
+ return function (uastring) {
486
+ return contains(uastring, target);
487
+ };
488
+ };
489
+ var browsers = [
490
+ {
491
+ name: 'Edge',
492
+ versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
493
+ search: function (uastring) {
494
+ return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
495
+ }
496
+ },
497
+ {
498
+ name: 'Chrome',
499
+ versionRegexes: [
500
+ /.*?chrome\/([0-9]+)\.([0-9]+).*/,
501
+ normalVersionRegex
502
+ ],
503
+ search: function (uastring) {
504
+ return contains(uastring, 'chrome') && !contains(uastring, 'chromeframe');
505
+ }
506
+ },
507
+ {
508
+ name: 'IE',
509
+ versionRegexes: [
510
+ /.*?msie\ ?([0-9]+)\.([0-9]+).*/,
511
+ /.*?rv:([0-9]+)\.([0-9]+).*/
512
+ ],
513
+ search: function (uastring) {
514
+ return contains(uastring, 'msie') || contains(uastring, 'trident');
515
+ }
516
+ },
517
+ {
518
+ name: 'Opera',
519
+ versionRegexes: [
520
+ normalVersionRegex,
521
+ /.*?opera\/([0-9]+)\.([0-9]+).*/
522
+ ],
523
+ search: checkContains('opera')
524
+ },
525
+ {
526
+ name: 'Firefox',
527
+ versionRegexes: [/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],
528
+ search: checkContains('firefox')
529
+ },
530
+ {
531
+ name: 'Safari',
532
+ versionRegexes: [
533
+ normalVersionRegex,
534
+ /.*?cpu os ([0-9]+)_([0-9]+).*/
535
+ ],
536
+ search: function (uastring) {
537
+ return (contains(uastring, 'safari') || contains(uastring, 'mobile/')) && contains(uastring, 'applewebkit');
538
+ }
539
+ }
540
+ ];
541
+ var oses = [
542
+ {
543
+ name: 'Windows',
544
+ search: checkContains('win'),
545
+ versionRegexes: [/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]
546
+ },
547
+ {
548
+ name: 'iOS',
549
+ search: function (uastring) {
550
+ return contains(uastring, 'iphone') || contains(uastring, 'ipad');
551
+ },
552
+ versionRegexes: [
553
+ /.*?version\/\ ?([0-9]+)\.([0-9]+).*/,
554
+ /.*cpu os ([0-9]+)_([0-9]+).*/,
555
+ /.*cpu iphone os ([0-9]+)_([0-9]+).*/
556
+ ]
557
+ },
558
+ {
559
+ name: 'Android',
560
+ search: checkContains('android'),
561
+ versionRegexes: [/.*?android\ ?([0-9]+)\.([0-9]+).*/]
562
+ },
563
+ {
564
+ name: 'OSX',
565
+ search: checkContains('mac os x'),
566
+ versionRegexes: [/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]
567
+ },
568
+ {
569
+ name: 'Linux',
570
+ search: checkContains('linux'),
571
+ versionRegexes: []
572
+ },
573
+ {
574
+ name: 'Solaris',
575
+ search: checkContains('sunos'),
576
+ versionRegexes: []
577
+ },
578
+ {
579
+ name: 'FreeBSD',
580
+ search: checkContains('freebsd'),
581
+ versionRegexes: []
582
+ },
583
+ {
584
+ name: 'ChromeOS',
585
+ search: checkContains('cros'),
586
+ versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/]
587
+ }
588
+ ];
589
+ var PlatformInfo = {
590
+ browsers: constant(browsers),
591
+ oses: constant(oses)
592
+ };
593
+
594
+ var detect$2 = function (userAgent, mediaMatch) {
595
+ var browsers = PlatformInfo.browsers();
596
+ var oses = PlatformInfo.oses();
597
+ var browser = UaString.detectBrowser(browsers, userAgent).fold(Browser.unknown, Browser.nu);
598
+ var os = UaString.detectOs(oses, userAgent).fold(OperatingSystem.unknown, OperatingSystem.nu);
599
+ var deviceType = DeviceType(os, browser, userAgent, mediaMatch);
600
+ return {
601
+ browser: browser,
602
+ os: os,
603
+ deviceType: deviceType
604
+ };
605
+ };
606
+ var PlatformDetection = { detect: detect$2 };
607
+
608
+ var mediaMatch = function (query) {
609
+ return domGlobals.window.matchMedia(query).matches;
610
+ };
611
+ var platform = cached(function () {
612
+ return PlatformDetection.detect(domGlobals.navigator.userAgent, mediaMatch);
613
+ });
614
+ var detect$3 = function () {
615
+ return platform();
616
+ };
617
+
618
+ var fromHtml = function (html, scope) {
619
+ var doc = scope || domGlobals.document;
620
+ var div = doc.createElement('div');
621
+ div.innerHTML = html;
622
+ if (!div.hasChildNodes() || div.childNodes.length > 1) {
623
+ domGlobals.console.error('HTML does not have a single root node', html);
624
+ throw new Error('HTML must have a single root node');
625
+ }
626
+ return fromDom(div.childNodes[0]);
627
+ };
628
+ var fromTag = function (tag, scope) {
629
+ var doc = scope || domGlobals.document;
630
+ var node = doc.createElement(tag);
631
+ return fromDom(node);
632
+ };
633
+ var fromText = function (text, scope) {
634
+ var doc = scope || domGlobals.document;
635
+ var node = doc.createTextNode(text);
636
+ return fromDom(node);
637
+ };
638
+ var fromDom = function (node) {
639
+ if (node === null || node === undefined) {
640
+ throw new Error('Node cannot be null or undefined');
641
+ }
642
+ return { dom: constant(node) };
643
+ };
644
+ var fromPoint = function (docElm, x, y) {
645
+ var doc = docElm.dom();
646
+ return Option.from(doc.elementFromPoint(x, y)).map(fromDom);
647
+ };
648
+ var Element = {
649
+ fromHtml: fromHtml,
650
+ fromTag: fromTag,
651
+ fromText: fromText,
652
+ fromDom: fromDom,
653
+ fromPoint: fromPoint
654
+ };
655
+
656
+ var ELEMENT = 1;
657
+
658
+ var is = function (element, selector) {
659
+ var dom = element.dom();
660
+ if (dom.nodeType !== ELEMENT) {
661
+ return false;
662
+ } else {
663
+ var elem = dom;
664
+ if (elem.matches !== undefined) {
665
+ return elem.matches(selector);
666
+ } else if (elem.msMatchesSelector !== undefined) {
667
+ return elem.msMatchesSelector(selector);
668
+ } else if (elem.webkitMatchesSelector !== undefined) {
669
+ return elem.webkitMatchesSelector(selector);
670
+ } else if (elem.mozMatchesSelector !== undefined) {
671
+ return elem.mozMatchesSelector(selector);
672
+ } else {
673
+ throw new Error('Browser lacks native selectors');
674
+ }
675
+ }
676
+ };
677
+
678
+ var eq = function (e1, e2) {
679
+ return e1.dom() === e2.dom();
680
+ };
681
+ var regularContains = function (e1, e2) {
682
+ var d1 = e1.dom();
683
+ var d2 = e2.dom();
684
+ return d1 === d2 ? false : d1.contains(d2);
685
+ };
686
+ var ieContains = function (e1, e2) {
687
+ return documentPositionContainedBy(e1.dom(), e2.dom());
688
+ };
689
+ var contains$1 = function (e1, e2) {
690
+ return detect$3().browser.isIE() ? ieContains(e1, e2) : regularContains(e1, e2);
691
+ };
692
+ var is$1 = is;
693
+
694
+ var global$1 = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils');
695
+
696
+ var global$2 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
697
+
698
+ var global$3 = tinymce.util.Tools.resolve('tinymce.util.VK');
699
+
700
+ var lift2 = function (oa, ob, f) {
701
+ return oa.isSome() && ob.isSome() ? Option.some(f(oa.getOrDie(), ob.getOrDie())) : Option.none();
702
+ };
703
+
704
+ var fromElements = function (elements, scope) {
705
+ var doc = scope || domGlobals.document;
706
+ var fragment = doc.createDocumentFragment();
707
+ each(elements, function (element) {
708
+ fragment.appendChild(element.dom());
709
+ });
710
+ return Element.fromDom(fragment);
711
+ };
712
+
713
+ var Global = typeof domGlobals.window !== 'undefined' ? domGlobals.window : Function('return this;')();
714
+
715
+ var name = function (element) {
716
+ var r = element.dom().nodeName;
717
+ return r.toLowerCase();
718
+ };
719
+ var type = function (element) {
720
+ return element.dom().nodeType;
721
+ };
722
+ var isType$1 = function (t) {
723
+ return function (element) {
724
+ return type(element) === t;
725
+ };
726
+ };
727
+ var isElement = isType$1(ELEMENT);
728
+
729
+ var parent = function (element) {
730
+ return Option.from(element.dom().parentNode).map(Element.fromDom);
731
+ };
732
+ var children = function (element) {
733
+ return map(element.dom().childNodes, Element.fromDom);
734
+ };
735
+ var child = function (element, index) {
736
+ var cs = element.dom().childNodes;
737
+ return Option.from(cs[index]).map(Element.fromDom);
738
+ };
739
+ var firstChild = function (element) {
740
+ return child(element, 0);
741
+ };
742
+ var lastChild = function (element) {
743
+ return child(element, element.dom().childNodes.length - 1);
744
+ };
745
+
746
+ var before = function (marker, element) {
747
+ var parent$1 = parent(marker);
748
+ parent$1.each(function (v) {
749
+ v.dom().insertBefore(element.dom(), marker.dom());
750
+ });
751
+ };
752
+ var append = function (parent, element) {
753
+ parent.dom().appendChild(element.dom());
754
+ };
755
+
756
+ var before$1 = function (marker, elements) {
757
+ each(elements, function (x) {
758
+ before(marker, x);
759
+ });
760
+ };
761
+ var append$1 = function (parent, elements) {
762
+ each(elements, function (x) {
763
+ append(parent, x);
764
+ });
765
+ };
766
+
767
+ var remove = function (element) {
768
+ var dom = element.dom();
769
+ if (dom.parentNode !== null) {
770
+ dom.parentNode.removeChild(dom);
771
+ }
772
+ };
773
+
774
+ var fireListEvent = function (editor, action, element) {
775
+ return editor.fire('ListMutation', {
776
+ action: action,
777
+ element: element
778
+ });
779
+ };
780
+
781
+ var global$4 = tinymce.util.Tools.resolve('tinymce.dom.DomQuery');
782
+
783
+ var global$5 = tinymce.util.Tools.resolve('tinymce.util.Tools');
784
+
785
+ var matchNodeName = function (name) {
786
+ return function (node) {
787
+ return node && node.nodeName.toLowerCase() === name;
788
+ };
789
+ };
790
+ var matchNodeNames = function (regex) {
791
+ return function (node) {
792
+ return node && regex.test(node.nodeName);
793
+ };
794
+ };
795
+ var isTextNode = function (node) {
796
+ return node && node.nodeType === 3;
797
+ };
798
+ var isListNode = matchNodeNames(/^(OL|UL|DL)$/);
799
+ var isOlUlNode = matchNodeNames(/^(OL|UL)$/);
800
+ var isOlNode = matchNodeName('ol');
801
+ var isListItemNode = matchNodeNames(/^(LI|DT|DD)$/);
802
+ var isDlItemNode = matchNodeNames(/^(DT|DD)$/);
803
+ var isTableCellNode = matchNodeNames(/^(TH|TD)$/);
804
+ var isBr = matchNodeName('br');
805
+ var isFirstChild = function (node) {
806
+ return node.parentNode.firstChild === node;
807
+ };
808
+ var isTextBlock = function (editor, node) {
809
+ return node && !!editor.schema.getTextBlockElements()[node.nodeName];
810
+ };
811
+ var isBlock = function (node, blockElements) {
812
+ return node && node.nodeName in blockElements;
813
+ };
814
+ var isBogusBr = function (dom, node) {
815
+ if (!isBr(node)) {
816
+ return false;
817
+ }
818
+ if (dom.isBlock(node.nextSibling) && !isBr(node.previousSibling)) {
819
+ return true;
820
+ }
821
+ return false;
822
+ };
823
+ var isEmpty = function (dom, elm, keepBookmarks) {
824
+ var empty = dom.isEmpty(elm);
825
+ if (keepBookmarks && dom.select('span[data-mce-type=bookmark]', elm).length > 0) {
826
+ return false;
827
+ }
828
+ return empty;
829
+ };
830
+ var isChildOfBody = function (dom, elm) {
831
+ return dom.isChildOf(elm, dom.getRoot());
832
+ };
833
+
834
+ var getParentList = function (editor, node) {
835
+ var selectionStart = node || editor.selection.getStart(true);
836
+ return editor.dom.getParent(selectionStart, 'OL,UL,DL', getClosestListRootElm(editor, selectionStart));
837
+ };
838
+ var isParentListSelected = function (parentList, selectedBlocks) {
839
+ return parentList && selectedBlocks.length === 1 && selectedBlocks[0] === parentList;
840
+ };
841
+ var findSubLists = function (parentList) {
842
+ return global$5.grep(parentList.querySelectorAll('ol,ul,dl'), function (elm) {
843
+ return isListNode(elm);
844
+ });
845
+ };
846
+ var getSelectedSubLists = function (editor) {
847
+ var parentList = getParentList(editor);
848
+ var selectedBlocks = editor.selection.getSelectedBlocks();
849
+ if (isParentListSelected(parentList, selectedBlocks)) {
850
+ return findSubLists(parentList);
851
+ } else {
852
+ return global$5.grep(selectedBlocks, function (elm) {
853
+ return isListNode(elm) && parentList !== elm;
854
+ });
855
+ }
856
+ };
857
+ var findParentListItemsNodes = function (editor, elms) {
858
+ var listItemsElms = global$5.map(elms, function (elm) {
859
+ var parentLi = editor.dom.getParent(elm, 'li,dd,dt', getClosestListRootElm(editor, elm));
860
+ return parentLi ? parentLi : elm;
861
+ });
862
+ return global$4.unique(listItemsElms);
863
+ };
864
+ var getSelectedListItems = function (editor) {
865
+ var selectedBlocks = editor.selection.getSelectedBlocks();
866
+ return global$5.grep(findParentListItemsNodes(editor, selectedBlocks), function (block) {
867
+ return isListItemNode(block);
868
+ });
869
+ };
870
+ var getSelectedDlItems = function (editor) {
871
+ return filter(getSelectedListItems(editor), isDlItemNode);
872
+ };
873
+ var getClosestListRootElm = function (editor, elm) {
874
+ var parentTableCell = editor.dom.getParents(elm, 'TD,TH');
875
+ var root = parentTableCell.length > 0 ? parentTableCell[0] : editor.getBody();
876
+ return root;
877
+ };
878
+ var findLastParentListNode = function (editor, elm) {
879
+ var parentLists = editor.dom.getParents(elm, 'ol,ul', getClosestListRootElm(editor, elm));
880
+ return last(parentLists);
881
+ };
882
+ var getSelectedLists = function (editor) {
883
+ var firstList = findLastParentListNode(editor, editor.selection.getStart());
884
+ var subsequentLists = filter(editor.selection.getSelectedBlocks(), isOlUlNode);
885
+ return firstList.toArray().concat(subsequentLists);
886
+ };
887
+ var getSelectedListRoots = function (editor) {
888
+ var selectedLists = getSelectedLists(editor);
889
+ return getUniqueListRoots(editor, selectedLists);
890
+ };
891
+ var getUniqueListRoots = function (editor, lists) {
892
+ var listRoots = map(lists, function (list) {
893
+ return findLastParentListNode(editor, list).getOr(list);
894
+ });
895
+ return global$4.unique(listRoots);
896
+ };
897
+
898
+ var shouldIndentOnTab = function (editor) {
899
+ return editor.getParam('lists_indent_on_tab', true);
900
+ };
901
+ var getForcedRootBlock = function (editor) {
902
+ var block = editor.getParam('forced_root_block', 'p');
903
+ if (block === false) {
904
+ return '';
905
+ } else if (block === true) {
906
+ return 'p';
907
+ } else {
908
+ return block;
909
+ }
910
+ };
911
+ var getForcedRootBlockAttrs = function (editor) {
912
+ return editor.getParam('forced_root_block_attrs', {});
913
+ };
914
+
915
+ var createTextBlock = function (editor, contentNode) {
916
+ var dom = editor.dom;
917
+ var blockElements = editor.schema.getBlockElements();
918
+ var fragment = dom.createFragment();
919
+ var blockName = getForcedRootBlock(editor);
920
+ var node, textBlock, hasContentNode;
921
+ if (blockName) {
922
+ textBlock = dom.create(blockName);
923
+ if (textBlock.tagName === blockName.toUpperCase()) {
924
+ dom.setAttribs(textBlock, getForcedRootBlockAttrs(editor));
925
+ }
926
+ if (!isBlock(contentNode.firstChild, blockElements)) {
927
+ fragment.appendChild(textBlock);
928
+ }
929
+ }
930
+ if (contentNode) {
931
+ while (node = contentNode.firstChild) {
932
+ var nodeName = node.nodeName;
933
+ if (!hasContentNode && (nodeName !== 'SPAN' || node.getAttribute('data-mce-type') !== 'bookmark')) {
934
+ hasContentNode = true;
935
+ }
936
+ if (isBlock(node, blockElements)) {
937
+ fragment.appendChild(node);
938
+ textBlock = null;
939
+ } else {
940
+ if (blockName) {
941
+ if (!textBlock) {
942
+ textBlock = dom.create(blockName);
943
+ fragment.appendChild(textBlock);
944
+ }
945
+ textBlock.appendChild(node);
946
+ } else {
947
+ fragment.appendChild(node);
948
+ }
949
+ }
950
+ }
951
+ }
952
+ if (!blockName) {
953
+ fragment.appendChild(dom.create('br'));
954
+ } else {
955
+ if (!hasContentNode) {
956
+ textBlock.appendChild(dom.create('br', { 'data-mce-bogus': '1' }));
957
+ }
958
+ }
959
+ return fragment;
960
+ };
961
+
962
+ var keys = Object.keys;
963
+ var each$1 = function (obj, f) {
964
+ var props = keys(obj);
965
+ for (var k = 0, len = props.length; k < len; k++) {
966
+ var i = props[k];
967
+ var x = obj[i];
968
+ f(x, i);
969
+ }
970
+ };
971
+ var objAcc = function (r) {
972
+ return function (x, i) {
973
+ r[i] = x;
974
+ };
975
+ };
976
+ var internalFilter = function (obj, pred, onTrue, onFalse) {
977
+ var r = {};
978
+ each$1(obj, function (x, i) {
979
+ (pred(x, i) ? onTrue : onFalse)(x, i);
980
+ });
981
+ return r;
982
+ };
983
+ var filter$1 = function (obj, pred) {
984
+ var t = {};
985
+ internalFilter(obj, pred, objAcc(t), noop);
986
+ return t;
987
+ };
988
+
989
+ var rawSet = function (dom, key, value) {
990
+ if (isString(value) || isBoolean(value) || isNumber(value)) {
991
+ dom.setAttribute(key, value + '');
992
+ } else {
993
+ domGlobals.console.error('Invalid call to Attr.set. Key ', key, ':: Value ', value, ':: Element ', dom);
994
+ throw new Error('Attribute value was not simple');
995
+ }
996
+ };
997
+ var setAll = function (element, attrs) {
998
+ var dom = element.dom();
999
+ each$1(attrs, function (v, k) {
1000
+ rawSet(dom, k, v);
1001
+ });
1002
+ };
1003
+ var clone = function (element) {
1004
+ return foldl(element.dom().attributes, function (acc, attr) {
1005
+ acc[attr.name] = attr.value;
1006
+ return acc;
1007
+ }, {});
1008
+ };
1009
+
1010
+ var isSupported = function (dom) {
1011
+ return dom.style !== undefined && isFunction(dom.style.getPropertyValue);
1012
+ };
1013
+
1014
+ var supported = isFunction(domGlobals.Element.prototype.attachShadow) && isFunction(domGlobals.Node.prototype.getRootNode);
1015
+
1016
+ var internalSet = function (dom, property, value) {
1017
+ if (!isString(value)) {
1018
+ domGlobals.console.error('Invalid call to CSS.set. Property ', property, ':: Value ', value, ':: Element ', dom);
1019
+ throw new Error('CSS value must be a string: ' + value);
1020
+ }
1021
+ if (isSupported(dom)) {
1022
+ dom.style.setProperty(property, value);
1023
+ }
1024
+ };
1025
+ var set = function (element, property, value) {
1026
+ var dom = element.dom();
1027
+ internalSet(dom, property, value);
1028
+ };
1029
+
1030
+ var clone$1 = function (original, isDeep) {
1031
+ return Element.fromDom(original.dom().cloneNode(isDeep));
1032
+ };
1033
+ var deep = function (original) {
1034
+ return clone$1(original, true);
1035
+ };
1036
+ var shallowAs = function (original, tag) {
1037
+ var nu = Element.fromTag(tag);
1038
+ var attributes = clone(original);
1039
+ setAll(nu, attributes);
1040
+ return nu;
1041
+ };
1042
+ var mutate = function (original, tag) {
1043
+ var nu = shallowAs(original, tag);
1044
+ before(original, nu);
1045
+ var children$1 = children(original);
1046
+ append$1(nu, children$1);
1047
+ remove(original);
1048
+ return nu;
1049
+ };
1050
+
1051
+ var joinSegment = function (parent, child) {
1052
+ append(parent.item, child.list);
1053
+ };
1054
+ var joinSegments = function (segments) {
1055
+ for (var i = 1; i < segments.length; i++) {
1056
+ joinSegment(segments[i - 1], segments[i]);
1057
+ }
1058
+ };
1059
+ var appendSegments = function (head$1, tail) {
1060
+ lift2(last(head$1), head(tail), joinSegment);
1061
+ };
1062
+ var createSegment = function (scope, listType) {
1063
+ var segment = {
1064
+ list: Element.fromTag(listType, scope),
1065
+ item: Element.fromTag('li', scope)
1066
+ };
1067
+ append(segment.list, segment.item);
1068
+ return segment;
1069
+ };
1070
+ var createSegments = function (scope, entry, size) {
1071
+ var segments = [];
1072
+ for (var i = 0; i < size; i++) {
1073
+ segments.push(createSegment(scope, entry.listType));
1074
+ }
1075
+ return segments;
1076
+ };
1077
+ var populateSegments = function (segments, entry) {
1078
+ for (var i = 0; i < segments.length - 1; i++) {
1079
+ set(segments[i].item, 'list-style-type', 'none');
1080
+ }
1081
+ last(segments).each(function (segment) {
1082
+ setAll(segment.list, entry.listAttributes);
1083
+ setAll(segment.item, entry.itemAttributes);
1084
+ append$1(segment.item, entry.content);
1085
+ });
1086
+ };
1087
+ var normalizeSegment = function (segment, entry) {
1088
+ if (name(segment.list) !== entry.listType) {
1089
+ segment.list = mutate(segment.list, entry.listType);
1090
+ }
1091
+ setAll(segment.list, entry.listAttributes);
1092
+ };
1093
+ var createItem = function (scope, attr, content) {
1094
+ var item = Element.fromTag('li', scope);
1095
+ setAll(item, attr);
1096
+ append$1(item, content);
1097
+ return item;
1098
+ };
1099
+ var appendItem = function (segment, item) {
1100
+ append(segment.list, item);
1101
+ segment.item = item;
1102
+ };
1103
+ var writeShallow = function (scope, cast, entry) {
1104
+ var newCast = cast.slice(0, entry.depth);
1105
+ last(newCast).each(function (segment) {
1106
+ var item = createItem(scope, entry.itemAttributes, entry.content);
1107
+ appendItem(segment, item);
1108
+ normalizeSegment(segment, entry);
1109
+ });
1110
+ return newCast;
1111
+ };
1112
+ var writeDeep = function (scope, cast, entry) {
1113
+ var segments = createSegments(scope, entry, entry.depth - cast.length);
1114
+ joinSegments(segments);
1115
+ populateSegments(segments, entry);
1116
+ appendSegments(cast, segments);
1117
+ return cast.concat(segments);
1118
+ };
1119
+ var composeList = function (scope, entries) {
1120
+ var cast = foldl(entries, function (cast, entry) {
1121
+ return entry.depth > cast.length ? writeDeep(scope, cast, entry) : writeShallow(scope, cast, entry);
1122
+ }, []);
1123
+ return head(cast).map(function (segment) {
1124
+ return segment.list;
1125
+ });
1126
+ };
1127
+
1128
+ var isList = function (el) {
1129
+ return is$1(el, 'OL,UL');
1130
+ };
1131
+ var hasFirstChildList = function (el) {
1132
+ return firstChild(el).map(isList).getOr(false);
1133
+ };
1134
+ var hasLastChildList = function (el) {
1135
+ return lastChild(el).map(isList).getOr(false);
1136
+ };
1137
+
1138
+ var isIndented = function (entry) {
1139
+ return entry.depth > 0;
1140
+ };
1141
+ var isSelected = function (entry) {
1142
+ return entry.isSelected;
1143
+ };
1144
+ var cloneItemContent = function (li) {
1145
+ var children$1 = children(li);
1146
+ var content = hasLastChildList(li) ? children$1.slice(0, -1) : children$1;
1147
+ return map(content, deep);
1148
+ };
1149
+ var createEntry = function (li, depth, isSelected) {
1150
+ return parent(li).filter(isElement).map(function (list) {
1151
+ return {
1152
+ depth: depth,
1153
+ dirty: false,
1154
+ isSelected: isSelected,
1155
+ content: cloneItemContent(li),
1156
+ itemAttributes: clone(li),
1157
+ listAttributes: clone(list),
1158
+ listType: name(list)
1159
+ };
1160
+ });
1161
+ };
1162
+
1163
+ var indentEntry = function (indentation, entry) {
1164
+ switch (indentation) {
1165
+ case 'Indent':
1166
+ entry.depth++;
1167
+ break;
1168
+ case 'Outdent':
1169
+ entry.depth--;
1170
+ break;
1171
+ case 'Flatten':
1172
+ entry.depth = 0;
1173
+ }
1174
+ entry.dirty = true;
1175
+ };
1176
+
1177
+ var cloneListProperties = function (target, source) {
1178
+ target.listType = source.listType;
1179
+ target.listAttributes = __assign({}, source.listAttributes);
1180
+ };
1181
+ var cleanListProperties = function (entry) {
1182
+ entry.listAttributes = filter$1(entry.listAttributes, function (_value, key) {
1183
+ return key !== 'start';
1184
+ });
1185
+ };
1186
+ var closestSiblingEntry = function (entries, start) {
1187
+ var depth = entries[start].depth;
1188
+ var matches = function (entry) {
1189
+ return entry.depth === depth && !entry.dirty;
1190
+ };
1191
+ var until = function (entry) {
1192
+ return entry.depth < depth;
1193
+ };
1194
+ return findUntil(reverse(entries.slice(0, start)), matches, until).orThunk(function () {
1195
+ return findUntil(entries.slice(start + 1), matches, until);
1196
+ });
1197
+ };
1198
+ var normalizeEntries = function (entries) {
1199
+ each(entries, function (entry, i) {
1200
+ closestSiblingEntry(entries, i).fold(function () {
1201
+ if (entry.dirty) {
1202
+ cleanListProperties(entry);
1203
+ }
1204
+ }, function (matchingEntry) {
1205
+ return cloneListProperties(entry, matchingEntry);
1206
+ });
1207
+ });
1208
+ return entries;
1209
+ };
1210
+
1211
+ var Cell = function (initial) {
1212
+ var value = initial;
1213
+ var get = function () {
1214
+ return value;
1215
+ };
1216
+ var set = function (v) {
1217
+ value = v;
1218
+ };
1219
+ return {
1220
+ get: get,
1221
+ set: set
1222
+ };
1223
+ };
1224
+
1225
+ var parseItem = function (depth, itemSelection, selectionState, item) {
1226
+ return firstChild(item).filter(isList).fold(function () {
1227
+ itemSelection.each(function (selection) {
1228
+ if (eq(selection.start, item)) {
1229
+ selectionState.set(true);
1230
+ }
1231
+ });
1232
+ var currentItemEntry = createEntry(item, depth, selectionState.get());
1233
+ itemSelection.each(function (selection) {
1234
+ if (eq(selection.end, item)) {
1235
+ selectionState.set(false);
1236
+ }
1237
+ });
1238
+ var childListEntries = lastChild(item).filter(isList).map(function (list) {
1239
+ return parseList(depth, itemSelection, selectionState, list);
1240
+ }).getOr([]);
1241
+ return currentItemEntry.toArray().concat(childListEntries);
1242
+ }, function (list) {
1243
+ return parseList(depth, itemSelection, selectionState, list);
1244
+ });
1245
+ };
1246
+ var parseList = function (depth, itemSelection, selectionState, list) {
1247
+ return bind(children(list), function (element) {
1248
+ var parser = isList(element) ? parseList : parseItem;
1249
+ var newDepth = depth + 1;
1250
+ return parser(newDepth, itemSelection, selectionState, element);
1251
+ });
1252
+ };
1253
+ var parseLists = function (lists, itemSelection) {
1254
+ var selectionState = Cell(false);
1255
+ var initialDepth = 0;
1256
+ return map(lists, function (list) {
1257
+ return {
1258
+ sourceList: list,
1259
+ entries: parseList(initialDepth, itemSelection, selectionState, list)
1260
+ };
1261
+ });
1262
+ };
1263
+
1264
+ var outdentedComposer = function (editor, entries) {
1265
+ var normalizedEntries = normalizeEntries(entries);
1266
+ return map(normalizedEntries, function (entry) {
1267
+ var content = fromElements(entry.content);
1268
+ return Element.fromDom(createTextBlock(editor, content.dom()));
1269
+ });
1270
+ };
1271
+ var indentedComposer = function (editor, entries) {
1272
+ var normalizedEntries = normalizeEntries(entries);
1273
+ return composeList(editor.contentDocument, normalizedEntries).toArray();
1274
+ };
1275
+ var composeEntries = function (editor, entries) {
1276
+ return bind(groupBy(entries, isIndented), function (entries) {
1277
+ var groupIsIndented = head(entries).map(isIndented).getOr(false);
1278
+ return groupIsIndented ? indentedComposer(editor, entries) : outdentedComposer(editor, entries);
1279
+ });
1280
+ };
1281
+ var indentSelectedEntries = function (entries, indentation) {
1282
+ each(filter(entries, isSelected), function (entry) {
1283
+ return indentEntry(indentation, entry);
1284
+ });
1285
+ };
1286
+ var getItemSelection = function (editor) {
1287
+ var selectedListItems = map(getSelectedListItems(editor), Element.fromDom);
1288
+ return lift2(find(selectedListItems, not(hasFirstChildList)), find(reverse(selectedListItems), not(hasFirstChildList)), function (start, end) {
1289
+ return {
1290
+ start: start,
1291
+ end: end
1292
+ };
1293
+ });
1294
+ };
1295
+ var listIndentation = function (editor, lists, indentation) {
1296
+ var entrySets = parseLists(lists, getItemSelection(editor));
1297
+ each(entrySets, function (entrySet) {
1298
+ indentSelectedEntries(entrySet.entries, indentation);
1299
+ var composedLists = composeEntries(editor, entrySet.entries);
1300
+ each(composedLists, function (composedList) {
1301
+ fireListEvent(editor, indentation === 'Indent' ? 'IndentList' : 'OutdentList', composedList.dom());
1302
+ });
1303
+ before$1(entrySet.sourceList, composedLists);
1304
+ remove(entrySet.sourceList);
1305
+ });
1306
+ };
1307
+
1308
+ var global$6 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
1309
+
1310
+ var DOM = global$6.DOM;
1311
+ var splitList = function (editor, ul, li) {
1312
+ var removeAndKeepBookmarks = function (targetNode) {
1313
+ global$5.each(bookmarks, function (node) {
1314
+ targetNode.parentNode.insertBefore(node, li.parentNode);
1315
+ });
1316
+ DOM.remove(targetNode);
1317
+ };
1318
+ var bookmarks = DOM.select('span[data-mce-type="bookmark"]', ul);
1319
+ var newBlock = createTextBlock(editor, li);
1320
+ var tmpRng = DOM.createRng();
1321
+ tmpRng.setStartAfter(li);
1322
+ tmpRng.setEndAfter(ul);
1323
+ var fragment = tmpRng.extractContents();
1324
+ for (var node = fragment.firstChild; node; node = node.firstChild) {
1325
+ if (node.nodeName === 'LI' && editor.dom.isEmpty(node)) {
1326
+ DOM.remove(node);
1327
+ break;
1328
+ }
1329
+ }
1330
+ if (!editor.dom.isEmpty(fragment)) {
1331
+ DOM.insertAfter(fragment, ul);
1332
+ }
1333
+ DOM.insertAfter(newBlock, ul);
1334
+ if (isEmpty(editor.dom, li.parentNode)) {
1335
+ removeAndKeepBookmarks(li.parentNode);
1336
+ }
1337
+ DOM.remove(li);
1338
+ if (isEmpty(editor.dom, ul)) {
1339
+ DOM.remove(ul);
1340
+ }
1341
+ };
1342
+
1343
+ var outdentDlItem = function (editor, item) {
1344
+ if (is$1(item, 'dd')) {
1345
+ mutate(item, 'dt');
1346
+ } else if (is$1(item, 'dt')) {
1347
+ parent(item).each(function (dl) {
1348
+ return splitList(editor, dl.dom(), item.dom());
1349
+ });
1350
+ }
1351
+ };
1352
+ var indentDlItem = function (item) {
1353
+ if (is$1(item, 'dt')) {
1354
+ mutate(item, 'dd');
1355
+ }
1356
+ };
1357
+ var dlIndentation = function (editor, indentation, dlItems) {
1358
+ if (indentation === 'Indent') {
1359
+ each(dlItems, indentDlItem);
1360
+ } else {
1361
+ each(dlItems, function (item) {
1362
+ return outdentDlItem(editor, item);
1363
+ });
1364
+ }
1365
+ };
1366
+
1367
+ var getNormalizedPoint = function (container, offset) {
1368
+ if (isTextNode(container)) {
1369
+ return {
1370
+ container: container,
1371
+ offset: offset
1372
+ };
1373
+ }
1374
+ var node = global$1.getNode(container, offset);
1375
+ if (isTextNode(node)) {
1376
+ return {
1377
+ container: node,
1378
+ offset: offset >= container.childNodes.length ? node.data.length : 0
1379
+ };
1380
+ } else if (node.previousSibling && isTextNode(node.previousSibling)) {
1381
+ return {
1382
+ container: node.previousSibling,
1383
+ offset: node.previousSibling.data.length
1384
+ };
1385
+ } else if (node.nextSibling && isTextNode(node.nextSibling)) {
1386
+ return {
1387
+ container: node.nextSibling,
1388
+ offset: 0
1389
+ };
1390
+ }
1391
+ return {
1392
+ container: container,
1393
+ offset: offset
1394
+ };
1395
+ };
1396
+ var normalizeRange = function (rng) {
1397
+ var outRng = rng.cloneRange();
1398
+ var rangeStart = getNormalizedPoint(rng.startContainer, rng.startOffset);
1399
+ outRng.setStart(rangeStart.container, rangeStart.offset);
1400
+ var rangeEnd = getNormalizedPoint(rng.endContainer, rng.endOffset);
1401
+ outRng.setEnd(rangeEnd.container, rangeEnd.offset);
1402
+ return outRng;
1403
+ };
1404
+
1405
+ var selectionIndentation = function (editor, indentation) {
1406
+ var lists = map(getSelectedListRoots(editor), Element.fromDom);
1407
+ var dlItems = map(getSelectedDlItems(editor), Element.fromDom);
1408
+ var isHandled = false;
1409
+ if (lists.length || dlItems.length) {
1410
+ var bookmark = editor.selection.getBookmark();
1411
+ listIndentation(editor, lists, indentation);
1412
+ dlIndentation(editor, indentation, dlItems);
1413
+ editor.selection.moveToBookmark(bookmark);
1414
+ editor.selection.setRng(normalizeRange(editor.selection.getRng()));
1415
+ editor.nodeChanged();
1416
+ isHandled = true;
1417
+ }
1418
+ return isHandled;
1419
+ };
1420
+ var indentListSelection = function (editor) {
1421
+ return selectionIndentation(editor, 'Indent');
1422
+ };
1423
+ var outdentListSelection = function (editor) {
1424
+ return selectionIndentation(editor, 'Outdent');
1425
+ };
1426
+ var flattenListSelection = function (editor) {
1427
+ return selectionIndentation(editor, 'Flatten');
1428
+ };
1429
+
1430
+ var global$7 = tinymce.util.Tools.resolve('tinymce.dom.BookmarkManager');
1431
+
1432
+ var DOM$1 = global$6.DOM;
1433
+ var createBookmark = function (rng) {
1434
+ var bookmark = {};
1435
+ var setupEndPoint = function (start) {
1436
+ var offsetNode, container, offset;
1437
+ container = rng[start ? 'startContainer' : 'endContainer'];
1438
+ offset = rng[start ? 'startOffset' : 'endOffset'];
1439
+ if (container.nodeType === 1) {
1440
+ offsetNode = DOM$1.create('span', { 'data-mce-type': 'bookmark' });
1441
+ if (container.hasChildNodes()) {
1442
+ offset = Math.min(offset, container.childNodes.length - 1);
1443
+ if (start) {
1444
+ container.insertBefore(offsetNode, container.childNodes[offset]);
1445
+ } else {
1446
+ DOM$1.insertAfter(offsetNode, container.childNodes[offset]);
1447
+ }
1448
+ } else {
1449
+ container.appendChild(offsetNode);
1450
+ }
1451
+ container = offsetNode;
1452
+ offset = 0;
1453
+ }
1454
+ bookmark[start ? 'startContainer' : 'endContainer'] = container;
1455
+ bookmark[start ? 'startOffset' : 'endOffset'] = offset;
1456
+ };
1457
+ setupEndPoint(true);
1458
+ if (!rng.collapsed) {
1459
+ setupEndPoint();
1460
+ }
1461
+ return bookmark;
1462
+ };
1463
+ var resolveBookmark = function (bookmark) {
1464
+ function restoreEndPoint(start) {
1465
+ var container, offset, node;
1466
+ var nodeIndex = function (container) {
1467
+ var node = container.parentNode.firstChild, idx = 0;
1468
+ while (node) {
1469
+ if (node === container) {
1470
+ return idx;
1471
+ }
1472
+ if (node.nodeType !== 1 || node.getAttribute('data-mce-type') !== 'bookmark') {
1473
+ idx++;
1474
+ }
1475
+ node = node.nextSibling;
1476
+ }
1477
+ return -1;
1478
+ };
1479
+ container = node = bookmark[start ? 'startContainer' : 'endContainer'];
1480
+ offset = bookmark[start ? 'startOffset' : 'endOffset'];
1481
+ if (!container) {
1482
+ return;
1483
+ }
1484
+ if (container.nodeType === 1) {
1485
+ offset = nodeIndex(container);
1486
+ container = container.parentNode;
1487
+ DOM$1.remove(node);
1488
+ if (!container.hasChildNodes() && DOM$1.isBlock(container)) {
1489
+ container.appendChild(DOM$1.create('br'));
1490
+ }
1491
+ }
1492
+ bookmark[start ? 'startContainer' : 'endContainer'] = container;
1493
+ bookmark[start ? 'startOffset' : 'endOffset'] = offset;
1494
+ }
1495
+ restoreEndPoint(true);
1496
+ restoreEndPoint();
1497
+ var rng = DOM$1.createRng();
1498
+ rng.setStart(bookmark.startContainer, bookmark.startOffset);
1499
+ if (bookmark.endContainer) {
1500
+ rng.setEnd(bookmark.endContainer, bookmark.endOffset);
1501
+ }
1502
+ return normalizeRange(rng);
1503
+ };
1504
+
1505
+ var listToggleActionFromListName = function (listName) {
1506
+ switch (listName) {
1507
+ case 'UL':
1508
+ return 'ToggleUlList';
1509
+ case 'OL':
1510
+ return 'ToggleOlList';
1511
+ case 'DL':
1512
+ return 'ToggleDLList';
1513
+ }
1514
+ };
1515
+
1516
+ var isCustomList = function (list) {
1517
+ return /\btox\-/.test(list.className);
1518
+ };
1519
+ var listState = function (editor, listName, activate) {
1520
+ var nodeChangeHandler = function (e) {
1521
+ var inList = findUntil(e.parents, isListNode, isTableCellNode).filter(function (list) {
1522
+ return list.nodeName === listName && !isCustomList(list);
1523
+ }).isSome();
1524
+ activate(inList);
1525
+ };
1526
+ var parents = editor.dom.getParents(editor.selection.getNode());
1527
+ nodeChangeHandler({ parents: parents });
1528
+ editor.on('NodeChange', nodeChangeHandler);
1529
+ return function () {
1530
+ return editor.off('NodeChange', nodeChangeHandler);
1531
+ };
1532
+ };
1533
+
1534
+ var updateListStyle = function (dom, el, detail) {
1535
+ var type = detail['list-style-type'] ? detail['list-style-type'] : null;
1536
+ dom.setStyle(el, 'list-style-type', type);
1537
+ };
1538
+ var setAttribs = function (elm, attrs) {
1539
+ global$5.each(attrs, function (value, key) {
1540
+ elm.setAttribute(key, value);
1541
+ });
1542
+ };
1543
+ var updateListAttrs = function (dom, el, detail) {
1544
+ setAttribs(el, detail['list-attributes']);
1545
+ global$5.each(dom.select('li', el), function (li) {
1546
+ setAttribs(li, detail['list-item-attributes']);
1547
+ });
1548
+ };
1549
+ var updateListWithDetails = function (dom, el, detail) {
1550
+ updateListStyle(dom, el, detail);
1551
+ updateListAttrs(dom, el, detail);
1552
+ };
1553
+ var removeStyles = function (dom, element, styles) {
1554
+ global$5.each(styles, function (style) {
1555
+ var _a;
1556
+ return dom.setStyle(element, (_a = {}, _a[style] = '', _a));
1557
+ });
1558
+ };
1559
+ var getEndPointNode = function (editor, rng, start, root) {
1560
+ var container = rng[start ? 'startContainer' : 'endContainer'];
1561
+ var offset = rng[start ? 'startOffset' : 'endOffset'];
1562
+ if (container.nodeType === 1) {
1563
+ container = container.childNodes[Math.min(offset, container.childNodes.length - 1)] || container;
1564
+ }
1565
+ if (!start && isBr(container.nextSibling)) {
1566
+ container = container.nextSibling;
1567
+ }
1568
+ while (container.parentNode !== root) {
1569
+ if (isTextBlock(editor, container)) {
1570
+ return container;
1571
+ }
1572
+ if (/^(TD|TH)$/.test(container.parentNode.nodeName)) {
1573
+ return container;
1574
+ }
1575
+ container = container.parentNode;
1576
+ }
1577
+ return container;
1578
+ };
1579
+ var getSelectedTextBlocks = function (editor, rng, root) {
1580
+ var textBlocks = [], dom = editor.dom;
1581
+ var startNode = getEndPointNode(editor, rng, true, root);
1582
+ var endNode = getEndPointNode(editor, rng, false, root);
1583
+ var block;
1584
+ var siblings = [];
1585
+ for (var node = startNode; node; node = node.nextSibling) {
1586
+ siblings.push(node);
1587
+ if (node === endNode) {
1588
+ break;
1589
+ }
1590
+ }
1591
+ global$5.each(siblings, function (node) {
1592
+ if (isTextBlock(editor, node)) {
1593
+ textBlocks.push(node);
1594
+ block = null;
1595
+ return;
1596
+ }
1597
+ if (dom.isBlock(node) || isBr(node)) {
1598
+ if (isBr(node)) {
1599
+ dom.remove(node);
1600
+ }
1601
+ block = null;
1602
+ return;
1603
+ }
1604
+ var nextSibling = node.nextSibling;
1605
+ if (global$7.isBookmarkNode(node)) {
1606
+ if (isTextBlock(editor, nextSibling) || !nextSibling && node.parentNode === root) {
1607
+ block = null;
1608
+ return;
1609
+ }
1610
+ }
1611
+ if (!block) {
1612
+ block = dom.create('p');
1613
+ node.parentNode.insertBefore(block, node);
1614
+ textBlocks.push(block);
1615
+ }
1616
+ block.appendChild(node);
1617
+ });
1618
+ return textBlocks;
1619
+ };
1620
+ var hasCompatibleStyle = function (dom, sib, detail) {
1621
+ var sibStyle = dom.getStyle(sib, 'list-style-type');
1622
+ var detailStyle = detail ? detail['list-style-type'] : '';
1623
+ detailStyle = detailStyle === null ? '' : detailStyle;
1624
+ return sibStyle === detailStyle;
1625
+ };
1626
+ var applyList = function (editor, listName, detail) {
1627
+ if (detail === void 0) {
1628
+ detail = {};
1629
+ }
1630
+ var rng = editor.selection.getRng();
1631
+ var listItemName = 'LI';
1632
+ var root = getClosestListRootElm(editor, editor.selection.getStart(true));
1633
+ var dom = editor.dom;
1634
+ if (dom.getContentEditable(editor.selection.getNode()) === 'false') {
1635
+ return;
1636
+ }
1637
+ listName = listName.toUpperCase();
1638
+ if (listName === 'DL') {
1639
+ listItemName = 'DT';
1640
+ }
1641
+ var bookmark = createBookmark(rng);
1642
+ global$5.each(getSelectedTextBlocks(editor, rng, root), function (block) {
1643
+ var listBlock;
1644
+ var sibling = block.previousSibling;
1645
+ if (sibling && isListNode(sibling) && sibling.nodeName === listName && hasCompatibleStyle(dom, sibling, detail)) {
1646
+ listBlock = sibling;
1647
+ block = dom.rename(block, listItemName);
1648
+ sibling.appendChild(block);
1649
+ } else {
1650
+ listBlock = dom.create(listName);
1651
+ block.parentNode.insertBefore(listBlock, block);
1652
+ listBlock.appendChild(block);
1653
+ block = dom.rename(block, listItemName);
1654
+ }
1655
+ removeStyles(dom, block, [
1656
+ 'margin',
1657
+ 'margin-right',
1658
+ 'margin-bottom',
1659
+ 'margin-left',
1660
+ 'margin-top',
1661
+ 'padding',
1662
+ 'padding-right',
1663
+ 'padding-bottom',
1664
+ 'padding-left',
1665
+ 'padding-top'
1666
+ ]);
1667
+ updateListWithDetails(dom, listBlock, detail);
1668
+ mergeWithAdjacentLists(editor.dom, listBlock);
1669
+ });
1670
+ editor.selection.setRng(resolveBookmark(bookmark));
1671
+ };
1672
+ var isValidLists = function (list1, list2) {
1673
+ return list1 && list2 && isListNode(list1) && list1.nodeName === list2.nodeName;
1674
+ };
1675
+ var hasSameListStyle = function (dom, list1, list2) {
1676
+ var targetStyle = dom.getStyle(list1, 'list-style-type', true);
1677
+ var style = dom.getStyle(list2, 'list-style-type', true);
1678
+ return targetStyle === style;
1679
+ };
1680
+ var hasSameClasses = function (elm1, elm2) {
1681
+ return elm1.className === elm2.className;
1682
+ };
1683
+ var shouldMerge = function (dom, list1, list2) {
1684
+ return isValidLists(list1, list2) && hasSameListStyle(dom, list1, list2) && hasSameClasses(list1, list2);
1685
+ };
1686
+ var mergeWithAdjacentLists = function (dom, listBlock) {
1687
+ var sibling, node;
1688
+ sibling = listBlock.nextSibling;
1689
+ if (shouldMerge(dom, listBlock, sibling)) {
1690
+ while (node = sibling.firstChild) {
1691
+ listBlock.appendChild(node);
1692
+ }
1693
+ dom.remove(sibling);
1694
+ }
1695
+ sibling = listBlock.previousSibling;
1696
+ if (shouldMerge(dom, listBlock, sibling)) {
1697
+ while (node = sibling.lastChild) {
1698
+ listBlock.insertBefore(node, listBlock.firstChild);
1699
+ }
1700
+ dom.remove(sibling);
1701
+ }
1702
+ };
1703
+ var updateList = function (editor, list, listName, detail) {
1704
+ if (list.nodeName !== listName) {
1705
+ var newList = editor.dom.rename(list, listName);
1706
+ updateListWithDetails(editor.dom, newList, detail);
1707
+ fireListEvent(editor, listToggleActionFromListName(listName), newList);
1708
+ } else {
1709
+ updateListWithDetails(editor.dom, list, detail);
1710
+ fireListEvent(editor, listToggleActionFromListName(listName), list);
1711
+ }
1712
+ };
1713
+ var toggleMultipleLists = function (editor, parentList, lists, listName, detail) {
1714
+ if (parentList.nodeName === listName && !hasListStyleDetail(detail)) {
1715
+ flattenListSelection(editor);
1716
+ } else {
1717
+ var bookmark = createBookmark(editor.selection.getRng(true));
1718
+ global$5.each([parentList].concat(lists), function (elm) {
1719
+ updateList(editor, elm, listName, detail);
1720
+ });
1721
+ editor.selection.setRng(resolveBookmark(bookmark));
1722
+ }
1723
+ };
1724
+ var hasListStyleDetail = function (detail) {
1725
+ return 'list-style-type' in detail;
1726
+ };
1727
+ var toggleSingleList = function (editor, parentList, listName, detail) {
1728
+ if (parentList === editor.getBody()) {
1729
+ return;
1730
+ }
1731
+ if (parentList) {
1732
+ if (parentList.nodeName === listName && !hasListStyleDetail(detail) && !isCustomList(parentList)) {
1733
+ flattenListSelection(editor);
1734
+ } else {
1735
+ var bookmark = createBookmark(editor.selection.getRng(true));
1736
+ updateListWithDetails(editor.dom, parentList, detail);
1737
+ var newList = editor.dom.rename(parentList, listName);
1738
+ mergeWithAdjacentLists(editor.dom, newList);
1739
+ editor.selection.setRng(resolveBookmark(bookmark));
1740
+ fireListEvent(editor, listToggleActionFromListName(listName), newList);
1741
+ }
1742
+ } else {
1743
+ applyList(editor, listName, detail);
1744
+ fireListEvent(editor, listToggleActionFromListName(listName), parentList);
1745
+ }
1746
+ };
1747
+ var toggleList = function (editor, listName, detail) {
1748
+ var parentList = getParentList(editor);
1749
+ var selectedSubLists = getSelectedSubLists(editor);
1750
+ detail = detail ? detail : {};
1751
+ if (parentList && selectedSubLists.length > 0) {
1752
+ toggleMultipleLists(editor, parentList, selectedSubLists, listName, detail);
1753
+ } else {
1754
+ toggleSingleList(editor, parentList, listName, detail);
1755
+ }
1756
+ };
1757
+
1758
+ var DOM$2 = global$6.DOM;
1759
+ var normalizeList = function (dom, ul) {
1760
+ var sibling;
1761
+ var parentNode = ul.parentNode;
1762
+ if (parentNode.nodeName === 'LI' && parentNode.firstChild === ul) {
1763
+ sibling = parentNode.previousSibling;
1764
+ if (sibling && sibling.nodeName === 'LI') {
1765
+ sibling.appendChild(ul);
1766
+ if (isEmpty(dom, parentNode)) {
1767
+ DOM$2.remove(parentNode);
1768
+ }
1769
+ } else {
1770
+ DOM$2.setStyle(parentNode, 'listStyleType', 'none');
1771
+ }
1772
+ }
1773
+ if (isListNode(parentNode)) {
1774
+ sibling = parentNode.previousSibling;
1775
+ if (sibling && sibling.nodeName === 'LI') {
1776
+ sibling.appendChild(ul);
1777
+ }
1778
+ }
1779
+ };
1780
+ var normalizeLists = function (dom, element) {
1781
+ global$5.each(global$5.grep(dom.select('ol,ul', element)), function (ul) {
1782
+ normalizeList(dom, ul);
1783
+ });
1784
+ };
1785
+
1786
+ var findNextCaretContainer = function (editor, rng, isForward, root) {
1787
+ var node = rng.startContainer;
1788
+ var offset = rng.startOffset;
1789
+ if (isTextNode(node) && (isForward ? offset < node.data.length : offset > 0)) {
1790
+ return node;
1791
+ }
1792
+ var nonEmptyBlocks = editor.schema.getNonEmptyElements();
1793
+ if (node.nodeType === 1) {
1794
+ node = global$1.getNode(node, offset);
1795
+ }
1796
+ var walker = new global$2(node, root);
1797
+ if (isForward) {
1798
+ if (isBogusBr(editor.dom, node)) {
1799
+ walker.next();
1800
+ }
1801
+ }
1802
+ while (node = walker[isForward ? 'next' : 'prev2']()) {
1803
+ if (node.nodeName === 'LI' && !node.hasChildNodes()) {
1804
+ return node;
1805
+ }
1806
+ if (nonEmptyBlocks[node.nodeName]) {
1807
+ return node;
1808
+ }
1809
+ if (isTextNode(node) && node.data.length > 0) {
1810
+ return node;
1811
+ }
1812
+ }
1813
+ };
1814
+ var hasOnlyOneBlockChild = function (dom, elm) {
1815
+ var childNodes = elm.childNodes;
1816
+ return childNodes.length === 1 && !isListNode(childNodes[0]) && dom.isBlock(childNodes[0]);
1817
+ };
1818
+ var unwrapSingleBlockChild = function (dom, elm) {
1819
+ if (hasOnlyOneBlockChild(dom, elm)) {
1820
+ dom.remove(elm.firstChild, true);
1821
+ }
1822
+ };
1823
+ var moveChildren = function (dom, fromElm, toElm) {
1824
+ var node;
1825
+ var targetElm = hasOnlyOneBlockChild(dom, toElm) ? toElm.firstChild : toElm;
1826
+ unwrapSingleBlockChild(dom, fromElm);
1827
+ if (!isEmpty(dom, fromElm, true)) {
1828
+ while (node = fromElm.firstChild) {
1829
+ targetElm.appendChild(node);
1830
+ }
1831
+ }
1832
+ };
1833
+ var mergeLiElements = function (dom, fromElm, toElm) {
1834
+ var listNode;
1835
+ var ul = fromElm.parentNode;
1836
+ if (!isChildOfBody(dom, fromElm) || !isChildOfBody(dom, toElm)) {
1837
+ return;
1838
+ }
1839
+ if (isListNode(toElm.lastChild)) {
1840
+ listNode = toElm.lastChild;
1841
+ }
1842
+ if (ul === toElm.lastChild) {
1843
+ if (isBr(ul.previousSibling)) {
1844
+ dom.remove(ul.previousSibling);
1845
+ }
1846
+ }
1847
+ var node = toElm.lastChild;
1848
+ if (node && isBr(node) && fromElm.hasChildNodes()) {
1849
+ dom.remove(node);
1850
+ }
1851
+ if (isEmpty(dom, toElm, true)) {
1852
+ dom.$(toElm).empty();
1853
+ }
1854
+ moveChildren(dom, fromElm, toElm);
1855
+ if (listNode) {
1856
+ toElm.appendChild(listNode);
1857
+ }
1858
+ var contains = contains$1(Element.fromDom(toElm), Element.fromDom(fromElm));
1859
+ var nestedLists = contains ? dom.getParents(fromElm, isListNode, toElm) : [];
1860
+ dom.remove(fromElm);
1861
+ each(nestedLists, function (list) {
1862
+ if (isEmpty(dom, list) && list !== dom.getRoot()) {
1863
+ dom.remove(list);
1864
+ }
1865
+ });
1866
+ };
1867
+ var mergeIntoEmptyLi = function (editor, fromLi, toLi) {
1868
+ editor.dom.$(toLi).empty();
1869
+ mergeLiElements(editor.dom, fromLi, toLi);
1870
+ editor.selection.setCursorLocation(toLi);
1871
+ };
1872
+ var mergeForward = function (editor, rng, fromLi, toLi) {
1873
+ var dom = editor.dom;
1874
+ if (dom.isEmpty(toLi)) {
1875
+ mergeIntoEmptyLi(editor, fromLi, toLi);
1876
+ } else {
1877
+ var bookmark = createBookmark(rng);
1878
+ mergeLiElements(dom, fromLi, toLi);
1879
+ editor.selection.setRng(resolveBookmark(bookmark));
1880
+ }
1881
+ };
1882
+ var mergeBackward = function (editor, rng, fromLi, toLi) {
1883
+ var bookmark = createBookmark(rng);
1884
+ mergeLiElements(editor.dom, fromLi, toLi);
1885
+ var resolvedBookmark = resolveBookmark(bookmark);
1886
+ editor.selection.setRng(resolvedBookmark);
1887
+ };
1888
+ var backspaceDeleteFromListToListCaret = function (editor, isForward) {
1889
+ var dom = editor.dom, selection = editor.selection;
1890
+ var selectionStartElm = selection.getStart();
1891
+ var root = getClosestListRootElm(editor, selectionStartElm);
1892
+ var li = dom.getParent(selection.getStart(), 'LI', root);
1893
+ if (li) {
1894
+ var ul = li.parentNode;
1895
+ if (ul === editor.getBody() && isEmpty(dom, ul)) {
1896
+ return true;
1897
+ }
1898
+ var rng_1 = normalizeRange(selection.getRng());
1899
+ var otherLi_1 = dom.getParent(findNextCaretContainer(editor, rng_1, isForward, root), 'LI', root);
1900
+ if (otherLi_1 && otherLi_1 !== li) {
1901
+ editor.undoManager.transact(function () {
1902
+ if (isForward) {
1903
+ mergeForward(editor, rng_1, otherLi_1, li);
1904
+ } else {
1905
+ if (isFirstChild(li)) {
1906
+ outdentListSelection(editor);
1907
+ } else {
1908
+ mergeBackward(editor, rng_1, li, otherLi_1);
1909
+ }
1910
+ }
1911
+ });
1912
+ return true;
1913
+ } else if (!otherLi_1) {
1914
+ if (!isForward && rng_1.startOffset === 0 && rng_1.endOffset === 0) {
1915
+ editor.undoManager.transact(function () {
1916
+ flattenListSelection(editor);
1917
+ });
1918
+ return true;
1919
+ }
1920
+ }
1921
+ }
1922
+ return false;
1923
+ };
1924
+ var removeBlock = function (dom, block, root) {
1925
+ var parentBlock = dom.getParent(block.parentNode, dom.isBlock, root);
1926
+ dom.remove(block);
1927
+ if (parentBlock && dom.isEmpty(parentBlock)) {
1928
+ dom.remove(parentBlock);
1929
+ }
1930
+ };
1931
+ var backspaceDeleteIntoListCaret = function (editor, isForward) {
1932
+ var dom = editor.dom;
1933
+ var selectionStartElm = editor.selection.getStart();
1934
+ var root = getClosestListRootElm(editor, selectionStartElm);
1935
+ var block = dom.getParent(selectionStartElm, dom.isBlock, root);
1936
+ if (block && dom.isEmpty(block)) {
1937
+ var rng = normalizeRange(editor.selection.getRng());
1938
+ var otherLi_2 = dom.getParent(findNextCaretContainer(editor, rng, isForward, root), 'LI', root);
1939
+ if (otherLi_2) {
1940
+ editor.undoManager.transact(function () {
1941
+ removeBlock(dom, block, root);
1942
+ mergeWithAdjacentLists(dom, otherLi_2.parentNode);
1943
+ editor.selection.select(otherLi_2, true);
1944
+ editor.selection.collapse(isForward);
1945
+ });
1946
+ return true;
1947
+ }
1948
+ }
1949
+ return false;
1950
+ };
1951
+ var backspaceDeleteCaret = function (editor, isForward) {
1952
+ return backspaceDeleteFromListToListCaret(editor, isForward) || backspaceDeleteIntoListCaret(editor, isForward);
1953
+ };
1954
+ var backspaceDeleteRange = function (editor) {
1955
+ var selectionStartElm = editor.selection.getStart();
1956
+ var root = getClosestListRootElm(editor, selectionStartElm);
1957
+ var startListParent = editor.dom.getParent(selectionStartElm, 'LI,DT,DD', root);
1958
+ if (startListParent || getSelectedListItems(editor).length > 0) {
1959
+ editor.undoManager.transact(function () {
1960
+ editor.execCommand('Delete');
1961
+ normalizeLists(editor.dom, editor.getBody());
1962
+ });
1963
+ return true;
1964
+ }
1965
+ return false;
1966
+ };
1967
+ var backspaceDelete = function (editor, isForward) {
1968
+ return editor.selection.isCollapsed() ? backspaceDeleteCaret(editor, isForward) : backspaceDeleteRange(editor);
1969
+ };
1970
+ var setup = function (editor) {
1971
+ editor.on('keydown', function (e) {
1972
+ if (e.keyCode === global$3.BACKSPACE) {
1973
+ if (backspaceDelete(editor, false)) {
1974
+ e.preventDefault();
1975
+ }
1976
+ } else if (e.keyCode === global$3.DELETE) {
1977
+ if (backspaceDelete(editor, true)) {
1978
+ e.preventDefault();
1979
+ }
1980
+ }
1981
+ });
1982
+ };
1983
+
1984
+ var get = function (editor) {
1985
+ return {
1986
+ backspaceDelete: function (isForward) {
1987
+ backspaceDelete(editor, isForward);
1988
+ }
1989
+ };
1990
+ };
1991
+
1992
+ var open = function (editor) {
1993
+ var dom = editor.dom;
1994
+ var currentList = getParentList(editor);
1995
+ if (!isOlNode(currentList)) {
1996
+ return;
1997
+ }
1998
+ editor.windowManager.open({
1999
+ title: 'List Properties',
2000
+ body: {
2001
+ type: 'panel',
2002
+ items: [{
2003
+ type: 'input',
2004
+ name: 'start',
2005
+ label: 'Start list at number',
2006
+ inputMode: 'numeric'
2007
+ }]
2008
+ },
2009
+ initialData: { start: dom.getAttrib(currentList, 'start') || '1' },
2010
+ buttons: [
2011
+ {
2012
+ type: 'cancel',
2013
+ name: 'cancel',
2014
+ text: 'Cancel'
2015
+ },
2016
+ {
2017
+ type: 'submit',
2018
+ name: 'save',
2019
+ text: 'Save',
2020
+ primary: true
2021
+ }
2022
+ ],
2023
+ onSubmit: function (api) {
2024
+ var data = api.getData();
2025
+ editor.undoManager.transact(function () {
2026
+ dom.setAttrib(getParentList(editor), 'start', data.start === '1' ? '' : data.start);
2027
+ });
2028
+ api.close();
2029
+ }
2030
+ });
2031
+ };
2032
+
2033
+ var queryListCommandState = function (editor, listName) {
2034
+ return function () {
2035
+ var parentList = editor.dom.getParent(editor.selection.getStart(), 'UL,OL,DL');
2036
+ return parentList && parentList.nodeName === listName;
2037
+ };
2038
+ };
2039
+ var register = function (editor) {
2040
+ editor.on('BeforeExecCommand', function (e) {
2041
+ var cmd = e.command.toLowerCase();
2042
+ if (cmd === 'indent') {
2043
+ indentListSelection(editor);
2044
+ } else if (cmd === 'outdent') {
2045
+ outdentListSelection(editor);
2046
+ }
2047
+ });
2048
+ editor.addCommand('InsertUnorderedList', function (ui, detail) {
2049
+ toggleList(editor, 'UL', detail);
2050
+ });
2051
+ editor.addCommand('InsertOrderedList', function (ui, detail) {
2052
+ toggleList(editor, 'OL', detail);
2053
+ });
2054
+ editor.addCommand('InsertDefinitionList', function (ui, detail) {
2055
+ toggleList(editor, 'DL', detail);
2056
+ });
2057
+ editor.addCommand('RemoveList', function () {
2058
+ flattenListSelection(editor);
2059
+ });
2060
+ editor.addCommand('mceListProps', function () {
2061
+ open(editor);
2062
+ });
2063
+ editor.addQueryStateHandler('InsertUnorderedList', queryListCommandState(editor, 'UL'));
2064
+ editor.addQueryStateHandler('InsertOrderedList', queryListCommandState(editor, 'OL'));
2065
+ editor.addQueryStateHandler('InsertDefinitionList', queryListCommandState(editor, 'DL'));
2066
+ };
2067
+
2068
+ var hasRtcPlugin = function (editor) {
2069
+ if (/(^|[ ,])rtc([, ]|$)/.test(editor.getParam('plugins', '', 'string')) && global.get('rtc')) {
2070
+ return true;
2071
+ } else {
2072
+ return false;
2073
+ }
2074
+ };
2075
+
2076
+ var setupTabKey = function (editor) {
2077
+ editor.on('keydown', function (e) {
2078
+ if (e.keyCode !== global$3.TAB || global$3.metaKeyPressed(e)) {
2079
+ return;
2080
+ }
2081
+ editor.undoManager.transact(function () {
2082
+ if (e.shiftKey ? outdentListSelection(editor) : indentListSelection(editor)) {
2083
+ e.preventDefault();
2084
+ }
2085
+ });
2086
+ });
2087
+ };
2088
+ var setup$1 = function (editor) {
2089
+ if (shouldIndentOnTab(editor)) {
2090
+ setupTabKey(editor);
2091
+ }
2092
+ setup(editor);
2093
+ };
2094
+
2095
+ var register$1 = function (editor) {
2096
+ var hasPlugin = function (editor, plugin) {
2097
+ var plugins = editor.getParam('plugins', '', 'string');
2098
+ return global$5.inArray(plugins.split(/[ ,]/), plugin) !== -1;
2099
+ };
2100
+ var exec = function (command) {
2101
+ return function () {
2102
+ return editor.execCommand(command);
2103
+ };
2104
+ };
2105
+ if (!hasPlugin(editor, 'advlist')) {
2106
+ editor.ui.registry.addToggleButton('numlist', {
2107
+ icon: 'ordered-list',
2108
+ active: false,
2109
+ tooltip: 'Numbered list',
2110
+ onAction: exec('InsertOrderedList'),
2111
+ onSetup: function (api) {
2112
+ return listState(editor, 'OL', api.setActive);
2113
+ }
2114
+ });
2115
+ editor.ui.registry.addToggleButton('bullist', {
2116
+ icon: 'unordered-list',
2117
+ active: false,
2118
+ tooltip: 'Bullet list',
2119
+ onAction: exec('InsertUnorderedList'),
2120
+ onSetup: function (api) {
2121
+ return listState(editor, 'UL', api.setActive);
2122
+ }
2123
+ });
2124
+ }
2125
+ };
2126
+
2127
+ var register$2 = function (editor) {
2128
+ var listProperties = {
2129
+ text: 'List properties...',
2130
+ icon: 'ordered-list',
2131
+ onAction: function () {
2132
+ return open(editor);
2133
+ },
2134
+ onSetup: function (api) {
2135
+ return listState(editor, 'OL', function (active) {
2136
+ return api.setDisabled(!active);
2137
+ });
2138
+ }
2139
+ };
2140
+ editor.ui.registry.addMenuItem('listprops', listProperties);
2141
+ editor.ui.registry.addContextMenu('lists', {
2142
+ update: function (node) {
2143
+ var parentList = getParentList(editor, node);
2144
+ return isOlNode(parentList) ? ['listprops'] : [];
2145
+ }
2146
+ });
2147
+ };
2148
+
2149
+ function Plugin () {
2150
+ global.add('lists', function (editor) {
2151
+ if (hasRtcPlugin(editor) === false) {
2152
+ setup$1(editor);
2153
+ register(editor);
2154
+ }
2155
+ register$1(editor);
2156
+ register$2(editor);
2157
+ return get(editor);
2158
+ });
2159
+ }
2160
+
2161
+ Plugin();
2162
+
2163
+ }(window));