eztech-core-components 1.0.0

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 (649) hide show
  1. package/assets/css/index.css +405 -0
  2. package/ckeditor/CHANGES.md +2339 -0
  3. package/ckeditor/LICENSE.md +1444 -0
  4. package/ckeditor/MongolianScript.ttf +0 -0
  5. package/ckeditor/README.md +39 -0
  6. package/ckeditor/SECURITY.md +10 -0
  7. package/ckeditor/adapters/jquery.js +10 -0
  8. package/ckeditor/bender-runner.config.json +16 -0
  9. package/ckeditor/build-config.js +193 -0
  10. package/ckeditor/ckcontent.css +71 -0
  11. package/ckeditor/ckeditor.js +1446 -0
  12. package/ckeditor/cmdashitseden.ttf +0 -0
  13. package/ckeditor/config.js +21 -0
  14. package/ckeditor/contents.css +220 -0
  15. package/ckeditor/lang/af.js +5 -0
  16. package/ckeditor/lang/ar.js +5 -0
  17. package/ckeditor/lang/az.js +5 -0
  18. package/ckeditor/lang/bg.js +5 -0
  19. package/ckeditor/lang/bn.js +5 -0
  20. package/ckeditor/lang/bs.js +5 -0
  21. package/ckeditor/lang/ca.js +5 -0
  22. package/ckeditor/lang/cs.js +5 -0
  23. package/ckeditor/lang/cy.js +5 -0
  24. package/ckeditor/lang/da.js +5 -0
  25. package/ckeditor/lang/de-ch.js +5 -0
  26. package/ckeditor/lang/de.js +5 -0
  27. package/ckeditor/lang/el.js +5 -0
  28. package/ckeditor/lang/en-au.js +5 -0
  29. package/ckeditor/lang/en-ca.js +5 -0
  30. package/ckeditor/lang/en-gb.js +5 -0
  31. package/ckeditor/lang/en.js +5 -0
  32. package/ckeditor/lang/eo.js +5 -0
  33. package/ckeditor/lang/es-mx.js +5 -0
  34. package/ckeditor/lang/es.js +5 -0
  35. package/ckeditor/lang/et.js +5 -0
  36. package/ckeditor/lang/eu.js +5 -0
  37. package/ckeditor/lang/fa.js +5 -0
  38. package/ckeditor/lang/fi.js +5 -0
  39. package/ckeditor/lang/fo.js +5 -0
  40. package/ckeditor/lang/fr-ca.js +5 -0
  41. package/ckeditor/lang/fr.js +5 -0
  42. package/ckeditor/lang/gl.js +5 -0
  43. package/ckeditor/lang/gu.js +5 -0
  44. package/ckeditor/lang/he.js +5 -0
  45. package/ckeditor/lang/hi.js +5 -0
  46. package/ckeditor/lang/hr.js +5 -0
  47. package/ckeditor/lang/hu.js +5 -0
  48. package/ckeditor/lang/id.js +5 -0
  49. package/ckeditor/lang/is.js +5 -0
  50. package/ckeditor/lang/it.js +5 -0
  51. package/ckeditor/lang/ja.js +5 -0
  52. package/ckeditor/lang/ka.js +5 -0
  53. package/ckeditor/lang/km.js +5 -0
  54. package/ckeditor/lang/ko.js +5 -0
  55. package/ckeditor/lang/ku.js +5 -0
  56. package/ckeditor/lang/lt.js +5 -0
  57. package/ckeditor/lang/lv.js +5 -0
  58. package/ckeditor/lang/mk.js +5 -0
  59. package/ckeditor/lang/mn.js +5 -0
  60. package/ckeditor/lang/ms.js +5 -0
  61. package/ckeditor/lang/nb.js +5 -0
  62. package/ckeditor/lang/nl.js +5 -0
  63. package/ckeditor/lang/no.js +5 -0
  64. package/ckeditor/lang/oc.js +5 -0
  65. package/ckeditor/lang/pl.js +5 -0
  66. package/ckeditor/lang/pt-br.js +5 -0
  67. package/ckeditor/lang/pt.js +5 -0
  68. package/ckeditor/lang/ro.js +5 -0
  69. package/ckeditor/lang/ru.js +5 -0
  70. package/ckeditor/lang/si.js +5 -0
  71. package/ckeditor/lang/sk.js +5 -0
  72. package/ckeditor/lang/sl.js +5 -0
  73. package/ckeditor/lang/sq.js +5 -0
  74. package/ckeditor/lang/sr-latn.js +5 -0
  75. package/ckeditor/lang/sr.js +5 -0
  76. package/ckeditor/lang/sv.js +5 -0
  77. package/ckeditor/lang/th.js +5 -0
  78. package/ckeditor/lang/tr.js +5 -0
  79. package/ckeditor/lang/tt.js +5 -0
  80. package/ckeditor/lang/ug.js +5 -0
  81. package/ckeditor/lang/uk.js +5 -0
  82. package/ckeditor/lang/vi.js +5 -0
  83. package/ckeditor/lang/zh-cn.js +5 -0
  84. package/ckeditor/lang/zh.js +5 -0
  85. package/ckeditor/monbaiti.ttf +0 -0
  86. package/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
  87. package/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
  88. package/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
  89. package/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +12 -0
  90. package/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
  91. package/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +12 -0
  92. package/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
  93. package/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
  94. package/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
  95. package/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
  96. package/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +13 -0
  97. package/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +13 -0
  98. package/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
  99. package/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +12 -0
  100. package/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +12 -0
  101. package/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +12 -0
  102. package/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
  103. package/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
  104. package/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +13 -0
  105. package/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
  106. package/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
  107. package/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
  108. package/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
  109. package/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +12 -0
  110. package/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
  111. package/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
  112. package/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
  113. package/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +12 -0
  114. package/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
  115. package/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +12 -0
  116. package/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
  117. package/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
  118. package/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
  119. package/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
  120. package/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
  121. package/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +12 -0
  122. package/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
  123. package/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
  124. package/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +12 -0
  125. package/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
  126. package/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +12 -0
  127. package/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +12 -0
  128. package/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
  129. package/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
  130. package/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +12 -0
  131. package/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
  132. package/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
  133. package/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
  134. package/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
  135. package/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
  136. package/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
  137. package/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
  138. package/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
  139. package/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
  140. package/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
  141. package/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +13 -0
  142. package/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +13 -0
  143. package/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
  144. package/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +12 -0
  145. package/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
  146. package/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +12 -0
  147. package/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
  148. package/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
  149. package/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
  150. package/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
  151. package/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
  152. package/ckeditor/plugins/about/dialogs/about.js +8 -0
  153. package/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
  154. package/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
  155. package/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
  156. package/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
  157. package/ckeditor/plugins/colordialog/dialogs/colordialog.js +14 -0
  158. package/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
  159. package/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
  160. package/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
  161. package/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
  162. package/ckeditor/plugins/dialog/styles/dialog.css +18 -0
  163. package/ckeditor/plugins/div/dialogs/div.js +10 -0
  164. package/ckeditor/plugins/find/dialogs/find.js +26 -0
  165. package/ckeditor/plugins/forms/dialogs/button.js +8 -0
  166. package/ckeditor/plugins/forms/dialogs/checkbox.js +9 -0
  167. package/ckeditor/plugins/forms/dialogs/form.js +8 -0
  168. package/ckeditor/plugins/forms/dialogs/hiddenfield.js +7 -0
  169. package/ckeditor/plugins/forms/dialogs/radio.js +9 -0
  170. package/ckeditor/plugins/forms/dialogs/select.js +21 -0
  171. package/ckeditor/plugins/forms/dialogs/textarea.js +9 -0
  172. package/ckeditor/plugins/forms/dialogs/textfield.js +11 -0
  173. package/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
  174. package/ckeditor/plugins/icons.png +0 -0
  175. package/ckeditor/plugins/icons_hidpi.png +0 -0
  176. package/ckeditor/plugins/iframe/dialogs/iframe.js +11 -0
  177. package/ckeditor/plugins/iframe/images/placeholder.png +0 -0
  178. package/ckeditor/plugins/image/dialogs/image.js +44 -0
  179. package/ckeditor/plugins/image/images/noimage.png +0 -0
  180. package/ckeditor/plugins/indent/dev/indent.html +285 -0
  181. package/ckeditor/plugins/indent/icons/hidpi/indent-rtl.png +0 -0
  182. package/ckeditor/plugins/indent/icons/hidpi/indent.png +0 -0
  183. package/ckeditor/plugins/indent/icons/hidpi/outdent-rtl.png +0 -0
  184. package/ckeditor/plugins/indent/icons/hidpi/outdent.png +0 -0
  185. package/ckeditor/plugins/indent/icons/indent-rtl.png +0 -0
  186. package/ckeditor/plugins/indent/icons/indent.png +0 -0
  187. package/ckeditor/plugins/indent/icons/outdent-rtl.png +0 -0
  188. package/ckeditor/plugins/indent/icons/outdent.png +0 -0
  189. package/ckeditor/plugins/indent/lang/af.js +8 -0
  190. package/ckeditor/plugins/indent/lang/ar.js +8 -0
  191. package/ckeditor/plugins/indent/lang/az.js +8 -0
  192. package/ckeditor/plugins/indent/lang/bg.js +8 -0
  193. package/ckeditor/plugins/indent/lang/bn.js +8 -0
  194. package/ckeditor/plugins/indent/lang/bs.js +8 -0
  195. package/ckeditor/plugins/indent/lang/ca.js +8 -0
  196. package/ckeditor/plugins/indent/lang/cs.js +8 -0
  197. package/ckeditor/plugins/indent/lang/cy.js +8 -0
  198. package/ckeditor/plugins/indent/lang/da.js +8 -0
  199. package/ckeditor/plugins/indent/lang/de-ch.js +8 -0
  200. package/ckeditor/plugins/indent/lang/de.js +8 -0
  201. package/ckeditor/plugins/indent/lang/el.js +8 -0
  202. package/ckeditor/plugins/indent/lang/en-au.js +8 -0
  203. package/ckeditor/plugins/indent/lang/en-ca.js +8 -0
  204. package/ckeditor/plugins/indent/lang/en-gb.js +8 -0
  205. package/ckeditor/plugins/indent/lang/en.js +8 -0
  206. package/ckeditor/plugins/indent/lang/eo.js +8 -0
  207. package/ckeditor/plugins/indent/lang/es-mx.js +8 -0
  208. package/ckeditor/plugins/indent/lang/es.js +8 -0
  209. package/ckeditor/plugins/indent/lang/et.js +8 -0
  210. package/ckeditor/plugins/indent/lang/eu.js +8 -0
  211. package/ckeditor/plugins/indent/lang/fa.js +8 -0
  212. package/ckeditor/plugins/indent/lang/fi.js +8 -0
  213. package/ckeditor/plugins/indent/lang/fo.js +8 -0
  214. package/ckeditor/plugins/indent/lang/fr-ca.js +8 -0
  215. package/ckeditor/plugins/indent/lang/fr.js +8 -0
  216. package/ckeditor/plugins/indent/lang/gl.js +8 -0
  217. package/ckeditor/plugins/indent/lang/gu.js +8 -0
  218. package/ckeditor/plugins/indent/lang/he.js +8 -0
  219. package/ckeditor/plugins/indent/lang/hi.js +8 -0
  220. package/ckeditor/plugins/indent/lang/hr.js +8 -0
  221. package/ckeditor/plugins/indent/lang/hu.js +8 -0
  222. package/ckeditor/plugins/indent/lang/id.js +8 -0
  223. package/ckeditor/plugins/indent/lang/is.js +8 -0
  224. package/ckeditor/plugins/indent/lang/it.js +8 -0
  225. package/ckeditor/plugins/indent/lang/ja.js +8 -0
  226. package/ckeditor/plugins/indent/lang/ka.js +8 -0
  227. package/ckeditor/plugins/indent/lang/km.js +8 -0
  228. package/ckeditor/plugins/indent/lang/ko.js +8 -0
  229. package/ckeditor/plugins/indent/lang/ku.js +8 -0
  230. package/ckeditor/plugins/indent/lang/lt.js +8 -0
  231. package/ckeditor/plugins/indent/lang/lv.js +8 -0
  232. package/ckeditor/plugins/indent/lang/mk.js +8 -0
  233. package/ckeditor/plugins/indent/lang/mn.js +8 -0
  234. package/ckeditor/plugins/indent/lang/ms.js +8 -0
  235. package/ckeditor/plugins/indent/lang/nb.js +8 -0
  236. package/ckeditor/plugins/indent/lang/nl.js +8 -0
  237. package/ckeditor/plugins/indent/lang/no.js +8 -0
  238. package/ckeditor/plugins/indent/lang/oc.js +8 -0
  239. package/ckeditor/plugins/indent/lang/pl.js +8 -0
  240. package/ckeditor/plugins/indent/lang/pt-br.js +8 -0
  241. package/ckeditor/plugins/indent/lang/pt.js +8 -0
  242. package/ckeditor/plugins/indent/lang/ro.js +8 -0
  243. package/ckeditor/plugins/indent/lang/ru.js +8 -0
  244. package/ckeditor/plugins/indent/lang/si.js +8 -0
  245. package/ckeditor/plugins/indent/lang/sk.js +8 -0
  246. package/ckeditor/plugins/indent/lang/sl.js +8 -0
  247. package/ckeditor/plugins/indent/lang/sq.js +8 -0
  248. package/ckeditor/plugins/indent/lang/sr-latn.js +8 -0
  249. package/ckeditor/plugins/indent/lang/sr.js +8 -0
  250. package/ckeditor/plugins/indent/lang/sv.js +8 -0
  251. package/ckeditor/plugins/indent/lang/th.js +8 -0
  252. package/ckeditor/plugins/indent/lang/tr.js +8 -0
  253. package/ckeditor/plugins/indent/lang/tt.js +8 -0
  254. package/ckeditor/plugins/indent/lang/ug.js +8 -0
  255. package/ckeditor/plugins/indent/lang/uk.js +8 -0
  256. package/ckeditor/plugins/indent/lang/vi.js +8 -0
  257. package/ckeditor/plugins/indent/lang/zh-cn.js +8 -0
  258. package/ckeditor/plugins/indent/lang/zh.js +8 -0
  259. package/ckeditor/plugins/indent/plugin.js +461 -0
  260. package/ckeditor/plugins/justify/icons/hidpi/justifyblock.png +0 -0
  261. package/ckeditor/plugins/justify/icons/hidpi/justifycenter.png +0 -0
  262. package/ckeditor/plugins/justify/icons/hidpi/justifyleft.png +0 -0
  263. package/ckeditor/plugins/justify/icons/hidpi/justifyright.png +0 -0
  264. package/ckeditor/plugins/justify/icons/justifyblock.png +0 -0
  265. package/ckeditor/plugins/justify/icons/justifycenter.png +0 -0
  266. package/ckeditor/plugins/justify/icons/justifyleft.png +0 -0
  267. package/ckeditor/plugins/justify/icons/justifyright.png +0 -0
  268. package/ckeditor/plugins/justify/plugin.js +269 -0
  269. package/ckeditor/plugins/lineheight/LICENSE +22 -0
  270. package/ckeditor/plugins/lineheight/README.md +2 -0
  271. package/ckeditor/plugins/lineheight/lang/LANG.js +3 -0
  272. package/ckeditor/plugins/lineheight/lang/ar.js +3 -0
  273. package/ckeditor/plugins/lineheight/lang/de.js +3 -0
  274. package/ckeditor/plugins/lineheight/lang/en.js +3 -0
  275. package/ckeditor/plugins/lineheight/lang/es.js +3 -0
  276. package/ckeditor/plugins/lineheight/lang/fr.js +3 -0
  277. package/ckeditor/plugins/lineheight/lang/ko.js +3 -0
  278. package/ckeditor/plugins/lineheight/lang/pt.js +3 -0
  279. package/ckeditor/plugins/lineheight/plugin.js +81 -0
  280. package/ckeditor/plugins/lineheight/readme.txt +30 -0
  281. package/ckeditor/plugins/link/dialogs/anchor.js +9 -0
  282. package/ckeditor/plugins/link/dialogs/link.js +30 -0
  283. package/ckeditor/plugins/link/images/anchor.png +0 -0
  284. package/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
  285. package/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
  286. package/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
  287. package/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
  288. package/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
  289. package/ckeditor/plugins/magicline/images/icon.png +0 -0
  290. package/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
  291. package/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
  292. package/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
  293. package/ckeditor/plugins/pastefromword/filter/default.js +43 -0
  294. package/ckeditor/plugins/pastetools/filter/common.js +24 -0
  295. package/ckeditor/plugins/pastetools/filter/image.js +12 -0
  296. package/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
  297. package/ckeditor/plugins/preview/preview.html +13 -0
  298. package/ckeditor/plugins/preview/styles/screen.css +10 -0
  299. package/ckeditor/plugins/scayt/CHANGELOG.md +4 -0
  300. package/ckeditor/plugins/scayt/LICENSE.md +28 -0
  301. package/ckeditor/plugins/scayt/README.md +81 -0
  302. package/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
  303. package/ckeditor/plugins/scayt/dialogs/options.js +32 -0
  304. package/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
  305. package/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
  306. package/ckeditor/plugins/showblocks/images/block_address.png +0 -0
  307. package/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
  308. package/ckeditor/plugins/showblocks/images/block_div.png +0 -0
  309. package/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
  310. package/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
  311. package/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
  312. package/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
  313. package/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
  314. package/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
  315. package/ckeditor/plugins/showblocks/images/block_p.png +0 -0
  316. package/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
  317. package/ckeditor/plugins/simage/LICENSE +674 -0
  318. package/ckeditor/plugins/simage/README.md +73 -0
  319. package/ckeditor/plugins/simage/icons/simage.png +0 -0
  320. package/ckeditor/plugins/simage/plugin.js +154 -0
  321. package/ckeditor/plugins/smiley/dialogs/smiley.js +11 -0
  322. package/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
  323. package/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
  324. package/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
  325. package/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
  326. package/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
  327. package/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
  328. package/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
  329. package/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
  330. package/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
  331. package/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
  332. package/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
  333. package/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
  334. package/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
  335. package/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
  336. package/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
  337. package/ckeditor/plugins/smiley/images/envelope.gif +0 -0
  338. package/ckeditor/plugins/smiley/images/envelope.png +0 -0
  339. package/ckeditor/plugins/smiley/images/heart.gif +0 -0
  340. package/ckeditor/plugins/smiley/images/heart.png +0 -0
  341. package/ckeditor/plugins/smiley/images/kiss.gif +0 -0
  342. package/ckeditor/plugins/smiley/images/kiss.png +0 -0
  343. package/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
  344. package/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
  345. package/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
  346. package/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
  347. package/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
  348. package/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
  349. package/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
  350. package/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
  351. package/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
  352. package/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
  353. package/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
  354. package/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
  355. package/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
  356. package/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
  357. package/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
  358. package/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
  359. package/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
  360. package/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
  361. package/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
  362. package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
  363. package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
  364. package/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
  365. package/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
  366. package/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
  367. package/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
  368. package/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
  369. package/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
  370. package/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
  371. package/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
  372. package/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
  373. package/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
  374. package/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
  375. package/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
  376. package/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
  377. package/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
  378. package/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
  379. package/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
  380. package/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
  381. package/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
  382. package/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
  383. package/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
  384. package/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
  385. package/ckeditor/plugins/specialchar/dialogs/lang/et.js +11 -0
  386. package/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
  387. package/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
  388. package/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
  389. package/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
  390. package/ckeditor/plugins/specialchar/dialogs/lang/fr.js +12 -0
  391. package/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
  392. package/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
  393. package/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
  394. package/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
  395. package/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
  396. package/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
  397. package/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
  398. package/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
  399. package/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
  400. package/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
  401. package/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
  402. package/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
  403. package/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
  404. package/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
  405. package/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
  406. package/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
  407. package/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
  408. package/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
  409. package/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
  410. package/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
  411. package/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
  412. package/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
  413. package/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
  414. package/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
  415. package/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
  416. package/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
  417. package/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
  418. package/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
  419. package/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
  420. package/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
  421. package/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
  422. package/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
  423. package/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
  424. package/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
  425. package/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
  426. package/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
  427. package/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
  428. package/ckeditor/plugins/table/dialogs/table.js +22 -0
  429. package/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
  430. package/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
  431. package/ckeditor/plugins/templates/dialogs/templates.css +84 -0
  432. package/ckeditor/plugins/templates/dialogs/templates.js +11 -0
  433. package/ckeditor/plugins/templates/templatedefinition.js +4 -0
  434. package/ckeditor/plugins/templates/templates/default.js +7 -0
  435. package/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
  436. package/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
  437. package/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
  438. package/ckeditor/plugins/textindent/icons/hidpi/textindent.png +0 -0
  439. package/ckeditor/plugins/textindent/icons/textindent.png +0 -0
  440. package/ckeditor/plugins/textindent/lang/en.js +3 -0
  441. package/ckeditor/plugins/textindent/lang/pt-br.js +3 -0
  442. package/ckeditor/plugins/textindent/plugin.js +99 -0
  443. package/ckeditor/plugins/widget/images/handle.png +0 -0
  444. package/ckeditor/samples/css/samples.css +1637 -0
  445. package/ckeditor/samples/img/github-top.png +0 -0
  446. package/ckeditor/samples/img/header-bg.png +0 -0
  447. package/ckeditor/samples/img/header-separator.png +0 -0
  448. package/ckeditor/samples/img/logo.png +0 -0
  449. package/ckeditor/samples/img/logo.svg +13 -0
  450. package/ckeditor/samples/img/navigation-tip.png +0 -0
  451. package/ckeditor/samples/index.html +130 -0
  452. package/ckeditor/samples/js/sample.js +53 -0
  453. package/ckeditor/samples/js/sf.js +17 -0
  454. package/ckeditor/samples/old/ajax.html +85 -0
  455. package/ckeditor/samples/old/api.html +210 -0
  456. package/ckeditor/samples/old/appendto.html +59 -0
  457. package/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
  458. package/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +204 -0
  459. package/ckeditor/samples/old/assets/posteddata.php +60 -0
  460. package/ckeditor/samples/old/assets/sample.jpg +0 -0
  461. package/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
  462. package/ckeditor/samples/old/datafiltering.html +508 -0
  463. package/ckeditor/samples/old/dialog/assets/my_dialog.js +48 -0
  464. package/ckeditor/samples/old/dialog/dialog.html +190 -0
  465. package/ckeditor/samples/old/divreplace.html +144 -0
  466. package/ckeditor/samples/old/enterkey/enterkey.html +106 -0
  467. package/ckeditor/samples/old/htmlwriter/outputhtml.html +224 -0
  468. package/ckeditor/samples/old/index.html +129 -0
  469. package/ckeditor/samples/old/inlineall.html +314 -0
  470. package/ckeditor/samples/old/inlinebycode.html +124 -0
  471. package/ckeditor/samples/old/inlinetextarea.html +113 -0
  472. package/ckeditor/samples/old/jquery.html +103 -0
  473. package/ckeditor/samples/old/magicline/magicline.html +209 -0
  474. package/ckeditor/samples/old/readonly.html +76 -0
  475. package/ckeditor/samples/old/replacebyclass.html +60 -0
  476. package/ckeditor/samples/old/replacebycode.html +59 -0
  477. package/ckeditor/samples/old/sample.css +357 -0
  478. package/ckeditor/samples/old/sample.js +50 -0
  479. package/ckeditor/samples/old/sample_posteddata.php +16 -0
  480. package/ckeditor/samples/old/tabindex.html +78 -0
  481. package/ckeditor/samples/old/toolbar/toolbar.html +235 -0
  482. package/ckeditor/samples/old/uicolor.html +72 -0
  483. package/ckeditor/samples/old/uilanguages.html +122 -0
  484. package/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
  485. package/ckeditor/samples/old/xhtmlstyle.html +234 -0
  486. package/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
  487. package/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
  488. package/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
  489. package/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
  490. package/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
  491. package/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
  492. package/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
  493. package/ckeditor/samples/toolbarconfigurator/index.html +447 -0
  494. package/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
  495. package/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
  496. package/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
  497. package/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
  498. package/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
  499. package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
  500. package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
  501. package/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
  502. package/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
  503. package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
  504. package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
  505. package/ckeditor/skins/moono-lisa/dialog.css +5 -0
  506. package/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
  507. package/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
  508. package/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
  509. package/ckeditor/skins/moono-lisa/editor.css +5 -0
  510. package/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
  511. package/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
  512. package/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
  513. package/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
  514. package/ckeditor/skins/moono-lisa/icons.png +0 -0
  515. package/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
  516. package/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
  517. package/ckeditor/skins/moono-lisa/images/close.png +0 -0
  518. package/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
  519. package/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
  520. package/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
  521. package/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
  522. package/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
  523. package/ckeditor/skins/moono-lisa/images/lock.png +0 -0
  524. package/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
  525. package/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
  526. package/ckeditor/skins/moono-lisa/readme.md +46 -0
  527. package/ckeditor/styles.js +137 -0
  528. package/ckeditor/vendor/promise.js +13 -0
  529. package/comps/Animation/Checkbox.vue +37 -0
  530. package/comps/Animation/Radio.vue +30 -0
  531. package/comps/BooleanLabel.vue +40 -0
  532. package/comps/CardButton.vue +18 -0
  533. package/comps/CardImage.vue +40 -0
  534. package/comps/CardItem.vue +63 -0
  535. package/comps/CardList.vue +57 -0
  536. package/comps/CardNumber.vue +27 -0
  537. package/comps/Config/SelectColumns.vue +137 -0
  538. package/comps/CoreAgeMonth.vue +44 -0
  539. package/comps/CoreAppPassword.vue +31 -0
  540. package/comps/CoreAutocomplete.vue +93 -0
  541. package/comps/CoreCascader.vue +129 -0
  542. package/comps/CoreCascaderChildOrg.vue +165 -0
  543. package/comps/CoreCascaderChildPosition.vue +186 -0
  544. package/comps/CoreCkeditor.vue +324 -0
  545. package/comps/CoreColorPicker.vue +35 -0
  546. package/comps/CoreContextMenu.vue +81 -0
  547. package/comps/CoreDate.vue +56 -0
  548. package/comps/CoreDateRange.vue +34 -0
  549. package/comps/CoreDatetime.vue +34 -0
  550. package/comps/CoreDeepLink.vue +53 -0
  551. package/comps/CoreDurationJustified.vue +23 -0
  552. package/comps/CoreFiles.vue +497 -0
  553. package/comps/CoreFooter.vue +100 -0
  554. package/comps/CoreForm.vue +499 -0
  555. package/comps/CoreFormDialog.vue +140 -0
  556. package/comps/CoreFormFields.vue +306 -0
  557. package/comps/CoreFormItem.vue +114 -0
  558. package/comps/CoreFormItemCopy.vue +155 -0
  559. package/comps/CoreFormSub.vue +118 -0
  560. package/comps/CoreFormTable.vue +197 -0
  561. package/comps/CoreFormTableInline.vue +300 -0
  562. package/comps/CoreFormTableList.vue +268 -0
  563. package/comps/CoreIcon.vue +5 -0
  564. package/comps/CoreImage.vue +37 -0
  565. package/comps/CoreInlineNumber.vue +54 -0
  566. package/comps/CoreInputNumber.vue +49 -0
  567. package/comps/CoreInputSearch.vue +44 -0
  568. package/comps/CoreJson.vue +10 -0
  569. package/comps/CoreLoader.vue +153 -0
  570. package/comps/CoreLocked.vue +151 -0
  571. package/comps/CoreMergeConfirm.vue +59 -0
  572. package/comps/CoreMultipleInput.vue +51 -0
  573. package/comps/CorePanel.vue +33 -0
  574. package/comps/CorePdfDialog.vue +84 -0
  575. package/comps/CorePdfView.vue +52 -0
  576. package/comps/CoreRegexp.vue +41 -0
  577. package/comps/CoreSelect.vue +249 -0
  578. package/comps/CoreSelectEnum.vue +103 -0
  579. package/comps/CoreSelectGroup.vue +237 -0
  580. package/comps/CoreSelectGroupItem.vue +168 -0
  581. package/comps/CoreSelectGroupList.vue +386 -0
  582. package/comps/CoreSelectOrgEmp.vue +319 -0
  583. package/comps/CoreSelectTable.vue +277 -0
  584. package/comps/CoreSelectTree.vue +183 -0
  585. package/comps/CoreSelectTreeItem.vue +129 -0
  586. package/comps/CoreSelectTreeList.vue +149 -0
  587. package/comps/CoreSelectYear.vue +42 -0
  588. package/comps/CoreSignCertificate.vue +129 -0
  589. package/comps/CoreSpan.vue +31 -0
  590. package/comps/CoreStatus.vue +29 -0
  591. package/comps/CoreSwitch.vue +28 -0
  592. package/comps/CoreTable.vue +852 -0
  593. package/comps/CoreTableColumn.vue +78 -0
  594. package/comps/CoreTableColumnHeader.vue +25 -0
  595. package/comps/CoreTableColumnRow.vue +234 -0
  596. package/comps/CoreTableConfig.vue +248 -0
  597. package/comps/CoreTableImage.vue +89 -0
  598. package/comps/CoreTableSearch.vue +267 -0
  599. package/comps/CoreTableSearchDetail.vue +89 -0
  600. package/comps/CoreTableStatus.vue +71 -0
  601. package/comps/CoreUploadImage.vue +542 -0
  602. package/comps/CoreVideo.vue +44 -0
  603. package/comps/CoreVimeo.vue +135 -0
  604. package/comps/CoreVimeoLabel.vue +32 -0
  605. package/comps/CoreVueEditor.vue +106 -0
  606. package/comps/CoreXypService.vue +233 -0
  607. package/comps/CoreZoomImage.vue +99 -0
  608. package/comps/Custom/CrimeDescription.vue +195 -0
  609. package/comps/Custom/CrimeNum.vue +41 -0
  610. package/comps/Custom/EmployeeSelect.vue +243 -0
  611. package/comps/Custom/EmployeeText.vue +7 -0
  612. package/comps/Custom/EmployeeWorkFamilies.vue +36 -0
  613. package/comps/Custom/NationalLangSkills.vue +137 -0
  614. package/comps/Custom/TableLogs.vue +86 -0
  615. package/comps/Custom/UserClotheRow.vue +105 -0
  616. package/comps/Custom/UserClothes.vue +470 -0
  617. package/comps/Custom/UserRoles.vue +169 -0
  618. package/comps/Custom/UserSelect.vue +423 -0
  619. package/comps/Custom/UserSkills.vue +98 -0
  620. package/comps/MomentAddCode.vue +91 -0
  621. package/comps/SclHandbook.vue +135 -0
  622. package/comps/Sign/Dialog.vue +321 -0
  623. package/comps/Sign/Info.vue +43 -0
  624. package/comps/Sign/InfoDialog.vue +78 -0
  625. package/directives/el-dragDialog/drag.js +34 -0
  626. package/index.js +7 -0
  627. package/middleware/auth.js +28 -0
  628. package/middleware/confirm-leave.js +15 -0
  629. package/middleware/login.js +6 -0
  630. package/middleware/router.js +5 -0
  631. package/package.json +48 -0
  632. package/plugins/axios.js +51 -0
  633. package/plugins/chart.js +134 -0
  634. package/plugins/ckeditor.js +3 -0
  635. package/plugins/idle-logout.js +33 -0
  636. package/store/settings.js +236 -0
  637. package/store/user.js +215 -0
  638. package/utils/component-helper.js +336 -0
  639. package/utils/data-helper.js +236 -0
  640. package/utils/default-nuxt-config.js +116 -0
  641. package/utils/eslint-rules.js +12 -0
  642. package/utils/helpers.js +67 -0
  643. package/utils/message-helper.js +19 -0
  644. package/utils/number-helper.js +166 -0
  645. package/utils/number-texts.js +217 -0
  646. package/utils/regexps.js +86 -0
  647. package/utils/role-helper.js +52 -0
  648. package/utils/social-helper.js +58 -0
  649. package/utils/table-helper.js +1612 -0
