@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,2923 +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 = 82);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
96
-
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
100
-
101
- function normalizeComponent(
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier /* server only */,
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options =
113
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
-
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
121
-
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
126
-
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
131
-
132
- var hook
133
- if (moduleIdentifier) {
134
- // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
153
- }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
166
- }
167
-
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection(h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
179
- } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
- }
184
- }
185
-
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
191
-
192
-
193
- /***/ }),
194
-
195
- /***/ 1:
196
- /***/ (function(module, exports) {
197
-
198
- module.exports = require("@evolvere/sgp-ui/lib/utils/date-util");
199
-
200
- /***/ }),
201
-
202
- /***/ 10:
203
- /***/ (function(module, exports) {
204
-
205
- module.exports = require("@evolvere/sgp-ui/lib/input");
206
-
207
- /***/ }),
208
-
209
- /***/ 12:
210
- /***/ (function(module, exports) {
211
-
212
- module.exports = require("@evolvere/sgp-ui/lib/utils/clickoutside");
213
-
214
- /***/ }),
215
-
216
- /***/ 15:
217
- /***/ (function(module, exports) {
218
-
219
- module.exports = require("@evolvere/sgp-ui/lib/scrollbar");
220
-
221
- /***/ }),
222
-
223
- /***/ 2:
224
- /***/ (function(module, exports) {
225
-
226
- module.exports = require("@evolvere/sgp-ui/lib/utils/dom");
227
-
228
- /***/ }),
229
-
230
- /***/ 28:
231
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
232
-
233
- "use strict";
234
-
235
- // CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time.vue?vue&type=template&id=226e6055&
236
- var render = function () {
237
- var _vm = this
238
- var _h = _vm.$createElement
239
- var _c = _vm._self._c || _h
240
- return _c(
241
- "transition",
242
- {
243
- attrs: { name: "el-zoom-in-top" },
244
- on: {
245
- "after-leave": function ($event) {
246
- _vm.$emit("dodestroy")
247
- },
248
- },
249
- },
250
- [
251
- _c(
252
- "div",
253
- {
254
- directives: [
255
- {
256
- name: "show",
257
- rawName: "v-show",
258
- value: _vm.visible,
259
- expression: "visible",
260
- },
261
- ],
262
- staticClass: "el-time-panel el-popper",
263
- class: _vm.popperClass,
264
- },
265
- [
266
- _c(
267
- "div",
268
- {
269
- staticClass: "el-time-panel__content",
270
- class: { "has-seconds": _vm.showSeconds },
271
- },
272
- [
273
- _c("time-spinner", {
274
- ref: "spinner",
275
- attrs: {
276
- "arrow-control": _vm.useArrow,
277
- "show-seconds": _vm.showSeconds,
278
- "am-pm-mode": _vm.amPmMode,
279
- date: _vm.date,
280
- },
281
- on: {
282
- change: _vm.handleChange,
283
- "select-range": _vm.setSelectionRange,
284
- },
285
- }),
286
- ],
287
- 1
288
- ),
289
- _c("div", { staticClass: "el-time-panel__footer" }, [
290
- _c(
291
- "button",
292
- {
293
- staticClass: "el-time-panel__btn cancel",
294
- attrs: { type: "button" },
295
- on: { click: _vm.handleCancel },
296
- },
297
- [_vm._v(_vm._s(_vm.t("el.datepicker.cancel")))]
298
- ),
299
- _c(
300
- "button",
301
- {
302
- staticClass: "el-time-panel__btn",
303
- class: { confirm: !_vm.disabled },
304
- attrs: { type: "button" },
305
- on: {
306
- click: function ($event) {
307
- _vm.handleConfirm()
308
- },
309
- },
310
- },
311
- [_vm._v(_vm._s(_vm.t("el.datepicker.confirm")))]
312
- ),
313
- ]),
314
- ]
315
- ),
316
- ]
317
- )
318
- }
319
- var staticRenderFns = []
320
- render._withStripped = true
321
-
322
-
323
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time.vue?vue&type=template&id=226e6055&
324
-
325
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/date-util"
326
- var date_util_ = __webpack_require__(1);
327
-
328
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/mixins/locale"
329
- var locale_ = __webpack_require__(6);
330
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
331
-
332
- // EXTERNAL MODULE: ./packages/date-picker/src/basic/time-spinner.vue + 4 modules
333
- var time_spinner = __webpack_require__(35);
334
-
335
- // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time.vue?vue&type=script&lang=js&
336
- //
337
- //
338
- //
339
- //
340
- //
341
- //
342
- //
343
- //
344
- //
345
- //
346
- //
347
- //
348
- //
349
- //
350
- //
351
- //
352
- //
353
- //
354
- //
355
- //
356
- //
357
- //
358
- //
359
- //
360
- //
361
- //
362
- //
363
- //
364
- //
365
- //
366
- //
367
- //
368
-
369
-
370
-
371
-
372
-
373
- /* harmony default export */ var timevue_type_script_lang_js_ = ({
374
- mixins: [locale_default.a],
375
-
376
- components: {
377
- TimeSpinner: time_spinner["a" /* default */]
378
- },
379
-
380
- props: {
381
- visible: Boolean,
382
- timeArrowControl: Boolean
383
- },
384
-
385
- watch: {
386
- visible: function visible(val) {
387
- var _this = this;
388
-
389
- if (val) {
390
- this.oldValue = this.value;
391
- this.$nextTick(function () {
392
- return _this.$refs.spinner.emitSelectRange('hours');
393
- });
394
- } else {
395
- this.needInitAdjust = true;
396
- }
397
- },
398
- value: function value(newVal) {
399
- var _this2 = this;
400
-
401
- var date = void 0;
402
- if (newVal instanceof Date) {
403
- date = Object(date_util_["limitTimeRange"])(newVal, this.selectableRange, this.format);
404
- } else if (!newVal) {
405
- date = this.defaultValue ? new Date(this.defaultValue) : new Date();
406
- }
407
-
408
- this.date = date;
409
- if (this.visible && this.needInitAdjust) {
410
- this.$nextTick(function (_) {
411
- return _this2.adjustSpinners();
412
- });
413
- this.needInitAdjust = false;
414
- }
415
- },
416
- selectableRange: function selectableRange(val) {
417
- this.$refs.spinner.selectableRange = val;
418
- },
419
- defaultValue: function defaultValue(val) {
420
- if (!Object(date_util_["isDate"])(this.value)) {
421
- this.date = val ? new Date(val) : new Date();
422
- }
423
- }
424
- },
425
-
426
- data: function data() {
427
- return {
428
- popperClass: '',
429
- format: 'HH:mm:ss',
430
- value: '',
431
- defaultValue: null,
432
- date: new Date(),
433
- oldValue: new Date(),
434
- selectableRange: [],
435
- selectionRange: [0, 2],
436
- disabled: false,
437
- arrowControl: false,
438
- needInitAdjust: true
439
- };
440
- },
441
-
442
-
443
- computed: {
444
- showSeconds: function showSeconds() {
445
- return (this.format || '').indexOf('ss') !== -1;
446
- },
447
- useArrow: function useArrow() {
448
- return this.arrowControl || this.timeArrowControl || false;
449
- },
450
- amPmMode: function amPmMode() {
451
- if ((this.format || '').indexOf('A') !== -1) return 'A';
452
- if ((this.format || '').indexOf('a') !== -1) return 'a';
453
- return '';
454
- }
455
- },
456
-
457
- methods: {
458
- handleCancel: function handleCancel() {
459
- this.$emit('pick', this.oldValue, false);
460
- },
461
- handleChange: function handleChange(date) {
462
- // this.visible avoids edge cases, when use scrolls during panel closing animation
463
- if (this.visible) {
464
- this.date = Object(date_util_["clearMilliseconds"])(date);
465
- // if date is out of range, do not emit
466
- if (this.isValidValue(this.date)) {
467
- this.$emit('pick', this.date, true);
468
- }
469
- }
470
- },
471
- setSelectionRange: function setSelectionRange(start, end) {
472
- this.$emit('select-range', start, end);
473
- this.selectionRange = [start, end];
474
- },
475
- handleConfirm: function handleConfirm() {
476
- var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
477
- var first = arguments[1];
478
-
479
- if (first) return;
480
- var date = Object(date_util_["clearMilliseconds"])(Object(date_util_["limitTimeRange"])(this.date, this.selectableRange, this.format));
481
- this.$emit('pick', date, visible, first);
482
- },
483
- handleKeydown: function handleKeydown(event) {
484
- var keyCode = event.keyCode;
485
- var mapping = { 38: -1, 40: 1, 37: -1, 39: 1 };
486
-
487
- // Left or Right
488
- if (keyCode === 37 || keyCode === 39) {
489
- var step = mapping[keyCode];
490
- this.changeSelectionRange(step);
491
- event.preventDefault();
492
- return;
493
- }
494
-
495
- // Up or Down
496
- if (keyCode === 38 || keyCode === 40) {
497
- var _step = mapping[keyCode];
498
- this.$refs.spinner.scrollDown(_step);
499
- event.preventDefault();
500
- return;
501
- }
502
- },
503
- isValidValue: function isValidValue(date) {
504
- return Object(date_util_["timeWithinRange"])(date, this.selectableRange, this.format);
505
- },
506
- adjustSpinners: function adjustSpinners() {
507
- return this.$refs.spinner.adjustSpinners();
508
- },
509
- changeSelectionRange: function changeSelectionRange(step) {
510
- var list = [0, 3].concat(this.showSeconds ? [6] : []);
511
- var mapping = ['hours', 'minutes'].concat(this.showSeconds ? ['seconds'] : []);
512
- var index = list.indexOf(this.selectionRange[0]);
513
- var next = (index + step + list.length) % list.length;
514
- this.$refs.spinner.emitSelectRange(mapping[next]);
515
- }
516
- },
517
-
518
- mounted: function mounted() {
519
- var _this3 = this;
520
-
521
- this.$nextTick(function () {
522
- return _this3.handleConfirm(true, true);
523
- });
524
- this.$emit('mounted');
525
- }
526
- });
527
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time.vue?vue&type=script&lang=js&
528
- /* harmony default export */ var panel_timevue_type_script_lang_js_ = (timevue_type_script_lang_js_);
529
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/runtime/componentNormalizer.js
530
- var componentNormalizer = __webpack_require__(0);
531
-
532
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time.vue
533
-
534
-
535
-
536
-
537
-
538
- /* normalize component */
539
-
540
- var component = Object(componentNormalizer["a" /* default */])(
541
- panel_timevue_type_script_lang_js_,
542
- render,
543
- staticRenderFns,
544
- false,
545
- null,
546
- null,
547
- null
548
-
549
- )
550
-
551
- /* harmony default export */ var time = __webpack_exports__["a"] = (component.exports);
552
-
553
- /***/ }),
554
-
555
- /***/ 31:
556
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
557
-
558
- "use strict";
559
- /* harmony import */ var _evolvere_sgp_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
560
- /* harmony import */ var _evolvere_sgp_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_evolvere_sgp_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__);
561
-
562
-
563
- /* harmony default export */ __webpack_exports__["a"] = ({
564
- bind: function bind(el, binding, vnode) {
565
- var interval = null;
566
- var startTime = void 0;
567
- var handler = function handler() {
568
- return vnode.context[binding.expression].apply();
569
- };
570
- var clear = function clear() {
571
- if (Date.now() - startTime < 100) {
572
- handler();
573
- }
574
- clearInterval(interval);
575
- interval = null;
576
- };
577
-
578
- Object(_evolvere_sgp_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["on"])(el, 'mousedown', function (e) {
579
- if (e.button !== 0) return;
580
- startTime = Date.now();
581
- Object(_evolvere_sgp_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["once"])(document, 'mouseup', clear);
582
- clearInterval(interval);
583
- interval = setInterval(handler, 100);
584
- });
585
- }
586
- });
587
-
588
- /***/ }),
589
-
590
- /***/ 33:
591
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
592
-
593
- "use strict";
594
-
595
- // CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=template&id=3acf50fe&
596
- var render = function () {
597
- var _vm = this
598
- var _h = _vm.$createElement
599
- var _c = _vm._self._c || _h
600
- return !_vm.ranged
601
- ? _c(
602
- "el-input",
603
- _vm._b(
604
- {
605
- directives: [
606
- {
607
- name: "clickoutside",
608
- rawName: "v-clickoutside",
609
- value: _vm.handleClose,
610
- expression: "handleClose",
611
- },
612
- ],
613
- ref: "reference",
614
- staticClass: "el-date-editor",
615
- class: "el-date-editor--" + _vm.type,
616
- attrs: {
617
- readonly:
618
- !_vm.editable ||
619
- _vm.readonly ||
620
- _vm.type === "dates" ||
621
- _vm.type === "week",
622
- disabled: _vm.pickerDisabled,
623
- size: _vm.pickerSize,
624
- name: _vm.name,
625
- placeholder: _vm.placeholder,
626
- value: _vm.displayValue,
627
- validateEvent: false,
628
- },
629
- on: {
630
- focus: _vm.handleFocus,
631
- input: function (value) {
632
- return (_vm.userInput = value)
633
- },
634
- change: _vm.handleChange,
635
- },
636
- nativeOn: {
637
- keydown: function ($event) {
638
- return _vm.handleKeydown($event)
639
- },
640
- mouseenter: function ($event) {
641
- return _vm.handleMouseEnter($event)
642
- },
643
- mouseleave: function ($event) {
644
- _vm.showClose = false
645
- },
646
- },
647
- },
648
- "el-input",
649
- _vm.firstInputId,
650
- false
651
- ),
652
- [
653
- _c("i", {
654
- staticClass: "el-input__icon",
655
- class: _vm.triggerClass,
656
- attrs: { slot: "prefix" },
657
- on: { click: _vm.handleFocus },
658
- slot: "prefix",
659
- }),
660
- _vm.haveTrigger
661
- ? _c("i", {
662
- staticClass: "el-input__icon",
663
- class: [_vm.showClose ? "" + _vm.clearIcon : ""],
664
- attrs: { slot: "suffix" },
665
- on: { click: _vm.handleClickIcon },
666
- slot: "suffix",
667
- })
668
- : _vm._e(),
669
- ]
670
- )
671
- : _c(
672
- "div",
673
- {
674
- directives: [
675
- {
676
- name: "clickoutside",
677
- rawName: "v-clickoutside",
678
- value: _vm.handleClose,
679
- expression: "handleClose",
680
- },
681
- ],
682
- ref: "reference",
683
- staticClass: "el-date-editor el-range-editor el-input__inner",
684
- class: [
685
- "el-date-editor--" + _vm.type,
686
- _vm.pickerSize ? "el-range-editor--" + _vm.pickerSize : "",
687
- _vm.pickerDisabled ? "is-disabled" : "",
688
- _vm.pickerVisible ? "is-active" : "",
689
- ],
690
- on: {
691
- click: _vm.handleRangeClick,
692
- mouseenter: _vm.handleMouseEnter,
693
- mouseleave: function ($event) {
694
- _vm.showClose = false
695
- },
696
- keydown: _vm.handleKeydown,
697
- },
698
- },
699
- [
700
- _c("i", {
701
- class: ["el-input__icon", "el-range__icon", _vm.triggerClass],
702
- }),
703
- _c(
704
- "input",
705
- _vm._b(
706
- {
707
- staticClass: "el-range-input",
708
- attrs: {
709
- autocomplete: "off",
710
- placeholder: _vm.startPlaceholder,
711
- disabled: _vm.pickerDisabled,
712
- readonly: !_vm.editable || _vm.readonly,
713
- name: _vm.name && _vm.name[0],
714
- },
715
- domProps: { value: _vm.displayValue && _vm.displayValue[0] },
716
- on: {
717
- input: _vm.handleStartInput,
718
- change: _vm.handleStartChange,
719
- focus: _vm.handleFocus,
720
- },
721
- },
722
- "input",
723
- _vm.firstInputId,
724
- false
725
- )
726
- ),
727
- _vm._t("range-separator", [
728
- _c("span", { staticClass: "el-range-separator" }, [
729
- _vm._v(_vm._s(_vm.rangeSeparator)),
730
- ]),
731
- ]),
732
- _c(
733
- "input",
734
- _vm._b(
735
- {
736
- staticClass: "el-range-input",
737
- attrs: {
738
- autocomplete: "off",
739
- placeholder: _vm.endPlaceholder,
740
- disabled: _vm.pickerDisabled,
741
- readonly: !_vm.editable || _vm.readonly,
742
- name: _vm.name && _vm.name[1],
743
- },
744
- domProps: { value: _vm.displayValue && _vm.displayValue[1] },
745
- on: {
746
- input: _vm.handleEndInput,
747
- change: _vm.handleEndChange,
748
- focus: _vm.handleFocus,
749
- },
750
- },
751
- "input",
752
- _vm.secondInputId,
753
- false
754
- )
755
- ),
756
- _vm.haveTrigger
757
- ? _c("i", {
758
- staticClass: "el-input__icon el-range__close-icon",
759
- class: [_vm.showClose ? "" + _vm.clearIcon : ""],
760
- on: { click: _vm.handleClickIcon },
761
- })
762
- : _vm._e(),
763
- ],
764
- 2
765
- )
766
- }
767
- var staticRenderFns = []
768
- render._withStripped = true
769
-
770
-
771
- // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=template&id=3acf50fe&
772
-
773
- // EXTERNAL MODULE: external "vue"
774
- var external_vue_ = __webpack_require__(7);
775
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
776
-
777
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/clickoutside"
778
- var clickoutside_ = __webpack_require__(12);
779
- var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
780
-
781
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/date-util"
782
- var date_util_ = __webpack_require__(1);
783
-
784
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/vue-popper"
785
- var vue_popper_ = __webpack_require__(5);
786
- var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
787
-
788
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/mixins/emitter"
789
- var emitter_ = __webpack_require__(4);
790
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
791
-
792
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/input"
793
- var input_ = __webpack_require__(10);
794
- var input_default = /*#__PURE__*/__webpack_require__.n(input_);
795
-
796
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/merge"
797
- var merge_ = __webpack_require__(9);
798
- var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
799
-
800
- // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=script&lang=js&
801
- //
802
- //
803
- //
804
- //
805
- //
806
- //
807
- //
808
- //
809
- //
810
- //
811
- //
812
- //
813
- //
814
- //
815
- //
816
- //
817
- //
818
- //
819
- //
820
- //
821
- //
822
- //
823
- //
824
- //
825
- //
826
- //
827
- //
828
- //
829
- //
830
- //
831
- //
832
- //
833
- //
834
- //
835
- //
836
- //
837
- //
838
- //
839
- //
840
- //
841
- //
842
- //
843
- //
844
- //
845
- //
846
- //
847
- //
848
- //
849
- //
850
- //
851
- //
852
- //
853
- //
854
- //
855
- //
856
- //
857
- //
858
- //
859
- //
860
- //
861
- //
862
- //
863
- //
864
- //
865
- //
866
- //
867
- //
868
- //
869
- //
870
- //
871
- //
872
- //
873
- //
874
- //
875
- //
876
- //
877
- //
878
- //
879
- //
880
- //
881
- //
882
- //
883
- //
884
- //
885
- //
886
-
887
-
888
-
889
-
890
-
891
-
892
-
893
-
894
-
895
- var NewPopper = {
896
- props: {
897
- appendToBody: vue_popper_default.a.props.appendToBody,
898
- offset: vue_popper_default.a.props.offset,
899
- boundariesPadding: vue_popper_default.a.props.boundariesPadding,
900
- arrowOffset: vue_popper_default.a.props.arrowOffset
901
- },
902
- methods: vue_popper_default.a.methods,
903
- data: function data() {
904
- return merge_default()({ visibleArrow: true }, vue_popper_default.a.data);
905
- },
906
-
907
- beforeDestroy: vue_popper_default.a.beforeDestroy
908
- };
909
-
910
- var DEFAULT_FORMATS = {
911
- date: 'yyyy-MM-dd',
912
- month: 'yyyy-MM',
913
- datetime: 'yyyy-MM-dd HH:mm:ss',
914
- time: 'HH:mm:ss',
915
- week: 'yyyywWW',
916
- timerange: 'HH:mm:ss',
917
- daterange: 'yyyy-MM-dd',
918
- monthrange: 'yyyy-MM',
919
- datetimerange: 'yyyy-MM-dd HH:mm:ss',
920
- year: 'yyyy'
921
- };
922
- var HAVE_TRIGGER_TYPES = ['date', 'datetime', 'time', 'time-select', 'week', 'month', 'year', 'daterange', 'monthrange', 'timerange', 'datetimerange', 'dates'];
923
- var pickervue_type_script_lang_js_DATE_FORMATTER = function DATE_FORMATTER(value, format) {
924
- if (format === 'timestamp') return value.getTime();
925
- return Object(date_util_["formatDate"])(value, format);
926
- };
927
- var pickervue_type_script_lang_js_DATE_PARSER = function DATE_PARSER(text, format) {
928
- if (format === 'timestamp') return new Date(Number(text));
929
- return Object(date_util_["parseDate"])(text, format);
930
- };
931
- var RANGE_FORMATTER = function RANGE_FORMATTER(value, format) {
932
- if (Array.isArray(value) && value.length === 2) {
933
- var start = value[0];
934
- var end = value[1];
935
-
936
- if (start && end) {
937
- return [pickervue_type_script_lang_js_DATE_FORMATTER(start, format), pickervue_type_script_lang_js_DATE_FORMATTER(end, format)];
938
- }
939
- }
940
- return '';
941
- };
942
- var RANGE_PARSER = function RANGE_PARSER(array, format, separator) {
943
- if (!Array.isArray(array)) {
944
- array = array.split(separator);
945
- }
946
- if (array.length === 2) {
947
- var range1 = array[0];
948
- var range2 = array[1];
949
-
950
- return [pickervue_type_script_lang_js_DATE_PARSER(range1, format), pickervue_type_script_lang_js_DATE_PARSER(range2, format)];
951
- }
952
- return [];
953
- };
954
- var TYPE_VALUE_RESOLVER_MAP = {
955
- default: {
956
- formatter: function formatter(value) {
957
- if (!value) return '';
958
- return '' + value;
959
- },
960
- parser: function parser(text) {
961
- if (text === undefined || text === '') return null;
962
- return text;
963
- }
964
- },
965
- week: {
966
- formatter: function formatter(value, format) {
967
- var week = Object(date_util_["getWeekNumber"])(value);
968
- var month = value.getMonth();
969
- var trueDate = new Date(value);
970
- if (week === 1 && month === 11) {
971
- trueDate.setHours(0, 0, 0, 0);
972
- trueDate.setDate(trueDate.getDate() + 3 - (trueDate.getDay() + 6) % 7);
973
- }
974
- var date = Object(date_util_["formatDate"])(trueDate, format);
975
-
976
- date = /WW/.test(date) ? date.replace(/WW/, week < 10 ? '0' + week : week) : date.replace(/W/, week);
977
- return date;
978
- },
979
- parser: function parser(text, format) {
980
- // parse as if a normal date
981
- return TYPE_VALUE_RESOLVER_MAP.date.parser(text, format);
982
- }
983
- },
984
- date: {
985
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
986
- parser: pickervue_type_script_lang_js_DATE_PARSER
987
- },
988
- datetime: {
989
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
990
- parser: pickervue_type_script_lang_js_DATE_PARSER
991
- },
992
- daterange: {
993
- formatter: RANGE_FORMATTER,
994
- parser: RANGE_PARSER
995
- },
996
- monthrange: {
997
- formatter: RANGE_FORMATTER,
998
- parser: RANGE_PARSER
999
- },
1000
- datetimerange: {
1001
- formatter: RANGE_FORMATTER,
1002
- parser: RANGE_PARSER
1003
- },
1004
- timerange: {
1005
- formatter: RANGE_FORMATTER,
1006
- parser: RANGE_PARSER
1007
- },
1008
- time: {
1009
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
1010
- parser: pickervue_type_script_lang_js_DATE_PARSER
1011
- },
1012
- month: {
1013
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
1014
- parser: pickervue_type_script_lang_js_DATE_PARSER
1015
- },
1016
- year: {
1017
- formatter: pickervue_type_script_lang_js_DATE_FORMATTER,
1018
- parser: pickervue_type_script_lang_js_DATE_PARSER
1019
- },
1020
- number: {
1021
- formatter: function formatter(value) {
1022
- if (!value) return '';
1023
- return '' + value;
1024
- },
1025
- parser: function parser(text) {
1026
- var result = Number(text);
1027
-
1028
- if (!isNaN(text)) {
1029
- return result;
1030
- } else {
1031
- return null;
1032
- }
1033
- }
1034
- },
1035
- dates: {
1036
- formatter: function formatter(value, format) {
1037
- return value.map(function (date) {
1038
- return pickervue_type_script_lang_js_DATE_FORMATTER(date, format);
1039
- });
1040
- },
1041
- parser: function parser(value, format) {
1042
- return (typeof value === 'string' ? value.split(', ') : value).map(function (date) {
1043
- return date instanceof Date ? date : pickervue_type_script_lang_js_DATE_PARSER(date, format);
1044
- });
1045
- }
1046
- }
1047
- };
1048
- var PLACEMENT_MAP = {
1049
- left: 'bottom-start',
1050
- center: 'bottom',
1051
- right: 'bottom-end'
1052
- };
1053
-
1054
- var parseAsFormatAndType = function parseAsFormatAndType(value, customFormat, type) {
1055
- var rangeSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '-';
1056
-
1057
- if (!value) return null;
1058
- var parser = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).parser;
1059
- var format = customFormat || DEFAULT_FORMATS[type];
1060
- return parser(value, format, rangeSeparator);
1061
- };
1062
-
1063
- var formatAsFormatAndType = function formatAsFormatAndType(value, customFormat, type) {
1064
- if (!value) return null;
1065
- var formatter = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).formatter;
1066
- var format = customFormat || DEFAULT_FORMATS[type];
1067
- return formatter(value, format);
1068
- };
1069
-
1070
- /*
1071
- * Considers:
1072
- * 1. Date object
1073
- * 2. date string
1074
- * 3. array of 1 or 2
1075
- */
1076
- var valueEquals = function valueEquals(a, b) {
1077
- // considers Date object and string
1078
- var dateEquals = function dateEquals(a, b) {
1079
- var aIsDate = a instanceof Date;
1080
- var bIsDate = b instanceof Date;
1081
- if (aIsDate && bIsDate) {
1082
- return a.getTime() === b.getTime();
1083
- }
1084
- if (!aIsDate && !bIsDate) {
1085
- return a === b;
1086
- }
1087
- return false;
1088
- };
1089
-
1090
- var aIsArray = a instanceof Array;
1091
- var bIsArray = b instanceof Array;
1092
- if (aIsArray && bIsArray) {
1093
- if (a.length !== b.length) {
1094
- return false;
1095
- }
1096
- return a.every(function (item, index) {
1097
- return dateEquals(item, b[index]);
1098
- });
1099
- }
1100
- if (!aIsArray && !bIsArray) {
1101
- return dateEquals(a, b);
1102
- }
1103
- return false;
1104
- };
1105
-
1106
- var isString = function isString(val) {
1107
- return typeof val === 'string' || val instanceof String;
1108
- };
1109
-
1110
- var validator = function validator(val) {
1111
- // either: String, Array of String, null / undefined
1112
- return val === null || val === undefined || isString(val) || Array.isArray(val) && val.length === 2 && val.every(isString);
1113
- };
1114
-
1115
- /* harmony default export */ var pickervue_type_script_lang_js_ = ({
1116
- mixins: [emitter_default.a, NewPopper],
1117
-
1118
- inject: {
1119
- elForm: {
1120
- default: ''
1121
- },
1122
- elFormItem: {
1123
- default: ''
1124
- }
1125
- },
1126
-
1127
- props: {
1128
- size: String,
1129
- format: String,
1130
- valueFormat: String,
1131
- readonly: Boolean,
1132
- placeholder: String,
1133
- startPlaceholder: String,
1134
- endPlaceholder: String,
1135
- prefixIcon: String,
1136
- clearIcon: {
1137
- type: String,
1138
- default: 'el-icon-circle-close'
1139
- },
1140
- name: {
1141
- default: '',
1142
- validator: validator
1143
- },
1144
- disabled: Boolean,
1145
- clearable: {
1146
- type: Boolean,
1147
- default: true
1148
- },
1149
- id: {
1150
- default: '',
1151
- validator: validator
1152
- },
1153
- popperClass: String,
1154
- editable: {
1155
- type: Boolean,
1156
- default: true
1157
- },
1158
- align: {
1159
- type: String,
1160
- default: 'left'
1161
- },
1162
- value: {},
1163
- defaultValue: {},
1164
- defaultTime: {},
1165
- rangeSeparator: {
1166
- default: '-'
1167
- },
1168
- pickerOptions: {},
1169
- unlinkPanels: Boolean,
1170
- validateEvent: {
1171
- type: Boolean,
1172
- default: true
1173
- }
1174
- },
1175
-
1176
- components: { ElInput: input_default.a },
1177
-
1178
- directives: { Clickoutside: clickoutside_default.a },
1179
-
1180
- data: function data() {
1181
- return {
1182
- pickerVisible: false,
1183
- showClose: false,
1184
- userInput: null,
1185
- valueOnOpen: null, // value when picker opens, used to determine whether to emit change
1186
- unwatchPickerOptions: null
1187
- };
1188
- },
1189
-
1190
-
1191
- watch: {
1192
- pickerVisible: function pickerVisible(val) {
1193
- if (this.readonly || this.pickerDisabled) return;
1194
- if (val) {
1195
- this.showPicker();
1196
- this.valueOnOpen = Array.isArray(this.value) ? [].concat(this.value) : this.value;
1197
- } else {
1198
- this.hidePicker();
1199
- this.emitChange(this.value);
1200
- this.userInput = null;
1201
- if (this.validateEvent) {
1202
- this.dispatch('ElFormItem', 'el.form.blur');
1203
- }
1204
- this.$emit('blur', this);
1205
- this.blur();
1206
- }
1207
- },
1208
-
1209
- parsedValue: {
1210
- immediate: true,
1211
- handler: function handler(val) {
1212
- if (this.picker) {
1213
- this.picker.value = val;
1214
- }
1215
- }
1216
- },
1217
- defaultValue: function defaultValue(val) {
1218
- // NOTE: should eventually move to jsx style picker + panel ?
1219
- if (this.picker) {
1220
- this.picker.defaultValue = val;
1221
- }
1222
- },
1223
- value: function value(val, oldVal) {
1224
- if (!valueEquals(val, oldVal) && !this.pickerVisible && this.validateEvent) {
1225
- this.dispatch('ElFormItem', 'el.form.change', val);
1226
- }
1227
- }
1228
- },
1229
-
1230
- computed: {
1231
- ranged: function ranged() {
1232
- return this.type.indexOf('range') > -1;
1233
- },
1234
- reference: function reference() {
1235
- var reference = this.$refs.reference;
1236
- return reference.$el || reference;
1237
- },
1238
- refInput: function refInput() {
1239
- if (this.reference) {
1240
- return [].slice.call(this.reference.querySelectorAll('input'));
1241
- }
1242
- return [];
1243
- },
1244
- valueIsEmpty: function valueIsEmpty() {
1245
- var val = this.value;
1246
- if (Array.isArray(val)) {
1247
- for (var i = 0, len = val.length; i < len; i++) {
1248
- if (val[i]) {
1249
- return false;
1250
- }
1251
- }
1252
- } else {
1253
- if (val) {
1254
- return false;
1255
- }
1256
- }
1257
- return true;
1258
- },
1259
- triggerClass: function triggerClass() {
1260
- return this.prefixIcon || (this.type.indexOf('time') !== -1 ? 'el-icon-time' : 'el-icon-date');
1261
- },
1262
- selectionMode: function selectionMode() {
1263
- if (this.type === 'week') {
1264
- return 'week';
1265
- } else if (this.type === 'month') {
1266
- return 'month';
1267
- } else if (this.type === 'year') {
1268
- return 'year';
1269
- } else if (this.type === 'dates') {
1270
- return 'dates';
1271
- }
1272
-
1273
- return 'day';
1274
- },
1275
- haveTrigger: function haveTrigger() {
1276
- if (typeof this.showTrigger !== 'undefined') {
1277
- return this.showTrigger;
1278
- }
1279
- return HAVE_TRIGGER_TYPES.indexOf(this.type) !== -1;
1280
- },
1281
- displayValue: function displayValue() {
1282
- var formattedValue = formatAsFormatAndType(this.parsedValue, this.format, this.type, this.rangeSeparator);
1283
- if (Array.isArray(this.userInput)) {
1284
- return [this.userInput[0] || formattedValue && formattedValue[0] || '', this.userInput[1] || formattedValue && formattedValue[1] || ''];
1285
- } else if (this.userInput !== null) {
1286
- return this.userInput;
1287
- } else if (formattedValue) {
1288
- return this.type === 'dates' ? formattedValue.join(', ') : formattedValue;
1289
- } else {
1290
- return '';
1291
- }
1292
- },
1293
- parsedValue: function parsedValue() {
1294
- if (!this.value) return this.value; // component value is not set
1295
- if (this.type === 'time-select') return this.value; // time-select does not require parsing, this might change in next major version
1296
-
1297
- var valueIsDateObject = Object(date_util_["isDateObject"])(this.value) || Array.isArray(this.value) && this.value.every(date_util_["isDateObject"]);
1298
- if (valueIsDateObject) {
1299
- return this.value;
1300
- }
1301
-
1302
- if (this.valueFormat) {
1303
- return parseAsFormatAndType(this.value, this.valueFormat, this.type, this.rangeSeparator) || this.value;
1304
- }
1305
-
1306
- // NOTE: deal with common but incorrect usage, should remove in next major version
1307
- // user might provide string / timestamp without value-format, coerce them into date (or array of date)
1308
- return Array.isArray(this.value) ? this.value.map(function (val) {
1309
- return new Date(val);
1310
- }) : new Date(this.value);
1311
- },
1312
- _elFormItemSize: function _elFormItemSize() {
1313
- return (this.elFormItem || {}).elFormItemSize;
1314
- },
1315
- pickerSize: function pickerSize() {
1316
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
1317
- },
1318
- pickerDisabled: function pickerDisabled() {
1319
- return this.disabled || (this.elForm || {}).disabled;
1320
- },
1321
- firstInputId: function firstInputId() {
1322
- var obj = {};
1323
- var id = void 0;
1324
- if (this.ranged) {
1325
- id = this.id && this.id[0];
1326
- } else {
1327
- id = this.id;
1328
- }
1329
- if (id) obj.id = id;
1330
- return obj;
1331
- },
1332
- secondInputId: function secondInputId() {
1333
- var obj = {};
1334
- var id = void 0;
1335
- if (this.ranged) {
1336
- id = this.id && this.id[1];
1337
- }
1338
- if (id) obj.id = id;
1339
- return obj;
1340
- }
1341
- },
1342
-
1343
- created: function created() {
1344
- // vue-popper
1345
- this.popperOptions = {
1346
- boundariesPadding: 0,
1347
- gpuAcceleration: false
1348
- };
1349
- this.placement = PLACEMENT_MAP[this.align] || PLACEMENT_MAP.left;
1350
-
1351
- this.$on('fieldReset', this.handleFieldReset);
1352
- },
1353
-
1354
-
1355
- methods: {
1356
- focus: function focus() {
1357
- if (!this.ranged) {
1358
- this.$refs.reference.focus();
1359
- } else {
1360
- this.handleFocus();
1361
- }
1362
- },
1363
- blur: function blur() {
1364
- this.refInput.forEach(function (input) {
1365
- return input.blur();
1366
- });
1367
- },
1368
-
1369
-
1370
- // {parse, formatTo} Value deals maps component value with internal Date
1371
- parseValue: function parseValue(value) {
1372
- var isParsed = Object(date_util_["isDateObject"])(value) || Array.isArray(value) && value.every(date_util_["isDateObject"]);
1373
- if (this.valueFormat && !isParsed) {
1374
- return parseAsFormatAndType(value, this.valueFormat, this.type, this.rangeSeparator) || value;
1375
- } else {
1376
- return value;
1377
- }
1378
- },
1379
- formatToValue: function formatToValue(date) {
1380
- var isFormattable = Object(date_util_["isDateObject"])(date) || Array.isArray(date) && date.every(date_util_["isDateObject"]);
1381
- if (this.valueFormat && isFormattable) {
1382
- return formatAsFormatAndType(date, this.valueFormat, this.type, this.rangeSeparator);
1383
- } else {
1384
- return date;
1385
- }
1386
- },
1387
-
1388
-
1389
- // {parse, formatTo} String deals with user input
1390
- parseString: function parseString(value) {
1391
- var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
1392
- return parseAsFormatAndType(value, this.format, type);
1393
- },
1394
- formatToString: function formatToString(value) {
1395
- var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
1396
- return formatAsFormatAndType(value, this.format, type);
1397
- },
1398
- handleMouseEnter: function handleMouseEnter() {
1399
- if (this.readonly || this.pickerDisabled) return;
1400
- if (!this.valueIsEmpty && this.clearable) {
1401
- this.showClose = true;
1402
- }
1403
- },
1404
- handleChange: function handleChange() {
1405
- if (this.userInput) {
1406
- var value = this.parseString(this.displayValue);
1407
- if (value) {
1408
- this.picker.value = value;
1409
- if (this.isValidValue(value)) {
1410
- this.emitInput(value);
1411
- this.userInput = null;
1412
- }
1413
- }
1414
- }
1415
- if (this.userInput === '') {
1416
- this.emitInput(null);
1417
- this.emitChange(null);
1418
- this.userInput = null;
1419
- }
1420
- },
1421
- handleStartInput: function handleStartInput(event) {
1422
- if (this.userInput) {
1423
- this.userInput = [event.target.value, this.userInput[1]];
1424
- } else {
1425
- this.userInput = [event.target.value, null];
1426
- }
1427
- },
1428
- handleEndInput: function handleEndInput(event) {
1429
- if (this.userInput) {
1430
- this.userInput = [this.userInput[0], event.target.value];
1431
- } else {
1432
- this.userInput = [null, event.target.value];
1433
- }
1434
- },
1435
- handleStartChange: function handleStartChange(event) {
1436
- var value = this.parseString(this.userInput && this.userInput[0]);
1437
- if (value) {
1438
- this.userInput = [this.formatToString(value), this.displayValue[1]];
1439
- var newValue = [value, this.picker.value && this.picker.value[1]];
1440
- this.picker.value = newValue;
1441
- if (this.isValidValue(newValue)) {
1442
- this.emitInput(newValue);
1443
- this.userInput = null;
1444
- }
1445
- }
1446
- },
1447
- handleEndChange: function handleEndChange(event) {
1448
- var value = this.parseString(this.userInput && this.userInput[1]);
1449
- if (value) {
1450
- this.userInput = [this.displayValue[0], this.formatToString(value)];
1451
- var newValue = [this.picker.value && this.picker.value[0], value];
1452
- this.picker.value = newValue;
1453
- if (this.isValidValue(newValue)) {
1454
- this.emitInput(newValue);
1455
- this.userInput = null;
1456
- }
1457
- }
1458
- },
1459
- handleClickIcon: function handleClickIcon(event) {
1460
- if (this.readonly || this.pickerDisabled) return;
1461
- if (this.showClose) {
1462
- this.valueOnOpen = this.value;
1463
- event.stopPropagation();
1464
- this.emitInput(null);
1465
- this.emitChange(null);
1466
- this.showClose = false;
1467
- if (this.picker && typeof this.picker.handleClear === 'function') {
1468
- this.picker.handleClear();
1469
- }
1470
- } else {
1471
- this.pickerVisible = !this.pickerVisible;
1472
- }
1473
- },
1474
- handleClose: function handleClose() {
1475
- if (!this.pickerVisible) return;
1476
- this.pickerVisible = false;
1477
-
1478
- if (this.type === 'dates') {
1479
- // restore to former value
1480
- var oldValue = parseAsFormatAndType(this.valueOnOpen, this.valueFormat, this.type, this.rangeSeparator) || this.valueOnOpen;
1481
- this.emitInput(oldValue);
1482
- }
1483
- },
1484
- handleFieldReset: function handleFieldReset(initialValue) {
1485
- this.userInput = initialValue === '' ? null : initialValue;
1486
- },
1487
- handleFocus: function handleFocus() {
1488
- var type = this.type;
1489
-
1490
- if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1491
- this.pickerVisible = true;
1492
- }
1493
- this.$emit('focus', this);
1494
- },
1495
- handleKeydown: function handleKeydown(event) {
1496
- var _this = this;
1497
-
1498
- var keyCode = event.keyCode;
1499
-
1500
- // ESC
1501
- if (keyCode === 27) {
1502
- this.pickerVisible = false;
1503
- event.stopPropagation();
1504
- return;
1505
- }
1506
-
1507
- // Tab
1508
- if (keyCode === 9) {
1509
- if (!this.ranged) {
1510
- this.handleChange();
1511
- this.pickerVisible = this.picker.visible = false;
1512
- this.blur();
1513
- event.stopPropagation();
1514
- } else {
1515
- // user may change focus between two input
1516
- setTimeout(function () {
1517
- if (_this.refInput.indexOf(document.activeElement) === -1) {
1518
- _this.pickerVisible = false;
1519
- _this.blur();
1520
- event.stopPropagation();
1521
- }
1522
- }, 0);
1523
- }
1524
- return;
1525
- }
1526
-
1527
- // Enter
1528
- if (keyCode === 13) {
1529
- if (this.userInput === '' || this.isValidValue(this.parseString(this.displayValue))) {
1530
- this.handleChange();
1531
- this.pickerVisible = this.picker.visible = false;
1532
- this.blur();
1533
- }
1534
- event.stopPropagation();
1535
- return;
1536
- }
1537
-
1538
- // if user is typing, do not let picker handle key input
1539
- if (this.userInput) {
1540
- event.stopPropagation();
1541
- return;
1542
- }
1543
-
1544
- // delegate other keys to panel
1545
- if (this.picker && this.picker.handleKeydown) {
1546
- this.picker.handleKeydown(event);
1547
- }
1548
- },
1549
- handleRangeClick: function handleRangeClick() {
1550
- var type = this.type;
1551
-
1552
- if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1553
- this.pickerVisible = true;
1554
- }
1555
- this.$emit('focus', this);
1556
- },
1557
- hidePicker: function hidePicker() {
1558
- if (this.picker) {
1559
- this.picker.resetView && this.picker.resetView();
1560
- this.pickerVisible = this.picker.visible = false;
1561
- this.destroyPopper();
1562
- }
1563
- },
1564
- showPicker: function showPicker() {
1565
- var _this2 = this;
1566
-
1567
- if (this.$isServer) return;
1568
- if (!this.picker) {
1569
- this.mountPicker();
1570
- }
1571
- this.pickerVisible = this.picker.visible = true;
1572
-
1573
- this.updatePopper();
1574
-
1575
- this.picker.value = this.parsedValue;
1576
- this.picker.resetView && this.picker.resetView();
1577
-
1578
- this.$nextTick(function () {
1579
- _this2.picker.adjustSpinners && _this2.picker.adjustSpinners();
1580
- });
1581
- },
1582
- mountPicker: function mountPicker() {
1583
- var _this3 = this;
1584
-
1585
- this.picker = new external_vue_default.a(this.panel).$mount();
1586
- this.picker.defaultValue = this.defaultValue;
1587
- this.picker.defaultTime = this.defaultTime;
1588
- this.picker.popperClass = this.popperClass;
1589
- this.popperElm = this.picker.$el;
1590
- this.picker.width = this.reference.getBoundingClientRect().width;
1591
- this.picker.showTime = this.type === 'datetime' || this.type === 'datetimerange';
1592
- this.picker.selectionMode = this.selectionMode;
1593
- this.picker.unlinkPanels = this.unlinkPanels;
1594
- this.picker.arrowControl = this.arrowControl || this.timeArrowControl || false;
1595
- this.$watch('format', function (format) {
1596
- _this3.picker.format = format;
1597
- });
1598
-
1599
- var updateOptions = function updateOptions() {
1600
- var options = _this3.pickerOptions;
1601
-
1602
- if (options && options.selectableRange) {
1603
- var ranges = options.selectableRange;
1604
- var parser = TYPE_VALUE_RESOLVER_MAP.datetimerange.parser;
1605
- var format = DEFAULT_FORMATS.timerange;
1606
-
1607
- ranges = Array.isArray(ranges) ? ranges : [ranges];
1608
- _this3.picker.selectableRange = ranges.map(function (range) {
1609
- return parser(range, format, _this3.rangeSeparator);
1610
- });
1611
- }
1612
-
1613
- for (var option in options) {
1614
- if (options.hasOwnProperty(option) &&
1615
- // 忽略 time-picker 的该配置项
1616
- option !== 'selectableRange') {
1617
- _this3.picker[option] = options[option];
1618
- }
1619
- }
1620
-
1621
- // main format must prevail over undocumented pickerOptions.format
1622
- if (_this3.format) {
1623
- _this3.picker.format = _this3.format;
1624
- }
1625
- };
1626
- updateOptions();
1627
- this.unwatchPickerOptions = this.$watch('pickerOptions', function () {
1628
- return updateOptions();
1629
- }, { deep: true });
1630
- this.$el.appendChild(this.picker.$el);
1631
- this.picker.resetView && this.picker.resetView();
1632
-
1633
- this.picker.$on('dodestroy', this.doDestroy);
1634
- this.picker.$on('pick', function () {
1635
- var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1636
- var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1637
-
1638
- _this3.userInput = null;
1639
- _this3.pickerVisible = _this3.picker.visible = visible;
1640
- _this3.emitInput(date);
1641
- _this3.picker.resetView && _this3.picker.resetView();
1642
- });
1643
-
1644
- this.picker.$on('select-range', function (start, end, pos) {
1645
- if (_this3.refInput.length === 0) return;
1646
- if (!pos || pos === 'min') {
1647
- _this3.refInput[0].setSelectionRange(start, end);
1648
- _this3.refInput[0].focus();
1649
- } else if (pos === 'max') {
1650
- _this3.refInput[1].setSelectionRange(start, end);
1651
- _this3.refInput[1].focus();
1652
- }
1653
- });
1654
- },
1655
- unmountPicker: function unmountPicker() {
1656
- if (this.picker) {
1657
- this.picker.$destroy();
1658
- this.picker.$off();
1659
- if (typeof this.unwatchPickerOptions === 'function') {
1660
- this.unwatchPickerOptions();
1661
- }
1662
- this.picker.$el.parentNode.removeChild(this.picker.$el);
1663
- }
1664
- },
1665
- emitChange: function emitChange(val) {
1666
- // determine user real change only
1667
- if (!valueEquals(val, this.valueOnOpen)) {
1668
- this.$emit('change', val);
1669
- this.valueOnOpen = val;
1670
- if (this.validateEvent) {
1671
- this.dispatch('ElFormItem', 'el.form.change', val);
1672
- }
1673
- }
1674
- },
1675
- emitInput: function emitInput(val) {
1676
- var formatted = this.formatToValue(val);
1677
- if (!valueEquals(this.value, formatted)) {
1678
- this.$emit('input', formatted);
1679
- }
1680
- },
1681
- isValidValue: function isValidValue(value) {
1682
- if (!this.picker) {
1683
- this.mountPicker();
1684
- }
1685
- if (this.picker.isValidValue) {
1686
- return value && this.picker.isValidValue(value);
1687
- } else {
1688
- return true;
1689
- }
1690
- }
1691
- }
1692
- });
1693
- // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue?vue&type=script&lang=js&
1694
- /* harmony default export */ var src_pickervue_type_script_lang_js_ = (pickervue_type_script_lang_js_);
1695
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/runtime/componentNormalizer.js
1696
- var componentNormalizer = __webpack_require__(0);
1697
-
1698
- // CONCATENATED MODULE: ./packages/date-picker/src/picker.vue
1699
-
1700
-
1701
-
1702
-
1703
-
1704
- /* normalize component */
1705
-
1706
- var component = Object(componentNormalizer["a" /* default */])(
1707
- src_pickervue_type_script_lang_js_,
1708
- render,
1709
- staticRenderFns,
1710
- false,
1711
- null,
1712
- null,
1713
- null
1714
-
1715
- )
1716
-
1717
- /* harmony default export */ var picker = __webpack_exports__["a"] = (component.exports);
1718
-
1719
- /***/ }),
1720
-
1721
- /***/ 35:
1722
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1723
-
1724
- "use strict";
1725
-
1726
- // CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/time-spinner.vue?vue&type=template&id=61a971b8&
1727
- var render = function () {
1728
- var _vm = this
1729
- var _h = _vm.$createElement
1730
- var _c = _vm._self._c || _h
1731
- return _c(
1732
- "div",
1733
- {
1734
- staticClass: "el-time-spinner",
1735
- class: { "has-seconds": _vm.showSeconds },
1736
- },
1737
- [
1738
- !_vm.arrowControl
1739
- ? [
1740
- _c(
1741
- "el-scrollbar",
1742
- {
1743
- ref: "hours",
1744
- staticClass: "el-time-spinner__wrapper",
1745
- attrs: {
1746
- "wrap-style": "max-height: inherit;",
1747
- "view-class": "el-time-spinner__list",
1748
- noresize: "",
1749
- tag: "ul",
1750
- },
1751
- nativeOn: {
1752
- mouseenter: function ($event) {
1753
- _vm.emitSelectRange("hours")
1754
- },
1755
- mousemove: function ($event) {
1756
- _vm.adjustCurrentSpinner("hours")
1757
- },
1758
- },
1759
- },
1760
- _vm._l(_vm.hoursList, function (disabled, hour) {
1761
- return _c(
1762
- "li",
1763
- {
1764
- key: hour,
1765
- staticClass: "el-time-spinner__item",
1766
- class: { active: hour === _vm.hours, disabled: disabled },
1767
- on: {
1768
- click: function ($event) {
1769
- _vm.handleClick("hours", {
1770
- value: hour,
1771
- disabled: disabled,
1772
- })
1773
- },
1774
- },
1775
- },
1776
- [
1777
- _vm._v(
1778
- _vm._s(
1779
- ("0" + (_vm.amPmMode ? hour % 12 || 12 : hour)).slice(
1780
- -2
1781
- )
1782
- ) + _vm._s(_vm.amPm(hour))
1783
- ),
1784
- ]
1785
- )
1786
- }),
1787
- 0
1788
- ),
1789
- _c(
1790
- "el-scrollbar",
1791
- {
1792
- ref: "minutes",
1793
- staticClass: "el-time-spinner__wrapper",
1794
- attrs: {
1795
- "wrap-style": "max-height: inherit;",
1796
- "view-class": "el-time-spinner__list",
1797
- noresize: "",
1798
- tag: "ul",
1799
- },
1800
- nativeOn: {
1801
- mouseenter: function ($event) {
1802
- _vm.emitSelectRange("minutes")
1803
- },
1804
- mousemove: function ($event) {
1805
- _vm.adjustCurrentSpinner("minutes")
1806
- },
1807
- },
1808
- },
1809
- _vm._l(_vm.minutesList, function (enabled, key) {
1810
- return _c(
1811
- "li",
1812
- {
1813
- key: key,
1814
- staticClass: "el-time-spinner__item",
1815
- class: { active: key === _vm.minutes, disabled: !enabled },
1816
- on: {
1817
- click: function ($event) {
1818
- _vm.handleClick("minutes", {
1819
- value: key,
1820
- disabled: false,
1821
- })
1822
- },
1823
- },
1824
- },
1825
- [_vm._v(_vm._s(("0" + key).slice(-2)))]
1826
- )
1827
- }),
1828
- 0
1829
- ),
1830
- _c(
1831
- "el-scrollbar",
1832
- {
1833
- directives: [
1834
- {
1835
- name: "show",
1836
- rawName: "v-show",
1837
- value: _vm.showSeconds,
1838
- expression: "showSeconds",
1839
- },
1840
- ],
1841
- ref: "seconds",
1842
- staticClass: "el-time-spinner__wrapper",
1843
- attrs: {
1844
- "wrap-style": "max-height: inherit;",
1845
- "view-class": "el-time-spinner__list",
1846
- noresize: "",
1847
- tag: "ul",
1848
- },
1849
- nativeOn: {
1850
- mouseenter: function ($event) {
1851
- _vm.emitSelectRange("seconds")
1852
- },
1853
- mousemove: function ($event) {
1854
- _vm.adjustCurrentSpinner("seconds")
1855
- },
1856
- },
1857
- },
1858
- _vm._l(60, function (second, key) {
1859
- return _c(
1860
- "li",
1861
- {
1862
- key: key,
1863
- staticClass: "el-time-spinner__item",
1864
- class: { active: key === _vm.seconds },
1865
- on: {
1866
- click: function ($event) {
1867
- _vm.handleClick("seconds", {
1868
- value: key,
1869
- disabled: false,
1870
- })
1871
- },
1872
- },
1873
- },
1874
- [_vm._v(_vm._s(("0" + key).slice(-2)))]
1875
- )
1876
- }),
1877
- 0
1878
- ),
1879
- ]
1880
- : _vm._e(),
1881
- _vm.arrowControl
1882
- ? [
1883
- _c(
1884
- "div",
1885
- {
1886
- staticClass: "el-time-spinner__wrapper is-arrow",
1887
- on: {
1888
- mouseenter: function ($event) {
1889
- _vm.emitSelectRange("hours")
1890
- },
1891
- },
1892
- },
1893
- [
1894
- _c("i", {
1895
- directives: [
1896
- {
1897
- name: "repeat-click",
1898
- rawName: "v-repeat-click",
1899
- value: _vm.decrease,
1900
- expression: "decrease",
1901
- },
1902
- ],
1903
- staticClass: "el-time-spinner__arrow el-icon-arrow-up",
1904
- }),
1905
- _c("i", {
1906
- directives: [
1907
- {
1908
- name: "repeat-click",
1909
- rawName: "v-repeat-click",
1910
- value: _vm.increase,
1911
- expression: "increase",
1912
- },
1913
- ],
1914
- staticClass: "el-time-spinner__arrow el-icon-arrow-down",
1915
- }),
1916
- _c(
1917
- "ul",
1918
- { ref: "hours", staticClass: "el-time-spinner__list" },
1919
- _vm._l(_vm.arrowHourList, function (hour, key) {
1920
- return _c(
1921
- "li",
1922
- {
1923
- key: key,
1924
- staticClass: "el-time-spinner__item",
1925
- class: {
1926
- active: hour === _vm.hours,
1927
- disabled: _vm.hoursList[hour],
1928
- },
1929
- },
1930
- [
1931
- _vm._v(
1932
- _vm._s(
1933
- hour === undefined
1934
- ? ""
1935
- : (
1936
- "0" + (_vm.amPmMode ? hour % 12 || 12 : hour)
1937
- ).slice(-2) + _vm.amPm(hour)
1938
- )
1939
- ),
1940
- ]
1941
- )
1942
- }),
1943
- 0
1944
- ),
1945
- ]
1946
- ),
1947
- _c(
1948
- "div",
1949
- {
1950
- staticClass: "el-time-spinner__wrapper is-arrow",
1951
- on: {
1952
- mouseenter: function ($event) {
1953
- _vm.emitSelectRange("minutes")
1954
- },
1955
- },
1956
- },
1957
- [
1958
- _c("i", {
1959
- directives: [
1960
- {
1961
- name: "repeat-click",
1962
- rawName: "v-repeat-click",
1963
- value: _vm.decrease,
1964
- expression: "decrease",
1965
- },
1966
- ],
1967
- staticClass: "el-time-spinner__arrow el-icon-arrow-up",
1968
- }),
1969
- _c("i", {
1970
- directives: [
1971
- {
1972
- name: "repeat-click",
1973
- rawName: "v-repeat-click",
1974
- value: _vm.increase,
1975
- expression: "increase",
1976
- },
1977
- ],
1978
- staticClass: "el-time-spinner__arrow el-icon-arrow-down",
1979
- }),
1980
- _c(
1981
- "ul",
1982
- { ref: "minutes", staticClass: "el-time-spinner__list" },
1983
- _vm._l(_vm.arrowMinuteList, function (minute, key) {
1984
- return _c(
1985
- "li",
1986
- {
1987
- key: key,
1988
- staticClass: "el-time-spinner__item",
1989
- class: { active: minute === _vm.minutes },
1990
- },
1991
- [
1992
- _vm._v(
1993
- "\n " +
1994
- _vm._s(
1995
- minute === undefined
1996
- ? ""
1997
- : ("0" + minute).slice(-2)
1998
- ) +
1999
- "\n "
2000
- ),
2001
- ]
2002
- )
2003
- }),
2004
- 0
2005
- ),
2006
- ]
2007
- ),
2008
- _vm.showSeconds
2009
- ? _c(
2010
- "div",
2011
- {
2012
- staticClass: "el-time-spinner__wrapper is-arrow",
2013
- on: {
2014
- mouseenter: function ($event) {
2015
- _vm.emitSelectRange("seconds")
2016
- },
2017
- },
2018
- },
2019
- [
2020
- _c("i", {
2021
- directives: [
2022
- {
2023
- name: "repeat-click",
2024
- rawName: "v-repeat-click",
2025
- value: _vm.decrease,
2026
- expression: "decrease",
2027
- },
2028
- ],
2029
- staticClass: "el-time-spinner__arrow el-icon-arrow-up",
2030
- }),
2031
- _c("i", {
2032
- directives: [
2033
- {
2034
- name: "repeat-click",
2035
- rawName: "v-repeat-click",
2036
- value: _vm.increase,
2037
- expression: "increase",
2038
- },
2039
- ],
2040
- staticClass: "el-time-spinner__arrow el-icon-arrow-down",
2041
- }),
2042
- _c(
2043
- "ul",
2044
- { ref: "seconds", staticClass: "el-time-spinner__list" },
2045
- _vm._l(_vm.arrowSecondList, function (second, key) {
2046
- return _c(
2047
- "li",
2048
- {
2049
- key: key,
2050
- staticClass: "el-time-spinner__item",
2051
- class: { active: second === _vm.seconds },
2052
- },
2053
- [
2054
- _vm._v(
2055
- "\n " +
2056
- _vm._s(
2057
- second === undefined
2058
- ? ""
2059
- : ("0" + second).slice(-2)
2060
- ) +
2061
- "\n "
2062
- ),
2063
- ]
2064
- )
2065
- }),
2066
- 0
2067
- ),
2068
- ]
2069
- )
2070
- : _vm._e(),
2071
- ]
2072
- : _vm._e(),
2073
- ],
2074
- 2
2075
- )
2076
- }
2077
- var staticRenderFns = []
2078
- render._withStripped = true
2079
-
2080
-
2081
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/time-spinner.vue?vue&type=template&id=61a971b8&
2082
-
2083
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/date-util"
2084
- var date_util_ = __webpack_require__(1);
2085
-
2086
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/scrollbar"
2087
- var scrollbar_ = __webpack_require__(15);
2088
- var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
2089
-
2090
- // EXTERNAL MODULE: ./src/directives/repeat-click.js
2091
- var repeat_click = __webpack_require__(31);
2092
-
2093
- // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/basic/time-spinner.vue?vue&type=script&lang=js&
2094
- //
2095
- //
2096
- //
2097
- //
2098
- //
2099
- //
2100
- //
2101
- //
2102
- //
2103
- //
2104
- //
2105
- //
2106
- //
2107
- //
2108
- //
2109
- //
2110
- //
2111
- //
2112
- //
2113
- //
2114
- //
2115
- //
2116
- //
2117
- //
2118
- //
2119
- //
2120
- //
2121
- //
2122
- //
2123
- //
2124
- //
2125
- //
2126
- //
2127
- //
2128
- //
2129
- //
2130
- //
2131
- //
2132
- //
2133
- //
2134
- //
2135
- //
2136
- //
2137
- //
2138
- //
2139
- //
2140
- //
2141
- //
2142
- //
2143
- //
2144
- //
2145
- //
2146
- //
2147
- //
2148
- //
2149
- //
2150
- //
2151
- //
2152
- //
2153
- //
2154
- //
2155
- //
2156
- //
2157
- //
2158
- //
2159
- //
2160
- //
2161
- //
2162
- //
2163
- //
2164
- //
2165
- //
2166
- //
2167
- //
2168
- //
2169
- //
2170
- //
2171
- //
2172
- //
2173
- //
2174
- //
2175
- //
2176
- //
2177
- //
2178
- //
2179
- //
2180
- //
2181
- //
2182
- //
2183
- //
2184
- //
2185
- //
2186
- //
2187
- //
2188
- //
2189
- //
2190
- //
2191
- //
2192
- //
2193
- //
2194
- //
2195
- //
2196
-
2197
-
2198
-
2199
-
2200
-
2201
- /* harmony default export */ var time_spinnervue_type_script_lang_js_ = ({
2202
- components: { ElScrollbar: scrollbar_default.a },
2203
-
2204
- directives: {
2205
- repeatClick: repeat_click["a" /* default */]
2206
- },
2207
-
2208
- props: {
2209
- date: {},
2210
- defaultValue: {}, // reserved for future use
2211
- showSeconds: {
2212
- type: Boolean,
2213
- default: true
2214
- },
2215
- arrowControl: Boolean,
2216
- amPmMode: {
2217
- type: String,
2218
- default: '' // 'a': am/pm; 'A': AM/PM
2219
- }
2220
- },
2221
-
2222
- computed: {
2223
- hours: function hours() {
2224
- return this.date.getHours();
2225
- },
2226
- minutes: function minutes() {
2227
- return this.date.getMinutes();
2228
- },
2229
- seconds: function seconds() {
2230
- return this.date.getSeconds();
2231
- },
2232
- hoursList: function hoursList() {
2233
- return Object(date_util_["getRangeHours"])(this.selectableRange);
2234
- },
2235
- minutesList: function minutesList() {
2236
- return Object(date_util_["getRangeMinutes"])(this.selectableRange, this.hours);
2237
- },
2238
- arrowHourList: function arrowHourList() {
2239
- var hours = this.hours;
2240
- return [hours > 0 ? hours - 1 : undefined, hours, hours < 23 ? hours + 1 : undefined];
2241
- },
2242
- arrowMinuteList: function arrowMinuteList() {
2243
- var minutes = this.minutes;
2244
- return [minutes > 0 ? minutes - 1 : undefined, minutes, minutes < 59 ? minutes + 1 : undefined];
2245
- },
2246
- arrowSecondList: function arrowSecondList() {
2247
- var seconds = this.seconds;
2248
- return [seconds > 0 ? seconds - 1 : undefined, seconds, seconds < 59 ? seconds + 1 : undefined];
2249
- }
2250
- },
2251
-
2252
- data: function data() {
2253
- return {
2254
- selectableRange: [],
2255
- currentScrollbar: null
2256
- };
2257
- },
2258
- mounted: function mounted() {
2259
- var _this = this;
2260
-
2261
- this.$nextTick(function () {
2262
- !_this.arrowControl && _this.bindScrollEvent();
2263
- });
2264
- },
2265
-
2266
-
2267
- methods: {
2268
- increase: function increase() {
2269
- this.scrollDown(1);
2270
- },
2271
- decrease: function decrease() {
2272
- this.scrollDown(-1);
2273
- },
2274
- modifyDateField: function modifyDateField(type, value) {
2275
- switch (type) {
2276
- case 'hours':
2277
- this.$emit('change', Object(date_util_["modifyTime"])(this.date, value, this.minutes, this.seconds));break;
2278
- case 'minutes':
2279
- this.$emit('change', Object(date_util_["modifyTime"])(this.date, this.hours, value, this.seconds));break;
2280
- case 'seconds':
2281
- this.$emit('change', Object(date_util_["modifyTime"])(this.date, this.hours, this.minutes, value));break;
2282
- }
2283
- },
2284
- handleClick: function handleClick(type, _ref) {
2285
- var value = _ref.value,
2286
- disabled = _ref.disabled;
2287
-
2288
- if (!disabled) {
2289
- this.modifyDateField(type, value);
2290
- this.emitSelectRange(type);
2291
- this.adjustSpinner(type, value);
2292
- }
2293
- },
2294
- emitSelectRange: function emitSelectRange(type) {
2295
- if (type === 'hours') {
2296
- this.$emit('select-range', 0, 2);
2297
- } else if (type === 'minutes') {
2298
- this.$emit('select-range', 3, 5);
2299
- } else if (type === 'seconds') {
2300
- this.$emit('select-range', 6, 8);
2301
- }
2302
- this.currentScrollbar = type;
2303
- },
2304
- bindScrollEvent: function bindScrollEvent() {
2305
- var _this2 = this;
2306
-
2307
- var bindFuntion = function bindFuntion(type) {
2308
- _this2.$refs[type].wrap.onscroll = function (e) {
2309
- // TODO: scroll is emitted when set scrollTop programatically
2310
- // should find better solutions in the future!
2311
- _this2.handleScroll(type, e);
2312
- };
2313
- };
2314
- bindFuntion('hours');
2315
- bindFuntion('minutes');
2316
- bindFuntion('seconds');
2317
- },
2318
- handleScroll: function handleScroll(type) {
2319
- var value = Math.min(Math.round((this.$refs[type].wrap.scrollTop - (this.scrollBarHeight(type) * 0.5 - 10) / this.typeItemHeight(type) + 3) / this.typeItemHeight(type)), type === 'hours' ? 23 : 59);
2320
- this.modifyDateField(type, value);
2321
- },
2322
-
2323
-
2324
- // NOTE: used by datetime / date-range panel
2325
- // renamed from adjustScrollTop
2326
- // should try to refactory it
2327
- adjustSpinners: function adjustSpinners() {
2328
- this.adjustSpinner('hours', this.hours);
2329
- this.adjustSpinner('minutes', this.minutes);
2330
- this.adjustSpinner('seconds', this.seconds);
2331
- },
2332
- adjustCurrentSpinner: function adjustCurrentSpinner(type) {
2333
- this.adjustSpinner(type, this[type]);
2334
- },
2335
- adjustSpinner: function adjustSpinner(type, value) {
2336
- if (this.arrowControl) return;
2337
- var el = this.$refs[type].wrap;
2338
- if (el) {
2339
- el.scrollTop = Math.max(0, value * this.typeItemHeight(type));
2340
- }
2341
- },
2342
- scrollDown: function scrollDown(step) {
2343
- var _this3 = this;
2344
-
2345
- if (!this.currentScrollbar) {
2346
- this.emitSelectRange('hours');
2347
- }
2348
-
2349
- var label = this.currentScrollbar;
2350
- var hoursList = this.hoursList;
2351
- var now = this[label];
2352
-
2353
- if (this.currentScrollbar === 'hours') {
2354
- var total = Math.abs(step);
2355
- step = step > 0 ? 1 : -1;
2356
- var length = hoursList.length;
2357
- while (length-- && total) {
2358
- now = (now + step + hoursList.length) % hoursList.length;
2359
- if (hoursList[now]) {
2360
- continue;
2361
- }
2362
- total--;
2363
- }
2364
- if (hoursList[now]) return;
2365
- } else {
2366
- now = (now + step + 60) % 60;
2367
- }
2368
-
2369
- this.modifyDateField(label, now);
2370
- this.adjustSpinner(label, now);
2371
- this.$nextTick(function () {
2372
- return _this3.emitSelectRange(_this3.currentScrollbar);
2373
- });
2374
- },
2375
- amPm: function amPm(hour) {
2376
- var shouldShowAmPm = this.amPmMode.toLowerCase() === 'a';
2377
- if (!shouldShowAmPm) return '';
2378
- var isCapital = this.amPmMode === 'A';
2379
- var content = hour < 12 ? ' am' : ' pm';
2380
- if (isCapital) content = content.toUpperCase();
2381
- return content;
2382
- },
2383
- typeItemHeight: function typeItemHeight(type) {
2384
- return this.$refs[type].$el.querySelector('li').offsetHeight;
2385
- },
2386
- scrollBarHeight: function scrollBarHeight(type) {
2387
- return this.$refs[type].$el.offsetHeight;
2388
- }
2389
- }
2390
- });
2391
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/time-spinner.vue?vue&type=script&lang=js&
2392
- /* harmony default export */ var basic_time_spinnervue_type_script_lang_js_ = (time_spinnervue_type_script_lang_js_);
2393
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/runtime/componentNormalizer.js
2394
- var componentNormalizer = __webpack_require__(0);
2395
-
2396
- // CONCATENATED MODULE: ./packages/date-picker/src/basic/time-spinner.vue
2397
-
2398
-
2399
-
2400
-
2401
-
2402
- /* normalize component */
2403
-
2404
- var component = Object(componentNormalizer["a" /* default */])(
2405
- basic_time_spinnervue_type_script_lang_js_,
2406
- render,
2407
- staticRenderFns,
2408
- false,
2409
- null,
2410
- null,
2411
- null
2412
-
2413
- )
2414
-
2415
- /* harmony default export */ var time_spinner = __webpack_exports__["a"] = (component.exports);
2416
-
2417
- /***/ }),
2418
-
2419
- /***/ 4:
2420
- /***/ (function(module, exports) {
2421
-
2422
- module.exports = require("@evolvere/sgp-ui/lib/mixins/emitter");
2423
-
2424
- /***/ }),
2425
-
2426
- /***/ 5:
2427
- /***/ (function(module, exports) {
2428
-
2429
- module.exports = require("@evolvere/sgp-ui/lib/utils/vue-popper");
2430
-
2431
- /***/ }),
2432
-
2433
- /***/ 6:
2434
- /***/ (function(module, exports) {
2435
-
2436
- module.exports = require("@evolvere/sgp-ui/lib/mixins/locale");
2437
-
2438
- /***/ }),
2439
-
2440
- /***/ 7:
2441
- /***/ (function(module, exports) {
2442
-
2443
- module.exports = require("vue");
2444
-
2445
- /***/ }),
2446
-
2447
- /***/ 82:
2448
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2449
-
2450
- "use strict";
2451
- // ESM COMPAT FLAG
2452
- __webpack_require__.r(__webpack_exports__);
2453
-
2454
- // EXTERNAL MODULE: ./packages/date-picker/src/picker.vue + 4 modules
2455
- var picker = __webpack_require__(33);
2456
-
2457
- // EXTERNAL MODULE: ./packages/date-picker/src/panel/time.vue + 4 modules
2458
- var time = __webpack_require__(28);
2459
-
2460
- // CONCATENATED MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-range.vue?vue&type=template&id=7ed65786&
2461
- var render = function () {
2462
- var _vm = this
2463
- var _h = _vm.$createElement
2464
- var _c = _vm._self._c || _h
2465
- return _c(
2466
- "transition",
2467
- {
2468
- attrs: { name: "el-zoom-in-top" },
2469
- on: {
2470
- "after-leave": function ($event) {
2471
- _vm.$emit("dodestroy")
2472
- },
2473
- },
2474
- },
2475
- [
2476
- _c(
2477
- "div",
2478
- {
2479
- directives: [
2480
- {
2481
- name: "show",
2482
- rawName: "v-show",
2483
- value: _vm.visible,
2484
- expression: "visible",
2485
- },
2486
- ],
2487
- staticClass: "el-time-range-picker el-picker-panel el-popper",
2488
- class: _vm.popperClass,
2489
- },
2490
- [
2491
- _c("div", { staticClass: "el-time-range-picker__content" }, [
2492
- _c("div", { staticClass: "el-time-range-picker__cell" }, [
2493
- _c("div", { staticClass: "el-time-range-picker__header" }, [
2494
- _vm._v(_vm._s(_vm.t("el.datepicker.startTime"))),
2495
- ]),
2496
- _c(
2497
- "div",
2498
- {
2499
- staticClass:
2500
- "el-time-range-picker__body el-time-panel__content",
2501
- class: {
2502
- "has-seconds": _vm.showSeconds,
2503
- "is-arrow": _vm.arrowControl,
2504
- },
2505
- },
2506
- [
2507
- _c("time-spinner", {
2508
- ref: "minSpinner",
2509
- attrs: {
2510
- "show-seconds": _vm.showSeconds,
2511
- "am-pm-mode": _vm.amPmMode,
2512
- "arrow-control": _vm.arrowControl,
2513
- date: _vm.minDate,
2514
- },
2515
- on: {
2516
- change: _vm.handleMinChange,
2517
- "select-range": _vm.setMinSelectionRange,
2518
- },
2519
- }),
2520
- ],
2521
- 1
2522
- ),
2523
- ]),
2524
- _c("div", { staticClass: "el-time-range-picker__cell" }, [
2525
- _c("div", { staticClass: "el-time-range-picker__header" }, [
2526
- _vm._v(_vm._s(_vm.t("el.datepicker.endTime"))),
2527
- ]),
2528
- _c(
2529
- "div",
2530
- {
2531
- staticClass:
2532
- "el-time-range-picker__body el-time-panel__content",
2533
- class: {
2534
- "has-seconds": _vm.showSeconds,
2535
- "is-arrow": _vm.arrowControl,
2536
- },
2537
- },
2538
- [
2539
- _c("time-spinner", {
2540
- ref: "maxSpinner",
2541
- attrs: {
2542
- "show-seconds": _vm.showSeconds,
2543
- "am-pm-mode": _vm.amPmMode,
2544
- "arrow-control": _vm.arrowControl,
2545
- date: _vm.maxDate,
2546
- },
2547
- on: {
2548
- change: _vm.handleMaxChange,
2549
- "select-range": _vm.setMaxSelectionRange,
2550
- },
2551
- }),
2552
- ],
2553
- 1
2554
- ),
2555
- ]),
2556
- ]),
2557
- _c("div", { staticClass: "el-time-panel__footer" }, [
2558
- _c(
2559
- "button",
2560
- {
2561
- staticClass: "el-time-panel__btn cancel",
2562
- attrs: { type: "button" },
2563
- on: {
2564
- click: function ($event) {
2565
- _vm.handleCancel()
2566
- },
2567
- },
2568
- },
2569
- [_vm._v(_vm._s(_vm.t("el.datepicker.cancel")))]
2570
- ),
2571
- _c(
2572
- "button",
2573
- {
2574
- staticClass: "el-time-panel__btn confirm",
2575
- attrs: { type: "button", disabled: _vm.btnDisabled },
2576
- on: {
2577
- click: function ($event) {
2578
- _vm.handleConfirm()
2579
- },
2580
- },
2581
- },
2582
- [_vm._v(_vm._s(_vm.t("el.datepicker.confirm")))]
2583
- ),
2584
- ]),
2585
- ]
2586
- ),
2587
- ]
2588
- )
2589
- }
2590
- var staticRenderFns = []
2591
- render._withStripped = true
2592
-
2593
-
2594
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-range.vue?vue&type=template&id=7ed65786&
2595
-
2596
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/utils/date-util"
2597
- var date_util_ = __webpack_require__(1);
2598
-
2599
- // EXTERNAL MODULE: external "@evolvere/sgp-ui/lib/mixins/locale"
2600
- var locale_ = __webpack_require__(6);
2601
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
2602
-
2603
- // EXTERNAL MODULE: ./packages/date-picker/src/basic/time-spinner.vue + 4 modules
2604
- var time_spinner = __webpack_require__(35);
2605
-
2606
- // CONCATENATED MODULE: ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@15.10.0@vue-loader/lib??vue-loader-options!./packages/date-picker/src/panel/time-range.vue?vue&type=script&lang=js&
2607
- //
2608
- //
2609
- //
2610
- //
2611
- //
2612
- //
2613
- //
2614
- //
2615
- //
2616
- //
2617
- //
2618
- //
2619
- //
2620
- //
2621
- //
2622
- //
2623
- //
2624
- //
2625
- //
2626
- //
2627
- //
2628
- //
2629
- //
2630
- //
2631
- //
2632
- //
2633
- //
2634
- //
2635
- //
2636
- //
2637
- //
2638
- //
2639
- //
2640
- //
2641
- //
2642
- //
2643
- //
2644
- //
2645
- //
2646
- //
2647
- //
2648
- //
2649
- //
2650
- //
2651
- //
2652
- //
2653
- //
2654
- //
2655
- //
2656
- //
2657
- //
2658
- //
2659
- //
2660
- //
2661
- //
2662
- //
2663
- //
2664
-
2665
-
2666
-
2667
-
2668
-
2669
- var MIN_TIME = Object(date_util_["parseDate"])('00:00:00', 'HH:mm:ss');
2670
- var MAX_TIME = Object(date_util_["parseDate"])('23:59:59', 'HH:mm:ss');
2671
-
2672
- var time_rangevue_type_script_lang_js_minTimeOfDay = function minTimeOfDay(date) {
2673
- return Object(date_util_["modifyDate"])(MIN_TIME, date.getFullYear(), date.getMonth(), date.getDate());
2674
- };
2675
-
2676
- var time_rangevue_type_script_lang_js_maxTimeOfDay = function maxTimeOfDay(date) {
2677
- return Object(date_util_["modifyDate"])(MAX_TIME, date.getFullYear(), date.getMonth(), date.getDate());
2678
- };
2679
-
2680
- // increase time by amount of milliseconds, but within the range of day
2681
- var advanceTime = function advanceTime(date, amount) {
2682
- return new Date(Math.min(date.getTime() + amount, time_rangevue_type_script_lang_js_maxTimeOfDay(date).getTime()));
2683
- };
2684
-
2685
- /* harmony default export */ var time_rangevue_type_script_lang_js_ = ({
2686
- mixins: [locale_default.a],
2687
-
2688
- components: { TimeSpinner: time_spinner["a" /* default */] },
2689
-
2690
- computed: {
2691
- showSeconds: function showSeconds() {
2692
- return (this.format || '').indexOf('ss') !== -1;
2693
- },
2694
- offset: function offset() {
2695
- return this.showSeconds ? 11 : 8;
2696
- },
2697
- spinner: function spinner() {
2698
- return this.selectionRange[0] < this.offset ? this.$refs.minSpinner : this.$refs.maxSpinner;
2699
- },
2700
- btnDisabled: function btnDisabled() {
2701
- return this.minDate.getTime() > this.maxDate.getTime();
2702
- },
2703
- amPmMode: function amPmMode() {
2704
- if ((this.format || '').indexOf('A') !== -1) return 'A';
2705
- if ((this.format || '').indexOf('a') !== -1) return 'a';
2706
- return '';
2707
- }
2708
- },
2709
-
2710
- data: function data() {
2711
- return {
2712
- popperClass: '',
2713
- minDate: new Date(),
2714
- maxDate: new Date(),
2715
- value: [],
2716
- oldValue: [new Date(), new Date()],
2717
- defaultValue: null,
2718
- format: 'HH:mm:ss',
2719
- visible: false,
2720
- selectionRange: [0, 2],
2721
- arrowControl: false
2722
- };
2723
- },
2724
-
2725
-
2726
- watch: {
2727
- value: function value(_value) {
2728
- if (Array.isArray(_value)) {
2729
- this.minDate = new Date(_value[0]);
2730
- this.maxDate = new Date(_value[1]);
2731
- } else {
2732
- if (Array.isArray(this.defaultValue)) {
2733
- this.minDate = new Date(this.defaultValue[0]);
2734
- this.maxDate = new Date(this.defaultValue[1]);
2735
- } else if (this.defaultValue) {
2736
- this.minDate = new Date(this.defaultValue);
2737
- this.maxDate = advanceTime(new Date(this.defaultValue), 60 * 60 * 1000);
2738
- } else {
2739
- this.minDate = new Date();
2740
- this.maxDate = advanceTime(new Date(), 60 * 60 * 1000);
2741
- }
2742
- }
2743
- },
2744
- visible: function visible(val) {
2745
- var _this = this;
2746
-
2747
- if (val) {
2748
- this.oldValue = this.value;
2749
- this.$nextTick(function () {
2750
- return _this.$refs.minSpinner.emitSelectRange('hours');
2751
- });
2752
- }
2753
- }
2754
- },
2755
-
2756
- methods: {
2757
- handleClear: function handleClear() {
2758
- this.$emit('pick', null);
2759
- },
2760
- handleCancel: function handleCancel() {
2761
- this.$emit('pick', this.oldValue);
2762
- },
2763
- handleMinChange: function handleMinChange(date) {
2764
- this.minDate = Object(date_util_["clearMilliseconds"])(date);
2765
- this.handleChange();
2766
- },
2767
- handleMaxChange: function handleMaxChange(date) {
2768
- this.maxDate = Object(date_util_["clearMilliseconds"])(date);
2769
- this.handleChange();
2770
- },
2771
- handleChange: function handleChange() {
2772
- if (this.isValidValue([this.minDate, this.maxDate])) {
2773
- this.$refs.minSpinner.selectableRange = [[time_rangevue_type_script_lang_js_minTimeOfDay(this.minDate), this.maxDate]];
2774
- this.$refs.maxSpinner.selectableRange = [[this.minDate, time_rangevue_type_script_lang_js_maxTimeOfDay(this.maxDate)]];
2775
- this.$emit('pick', [this.minDate, this.maxDate], true);
2776
- }
2777
- },
2778
- setMinSelectionRange: function setMinSelectionRange(start, end) {
2779
- this.$emit('select-range', start, end, 'min');
2780
- this.selectionRange = [start, end];
2781
- },
2782
- setMaxSelectionRange: function setMaxSelectionRange(start, end) {
2783
- this.$emit('select-range', start, end, 'max');
2784
- this.selectionRange = [start + this.offset, end + this.offset];
2785
- },
2786
- handleConfirm: function handleConfirm() {
2787
- var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2788
-
2789
- var minSelectableRange = this.$refs.minSpinner.selectableRange;
2790
- var maxSelectableRange = this.$refs.maxSpinner.selectableRange;
2791
-
2792
- this.minDate = Object(date_util_["limitTimeRange"])(this.minDate, minSelectableRange, this.format);
2793
- this.maxDate = Object(date_util_["limitTimeRange"])(this.maxDate, maxSelectableRange, this.format);
2794
-
2795
- this.$emit('pick', [this.minDate, this.maxDate], visible);
2796
- },
2797
- adjustSpinners: function adjustSpinners() {
2798
- this.$refs.minSpinner.adjustSpinners();
2799
- this.$refs.maxSpinner.adjustSpinners();
2800
- },
2801
- changeSelectionRange: function changeSelectionRange(step) {
2802
- var list = this.showSeconds ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11];
2803
- var mapping = ['hours', 'minutes'].concat(this.showSeconds ? ['seconds'] : []);
2804
- var index = list.indexOf(this.selectionRange[0]);
2805
- var next = (index + step + list.length) % list.length;
2806
- var half = list.length / 2;
2807
- if (next < half) {
2808
- this.$refs.minSpinner.emitSelectRange(mapping[next]);
2809
- } else {
2810
- this.$refs.maxSpinner.emitSelectRange(mapping[next - half]);
2811
- }
2812
- },
2813
- isValidValue: function isValidValue(date) {
2814
- return Array.isArray(date) && Object(date_util_["timeWithinRange"])(this.minDate, this.$refs.minSpinner.selectableRange) && Object(date_util_["timeWithinRange"])(this.maxDate, this.$refs.maxSpinner.selectableRange);
2815
- },
2816
- handleKeydown: function handleKeydown(event) {
2817
- var keyCode = event.keyCode;
2818
- var mapping = { 38: -1, 40: 1, 37: -1, 39: 1 };
2819
-
2820
- // Left or Right
2821
- if (keyCode === 37 || keyCode === 39) {
2822
- var step = mapping[keyCode];
2823
- this.changeSelectionRange(step);
2824
- event.preventDefault();
2825
- return;
2826
- }
2827
-
2828
- // Up or Down
2829
- if (keyCode === 38 || keyCode === 40) {
2830
- var _step = mapping[keyCode];
2831
- this.spinner.scrollDown(_step);
2832
- event.preventDefault();
2833
- return;
2834
- }
2835
- }
2836
- }
2837
- });
2838
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-range.vue?vue&type=script&lang=js&
2839
- /* harmony default export */ var panel_time_rangevue_type_script_lang_js_ = (time_rangevue_type_script_lang_js_);
2840
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.10.0@vue-loader/lib/runtime/componentNormalizer.js
2841
- var componentNormalizer = __webpack_require__(0);
2842
-
2843
- // CONCATENATED MODULE: ./packages/date-picker/src/panel/time-range.vue
2844
-
2845
-
2846
-
2847
-
2848
-
2849
- /* normalize component */
2850
-
2851
- var component = Object(componentNormalizer["a" /* default */])(
2852
- panel_time_rangevue_type_script_lang_js_,
2853
- render,
2854
- staticRenderFns,
2855
- false,
2856
- null,
2857
- null,
2858
- null
2859
-
2860
- )
2861
-
2862
- /* harmony default export */ var time_range = (component.exports);
2863
- // CONCATENATED MODULE: ./packages/date-picker/src/picker/time-picker.js
2864
-
2865
-
2866
-
2867
-
2868
- /* harmony default export */ var time_picker = ({
2869
- mixins: [picker["a" /* default */]],
2870
-
2871
- name: 'ElTimePicker',
2872
-
2873
- props: {
2874
- isRange: Boolean,
2875
- arrowControl: Boolean
2876
- },
2877
-
2878
- data: function data() {
2879
- return {
2880
- type: ''
2881
- };
2882
- },
2883
-
2884
-
2885
- watch: {
2886
- isRange: function isRange(_isRange) {
2887
- if (this.picker) {
2888
- this.unmountPicker();
2889
- this.type = _isRange ? 'timerange' : 'time';
2890
- this.panel = _isRange ? time_range : time["a" /* default */];
2891
- this.mountPicker();
2892
- } else {
2893
- this.type = _isRange ? 'timerange' : 'time';
2894
- this.panel = _isRange ? time_range : time["a" /* default */];
2895
- }
2896
- }
2897
- },
2898
-
2899
- created: function created() {
2900
- this.type = this.isRange ? 'timerange' : 'time';
2901
- this.panel = this.isRange ? time_range : time["a" /* default */];
2902
- }
2903
- });
2904
- // CONCATENATED MODULE: ./packages/time-picker/index.js
2905
-
2906
-
2907
- /* istanbul ignore next */
2908
- time_picker.install = function (Vue) {
2909
- Vue.component(time_picker.name, time_picker);
2910
- };
2911
-
2912
- /* harmony default export */ var packages_time_picker = __webpack_exports__["default"] = (time_picker);
2913
-
2914
- /***/ }),
2915
-
2916
- /***/ 9:
2917
- /***/ (function(module, exports) {
2918
-
2919
- module.exports = require("@evolvere/sgp-ui/lib/utils/merge");
2920
-
2921
- /***/ })
2922
-
2923
- /******/ });