vxe-table 3.8.23 → 3.9.0-rc.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 (1081) hide show
  1. package/README.md +47 -77
  2. package/es/colgroup/index.js +17 -0
  3. package/es/column/index.js +17 -0
  4. package/es/components.js +33 -0
  5. package/es/grid/index.js +13 -0
  6. package/es/grid/src/grid.js +1100 -0
  7. package/es/grid/style.css +61 -0
  8. package/es/grid/style.min.css +1 -0
  9. package/es/iconfont.1725953896189.ttf +0 -0
  10. package/es/iconfont.1725953896189.woff +0 -0
  11. package/es/iconfont.1725953896189.woff2 +0 -0
  12. package/es/index.esm.js +3 -0
  13. package/es/locale/lang/en-US.d.ts +2 -0
  14. package/es/locale/lang/en-US.js +673 -0
  15. package/es/locale/lang/es-ES.d.ts +2 -0
  16. package/es/locale/lang/es-ES.js +673 -0
  17. package/es/locale/lang/hu-HU.js +671 -0
  18. package/es/locale/lang/ja-JP.d.ts +2 -0
  19. package/es/locale/lang/ja-JP.js +673 -0
  20. package/es/locale/lang/ko-KR.js +673 -0
  21. package/es/locale/lang/pt-BR.d.ts +2 -0
  22. package/es/locale/lang/pt-BR.js +673 -0
  23. package/es/locale/lang/ru-RU.js +673 -0
  24. package/es/locale/lang/vi-VN.js +673 -0
  25. package/es/locale/lang/zh-CN.d.ts +2 -0
  26. package/es/locale/lang/zh-CN.js +673 -0
  27. package/es/locale/lang/zh-HK.d.ts +2 -0
  28. package/es/locale/lang/zh-HK.js +2 -0
  29. package/es/locale/lang/zh-MO.d.ts +2 -0
  30. package/es/locale/lang/zh-MO.js +2 -0
  31. package/es/locale/lang/zh-TC.d.ts +2 -0
  32. package/es/locale/lang/zh-TC.js +673 -0
  33. package/es/locale/lang/zh-TW.d.ts +2 -0
  34. package/es/locale/lang/zh-TW.js +2 -0
  35. package/es/style.css +1 -0
  36. package/es/style.min.css +1 -0
  37. package/es/table/index.js +14 -0
  38. package/es/table/module/custom/mixin.js +87 -0
  39. package/es/table/module/custom/panel.js +974 -0
  40. package/es/table/module/edit/mixin.js +810 -0
  41. package/es/table/module/export/export-panel.js +448 -0
  42. package/es/table/module/export/import-panel.js +185 -0
  43. package/es/table/module/export/mixin.js +1463 -0
  44. package/es/table/module/export/util.js +20 -0
  45. package/es/table/module/filter/mixin.js +276 -0
  46. package/es/table/module/filter/panel.js +219 -0
  47. package/es/table/module/keyboard/mixin.js +376 -0
  48. package/es/table/module/menu/mixin.js +282 -0
  49. package/es/table/module/menu/panel.js +138 -0
  50. package/es/table/module/validator/mixin.js +487 -0
  51. package/es/table/render/index.js +796 -0
  52. package/es/table/src/body.js +771 -0
  53. package/es/table/src/cell.js +846 -0
  54. package/es/table/src/column.js +139 -0
  55. package/es/table/src/columnInfo.js +158 -0
  56. package/es/table/src/footer.js +279 -0
  57. package/es/table/src/group.js +11 -0
  58. package/es/table/src/header.js +302 -0
  59. package/es/table/src/methods.js +5640 -0
  60. package/es/table/src/props.js +170 -0
  61. package/es/table/src/table.js +1132 -0
  62. package/es/table/src/util.js +384 -0
  63. package/es/table/style.css +2805 -0
  64. package/es/table/style.min.css +1 -0
  65. package/es/toolbar/index.js +13 -0
  66. package/es/toolbar/src/toolbar.js +675 -0
  67. package/es/toolbar/style.css +91 -0
  68. package/es/toolbar/style.min.css +1 -0
  69. package/es/ui/index.js +377 -0
  70. package/es/ui/src/comp.js +1 -0
  71. package/es/ui/src/dom.js +141 -0
  72. package/es/ui/src/log.js +5 -0
  73. package/es/ui/src/utils.js +44 -0
  74. package/es/ui/src/vn.js +10 -0
  75. package/es/v-x-e-table/index.js +3 -0
  76. package/es/vxe-colgroup/index.js +3 -0
  77. package/es/vxe-column/index.js +3 -0
  78. package/es/vxe-grid/index.js +3 -0
  79. package/es/vxe-grid/style.css +61 -0
  80. package/es/vxe-grid/style.min.css +1 -0
  81. package/es/vxe-table/index.js +3 -0
  82. package/es/vxe-table/style.css +2805 -0
  83. package/es/vxe-table/style.min.css +1 -0
  84. package/es/vxe-toolbar/index.js +3 -0
  85. package/es/vxe-toolbar/style.css +91 -0
  86. package/es/vxe-toolbar/style.min.css +1 -0
  87. package/es/vxe-ui/index.js +3 -0
  88. package/es/vxe-v-x-e-table/index.js +3 -0
  89. package/helper/vetur/attributes.json +1 -1
  90. package/helper/vetur/tags.json +1 -1
  91. package/lib/colgroup/index.js +12 -7
  92. package/lib/colgroup/index.min.js +1 -1
  93. package/lib/colgroup/style/style.css +0 -26
  94. package/lib/column/index.js +12 -7
  95. package/lib/column/index.min.js +1 -1
  96. package/lib/column/style/style.css +0 -26
  97. package/lib/components.js +101 -0
  98. package/lib/components.min.js +1 -0
  99. package/lib/grid/index.js +9 -8
  100. package/lib/grid/index.min.js +1 -1
  101. package/lib/grid/src/grid.js +114 -121
  102. package/lib/grid/src/grid.min.js +1 -1
  103. package/lib/grid/style/style.css +6 -32
  104. package/lib/grid/style/style.min.css +1 -1
  105. package/lib/iconfont.1725953896189.ttf +0 -0
  106. package/lib/iconfont.1725953896189.woff +0 -0
  107. package/lib/iconfont.1725953896189.woff2 +0 -0
  108. package/lib/index.common.js +5 -5
  109. package/lib/index.umd.js +18867 -29242
  110. package/lib/index.umd.min.js +1 -1
  111. package/lib/locale/lang/en-US.d.ts +2 -8
  112. package/lib/locale/lang/en-US.js +11 -6
  113. package/lib/locale/lang/en-US.min.js +1 -1
  114. package/lib/locale/lang/en-US.umd.js +11 -6
  115. package/lib/locale/lang/es-ES.d.ts +2 -8
  116. package/lib/locale/lang/es-ES.js +11 -6
  117. package/lib/locale/lang/es-ES.min.js +1 -1
  118. package/lib/locale/lang/es-ES.umd.js +11 -6
  119. package/lib/locale/lang/hu-HU.js +677 -0
  120. package/lib/locale/lang/hu-HU.min.js +1 -0
  121. package/lib/locale/lang/ja-JP.d.ts +2 -8
  122. package/lib/locale/lang/ja-JP.js +11 -6
  123. package/lib/locale/lang/ja-JP.min.js +1 -1
  124. package/lib/locale/lang/ja-JP.umd.js +11 -6
  125. package/lib/locale/lang/ko-KR.js +679 -0
  126. package/lib/locale/lang/ko-KR.min.js +1 -0
  127. package/lib/locale/lang/pt-BR.d.ts +2 -8
  128. package/lib/locale/lang/pt-BR.js +11 -6
  129. package/lib/locale/lang/pt-BR.min.js +1 -1
  130. package/lib/locale/lang/pt-BR.umd.js +11 -6
  131. package/lib/locale/lang/ru-RU.js +679 -0
  132. package/lib/locale/lang/ru-RU.min.js +1 -0
  133. package/lib/locale/lang/vi-VN.js +679 -0
  134. package/lib/locale/lang/vi-VN.min.js +1 -0
  135. package/lib/locale/lang/zh-CN.d.ts +2 -8
  136. package/lib/locale/lang/zh-CN.js +11 -6
  137. package/lib/locale/lang/zh-CN.min.js +1 -1
  138. package/lib/locale/lang/zh-CN.umd.js +11 -6
  139. package/lib/locale/lang/zh-HK.d.ts +2 -8
  140. package/lib/locale/lang/zh-HK.js +1 -1
  141. package/lib/locale/lang/zh-HK.min.js +1 -1
  142. package/lib/locale/lang/zh-HK.umd.js +11 -6
  143. package/lib/locale/lang/zh-MO.d.ts +2 -8
  144. package/lib/locale/lang/zh-MO.js +1 -1
  145. package/lib/locale/lang/zh-MO.min.js +1 -1
  146. package/lib/locale/lang/zh-MO.umd.js +11 -6
  147. package/lib/locale/lang/zh-TC.d.ts +2 -8
  148. package/lib/locale/lang/zh-TC.js +11 -6
  149. package/lib/locale/lang/zh-TC.min.js +1 -1
  150. package/lib/locale/lang/zh-TC.umd.js +11 -6
  151. package/lib/locale/lang/zh-TW.d.ts +2 -8
  152. package/lib/locale/lang/zh-TW.js +1 -1
  153. package/lib/locale/lang/zh-TW.min.js +1 -1
  154. package/lib/locale/lang/zh-TW.umd.js +11 -6
  155. package/lib/style.css +1 -1
  156. package/lib/style.min.css +1 -1
  157. package/lib/table/index.js +10 -31
  158. package/lib/table/index.min.js +1 -1
  159. package/lib/table/module/custom/mixin.js +117 -0
  160. package/lib/table/module/custom/mixin.min.js +1 -0
  161. package/lib/table/module/custom/panel.js +910 -0
  162. package/lib/table/module/custom/panel.min.js +1 -0
  163. package/lib/table/module/edit/mixin.js +975 -0
  164. package/lib/table/module/edit/mixin.min.js +1 -0
  165. package/lib/table/module/export/export-panel.js +412 -0
  166. package/lib/table/module/export/export-panel.min.js +1 -0
  167. package/lib/table/module/export/import-panel.js +177 -0
  168. package/lib/table/module/export/import-panel.min.js +1 -0
  169. package/lib/table/module/export/mixin.js +1735 -0
  170. package/lib/table/module/export/mixin.min.js +1 -0
  171. package/lib/table/module/export/util.js +18 -0
  172. package/lib/table/module/export/util.min.js +1 -0
  173. package/lib/table/module/filter/mixin.js +329 -0
  174. package/lib/table/module/filter/mixin.min.js +1 -0
  175. package/lib/table/module/filter/panel.js +213 -0
  176. package/lib/table/module/filter/panel.min.js +1 -0
  177. package/lib/table/module/keyboard/mixin.js +410 -0
  178. package/lib/table/module/keyboard/mixin.min.js +1 -0
  179. package/lib/table/module/menu/mixin.js +329 -0
  180. package/lib/table/module/menu/mixin.min.js +1 -0
  181. package/lib/table/module/menu/panel.js +117 -0
  182. package/lib/table/module/menu/panel.min.js +1 -0
  183. package/lib/table/module/validator/mixin.js +550 -0
  184. package/lib/table/module/validator/mixin.min.js +1 -0
  185. package/lib/table/render/index.js +895 -0
  186. package/lib/table/render/index.min.js +1 -0
  187. package/lib/table/src/body.js +38 -44
  188. package/lib/table/src/body.min.js +1 -1
  189. package/lib/table/src/cell.js +83 -87
  190. package/lib/table/src/cell.min.js +1 -1
  191. package/lib/table/src/column.js +5 -5
  192. package/lib/table/src/column.min.js +1 -1
  193. package/lib/table/src/columnInfo.js +13 -21
  194. package/lib/table/src/columnInfo.min.js +1 -1
  195. package/lib/table/src/footer.js +14 -14
  196. package/lib/table/src/footer.min.js +1 -1
  197. package/lib/table/src/group.js +1 -1
  198. package/lib/table/src/group.min.js +1 -1
  199. package/lib/table/src/header.js +19 -23
  200. package/lib/table/src/header.min.js +1 -1
  201. package/lib/table/src/methods.js +608 -599
  202. package/lib/table/src/methods.min.js +1 -1
  203. package/lib/table/src/props.js +296 -0
  204. package/lib/table/src/props.min.js +1 -0
  205. package/lib/table/src/table.js +150 -419
  206. package/lib/table/src/table.min.js +1 -1
  207. package/lib/table/src/util.js +73 -23
  208. package/lib/table/src/util.min.js +1 -1
  209. package/lib/table/style/style.css +1715 -361
  210. package/lib/table/style/style.min.css +1 -1
  211. package/lib/toolbar/index.js +9 -6
  212. package/lib/toolbar/index.min.js +1 -1
  213. package/lib/toolbar/src/toolbar.js +579 -413
  214. package/lib/toolbar/src/toolbar.min.js +1 -1
  215. package/lib/toolbar/style/style.css +11 -37
  216. package/lib/toolbar/style/style.min.css +1 -1
  217. package/lib/ui/index.js +382 -16
  218. package/lib/ui/index.min.js +1 -1
  219. package/lib/ui/src/comp.js +9 -0
  220. package/lib/ui/src/comp.min.js +1 -0
  221. package/lib/ui/src/dom.js +184 -0
  222. package/lib/ui/src/dom.min.js +1 -0
  223. package/lib/ui/src/log.js +11 -0
  224. package/lib/ui/src/log.min.js +1 -0
  225. package/lib/ui/src/utils.js +63 -0
  226. package/lib/ui/src/utils.min.js +1 -0
  227. package/lib/ui/src/vn.js +18 -0
  228. package/lib/ui/src/vn.min.js +1 -0
  229. package/lib/v-x-e-table/index.js +10 -277
  230. package/lib/v-x-e-table/index.min.js +1 -1
  231. package/lib/v-x-e-table/style/style.css +0 -1630
  232. package/lib/v-x-e-table/style/style.min.css +0 -1
  233. package/lib/vxe-colgroup/index.min.js +1 -1
  234. package/lib/vxe-colgroup/style/style.css +0 -26
  235. package/lib/vxe-column/index.min.js +1 -1
  236. package/lib/vxe-column/style/style.css +0 -26
  237. package/lib/vxe-grid/index.min.js +1 -1
  238. package/lib/vxe-grid/style/style.css +6 -32
  239. package/lib/vxe-grid/style/style.min.css +1 -1
  240. package/lib/vxe-table/index.min.js +1 -1
  241. package/lib/vxe-table/style/style.css +1715 -361
  242. package/lib/vxe-table/style/style.min.css +1 -1
  243. package/lib/vxe-toolbar/index.min.js +1 -1
  244. package/lib/vxe-toolbar/style/style.css +11 -37
  245. package/lib/vxe-toolbar/style/style.min.css +1 -1
  246. package/lib/vxe-ui/index.js +23 -0
  247. package/lib/vxe-ui/index.min.js +1 -0
  248. package/lib/vxe-v-x-e-table/index.js +23 -0
  249. package/lib/vxe-v-x-e-table/index.min.js +1 -0
  250. package/lib/vxe-v-x-e-table/style/style.css +0 -0
  251. package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
  252. package/package.json +18 -25
  253. package/packages/colgroup/index.ts +22 -0
  254. package/packages/column/index.ts +22 -0
  255. package/packages/components.ts +43 -0
  256. package/packages/grid/index.ts +18 -0
  257. package/packages/grid/src/grid.ts +1129 -0
  258. package/packages/index.ts +4 -0
  259. package/packages/locale/lang/en-US.ts +675 -0
  260. package/packages/locale/lang/es-ES.ts +675 -0
  261. package/packages/locale/lang/hu-HU.ts +673 -0
  262. package/packages/locale/lang/ja-JP.ts +675 -0
  263. package/packages/locale/lang/ko-KR.ts +675 -0
  264. package/packages/locale/lang/pt-BR.ts +675 -0
  265. package/packages/locale/lang/ru-RU.ts +675 -0
  266. package/packages/locale/lang/vi-VN.ts +675 -0
  267. package/packages/locale/lang/zh-CN.ts +675 -0
  268. package/packages/locale/lang/zh-TC.ts +675 -0
  269. package/packages/table/index.ts +19 -0
  270. package/packages/table/module/custom/mixin.ts +87 -0
  271. package/packages/table/module/custom/panel.ts +984 -0
  272. package/packages/table/module/edit/mixin.ts +797 -0
  273. package/packages/table/module/export/export-panel.ts +452 -0
  274. package/packages/table/module/export/import-panel.ts +188 -0
  275. package/packages/table/module/export/mixin.ts +1504 -0
  276. package/packages/table/module/export/util.ts +24 -0
  277. package/packages/table/module/filter/mixin.ts +273 -0
  278. package/packages/table/module/filter/panel.ts +220 -0
  279. package/packages/table/module/keyboard/mixin.ts +355 -0
  280. package/packages/table/module/menu/mixin.ts +272 -0
  281. package/packages/table/module/menu/panel.ts +141 -0
  282. package/packages/table/module/validator/mixin.ts +475 -0
  283. package/packages/table/render/index.ts +863 -0
  284. package/packages/table/src/body.ts +842 -0
  285. package/packages/table/src/cell.ts +872 -0
  286. package/packages/table/src/column.ts +141 -0
  287. package/packages/table/src/columnInfo.ts +169 -0
  288. package/packages/table/src/footer.ts +300 -0
  289. package/packages/table/src/header.ts +304 -0
  290. package/packages/table/src/methods.ts +5559 -0
  291. package/packages/table/src/props.ts +173 -0
  292. package/packages/table/src/table.ts +1186 -0
  293. package/packages/table/src/util.ts +410 -0
  294. package/packages/toolbar/index.ts +18 -0
  295. package/packages/toolbar/src/toolbar.ts +733 -0
  296. package/packages/ui/index.ts +397 -0
  297. package/packages/ui/src/comp.ts +3 -0
  298. package/packages/ui/src/dom.ts +163 -0
  299. package/packages/ui/src/log.ts +8 -0
  300. package/packages/ui/src/utils.ts +54 -0
  301. package/packages/ui/src/vn.ts +14 -0
  302. package/packages/v-x-e-table/index.ts +4 -0
  303. package/styles/all.scss +6 -32
  304. package/styles/base.scss +16 -0
  305. package/styles/components/colgroup.scss +0 -0
  306. package/styles/components/column.scss +0 -0
  307. package/styles/components/grid.scss +62 -0
  308. package/styles/components/icon.scss +187 -0
  309. package/styles/components/old-icon.scss +717 -0
  310. package/styles/components/table-module/all.scss +7 -0
  311. package/styles/components/table-module/custom.scss +381 -0
  312. package/styles/components/table-module/edit.scss +0 -0
  313. package/styles/components/table-module/export.scss +127 -0
  314. package/styles/components/table-module/filter.scss +112 -0
  315. package/styles/components/table-module/keyboard.scss +0 -0
  316. package/styles/components/table-module/menu.scss +86 -0
  317. package/styles/components/table-module/validator.scss +0 -0
  318. package/styles/components/table.scss +1492 -0
  319. package/styles/components/toolbar.scss +102 -0
  320. package/styles/components/ui.scss +0 -0
  321. package/styles/components/v-x-e-table.scss +0 -0
  322. package/styles/cssvar.scss +3 -2
  323. package/styles/default.scss +2 -0
  324. package/styles/helpers/mixin.scss +16 -13
  325. package/styles/icon/iconfont.ttf +0 -0
  326. package/styles/icon/iconfont.woff +0 -0
  327. package/styles/icon/iconfont.woff2 +0 -0
  328. package/styles/modules.scss +6 -33
  329. package/styles/theme/base.scss +89 -0
  330. package/styles/theme/dark.scss +41 -0
  331. package/styles/theme/light.scss +39 -0
  332. package/styles/variable.scss +2 -275
  333. package/types/all.d.ts +45 -70
  334. package/types/index.d.ts +2 -7
  335. package/lib/all.js +0 -459
  336. package/lib/all.min.js +0 -1
  337. package/lib/button/index.d.ts +0 -4
  338. package/lib/button/index.js +0 -17
  339. package/lib/button/index.min.js +0 -1
  340. package/lib/button/src/button.js +0 -512
  341. package/lib/button/src/button.min.js +0 -1
  342. package/lib/button/src/group.js +0 -71
  343. package/lib/button/src/group.min.js +0 -1
  344. package/lib/button/style/style.css +0 -571
  345. package/lib/button/style/style.min.css +0 -1
  346. package/lib/button-group/index.d.ts +0 -4
  347. package/lib/button-group/index.js +0 -17
  348. package/lib/button-group/index.min.js +0 -1
  349. package/lib/button-group/style/style.css +0 -29
  350. package/lib/button-group/style/style.min.css +0 -1
  351. package/lib/checkbox/index.d.ts +0 -4
  352. package/lib/checkbox/index.js +0 -17
  353. package/lib/checkbox/index.min.js +0 -1
  354. package/lib/checkbox/src/checkbox.js +0 -138
  355. package/lib/checkbox/src/checkbox.min.js +0 -1
  356. package/lib/checkbox/src/group.js +0 -105
  357. package/lib/checkbox/src/group.min.js +0 -1
  358. package/lib/checkbox/style/index.js +0 -1
  359. package/lib/checkbox/style/style.css +0 -292
  360. package/lib/checkbox/style/style.min.css +0 -1
  361. package/lib/checkbox-group/index.d.ts +0 -4
  362. package/lib/checkbox-group/index.js +0 -17
  363. package/lib/checkbox-group/index.min.js +0 -1
  364. package/lib/checkbox-group/style/style.css +0 -26
  365. package/lib/colgroup/index.d.ts +0 -4
  366. package/lib/column/index.d.ts +0 -4
  367. package/lib/custom/index.d.ts +0 -4
  368. package/lib/custom/index.js +0 -21
  369. package/lib/custom/index.min.js +0 -1
  370. package/lib/custom/src/mixin.js +0 -117
  371. package/lib/custom/src/mixin.min.js +0 -1
  372. package/lib/custom/src/panel.js +0 -865
  373. package/lib/custom/src/panel.min.js +0 -1
  374. package/lib/custom/style/index.js +0 -1
  375. package/lib/custom/style/style.css +0 -629
  376. package/lib/custom/style/style.min.css +0 -1
  377. package/lib/edit/index.d.ts +0 -4
  378. package/lib/edit/index.js +0 -18
  379. package/lib/edit/index.min.js +0 -1
  380. package/lib/edit/src/mixin.js +0 -973
  381. package/lib/edit/src/mixin.min.js +0 -1
  382. package/lib/edit/style/index.js +0 -1
  383. package/lib/edit/style/style.css +0 -26
  384. package/lib/export/index.d.ts +0 -4
  385. package/lib/export/index.js +0 -59
  386. package/lib/export/index.min.js +0 -1
  387. package/lib/export/src/export-panel.js +0 -413
  388. package/lib/export/src/export-panel.min.js +0 -1
  389. package/lib/export/src/import-panel.js +0 -176
  390. package/lib/export/src/import-panel.min.js +0 -1
  391. package/lib/export/src/mixin.js +0 -1762
  392. package/lib/export/src/mixin.min.js +0 -1
  393. package/lib/export/style/index.js +0 -1
  394. package/lib/export/style/style.css +0 -219
  395. package/lib/export/style/style.min.css +0 -1
  396. package/lib/filter/index.d.ts +0 -4
  397. package/lib/filter/index.js +0 -21
  398. package/lib/filter/index.min.js +0 -1
  399. package/lib/filter/src/mixin.js +0 -328
  400. package/lib/filter/src/mixin.min.js +0 -1
  401. package/lib/filter/src/panel.js +0 -215
  402. package/lib/filter/src/panel.min.js +0 -1
  403. package/lib/filter/style/index.js +0 -1
  404. package/lib/filter/style/style.css +0 -166
  405. package/lib/filter/style/style.min.css +0 -1
  406. package/lib/form/index.d.ts +0 -4
  407. package/lib/form/index.js +0 -17
  408. package/lib/form/index.min.js +0 -1
  409. package/lib/form/src/form-config-item.js +0 -194
  410. package/lib/form/src/form-config-item.min.js +0 -1
  411. package/lib/form/src/form-gather.js +0 -36
  412. package/lib/form/src/form-gather.min.js +0 -1
  413. package/lib/form/src/form-item.js +0 -259
  414. package/lib/form/src/form-item.min.js +0 -1
  415. package/lib/form/src/form.js +0 -764
  416. package/lib/form/src/form.min.js +0 -1
  417. package/lib/form/src/render.js +0 -81
  418. package/lib/form/src/render.min.js +0 -1
  419. package/lib/form/src/util.js +0 -148
  420. package/lib/form/src/util.min.js +0 -1
  421. package/lib/form/style/index.js +0 -1
  422. package/lib/form/style/style.css +0 -444
  423. package/lib/form/style/style.min.css +0 -1
  424. package/lib/form-gather/index.d.ts +0 -4
  425. package/lib/form-gather/index.js +0 -17
  426. package/lib/form-gather/index.min.js +0 -1
  427. package/lib/form-gather/style/index.js +0 -1
  428. package/lib/form-gather/style/style.css +0 -26
  429. package/lib/form-item/index.d.ts +0 -4
  430. package/lib/form-item/index.js +0 -17
  431. package/lib/form-item/index.min.js +0 -1
  432. package/lib/form-item/style/index.js +0 -1
  433. package/lib/form-item/style/style.css +0 -26
  434. package/lib/grid/index.d.ts +0 -4
  435. package/lib/icon/index.d.ts +0 -4
  436. package/lib/icon/index.js +0 -17
  437. package/lib/icon/index.min.js +0 -1
  438. package/lib/icon/src/icon.js +0 -32
  439. package/lib/icon/src/icon.min.js +0 -1
  440. package/lib/icon/style/iconfont.1724894779531.ttf +0 -0
  441. package/lib/icon/style/iconfont.1724894779531.woff +0 -0
  442. package/lib/icon/style/iconfont.1724894779531.woff2 +0 -0
  443. package/lib/icon/style/index.js +0 -1
  444. package/lib/icon/style/style.css +0 -1550
  445. package/lib/icon/style/style.min.css +0 -1550
  446. package/lib/iconfont.1724894779531.ttf +0 -0
  447. package/lib/iconfont.1724894779531.woff +0 -0
  448. package/lib/iconfont.1724894779531.woff2 +0 -0
  449. package/lib/index.common.min.js +0 -1
  450. package/lib/index.css +0 -1
  451. package/lib/input/index.d.ts +0 -4
  452. package/lib/input/index.js +0 -17
  453. package/lib/input/index.min.js +0 -1
  454. package/lib/input/src/date.js +0 -44
  455. package/lib/input/src/date.min.js +0 -1
  456. package/lib/input/src/input.js +0 -2481
  457. package/lib/input/src/input.min.js +0 -1
  458. package/lib/input/src/number.js +0 -18
  459. package/lib/input/src/number.min.js +0 -1
  460. package/lib/input/style/index.js +0 -1
  461. package/lib/input/style/style.css +0 -1039
  462. package/lib/input/style/style.min.css +0 -1
  463. package/lib/keyboard/index.d.ts +0 -4
  464. package/lib/keyboard/index.js +0 -18
  465. package/lib/keyboard/index.min.js +0 -1
  466. package/lib/keyboard/src/mixin.js +0 -413
  467. package/lib/keyboard/src/mixin.min.js +0 -1
  468. package/lib/keyboard/style/index.js +0 -1
  469. package/lib/keyboard/style/style.css +0 -26
  470. package/lib/list/index.d.ts +0 -4
  471. package/lib/list/index.js +0 -17
  472. package/lib/list/index.min.js +0 -1
  473. package/lib/list/src/list.js +0 -356
  474. package/lib/list/src/list.min.js +0 -1
  475. package/lib/list/style/index.js +0 -1
  476. package/lib/list/style/style.css +0 -52
  477. package/lib/list/style/style.min.css +0 -1
  478. package/lib/loading/index.d.ts +0 -4
  479. package/lib/loading/index.js +0 -17
  480. package/lib/loading/index.min.js +0 -1
  481. package/lib/loading/src/loading.js +0 -46
  482. package/lib/loading/src/loading.min.js +0 -1
  483. package/lib/loading/style/index.js +0 -1
  484. package/lib/loading/style/style.css +0 -104
  485. package/lib/loading/style/style.min.css +0 -1
  486. package/lib/locale/lang/language.d.ts +0 -5
  487. package/lib/menu/index.d.ts +0 -4
  488. package/lib/menu/index.js +0 -21
  489. package/lib/menu/index.min.js +0 -1
  490. package/lib/menu/src/mixin.js +0 -331
  491. package/lib/menu/src/mixin.min.js +0 -1
  492. package/lib/menu/src/panel.js +0 -117
  493. package/lib/menu/src/panel.min.js +0 -1
  494. package/lib/menu/style/index.js +0 -1
  495. package/lib/menu/style/style.css +0 -126
  496. package/lib/menu/style/style.min.css +0 -1
  497. package/lib/mixins/size.js +0 -15
  498. package/lib/mixins/size.min.js +0 -1
  499. package/lib/modal/index.d.ts +0 -4
  500. package/lib/modal/index.js +0 -131
  501. package/lib/modal/index.min.js +0 -1
  502. package/lib/modal/src/modal.js +0 -1114
  503. package/lib/modal/src/modal.min.js +0 -1
  504. package/lib/modal/style/index.js +0 -1
  505. package/lib/modal/style/style.css +0 -354
  506. package/lib/modal/style/style.min.css +0 -1
  507. package/lib/optgroup/index.d.ts +0 -4
  508. package/lib/optgroup/index.js +0 -17
  509. package/lib/optgroup/index.min.js +0 -1
  510. package/lib/optgroup/style/index.js +0 -1
  511. package/lib/optgroup/style/style.css +0 -26
  512. package/lib/option/index.d.ts +0 -4
  513. package/lib/option/index.js +0 -17
  514. package/lib/option/index.min.js +0 -1
  515. package/lib/option/style/index.js +0 -1
  516. package/lib/option/style/style.css +0 -26
  517. package/lib/pager/index.d.ts +0 -4
  518. package/lib/pager/index.js +0 -17
  519. package/lib/pager/index.min.js +0 -1
  520. package/lib/pager/src/pager.js +0 -550
  521. package/lib/pager/src/pager.min.js +0 -1
  522. package/lib/pager/style/index.js +0 -1
  523. package/lib/pager/style/style.css +0 -329
  524. package/lib/pager/style/style.min.css +0 -1
  525. package/lib/pulldown/index.d.ts +0 -4
  526. package/lib/pulldown/index.js +0 -17
  527. package/lib/pulldown/index.min.js +0 -1
  528. package/lib/pulldown/src/pulldown.js +0 -316
  529. package/lib/pulldown/src/pulldown.min.js +0 -1
  530. package/lib/pulldown/style/index.js +0 -1
  531. package/lib/pulldown/style/style.css +0 -85
  532. package/lib/pulldown/style/style.min.css +0 -1
  533. package/lib/radio/index.d.ts +0 -4
  534. package/lib/radio/index.js +0 -17
  535. package/lib/radio/index.min.js +0 -1
  536. package/lib/radio/src/button.js +0 -128
  537. package/lib/radio/src/button.min.js +0 -1
  538. package/lib/radio/src/group.js +0 -97
  539. package/lib/radio/src/group.min.js +0 -1
  540. package/lib/radio/src/radio.js +0 -133
  541. package/lib/radio/src/radio.min.js +0 -1
  542. package/lib/radio/style/index.js +0 -1
  543. package/lib/radio/style/style.css +0 -328
  544. package/lib/radio/style/style.min.css +0 -1
  545. package/lib/radio-button/index.d.ts +0 -4
  546. package/lib/radio-button/index.js +0 -17
  547. package/lib/radio-button/index.min.js +0 -1
  548. package/lib/radio-button/style/index.js +0 -1
  549. package/lib/radio-button/style/style.css +0 -26
  550. package/lib/radio-group/index.d.ts +0 -4
  551. package/lib/radio-group/index.js +0 -17
  552. package/lib/radio-group/index.min.js +0 -1
  553. package/lib/radio-group/style/index.js +0 -1
  554. package/lib/radio-group/style/style.css +0 -26
  555. package/lib/select/index.d.ts +0 -4
  556. package/lib/select/index.js +0 -23
  557. package/lib/select/index.min.js +0 -1
  558. package/lib/select/src/optgroup.js +0 -57
  559. package/lib/select/src/optgroup.min.js +0 -1
  560. package/lib/select/src/option.js +0 -51
  561. package/lib/select/src/option.min.js +0 -1
  562. package/lib/select/src/select.js +0 -1068
  563. package/lib/select/src/select.min.js +0 -1
  564. package/lib/select/src/util.js +0 -74
  565. package/lib/select/src/util.min.js +0 -1
  566. package/lib/select/style/index.js +0 -1
  567. package/lib/select/style/style.css +0 -229
  568. package/lib/select/style/style.min.css +0 -1
  569. package/lib/switch/index.d.ts +0 -4
  570. package/lib/switch/index.js +0 -17
  571. package/lib/switch/index.min.js +0 -1
  572. package/lib/switch/src/switch.js +0 -161
  573. package/lib/switch/src/switch.min.js +0 -1
  574. package/lib/switch/style/index.js +0 -1
  575. package/lib/switch/style/style.css +0 -134
  576. package/lib/switch/style/style.min.css +0 -1
  577. package/lib/table/index.d.ts +0 -4
  578. package/lib/textarea/index.d.ts +0 -4
  579. package/lib/textarea/index.js +0 -17
  580. package/lib/textarea/index.min.js +0 -1
  581. package/lib/textarea/src/textarea.js +0 -282
  582. package/lib/textarea/src/textarea.min.js +0 -1
  583. package/lib/textarea/style/index.js +0 -1
  584. package/lib/textarea/style/style.css +0 -131
  585. package/lib/textarea/style/style.min.css +0 -1
  586. package/lib/toolbar/index.d.ts +0 -4
  587. package/lib/tools/dom.js +0 -196
  588. package/lib/tools/dom.min.js +0 -1
  589. package/lib/tools/event.js +0 -96
  590. package/lib/tools/event.min.js +0 -1
  591. package/lib/tools/log.js +0 -22
  592. package/lib/tools/log.min.js +0 -1
  593. package/lib/tools/resize.js +0 -103
  594. package/lib/tools/resize.min.js +0 -1
  595. package/lib/tools/utils.js +0 -116
  596. package/lib/tools/utils.min.js +0 -1
  597. package/lib/tools/vn.js +0 -14
  598. package/lib/tools/vn.min.js +0 -1
  599. package/lib/tooltip/index.d.ts +0 -4
  600. package/lib/tooltip/index.js +0 -18
  601. package/lib/tooltip/index.min.js +0 -1
  602. package/lib/tooltip/src/tooltip.js +0 -361
  603. package/lib/tooltip/src/tooltip.min.js +0 -1
  604. package/lib/tooltip/style/index.js +0 -1
  605. package/lib/tooltip/style/style.css +0 -130
  606. package/lib/tooltip/style/style.min.css +0 -1
  607. package/lib/ui/index.d.ts +0 -4
  608. package/lib/v-x-e-table/index.d.ts +0 -4
  609. package/lib/v-x-e-table/src/commands.js +0 -74
  610. package/lib/v-x-e-table/src/commands.min.js +0 -1
  611. package/lib/v-x-e-table/src/conf.js +0 -420
  612. package/lib/v-x-e-table/src/conf.min.js +0 -1
  613. package/lib/v-x-e-table/src/formats.js +0 -74
  614. package/lib/v-x-e-table/src/formats.min.js +0 -1
  615. package/lib/v-x-e-table/src/interceptor.js +0 -59
  616. package/lib/v-x-e-table/src/interceptor.min.js +0 -1
  617. package/lib/v-x-e-table/src/menus.js +0 -74
  618. package/lib/v-x-e-table/src/menus.min.js +0 -1
  619. package/lib/v-x-e-table/src/renderer.js +0 -1026
  620. package/lib/v-x-e-table/src/renderer.min.js +0 -1
  621. package/lib/v-x-e-table/src/store.js +0 -62
  622. package/lib/v-x-e-table/src/store.min.js +0 -1
  623. package/lib/v-x-e-table/src/theme.js +0 -25
  624. package/lib/v-x-e-table/src/theme.min.js +0 -1
  625. package/lib/v-x-e-table/src/validators.js +0 -14
  626. package/lib/v-x-e-table/src/validators.min.js +0 -1
  627. package/lib/validator/index.d.ts +0 -4
  628. package/lib/validator/index.js +0 -18
  629. package/lib/validator/index.min.js +0 -1
  630. package/lib/validator/src/mixin.js +0 -545
  631. package/lib/validator/src/mixin.min.js +0 -1
  632. package/lib/validator/style/index.js +0 -1
  633. package/lib/validator/style/style.css +0 -26
  634. package/lib/vxe-button/index.d.ts +0 -4
  635. package/lib/vxe-button/index.js +0 -23
  636. package/lib/vxe-button/index.min.js +0 -1
  637. package/lib/vxe-button/style/index.js +0 -1
  638. package/lib/vxe-button/style/style.css +0 -571
  639. package/lib/vxe-button/style/style.min.css +0 -1
  640. package/lib/vxe-button-group/index.d.ts +0 -4
  641. package/lib/vxe-button-group/index.js +0 -23
  642. package/lib/vxe-button-group/index.min.js +0 -1
  643. package/lib/vxe-button-group/style/index.js +0 -1
  644. package/lib/vxe-button-group/style/style.css +0 -29
  645. package/lib/vxe-button-group/style/style.min.css +0 -1
  646. package/lib/vxe-checkbox/index.d.ts +0 -4
  647. package/lib/vxe-checkbox/index.js +0 -23
  648. package/lib/vxe-checkbox/index.min.js +0 -1
  649. package/lib/vxe-checkbox/style/index.js +0 -1
  650. package/lib/vxe-checkbox/style/style.css +0 -292
  651. package/lib/vxe-checkbox/style/style.min.css +0 -1
  652. package/lib/vxe-checkbox-group/index.d.ts +0 -4
  653. package/lib/vxe-checkbox-group/index.js +0 -23
  654. package/lib/vxe-checkbox-group/index.min.js +0 -1
  655. package/lib/vxe-checkbox-group/style/index.js +0 -1
  656. package/lib/vxe-checkbox-group/style/style.css +0 -26
  657. package/lib/vxe-colgroup/index.d.ts +0 -4
  658. package/lib/vxe-column/index.d.ts +0 -4
  659. package/lib/vxe-form/index.d.ts +0 -4
  660. package/lib/vxe-form/index.js +0 -23
  661. package/lib/vxe-form/index.min.js +0 -1
  662. package/lib/vxe-form/style/index.js +0 -1
  663. package/lib/vxe-form/style/style.css +0 -444
  664. package/lib/vxe-form/style/style.min.css +0 -1
  665. package/lib/vxe-form-gather/index.d.ts +0 -4
  666. package/lib/vxe-form-gather/index.js +0 -23
  667. package/lib/vxe-form-gather/index.min.js +0 -1
  668. package/lib/vxe-form-gather/style/index.js +0 -1
  669. package/lib/vxe-form-gather/style/style.css +0 -26
  670. package/lib/vxe-form-item/index.d.ts +0 -4
  671. package/lib/vxe-form-item/index.js +0 -23
  672. package/lib/vxe-form-item/index.min.js +0 -1
  673. package/lib/vxe-form-item/style/index.js +0 -1
  674. package/lib/vxe-form-item/style/style.css +0 -26
  675. package/lib/vxe-grid/index.d.ts +0 -4
  676. package/lib/vxe-icon/index.d.ts +0 -4
  677. package/lib/vxe-icon/index.js +0 -23
  678. package/lib/vxe-icon/index.min.js +0 -1
  679. package/lib/vxe-icon/style/index.js +0 -1
  680. package/lib/vxe-icon/style/style.css +0 -1550
  681. package/lib/vxe-icon/style/style.min.css +0 -1
  682. package/lib/vxe-input/index.d.ts +0 -4
  683. package/lib/vxe-input/index.js +0 -23
  684. package/lib/vxe-input/index.min.js +0 -1
  685. package/lib/vxe-input/style/index.js +0 -1
  686. package/lib/vxe-input/style/style.css +0 -1039
  687. package/lib/vxe-input/style/style.min.css +0 -1
  688. package/lib/vxe-list/index.d.ts +0 -4
  689. package/lib/vxe-list/index.js +0 -23
  690. package/lib/vxe-list/index.min.js +0 -1
  691. package/lib/vxe-list/style/index.js +0 -1
  692. package/lib/vxe-list/style/style.css +0 -52
  693. package/lib/vxe-list/style/style.min.css +0 -1
  694. package/lib/vxe-loading/index.d.ts +0 -4
  695. package/lib/vxe-loading/index.js +0 -23
  696. package/lib/vxe-loading/index.min.js +0 -1
  697. package/lib/vxe-loading/style/index.js +0 -1
  698. package/lib/vxe-loading/style/style.css +0 -104
  699. package/lib/vxe-loading/style/style.min.css +0 -1
  700. package/lib/vxe-modal/index.d.ts +0 -4
  701. package/lib/vxe-modal/index.js +0 -23
  702. package/lib/vxe-modal/index.min.js +0 -1
  703. package/lib/vxe-modal/style/index.js +0 -1
  704. package/lib/vxe-modal/style/style.css +0 -354
  705. package/lib/vxe-modal/style/style.min.css +0 -1
  706. package/lib/vxe-optgroup/index.d.ts +0 -4
  707. package/lib/vxe-optgroup/index.js +0 -23
  708. package/lib/vxe-optgroup/index.min.js +0 -1
  709. package/lib/vxe-optgroup/style/index.js +0 -1
  710. package/lib/vxe-optgroup/style/style.css +0 -26
  711. package/lib/vxe-option/index.d.ts +0 -4
  712. package/lib/vxe-option/index.js +0 -23
  713. package/lib/vxe-option/index.min.js +0 -1
  714. package/lib/vxe-option/style/index.js +0 -1
  715. package/lib/vxe-option/style/style.css +0 -26
  716. package/lib/vxe-pager/index.d.ts +0 -4
  717. package/lib/vxe-pager/index.js +0 -23
  718. package/lib/vxe-pager/index.min.js +0 -1
  719. package/lib/vxe-pager/style/index.js +0 -1
  720. package/lib/vxe-pager/style/style.css +0 -329
  721. package/lib/vxe-pager/style/style.min.css +0 -1
  722. package/lib/vxe-pulldown/index.d.ts +0 -4
  723. package/lib/vxe-pulldown/index.js +0 -23
  724. package/lib/vxe-pulldown/index.min.js +0 -1
  725. package/lib/vxe-pulldown/style/index.js +0 -1
  726. package/lib/vxe-pulldown/style/style.css +0 -85
  727. package/lib/vxe-pulldown/style/style.min.css +0 -1
  728. package/lib/vxe-radio/index.d.ts +0 -4
  729. package/lib/vxe-radio/index.js +0 -23
  730. package/lib/vxe-radio/index.min.js +0 -1
  731. package/lib/vxe-radio/style/index.js +0 -1
  732. package/lib/vxe-radio/style/style.css +0 -328
  733. package/lib/vxe-radio/style/style.min.css +0 -1
  734. package/lib/vxe-radio-button/index.d.ts +0 -4
  735. package/lib/vxe-radio-button/index.js +0 -23
  736. package/lib/vxe-radio-button/index.min.js +0 -1
  737. package/lib/vxe-radio-button/style/index.js +0 -1
  738. package/lib/vxe-radio-button/style/style.css +0 -26
  739. package/lib/vxe-radio-group/index.d.ts +0 -4
  740. package/lib/vxe-radio-group/index.js +0 -23
  741. package/lib/vxe-radio-group/index.min.js +0 -1
  742. package/lib/vxe-radio-group/style/index.js +0 -1
  743. package/lib/vxe-radio-group/style/style.css +0 -26
  744. package/lib/vxe-select/index.d.ts +0 -4
  745. package/lib/vxe-select/index.js +0 -23
  746. package/lib/vxe-select/index.min.js +0 -1
  747. package/lib/vxe-select/style/index.js +0 -1
  748. package/lib/vxe-select/style/style.css +0 -229
  749. package/lib/vxe-select/style/style.min.css +0 -1
  750. package/lib/vxe-switch/index.d.ts +0 -4
  751. package/lib/vxe-switch/index.js +0 -23
  752. package/lib/vxe-switch/index.min.js +0 -1
  753. package/lib/vxe-switch/style/index.js +0 -1
  754. package/lib/vxe-switch/style/style.css +0 -134
  755. package/lib/vxe-switch/style/style.min.css +0 -1
  756. package/lib/vxe-table/index.d.ts +0 -4
  757. package/lib/vxe-table-custom-module/index.d.ts +0 -4
  758. package/lib/vxe-table-custom-module/index.js +0 -23
  759. package/lib/vxe-table-custom-module/index.min.js +0 -1
  760. package/lib/vxe-table-custom-module/style/index.js +0 -1
  761. package/lib/vxe-table-custom-module/style/style.css +0 -629
  762. package/lib/vxe-table-custom-module/style/style.min.css +0 -1
  763. package/lib/vxe-table-edit-module/index.d.ts +0 -4
  764. package/lib/vxe-table-edit-module/index.js +0 -23
  765. package/lib/vxe-table-edit-module/index.min.js +0 -1
  766. package/lib/vxe-table-edit-module/style/index.js +0 -1
  767. package/lib/vxe-table-edit-module/style/style.css +0 -26
  768. package/lib/vxe-table-export-module/index.d.ts +0 -4
  769. package/lib/vxe-table-export-module/index.js +0 -23
  770. package/lib/vxe-table-export-module/index.min.js +0 -1
  771. package/lib/vxe-table-export-module/style/index.js +0 -1
  772. package/lib/vxe-table-export-module/style/style.css +0 -219
  773. package/lib/vxe-table-export-module/style/style.min.css +0 -1
  774. package/lib/vxe-table-filter-module/index.d.ts +0 -4
  775. package/lib/vxe-table-filter-module/index.js +0 -23
  776. package/lib/vxe-table-filter-module/index.min.js +0 -1
  777. package/lib/vxe-table-filter-module/style/index.js +0 -1
  778. package/lib/vxe-table-filter-module/style/style.css +0 -166
  779. package/lib/vxe-table-filter-module/style/style.min.css +0 -1
  780. package/lib/vxe-table-keyboard-module/index.d.ts +0 -4
  781. package/lib/vxe-table-keyboard-module/index.js +0 -23
  782. package/lib/vxe-table-keyboard-module/index.min.js +0 -1
  783. package/lib/vxe-table-keyboard-module/style/index.js +0 -1
  784. package/lib/vxe-table-keyboard-module/style/style.css +0 -26
  785. package/lib/vxe-table-menu-module/index.d.ts +0 -4
  786. package/lib/vxe-table-menu-module/index.js +0 -23
  787. package/lib/vxe-table-menu-module/index.min.js +0 -1
  788. package/lib/vxe-table-menu-module/style/index.js +0 -1
  789. package/lib/vxe-table-menu-module/style/style.css +0 -126
  790. package/lib/vxe-table-menu-module/style/style.min.css +0 -1
  791. package/lib/vxe-table-validator-module/index.d.ts +0 -4
  792. package/lib/vxe-table-validator-module/index.js +0 -23
  793. package/lib/vxe-table-validator-module/index.min.js +0 -1
  794. package/lib/vxe-table-validator-module/style/index.js +0 -1
  795. package/lib/vxe-table-validator-module/style/style.css +0 -26
  796. package/lib/vxe-textarea/index.d.ts +0 -4
  797. package/lib/vxe-textarea/index.js +0 -23
  798. package/lib/vxe-textarea/index.min.js +0 -1
  799. package/lib/vxe-textarea/style/index.js +0 -1
  800. package/lib/vxe-textarea/style/style.css +0 -131
  801. package/lib/vxe-textarea/style/style.min.css +0 -1
  802. package/lib/vxe-toolbar/index.d.ts +0 -4
  803. package/lib/vxe-tooltip/index.d.ts +0 -4
  804. package/lib/vxe-tooltip/index.js +0 -23
  805. package/lib/vxe-tooltip/index.min.js +0 -1
  806. package/lib/vxe-tooltip/style/index.js +0 -1
  807. package/lib/vxe-tooltip/style/style.css +0 -130
  808. package/lib/vxe-tooltip/style/style.min.css +0 -1
  809. package/packages/all.js +0 -136
  810. package/packages/button/index.d.ts +0 -4
  811. package/packages/button/index.js +0 -13
  812. package/packages/button/src/button.js +0 -460
  813. package/packages/button/src/group.js +0 -41
  814. package/packages/button-group/index.d.ts +0 -4
  815. package/packages/button-group/index.js +0 -13
  816. package/packages/checkbox/index.d.ts +0 -4
  817. package/packages/checkbox/index.js +0 -13
  818. package/packages/checkbox/src/checkbox.js +0 -108
  819. package/packages/checkbox/src/group.js +0 -86
  820. package/packages/checkbox-group/index.d.ts +0 -4
  821. package/packages/checkbox-group/index.js +0 -13
  822. package/packages/colgroup/index.d.ts +0 -4
  823. package/packages/colgroup/index.js +0 -15
  824. package/packages/column/index.d.ts +0 -4
  825. package/packages/column/index.js +0 -15
  826. package/packages/custom/index.d.ts +0 -4
  827. package/packages/custom/index.js +0 -17
  828. package/packages/custom/src/mixin.js +0 -87
  829. package/packages/custom/src/panel.js +0 -919
  830. package/packages/edit/index.d.ts +0 -4
  831. package/packages/edit/index.js +0 -14
  832. package/packages/edit/src/mixin.js +0 -790
  833. package/packages/export/index.d.ts +0 -4
  834. package/packages/export/index.js +0 -42
  835. package/packages/export/src/export-panel.js +0 -444
  836. package/packages/export/src/import-panel.js +0 -184
  837. package/packages/export/src/mixin.js +0 -1529
  838. package/packages/filter/index.d.ts +0 -4
  839. package/packages/filter/index.js +0 -17
  840. package/packages/filter/src/mixin.js +0 -271
  841. package/packages/filter/src/panel.js +0 -210
  842. package/packages/form/index.d.ts +0 -4
  843. package/packages/form/index.js +0 -13
  844. package/packages/form/src/form-config-item.js +0 -182
  845. package/packages/form/src/form-gather.js +0 -21
  846. package/packages/form/src/form-item.js +0 -246
  847. package/packages/form/src/form.js +0 -621
  848. package/packages/form/src/render.js +0 -81
  849. package/packages/form/src/util.js +0 -117
  850. package/packages/form-gather/index.d.ts +0 -4
  851. package/packages/form-gather/index.js +0 -13
  852. package/packages/form-item/index.d.ts +0 -4
  853. package/packages/form-item/index.js +0 -13
  854. package/packages/grid/index.d.ts +0 -4
  855. package/packages/grid/index.js +0 -15
  856. package/packages/grid/src/grid.js +0 -1118
  857. package/packages/icon/index.d.ts +0 -4
  858. package/packages/icon/index.js +0 -13
  859. package/packages/icon/src/icon.js +0 -22
  860. package/packages/index.common.js +0 -4
  861. package/packages/input/index.d.ts +0 -4
  862. package/packages/input/index.js +0 -13
  863. package/packages/input/src/date.js +0 -38
  864. package/packages/input/src/input.js +0 -2171
  865. package/packages/input/src/number.js +0 -12
  866. package/packages/keyboard/index.d.ts +0 -4
  867. package/packages/keyboard/index.js +0 -14
  868. package/packages/keyboard/src/mixin.js +0 -355
  869. package/packages/list/index.d.ts +0 -4
  870. package/packages/list/index.js +0 -13
  871. package/packages/list/src/list.js +0 -294
  872. package/packages/loading/index.d.ts +0 -4
  873. package/packages/loading/index.js +0 -13
  874. package/packages/loading/src/loading.js +0 -45
  875. package/packages/locale/lang/en-US.d.ts +0 -8
  876. package/packages/locale/lang/en-US.js +0 -670
  877. package/packages/locale/lang/es-ES.d.ts +0 -8
  878. package/packages/locale/lang/es-ES.js +0 -670
  879. package/packages/locale/lang/ja-JP.d.ts +0 -8
  880. package/packages/locale/lang/ja-JP.js +0 -670
  881. package/packages/locale/lang/language.d.ts +0 -5
  882. package/packages/locale/lang/pt-BR.d.ts +0 -8
  883. package/packages/locale/lang/pt-BR.js +0 -670
  884. package/packages/locale/lang/zh-CN.d.ts +0 -8
  885. package/packages/locale/lang/zh-CN.js +0 -670
  886. package/packages/locale/lang/zh-HK.d.ts +0 -8
  887. package/packages/locale/lang/zh-MO.d.ts +0 -8
  888. package/packages/locale/lang/zh-TC.d.ts +0 -8
  889. package/packages/locale/lang/zh-TC.js +0 -670
  890. package/packages/locale/lang/zh-TW.d.ts +0 -8
  891. package/packages/menu/index.d.ts +0 -4
  892. package/packages/menu/index.js +0 -17
  893. package/packages/menu/src/mixin.js +0 -270
  894. package/packages/menu/src/panel.js +0 -130
  895. package/packages/mixins/size.js +0 -8
  896. package/packages/modal/index.d.ts +0 -4
  897. package/packages/modal/index.js +0 -116
  898. package/packages/modal/src/modal.js +0 -822
  899. package/packages/optgroup/index.d.ts +0 -4
  900. package/packages/optgroup/index.js +0 -13
  901. package/packages/option/index.d.ts +0 -4
  902. package/packages/option/index.js +0 -13
  903. package/packages/pager/index.d.ts +0 -4
  904. package/packages/pager/index.js +0 -13
  905. package/packages/pager/src/pager.js +0 -477
  906. package/packages/pulldown/index.d.ts +0 -4
  907. package/packages/pulldown/index.js +0 -13
  908. package/packages/pulldown/src/pulldown.js +0 -273
  909. package/packages/radio/index.d.ts +0 -4
  910. package/packages/radio/index.js +0 -13
  911. package/packages/radio/src/button.js +0 -102
  912. package/packages/radio/src/group.js +0 -76
  913. package/packages/radio/src/radio.js +0 -109
  914. package/packages/radio-button/index.d.ts +0 -4
  915. package/packages/radio-button/index.js +0 -13
  916. package/packages/radio-group/index.d.ts +0 -4
  917. package/packages/radio-group/index.js +0 -13
  918. package/packages/select/index.d.ts +0 -4
  919. package/packages/select/index.js +0 -19
  920. package/packages/select/src/optgroup.js +0 -48
  921. package/packages/select/src/option.js +0 -42
  922. package/packages/select/src/select.js +0 -921
  923. package/packages/select/src/util.js +0 -52
  924. package/packages/switch/index.d.ts +0 -4
  925. package/packages/switch/index.js +0 -13
  926. package/packages/switch/src/switch.js +0 -138
  927. package/packages/table/index.d.ts +0 -4
  928. package/packages/table/index.js +0 -35
  929. package/packages/table/src/body.js +0 -826
  930. package/packages/table/src/cell.js +0 -842
  931. package/packages/table/src/column.js +0 -141
  932. package/packages/table/src/columnInfo.js +0 -168
  933. package/packages/table/src/footer.js +0 -293
  934. package/packages/table/src/header.js +0 -295
  935. package/packages/table/src/methods.js +0 -5532
  936. package/packages/table/src/table.js +0 -1297
  937. package/packages/table/src/util.js +0 -364
  938. package/packages/textarea/index.d.ts +0 -4
  939. package/packages/textarea/index.js +0 -13
  940. package/packages/textarea/src/textarea.js +0 -224
  941. package/packages/toolbar/index.d.ts +0 -4
  942. package/packages/toolbar/index.js +0 -13
  943. package/packages/toolbar/src/toolbar.js +0 -467
  944. package/packages/tools/dom.js +0 -179
  945. package/packages/tools/event.js +0 -82
  946. package/packages/tools/log.js +0 -16
  947. package/packages/tools/resize.js +0 -76
  948. package/packages/tools/utils.js +0 -94
  949. package/packages/tools/vn.js +0 -8
  950. package/packages/tooltip/index.d.ts +0 -4
  951. package/packages/tooltip/index.js +0 -14
  952. package/packages/tooltip/src/tooltip.js +0 -285
  953. package/packages/ui/index.d.ts +0 -4
  954. package/packages/ui/index.js +0 -4
  955. package/packages/v-x-e-table/index.d.ts +0 -4
  956. package/packages/v-x-e-table/index.js +0 -196
  957. package/packages/v-x-e-table/src/commands.js +0 -55
  958. package/packages/v-x-e-table/src/conf.js +0 -420
  959. package/packages/v-x-e-table/src/formats.js +0 -55
  960. package/packages/v-x-e-table/src/interceptor.js +0 -53
  961. package/packages/v-x-e-table/src/menus.js +0 -55
  962. package/packages/v-x-e-table/src/renderer.js +0 -951
  963. package/packages/v-x-e-table/src/store.js +0 -44
  964. package/packages/v-x-e-table/src/theme.js +0 -19
  965. package/packages/v-x-e-table/src/validators.js +0 -7
  966. package/packages/validator/index.d.ts +0 -4
  967. package/packages/validator/index.js +0 -14
  968. package/packages/validator/src/mixin.js +0 -473
  969. package/styles/base/common.scss +0 -88
  970. package/styles/button-group.scss +0 -5
  971. package/styles/button.scss +0 -374
  972. package/styles/checkbox-group.scss +0 -1
  973. package/styles/checkbox.scss +0 -91
  974. package/styles/colgroup.scss +0 -1
  975. package/styles/column.scss +0 -1
  976. package/styles/css-variable.scss +0 -272
  977. package/styles/custom.scss +0 -386
  978. package/styles/edit.scss +0 -1
  979. package/styles/export.scss +0 -126
  980. package/styles/filter.scss +0 -113
  981. package/styles/footer.scss +0 -1
  982. package/styles/form-gather.scss +0 -1
  983. package/styles/form-item.scss +0 -1
  984. package/styles/form.scss +0 -366
  985. package/styles/grid.scss +0 -64
  986. package/styles/header.scss +0 -1
  987. package/styles/icon.scss +0 -972
  988. package/styles/input.scss +0 -917
  989. package/styles/keyboard.scss +0 -1
  990. package/styles/list.scss +0 -28
  991. package/styles/loading.scss +0 -87
  992. package/styles/menu.scss +0 -89
  993. package/styles/modal.scss +0 -387
  994. package/styles/old-icon.scss +0 -722
  995. package/styles/optgroup.scss +0 -1
  996. package/styles/option.scss +0 -1
  997. package/styles/pager.scss +0 -270
  998. package/styles/pulldown.scss +0 -58
  999. package/styles/radio-button.scss +0 -1
  1000. package/styles/radio-group.scss +0 -1
  1001. package/styles/radio.scss +0 -147
  1002. package/styles/select.scss +0 -228
  1003. package/styles/switch.scss +0 -125
  1004. package/styles/table.scss +0 -1476
  1005. package/styles/textarea.scss +0 -104
  1006. package/styles/toolbar.scss +0 -103
  1007. package/styles/tooltip.scss +0 -127
  1008. package/styles/v-x-e-table.scss +0 -3
  1009. package/styles/validator.scss +0 -1
  1010. package/styles/vxe-table.scss +0 -1
  1011. package/types/button-group.d.ts +0 -11
  1012. package/types/button.d.ts +0 -49
  1013. package/types/checkbox-group.d.ts +0 -17
  1014. package/types/checkbox.d.ts +0 -33
  1015. package/types/colgroup.d.ts +0 -155
  1016. package/types/column.d.ts +0 -433
  1017. package/types/component.d.ts +0 -29
  1018. package/types/form-gather.d.ts +0 -13
  1019. package/types/form-item.d.ts +0 -217
  1020. package/types/form.d.ts +0 -149
  1021. package/types/grid.d.ts +0 -169
  1022. package/types/icon.d.ts +0 -7
  1023. package/types/input.d.ts +0 -163
  1024. package/types/list.d.ts +0 -71
  1025. package/types/loading.d.ts +0 -10
  1026. package/types/modal.d.ts +0 -329
  1027. package/types/module/custom.d.ts +0 -11
  1028. package/types/module/edit.d.ts +0 -67
  1029. package/types/module/export.d.ts +0 -255
  1030. package/types/module/filter.d.ts +0 -133
  1031. package/types/module/index.d.ts +0 -7
  1032. package/types/module/keyboard.d.ts +0 -11
  1033. package/types/module/menu.d.ts +0 -85
  1034. package/types/module/validator.d.ts +0 -77
  1035. package/types/optgroup.d.ts +0 -20
  1036. package/types/option.d.ts +0 -24
  1037. package/types/pager.d.ts +0 -123
  1038. package/types/pulldown.d.ts +0 -44
  1039. package/types/radio-button.d.ts +0 -20
  1040. package/types/radio-group.d.ts +0 -16
  1041. package/types/radio.d.ts +0 -32
  1042. package/types/select.d.ts +0 -66
  1043. package/types/switch.d.ts +0 -22
  1044. package/types/table.d.ts +0 -1662
  1045. package/types/textarea.d.ts +0 -65
  1046. package/types/toolbar.d.ts +0 -191
  1047. package/types/tooltip.d.ts +0 -40
  1048. package/types/v-x-e-table/commands.d.ts +0 -29
  1049. package/types/v-x-e-table/formats.d.ts +0 -28
  1050. package/types/v-x-e-table/index.d.ts +0 -229
  1051. package/types/v-x-e-table/interceptor.d.ts +0 -46
  1052. package/types/v-x-e-table/menus.d.ts +0 -24
  1053. package/types/v-x-e-table/renderer.d.ts +0 -355
  1054. package/types/v-x-e-table/validators.d.ts +0 -30
  1055. /package/{lib/checkbox-group/style/style.min.css → es/colgroup/style.css} +0 -0
  1056. /package/{lib/edit/style → es/colgroup}/style.min.css +0 -0
  1057. /package/{lib/form-gather/style/style.min.css → es/column/style.css} +0 -0
  1058. /package/{lib/form-item/style → es/column}/style.min.css +0 -0
  1059. /package/{lib/keyboard/style/style.min.css → es/ui/style.css} +0 -0
  1060. /package/{lib/optgroup/style → es/ui}/style.min.css +0 -0
  1061. /package/{lib/option/style/style.min.css → es/v-x-e-table/style.css} +0 -0
  1062. /package/{lib/radio-button/style → es/v-x-e-table}/style.min.css +0 -0
  1063. /package/{lib/radio-group/style/style.min.css → es/vxe-colgroup/style.css} +0 -0
  1064. /package/{lib/validator/style → es/vxe-colgroup}/style.min.css +0 -0
  1065. /package/{lib/vxe-checkbox-group/style/style.min.css → es/vxe-column/style.css} +0 -0
  1066. /package/{lib/vxe-form-gather/style → es/vxe-column}/style.min.css +0 -0
  1067. /package/{lib/vxe-form-item/style/style.min.css → es/vxe-ui/style.css} +0 -0
  1068. /package/{lib/vxe-optgroup/style → es/vxe-ui}/style.min.css +0 -0
  1069. /package/{lib/vxe-option/style/style.min.css → es/vxe-v-x-e-table/style.css} +0 -0
  1070. /package/{lib/vxe-radio-button/style → es/vxe-v-x-e-table}/style.min.css +0 -0
  1071. /package/lib/{button-group → ui}/style/index.js +0 -0
  1072. /package/lib/{vxe-radio-group/style/style.min.css → ui/style/style.css} +0 -0
  1073. /package/lib/{vxe-table-edit-module → ui}/style/style.min.css +0 -0
  1074. /package/lib/{button → vxe-ui}/style/index.js +0 -0
  1075. /package/lib/{vxe-table-keyboard-module/style/style.min.css → vxe-ui/style/style.css} +0 -0
  1076. /package/lib/{vxe-table-validator-module → vxe-ui}/style/style.min.css +0 -0
  1077. /package/lib/{checkbox-group → vxe-v-x-e-table}/style/index.js +0 -0
  1078. /package/packages/locale/lang/{zh-HK.js → zh-HK.ts} +0 -0
  1079. /package/packages/locale/lang/{zh-MO.js → zh-MO.ts} +0 -0
  1080. /package/packages/locale/lang/{zh-TW.js → zh-TW.ts} +0 -0
  1081. /package/packages/table/src/{group.js → group.ts} +0 -0
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,exports.handlePrint=handlePrint,exports.readLocalFile=readLocalFile,exports.saveLocalFile=saveLocalFile;var _xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../../ui"),_util=require("../../src/util"),_utils=require("../../../ui/src/utils"),_dom=require("../../../ui/src/dom"),_util2=require("./util"),_log=require("../../../ui/src/log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var o;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(o="Object"===(o={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}var htmlCellElem,fileForm,fileInput,printFrame,getI18n=_ui.VxeUI.getI18n,renderer=_ui.VxeUI.renderer,csvBOM="\ufeff",enterSymbol="\r\n";function createFrame(){var e=document.createElement("iframe");return e.className="vxe-table--print-frame",e}function hasTreeChildren(e,t){e=e.treeOpts,e=e.children||e.childrenField;return t[e]&&0<t[e].length}function getSeq(e,t,o,n,r,a){var l=e.seqOpts.seqMethod||r.seqMethod;return l?l({row:o,rowIndex:e.getRowIndex(o),$rowIndex:n,column:r,columnIndex:e.getColumnIndex(r),$columnIndex:a}):t}function defaultFilterExportColumn(e){return e.property||-1<["seq","checkbox","radio"].indexOf(e.type)}function toTableBorder(e){return!0===e?"full":e||"default"}function toBooleanValue(e){return _xeUtils.default.isBoolean(e)?e?"TRUE":"FALSE":e}function getLabelData(d,u,r,e){var a,p,m=u.isAllExpand,h=u.mode,t=d.treeConfig,o=d.treeOpts,f=d.radioOpts,g=d.checkboxOpts,x=d.columnOpts,o=o.children||o.childrenField;return htmlCellElem=htmlCellElem||document.createElement("div"),t?(a=[],p=new Map,_xeUtils.default.eachTree(e,function(e,l,t,i,o,n){var c,s=e._row||e,e=o&&o._row?o._row:o;(m||!e||p.has(e)&&d.isTreeExpandByRow(e))&&(o=hasTreeChildren(d,s),c={_row:s,_level:n.length-1,_hasChild:o,_expand:o&&d.isTreeExpandByRow(s)},r.forEach(function(e,t){var o="",n=e.editRender||e.cellRender,r=e.exportMethod;if(r=(r=!r&&n&&n.name&&(n=renderer.get(n.name))?n.tableExportMethod||n.exportMethod||n.cellExportMethod:r)||x.exportMethod)o=r({$table:d,row:s,column:e,options:u});else switch(e.type){case"seq":var a=i.map(function(e,t){return t%2==0?Number(e)+1:"."}).join(""),o="all"===h?a:getSeq(d,a,s,l,e,t);break;case"checkbox":o=toBooleanValue(d.isCheckedByCheckboxRow(s)),c._checkboxLabel=g.labelField?_xeUtils.default.get(s,g.labelField):"",c._checkboxDisabled=g.checkMethod&&!g.checkMethod({row:s});break;case"radio":o=toBooleanValue(d.isCheckedByRadioRow(s)),c._radioLabel=f.labelField?_xeUtils.default.get(s,f.labelField):"",c._radioDisabled=f.checkMethod&&!f.checkMethod({row:s});break;default:u.original?o=(0,_util.getCellValue)(s,e):(o=d.getCellLabel(s,e),"html"===e.type?(htmlCellElem.innerHTML=o,o=htmlCellElem.innerText.trim()):(a=d.getCellElement(s,e))&&(o=a.innerText.trim()))}c[e.id]=_xeUtils.default.toValueString(o)}),p.set(s,1),a.push(Object.assign(c,s)))},{children:o}),a):e.map(function(l,i){var c={_row:l};return r.forEach(function(e,t){var o="",n=e.editRender||e.cellRender,r=e.exportMethod;if(r=!r&&n&&n.name&&(n=renderer.get(n.name))?n.tableExportMethod||n.exportMethod||n.cellExportMethod:r)o=r({$table:d,row:l,column:e,options:u});else switch(e.type){case"seq":var a=i+1,o="all"===h?a:getSeq(d,a,l,i,e,t);break;case"checkbox":o=toBooleanValue(d.isCheckedByCheckboxRow(l)),c._checkboxLabel=g.labelField?_xeUtils.default.get(l,g.labelField):"",c._checkboxDisabled=g.checkMethod&&!g.checkMethod({row:l});break;case"radio":o=toBooleanValue(d.isCheckedByRadioRow(l)),c._radioLabel=f.labelField?_xeUtils.default.get(l,f.labelField):"",c._radioDisabled=f.checkMethod&&!f.checkMethod({row:l});break;default:u.original?o=(0,_util.getCellValue)(l,e):(o=d.getCellLabel(l,e),"html"===e.type?(htmlCellElem.innerHTML=o,o=htmlCellElem.innerText.trim()):(a=d.getCellElement(l,e))&&(o=a.innerText.trim()))}c[e.id]=_xeUtils.default.toValueString(o)}),c})}function getExportData(e,t){var o=t.columns,n=t.dataFilterMethod,r=t.data;return getLabelData(e,t,o,r=n?r.filter(function(e,t){return n({row:e,$rowIndex:t})}):r)}function getBooleanValue(e){return"TRUE"===e||"true"===e||!0===e}function getHeaderTitle(e,t,o){var n=e.columnOpts,n=o.headerExportMethod||n.headerExportMethod;return n?n({column:o,options:t,$table:e}):(t.original?o.property:o.getTitle())||""}function getFooterCellValue(e,t,o,n){var r=e.columnOpts,a=n.editRender||n.cellRender,l=n.footerExportMethod,a=(l=(l=!l&&a&&a.name&&(a=renderer.get(a.name))?a.tableFooterExportMethod||a.footerExportMethod||a.footerCellExportMethod:l)||r.footerExportMethod,e.getVTColumnIndex(n));return l?l({$table:e,items:o,itemIndex:a,row:o,_columnIndex:a,column:n,options:t}):_xeUtils.default.isArray(o)?_xeUtils.default.toValueString(o[a]):_xeUtils.default.get(o,n.field)}function getFooterData(e,t){var o=e.footerFilterMethod;return o?t.filter(function(e,t){return o({items:e,$rowIndex:t})}):t}function getCsvCellTypeLabel(e,t){if(t){if("seq"===e.type)return"\t".concat(t);switch(e.cellType){case"string":if(isNaN(t))break;return"\t".concat(t);case"number":break;default:if(12<=t.length&&!isNaN(t))return"\t".concat(t)}}return t}function toTxtCellLabel(e){return/[",\s\n]/.test(e)?'"'.concat(e.replace(/"/g,'""'),'"'):e}function toCsv(o,n,e,t){var r=csvBOM;return n.isHeader&&(r+=e.map(function(e){return toTxtCellLabel(getHeaderTitle(o,n,e))}).join(",")+enterSymbol),t.forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(getCsvCellTypeLabel(e,t[e.id]))}).join(",")+enterSymbol}),n.isFooter&&(t=o.footerTableData,getFooterData(n,t).forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(getFooterCellValue(o,n,t,e))}).join(",")+enterSymbol})),r}function toTxt(o,n,e,t){var r="";return n.isHeader&&(r+=e.map(function(e){return toTxtCellLabel(getHeaderTitle(o,n,e))}).join("\t")+enterSymbol),t.forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(t[e.id])}).join("\t")+enterSymbol}),n.isFooter&&(t=o.footerTableData,getFooterData(n,t).forEach(function(t){r+=e.map(function(e){return toTxtCellLabel(getFooterCellValue(o,n,t,e))}).join(",")+enterSymbol})),r}function hasEllipsis(e,t,o,n){t=t[o],o=_xeUtils.default.isUndefined(t)||_xeUtils.default.isNull(t)?n:t,n="title"===o||(!0===o||"tooltip"===o)||"ellipsis"===o;return n=e.scrollXLoad||e.scrollYLoad?n||!0:n}function toHtml(s,i,e,t){var d=s.id,o=s.treeConfig,a=s.treeOpts,c=s.isAllSelected,n=s.isIndeterminate,u=s.headerAlign,p=s.align,l=s.footerAlign,m=s.showOverflow,h=s.showHeaderOverflow,f=s.mergeList,g=i.print,r=i.isHeader,x=i.isFooter,v=i.isColgroup,_=i.isMerge,b=i.colgroups,y=i.original,E="check-all",w=["vxe-table","border--".concat(toTableBorder(s.border)),g?"is--print":"",r?"is--header":""].filter(function(e){return e}),C=['<table class="'.concat(w.join(" "),'" border="0" cellspacing="0" cellpadding="0">'),"<colgroup>".concat(e.map(function(e){return'<col style="width:'.concat(e.renderWidth,'px">')}).join(""),"</colgroup>")],v=(r&&(C.push("<thead>"),v&&!y?b.forEach(function(e){C.push("<tr>".concat(e.map(function(t){var e=t.headerAlign||t.align||u||p,o=hasEllipsis(s,t,"showHeaderOverflow",h)?["col--ellipsis"]:[],n=getHeaderTitle(s,i,t),r=0,a=0,l=(_xeUtils.default.eachTree([t],function(e){e.childNodes&&t.childNodes.length||a++,r+=e.renderWidth},{children:"childNodes"}),r-a);return e&&o.push("col--".concat(e)),"checkbox"===t.type?'<th class="'.concat(o.join(" "),'" colspan="').concat(t._colSpan,'" rowspan="').concat(t._rowSpan,'"><div ').concat(g?"":'style="width: '.concat(l,'px"'),'><input type="checkbox" class="').concat(E,'" ').concat(c?"checked":"","><span>").concat(n,"</span></div></th>"):'<th class="'.concat(o.join(" "),'" colspan="').concat(t._colSpan,'" rowspan="').concat(t._rowSpan,'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(l,'px"'),"><span>").concat((0,_utils.formatText)(n,!0),"</span></div></th>")}).join(""),"</tr>"))}):C.push("<tr>".concat(e.map(function(e){var t=e.headerAlign||e.align||u||p,o=hasEllipsis(s,e,"showHeaderOverflow",h)?["col--ellipsis"]:[],n=getHeaderTitle(s,i,e);return t&&o.push("col--".concat(t)),"checkbox"===e.type?'<th class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="checkbox" class="').concat(E,'" ').concat(c?"checked":"","><span>").concat(n,"</span></div></th>"):'<th class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),"><span>").concat((0,_utils.formatText)(n,!0),"</span></div></th>")}).join(""),"</tr>")),C.push("</thead>")),t.length&&(C.push("<tbody>"),o?t.forEach(function(r){C.push("<tr>"+e.map(function(e){var t=e.align||p,o=hasEllipsis(s,e,"showOverflow",m)?["col--ellipsis"]:[],n=r[e.id];return t&&o.push("col--".concat(t)),e.treeNode?(t="",r._hasChild&&(t='<i class="'.concat(r._expand?"vxe-table--tree-fold-icon":"vxe-table--tree-unfold-icon",'"></i>')),o.push("vxe-table--tree-node"),"radio"===e.type?'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(r._level*a.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(t,'</div><div class="vxe-table--tree-cell"><input type="radio" name="radio_').concat(d,'" ').concat(r._radioDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._radioLabel,"</span></div></div></div></td>"):"checkbox"===e.type?'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(r._level*a.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(t,'</div><div class="vxe-table--tree-cell"><input type="checkbox" ').concat(r._checkboxDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._checkboxLabel,"</span></div></div></div></td>"):'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(r._level*a.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(t,'</div><div class="vxe-table--tree-cell">').concat(n,"</div></div></div></td>")):"radio"===e.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="radio" name="radio_').concat(d,'" ').concat(r._radioDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._radioLabel,"</span></div></td>"):"checkbox"===e.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="checkbox" ').concat(r._checkboxDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(r._checkboxLabel,"</span></div></td>"):'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),">").concat((0,_utils.formatText)(n,!0),"</div></td>")}).join("")+"</tr>")}):t.forEach(function(c){C.push("<tr>"+e.map(function(e){var t=e.align||p,o=hasEllipsis(s,e,"showOverflow",m)?["col--ellipsis"]:[],n=c[e.id],r=1,a=1;if(_&&f.length){var l=s.getVTRowIndex(c._row),i=s.getVTColumnIndex(e),l=(0,_util.mergeBodyMethod)(f,l,i);if(l){i=l.rowspan,l=l.colspan;if(!i||!l)return"";1<i&&(r=i),1<l&&(a=l)}}return t&&o.push("col--".concat(t)),"radio"===e.type?'<td class="'.concat(o.join(" "),'" rowspan="').concat(r,'" colspan="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="radio" name="radio_').concat(d,'" ').concat(c._radioDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(c._radioLabel,"</span></div></td>"):"checkbox"===e.type?'<td class="'.concat(o.join(" "),'" rowspan="').concat(r,'" colspan="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),'><input type="checkbox" ').concat(c._checkboxDisabled?"disabled ":"").concat(getBooleanValue(n)?"checked":"","><span>").concat(c._checkboxLabel,"</span></div></td>"):'<td class="'.concat(o.join(" "),'" rowspan="').concat(r,'" colspan="').concat(a,'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),">").concat((0,_utils.formatText)(n,!0),"</div></td>")}).join("")+"</tr>")}),C.push("</tbody>")),x&&(w=s.footerTableData,(r=getFooterData(i,w)).length)&&(C.push("<tfoot>"),r.forEach(function(r){C.push("<tr>".concat(e.map(function(e){var t=e.footerAlign||e.align||l||p,o=hasEllipsis(s,e,"showOverflow",m)?["col--ellipsis"]:[],n=getFooterCellValue(s,i,r,e);return t&&o.push("col--".concat(t)),'<td class="'.concat(o.join(" "),'" title="').concat(n,'"><div ').concat(g?"":'style="width: '.concat(e.renderWidth,'px"'),">").concat((0,_utils.formatText)(n,!0),"</div></td>")}).join(""),"</tr>"))}),C.push("</tfoot>")),!c&&n?'<script>(function(){var a=document.querySelector(".'.concat(E,'");if(a){a.indeterminate=true}})()<\/script>'):"");return C.push("</table>",v),g?C.join(""):(0,_util2.createHtmlPage)(i,C.join(""))}function toXML(o,n,e,t){var r=['<?xml version="1.0"?>','<?mso-application progid="Excel.Sheet"?>','<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">','<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">',"<Version>16.00</Version>","</DocumentProperties>",'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">',"<WindowHeight>7920</WindowHeight>","<WindowWidth>21570</WindowWidth>","<WindowTopX>32767</WindowTopX>","<WindowTopY>32767</WindowTopY>","<ProtectStructure>False</ProtectStructure>","<ProtectWindows>False</ProtectWindows>","</ExcelWorkbook>",'<Worksheet ss:Name="'.concat(n.sheetName,'">'),"<Table>",e.map(function(e){return'<Column ss:Width="'.concat(e.renderWidth,'"/>')}).join("")].join("");return n.isHeader&&(r+="<Row>".concat(e.map(function(e){return'<Cell><Data ss:Type="String">'.concat(getHeaderTitle(o,n,e),"</Data></Cell>")}).join(""),"</Row>")),t.forEach(function(t){r+="<Row>"+e.map(function(e){return'<Cell><Data ss:Type="String">'.concat(t[e.id],"</Data></Cell>")}).join("")+"</Row>"}),n.isFooter&&(t=o.footerTableData,getFooterData(n,t).forEach(function(t){r+="<Row>".concat(e.map(function(e){return'<Cell><Data ss:Type="String">'.concat(getFooterCellValue(o,n,t,e),"</Data></Cell>")}).join(""),"</Row>")})),"".concat(r,"</Table></Worksheet></Workbook>")}function getContent(e,t,o,n){if(o.length)switch(t.type){case"csv":return toCsv(e,t,o,n);case"txt":return toTxt(e,t,o,n);case"html":return toHtml(e,t,o,n);case"xml":return toXML(e,t,o,n)}return""}function saveLocalFile(e){var t,o,n=e.filename,r=e.type,a=e.content,n="".concat(n,".").concat(r);return window.Blob?(r=a instanceof Blob?a:(0,_util2.getExportBlobByContent)(_xeUtils.default.toValueString(a),e),navigator.msSaveBlob?navigator.msSaveBlob(r,n):(t=URL.createObjectURL(r),(o=document.createElement("a")).target="_blank",o.download=n,o.href=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),requestAnimationFrame(function(){o.parentNode&&o.parentNode.removeChild(o),URL.revokeObjectURL(t)})),Promise.resolve()):Promise.reject(new Error(getI18n("vxe.error.notExp")))}function downloadFile(e,t,o){var n,r=t.filename,a=t.type;if(!t.download)return n=(0,_util2.getExportBlobByContent)(o,t),Promise.resolve({type:a,content:o,blob:n});saveLocalFile({filename:r,type:a,content:o}).then(function(){!1!==t.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.table.expSuccess"),status:"success"}))})}function clearColumnConvert(e){_xeUtils.default.eachTree(e,function(e){delete e._level,delete e._colSpan,delete e._rowSpan,delete e._children,delete e.childNodes},{children:"children"})}function handleExport(n,r){var a=r.remote,l=r.columns,i=r.colgroups,c=r.exportMethod,t=r.afterExportMethod;return new Promise(function(e){var t,o;a?(t={options:r,$table:n,$grid:n.$xegrid},e(c?c(t):t)):(o=getExportData(n,r),e(n.preventEvent(null,"event.export",{options:r,columns:l,colgroups:i,datas:o},function(){return downloadFile(n,r,getContent(n,r,l,o))})))}).then(function(e){return clearColumnConvert(l),r.print||t&&t({status:!0,options:r,$table:n,$grid:n.$xegrid}),Object.assign({status:!0},e)}).catch(function(){clearColumnConvert(l),r.print||t&&t({status:!1,options:r,$table:n,$grid:n.$xegrid});return Promise.reject({status:!1})})}function getElementsByTagName(e,t){return e.getElementsByTagName(t)}function getTxtCellKey(e){return"#".concat(e,"@").concat(_xeUtils.default.uniqueId())}function replaceTxtCell(e,t){return e.replace(/#\d+@\d+/g,function(e){return _xeUtils.default.hasOwnProp(t,e)?t[e]:e})}function getTxtCellValue(e,t){return replaceTxtCell(e,t).replace(/^"+$/g,function(e){return'"'.repeat(Math.ceil(e.length/2))})}function parseCsvAndTxt(e,t,n){var r,a,t=t.split(enterSymbol),l=[],i=[];return t.length&&(r={},a=Date.now(),t.forEach(function(e){var o;e&&(o={},e=(e=e.replace(/("")|(\n)/g,function(e,t){var o=getTxtCellKey(a);return r[o]=t?'"':"\n",o}).replace(/"(.*?)"/g,function(e,t){var o=getTxtCellKey(a);return r[o]=replaceTxtCell(t,r),o})).split(n),i.length?(e.forEach(function(e,t){t<i.length&&(o[i[t]]=getTxtCellValue(e,r))}),l.push(o)):i=e.map(function(e){return getTxtCellValue(e.trim(),r)}))})),{fields:i,rows:l}}function parseCsv(e,t){return parseCsvAndTxt(e,t,",")}function parseTxt(e,t){return parseCsvAndTxt(e,t,"\t")}function parseHTML(e,t){var o,t=getElementsByTagName((new DOMParser).parseFromString(t,"text/html"),"body"),n=[],r=[];return t.length&&(t=getElementsByTagName(t[0],"table")).length&&(o=getElementsByTagName(t[0],"thead")).length&&(_xeUtils.default.arrayEach(getElementsByTagName(o[0],"tr"),function(e){_xeUtils.default.arrayEach(getElementsByTagName(e,"th"),function(e){r.push(e.textContent)})}),(o=getElementsByTagName(t[0],"tbody")).length)&&_xeUtils.default.arrayEach(getElementsByTagName(o[0],"tr"),function(e){var o={};_xeUtils.default.arrayEach(getElementsByTagName(e,"td"),function(e,t){r[t]&&(o[r[t]]=e.textContent||"")}),n.push(o)}),{fields:r,rows:n}}function parseXML(e,t){var t=getElementsByTagName((new DOMParser).parseFromString(t,"application/xml"),"Worksheet"),n=[],r=[];return t.length&&(t=getElementsByTagName(t[0],"Table")).length&&(t=getElementsByTagName(t[0],"Row")).length&&(_xeUtils.default.arrayEach(getElementsByTagName(t[0],"Cell"),function(e){r.push(e.textContent)}),_xeUtils.default.arrayEach(t,function(e,t){var o;t&&(o={},t=getElementsByTagName(e,"Cell"),_xeUtils.default.arrayEach(t,function(e,t){r[t]&&(o[r[t]]=e.textContent)}),n.push(o))})),{fields:r,rows:n}}function checkImportData(e,t){var o=[];return e.forEach(function(e){e=e.property;e&&o.push(e)}),t.some(function(e){return-1<o.indexOf(e)})}function handleImport(o,e,n){var t=o.tableFullColumn,r=o._importResolve,a=o._importReject,l={fields:[],rows:[]};switch(n.type){case"csv":l=parseCsv(t,e);break;case"txt":l=parseTxt(t,e);break;case"html":l=parseHTML(t,e);break;case"xml":l=parseXML(t,e)}var i=l,c=i.fields,s=i.rows;checkImportData(t,c)?o.createData(s).then(function(e){var t;return"insert"!==n.mode&&"insertBottom"!==n.mode||(t=o.insertAt(e,-1)),t="insertTop"===n.mode?o.insert(e):o.reloadData(e),!1!==n.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.table.impSuccess",[s.length]),status:"success"})),t.then(function(){r&&r({status:!0})})}):!1!==n.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.error.impFields"),status:"error"}),a)&&a({status:!1})}function handleFileImport(a,l,i){var e=a.importOpts,c=i.importMethod,t=i.afterImportMethod,o=(0,_utils.parseFile)(l),s=o.type,d=o.filename;return c||_xeUtils.default.includes(_xeUtils.default.keys(e._typeMaps),s)?new Promise(function(t,o){function e(e){t(e),a._importResolve=null,a._importReject=null}function n(e){o(e),a._importResolve=null,a._importReject=null}var r;a._importResolve=e,a._importReject=n,window.FileReader?(r=Object.assign({mode:"insertTop"},i,{type:s,filename:d})).remote?c?Promise.resolve(c({file:l,options:r,$table:a})).then(function(){e({status:!0})}).catch(function(){e({status:!0})}):e({status:!0}):a.preventEvent(null,"event.import",{file:l,options:r,columns:a.tableFullColumn},function(){var e=new FileReader;e.onerror=function(){(0,_log.errLog)("vxe.error.notType",[s]),n({status:!1})},e.onload=function(e){handleImport(a,e.target.result,r)},e.readAsText(l,r.encoding||"UTF-8")}):("development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.errLog)("vxe.error.notExp"),e({status:!0}))}).then(function(){t&&t({status:!0,options:i,$table:a})}).catch(function(e){return t&&t({status:!1,options:i,$table:a}),Promise.reject(e)}):(!1!==i.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.error.notType",[s]),status:"error"})),Promise.reject({status:!1}))}function readLocalFile(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return fileForm||(fileForm=document.createElement("form"),fileInput=document.createElement("input"),fileForm.className="vxe-table--file-form",fileInput.name="file",fileInput.type="file",fileForm.appendChild(fileInput),document.body.appendChild(fileForm)),new Promise(function(a,l){var i=s.types||[],c=!i.length||i.some(function(e){return"*"===e});fileInput.multiple=!!s.multiple,fileInput.accept=c?"":".".concat(i.join(", .")),fileInput.onchange=function(e){var t,o=e.target.files,e=o[0];if(!c)for(var n=0;n<o.length;n++){var r=(0,_utils.parseFile)(o[n]).type;if(!_xeUtils.default.includes(i,r)){t=r;break}}t?(!1!==s.message&&("development"!==process.env.VUE_APP_VXE_TABLE_ENV||_ui.VxeUI.modal||(0,_log.errLog)("vxe.error.reqModule",["Modal"]),_ui.VxeUI.modal.message({content:getI18n("vxe.error.notType",[t]),status:"error"})),l({status:!1,files:o,file:e})):a({status:!0,files:o,file:e})},fileForm.reset(),fileInput.click()})}function removePrintFrame(){if(printFrame){if(printFrame.parentNode){try{printFrame.contentDocument.write("")}catch(e){}printFrame.parentNode.removeChild(printFrame)}printFrame=null}}function appendPrintFrame(){printFrame.parentNode||document.body.appendChild(printFrame)}function afterPrintEvent(){requestAnimationFrame(removePrintFrame)}function handlePrint(e,t,o){var n=t.beforePrintMethod,n=(n&&(o=n({content:o,options:t,$table:e})||""),o=(0,_util2.createHtmlPage)(t,o),(0,_util2.getExportBlobByContent)(o,t));_dom.browse.msie?(removePrintFrame(),printFrame=createFrame(),appendPrintFrame(),printFrame.contentDocument.write(o),printFrame.contentDocument.execCommand("print")):(printFrame||((printFrame=createFrame()).onload=function(e){e.target.src&&(e.target.contentWindow.onafterprint=afterPrintEvent,e.target.contentWindow.print())}),appendPrintFrame(),printFrame.src=URL.createObjectURL(n))}function handleExportAndPrint(e,t,o){var n=e.$xegrid,r=e.initStore,a=e.customOpts,l=e.collectColumn,i=e.footerTableData,c=e.treeConfig,s=e.mergeList,d=e.isGroup,u=e.exportParams,p=e.exportOpts,n=n?n.proxyOpts:{},m=e.getCheckboxRecords(),i=!!i.length,s=!c&&s.length,n=Object.assign({message:!0,isHeader:!0,current:"current",modes:["current","selected"].concat(n.ajax&&n.ajax.queryAll?["all"]:[])},t),t=n.types||_xeUtils.default.keys(p._typeMaps),p=n.modes||[],h=a.checkMethod,a=l.slice(0),f=n.columns,l=t.map(function(e){return{value:e,label:getI18n("vxe.export.types.".concat(e))}}),t=p.map(function(e){return e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:getI18n("vxe.export.modes.".concat(e))}});return _xeUtils.default.eachTree(a,function(n,e,t,o,r){(n.children&&n.children.length||defaultFilterExportColumn(n))&&(n.checked=f?f.some(function(e){var t,o;return(0,_util.isColumnInfo)(e)?n===e:_xeUtils.default.isString(e)?n.field===e:(t=e.id||e.colId,o=e.type,e=e.property||e.field,t?n.id===t:e&&o?n.property===e&&n.type===o:e?n.property===e:!!o&&n.type===o)}):n.visible,n.halfChecked=!1,n.disabled=r&&r.disabled||!!h&&!h({column:n}))}),Object.assign(e.exportStore,{columns:a,typeList:l,modeList:t,hasFooter:i,hasMerge:s,hasTree:c,isPrint:o,hasColgroup:d,visible:!0}),Object.assign(u,{mode:m.length?"selected":"current"},n),t.some(function(e){return e.value===u.mode})||(u.mode=t[0].value),l.some(function(e){return e.value===u.type})||(u.type=l[0].value),r.export=!0,e.$nextTick()}var _getConvertColumns=function(e){var t=[];return e.forEach(function(e){e.childNodes&&e.childNodes.length?(t.push(e),t.push.apply(t,_toConsumableArray(_getConvertColumns(e.childNodes)))):t.push(e)}),t},convertToRows=function(e){for(var n=1,r=function(t,e){var o;e&&(t._level=e._level+1,n<t._level)&&(n=t._level),t.childNodes&&t.childNodes.length?(o=0,t.childNodes.forEach(function(e){r(e,t),o+=e._colSpan}),t._colSpan=o):t._colSpan=1},t=(e.forEach(function(e){e._level=1,r(e)}),[]),o=0;o<n;o++)t.push([]);return _getConvertColumns(e).forEach(function(e){e.childNodes&&e.childNodes.length?e._rowSpan=1:e._rowSpan=n-e._level+1,t[e._level-1].push(e)}),t},_default=exports.default={methods:{_exportData:function(e){var a=this,t=this.$xegrid,o=this.isGroup,n=this.tableGroupColumn,l=this.tableFullColumn,r=this.afterFullData,i=this.treeConfig,c=this.treeOpts,s=this.exportOpts,d=Object.assign({isHeader:!0,isFooter:!0,isColgroup:!0,isMerge:!1,isAllExpand:!1,download:!0,type:"csv",mode:"current"},s,{print:!1},e),e=d.type,u=d.mode,p=d.columns,m=d.beforeExportMethod,h=[],p=p&&p.length?p:null,f=d.columnFilterMethod,g=(p||(f=f||(d.original?function(e){return e.column.property}:function(e){return defaultFilterExportColumn(e.column)})),h=p?(d._isCustomColumn=!0,_xeUtils.default.searchTree(_xeUtils.default.mapTree(p,function(e){var t,o,n,r;if(e)return(0,_util.isColumnInfo)(e)?t=e:_xeUtils.default.isString(e)?t=a.getColumnByField(e):(o=e.id||e.colId,n=e.type,r=e.property||e.field,o?t=a.getColumnById(o):r&&n?t=l.find(function(e){return e.property===r&&e.type===n}):r?t=a.getColumnByField(r):n&&(t=l.find(function(e){return e.type===n}))),t||{}},{children:"childNodes",mapChildren:"_children"}),function(e,t){return(0,_util.isColumnInfo)(e)&&(!f||f({column:e,$columnIndex:t}))},{children:"_children",mapChildren:"childNodes",original:!0})):_xeUtils.default.searchTree(o?n:l,function(e,t){return e.visible&&(!f||f({column:e,$columnIndex:t}))},{children:"children",mapChildren:"childNodes",original:!0}),[]);if(_xeUtils.default.eachTree(h,function(e){e.children&&e.children.length||g.push(e)},{children:"childNodes"}),d.columns=g,d.colgroups=convertToRows(h),d.filename||(d.filename=getI18n(d.original?"vxe.table.expOriginFilename":"vxe.table.expFilename",[_xeUtils.default.toDateString(Date.now(),"yyyyMMddHHmmss")])),d.sheetName||(d.sheetName=document.title),!d.exportMethod&&!_xeUtils.default.includes(_xeUtils.default.keys(s._typeMaps),e))return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.errLog)("vxe.error.notType",[e]),Promise.reject({status:!1});if(d.print||m&&m({options:d,$table:this,$grid:t}),!d.data)if(d.data=[],"selected"===u){var x=this.getCheckboxRecords();-1<["html","pdf"].indexOf(e)&&i?d.data=_xeUtils.default.searchTree(this.getTableData().fullData,function(e){return-1<x.indexOf(e)},Object.assign({},c,{data:"_row"})):d.data=x}else if("all"===u){if("development"!==process.env.VUE_APP_VXE_TABLE_ENV||t||(0,_log.warnLog)("vxe.error.errProp",["all","mode=current,selected"]),t&&!d.remote){var v,p=t.proxyOpts,o=p.beforeQueryAll,_=p.afterQueryAll,n=p.ajax,h=void 0===n?{}:n,s=p.props,b=void 0===s?{}:s,m=h.queryAll,y=h.queryAllSuccess,E=h.queryAllError;if("development"!==process.env.VUE_APP_VXE_TABLE_ENV||m||(0,_log.warnLog)("vxe.error.notFunc",["proxy-config.ajax.queryAll"]),m)return v={$table:this,$grid:t,sort:t.sortData,filters:t.filterData,form:t.formData,target:m,options:d},Promise.resolve((o||m)(v)).then(function(e){return d.data=(b.list?_xeUtils.default.get(e,b.list):e)||[],_&&_(v),y&&y(Object.assign(Object.assign({},v),{response:e})),handleExport(a,d)}).catch(function(e){E&&E(Object.assign(Object.assign({},v),{response:e}))})}}else"current"===u&&(d.data=r);return handleExport(this,d)},_importByFile:function(e,t){var t=Object.assign({},t),o=t.beforeImportMethod;return o&&o({options:t,$table:this}),handleFileImport(this,e,t)},_importData:function(e){var t=this,o=this.importOpts,n=Object.assign({types:_xeUtils.default.keys(o._typeMaps)},o,e),o=n.beforeImportMethod,r=n.afterImportMethod;return o&&o({options:n,$table:this}),readLocalFile(n).catch(function(e){return r&&r({status:!1,options:n,$table:t}),Promise.reject(e)}).then(function(e){e=e.file;return handleFileImport(t,e,n)})},_saveFile:function(e){return saveLocalFile(e)},_readFile:function(e){return readLocalFile(e)},_print:function(e){var t=this,o=Object.assign({original:!1},this.printOpts,e,{type:"html",download:!1,remote:!1,print:!0});return o.sheetName||(o.sheetName=document.title),new Promise(function(e){o.content?e(handlePrint(t,o,o.content)):e(t.exportData(o).then(function(e){e=e.content;return handlePrint(t,o,e)}))})},_getPrintHtml:function(e){var t=this.printOpts,t=Object.assign({original:!1},t,e,{type:"html",download:!1,remote:!1,print:!0});return this.exportData(t).then(function(e){return{html:e.content}})},_openImport:function(e){var t=this,o=this.importOpts,e=Object.assign({mode:"insertTop",message:!0,types:_xeUtils.default.keys(o._typeMaps),modes:["insertTop","covering"]},e,o),o=e.types||[],n=e.modes||[];!this.getTreeStatus()?(this.importConfig||(0,_log.errLog)("vxe.error.reqProp",["import-config"]),o=o.map(function(e){return{value:e,label:getI18n("vxe.export.types.".concat(e))}}),n=n.map(function(e){return e&&e.value?{value:e.value,label:e.label||e.value}:{value:e,label:getI18n("vxe.import.modes.".concat(e))}}),Object.assign(this.importStore,{file:null,type:"",filename:"",modeList:n,typeList:o,visible:!0}),Object.assign(this.importParams,e),n.some(function(e){return e.value===t.importParams.mode})||(this.importParams.mode=n[0].value),this.initStore.import=!0):e.message&&_ui.VxeUI.modal.message({content:getI18n("vxe.error.treeNotImp"),status:"error"})},_openExport:function(e){var t=this.exportOpts;return"development"!==process.env.VUE_APP_VXE_TABLE_ENV||this.exportConfig||(0,_log.errLog)("vxe.error.reqProp",["export-config"]),handleExportAndPrint(this,Object.assign({},t,e))},_openPrint:function(e){var t=this.printOpts;return"development"!==process.env.VUE_APP_VXE_TABLE_ENV||this.printConfig||(0,_log.errLog)("vxe.error.reqProp",["print-config"]),handleExportAndPrint(this,Object.assign({},t,e),!0)}}};
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createHtmlPage = createHtmlPage;
7
+ exports.getExportBlobByContent = getExportBlobByContent;
8
+ // 默认导出或打印的 HTML 样式
9
+ var defaultHtmlStyle = 'body{margin:0;padding: 0 1px;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';
10
+ function getExportBlobByContent(content, options) {
11
+ return new Blob([content], {
12
+ type: "text/".concat(options.type, ";charset=utf-8;")
13
+ });
14
+ }
15
+ function createHtmlPage(opts, content) {
16
+ var style = opts.style;
17
+ return ['<!DOCTYPE html><html>', '<head>', '<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">', "<title>".concat(opts.sheetName, "</title>"), '<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>', "<style>".concat(defaultHtmlStyle, "</style>"), style ? "<style>".concat(style, "</style>") : '', '</head>', "<body>".concat(content, "</body>"), '</html>'].join('');
18
+ }
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.createHtmlPage=createHtmlPage,exports.getExportBlobByContent=getExportBlobByContent;var defaultHtmlStyle='body{margin:0;padding: 0 1px;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}';function getExportBlobByContent(e,t){return new Blob([e],{type:"text/".concat(t.type,";charset=utf-8;")})}function createHtmlPage(e,t){var r=e.style;return["<!DOCTYPE html><html>","<head>",'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',"<title>".concat(e.sheetName,"</title>"),'<style media="print">.vxe-page-break-before{page-break-before:always;}.vxe-page-break-after{page-break-after:always;}</style>',"<style>".concat(defaultHtmlStyle,"</style>"),r?"<style>".concat(r,"</style>"):"","</head>","<body>".concat(t,"</body>"),"</html>"].join("")}
@@ -0,0 +1,329 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _xeUtils = _interopRequireDefault(require("xe-utils"));
8
+ var _ui = require("../../../ui");
9
+ var _util = require("../../src/util");
10
+ var _dom = require("../../../ui/src/dom");
11
+ var _utils = require("../../../ui/src/utils");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ var renderer = _ui.VxeUI.renderer;
14
+ var _default = exports.default = {
15
+ methods: {
16
+ /**
17
+ * 手动弹出筛选面板
18
+ * @param column
19
+ */
20
+ _openFilter: function _openFilter(fieldOrColumn) {
21
+ var column = (0, _util.handleFieldOrColumn)(this, fieldOrColumn);
22
+ if (column && column.filters) {
23
+ var elemStore = this.elemStore;
24
+ var fixed = column.fixed;
25
+ return this.scrollToColumn(column).then(function () {
26
+ var headerWrapperElem = elemStore["".concat(fixed || 'main', "-header-wrapper")] || elemStore['main-header-wrapper'];
27
+ if (headerWrapperElem) {
28
+ var filterBtnElem = headerWrapperElem.querySelector(".vxe-header--column.".concat(column.id, " .vxe-filter--btn"));
29
+ (0, _dom.triggerEvent)(filterBtnElem, 'click');
30
+ }
31
+ });
32
+ }
33
+ return this.$nextTick();
34
+ },
35
+ /**
36
+ * 修改筛选条件列表
37
+ * @param {ColumnInfo} fieldOrColumn 列
38
+ * @param {Array} options 选项
39
+ */
40
+ _setFilter: function _setFilter(fieldOrColumn, options, update) {
41
+ var column = (0, _util.handleFieldOrColumn)(this, fieldOrColumn);
42
+ if (column && column.filters) {
43
+ column.filters = (0, _util.toFilters)(options || []);
44
+ }
45
+ return update ? this.updateData() : this.$nextTick();
46
+ },
47
+ checkFilterOptions: function checkFilterOptions() {
48
+ var filterStore = this.filterStore;
49
+ filterStore.isAllSelected = filterStore.options.every(function (item) {
50
+ return item._checked;
51
+ });
52
+ filterStore.isIndeterminate = !filterStore.isAllSelected && filterStore.options.some(function (item) {
53
+ return item._checked;
54
+ });
55
+ },
56
+ /**
57
+ * 点击筛选事件
58
+ * 当筛选图标被点击时触发
59
+ * 更新选项是否全部状态
60
+ * 打开筛选面板
61
+ * @param {Event} evnt 事件
62
+ * @param {ColumnInfo} column 列配置
63
+ * @param {Object} params 参数
64
+ */
65
+ triggerFilterEvent: function triggerFilterEvent(evnt, column, params) {
66
+ var _this = this;
67
+ var filterStore = this.filterStore;
68
+ if (filterStore.column === column && filterStore.visible) {
69
+ filterStore.visible = false;
70
+ } else {
71
+ var targetElem = evnt.target,
72
+ pageX = evnt.pageX;
73
+ var filters = column.filters,
74
+ filterMultiple = column.filterMultiple,
75
+ filterRender = column.filterRender;
76
+ var compConf = (0, _utils.isEnableConf)(filterRender) ? renderer.get(filterRender.name) : null;
77
+ var filterRecoverMethod = column.filterRecoverMethod || (compConf ? compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod : null);
78
+ var _getDomNode = (0, _dom.getDomNode)(),
79
+ visibleWidth = _getDomNode.visibleWidth;
80
+ Object.assign(filterStore, {
81
+ args: params,
82
+ multiple: filterMultiple,
83
+ options: filters,
84
+ column: column,
85
+ style: null,
86
+ visible: true
87
+ });
88
+ // 复原状态
89
+ filterStore.options.forEach(function (option) {
90
+ var _checked = option._checked,
91
+ checked = option.checked;
92
+ option._checked = checked;
93
+ if (!checked && _checked !== checked) {
94
+ if (filterRecoverMethod) {
95
+ filterRecoverMethod({
96
+ option: option,
97
+ column: column,
98
+ $table: _this
99
+ });
100
+ }
101
+ }
102
+ });
103
+ this.checkFilterOptions();
104
+ this.initStore.filter = true;
105
+ this.$nextTick(function () {
106
+ var $refs = _this.$refs;
107
+ var tableHeader = $refs.tableHeader,
108
+ tableBody = $refs.tableBody,
109
+ filterWrapper = $refs.filterWrapper;
110
+ var bodyElem = tableBody.$el;
111
+ var headerElem = tableHeader ? tableHeader.$el : null;
112
+ if (!bodyElem) {
113
+ return;
114
+ }
115
+ var filterWrapperElem = filterWrapper.$el;
116
+ if (!filterWrapperElem) {
117
+ return;
118
+ }
119
+ var filterWidth = filterWrapperElem.offsetWidth;
120
+ var filterHeight = filterWrapperElem.offsetHeight;
121
+ var filterHeadElem = filterWrapperElem.querySelector('.vxe-table--filter-header');
122
+ var filterFootElem = filterWrapperElem.querySelector('.vxe-table--filter-footer');
123
+ var centerWidth = filterWidth / 2;
124
+ var minMargin = 10;
125
+ var maxLeft = bodyElem.clientWidth - filterWidth - minMargin;
126
+ var left, right;
127
+ var style = {
128
+ top: "".concat(targetElem.offsetTop + targetElem.offsetParent.offsetTop + targetElem.offsetHeight, "px")
129
+ };
130
+ // 判断面板不能大于表格高度
131
+ var maxHeight = null;
132
+ var bodyHeight = bodyElem.clientHeight - (headerElem ? headerElem.clientHeight / 2 : 0);
133
+ if (filterHeight >= bodyHeight) {
134
+ maxHeight = Math.max(40, bodyHeight - (filterFootElem ? filterFootElem.offsetHeight : 0) - (filterHeadElem ? filterHeadElem.offsetHeight : 0));
135
+ }
136
+ if (column.fixed === 'left') {
137
+ left = targetElem.offsetLeft + targetElem.offsetParent.offsetLeft - centerWidth;
138
+ } else if (column.fixed === 'right') {
139
+ right = targetElem.offsetParent.offsetWidth - targetElem.offsetLeft + (targetElem.offsetParent.offsetParent.offsetWidth - targetElem.offsetParent.offsetLeft) - column.renderWidth - centerWidth;
140
+ } else {
141
+ left = targetElem.offsetLeft + targetElem.offsetParent.offsetLeft - centerWidth - bodyElem.scrollLeft;
142
+ }
143
+ if (left) {
144
+ var overflowWidth = pageX + filterWidth - centerWidth + minMargin - visibleWidth;
145
+ if (overflowWidth > 0) {
146
+ left -= overflowWidth;
147
+ }
148
+ style.left = "".concat(Math.min(maxLeft, Math.max(minMargin, left)), "px");
149
+ } else if (right) {
150
+ var _overflowWidth = pageX + filterWidth - centerWidth + minMargin - visibleWidth;
151
+ if (_overflowWidth > 0) {
152
+ right += _overflowWidth;
153
+ }
154
+ style.right = "".concat(Math.max(minMargin, right), "px");
155
+ }
156
+ filterStore.style = style;
157
+ filterStore.maxHeight = maxHeight;
158
+ });
159
+ }
160
+ this.emitEvent('filter-visible', {
161
+ column: column,
162
+ field: column.field,
163
+ property: column.field,
164
+ filterList: this.getCheckedFilters(),
165
+ visible: filterStore.visible
166
+ }, evnt);
167
+ },
168
+ _getCheckedFilters: function _getCheckedFilters() {
169
+ var tableFullColumn = this.tableFullColumn;
170
+ var filterList = [];
171
+ tableFullColumn.forEach(function (column) {
172
+ var field = column.field,
173
+ filters = column.filters;
174
+ var valueList = [];
175
+ var dataList = [];
176
+ if (filters && filters.length) {
177
+ filters.forEach(function (item) {
178
+ if (item.checked) {
179
+ valueList.push(item.value);
180
+ dataList.push(item.data);
181
+ }
182
+ });
183
+ if (valueList.length) {
184
+ filterList.push({
185
+ column: column,
186
+ field: field,
187
+ property: field,
188
+ values: valueList,
189
+ datas: dataList
190
+ });
191
+ }
192
+ }
193
+ });
194
+ return filterList;
195
+ },
196
+ /**
197
+ * 确认筛选
198
+ * 当筛选面板中的确定按钮被按下时触发
199
+ * @param {Event} evnt 事件
200
+ */
201
+ confirmFilterEvent: function confirmFilterEvent(evnt) {
202
+ var _this2 = this;
203
+ var filterStore = this.filterStore,
204
+ filterOpts = this.filterOpts,
205
+ oldScrollXLoad = this.scrollXLoad,
206
+ oldScrollYLoad = this.scrollYLoad;
207
+ var column = filterStore.column;
208
+ var field = column.field;
209
+ var values = [];
210
+ var datas = [];
211
+ column.filters.forEach(function (item) {
212
+ if (item.checked) {
213
+ values.push(item.value);
214
+ datas.push(item.data);
215
+ }
216
+ });
217
+ var filterList = this.getCheckedFilters();
218
+ var params = {
219
+ $table: this,
220
+ $event: evnt,
221
+ column: column,
222
+ field: field,
223
+ property: field,
224
+ values: values,
225
+ datas: datas,
226
+ filters: filterList,
227
+ filterList: filterList
228
+ };
229
+ // 如果是服务端筛选,则跳过本地筛选处理
230
+ if (!filterOpts.remote) {
231
+ this.handleTableData(true);
232
+ this.checkSelectionStatus();
233
+ }
234
+ if (this.mouseConfig && this.mouseOpts.area && this.handleFilterEvent) {
235
+ this.handleFilterEvent(evnt, params);
236
+ }
237
+ this.emitEvent('filter-change', params, evnt);
238
+ this.closeFilter();
239
+ this.updateFooter().then(function () {
240
+ var scrollXLoad = _this2.scrollXLoad,
241
+ scrollYLoad = _this2.scrollYLoad;
242
+ if (oldScrollXLoad || scrollXLoad || oldScrollYLoad || scrollYLoad) {
243
+ if (oldScrollXLoad || scrollXLoad) {
244
+ _this2.updateScrollXSpace();
245
+ }
246
+ if (oldScrollYLoad || scrollYLoad) {
247
+ _this2.updateScrollYSpace();
248
+ }
249
+ return _this2.refreshScroll();
250
+ }
251
+ }).then(function () {
252
+ _this2.updateCellAreas();
253
+ return _this2.recalculate(true);
254
+ }).then(function () {
255
+ // 存在滚动行为未结束情况
256
+ setTimeout(function () {
257
+ return _this2.recalculate();
258
+ }, 50);
259
+ });
260
+ },
261
+ handleClearFilter: function handleClearFilter(column) {
262
+ if (column) {
263
+ var filters = column.filters,
264
+ filterRender = column.filterRender;
265
+ if (filters) {
266
+ var compConf = (0, _utils.isEnableConf)(filterRender) ? renderer.get(filterRender.name) : null;
267
+ var filterResetMethod = column.filterResetMethod || (compConf ? compConf.tableFilterResetMethod || compConf.filterResetMethod : null);
268
+ filters.forEach(function (item) {
269
+ item._checked = false;
270
+ item.checked = false;
271
+ if (!filterResetMethod) {
272
+ item.data = _xeUtils.default.clone(item.resetValue, true);
273
+ }
274
+ });
275
+ if (filterResetMethod) {
276
+ filterResetMethod({
277
+ options: filters,
278
+ column: column,
279
+ $table: this
280
+ });
281
+ }
282
+ }
283
+ }
284
+ },
285
+ /**
286
+ * 重置筛选
287
+ * 当筛选面板中的重置按钮被按下时触发
288
+ * @param {Event} evnt 事件
289
+ */
290
+ resetFilterEvent: function resetFilterEvent(evnt) {
291
+ this.handleClearFilter(this.filterStore.column);
292
+ this.confirmFilterEvent(evnt);
293
+ },
294
+ /**
295
+ * 清空指定列的筛选条件
296
+ * 如果为空则清空所有列的筛选条件
297
+ * @param {String} fieldOrColumn 列
298
+ */
299
+ _clearFilter: function _clearFilter(fieldOrColumn) {
300
+ var filterStore = this.filterStore;
301
+ var column;
302
+ if (fieldOrColumn) {
303
+ column = (0, _util.handleFieldOrColumn)(this, fieldOrColumn);
304
+ if (column) {
305
+ this.handleClearFilter(column);
306
+ }
307
+ } else {
308
+ this.visibleColumn.forEach(this.handleClearFilter);
309
+ }
310
+ if (!fieldOrColumn || column !== filterStore.column) {
311
+ Object.assign(filterStore, {
312
+ isAllSelected: false,
313
+ isIndeterminate: false,
314
+ style: null,
315
+ options: [],
316
+ column: null,
317
+ multiple: false,
318
+ visible: false
319
+ });
320
+ }
321
+ return this.updateData();
322
+ },
323
+ _updateFilterOptionStatus: function _updateFilterOptionStatus(item, checked) {
324
+ item._checked = checked;
325
+ item.checked = checked;
326
+ return this.$nextTick();
327
+ }
328
+ }
329
+ };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_ui=require("../../../ui"),_util=require("../../src/util"),_dom=require("../../../ui/src/dom"),_utils=require("../../../ui/src/utils");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var renderer=_ui.VxeUI.renderer,_default=exports.default={methods:{_openFilter:function(e){var t,i,l=(0,_util.handleFieldOrColumn)(this,e);return l&&l.filters?(t=this.elemStore,i=l.fixed,this.scrollToColumn(l).then(function(){var e=t["".concat(i||"main","-header-wrapper")]||t["main-header-wrapper"];e&&(e=e.querySelector(".vxe-header--column.".concat(l.id," .vxe-filter--btn")),(0,_dom.triggerEvent)(e,"click"))})):this.$nextTick()},_setFilter:function(e,t,i){e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.filters&&(e.filters=(0,_util.toFilters)(t||[])),i?this.updateData():this.$nextTick()},checkFilterOptions:function(){var e=this.filterStore;e.isAllSelected=e.options.every(function(e){return e._checked}),e.isIndeterminate=!e.isAllSelected&&e.options.some(function(e){return e._checked})},triggerFilterEvent:function(e,h,t){var d,p,i,l,r,n,m,v=this,_=this.filterStore;_.column===h&&_.visible?_.visible=!1:(d=e.target,p=e.pageX,i=h.filters,l=h.filterMultiple,r=(0,_utils.isEnableConf)(r=h.filterRender)?renderer.get(r.name):null,n=h.filterRecoverMethod||(r?r.tableFilterRecoverMethod||r.filterRecoverMethod:null),m=(0,_dom.getDomNode)().visibleWidth,Object.assign(_,{args:t,multiple:l,options:i,column:h,style:null,visible:!0}),_.options.forEach(function(e){var t=e._checked,i=e.checked;(e._checked=i)||t===i||n&&n({option:e,column:h,$table:v})}),this.checkFilterOptions(),this.initStore.filter=!0,this.$nextTick(function(){var e,t,i,l,r,n,o,s,f,a=v.$refs,c=a.tableHeader,u=a.tableBody.$el,c=c?c.$el:null;u&&(a=a.filterWrapper.$el)&&(e=a.offsetWidth,f=a.offsetHeight,t=a.querySelector(".vxe-table--filter-header"),a=a.querySelector(".vxe-table--filter-footer"),i=e/2,l=u.clientWidth-e-10,o={top:"".concat(d.offsetTop+d.offsetParent.offsetTop+d.offsetHeight,"px")},s=null,(c=u.clientHeight-(c?c.clientHeight/2:0))<=f&&(s=Math.max(40,c-(a?a.offsetHeight:0)-(t?t.offsetHeight:0))),"left"===h.fixed?r=d.offsetLeft+d.offsetParent.offsetLeft-i:"right"===h.fixed?n=d.offsetParent.offsetWidth-d.offsetLeft+(d.offsetParent.offsetParent.offsetWidth-d.offsetParent.offsetLeft)-h.renderWidth-i:r=d.offsetLeft+d.offsetParent.offsetLeft-i-u.scrollLeft,r?(0<(f=p+e-i+10-m)&&(r-=f),o.left="".concat(Math.min(l,Math.max(10,r)),"px")):n&&(0<(c=p+e-i+10-m)&&(n+=c),o.right="".concat(Math.max(10,n),"px")),_.style=o,_.maxHeight=s)})),this.emitEvent("filter-visible",{column:h,field:h.field,property:h.field,filterList:this.getCheckedFilters(),visible:_.visible},e)},_getCheckedFilters:function(){var e=this.tableFullColumn,n=[];return e.forEach(function(e){var t=e.field,i=e.filters,l=[],r=[];i&&i.length&&(i.forEach(function(e){e.checked&&(l.push(e.value),r.push(e.data))}),l.length)&&n.push({column:e,field:t,property:t,values:l,datas:r})}),n},confirmFilterEvent:function(e){var i=this,t=this.filterStore,l=this.filterOpts,r=this.scrollXLoad,n=this.scrollYLoad,t=t.column,o=t.field,s=[],f=[],a=(t.filters.forEach(function(e){e.checked&&(s.push(e.value),f.push(e.data))}),this.getCheckedFilters()),t={$table:this,$event:e,column:t,field:o,property:o,values:s,datas:f,filters:a,filterList:a};l.remote||(this.handleTableData(!0),this.checkSelectionStatus()),this.mouseConfig&&this.mouseOpts.area&&this.handleFilterEvent&&this.handleFilterEvent(e,t),this.emitEvent("filter-change",t,e),this.closeFilter(),this.updateFooter().then(function(){var e=i.scrollXLoad,t=i.scrollYLoad;if(r||e||n||t)return(r||e)&&i.updateScrollXSpace(),(n||t)&&i.updateScrollYSpace(),i.refreshScroll()}).then(function(){return i.updateCellAreas(),i.recalculate(!0)}).then(function(){setTimeout(function(){return i.recalculate()},50)})},handleClearFilter:function(e){var t,i,l;e&&(t=e.filters,i=e.filterRender,t)&&(i=(0,_utils.isEnableConf)(i)?renderer.get(i.name):null,l=e.filterResetMethod||(i?i.tableFilterResetMethod||i.filterResetMethod:null),t.forEach(function(e){e._checked=!1,e.checked=!1,l||(e.data=_xeUtils.default.clone(e.resetValue,!0))}),l)&&l({options:t,column:e,$table:this})},resetFilterEvent:function(e){this.handleClearFilter(this.filterStore.column),this.confirmFilterEvent(e)},_clearFilter:function(e){var t,i=this.filterStore;return e?(t=(0,_util.handleFieldOrColumn)(this,e))&&this.handleClearFilter(t):this.visibleColumn.forEach(this.handleClearFilter),e&&t===i.column||Object.assign(i,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),this.updateData()},_updateFilterOptionStatus:function(e,t){return e._checked=t,e.checked=t,this.$nextTick()}}};