@@ -0,0 +1,852 @@
1
+ <template>
2
+ <div :class="['flex flex-col w-full overflow-hidden gap-2', { 'h-full': !autoHeight }]">
3
+ <core-table-status v-if="statuses?.length" :statuses="statuses" :status-count="statusCount" :disabled="isDisabled" />
4
+ <slot name="table-header" />
5
+ <div class="flex">
6
+ <div class="flex-1 flex gap-2 flex-wrap items-center">
7
+ <div v-if="isShowOrgFilter">
8
+ <el-button
9
+ type="text"
10
+ icon="el-icon-arrow-right"
11
+ :plain="plainButton"
12
+ :size="sizeButton || defaultSize"
13
+ :disabled="isDisabled"
14
+ @click="$emit('show-org-filter')"
15
+ />
16
+ </div>
17
+ <div v-if="selectable && multiple && allSelectable">
18
+ <el-button
19
+ v-if="currentRows.length === 0 || currentRows.length < list.length"
20
+ icon="el-icon-check"
21
+ :plain="plainButton"
22
+ :size="sizeButton || defaultSize"
23
+ :disabled="isDisabled"
24
+ @click="handleSelectAll"
25
+ >
26
+ Бүгдийг сонгох
27
+ </el-button>
28
+ <el-button
29
+ v-else
30
+ icon="el-icon-close"
31
+ :plain="plainButton"
32
+ :size="sizeButton || defaultSize"
33
+ :disabled="isDisabled"
34
+ @click="handleDeselectAll"
35
+ >
36
+ Бүгдийг арилгах
37
+ </el-button>
38
+ </div>
39
+ <el-button
40
+ v-if="buttons.textCreate && !readOnly && modelLocale.code === 'mn'"
41
+ icon="el-icon-plus"
42
+ type="primary"
43
+ :plain="plainButton"
44
+ :size="sizeButton || defaultSize"
45
+ :disabled="isDisabled"
46
+ @click="$emit('create')"
47
+ >
48
+ {{ buttons.textCreate }}
49
+ </el-button>
50
+ <el-button
51
+ v-if="buttons.textRemove && !readOnly"
52
+ icon="el-icon-minus"
53
+ type="warning"
54
+ class="!ml-0"
55
+ :plain="plainButton"
56
+ :size="sizeButton || defaultSize"
57
+ :disabled="isDisabled"
58
+ @click="() => handleUpdate('REMOVE')"
59
+ >
60
+ {{ buttons.textRemove }}
61
+ </el-button>
62
+ <slot name="actions" />
63
+ <el-button
64
+ icon="el-icon-refresh"
65
+ :plain="plainButton"
66
+ :size="sizeButton || defaultSize"
67
+ class="!ml-0"
68
+ :disabled="isDisabled"
69
+ @click="handleRefresh"
70
+ >
71
+ Дахин ачаалах
72
+ </el-button>
73
+ <!-- <el-button
74
+ icon="el-icon-search"
75
+ :plain="plainButton"
76
+ :size="sizeButton || defaultSize"
77
+ class="!ml-0"
78
+ @click="visibleSearch = true"
79
+ >
80
+ Дэлгэрэнгүй хайлт
81
+ </el-button> -->
82
+ <el-button
83
+ v-if="buttons.textExport"
84
+ icon="el-icon-download"
85
+ :plain="plainButton"
86
+ :size="sizeButton || defaultSize"
87
+ :loading="loadingExcel"
88
+ :disabled="isDisabled"
89
+ class="!ml-0"
90
+ @click="$emit('excel')"
91
+ >
92
+ {{ buttons.textExport }}
93
+ </el-button>
94
+ <slot name="table-actions" />
95
+ </div>
96
+ <div v-if="!selectable" class="flex flex-row gap-2">
97
+ <el-select
98
+ v-if="locales.length > 0"
99
+ v-model="modelLocale"
100
+ :size="sizeButton || defaultSize"
101
+ :placeholder="locales[0].name"
102
+ :disabled="isDisabled"
103
+ clearable
104
+ value-key="_id"
105
+ >
106
+ <el-option v-for="local1 in locales" :key="local1._id" :value="local1" :label="local1.name" />
107
+ </el-select>
108
+ <el-button
109
+ v-if="hasHandbook"
110
+ class="!ml-0"
111
+ icon="isax isax-book-1"
112
+ :plain="plainButton"
113
+ :size="sizeButton || defaultSize"
114
+ :disabled="isDisabled"
115
+ @click="handbookApiId = api_id"
116
+ >
117
+ Гарын авлага
118
+ </el-button>
119
+ <!-- <el-button
120
+ v-if="!subColumn"
121
+ class="!ml-0"
122
+ icon="isax isax-warning-2"
123
+ :plain="plainButton"
124
+ :size="sizeButton || defaultSize"
125
+ @click="visibleDeleteLog = true"
126
+ /> -->
127
+ <el-button
128
+ v-if="!ignoreTableConfig"
129
+ class="!ml-0"
130
+ icon="isax isax-setting-2"
131
+ :plain="plainButton"
132
+ :size="sizeButton || defaultSize"
133
+ :disabled="isDisabled"
134
+ @click="visibleSettingColumns = true"
135
+ />
136
+ <!-- <el-button-group>
137
+ <el-button
138
+ :type="$route.query.listType === 'card' ? 'default' : 'primary'"
139
+ icon="el-icon-s-fold"
140
+ :size="sizeButton || defaultSize"
141
+ @click="handleChangeListType('table')"
142
+ />
143
+ <el-button
144
+ :type="$route.query.listType === 'card' ? 'primary' : 'default'"
145
+ icon="el-icon-menu"
146
+ :size="sizeButton || defaultSize"
147
+ @click="handleChangeListType('card')"
148
+ />
149
+ </el-button-group> -->
150
+ </div>
151
+ </div>
152
+ <!-- :highlight-current-row="selectable" -->
153
+ <!-- @current-change="handleCurrentRowChange" -->
154
+ <el-table
155
+ ref="tableMain"
156
+ v-loading="loading"
157
+ :data="list"
158
+ :border="true"
159
+ :class="['core-table w-full', {
160
+ 'h-full': !autoHeight,
161
+ 'core-table-search': !noSearch
162
+ }]"
163
+ :height="autoHeight ? undefined : '100%'"
164
+ :header-cell-class-name="getHeaderCellClassName"
165
+ :row-class-name="getRowClassName"
166
+ :cell-class-name="getCellClassName"
167
+ @cell-click="handleCellClick"
168
+ @row-contextmenu="handleContextMenu"
169
+ @row-click="handleRowClick"
170
+ @row-dblclick="handleRowDbclick"
171
+ @header-dragend="handleHeaderDragEnd"
172
+ >
173
+ <el-table-column v-if="selectable" width="50" label="#" align="center">
174
+ <template slot="header" slot-scope="scope">
175
+ <div
176
+ class="h-full text-xs leading-4 h-9 flex items-center"
177
+ >
178
+ {{ scope.column.label }}
179
+ </div>
180
+ </template>
181
+ <template slot-scope="scope">
182
+ <div class="flex items-center h-full w-full">
183
+ <!-- <el-checkbox v-if="multiple" :value="currentRows.some(c => c._id === scope.row._id)" readonly /> -->
184
+ <div
185
+ v-if="multiple" :class="['size-5 rounded cursor-pointer flex items-center justify-center', {
186
+ 'border !border-coreBlue bg-coreBlue text-white': currentRows.some(c => c._id === scope.row._id),
187
+ 'border bg-white': !currentRows.some(c => c._id === scope.row._id)
188
+ }]"
189
+ >
190
+ <i v-if="currentRows.some(c => c._id === scope.row._id)" class="el-icon-check" />
191
+ </div>
192
+ <div
193
+ v-else
194
+ :class="['size-5 rounded-full border bg-white cursor-pointer', {
195
+ '!border-coreBlue border-[6px]': currentRow && scope.row[pk_field_name] === currentRow[pk_field_name]
196
+ }]"
197
+ />
198
+ </div>
199
+ </template>
200
+ </el-table-column>
201
+ <el-table-column v-if="!selectable" type="index" :width="indexColWidth" label="№" align="center">
202
+ <template slot="header" slot-scope="scope">
203
+ <div
204
+ class="h-full text-xs leading-4 h-9 flex items-center"
205
+ >
206
+ {{ scope.column.label }}
207
+ </div>
208
+ </template>
209
+ <template slot-scope="scope">
210
+ <div class="flex items-center h-full w-full">
211
+ {{ (listPage - 1) * (pageSize === 'all' ? 1 : parseInt(pageSize)) + scope.$index + 1 }}
212
+ </div>
213
+ </template>
214
+ </el-table-column>
215
+ <el-table-column v-if="selectedList" width="35" label="#">
216
+ <template slot-scope="scope">
217
+ <div @click.prevent="$emit('selection-change', scope.row)">
218
+ <el-checkbox :value="selectedList.some(c => c[pk_field_name] === scope.row[pk_field_name])" />
219
+ </div>
220
+ </template>
221
+ </el-table-column>
222
+ <core-table-column
223
+ v-for="col in showColumns"
224
+ :key="col.col_key"
225
+ :col="col"
226
+ :fill-fields="fillFields"
227
+ :search="search"
228
+ :no-search="noSearch"
229
+ :project-id="projectId"
230
+ :sorts="sorts"
231
+ :table_name="table_name"
232
+ :edit-fields="editFields"
233
+ :selectable="selectable"
234
+ @detail="handleDetail"
235
+ @sort-change="$emit('sort-change', $event)"
236
+ @search-input="$emit('search-input', $event)"
237
+ @search="$emit('search')"
238
+ @change-cell-value="($event) => $emit('change-cell-value', $event)"
239
+ />
240
+ <!-- <el-table-column
241
+ v-for="col in showColumns"
242
+ v-bind="col.props"
243
+ :key="col.col_field"
244
+ :prop="col.col_key"
245
+ :sortable="false"
246
+ :class-name="col.hasChildren ? 'core-group-column' : ''"
247
+ >
248
+ <template slot="header" slot-scope="scope">
249
+ <core-table-column-header :label="scope.column.label" :col_key="col.col_key" :sortable="!col.hasChildren && sorts?.length && (has(col.props, 'sortable') ? col.props.sortable : true)" @sort-change="$emit('sort-change', $event)" />
250
+ <div v-if="!col.hasChildren && search && !noSearch" class="font-normal">
251
+ <core-table-search :search="search" :col="col" :project-id="projectId" @search-input="$emit('search-input', $event)" @search="$emit('search')" />
252
+ </div>
253
+ </template>
254
+ <el-table-column
255
+ v-if="col.hasChildren"
256
+ v-for="child in col.columns?.filter(c1 => !c1.tableHidden)"
257
+ v-bind="child.props"
258
+ :key="child.col_field"
259
+ :prop="child.col_key"
260
+ :sortable="false"
261
+ class-name="core-subgroup-column"
262
+ >
263
+ <template slot="header" slot-scope="scope">
264
+ <core-table-column-header :label="scope.column.label" :col_key="child.col_key" :sortable="sorts && sorts.length > 0 && (has(child.props, 'sortable') ? child.props.sortable : true)" @sort-change="$emit('sort-change', $event)" />
265
+ <div v-if="search && !noSearch" class="font-normal">
266
+ <core-table-search :search="search" :col="child" :project-id="projectId" @search-input="$emit('search-input', $event)" @search="$emit('search')" />
267
+ </div>
268
+ </template>
269
+ <template slot-scope="scope">
270
+ <core-table-column-row :col="child" :scope="scope" :fill-fields="fillFields" @detail="() => handleDetail(scope.row, child)" />
271
+ </template>
272
+ </el-table-column>
273
+ <template v-if="!col.hasChildren" slot-scope="scope">
274
+ <core-table-column-row :col="col" :scope="scope" :fill-fields="fillFields" @detail="() => handleDetail(scope.row, col)" />
275
+ </template>
276
+ </el-table-column> -->
277
+ <!-- fixed="right" -->
278
+ <el-table-column v-if="!readOnly" label="Үйлдэл" :width="'60px'" align="center">
279
+ <template slot="header" slot-scope="scope">
280
+ <div class="h-9 flex items-center">
281
+ <div class="flex-1 text-xs leading-4">
282
+ {{ scope.column.label }}
283
+ </div>
284
+ </div>
285
+ <div>
286
+ <el-button v-if="search && !noSearch" icon="el-icon-search" size="mini" @click="$emit('search')" />
287
+ </div>
288
+ </template>
289
+ <template slot-scope="scope">
290
+ <el-dropdown :tabindex="-1" @command="handleCommand(scope.row, $event)">
291
+ <el-button
292
+ size="mini"
293
+ tabindex="-1"
294
+ @contextmenu.native.prevent.stop="onRightClick"
295
+ >
296
+ <i class="el-icon-more" />
297
+ </el-button>
298
+ <el-dropdown-menu slot="dropdown">
299
+ <el-dropdown-item v-for="(item, index) of contextMenuItems" :key="item.code + '_' + index" :command="item.code">
300
+ <div class="flex flex-row py-1 text-base gap-1 text-corePrimaryText items-center">
301
+ <i :class="[item.icon || 'el-icon-check', 'text-coreRegularText']" />
302
+ {{ item.name }}
303
+ </div>
304
+ </el-dropdown-item>
305
+ </el-dropdown-menu>
306
+ </el-dropdown>
307
+ </template>
308
+ </el-table-column>
309
+ <!-- <el-table-column v-if="!readOnly" label="Үйлдэл" :width="widthActions || '150px'" align="center">
310
+ <template slot="header" slot-scope="scope">
311
+ <div class="h-9 flex items-center">
312
+ <div class="flex-1 text-xs leading-4">
313
+ {{ scope.column.label }}
314
+ </div>
315
+ </div>
316
+ <div>
317
+ <el-button v-if="search && !noSearch" icon="el-icon-search" size="mini" @click="$emit('search')">
318
+ Хайх
319
+ </el-button>
320
+ </div>
321
+ </template>
322
+ <template slot-scope="scope">
323
+ <div class="flex items-center justify-center w-full h-12">
324
+ <el-button v-if="table_id === '384'" icon="el-icon-circle-plus-outline" plain :type="'success'" title="Асуумж оруулах" size="mini" @click.native.stop="$emit('question', scope.row)" />
325
+ <el-button v-if="showWarningRow" icon="isax isax-warning-2" plain :type="scope.row.is_warning ? 'warning' : 'default'" title="Түүх харах" size="mini" @click.native.stop="$emit('show-warning', scope.row)" />
326
+ <el-button v-if="buttons.textEdit" icon="isax isax-edit-2" title="Засварлах" size="mini" @click.native.stop="$emit('update', scope.row)" />
327
+ <el-button v-else icon="isax isax-document" title="Харах" size="mini" @click.native.stop="$emit('update', scope.row)" />
328
+ <el-button v-if="buttons.textDelete" icon="isax isax-trash" :title="buttons.textDelete" size="mini" @click.native.stop="$emit('delete', scope.row)" />
329
+ </div>
330
+ </template>
331
+ </el-table-column> -->
332
+ </el-table>
333
+ <!-- </div> -->
334
+ <!-- <div v-else-if="listType === 'card'" v-loading="loading">
335
+ <card-list
336
+ :list="list"
337
+ :columns="columns"
338
+ :pk_field_name="pk_field_name"
339
+ :loading="loading"
340
+ @update="$emit('update', $event)"
341
+ @delete="$emit('delete', $event)"
342
+ @detail="handleRowDbclick"
343
+ />
344
+ </div> -->
345
+ <!-- , { 'pt-4': !plainButton } -->
346
+ <div v-if="currentPage && pageSize" :class="['flex flex-col items-start gap-2 lg:flex-row lg:items-center lg:flex-wrap']">
347
+ <div class="flex-1 flex items-center text-coreRegularText text-sm gap-2">
348
+ <div class="hidden sm:block">
349
+ <el-select v-if="!plainButton" v-model="pageSize" size="small">
350
+ <el-option v-for="item in pageSizes" :key="item.val" :value="item.val" :label="item.title" />
351
+ </el-select>
352
+ </div>
353
+ <div v-for="statusItem in statuses.filter(c => c.is_count)" :key="statusItem.field">
354
+ {{ statusItem.title }} {{ get(statusCount, statusItem.field) || 0 }}
355
+ </div>
356
+ <el-pagination
357
+ :background="!plainButton"
358
+ :small="plainButton"
359
+ :page-size="intPageSize"
360
+ :current-page="currentPage"
361
+ :layout="plainButton ? 'total, prev, pager, next' : 'total, prev, pager, next, ->, jumper'"
362
+ :total="count"
363
+ @current-change="$emit('current-change', $event)"
364
+ />
365
+ </div>
366
+ <div class="text-sm text-coreSecondaryText font-bold h-8 px-2 justify-self-end flex items-center rounded ">
367
+ <span v-if="totalDurationMs">{{ parseInt(totalDurationMs / 100) / 10 }}s</span>
368
+ <span v-if="clientDurationMs && clientDurationMs > (totalDurationMs || 0) + 1000" class="text-xs text-coreWarning">{{ parseInt(clientDurationMs / 100) / 10 }}s</span>
369
+ </div>
370
+ <div v-if="level && !subColumn" class="text-sm text-coreRegularText justify-self-end h-8 rounded border px-2 flex items-center bg-coreBgInput">
371
+ Түвшин: {{ level.level_name }}
372
+ </div>
373
+ <slot name="action-buttons" />
374
+ </div>
375
+ <el-dialog
376
+ :visible.sync="visibleHandbook"
377
+ :title="`${api_title} гарын авлага`"
378
+ width="220mm"
379
+ >
380
+ <scl-handbook v-if="projectId == '5'" :api_id="handbookApiId" />
381
+ <div slot="footer">
382
+ <el-button
383
+ icon="el-icon-close"
384
+ :plain="plainButton"
385
+ :size="sizeButton || defaultSize"
386
+ @click="handbookApiId = null"
387
+ >
388
+ Буцах
389
+ </el-button>
390
+ </div>
391
+ </el-dialog>
392
+ <el-dialog :visible.sync="visibleDeleteLog" title="Устгасан түүх" width="600px">
393
+ <div class="bg-white p-4 rounded-lg">
394
+ <custom-table-logs v-if="visibleDeleteLog" :project_id="projectId" :table_id="table_id" pk_id="delete" />
395
+ </div>
396
+ </el-dialog>
397
+ <core-table-config
398
+ ref="refConfig"
399
+ :table_id="table_id"
400
+ :api_id="api_id"
401
+ :sub_col_id="subColumn?._id"
402
+ :is-show.sync="visibleSettingColumns"
403
+ :columns="columns"
404
+ />
405
+ <CoreContextMenu
406
+ ref="contextMenu"
407
+ @menu-click="onMenuItemClick"
408
+ />
409
+ <core-table-search-detail
410
+ :visible.sync="visibleSearch"
411
+ :project-id="projectId"
412
+ :api-id="api_id"
413
+ :table-id="table_id"
414
+ :table-name="table_name"
415
+ />
416
+ </div>
417
+ </template>
418
+ <script>
419
+ import { mapGetters, mapActions } from 'vuex'
420
+ import { get, has } from 'lodash'
421
+ import { getButtons } from './../utils/role-helper'
422
+ // import { getFormBoolean } from '../utils/data-helper'
423
+ // import VimeoLabel from './CoreVimeoLabel.vue'
424
+ // import CardImage from './CardImage.vue'
425
+ // import MomentAddCode from './MomentAddCode.vue'
426
+ // import BooleanLabel from './BooleanLabel.vue'
427
+ export default {
428
+ name: 'CoreTable',
429
+ // components: { VimeoLabel, CardImage, MomentAddCode, BooleanLabel },
430
+ props: {
431
+ projectId: { type: [String, Number], default: null },
432
+ table_id: { type: String, default: null },
433
+ table_name: { type: String, default: null },
434
+ level: { type: Object, default: () => { return null } },
435
+ api_id: { type: [String, Number], default: null },
436
+ api_title: { type: [String, Number], default: null },
437
+ hasHandbook: { type: Boolean, default: false },
438
+ pk_field_name: { type: String, default: '_id' },
439
+ fill_field: { type: String, default: '' },
440
+ showPkid: { type: Boolean, default: false },
441
+ loading: { type: Boolean, default: false },
442
+ loadingExcel: { type: Boolean, default: false },
443
+ readOnly: { type: Boolean, default: false },
444
+ noBorder: { type: Boolean, default: false },
445
+ noSearch: { type: Boolean, default: false },
446
+ list: { type: [Array, Object], default: () => { return [] } },
447
+ selectable: { type: Boolean, default: false },
448
+ allSelectable: { type: Boolean, default: false },
449
+ selectedList: { type: Array, default: () => { return null } },
450
+ multiple: { type: Boolean, default: false },
451
+ isSelectDirect: { type: Boolean, default: false },
452
+ count: { type: Number, default: 0 },
453
+ columns: { type: Array, default: () => { return [] } },
454
+ currentPage: { type: Number, default: 1 },
455
+ listPage: { type: Number, default: 1 },
456
+ sorts: { type: Array, default: () => { return [] } },
457
+ search: { type: Object, default: () => { return null } },
458
+ widthActions: { type: String, default: '' },
459
+ currentRowId: { type: [String, Number], default: null },
460
+ initCurrentRow: { type: Object, default: () => { return null } },
461
+ subColumn: { type: Object, default: () => { return null } },
462
+ sizeButton: { type: String, default: null },
463
+ defaultSize: { type: String, default: null },
464
+ plainButton: { type: Boolean, default: false },
465
+ isDetail: { type: Boolean, default: false },
466
+ autoHeight: { type: Boolean, default: false },
467
+ hideExcel: { type: Boolean, default: false },
468
+ isShowOrgFilter: { type: Boolean, default: false },
469
+ showWarningRow: { type: Boolean, default: false },
470
+ locale: { type: Object, default: () => { return null } },
471
+ locales: { type: Array, default: () => { return [] } },
472
+ isAdmin: { type: Boolean, default: false },
473
+ actions: { type: Array, default: () => { return [] } },
474
+ cellClassName: { type: Function, default: null },
475
+ rowClassName: { type: Function, default: null },
476
+ statuses: { type: Array, default: () => { return [] } },
477
+ statusCount: { type: Object, default: () => { return null } },
478
+ editFields: { type: Array, default: () => { return [] } },
479
+ totalDurationMs: { type: Number, default: () => { return null }},
480
+ clientDurationMs: { type: Number, default: () => { return null }}
481
+ },
482
+ data () {
483
+ return {
484
+ rowHeight: 48,
485
+ handbookApiId: null,
486
+ visibleDeleteLog: false,
487
+ visibleMerge: false,
488
+ visibleSettingColumns: false,
489
+ visibleSearch: false,
490
+ currentRow: null,
491
+ currentRows: []
492
+ }
493
+ },
494
+ computed: {
495
+ ...mapGetters('settings', ['tablePageSizes', 'windowHeight', 'ignoreTableConfig']),
496
+ ...mapGetters('user', ['isLocked']),
497
+ ...mapGetters(['user_position_id']),
498
+ isDisabled () {
499
+ return false // this.isLocked
500
+ },
501
+ modelLocale: {
502
+ get () {
503
+ return this.locale || { code: 'mn' }
504
+ },
505
+ set (val) {
506
+ this.$emit('update:locale', val)
507
+ }
508
+ },
509
+ visibleHandbook: {
510
+ get () {
511
+ return !!this.handbookApiId
512
+ },
513
+ set (val) {
514
+ if (!val) {
515
+ this.handbookApiId = null
516
+ }
517
+ }
518
+ },
519
+ fillFields () {
520
+ return this.fill_field.split(',')
521
+ },
522
+ showColumns () {
523
+ const cols = this.columns.filter(c => c.props && !c.tableHidden && !c.configHidden && (this.showPkid || !['pkid', 'uuid'].includes(c.col_type)))
524
+ cols.sort((a, b) => {
525
+ if (a.col_order !== b.col_order) { return a.col_order - b.col_order }
526
+ return Number(a._id) - Number(b._id)
527
+ })
528
+ return cols
529
+ },
530
+ indexColWidth () {
531
+ const num = isNaN(this.pageSize) ? 300 : parseInt(this.pageSize)
532
+ const len = String((this.listPage - 1) * num + num).length
533
+ return (len * 8 + 20) + 'px'
534
+ },
535
+ listType () {
536
+ return this.$route.query.listType || 'table'
537
+ },
538
+ intPageSize () {
539
+ if (isNaN(this.pageSize)) {
540
+ return Math.max(this.list.length, this.count || 0)
541
+ }
542
+ return parseInt(this.pageSize)
543
+ },
544
+ pageSize: {
545
+ get () {
546
+ return this.tablePageSizes[this.table_id] || '20'
547
+ },
548
+ set (val) {
549
+ this.set_table_page_sizes({ [this.table_id]: val })
550
+ this.handleChangeSize()
551
+ }
552
+ },
553
+ pageSizes () {
554
+ const list = []
555
+ // , all: 'Бүх'
556
+ const list1 = { 5: '5/хуудас', 10: '10/хуудас', 12: '12/хуудас', 20: '20/хуудас', 50: '50/хуудас', 100: '100/хуудас' }
557
+ for (const key in list1) {
558
+ list.push({ val: key, title: list1[key] })
559
+ }
560
+ if (!this.autoHeight) {
561
+ list.unshift({ val: 'auto', title: 'Авто' })
562
+ }
563
+ return list
564
+ },
565
+ buttons () {
566
+ return getButtons(this.level, this.table_name, this.isAdmin)
567
+ },
568
+ contextMenuItems () {
569
+ if (this.readOnly) {
570
+ return []
571
+ }
572
+ const list = []
573
+ const deleteCodes = ['DELETE', 'REMOVE']
574
+ if (this.actions?.length && this.table_name === 'doc_requests') {
575
+ list.push(...this.actions.filter(k => this.level?.actions.some(c => (c.code === k.code) || (deleteCodes.includes(c.code) && deleteCodes.includes(k.code)) )).filter((c) => {
576
+ if (c.isNotSystem && this.currentRow?.is_system) {
577
+ return false
578
+ }
579
+ const isCurrentUser = this.currentRow?.current_user_id?._id === this.user_position_id
580
+ if (c.isCurrentUser && !isCurrentUser) {
581
+ const isCoDecider = false
582
+ if (c.isCoDecider && isCoDecider) {
583
+ return true
584
+ }
585
+ return false
586
+ }
587
+ if (c.hideStatuses && c.hideStatuses?.includes(this.currentRow?.status_id?.code)) {
588
+ return false
589
+ }
590
+ if (c.showStatuses && !c.showStatuses?.includes(this.currentRow?.status_id?.code)) {
591
+ return false
592
+ }
593
+ return true
594
+ }))
595
+ } else if (this.actions?.length) {
596
+ list.push(...this.actions.filter(k => this.level?.actions.some(c => c.code === k.code || (deleteCodes.includes(c.code) && deleteCodes.includes(k.code))) && (!k.reg_type_code || k.reg_type_code.includes(this.currentRow?.reg_type_id?.code))))
597
+ } else {
598
+ if (this.buttons.textEdit) {
599
+ list.push({ code: 'update', icon: 'isax isax-edit-2', name: 'Засварлах' })
600
+ } else {
601
+ list.push({ code: 'detail', icon: 'isax isax-document', name: 'Харах' })
602
+ }
603
+ if (this.showWarningRow) {
604
+ list.push({ code: 'show-warning', icon: 'isax isax-warning-2', name: 'Түүх харах' })
605
+ }
606
+ if (this.table_id === '384') {
607
+ list.push({ code: 'question', icon: 'el-icon-circle-plus-outline', name: 'Асуумж оруулах' })
608
+ }
609
+ if (this.buttons.textDelete) {
610
+ list.push({ code: 'delete', icon: 'isax isax-trash', name: 'Устгах' })
611
+ }
612
+ if (this.buttons.textUnblock) {
613
+ list.push({ code: 'unblock', icon: 'isax isax-trash', name: this.buttons.textUnblock })
614
+ }
615
+ }
616
+ return list
617
+ }
618
+ },
619
+ watch: {
620
+ windowHeight () {
621
+ if (this.pageSize === 'auto' && !this.autoHeight) {
622
+ this.handleChangeSize()
623
+ }
624
+ },
625
+ list: {
626
+ handler () {
627
+ this.handleDeselectAll()
628
+ },
629
+ deep: true
630
+ }
631
+ },
632
+ mounted () {
633
+ this.handleLoad()
634
+ this.currentRow = this.initCurrentRow
635
+ },
636
+ methods: {
637
+ ...mapActions('settings', ['set_table_page_sizes']),
638
+ get,
639
+ has,
640
+ onRightClick (event) {
641
+ // console.log("Right-click disabled on button", event)
642
+ },
643
+ handleCommand (row, $event) {
644
+ this.currentRow = row
645
+ const menuItem = this.contextMenuItems.find(c => c.code === $event)
646
+ this.onMenuItemClick(menuItem)
647
+ },
648
+ handleContextMenu (row, column, event) {
649
+ this.currentRow = row
650
+ event.preventDefault()
651
+ this.$refs.contextMenu.showMenu(this.contextMenuItems, event)
652
+ },
653
+ onMenuItemClick (menuItem) {
654
+ if (!this.actions?.length) {
655
+ this.$emit(menuItem.code, this.currentRow)
656
+ } else {
657
+ this.$emit('action', menuItem, this.currentRow)
658
+ }
659
+ },
660
+ getPageSize () {
661
+ let pageSize = this.pageSize
662
+ if (this.pageSize === 'auto' && !this.autoHeight) {
663
+ const heightStr = get(this.$refs, 'tableMain.bodyHeight.height')
664
+ if (heightStr) {
665
+ const height = Number(heightStr.replace('px', ''))
666
+ pageSize = height % this.rowHeight === 0 ? height / this.rowHeight : parseInt(height / this.rowHeight) + 1
667
+ }
668
+ }
669
+ return pageSize
670
+ },
671
+ handleChangeSize () {
672
+ const size = this.getPageSize()
673
+ this.$emit('size-change', size)
674
+ },
675
+ async handleLoad () {
676
+ await this.$nextTick()
677
+ this.$emit('load', { pageSize: this.getPageSize() })
678
+ },
679
+ handleRefresh () {
680
+ this.currentRow = null
681
+ this.currentRows = []
682
+ this.$emit('refresh')
683
+ },
684
+ handleUpdate (updateGroupName) {
685
+ if (!this.currentRow) {
686
+ return this.$message({ type: 'warning', message: 'Утга сонгоно уу.', showClose: true })
687
+ }
688
+ this.$emit('update', this.currentRow, updateGroupName)
689
+ },
690
+ handleDetail (row, col, isNewTab) {
691
+ if (!this.fillFields.includes(col.col_key)) {
692
+ return
693
+ }
694
+ if (this.$listeners.detail || this.isDetail) {
695
+ this.$emit('detail', row, isNewTab)
696
+ } else {
697
+ this.$emit('update', row)
698
+ }
699
+ },
700
+ handleSelectionChange (row) {
701
+ const index = this.currentRows.findIndex(c => c._id === row._id)
702
+ if (index > -1) {
703
+ this.currentRows.splice(index, 1)
704
+ } else {
705
+ this.currentRows.push(row)
706
+ }
707
+ },
708
+ handleRowDbclick ($event) {
709
+ if (this.$listeners.detail || this.isDetail) {
710
+ this.$emit('detail', $event, false)
711
+ } else {
712
+ this.$emit('update', $event)
713
+ }
714
+ },
715
+ handleRowClick (row, _, event) {
716
+ if (!this.selectable) {
717
+ if (event.ctrlKey || event.metaKey) {
718
+ this.$emit('detail', row, true)
719
+ }
720
+ return
721
+ }
722
+ this.handleCurrentRowChange(row)
723
+ if (this.selectedList) {
724
+ this.$emit('selection-change', row)
725
+ }
726
+ },
727
+ getHeaderCellClassName ({ column }) {
728
+ if (!this.sorts) {
729
+ return ''
730
+ }
731
+ const sort = this.sorts.find(c => c.prop === column.property)
732
+ return sort ? (sort.order || 'ascending') : ''
733
+ },
734
+ isValue (row, col) {
735
+ return !!this.get(row, col.col_field)
736
+ },
737
+ getValue (col, row) {
738
+ if (col.col_multiple) {
739
+ const value = get(row, col.col_field)
740
+ if (['manyToOne'].includes(col.col_type)) {
741
+ return value ? value.map(c => c.name).join(', ') : value
742
+ } else {
743
+ return value ? value.join(', ') : value
744
+ }
745
+ }
746
+ const value = get(row, col.refColumnWithAlias || col.col_field)
747
+ if (['boolean', 'booleannull'].includes(col.col_type)) {
748
+ return value ? 'Тийм' : 'Үгүй'
749
+ } else if (col.col_type === 'date') {
750
+ if (!value) {
751
+ return ''
752
+ }
753
+ return this.$moment(value).format('YYYY-MM-DD')
754
+ } else if (col.col_type === 'datetime') {
755
+ if (!value) {
756
+ return ''
757
+ }
758
+ return this.$moment(value).format('YYYY-MM-DD HH:mm')
759
+ } else if (['number', 'decimal'].includes(col.col_type) && value) {
760
+ return value.$format()
761
+ }
762
+ return value
763
+ },
764
+ handleCellClick (...props) {
765
+ this.$emit('cell-click', ...props)
766
+ },
767
+ getCellClassName (props) {
768
+ if (this.cellClassName) {
769
+ return this.cellClassName(props)
770
+ }
771
+ return ''
772
+ },
773
+ getRowClassName (props) {
774
+ if (this.rowClassName) {
775
+ return this.rowClassName(props)
776
+ }
777
+ const { row } = props
778
+ let classNames = ''
779
+ if (this.multiple) {
780
+ classNames = [this.currentRows.some(c => c[this.pk_field_name] === row[this.pk_field_name]) ? 'current-row' : '']
781
+ } else {
782
+ classNames = [this.currentRow && row[this.pk_field_name] === this.currentRow[this.pk_field_name] ? 'current-row' : '']
783
+ }
784
+ const dangerDay = 0
785
+ const warningDay = 2
786
+ if (['vw_training_licenses'].includes(this.table_name)) {
787
+ if (has(row, 'end_valid_date') && has(row, 'is_valid')) {
788
+ const endDate = this.$moment(get(row, 'end_valid_date')).endOf('days')
789
+ const warningDate = this.$moment().add(10, 'days').endOf('days')
790
+ if (!row.is_valid) {
791
+ classNames.push('danger-row')
792
+ } else if (warningDate.isAfter(endDate, 'days')) {
793
+ classNames.push('warning-row')
794
+ }
795
+ }
796
+ } else if (['reg_resolutions'].includes(this.table_name) && !['REG_END', 'ARCHIVE', 'RETURN'].includes(row.resolution_status_id?.code) && has(row, 'end_date')) {
797
+ const endDate = this.$moment(get(row, 'end_date')).endOf('days')
798
+ const dangerDate = this.$moment().add(dangerDay, 'days').endOf('days')
799
+ const warningDate = this.$moment().add(warningDay, 'days').endOf('days')
800
+ if (dangerDate.isAfter(endDate, 'days')) {
801
+ classNames.push('danger-row')
802
+ } else if (warningDate.isAfter(endDate, 'days')) {
803
+ classNames.push('warning-row')
804
+ }
805
+ } else if (['reg_forensics'].includes(this.table_name) && !['REG_END', 'ARCHIVE', 'RETURN'].includes(row.resolution_status_id?.code) && has(row, 'vwexpire.res_end_date')) {
806
+ if (!row.custom_is_end) {
807
+ if (row.custom_is_expired) {
808
+ classNames.push('danger-row')
809
+ } else {
810
+ const endDate = this.$moment(get(row, 'vwexpire.res_end_date')).endOf('days')
811
+ const warningDate = this.$moment().add(warningDay, 'days').endOf('days')
812
+ if (warningDate.isAfter(endDate, 'days')) {
813
+ classNames.push('warning-row')
814
+ }
815
+ }
816
+ }
817
+ }
818
+ return classNames.join(' ')
819
+ },
820
+ handleChangeListType (type) {
821
+ this.$router.push({ query: Object.assign({}, this.$route.query, { listType: type }) })
822
+ },
823
+ handleSelectAll () {
824
+ this.currentRows = this.list.slice()
825
+ this.$emit('current-row-change', this.currentRows)
826
+ },
827
+ handleDeselectAll () {
828
+ this.currentRows = []
829
+ this.$emit('current-row-change', this.currentRows)
830
+ },
831
+ handleCurrentRowChange (currentRow) {
832
+ if (!currentRow) {
833
+ return
834
+ }
835
+ if (this.multiple) {
836
+ // this.currentRows = []
837
+ this.handleSelectionChange(currentRow)
838
+ this.$emit('current-row-change', this.currentRows)
839
+ } else if (currentRow) {
840
+ this.currentRow = currentRow
841
+ this.$emit('current-row-change', currentRow)
842
+ }
843
+ },
844
+ handleHeaderDragEnd (newWidth, oldWidth, column) {
845
+ if (this.$refs.refConfig?.changeHeaderWidth) {
846
+ this.$refs.refConfig?.changeHeaderWidth({ property: column.property, newWidth })
847
+ }
848
+ // console.log(newWidth, oldWidth, column)
849
+ }
850
+ }
851
+ }
852
+ </script>