@evolvere/sgp-ui 1.6.7 → 1.6.8

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 (437) hide show
  1. package/package.json +3 -3
  2. package/packages/editor/src/index.vue +13 -0
  3. package/packages/editor/src/video-security.js +56 -0
  4. package/packages/theme-chalk/gulpfile.js +25 -0
  5. package/packages/theme-chalk/package.json +1 -1
  6. package/src/index.js +1 -1
  7. package/CHANGELOG.en-US.md +0 -1577
  8. package/CHANGELOG.es.md +0 -1585
  9. package/CHANGELOG.fr-FR.md +0 -1576
  10. package/CHANGELOG.zh-CN.md +0 -1577
  11. package/lib/alert.js +0 -420
  12. package/lib/aside.js +0 -277
  13. package/lib/autocomplete.js +0 -952
  14. package/lib/avatar.js +0 -363
  15. package/lib/backtop.js +0 -404
  16. package/lib/badge.js +0 -334
  17. package/lib/breadcrumb-item.js +0 -322
  18. package/lib/breadcrumb.js +0 -293
  19. package/lib/button-group.js +0 -262
  20. package/lib/button.js +0 -357
  21. package/lib/calendar.js +0 -933
  22. package/lib/card.js +0 -297
  23. package/lib/carousel-item.js +0 -434
  24. package/lib/carousel.js +0 -707
  25. package/lib/cascader-panel.js +0 -1557
  26. package/lib/cascader.js +0 -1438
  27. package/lib/checkbox-button.js +0 -583
  28. package/lib/checkbox-group.js +0 -313
  29. package/lib/checkbox.js +0 -627
  30. package/lib/col.js +0 -177
  31. package/lib/collapse-item.js +0 -497
  32. package/lib/collapse.js +0 -329
  33. package/lib/color-picker.js +0 -1943
  34. package/lib/container.js +0 -288
  35. package/lib/date-picker.js +0 -6253
  36. package/lib/descriptions-item.js +0 -140
  37. package/lib/descriptions.js +0 -457
  38. package/lib/dialog.js +0 -598
  39. package/lib/directives/mousewheel.js +0 -26
  40. package/lib/directives/repeat-click.js +0 -30
  41. package/lib/divider.js +0 -313
  42. package/lib/drawer.js +0 -592
  43. package/lib/dropdown-item.js +0 -316
  44. package/lib/dropdown-menu.js +0 -351
  45. package/lib/dropdown.js +0 -643
  46. package/lib/editor.js +0 -656
  47. package/lib/empty.js +0 -730
  48. package/lib/footer.js +0 -277
  49. package/lib/form-item.js +0 -821
  50. package/lib/form.js +0 -466
  51. package/lib/header.js +0 -277
  52. package/lib/icon.js +0 -265
  53. package/lib/image.js +0 -1131
  54. package/lib/index.js +0 -1
  55. package/lib/infinite-scroll.js +0 -301
  56. package/lib/input-number.js +0 -741
  57. package/lib/input.js +0 -995
  58. package/lib/link.js +0 -332
  59. package/lib/loading.js +0 -631
  60. package/lib/locale/format.js +0 -56
  61. package/lib/locale/index.js +0 -63
  62. package/lib/locale/lang/af-ZA.js +0 -123
  63. package/lib/locale/lang/ar.js +0 -122
  64. package/lib/locale/lang/bg.js +0 -123
  65. package/lib/locale/lang/ca.js +0 -122
  66. package/lib/locale/lang/cs-CZ.js +0 -125
  67. package/lib/locale/lang/da.js +0 -122
  68. package/lib/locale/lang/de.js +0 -124
  69. package/lib/locale/lang/ee.js +0 -123
  70. package/lib/locale/lang/el.js +0 -123
  71. package/lib/locale/lang/en.js +0 -123
  72. package/lib/locale/lang/eo.js +0 -123
  73. package/lib/locale/lang/es.js +0 -122
  74. package/lib/locale/lang/eu.js +0 -123
  75. package/lib/locale/lang/fa.js +0 -123
  76. package/lib/locale/lang/fi.js +0 -123
  77. package/lib/locale/lang/fr.js +0 -122
  78. package/lib/locale/lang/he.js +0 -123
  79. package/lib/locale/lang/hr.js +0 -123
  80. package/lib/locale/lang/hu.js +0 -122
  81. package/lib/locale/lang/hy-AM.js +0 -123
  82. package/lib/locale/lang/id.js +0 -123
  83. package/lib/locale/lang/it.js +0 -122
  84. package/lib/locale/lang/ja.js +0 -123
  85. package/lib/locale/lang/kg.js +0 -123
  86. package/lib/locale/lang/km.js +0 -123
  87. package/lib/locale/lang/ko.js +0 -123
  88. package/lib/locale/lang/ku.js +0 -123
  89. package/lib/locale/lang/kz.js +0 -123
  90. package/lib/locale/lang/lt.js +0 -123
  91. package/lib/locale/lang/lv.js +0 -123
  92. package/lib/locale/lang/mn.js +0 -123
  93. package/lib/locale/lang/nb-NO.js +0 -122
  94. package/lib/locale/lang/nl.js +0 -123
  95. package/lib/locale/lang/pl.js +0 -123
  96. package/lib/locale/lang/pt-br.js +0 -123
  97. package/lib/locale/lang/pt.js +0 -123
  98. package/lib/locale/lang/ro.js +0 -123
  99. package/lib/locale/lang/ru-RU.js +0 -123
  100. package/lib/locale/lang/sk.js +0 -125
  101. package/lib/locale/lang/sl.js +0 -123
  102. package/lib/locale/lang/sr.js +0 -123
  103. package/lib/locale/lang/sv-SE.js +0 -123
  104. package/lib/locale/lang/ta.js +0 -122
  105. package/lib/locale/lang/th.js +0 -123
  106. package/lib/locale/lang/tk.js +0 -123
  107. package/lib/locale/lang/tr-TR.js +0 -123
  108. package/lib/locale/lang/ua.js +0 -123
  109. package/lib/locale/lang/ug-CN.js +0 -123
  110. package/lib/locale/lang/uz-UZ.js +0 -123
  111. package/lib/locale/lang/vi.js +0 -123
  112. package/lib/locale/lang/zh-CN.js +0 -123
  113. package/lib/locale/lang/zh-TW.js +0 -123
  114. package/lib/main.js +0 -264
  115. package/lib/menu-item-group.js +0 -308
  116. package/lib/menu-item.js +0 -491
  117. package/lib/menu.js +0 -865
  118. package/lib/message-box.js +0 -1192
  119. package/lib/message.js +0 -548
  120. package/lib/mixins/emitter.js +0 -36
  121. package/lib/mixins/focus.js +0 -15
  122. package/lib/mixins/locale.js +0 -17
  123. package/lib/mixins/migrating.js +0 -69
  124. package/lib/notification.js +0 -615
  125. package/lib/option-group.js +0 -344
  126. package/lib/option.js +0 -474
  127. package/lib/page-header.js +0 -319
  128. package/lib/pagination.js +0 -950
  129. package/lib/popconfirm.js +0 -457
  130. package/lib/popover.js +0 -617
  131. package/lib/progress.js +0 -578
  132. package/lib/radio-button.js +0 -463
  133. package/lib/radio-group.js +0 -391
  134. package/lib/radio.js +0 -497
  135. package/lib/rate.js +0 -670
  136. package/lib/rdc-sgp-ui.common.js +0 -43561
  137. package/lib/result.js +0 -578
  138. package/lib/row.js +0 -149
  139. package/lib/scrollbar.js +0 -423
  140. package/lib/select.js +0 -2156
  141. package/lib/skeleton-item.js +0 -342
  142. package/lib/skeleton.js +0 -372
  143. package/lib/slider.js +0 -1199
  144. package/lib/spinner.js +0 -301
  145. package/lib/step.js +0 -522
  146. package/lib/steps.js +0 -342
  147. package/lib/submenu.js +0 -701
  148. package/lib/switch.js +0 -552
  149. package/lib/tab-pane.js +0 -332
  150. package/lib/table-column.js +0 -931
  151. package/lib/table.js +0 -4916
  152. package/lib/tabs.js +0 -920
  153. package/lib/tag.js +0 -304
  154. package/lib/theme-chalk/alert.css +0 -1
  155. package/lib/theme-chalk/aside.css +0 -1
  156. package/lib/theme-chalk/autocomplete.css +0 -1
  157. package/lib/theme-chalk/avatar.css +0 -1
  158. package/lib/theme-chalk/backtop.css +0 -1
  159. package/lib/theme-chalk/badge.css +0 -1
  160. package/lib/theme-chalk/base.css +0 -1
  161. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  162. package/lib/theme-chalk/breadcrumb.css +0 -1
  163. package/lib/theme-chalk/button-group.css +0 -0
  164. package/lib/theme-chalk/button.css +0 -1
  165. package/lib/theme-chalk/calendar.css +0 -1
  166. package/lib/theme-chalk/card.css +0 -1
  167. package/lib/theme-chalk/carousel-item.css +0 -1
  168. package/lib/theme-chalk/carousel.css +0 -1
  169. package/lib/theme-chalk/cascader-panel.css +0 -1
  170. package/lib/theme-chalk/cascader.css +0 -1
  171. package/lib/theme-chalk/checkbox-button.css +0 -0
  172. package/lib/theme-chalk/checkbox-group.css +0 -0
  173. package/lib/theme-chalk/checkbox.css +0 -1
  174. package/lib/theme-chalk/col.css +0 -1
  175. package/lib/theme-chalk/collapse-item.css +0 -0
  176. package/lib/theme-chalk/collapse.css +0 -1
  177. package/lib/theme-chalk/color-picker.css +0 -1
  178. package/lib/theme-chalk/container.css +0 -1
  179. package/lib/theme-chalk/date-picker.css +0 -1
  180. package/lib/theme-chalk/descriptions-item.css +0 -1
  181. package/lib/theme-chalk/descriptions.css +0 -1
  182. package/lib/theme-chalk/dialog.css +0 -1
  183. package/lib/theme-chalk/display.css +0 -1
  184. package/lib/theme-chalk/divider.css +0 -1
  185. package/lib/theme-chalk/drawer.css +0 -1
  186. package/lib/theme-chalk/dropdown-item.css +0 -0
  187. package/lib/theme-chalk/dropdown-menu.css +0 -0
  188. package/lib/theme-chalk/dropdown.css +0 -1
  189. package/lib/theme-chalk/editor.css +0 -1
  190. package/lib/theme-chalk/empty.css +0 -1
  191. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  192. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  193. package/lib/theme-chalk/fonts/w-e-icon.woff +0 -0
  194. package/lib/theme-chalk/footer.css +0 -1
  195. package/lib/theme-chalk/form-item.css +0 -0
  196. package/lib/theme-chalk/form.css +0 -1
  197. package/lib/theme-chalk/header.css +0 -1
  198. package/lib/theme-chalk/icon.css +0 -1
  199. package/lib/theme-chalk/image.css +0 -1
  200. package/lib/theme-chalk/index.css +0 -1
  201. package/lib/theme-chalk/infinite-scroll.css +0 -0
  202. package/lib/theme-chalk/infiniteScroll.css +0 -0
  203. package/lib/theme-chalk/input-number.css +0 -1
  204. package/lib/theme-chalk/input.css +0 -1
  205. package/lib/theme-chalk/link.css +0 -1
  206. package/lib/theme-chalk/loading.css +0 -1
  207. package/lib/theme-chalk/main.css +0 -1
  208. package/lib/theme-chalk/menu-item-group.css +0 -0
  209. package/lib/theme-chalk/menu-item.css +0 -0
  210. package/lib/theme-chalk/menu.css +0 -1
  211. package/lib/theme-chalk/message-box.css +0 -1
  212. package/lib/theme-chalk/message.css +0 -1
  213. package/lib/theme-chalk/notification.css +0 -1
  214. package/lib/theme-chalk/option-group.css +0 -1
  215. package/lib/theme-chalk/option.css +0 -1
  216. package/lib/theme-chalk/page-header.css +0 -1
  217. package/lib/theme-chalk/pagination.css +0 -1
  218. package/lib/theme-chalk/popconfirm.css +0 -1
  219. package/lib/theme-chalk/popover.css +0 -1
  220. package/lib/theme-chalk/popper.css +0 -1
  221. package/lib/theme-chalk/progress.css +0 -1
  222. package/lib/theme-chalk/radio-button.css +0 -1
  223. package/lib/theme-chalk/radio-group.css +0 -1
  224. package/lib/theme-chalk/radio.css +0 -1
  225. package/lib/theme-chalk/rate.css +0 -1
  226. package/lib/theme-chalk/reset.css +0 -1
  227. package/lib/theme-chalk/result.css +0 -1
  228. package/lib/theme-chalk/row.css +0 -1
  229. package/lib/theme-chalk/scrollbar.css +0 -1
  230. package/lib/theme-chalk/select-dropdown.css +0 -1
  231. package/lib/theme-chalk/select.css +0 -1
  232. package/lib/theme-chalk/skeleton-item.css +0 -1
  233. package/lib/theme-chalk/skeleton.css +0 -1
  234. package/lib/theme-chalk/slider.css +0 -1
  235. package/lib/theme-chalk/spinner.css +0 -1
  236. package/lib/theme-chalk/step.css +0 -1
  237. package/lib/theme-chalk/steps.css +0 -1
  238. package/lib/theme-chalk/submenu.css +0 -0
  239. package/lib/theme-chalk/switch.css +0 -1
  240. package/lib/theme-chalk/tab-pane.css +0 -0
  241. package/lib/theme-chalk/table-column.css +0 -1
  242. package/lib/theme-chalk/table.css +0 -1
  243. package/lib/theme-chalk/tabs.css +0 -1
  244. package/lib/theme-chalk/tag.css +0 -1
  245. package/lib/theme-chalk/time-picker.css +0 -1
  246. package/lib/theme-chalk/time-select.css +0 -1
  247. package/lib/theme-chalk/timeline-item.css +0 -1
  248. package/lib/theme-chalk/timeline.css +0 -1
  249. package/lib/theme-chalk/tooltip.css +0 -1
  250. package/lib/theme-chalk/transfer.css +0 -1
  251. package/lib/theme-chalk/tree.css +0 -1
  252. package/lib/theme-chalk/upload.css +0 -1
  253. package/lib/time-picker.js +0 -2923
  254. package/lib/time-select.js +0 -1732
  255. package/lib/timeline-item.js +0 -371
  256. package/lib/timeline.js +0 -275
  257. package/lib/tooltip.js +0 -424
  258. package/lib/transfer.js +0 -1102
  259. package/lib/transitions/collapse-transition.js +0 -91
  260. package/lib/tree.js +0 -2264
  261. package/lib/umd/locale/af-ZA.js +0 -139
  262. package/lib/umd/locale/ar.js +0 -138
  263. package/lib/umd/locale/bg.js +0 -139
  264. package/lib/umd/locale/ca.js +0 -138
  265. package/lib/umd/locale/cs-CZ.js +0 -141
  266. package/lib/umd/locale/da.js +0 -138
  267. package/lib/umd/locale/de.js +0 -140
  268. package/lib/umd/locale/ee.js +0 -139
  269. package/lib/umd/locale/el.js +0 -139
  270. package/lib/umd/locale/en.js +0 -139
  271. package/lib/umd/locale/eo.js +0 -139
  272. package/lib/umd/locale/es.js +0 -138
  273. package/lib/umd/locale/eu.js +0 -139
  274. package/lib/umd/locale/fa.js +0 -139
  275. package/lib/umd/locale/fi.js +0 -139
  276. package/lib/umd/locale/fr.js +0 -138
  277. package/lib/umd/locale/he.js +0 -139
  278. package/lib/umd/locale/hr.js +0 -139
  279. package/lib/umd/locale/hu.js +0 -138
  280. package/lib/umd/locale/hy-AM.js +0 -139
  281. package/lib/umd/locale/id.js +0 -139
  282. package/lib/umd/locale/it.js +0 -138
  283. package/lib/umd/locale/ja.js +0 -139
  284. package/lib/umd/locale/kg.js +0 -139
  285. package/lib/umd/locale/km.js +0 -139
  286. package/lib/umd/locale/ko.js +0 -139
  287. package/lib/umd/locale/ku.js +0 -139
  288. package/lib/umd/locale/kz.js +0 -139
  289. package/lib/umd/locale/lt.js +0 -139
  290. package/lib/umd/locale/lv.js +0 -139
  291. package/lib/umd/locale/mn.js +0 -139
  292. package/lib/umd/locale/nb-NO.js +0 -138
  293. package/lib/umd/locale/nl.js +0 -139
  294. package/lib/umd/locale/pl.js +0 -139
  295. package/lib/umd/locale/pt-br.js +0 -139
  296. package/lib/umd/locale/pt.js +0 -139
  297. package/lib/umd/locale/ro.js +0 -139
  298. package/lib/umd/locale/ru-RU.js +0 -139
  299. package/lib/umd/locale/sk.js +0 -141
  300. package/lib/umd/locale/sl.js +0 -139
  301. package/lib/umd/locale/sr.js +0 -139
  302. package/lib/umd/locale/sv-SE.js +0 -139
  303. package/lib/umd/locale/ta.js +0 -138
  304. package/lib/umd/locale/th.js +0 -139
  305. package/lib/umd/locale/tk.js +0 -139
  306. package/lib/umd/locale/tr-TR.js +0 -139
  307. package/lib/umd/locale/ua.js +0 -139
  308. package/lib/umd/locale/ug-CN.js +0 -139
  309. package/lib/umd/locale/uz-UZ.js +0 -139
  310. package/lib/umd/locale/vi.js +0 -139
  311. package/lib/umd/locale/zh-CN.js +0 -139
  312. package/lib/umd/locale/zh-TW.js +0 -139
  313. package/lib/upload.js +0 -1488
  314. package/lib/utils/after-leave.js +0 -35
  315. package/lib/utils/aria-dialog.js +0 -104
  316. package/lib/utils/aria-utils.js +0 -126
  317. package/lib/utils/clickoutside.js +0 -79
  318. package/lib/utils/date-util.js +0 -320
  319. package/lib/utils/date.js +0 -369
  320. package/lib/utils/dom.js +0 -234
  321. package/lib/utils/menu/aria-menubar.js +0 -24
  322. package/lib/utils/menu/aria-menuitem.js +0 -62
  323. package/lib/utils/menu/aria-submenu.js +0 -69
  324. package/lib/utils/merge.js +0 -21
  325. package/lib/utils/popper.js +0 -1261
  326. package/lib/utils/popup/index.js +0 -233
  327. package/lib/utils/popup/popup-manager.js +0 -205
  328. package/lib/utils/resize-event.js +0 -57
  329. package/lib/utils/scroll-into-view.js +0 -38
  330. package/lib/utils/scrollbar-width.js +0 -39
  331. package/lib/utils/shared.js +0 -12
  332. package/lib/utils/types.js +0 -30
  333. package/lib/utils/util.js +0 -268
  334. package/lib/utils/vdom.js +0 -13
  335. package/lib/utils/vue-popper.js +0 -202
  336. package/packages/.DS_Store +0 -0
  337. package/packages/theme-chalk/lib/alert.css +0 -1
  338. package/packages/theme-chalk/lib/aside.css +0 -1
  339. package/packages/theme-chalk/lib/autocomplete.css +0 -1
  340. package/packages/theme-chalk/lib/avatar.css +0 -1
  341. package/packages/theme-chalk/lib/backtop.css +0 -1
  342. package/packages/theme-chalk/lib/badge.css +0 -1
  343. package/packages/theme-chalk/lib/base.css +0 -1
  344. package/packages/theme-chalk/lib/breadcrumb-item.css +0 -0
  345. package/packages/theme-chalk/lib/breadcrumb.css +0 -1
  346. package/packages/theme-chalk/lib/button-group.css +0 -0
  347. package/packages/theme-chalk/lib/button.css +0 -1
  348. package/packages/theme-chalk/lib/calendar.css +0 -1
  349. package/packages/theme-chalk/lib/card.css +0 -1
  350. package/packages/theme-chalk/lib/carousel-item.css +0 -1
  351. package/packages/theme-chalk/lib/carousel.css +0 -1
  352. package/packages/theme-chalk/lib/cascader-panel.css +0 -1
  353. package/packages/theme-chalk/lib/cascader.css +0 -1
  354. package/packages/theme-chalk/lib/checkbox-button.css +0 -0
  355. package/packages/theme-chalk/lib/checkbox-group.css +0 -0
  356. package/packages/theme-chalk/lib/checkbox.css +0 -1
  357. package/packages/theme-chalk/lib/col.css +0 -1
  358. package/packages/theme-chalk/lib/collapse-item.css +0 -0
  359. package/packages/theme-chalk/lib/collapse.css +0 -1
  360. package/packages/theme-chalk/lib/color-picker.css +0 -1
  361. package/packages/theme-chalk/lib/container.css +0 -1
  362. package/packages/theme-chalk/lib/date-picker.css +0 -1
  363. package/packages/theme-chalk/lib/descriptions-item.css +0 -1
  364. package/packages/theme-chalk/lib/descriptions.css +0 -1
  365. package/packages/theme-chalk/lib/dialog.css +0 -1
  366. package/packages/theme-chalk/lib/display.css +0 -1
  367. package/packages/theme-chalk/lib/divider.css +0 -1
  368. package/packages/theme-chalk/lib/drawer.css +0 -1
  369. package/packages/theme-chalk/lib/dropdown-item.css +0 -0
  370. package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
  371. package/packages/theme-chalk/lib/dropdown.css +0 -1
  372. package/packages/theme-chalk/lib/editor.css +0 -1
  373. package/packages/theme-chalk/lib/empty.css +0 -1
  374. package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
  375. package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
  376. package/packages/theme-chalk/lib/fonts/w-e-icon.woff +0 -0
  377. package/packages/theme-chalk/lib/footer.css +0 -1
  378. package/packages/theme-chalk/lib/form-item.css +0 -0
  379. package/packages/theme-chalk/lib/form.css +0 -1
  380. package/packages/theme-chalk/lib/header.css +0 -1
  381. package/packages/theme-chalk/lib/icon.css +0 -1
  382. package/packages/theme-chalk/lib/image.css +0 -1
  383. package/packages/theme-chalk/lib/index.css +0 -1
  384. package/packages/theme-chalk/lib/infinite-scroll.css +0 -0
  385. package/packages/theme-chalk/lib/infiniteScroll.css +0 -0
  386. package/packages/theme-chalk/lib/input-number.css +0 -1
  387. package/packages/theme-chalk/lib/input.css +0 -1
  388. package/packages/theme-chalk/lib/link.css +0 -1
  389. package/packages/theme-chalk/lib/loading.css +0 -1
  390. package/packages/theme-chalk/lib/main.css +0 -1
  391. package/packages/theme-chalk/lib/menu-item-group.css +0 -0
  392. package/packages/theme-chalk/lib/menu-item.css +0 -0
  393. package/packages/theme-chalk/lib/menu.css +0 -1
  394. package/packages/theme-chalk/lib/message-box.css +0 -1
  395. package/packages/theme-chalk/lib/message.css +0 -1
  396. package/packages/theme-chalk/lib/notification.css +0 -1
  397. package/packages/theme-chalk/lib/option-group.css +0 -1
  398. package/packages/theme-chalk/lib/option.css +0 -1
  399. package/packages/theme-chalk/lib/page-header.css +0 -1
  400. package/packages/theme-chalk/lib/pagination.css +0 -1
  401. package/packages/theme-chalk/lib/popconfirm.css +0 -1
  402. package/packages/theme-chalk/lib/popover.css +0 -1
  403. package/packages/theme-chalk/lib/popper.css +0 -1
  404. package/packages/theme-chalk/lib/progress.css +0 -1
  405. package/packages/theme-chalk/lib/radio-button.css +0 -1
  406. package/packages/theme-chalk/lib/radio-group.css +0 -1
  407. package/packages/theme-chalk/lib/radio.css +0 -1
  408. package/packages/theme-chalk/lib/rate.css +0 -1
  409. package/packages/theme-chalk/lib/reset.css +0 -1
  410. package/packages/theme-chalk/lib/result.css +0 -1
  411. package/packages/theme-chalk/lib/row.css +0 -1
  412. package/packages/theme-chalk/lib/scrollbar.css +0 -1
  413. package/packages/theme-chalk/lib/select-dropdown.css +0 -1
  414. package/packages/theme-chalk/lib/select.css +0 -1
  415. package/packages/theme-chalk/lib/skeleton-item.css +0 -1
  416. package/packages/theme-chalk/lib/skeleton.css +0 -1
  417. package/packages/theme-chalk/lib/slider.css +0 -1
  418. package/packages/theme-chalk/lib/spinner.css +0 -1
  419. package/packages/theme-chalk/lib/step.css +0 -1
  420. package/packages/theme-chalk/lib/steps.css +0 -1
  421. package/packages/theme-chalk/lib/submenu.css +0 -0
  422. package/packages/theme-chalk/lib/switch.css +0 -1
  423. package/packages/theme-chalk/lib/tab-pane.css +0 -0
  424. package/packages/theme-chalk/lib/table-column.css +0 -1
  425. package/packages/theme-chalk/lib/table.css +0 -1
  426. package/packages/theme-chalk/lib/tabs.css +0 -1
  427. package/packages/theme-chalk/lib/tag.css +0 -1
  428. package/packages/theme-chalk/lib/time-picker.css +0 -1
  429. package/packages/theme-chalk/lib/time-select.css +0 -1
  430. package/packages/theme-chalk/lib/timeline-item.css +0 -1
  431. package/packages/theme-chalk/lib/timeline.css +0 -1
  432. package/packages/theme-chalk/lib/tooltip.css +0 -1
  433. package/packages/theme-chalk/lib/transfer.css +0 -1
  434. package/packages/theme-chalk/lib/tree.css +0 -1
  435. package/packages/theme-chalk/lib/upload.css +0 -1
  436. package/src/.DS_Store +0 -0
  437. package/src/utils/.DS_Store +0 -0
@@ -1,931 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "/dist/";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 142);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 142:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- // ESM COMPAT FLAG
95
- __webpack_require__.r(__webpack_exports__);
96
-
97
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/util"
98
- var util_ = __webpack_require__(3);
99
-
100
- // CONCATENATED MODULE: ./packages/table/src/config.js
101
-
102
-
103
- var cellStarts = {
104
- default: {
105
- order: ''
106
- },
107
- selection: {
108
- width: 48,
109
- minWidth: 48,
110
- realWidth: 48,
111
- order: '',
112
- className: 'el-table-column--selection'
113
- },
114
- expand: {
115
- width: 48,
116
- minWidth: 48,
117
- realWidth: 48,
118
- order: ''
119
- },
120
- index: {
121
- width: 48,
122
- minWidth: 48,
123
- realWidth: 48,
124
- order: ''
125
- }
126
- };
127
-
128
- // 这些选项不应该被覆盖
129
- var cellForced = {
130
- selection: {
131
- renderHeader: function renderHeader(h, _ref) {
132
- var store = _ref.store;
133
-
134
- return h('el-checkbox', {
135
- attrs: {
136
- disabled: store.states.data && store.states.data.length === 0,
137
- indeterminate: store.states.selection.length > 0 && !this.isAllSelected,
138
-
139
- value: this.isAllSelected },
140
- nativeOn: {
141
- 'click': this.toggleAllSelection
142
- }
143
- });
144
- },
145
- renderCell: function renderCell(h, _ref2) {
146
- var row = _ref2.row,
147
- column = _ref2.column,
148
- store = _ref2.store,
149
- $index = _ref2.$index;
150
-
151
- return h('el-checkbox', {
152
- nativeOn: {
153
- 'click': function click(event) {
154
- return event.stopPropagation();
155
- }
156
- },
157
- attrs: {
158
- value: store.isSelected(row),
159
- disabled: column.selectable ? !column.selectable.call(null, row, $index) : false
160
- },
161
- on: {
162
- 'input': function input() {
163
- store.commit('rowSelectedChanged', row);
164
- }
165
- }
166
- });
167
- },
168
- sortable: false,
169
- resizable: false
170
- },
171
- index: {
172
- renderHeader: function renderHeader(h, _ref3) {
173
- var column = _ref3.column;
174
-
175
- return column.label || '#';
176
- },
177
- renderCell: function renderCell(h, _ref4) {
178
- var $index = _ref4.$index,
179
- column = _ref4.column;
180
-
181
- var i = $index + 1;
182
- var index = column.index;
183
-
184
- if (typeof index === 'number') {
185
- i = $index + index;
186
- } else if (typeof index === 'function') {
187
- i = index($index);
188
- }
189
-
190
- return h('div', [i]);
191
- },
192
- sortable: false
193
- },
194
- expand: {
195
- renderHeader: function renderHeader(h, _ref5) {
196
- var column = _ref5.column;
197
-
198
- return column.label || '';
199
- },
200
- renderCell: function renderCell(h, _ref6) {
201
- var row = _ref6.row,
202
- store = _ref6.store;
203
-
204
- var classes = ['el-table__expand-icon'];
205
- if (store.states.expandRows.indexOf(row) > -1) {
206
- classes.push('el-table__expand-icon--expanded');
207
- }
208
- var callback = function callback(e) {
209
- e.stopPropagation();
210
- store.toggleRowExpansion(row);
211
- };
212
- return h(
213
- 'div',
214
- { 'class': classes,
215
- on: {
216
- 'click': callback
217
- }
218
- },
219
- [h('i', { 'class': 'el-icon el-icon-arrow-right' })]
220
- );
221
- },
222
- sortable: false,
223
- resizable: false,
224
- className: 'el-table__expand-column'
225
- }
226
- };
227
-
228
- function defaultRenderCell(h, _ref7) {
229
- var row = _ref7.row,
230
- column = _ref7.column,
231
- $index = _ref7.$index;
232
-
233
- var property = column.property;
234
- var value = property && Object(util_["getPropByPath"])(row, property).v;
235
- if (column && column.formatter) {
236
- return column.formatter(row, column, value, $index);
237
- }
238
- return value;
239
- }
240
-
241
- function treeCellPrefix(h, _ref8) {
242
- var row = _ref8.row,
243
- treeNode = _ref8.treeNode,
244
- store = _ref8.store;
245
-
246
- if (!treeNode) return null;
247
- var ele = [];
248
- var callback = function callback(e) {
249
- e.stopPropagation();
250
- store.loadOrToggle(row);
251
- };
252
- if (treeNode.indent) {
253
- ele.push(h('span', { 'class': 'el-table__indent', style: { 'padding-left': treeNode.indent + 'px' } }));
254
- }
255
- if (typeof treeNode.expanded === 'boolean' && !treeNode.noLazyChildren) {
256
- var expandClasses = ['el-table__expand-icon', treeNode.expanded ? 'el-table__expand-icon--expanded' : ''];
257
- var iconClasses = ['el-icon-arrow-right'];
258
- if (treeNode.loading) {
259
- iconClasses = ['el-icon-loading'];
260
- }
261
- ele.push(h(
262
- 'div',
263
- { 'class': expandClasses,
264
- on: {
265
- 'click': callback
266
- }
267
- },
268
- [h('i', { 'class': iconClasses })]
269
- ));
270
- } else {
271
- ele.push(h('span', { 'class': 'el-table__placeholder' }));
272
- }
273
- return ele;
274
- }
275
- // EXTERNAL MODULE: ./packages/table/src/util.js
276
- var util = __webpack_require__(8);
277
-
278
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/checkbox"
279
- var checkbox_ = __webpack_require__(19);
280
- var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
281
-
282
- // CONCATENATED MODULE: ./packages/table/src/table-column.js
283
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
284
-
285
-
286
-
287
-
288
-
289
- var columnIdSeed = 1;
290
-
291
- /* harmony default export */ var table_column = ({
292
- name: 'ElTableColumn',
293
-
294
- props: {
295
- type: {
296
- type: String,
297
- default: 'default'
298
- },
299
- label: String,
300
- className: String,
301
- labelClassName: String,
302
- property: String,
303
- prop: String,
304
- width: {},
305
- minWidth: {},
306
- renderHeader: Function,
307
- sortable: {
308
- type: [Boolean, String],
309
- default: false
310
- },
311
- sortMethod: Function,
312
- sortBy: [String, Function, Array],
313
- resizable: {
314
- type: Boolean,
315
- default: true
316
- },
317
- columnKey: String,
318
- align: String,
319
- headerAlign: String,
320
- showTooltipWhenOverflow: Boolean,
321
- showOverflowTooltip: Boolean,
322
- fixed: [Boolean, String],
323
- formatter: Function,
324
- selectable: Function,
325
- reserveSelection: Boolean,
326
- filterMethod: Function,
327
- filteredValue: Array,
328
- filters: Array,
329
- filterPlacement: String,
330
- filterMultiple: {
331
- type: Boolean,
332
- default: true
333
- },
334
- index: [Number, Function],
335
- sortOrders: {
336
- type: Array,
337
- default: function _default() {
338
- return ['ascending', 'descending', null];
339
- },
340
- validator: function validator(val) {
341
- return val.every(function (order) {
342
- return ['ascending', 'descending', null].indexOf(order) > -1;
343
- });
344
- }
345
- }
346
- },
347
-
348
- data: function data() {
349
- return {
350
- isSubColumn: false,
351
- columns: []
352
- };
353
- },
354
-
355
-
356
- computed: {
357
- owner: function owner() {
358
- var parent = this.$parent;
359
- while (parent && !parent.tableId) {
360
- parent = parent.$parent;
361
- }
362
- return parent;
363
- },
364
- columnOrTableParent: function columnOrTableParent() {
365
- var parent = this.$parent;
366
- while (parent && !parent.tableId && !parent.columnId) {
367
- parent = parent.$parent;
368
- }
369
- return parent;
370
- },
371
- realWidth: function realWidth() {
372
- return Object(util["l" /* parseWidth */])(this.width);
373
- },
374
- realMinWidth: function realMinWidth() {
375
- return Object(util["k" /* parseMinWidth */])(this.minWidth);
376
- },
377
- realAlign: function realAlign() {
378
- return this.align ? 'is-' + this.align : null;
379
- },
380
- realHeaderAlign: function realHeaderAlign() {
381
- return this.headerAlign ? 'is-' + this.headerAlign : this.realAlign;
382
- }
383
- },
384
-
385
- methods: {
386
- getPropsData: function getPropsData() {
387
- var _this = this;
388
-
389
- for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
390
- props[_key] = arguments[_key];
391
- }
392
-
393
- return props.reduce(function (prev, cur) {
394
- if (Array.isArray(cur)) {
395
- cur.forEach(function (key) {
396
- prev[key] = _this[key];
397
- });
398
- }
399
- return prev;
400
- }, {});
401
- },
402
- getColumnElIndex: function getColumnElIndex(children, child) {
403
- return [].indexOf.call(children, child);
404
- },
405
- setColumnWidth: function setColumnWidth(column) {
406
- if (this.realWidth) {
407
- column.width = this.realWidth;
408
- }
409
- if (this.realMinWidth) {
410
- column.minWidth = this.realMinWidth;
411
- }
412
- if (!column.minWidth) {
413
- column.minWidth = 80;
414
- }
415
- column.realWidth = column.width === undefined ? column.minWidth : column.width;
416
- return column;
417
- },
418
- setColumnForcedProps: function setColumnForcedProps(column) {
419
- // 对于特定类型的 column,某些属性不允许设置
420
- var type = column.type;
421
- var source = cellForced[type] || {};
422
- Object.keys(source).forEach(function (prop) {
423
- var value = source[prop];
424
- if (value !== undefined) {
425
- column[prop] = prop === 'className' ? column[prop] + ' ' + value : value;
426
- }
427
- });
428
- return column;
429
- },
430
- setColumnRenders: function setColumnRenders(column) {
431
- var _this2 = this;
432
-
433
- var h = this.$createElement;
434
-
435
- // renderHeader 属性不推荐使用。
436
- if (this.renderHeader) {
437
- console.warn('[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header.');
438
- } else if (column.type !== 'selection') {
439
- column.renderHeader = function (h, scope) {
440
- var renderHeader = _this2.$scopedSlots.header;
441
- return renderHeader ? renderHeader(scope) : column.label;
442
- };
443
- }
444
-
445
- var originRenderCell = column.renderCell;
446
- // TODO: 这里的实现调整
447
- if (column.type === 'expand') {
448
- // 对于展开行,renderCell 不允许配置的。在上一步中已经设置过,这里需要简单封装一下。
449
- column.renderCell = function (h, data) {
450
- return h(
451
- 'div',
452
- { 'class': 'cell' },
453
- [originRenderCell(h, data)]
454
- );
455
- };
456
- this.owner.renderExpanded = function (h, data) {
457
- return _this2.$scopedSlots.default ? _this2.$scopedSlots.default(data) : _this2.$slots.default;
458
- };
459
- } else {
460
- originRenderCell = originRenderCell || defaultRenderCell;
461
- // 对 renderCell 进行包装
462
- column.renderCell = function (h, data) {
463
- var children = null;
464
- if (_this2.$scopedSlots.default) {
465
- children = _this2.$scopedSlots.default(data);
466
- } else {
467
- children = originRenderCell(h, data);
468
- }
469
- var prefix = treeCellPrefix(h, data);
470
- var props = {
471
- class: 'cell',
472
- style: {}
473
- };
474
- if (column.showOverflowTooltip) {
475
- props.class += ' el-tooltip';
476
- props.style = { width: (data.column.realWidth || data.column.width) - 1 + 'px' };
477
- }
478
- return h(
479
- 'div',
480
- props,
481
- [prefix, children]
482
- );
483
- };
484
- }
485
- return column;
486
- },
487
- registerNormalWatchers: function registerNormalWatchers() {
488
- var _this3 = this;
489
-
490
- var props = ['label', 'property', 'filters', 'filterMultiple', 'sortable', 'index', 'formatter', 'className', 'labelClassName', 'showOverflowTooltip'];
491
- // 一些属性具有别名
492
- var aliases = {
493
- prop: 'property',
494
- realAlign: 'align',
495
- realHeaderAlign: 'headerAlign',
496
- realWidth: 'width'
497
- };
498
- var allAliases = props.reduce(function (prev, cur) {
499
- prev[cur] = cur;
500
- return prev;
501
- }, aliases);
502
-
503
- Object.keys(allAliases).forEach(function (key) {
504
- var columnKey = aliases[key];
505
-
506
- _this3.$watch(key, function (newVal) {
507
- _this3.columnConfig[columnKey] = newVal;
508
- });
509
- });
510
- },
511
- registerComplexWatchers: function registerComplexWatchers() {
512
- var _this4 = this;
513
-
514
- var props = ['fixed'];
515
- var aliases = {
516
- realWidth: 'width',
517
- realMinWidth: 'minWidth'
518
- };
519
- var allAliases = props.reduce(function (prev, cur) {
520
- prev[cur] = cur;
521
- return prev;
522
- }, aliases);
523
-
524
- Object.keys(allAliases).forEach(function (key) {
525
- var columnKey = aliases[key];
526
-
527
- _this4.$watch(key, function (newVal) {
528
- _this4.columnConfig[columnKey] = newVal;
529
- var updateColumns = columnKey === 'fixed';
530
- _this4.owner.store.scheduleLayout(updateColumns);
531
- });
532
- });
533
- }
534
- },
535
-
536
- components: {
537
- ElCheckbox: checkbox_default.a
538
- },
539
-
540
- beforeCreate: function beforeCreate() {
541
- this.row = {};
542
- this.column = {};
543
- this.$index = 0;
544
- this.columnId = '';
545
- },
546
- created: function created() {
547
- var parent = this.columnOrTableParent;
548
- this.isSubColumn = this.owner !== parent;
549
- this.columnId = (parent.tableId || parent.columnId) + '_column_' + columnIdSeed++;
550
-
551
- var type = this.type || 'default';
552
- var sortable = this.sortable === '' ? true : this.sortable;
553
- var defaults = _extends({}, cellStarts[type], {
554
- id: this.columnId,
555
- type: type,
556
- property: this.prop || this.property,
557
- align: this.realAlign,
558
- headerAlign: this.realHeaderAlign,
559
- showOverflowTooltip: this.showOverflowTooltip || this.showTooltipWhenOverflow,
560
- // filter 相关属性
561
- filterable: this.filters || this.filterMethod,
562
- filteredValue: [],
563
- filterPlacement: '',
564
- isColumnGroup: false,
565
- filterOpened: false,
566
- // sort 相关属性
567
- sortable: sortable,
568
- // index 列
569
- index: this.index
570
- });
571
-
572
- var basicProps = ['columnKey', 'label', 'className', 'labelClassName', 'type', 'renderHeader', 'formatter', 'fixed', 'resizable'];
573
- var sortProps = ['sortMethod', 'sortBy', 'sortOrders'];
574
- var selectProps = ['selectable', 'reserveSelection'];
575
- var filterProps = ['filterMethod', 'filters', 'filterMultiple', 'filterOpened', 'filteredValue', 'filterPlacement'];
576
-
577
- var column = this.getPropsData(basicProps, sortProps, selectProps, filterProps);
578
- column = Object(util["h" /* mergeOptions */])(defaults, column);
579
-
580
- // 注意 compose 中函数执行的顺序是从右到左
581
- var chains = Object(util["a" /* compose */])(this.setColumnRenders, this.setColumnWidth, this.setColumnForcedProps);
582
- column = chains(column);
583
-
584
- this.columnConfig = column;
585
-
586
- // 注册 watcher
587
- this.registerNormalWatchers();
588
- this.registerComplexWatchers();
589
- },
590
- mounted: function mounted() {
591
- var owner = this.owner;
592
- var parent = this.columnOrTableParent;
593
- var children = this.isSubColumn ? parent.$el.children : parent.$refs.hiddenColumns.children;
594
- var columnIndex = this.getColumnElIndex(children, this.$el);
595
-
596
- owner.store.commit('insertColumn', this.columnConfig, columnIndex, this.isSubColumn ? parent.columnConfig : null);
597
- },
598
- destroyed: function destroyed() {
599
- if (!this.$parent) return;
600
- var parent = this.$parent;
601
- this.owner.store.commit('removeColumn', this.columnConfig, this.isSubColumn ? parent.columnConfig : null);
602
- },
603
- render: function render(h) {
604
- // slots 也要渲染,需要计算合并表头
605
- return h('div', this.$slots.default);
606
- }
607
- });
608
- // CONCATENATED MODULE: ./packages/table-column/index.js
609
-
610
-
611
- /* istanbul ignore next */
612
- table_column.install = function (Vue) {
613
- Vue.component(table_column.name, table_column);
614
- };
615
-
616
- /* harmony default export */ var packages_table_column = __webpack_exports__["default"] = (table_column);
617
-
618
- /***/ }),
619
-
620
- /***/ 19:
621
- /***/ (function(module, exports) {
622
-
623
- module.exports = require("@evolvere/sgp-ui/lib/checkbox");
624
-
625
- /***/ }),
626
-
627
- /***/ 3:
628
- /***/ (function(module, exports) {
629
-
630
- module.exports = require("@evolvere/sgp-ui/lib/utils/util");
631
-
632
- /***/ }),
633
-
634
- /***/ 8:
635
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
636
-
637
- "use strict";
638
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getCell; });
639
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return orderBy; });
640
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return getColumnById; });
641
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getColumnByKey; });
642
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getColumnByCell; });
643
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getRowIdentity; });
644
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getKeysMap; });
645
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return mergeOptions; });
646
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return parseWidth; });
647
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return parseMinWidth; });
648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return parseHeight; });
649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return compose; });
650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return toggleRowStatus; });
651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return walkTreeNode; });
652
- /* harmony import */ var _evolvere_sgp_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
653
- /* harmony import */ var _evolvere_sgp_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_evolvere_sgp_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__);
654
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
655
-
656
-
657
-
658
- var getCell = function getCell(event) {
659
- var cell = event.target;
660
-
661
- while (cell && cell.tagName.toUpperCase() !== 'HTML') {
662
- if (cell.tagName.toUpperCase() === 'TD') {
663
- return cell;
664
- }
665
- cell = cell.parentNode;
666
- }
667
-
668
- return null;
669
- };
670
-
671
- var isObject = function isObject(obj) {
672
- return obj !== null && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object';
673
- };
674
-
675
- var orderBy = function orderBy(array, sortKey, reverse, sortMethod, sortBy) {
676
- if (!sortKey && !sortMethod && (!sortBy || Array.isArray(sortBy) && !sortBy.length)) {
677
- return array;
678
- }
679
- if (typeof reverse === 'string') {
680
- reverse = reverse === 'descending' ? -1 : 1;
681
- } else {
682
- reverse = reverse && reverse < 0 ? -1 : 1;
683
- }
684
- var getKey = sortMethod ? null : function (value, index) {
685
- if (sortBy) {
686
- if (!Array.isArray(sortBy)) {
687
- sortBy = [sortBy];
688
- }
689
- return sortBy.map(function (by) {
690
- if (typeof by === 'string') {
691
- return Object(_evolvere_sgp_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__["getValueByPath"])(value, by);
692
- } else {
693
- return by(value, index, array);
694
- }
695
- });
696
- }
697
- if (sortKey !== '$key') {
698
- if (isObject(value) && '$value' in value) value = value.$value;
699
- }
700
- return [isObject(value) ? Object(_evolvere_sgp_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__["getValueByPath"])(value, sortKey) : value];
701
- };
702
- var compare = function compare(a, b) {
703
- if (sortMethod) {
704
- return sortMethod(a.value, b.value);
705
- }
706
- for (var i = 0, len = a.key.length; i < len; i++) {
707
- if (a.key[i] < b.key[i]) {
708
- return -1;
709
- }
710
- if (a.key[i] > b.key[i]) {
711
- return 1;
712
- }
713
- }
714
- return 0;
715
- };
716
- return array.map(function (value, index) {
717
- return {
718
- value: value,
719
- index: index,
720
- key: getKey ? getKey(value, index) : null
721
- };
722
- }).sort(function (a, b) {
723
- var order = compare(a, b);
724
- if (!order) {
725
- // make stable https://en.wikipedia.org/wiki/Sorting_algorithm#Stability
726
- order = a.index - b.index;
727
- }
728
- return order * reverse;
729
- }).map(function (item) {
730
- return item.value;
731
- });
732
- };
733
-
734
- var getColumnById = function getColumnById(table, columnId) {
735
- var column = null;
736
- table.columns.forEach(function (item) {
737
- if (item.id === columnId) {
738
- column = item;
739
- }
740
- });
741
- return column;
742
- };
743
-
744
- var getColumnByKey = function getColumnByKey(table, columnKey) {
745
- var column = null;
746
- for (var i = 0; i < table.columns.length; i++) {
747
- var item = table.columns[i];
748
- if (item.columnKey === columnKey) {
749
- column = item;
750
- break;
751
- }
752
- }
753
- return column;
754
- };
755
-
756
- var getColumnByCell = function getColumnByCell(table, cell) {
757
- var matches = (cell.className || '').match(/el-table_[^\s]+/gm);
758
- if (matches) {
759
- return getColumnById(table, matches[0]);
760
- }
761
- return null;
762
- };
763
-
764
- var getRowIdentity = function getRowIdentity(row, rowKey) {
765
- if (!row) throw new Error('row is required when get row identity');
766
- if (typeof rowKey === 'string') {
767
- if (rowKey.indexOf('.') < 0) {
768
- return row[rowKey];
769
- }
770
- var key = rowKey.split('.');
771
- var current = row;
772
- for (var i = 0; i < key.length; i++) {
773
- current = current[key[i]];
774
- }
775
- return current;
776
- } else if (typeof rowKey === 'function') {
777
- return rowKey.call(null, row);
778
- }
779
- };
780
-
781
- var getKeysMap = function getKeysMap(array, rowKey) {
782
- var arrayMap = {};
783
- (array || []).forEach(function (row, index) {
784
- arrayMap[getRowIdentity(row, rowKey)] = { row: row, index: index };
785
- });
786
- return arrayMap;
787
- };
788
-
789
- function hasOwn(obj, key) {
790
- return Object.prototype.hasOwnProperty.call(obj, key);
791
- }
792
-
793
- function mergeOptions(defaults, config) {
794
- var options = {};
795
- var key = void 0;
796
- for (key in defaults) {
797
- options[key] = defaults[key];
798
- }
799
- for (key in config) {
800
- if (hasOwn(config, key)) {
801
- var value = config[key];
802
- if (typeof value !== 'undefined') {
803
- options[key] = value;
804
- }
805
- }
806
- }
807
- return options;
808
- }
809
-
810
- function parseWidth(width) {
811
- if (width !== undefined) {
812
- width = parseInt(width, 10);
813
- if (isNaN(width)) {
814
- width = null;
815
- }
816
- }
817
- return width;
818
- }
819
-
820
- function parseMinWidth(minWidth) {
821
- if (typeof minWidth !== 'undefined') {
822
- minWidth = parseWidth(minWidth);
823
- if (isNaN(minWidth)) {
824
- minWidth = 80;
825
- }
826
- }
827
- return minWidth;
828
- };
829
-
830
- function parseHeight(height) {
831
- if (typeof height === 'number') {
832
- return height;
833
- }
834
- if (typeof height === 'string') {
835
- if (/^\d+(?:px)?$/.test(height)) {
836
- return parseInt(height, 10);
837
- } else {
838
- return height;
839
- }
840
- }
841
- return null;
842
- }
843
-
844
- // https://github.com/reduxjs/redux/blob/master/src/compose.js
845
- function compose() {
846
- for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
847
- funcs[_key] = arguments[_key];
848
- }
849
-
850
- if (funcs.length === 0) {
851
- return function (arg) {
852
- return arg;
853
- };
854
- }
855
- if (funcs.length === 1) {
856
- return funcs[0];
857
- }
858
- return funcs.reduce(function (a, b) {
859
- return function () {
860
- return a(b.apply(undefined, arguments));
861
- };
862
- });
863
- }
864
-
865
- function toggleRowStatus(statusArr, row, newVal) {
866
- var changed = false;
867
- var index = statusArr.indexOf(row);
868
- var included = index !== -1;
869
-
870
- var addRow = function addRow() {
871
- statusArr.push(row);
872
- changed = true;
873
- };
874
- var removeRow = function removeRow() {
875
- statusArr.splice(index, 1);
876
- changed = true;
877
- };
878
-
879
- if (typeof newVal === 'boolean') {
880
- if (newVal && !included) {
881
- addRow();
882
- } else if (!newVal && included) {
883
- removeRow();
884
- }
885
- } else {
886
- if (included) {
887
- removeRow();
888
- } else {
889
- addRow();
890
- }
891
- }
892
- return changed;
893
- }
894
-
895
- function walkTreeNode(root, cb) {
896
- var childrenKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
897
- var lazyKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'hasChildren';
898
-
899
- var isNil = function isNil(array) {
900
- return !(Array.isArray(array) && array.length);
901
- };
902
-
903
- function _walker(parent, children, level) {
904
- cb(parent, children, level);
905
- children.forEach(function (item) {
906
- if (item[lazyKey]) {
907
- cb(item, null, level + 1);
908
- return;
909
- }
910
- var children = item[childrenKey];
911
- if (!isNil(children)) {
912
- _walker(item, children, level + 1);
913
- }
914
- });
915
- }
916
-
917
- root.forEach(function (item) {
918
- if (item[lazyKey]) {
919
- cb(item, null, 0);
920
- return;
921
- }
922
- var children = item[childrenKey];
923
- if (!isNil(children)) {
924
- _walker(item, children, 0);
925
- }
926
- });
927
- }
928
-
929
- /***/ })
930
-
931
- /******/ });